1 2002-12-10 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
4 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
7 2002-12-08 Alan Modra <amodra@bigpond.net.au>
9 * ldlang.h: Formatting.
11 2002-12-07 Alan Modra <amodra@bigpond.net.au>
13 * ldlang.c (init_os): Ensure sections mentioned in load_base
16 2002-12-05 Alan Modra <amodra@bigpond.net.au>
18 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
19 load_base for orphans that follow a section with load_base set.
21 2002-12-01 H.J. Lu <hjl@gnu.org>
23 * ld.texinfo: Remove the extra `;' in sample version script.
25 2002-11-30 Alan Modra <amodra@bigpond.net.au>
27 * configure.host: Correct dynamic-linker for powerpc64 hosts.
29 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
30 * Makefile.in: Regenerate.
32 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
33 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
34 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
35 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
36 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
37 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
38 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
39 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
40 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
41 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
42 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
43 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
44 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
46 2002-11-27 David O'Brien <obrien@FreeBSD.org>
48 * configure.host: Fix generic FreeBSD configuration entry.
50 2002-11-27 H.J. Lu <hjl@gnu.org>
52 * ld.texinfo: Add the missing `;' to sample version scripts.
54 2002-11-20 Alan Modra <amodra@bigpond.net.au>
56 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
58 2002-11-14 Egor Duda <deo@logos-m.ru>
60 * ldmain.c (main): Make runtime relocs disabled by default. Remove
61 assignment which has no effect.
62 * pe-dll.h (pe_create_import_fixup): Change prototype.
63 * pe-dll.c (make_runtime_pseudo_reloc): New function.
64 (pe_create_runtime_relocator_reference): Ditto.
65 (pe_create_import_fixup): Handle relocations with non-zero addends.
66 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
67 --disable-runtime-pseudo-reloc.
68 (make_import_fixup): Handle relocations with non-zero addends. Create
69 an external reference to _pei386_runtime_relocator symbol if at least
70 one pseudo reloc was created.
71 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
72 --disable-runtime-pseudo-reloc options.
74 2002-11-12 Earl Chew <earl_chew@agilent.com>
76 * ldlang.c (lang_add_section): Discard debugging sections that have
77 been marked SEC_EXCLUDE.
79 2002-11-12 Nick Clifton <nickc@redhat.com>
81 * configure.in (ALL_LINGUAS): Add da.
82 * configure: Regenerate.
83 * po/da.po: New Danish translation.
85 2002-11-12 Alan Modra <amodra@bigpond.net.au>
87 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
88 (LDEMUL_BEFORE_ALLOCATION): Define.
89 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
91 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
93 2002-11-11 Christopher Faylor <cgf@redhat.com>
95 * configure.tgt (LIB_PATH): Default to searching w32api directory under
98 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
100 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
101 of restricted auto-export libs.
103 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
105 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
106 creative library naming instances like, e.g., libstdc++-2.a.
108 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
110 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
111 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
113 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
115 * deffilep.y (def_lex): Handle '@' as first character of an ID.
116 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
117 (make_one): Don't prefix decorated fastcall symbols with '_'.
118 (pe_process_import_defs): Likewise.
119 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
120 symbols to cdecl names or vise-versa.
122 2002-10-13 Eric Kohl <ekohl@rz-online.de>
124 * pe-dll.c (process_def_file): Handle fastcall symbols when
125 generating undecorated aliases. Don't prefix decorated fastcall
127 (fill_exported_offsets): Don't prefix decorated fastcall symbols
130 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
132 * emultempl/aix.em: Use include <> for generated headers.
133 * emultempl/beos.em: Likewise.
134 * emultempl/elf32.em: Likewise.
135 * emultempl/pe.em: Likewise.
136 * ldctor.c: Likewise.
138 * ldfile.c: Likewise.
139 * ldlang.c: Likewise.
142 * ldmain.c: Likewise.
143 * ldmisc.c: Likewise.
144 * ldwrite.c: Likewise.
145 * lexsup.c: Likewise.
147 * pe-dll.c: Likewise.
149 2002-10-23 Jakub Jelinek <jakub@redhat.com>
151 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
152 sections into .rel{,a}.dyn.
154 2002-10-23 Nick Clifton <nickc@redhat.com>
156 * lexsup.c (OPTION_NO_OMAGIC): Define.
157 (ld_options): Add "no-omagic" option.
158 (parse_args): Parse --no-omagic.
159 * ld.texinfo: Document --no-omagic.
160 * NEWS: Mention new option.
162 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
164 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
165 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
167 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
169 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
170 emulation name. Set LIB_PATH only for native tools, and
171 search the ABI-specific versions of NATIVE_LIB_DIRS before the
172 .../lib variants, not instead of them. Mostly copied from...
173 * emulparams/elf32ppc.sh: ... here. Fixed typo.
174 * emulparams/elf64bmip-defs.sh: Backed out.
175 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
176 * emulparams/elf64btsmip.sh: Likewise.
177 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
178 TEXT_DYNAMIC): Removed.
180 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
182 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
183 (GENERATE_SHLIB_SCRIPT): Set to yes.
184 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
185 * emulparams/elf32bmipn32.sh: here.
186 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
187 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
188 * emulparams/elf64bmip-defs.sh: New file. Extend
189 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
190 * emulparams/elf64bmip.sh: Bring in definitions from
192 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
194 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
195 * emulparams/elf64btsmip.sh: Bring in definitions from
197 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
198 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
200 2002-10-16 Jakub Jelinek <jakub@redhat.com>
202 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
203 (s390-*-linux*): Add elf64_s390 emulation if want64.
204 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
205 genscript.sh changes.
206 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
207 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
209 2002-10-15 Alan Modra <amodra@bigpond.net.au>
211 * ldlang.c (load_symbols): Revert last change.
213 2002-10-14 Alan Modra <amodra@bigpond.net.au>
215 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
217 (lang_reasonable_defaults): Don't compare against false.
218 (size_input_section): Likewise.
219 (lang_size_sections_1): Likewise.
220 (lang_do_assignments): Likewise.
221 (lang_add_output): Likewise.
223 * Makefile.am: Run "make dep-am".
224 * Makefile.in: Regenerate.
225 * ldver.c: #include "bfdver.h".
227 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
229 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
231 * scripttempl/elfm68hc12.sc: Likewise.
233 2002-10-11 Alan Modra <amodra@bigpond.net.au>
235 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
237 * ldgram.y (memory_spec): Provide empty action.
238 (section <NAME>): Likewise.
240 2002-10-10 Jakub Jelinek <jakub@redhat.com>
242 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
243 they have OUTPUT_FORMAT not matching actual output format.
244 * ldlang.c (lang_get_output_target): New function.
245 (open_output): Use it.
246 * ldlang.h (lang_get_output_target): New prototype.
248 2002-10-10 Alan Modra <amodra@bigpond.net.au>
250 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
251 when orphan is .rel, .rela when orphan is .rela.
252 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
253 first. Remove outsecname var.
255 2002-10-09 Richard Shann <richard.shann@superh.com>
256 Stephen Clarke <stephen.clarke@superh.com>
258 * Makefile.am: Add eshelf32_linux.o and
259 eshlelf32_linux.o, new emulations for sh64 Linux.
260 * Makefile.in: Regenerate.
261 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
262 * emulparams/shelf32_linux.sh: New file.
263 * emulparams/shlelf32_linux.sh: New file.
265 2002-10-08 H.J. Lu <hjl@gnu.org>
267 * ldlang.c (lang_file_exist): Removed.
268 (new_afile): Revert the last change.
269 * ldlang.h (lang_file_exist): Removed.
270 * lexsup.c (parse_args): Revert the last change.
272 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
274 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
276 (make_one): Create _nm_<symbol> for data only.
278 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
280 * ldlang.c (lang_file_exist): New function.
281 (new_afile): Abort if the filename to be added matches the linker
283 * ldlang.h: Add prototype for lang_file_exist.
284 * lexsup.c (parse_args): Abort if the output filename matches
285 one of the input filenames.
287 2002-10-02 Alan Modra <amodra@bigpond.net.au>
289 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
291 2002-09-30 Alan Modra <amodra@bigpond.net.au>
293 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
294 * scripttempl/elfm68hc11.sc: Likewise.
295 * scripttempl/elfm68hc12.sc: Likewise.
297 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
298 reloc sections just before .rel.plt/.rela.plt.
299 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
300 Only put loadable reloc sections in hold_rel.
302 2002-09-29 H.J. Lu <hjl@gnu.org>
304 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
306 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
308 From "Anita Kulkarni" <AnitaK@kpit.com>
309 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
312 2002-09-25 Alan Modra <amodra@bigpond.net.au>
314 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
316 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
317 SEGMENT_SIZE alignment.
318 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
319 (SEGMENT_SIZE): Define.
321 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
322 (fold_binary): Correct abs - non-abs case.
323 (fold_trinary): New. Split out from exp_fold_tree.
325 2002-09-24 Alan Modra <amodra@bigpond.net.au>
327 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
328 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
329 for start of .data, instead align up to 256M boundary.
330 * scripttempl/aix.sc: Likewise.
332 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
334 * scripttempl/i386go32.sc: Handle bss unique sections.
336 2002-09-21 Alan Modra <amodra@bigpond.net.au>
338 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
340 2002-09-17 Stan Cox <scox@redhat.com>
342 * emulparams/elf32bmipn32-defs.sh: New file.
343 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
344 * emulparams/elf32btsmipn32.sh: Likewise.
345 * emulparams/elf64bmip.sh: Likewise.
346 * emulparams/elf64btsmip.sh: Likewise.
348 2002-09-16 Bruno Haible <bruno@clisp.org>
350 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
352 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
355 2002-09-11 Nick Clifton <nickc@redhat.com>
357 * NEWS: New TI port supports both C4x and C3x series of DSPs.
359 * po/tr.po: Updated Turkish translation.
361 2002-09-06 Jeffrey A Law (law@redhat.com)
363 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
365 2002-09-02 Nick Clifton <nickc@redhat.com>
367 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
369 * emulparams/v850.sh (TEMPLATE_NAME): Define.
371 2002-08-30 Nick Clifton <nickc@redhat.com>
373 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
374 used. Change INSN to start at 0x01000000 and extend for
375 256K (ignoring holes). Start the STACK on a word aligned
377 (.rodata): Start it at the READONLY_START_ADDR.
379 2002-08-30 Alan Modra <amodra@bigpond.net.au>
381 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
383 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
385 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
386 added makefile targets for this file.
387 * Makefile.in: Regenerate.
388 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
389 * NEWS: Mention new port.
391 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
393 * emulparams/tic3xcoff.sh: New file.
394 * emulparams/tic4xcoff.sh: New file.
395 * scripttempl/tic3xcoff.sc: New file.
396 * scripttempl/tic4xcoff.sc: New file.
398 2002-08-28 Alan Modra <amodra@bigpond.net.au>
400 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
401 strtoul and strtoull with bfd_scan_vma.
402 (gld${EMULATION_NAME}_read_file): Likewise.
404 2002-08-28 Alan Modra <amodra@bigpond.net.au>
406 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
408 2002-08-27 Egor Duda <deo@logos-m.ru>
410 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
411 Add symbols for application to access them.
413 2002-08-27 Nick Clifton <nickc@redhat.com>
415 * emultempl/armelf.em: Revert this patch, it is not needed.
417 2002-08-22 Adam Nemet <anemet@lnxw.com>
419 2002-08-20 Dan Kegel <dank@kegel.com>
421 * configure.in: added --with-lib-path argument to ld's configure
423 * ld/NEWS: Document new switch.
424 * ld/README: Mention new switch.
425 * configure: Regenerate.
426 * Makefile.in: Regenerate.
429 2001-04-25 Christopher Faylor <cgf@cygnus.com>
431 * Makefile.in (LIB_PATH): Make configurable.
432 (GENSCRIPTS): Set LIB_PATH in environment.
433 * configure.in: Substitute LIB_PATH.
435 2002-08-22 Adam Nemet <anemet@lnxw.com>
437 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
438 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
439 depending on the type of the function.
440 (arm_elf_convert_thumb_symbol_to_address): New function.
442 2002-08-22 Graeme Peterson <gp@qnx.com>
444 * Makefile.am: Add esh{l}elf_nto.o files.
445 * Makefile.in: Regenerate.
446 * configure.tgt: Add support for sh-**-nto* targets.
447 * emulparams/shelf_nto.sh: New file.
448 * emulparams/shlelf_nto.sh: New file.
450 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
452 * ldlang.c (offsetof): Define if not defined.
454 2002-08-14 H.J. Lu <hjl@gnu.org>
456 * configure.tgt: Always enable 64bit emulations for 32bit
459 2002-08-13 Alan Modra <amodra@bigpond.net.au>
461 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
462 (MAXPAGESIZE): Set to 1.
464 * ld.h (ALIGN_N): Delete.
465 * ldexp.h (align_n): Declare.
466 * ldexp.c (align_n): New function.
467 (fold_binary): Use align_n instead of ALIGN_N.
468 (exp_fold_tree): Likewise.
469 * ldlang.c (lang_size_sections_1): Likewise.
470 (lang_one_common): Likewise.
471 * ld.texinfo (ALIGN): Remove power of 2 restriction.
473 2002-07-31 Graeme Peterson <gp@qnx.com>
475 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
476 * Makefile.am: Add eelf32{l}ppcnto.o files.
477 * Makefile.in: Regenerate.
478 * emulparams/elf32lppcnto.sh: New file.
479 * emulparams/elf32ppcnto.sh: New file.
481 2002-08-07 H.J. Lu <hjl@gnu.org>
483 * ld.texinfo: Document --no-undefined-version.
485 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
486 `script.' fields to 0.
488 * ldmain.c (main): Initialize the allow_undefined_version to
491 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
492 (ld_options): Add --no-undefined-version.
493 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
495 2002-08-07 Nick Clifton <nickc@redhat.com>
497 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
498 an interworking bfd if there are input bfds. (107501)
500 2002-08-06 Alan Modra <amodra@bigpond.net.au>
502 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
505 2002-08-01 Nick Clifton <nickc@redhat.com>
507 * emulparams/armelf.sh: Revert previous delta.
508 * scripttempl/elf.sc: Revert previous delta.
510 2002-07-31 H.J. Lu <hjl@gnu.org>
512 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
515 2002-07-31 H.J. Lu <hjl@gnu.org>
517 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
518 64bit BFD is selected.
520 2002-07-31 H.J. Lu <hjl@gnu.org>
522 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
523 if 64bit BFD is selected.
525 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
527 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
528 link_info.common_skip_ar_aymbols.
529 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
531 * ldmain.c (main): Initialize new field
532 link_info.common_skip_ar_aymbols.
534 2002-07-31 Adam Nemet <anemet@lnxw.com>
536 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
538 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
541 2002-07-31 Nick Clifton <nickc@redhat.com>
543 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
544 of the PDP-11 and 2.11BSD a.out support.
546 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
548 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
550 * Makefile.in: Regenerate.
551 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
552 n32 ABI emulations for these 64 bit targets.
553 * emulparams/elf32bmipn32.sh: Expand comment.
554 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
556 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
558 2002-07-30 Graeme Peterson <gp@qnx.com>
560 * configure.tgt: Add support for arm-*-nto target.
561 * Makefile.am: Add earmnto.o file.
562 * Makefile.in: Regenerate.
563 * NEWS: Mention port of ARM support to QNX.
564 * emulparams/armnto.sh: New file.
566 2002-07-30 Jakub Jelinek <jakub@redhat.com>
568 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
569 for relocatable link.
570 (lang_size_sections_1): Don't make .tbss zero size for relocatable
573 2002-07-26 Bernd Schmidt <bernds@redhat.com>
575 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
578 2002-07-25 Nick Clifton <nickc@redhat.com>
580 * po/sv.po: Updated Swedish translation.
581 * po/es.po: Updated Spanish translation.
582 * po/fr.po: Updated French translation.
584 2002-07-24 Nick Clifton <nickc@redhat.com>
586 * po/sv.po: Updated Swedish translation.
587 * po/es.po: Updated Spanish translation.
589 2002-07-23 Nick Clifton <nickc@redhat.com>
591 * po/fr.po: Updated French translation.
593 2002-07-20 Alan Modra <amodra@bigpond.net.au>
595 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
596 bomb on /DISCARD/ input section.
597 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
598 * emultempl/mmo.em (mmo_place_orphan): Likewise.
600 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
602 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
605 2002-07-16 Denis Chertykov <denisc@overta.ru>
606 Nick Clifton <nickc@redhat.com>
607 Frank Ch. Eigler <fche@redhat.com>
608 John Healy <jhealy@redhat.com>
610 * configure.tgt: Add support for ip2k-elf.
611 * Makefile.am: Add support for ip2k-elf.
612 * Makefile.in: Regenerate.
613 * emulparams/elf32ip2k.sh: New file.
614 * scripttempl/ip2k.sc: New file
615 * NEWS: Mention support for new port.
617 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
619 * NEWS: Add 'Changes in 2.13'.
621 2002-07-14 H.J. Lu <hjl@gnu.org>
623 * ld.texinfo: Document a .symver takes precedence over a
626 2002-07-12 Alan Modra <amodra@bigpond.net.au>
628 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
629 (COMMONPAGESIZE): Define.
631 2002-07-09 Alan Modra <amodra@bigpond.net.au>
633 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
635 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
637 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
638 powerpc-*-openbsd* and sparc64-*-openbsd*.
639 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
640 * Makefile.in: Regenerate.
641 * emulparams/hppaobsd.sh: New file.
643 2002-07-05 Alan Modra <amodra@bigpond.net.au>
645 * ldlang.c (print_wild_statement): Fix output formatting.
647 2002-07-04 Alan Modra <amodra@bigpond.net.au>
649 * ldlang.c: (strip_excluded_output_sections): New function.
650 (lang_process): Call it.
651 (lang_size_sections_1): Revert 2002-06-10 change.
653 2002-07-03 Alan Modra <amodra@bigpond.net.au>
655 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
657 * Makefile.in: Regenerate.
659 2002-07-02 Alan Modra <amodra@bigpond.net.au>
661 * ldfile.c (ldfile_try_open_bfd): Formatting.
663 * ldmisc.c (demangle): Move so that it doesn't intrude between
664 vfinfo comment and body. Add comment.
666 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
668 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
670 2002-07-01 Alan Modra <amodra@bigpond.net.au>
672 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
673 * ldlang.c (entry_sym): Likewise.
674 (ldlang_undef_chain_list_type): Likewise.
675 (lang_finish): Adjust references to entry_symbol.
676 (lang_add_entry): Likewise.
677 (lang_gc_sections): Use link_info.gc_sym_list.
678 (lang_process): Set link_info.gc_sym_list.
679 * ldlex.l: Include bfdlink.h.
680 * ldmain.c (main): Init link_info.gc_sym_list.
681 * emultempl/aix.em: Adjust references to entry_symbol.
682 * emultempl/armcoff.em: Likewise.
683 * emultempl/armelf.em: Likewise.
684 * emultempl/pe.em: Likewise.
685 * emultempl/ppc64elf.em (ppc_after_open): New function.
686 (LDEMUL_AFTER_OPEN): Define.
687 * emulparams/elf64ppc.sh: KEEP .opd sections.
689 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
691 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
692 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
693 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
694 (EEPROM_START_ADDR): Define.
695 (EEPROM_MEMORY): Define.
696 * emulparams/m68hc12elf.sh: Likewise.
697 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
698 section to put soft registers in .page0.
699 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
701 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
703 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
704 section. Add ${RELOCATING-0}.
706 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
708 * emulparams/shelf.sh (STACK_ADDR): Don't define.
709 (OTHER_SECTIONS): Define.
710 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
711 (OTHER_SECTIONS): Undef.
713 2002-06-26 Alan Modra <amodra@bigpond.net.au>
715 * ldmisc.c (demangle): Restore dots stripped from sym name.
717 2002-06-25 H.J. Lu <hjl@gnu.org>
719 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
720 * Makefile.in: Regenerated.
722 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
724 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
725 the size of attached object files, to allow make the object files
726 available via FTP or HTTP and to mention that the mail will be
727 sent to a mailing list.
729 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
731 * ld/configure.host (romp): Drop support.
733 2002-06-18 Chris Demetriou <cgd@broadcom.com>
735 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
736 section flags for SEC_DATA, rather than for SEC_CODE being unset.
738 2002-06-18 Chris Demetriou <cgd@broadcom.com>
740 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
741 format specifier used to print BFD name.
743 2002-06-18 Dave Brolley <brolley@redhat.com>
745 From Catherine Moore, Michael Meissner, Jim Blandy:
746 * emulparams/elf32frv.sh: New file.
747 * configure.tgt: Support frv-*-*.
748 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
749 (eelf32frv.c): New target.
751 2002-06-17 Tom Rix <trix@redhat.com>
753 * emultempl/elf32.em: gld*_get_script: Check for
754 GENERATE_COMBRELOC_SCRIPT.
755 * scripttempl/elfd10v.sc : Fix STACK and INSN.
756 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
758 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
760 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
762 2002-06-12 H.J. Lu <hjl@gnu.org>
764 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
765 false if xvec doesn't match.
767 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
769 * ldlang.c (lang_size_sections_1): Skip removed output sections.
771 2002-06-08 Alan Modra <amodra@bigpond.net.au>
773 * ldexp.c: Replace CONST with const.
774 * ldfile.c: Likewise.
775 * ldfile.h: Likewise.
778 * pe-dll.h: Likewise.
780 2002-06-07 Alan Modra <amodra@bigpond.net.au>
782 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
784 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
786 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
787 to -1 == implicit enable.
788 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
789 initialize link_info.pei386_auto_import to -1 == implicit
791 (gld_${EMULATION_NAME}_parse_args): When processing
792 --enable-auto-import and --disable-auto-import options, use
793 '1' and '0' instead of 'true' and 'false'.
794 (pe_find_data_imports): Only issue message about auto-import
795 when the feature is implicitly enabled. Downgrade message to
796 informational instead of warning.
798 2002-06-07 Alan Modra <amodra@bigpond.net.au>
800 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
802 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
804 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
805 HOSTING_CRT0 and HOSTING_LIBS.
807 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
809 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
811 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
813 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
814 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
816 2002-06-05 Alan Modra <amodra@bigpond.net.au>
818 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
819 SEC_EXCLUDE sections when doing a relocatable link.
821 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
823 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
824 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
825 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
826 (eshlelf64_nbsd.c): New rules.
827 * Makefile.in: Regenerate.
828 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
829 (sh64-*-netbsd*): New targets.
830 * emulparams/shelf32_nbsd.sh: New file.
831 * emulparams/shelf64_nbsd.sh: New file.
832 * emulparams/shlelf32_nbsd.sh: New file.
833 * emulparams/shlelf64_nbsd.sh: New file.
835 2002-06-04 Alan Modra <amodra@bigpond.net.au>
837 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
839 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
841 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
842 C++ constructors/destructors, loosely based on the m68hc11 port.
844 2002-05-31 Alan Modra <amodra@bigpond.net.au>
846 * Makefile.in: Regenerate.
847 * aclocal.m4: Regenerate.
848 * config.in: Regenerate.
849 * configure: Regenerate.
851 2002-05-31 Graeme Peterson <gp@qnx.com>
853 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
854 (ei386nto.c): Add rule.
855 * Makefile.in: Regenerate.
856 * configure.tgt: Add i[3456]86-*-nto-qnx*.
857 * emulparams/i386nto.sh: New file.
859 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
861 * NEWS: Add entry for VAX ELF support.
863 2002-05-29 Matt Thomas <matt@3am-software.com>
864 Jason Thorpe <thorpej@wasabisystems.com>
866 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
868 (evaxnbsd.c): New rules.
869 * Makefile.in: Regenerate.
870 * configure.tgt (vax-*-netbsdelf*)
872 (vax-*-netbsd*): New targets.
873 * emulparams/elf32vax.sh: New file.
874 * emulparams/vaxnbsd.sh: New file.
876 2002-05-29 Adam Nemet <anemet@lnxw.com>
878 * emultempl/armelf.em (arm_elf_after_open): Don't determine
879 bfd_for_interwork, instead add glue sections to each input bfd.
880 (bfd_for_interwork): New global.
881 (arm_elf_set_bfd_for_interworking): New function.
882 (arm_elf_before_allocation): Use it.
884 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
886 * Makefile.am: Add DLX make target.
887 * configure.tgt: Add DLX configuration.
888 * Makefile.in: Regenerate.
889 * emulparams/elf32_dlx.sh: New file
890 * scripttempl/dlx.sc: New file
892 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
894 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
895 * Makefile.in: Regenerate.
896 * emulparams/elf_chaos.sh: Use elf_chaos script.
897 * scripttempl/elf_chaos.sc: New file.
899 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
901 * ldlang.c (lang_size_sections_1): Move check for conflicting load
902 addresses and regions from here...
903 (lang_get_regions): ...to this new function.
904 (lang_leave_output_section_statement): Use lang_get_regions.
905 (lang_leave_overlay): Likewise.
906 * mri.c (mri_draw_tree): Pass null as last argument to
907 lang_leave_output_section_statement.
908 * emultempl/elf32.em (gld*_place_orphan): Likewise.
909 * emultempl/mmo.em (mmo_place_orphan): Likewise.
910 * emultempl/pe.em (gld*_place_orphan): Likewise.
912 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
914 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
916 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
918 * ldemul.c: Fix formatting.
919 * ldfile.c: Likewise.
920 * pe-dll.c: Likewise.
921 * pe-dll.h: Likewise.
923 2002-05-25 Alan Modra <amodra@bigpond.net.au>
925 * ldlang.c (lang_process): Formatting, grammar.
927 * ldlex.l: Use #include "" instead of <> for local header files.
929 2002-05-24 TAMURA Kent <kent@netbsd.org>
931 * configure.tgt: Add a target for i386-netbsdpe.
933 2002-05-23 Jakub Jelinek <jakub@redhat.com>
935 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
936 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
937 output section if necessary. Handle .tbss.
938 (lang_size_sections): Clear _raw_size for .tbss section
939 (it allocates space in PT_TLS segment only).
940 * ldwrite.c (build_link_order): Build link order for .tbss too.
942 2002-05-23 Alan Modra <amodra@bigpond.net.au>
944 * configure.in: Correct spelling of AC_PREREQ.
946 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
948 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
950 (autofilter_objlist): Add crtbegin.o, crtend.o.
952 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
954 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
955 (longopts): Add new option --exclude-libs.
956 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
957 (gld_${EMULATION_NAME}_parse_args): Use it.
958 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
959 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
961 (pe_dll_add_excludes): Set excludes->type.
962 (auto_export): Add new variable libname and set to archive basename if
963 abfd. Use it when filtering default and user-specified libarary
964 excludes. Let string "ALL" mean all libs when filtering user-specified
966 * ld.texinfo: Document --exclude-libs.
968 2002-05-22 Alan Modra <amodra@bigpond.net.au>
970 * ldemul.c (ldemul_new_vers_pattern): New function.
971 * ldemul.h (ldemul_new_vers_pattern): Declare.
972 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
973 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
974 * emultempl/ppc64elf.em (dotsyms): New static var.
975 (gld${EMULATION_NAME}_new_vers_pattern): New function.
976 (LDEMUL_NEW_VERS_PATTERN): Define.
977 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
978 (PARSE_AND_LIST_LONGOPTS): Likewise.
979 (PARSE_AND_LIST_ARGS_CASES): Handle them.
980 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
982 * emultempl/armcoff.em: Likewise.
983 * emultempl/armelf_oabi.em: Likewise.
984 * emultempl/beos.em: Likewise.
985 * emultempl/elf32.em: Likewise.
986 * emultempl/generic.em: Likewise.
987 * emultempl/gld960.em: Likewise.
988 * emultempl/gld960c.em: Likewise.
989 * emultempl/linux.em: Likewise.
990 * emultempl/lnk960.em: Likewise.
991 * emultempl/m68kcoff.em: Likewise.
992 * emultempl/mipsecoff.em: Likewise.
993 * emultempl/pe.em: Likewise.
994 * emultempl/sunos.em: Likewise.
995 * emultempl/ticoff.em: Likewise.
996 * emultempl/vanilla.em: Likewise.
998 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1000 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1001 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1002 (LIB_SEARCH_DIRS): No need to use "tr".
1003 (COMPILE_IN): Only set for native targets.
1004 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1005 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1006 * configure.tgt (powerpc*): Set tdir_*.
1007 (powerpcle*): Correct targ_extra_emuls.
1008 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1009 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1011 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1013 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1014 calling lang_add_entry.
1016 2002-05-21 H.J. Lu (hjl@gnu.org)
1018 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1020 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1022 * ld.texinfo: Updated for --allow-multiple-definition and
1025 * ldmain.c (main): Initialize the allow_multiple_definition
1028 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1029 (ld_options): Add --allow-multiple-definition.
1030 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1032 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1034 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1035 (earmelfb_nbsd.c): New rule.
1036 * Makefile.in: Regenerate.
1037 * configure.tgt (armeb-*-netbsdelf*): New target.
1038 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1039 (arm-*-netbsd*): Likewise.
1040 * emulparams/armelfb_nbsd.sh: New file.
1042 2002-05-18 Tom Rix <trix@redhat.com>
1044 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1047 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1049 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1050 * Makefile.in: Regenerate.
1051 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1053 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1055 * emulparams/avr1.sh: New file.
1056 * emulparams/avr2.sh: New file.
1057 * emulparams/avr3.sh: New file.
1058 * emulparams/avr4.sh: New file.
1059 * emulparams/avr5.sh: New file.
1060 * scripttempl/avr.sc: New file.
1062 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1064 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1065 (lang_place_orphans): Abort if just_syms_flag.
1067 2002-05-10 Tom Rix <trix@redhat.com>
1069 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1070 architecture and machine information in the output bfd.
1071 (gld*_before_parse): Remove old arch and machine code.
1072 (choose_target): Rename to gld*_choose_target.
1073 (rtld): Change type to int.
1074 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1075 objects in XCOFF archives.
1076 * ldfile.h: Update copyright date.
1078 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1080 * ldmain.c (main): Enable -z combreloc by default.
1082 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1084 * Makefile.am: Honour DESTDIR.
1085 * Makefile.in: Regenerate.
1087 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1089 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1090 (lang_enter_overlay): Remove the last two parameters.
1091 (lang_leave_overlay): Take them here instead.
1092 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1093 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1094 than lang_enter_overlay.
1095 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1096 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1097 (lang_size_sections_1): Evaluate it.
1098 (lang_leave_output_section_statement): Rework LMA lookup.
1099 (overlay_lma, overlay_nocrossrefs): Remove.
1100 (lang_enter_overlay): Remove LMA and crossref arguments.
1101 (lang_enter_overlay_section): Don't set the LMA here.
1102 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1103 assignment to the last section's update_dot_tree. Unconditionally
1104 use the load and run-time regions specified in the OVERLAY statement.
1105 Likewise the first section's LMA. Only set the other sections' LMAs
1106 when no load region is given.
1108 2002-05-06 Nick Clifton <nickc@redhat.com>
1110 * po/sv.po: New translation.
1112 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1114 * emultempl/hppaelf.em (build_section_lists): New function.
1115 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1116 and build_section_lists.
1118 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1120 * ld.h: Fix formatting.
1121 * ldexp.c: Likewise.
1122 * ldfile.c: Likewise.
1123 * ldlang.c: Likewise.
1124 * ldmain.c: Likewise.
1125 * lexsup.c: Likewise.
1126 * pe-dll.c: Likewise.
1128 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1130 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1131 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1132 (build_section_lists): Do output_section tests here.
1134 2002-04-30 Tom Rix <trix@redhat.com>
1136 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1138 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1140 Long branch stubs, multiple stub sections.
1141 * emultempl/ppc64elf.em: Include ldctor.h.
1142 (stub_file): New var.
1143 (group_size): New var.
1144 (ppc_create_output_section_statements): New function.
1145 (struct hook_stub_info): New.
1146 (hook_in_stub): New function.
1147 (ppc_add_stub_section): New function.
1148 (ppc_layout_sections_again): New function.
1149 (build_section_lists): New function.
1150 (gld${EMULATION_NAME}_finish): Rewrite.
1151 (real_func): New var.
1152 (ppc_for_each_input_file_wrapper): New function.
1153 (ppc_lang_for_each_input_file): New function.
1154 (lang_for_each_input_file): Define.
1155 (PARSE_AND_LIST_PROLOGUE): Define.
1156 (PARSE_AND_LIST_LONGOPTS): Define.
1157 (PARSE_AND_LIST_OPTIONS): Define.
1158 (PARSE_AND_LIST_ARGS_CASES): Define.
1159 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1161 2002-04-30 Tom Rix <trix@redhat.com>
1163 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1164 -blibpath, -bnolibpath support.
1166 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1168 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1169 (eelf32ppcwindiss.c): New target.
1170 * Makefile.in: Regenerated.
1171 * configure.tgt: Add support for powerpc-*-windiss.
1172 * emulparams/elf32ppcwindiss.sh: New file.
1174 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1176 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1177 * ldexp.c (exp_print_token): Add "infix_p" argument.
1178 (exp_print_tree): Update accordingly.
1180 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1182 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1183 * Makefile.in: Regenerate.
1184 * mpw-elfmips.c: Delete.
1185 * mpw-eppcmac.c: Delete.
1186 * mpw-esh.c: Delete.
1187 * mpw-idtmips.c: Delete.
1189 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1191 * emulparams/shelf32.sh (MACHINE): Now sh5.
1193 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1195 * ldgram.y: Fix syntax warning.
1197 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1199 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1200 to prevent "-n" from being taken as an abbreviation for
1201 "--no-pipeline-knowledge".
1203 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1205 * ldlang.c (lang_size_sections_1): Don't complain about
1206 SEC_NEVER_LOAD sections having no memory region specified.
1208 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1210 2002-04-07 matthew green <mrg@redhat.com>
1212 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1214 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1216 * dep-in.sed: Cope with absolute paths.
1217 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1219 * Makefile.in: Regenerate.
1221 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1223 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1225 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1227 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1228 is smaller than maximum, round dot up to common page boundary.
1230 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1232 * configure.host: Set up for generic hosts first, then tweak as
1233 necessary in more specific targets.
1234 (HOSTING_LIBS): Include libgcc_eh.a if found.
1236 2002-03-23 Andreas Jaeger <aj@suse.de>
1238 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1240 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1242 * Makefile.am: Run "make dep-am".
1243 * Makefile.in: Regenerate.
1245 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1247 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1249 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1251 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1252 add the symbol to the linker hash table immediately.
1253 (lang_place_undefineds): Split symbol creation out..
1254 (insert_undefined): ..to here.
1256 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1258 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1259 the contents of the buffer returned from basename function will are
1260 getting overwritten while still being used.
1262 2002-03-18 Jan Hubicka <jh@suse.cz>
1263 Andreas Jaeger <aj@suse.de>
1264 Andreas Schwab <schwab@suse.de>
1266 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1267 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1268 set libraries to default to lib64 paths.
1270 2002-03-18 Tom Rix <trix@redhat.com>
1272 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1273 * configure.tgt : Same.
1274 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1275 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1276 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1277 emulation parameters for better -b32, -b64 support.
1278 * emulparms/aixrs6.sh : Same.
1279 * emulparms/ppcmacos.sh : Same.
1280 * emultempl/aix.em (choose_target) : Use new emulation parameters
1281 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1282 * Makefile.in : Regenerate.
1284 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1286 * po/fr.po: Updated version.
1288 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1290 * ldmain.c (main): Move .text readonly flag fudges from here..
1291 * ldlang.c (lang_process): ..to here.
1293 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1295 * ldlang.c (lang_check): Remove the word size check added in last
1296 change. Treat emitrelocations case as for relocatable links.
1298 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1300 * po/fr.po: Updated version.
1302 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1304 * ldlang.c (lang_check): Do relocatable link checks first, so that
1305 warn_mismatch can't override. Check compatible and word size too.
1307 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1309 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1311 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1313 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1316 2002-03-04 H.J. Lu <hjl@gnu.org>
1318 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1319 .fini_array in the data segment.
1321 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1323 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1325 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1327 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1328 .init_array, and .fini_array.
1330 2002-02-20 Andreas Schwab <schwab@suse.de>
1332 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1333 .IA64_unwind* in a relocatable link.
1335 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1337 * NEWS: Mark 2.12 branch.
1339 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1341 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1342 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1344 2002-02-18 Tom Rix <trix@redhat.com>
1346 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1347 (gld*_before_allocation): Same.
1348 (gld*_create_output_section_statements): Generate
1349 __rtinit if run time linking. Add librtl.a to the link.
1350 (gld*_read_file): Clean.
1352 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1354 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1356 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1358 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1359 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1360 and eelf64alpha_fbsd.
1361 * Makefile.in: Regenerate.
1362 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1363 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1364 use a FreeBSD-specific emulation rather than the psABI one.
1365 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1366 for all FreeBSD ELF systems.
1367 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1369 * emulparams/elf32ppc_fbsd.sh: Likewise.
1370 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1371 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1372 * emulparams/elf64alpha_fbsd.sh: Likewise.
1373 * emulparams/elf_i386_fbsd.sh: Likewise.
1374 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1376 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1378 * po/tr.po: Updated version.
1380 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1382 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1385 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1387 * emultempl/mmo.em (mmo_after_open): Don't call
1388 _bfd_mmix_check_all_relocs when producing ELF output.
1390 2002-02-15 Richard Henderson <rth@redhat.com>
1392 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1393 definition. Emit a unop+nop pair.
1395 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1397 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1398 for presence of .MMIX.reg_contents.linker_allocated before early
1401 * NEWS: Mention support for MMIX.
1403 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1405 Support arbitrary length fill patterns.
1406 * ld.texinfo (Output Section Fill): Describe fill expressions.
1407 (FILL): Refer to the above.
1408 * ldexp.h (etree_value_type): Add "str" field.
1409 (union etree_union): Add "str" to "value" struct.
1410 (exp_bigintop): Declare.
1411 (exp_get_fill): Declare.
1412 * ldexp.c: Include "safe-ctype.h".
1413 (exp_intop): Set value.str to NULL.
1414 (exp_bigintop): New function.
1415 (new_rel): Pass in "str", and set new.str from it.
1416 (new_rel_from_section): Set new.str to NULL.
1417 (fold_name): Adjust calls to new_rel.
1418 (exp_fold_tree): Likewise.
1419 (exp_get_fill): New function.
1420 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1421 (INT): Returns a "bigint". Adjust all code handling INTs.
1422 (fill_opt): Returns a "fill".
1423 (fill_exp): Split out of fill_opt, use for FILL.
1424 * ldlang.h (struct _fill_type): New.
1425 (fill_type): Move typedef to ldexp.h.
1426 (lang_output_section_statement_type): "fill" is now a pointer.
1427 (lang_fill_statement_type): Likewise.
1428 (lang_padding_statement_type): Likewise.
1429 (lang_add_fill): Now takes a "fill_type *" param.
1430 (lang_leave_output_section_statement): Likewise.
1431 (lang_do_assignments): Likewise.
1432 (lang_size_sections): Likewise.
1433 (lang_leave_overlay_section): Likewise.
1434 (lang_leave_overlay): Likewise.
1435 * ldlang.c: Include ldgram.h after ldexp.h.
1436 (lang_output_section_statement_lookup): Adjust for fill_type change.
1437 (print_fill_statement): Likewise.
1438 (print_padding_statement): Likewise.
1439 (insert_pad): Now takes a "fill_type *" arg.
1440 (size_input_section): Likewise.
1441 (lang_size_sections_1): Likewise.
1442 (lang_size_sections): Likewise.
1443 (lang_do_assignments): Likewise.
1444 (lang_add_fill): Likewise.
1445 (lang_leave_output_section_statement): Likewise.
1446 (lang_leave_overlay_section): Likewise.
1447 (lang_leave_overlay): Likewise.
1448 Adjust all callers of the above function.
1449 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1450 starting with "0X" as well as "0x". Return bigint.str for hex
1451 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1452 Always use base 16 for numbers starting with "$".
1453 * ldmain.c: Include ldgram.h after ldexp.h.
1454 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1455 of bfd_fill_link_order.
1456 * pe-dll.c: Adjust lang_do_assignments calls.
1457 * emultempl/elf32.em: Likewise.
1458 * emultempl/hppaelf.em: Likewise.
1459 * emultempl/ppc64elf.em: Likewise.
1460 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1461 lang_add_assignment call.
1462 * emultempl/pe.em: Likewise.
1464 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1466 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1467 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1468 the pattern in question is not a regexp.
1469 * ldlang.c: Likewise.
1470 * ldlang.h: Likewise.
1471 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1473 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1475 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1476 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1477 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1478 * ldexp.c (exp_data_seg): New variable.
1479 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1480 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1481 (exp_fold_tree): Handle DATA_SEGMENT_END.
1482 Pass allocation_done when recursing instead of hardcoding
1483 lang_allocating_phase_enum.
1484 * ldexp.h (exp_data_seg): New.
1485 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1486 (lang_size_sections): New.
1487 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1488 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1489 if COMMONPAGESIZE is defined.
1490 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1491 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1492 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1493 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1494 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1497 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1499 * Makefile.in: Regenerate.
1501 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1503 * lexsup.c: Remove strtoul declaration.
1505 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1507 * ldmain.c: Add prototype for main ().
1508 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1509 * emultempl/lnk960.em (lnk960_choose_target): Function should
1512 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1514 * ldlang.c (entry_section): New initialised variable.
1515 (lang_finish): Use it.
1516 * ldlang.h (entry_section): Declare.
1517 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1518 entry_section to ".opd".
1520 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1522 * ld.texinfo (Options): Add back in -nostdlib documentation,
1523 which had been inadvertently removed.
1525 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1527 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1528 register section vma to a sane value after emitting error. Make
1529 fatal conditions cause program exit when emitting message.
1531 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1533 * configure.tgt: Add or32-*-rtems target.
1535 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1537 Contribute sh64-elf.
1538 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1539 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1540 in OTHER_RELOCATABLE_SECTIONS.
1541 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1542 * emulparams/shelf32.sh (STACK_ADDR): Define.
1543 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1544 (OTHER_SECTIONS): this. Removed stack settings.
1545 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1546 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1547 2001-03-12 DJ Delorie <dj@redhat.com>
1548 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1549 relaxing if any shmedia or mixed sections are found.
1550 2001-03-07 DJ Delorie <dj@redhat.com>
1551 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1552 einfo. Gracefully decline to output to non-elf formats.
1553 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1554 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1555 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1556 * emulparams/shelf32.sh: Ditto.
1557 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1558 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1560 2001-01-10 Ben Elliston <bje@redhat.com>
1561 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1562 non-portable shell constructs. From Hans-Peter Nilsson.
1563 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1564 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1565 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1566 dependencies to the shell script include chain.
1567 * Makefile.in: Regenerate.
1568 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1569 * emultempl/sh64elf.em: Update and tweak comments.
1570 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1571 make a .cranges section SEC_IN_MEMORY.
1572 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1573 * emultempl/sh64elf.em
1574 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1575 .cranges section found to be necessary; continue and set stored
1576 section contents flags for sections with non-mixed contents.
1577 Use a struct sh64_section_data container and sh64_elf_section_data
1578 to store contents-type flags.
1579 Remove unused update of "isec".
1580 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1581 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1582 access contents-type flags. Assert that the associated container
1583 is initialized. Use that container, not elf_gp_size, to hold size
1584 of linker-generated cranges contents.
1585 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1586 * emultempl/sh64elf.em
1587 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1588 there's already a .cranges section. When section flag difference
1589 is found, don't NULL-check cranges a second time. Tweak comments.
1590 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1591 merging, not max size, as size of ld-generated .cranges contents.
1592 Don't set ELF section flags in output section. When checking for
1593 needed .cranges descriptors, don't use a variable; compare
1594 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1596 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1597 * emultempl/sh64elf.em: New file.
1598 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1599 * Makefile.in: Regenerate.
1600 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1601 (OTHER_RELOCATING_SECTIONS): Ditto.
1602 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1603 * emulparams/shlelf32.sh: Stub out all settings except
1604 OUTPUT_FORMAT. Source shelf32.sh.
1605 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1606 OTHER_RELOCATING_SECTIONS.
1607 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1608 * emulparams/shlelf64.sh: Stub out all settings except
1609 OUTPUT_FORMAT. Source shelf64.sh.
1610 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1611 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1613 (DATA_START_SYMBOLS): Define, provide ___data.
1614 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1615 for consecutive .data section.
1616 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1617 section after .data section.
1618 * emulparams/shlelf64.sh: Ditto.
1619 * emulparams/shelf32.sh: Ditto.
1620 (ALIGNMENT): Define to 8.
1621 * emulparams/shelf32.sh: Ditto.
1622 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1623 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1624 built-in linker scripts.
1625 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1626 * emulparams/shlelf64.sh: New.
1627 * emulparams/shelf64.sh: New.
1628 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1630 * Makefile.am: Add support for shlelf64 and shelf64.
1631 * Makefile.in: Regenerate.
1632 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1633 * configure.tgt (sh64-*-elf*): Add shelf as default.
1634 Add shlelf to targ_extra_emuls.
1635 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1636 * emulparams/shelf32.sh: New file.
1637 * emulparams/shlelf32.sh: New file.
1638 * Makefile.am: Add support for shlelf32 and shelf32.
1639 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1640 * Makefile.in: Regenerate.
1642 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1644 * ldlang.c (lang_reset_memory_regions): Rename from
1645 reset_memory_regions. Change all callers. Make public.
1646 * ldlang.h (lang_reset_memory_regions): Prototype.
1647 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1648 lang_reset_memory_regions before lang_size_sections.
1649 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1650 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1652 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1654 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1655 arithmetic when checking for too many global registers.
1657 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1659 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1660 (ehppanbsd.c): New rule.
1661 * Makefile.in: Regenerate.
1662 * configure.tgt (hppa*-*-netbsd*): New target.
1663 * emulparams/hppalinux.sh: Add comment to check other files
1664 that source this file it is modified, and list which
1666 * emulparams/hppanbsd.sh: New file.
1668 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1670 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1673 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1675 Support on-demand global register allocation from
1676 R_MMIX_BASE_PLUS_OFFSET relocs.
1677 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1678 mmix_set_reg_section_vma. Call
1679 _bfd_mmix_finalize_linker_allocated_gregs.
1680 (mmix_before_allocation): New function.
1681 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1682 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1683 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1684 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1685 before .MMIX.reg_contents.
1686 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1687 (mmo_after_open): New function.
1688 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1689 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1690 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1692 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1694 * emulparams/or32.sh: New file.
1695 * emulparams/or32elf.sh: New file.
1696 * scripttempl/or32.sc: New file.
1697 * configure.tgt : Add support for or32.
1698 * configure: Regenerate
1699 * Makefile.am: Add support for or32.
1700 * Makefile.in: Regenerate.
1701 * NEWS: Mention support for or32.
1702 * po/ld.pot: Regenerate.
1704 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1705 Mitch Lichtenberg <mpl@broadcom.com>
1707 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1708 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1709 reloc creation (ld --embedded-relocs).
1711 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1713 * configure: Regenerated.
1715 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1717 * Makefile.am (install): Depend on install-info.
1718 * Makefile.in: Regenerate.
1720 2002-01-26 Christian Rose <menthos@menthos.com>
1722 * ldmain.c (main): Use full sentences to ease translation.
1724 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1726 * po/fr.po: Updated version.
1728 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1730 * po/es.po: Updated version.
1732 2002-01-25 Andreas Jaeger <aj@suse.de>
1734 * ldlex.l (yy_input): Correct error check.
1736 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1738 * ldmisc.c (demangle): Put back dots when string not demangled.
1740 2002-01-22 Richard Henderson <rth@redhat.com>
1742 * emulparams/elf64alpha.sh (NOP): Use unop.
1744 2002-01-21 Andreas Jaeger <aj@suse.de>
1746 * ldlex.l: Use fread instead of read.
1748 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1750 * configure.tgt (ia64-*-netbsd*): New target.
1752 2002-01-21 H.J. Lu <hjl@gnu.org>
1754 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1756 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1758 2002-01-18 Andreas Jaeger <aj@suse.de>
1760 * ldver.c (ldversion): Update year.
1762 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1764 * po/ld.pot: Regenerate.
1766 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1768 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1769 * Makefile.in: Regenerate.
1770 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1771 * emultempl/ppc64elf.em: New file.
1773 2002-01-15 DJ Delorie <dj@redhat.com>
1775 * scripttempl/pe.sc: Add support for constructor priorities.
1777 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1779 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1780 * emulparams/avr23xx.sh: Likewise.
1781 * emulparams/avr4433.sh: Likewise.
1782 * emulparams/avr44x4.sh: Likewise.
1783 * emulparams/avr85xx.sh: Likewise.
1784 * emulparams/avrmega103.sh: Likewise.
1785 * emulparams/avrmega161.sh: Likewise.
1786 * emulparams/avrmega603.sh: Likewise.
1787 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1789 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1791 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1792 archive is excluded.
1794 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1796 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1797 (eshelf_nbsd.c): New rule.
1798 (eshlelf_nbsd.c): New rule.
1799 * Makefile.in: Regenerate.
1800 * configure.tgt (sh*le-*-netbsdelf*): New target.
1801 (sh*-*-netbsdelf*): New target.
1802 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1803 * ld/emulparams/shelf_nbsd.sh: New emulation.
1804 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1806 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1808 * po/es.po: New file: Spanish translation.
1809 * configure.in (ALL_LINGUAS): Add es.
1810 * configure: Regenerate.
1812 2002-01-06 John Marshall <jmarshall@acm.org>
1814 * ld.texinfo: Note that --emit-relocs is currently only
1815 implemented for ELF.
1817 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1819 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1820 of bfd_section_list_remove and bfd_section_list_insert macros.
1821 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1822 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1824 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1826 * configure.tgt (x86_64-*-netbsd*): New target.
1828 2001-12-21 Tom Rix <trix@redhat.com>
1830 (gld*_create_output_section_statements): New function.
1831 For -binitfini support.
1832 * emultempl/aix.em (gld*_before_parse): Fix comment.
1833 * emultempl/aix.em (gld*_parse_args): Fix comment.
1835 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1837 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1839 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1841 * configure.tgt (arm-*-netbsdelf*): Add target.
1842 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1843 * emulparams/armelf_nbsd.sh: Added.
1844 * Makefile.am: Add rules for earmelf_nbsd.
1845 * Makefile.in: Regenerate.
1847 2001-12-19 Andreas Jaeger <aj@suse.de>,
1848 Susanne Oberhauser <froh@suse.de>
1850 * configure.host: Add rules for x86_64-*linux-gnu. Change
1851 s390x-linux entry to use gcc to report configuration, replace gcc
1852 with $CC in s390-linux
1854 2001-12-19 Andreas Jaeger <aj@suse.de>
1856 * ld.texinfo (VERSION): Fix markup.
1858 2001-12-18 matthew green <mrg@eterna.com.au>
1860 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1861 (m68kelfnbsd.c): New rule.
1862 * Makefile.in: Regenerate.
1863 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1864 (m68*-*-netbsd*4k*): .. this.
1865 (m68*-*-netbsdelf*): New target.
1866 (m68*-*-netbsd*): Also include ELF support.
1867 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1868 * emulparams/m68kelfnbsd.sh: New emulation.
1870 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1872 * ldgram.y (vers_node): Support anonymous version tags.
1873 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1874 tag is not defined together with non-anonymous versions.
1875 * ld.texinfo: Document it.
1877 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1879 * po/tr.po: New file: Turkish translation.
1880 * configure.in (ALL_LINGUAS): Add tr.
1881 * configure: Regenerate.
1883 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1885 * Makefile.am: Add rules for eelf64alpha_nbsd.
1886 * Makefile.in: Regenerate.
1887 * configure.tgt (alpha*-*-netbsd*): Set
1888 targ_emul to elf64alpha_nbsd.
1889 * emulparams/elf64alpha_nbsd.sh: Added.
1891 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1893 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1894 section_tail when fiddling with section list.
1895 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1896 broken into separate strings to make translation easier.
1897 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1898 fiddling with section list.
1899 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1901 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1903 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1905 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1907 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1909 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1911 * emultempl/elf32.em (finish): Supply output_bfd
1912 to bfd_elf*_discard_info.
1913 (OPTION_EH_FRAME_HDR): Define.
1914 (longopts): Add --eh-frame-hdr.
1915 (parse_args): Handle it.
1916 (list_options): Add --eh-frame-hdr to help.
1917 * emultempl/hppaelf.em (finish): Supply output_bfd
1918 to bfd_elf*_discard_info.
1919 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1921 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1923 * lexsup.c (parse_args): Don't pass shortopts to second call to
1924 getopt functions. Restore optind rather than decrementing before
1925 second call. Remove errind as it now duplicates last_optind.
1927 2001-12-11 Christopher Faylor <cgf@redhat.com>
1929 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1931 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1932 Richard Henderson <rth@redhat.com>
1934 * Makefile.am: Add support for xstormy16.
1935 * configure.tgt: Add support for xstormy16.
1936 * Makefile.in: Regenerate.
1937 * emulparams/elf32xstormy16.sh: New file.
1938 * scripttempl/xstormy16.sc: New file.
1940 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1942 * Makefile.in (LIB_PATH): Make configurable.
1943 (GENSCRIPTS): Set LIB_PATH in environment.
1944 * configure.in: Substitute LIB_PATH.
1945 * configure: Regenerate.
1946 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1947 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1949 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1951 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1952 describing the -N option so that it is easier to translate into
1955 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1957 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1958 statements describing a single option with a single, newline
1959 escaped fprintf. This allows better translation into other
1962 * ldmain.c (add_archive_element): Combine multiple strings
1963 into a single string to permit better translation into other
1966 2001-12-05 Tom Rix <trix@redhat.com>
1968 * Makefile.am: Remove eaixppc64.
1969 * Makefile.in: Regenerate.
1971 2001-12-04 Tom Rix <trix@redhat.com>
1973 * emultempl/aix.em (choose_target): Change default target to
1974 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1976 (gld*_read_file): Fix typo.
1977 (change_symbol_mode): Add prototype.
1980 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1981 * emulparams/aixrs6.sh : Same.
1982 * emulparams/ppcmacos.sh : Same.
1983 * emulparams/aixppc64.sh : Delete file.
1984 * emultempl/aix.em : Formatting changes.
1986 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1988 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1989 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1991 (OTHER_END_SYMBOLS): Fix formatting.
1992 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1993 (OTHER_END_SYMBOLS): Fix formatting.
1995 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1997 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1999 2001-12-02 Tom Rix <trix@redhat.com>
2001 * configure.tgt : Remove eaixppc64 emulations.
2002 * Makefile.in : Remove eaixppc64.c
2003 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2004 (ldemul_default_target): Same.
2005 * emultempl/gld960.em (gld960_choose_target): Same.
2006 * emultempl/gld960c.em (gld960_choose_target): Same.
2007 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2008 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2009 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2010 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2011 * emultempl/aix.em (choose_target): New function. Handle emulation of
2014 2001-11-27 H.J. Lu <hjl@gnu.org>
2016 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2017 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2018 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2019 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2020 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2021 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2022 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2023 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2025 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2028 (REL_SDATA): Likewise.
2029 (REL_SBSS): Likewise.
2030 (REL_SDATA2): Likewise.
2031 (REL_SBSS2): Likewise.
2032 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2035 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2037 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2039 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2041 2001-11-22 H.J. Lu <hjl@gnu.org>
2043 * Makefile.in: Regenerated with automake based on automake
2044 1.4-8 in RedHat 7.1.
2046 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2048 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2049 (config.status): Delete rule.
2050 Add extra dependencies to cover sourced emulparams files.
2051 * Makefile.in: Regenerate.
2053 * scripttempl/elf.sc: Order <section>, <section>.* and
2054 corresponding linkonce sections as seen in input files.
2055 Formatting fixes. Zero vma of all sections if not relocating.
2056 (STACK): Define and insert if STACK_ADDR defined.
2057 (OTHER_RELOCATING_SECTIONS): Delete.
2058 (OTHER_END_SYMBOLS): Define.
2059 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2060 (OTHER_READWRITE_SECTIONS): Likewise.
2061 (OTHER_GOT_SECTIONS): Likewise.
2062 (OTHER_SDATA_SECTIONS): Likewise.
2063 (OTHER_BSS_SECTIONS): Likewise.
2064 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2065 (OTHER_READWRITE_SECTIONS): Likewise.
2066 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2067 (OTHER_READWRITE_SECTIONS): Likewise
2069 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2070 (STACK_ADDR): Define.
2071 * emulparams/armelf_oabi.sh: As for armelf.sh.
2072 * emulparams/elf32mcore.sh: As for armelf.sh.
2073 * emulparams/h8300elf.sh: As for armelf.sh.
2074 * emulparams/mn10200.sh: As for armelf.sh.
2075 * emulparams/shelf.sh: As for armelf.sh.
2077 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2078 (OTHER_END_SYMBOLS): Define.
2079 * emulparams/m32relf.sh: As for elf32fr30.sh.
2080 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2081 * emulparams/h8300self.sh: As for elf32fr30.sh.
2083 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2084 defines with RELOCATING test.
2085 (OTHER_SDATA_SECTIONS): Likewise.
2086 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2087 (OTHER_END_SYMBOLS): ..this.
2088 * emulparams/crislinux.sh: As for criself.sh.
2090 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2092 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2093 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2094 normal and linkonce sections as seen in input files.
2095 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2096 (TEXT_DYNAMIC): Likewise.
2097 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2098 (OTHER_SDATA_SECTIONS): Likewise.
2099 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2100 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2101 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2102 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2103 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2104 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2105 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2106 sections as seen in input files.
2107 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2108 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2110 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2111 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2112 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2113 (OTHER_SECTIONS): Instead, use this..
2114 (OTHER_END_SYMBOLS): ..and this.
2116 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2117 * emulparams/elf32bsmip.sh: Likewise.
2118 * emulparams/elf32btsmip.sh: Likewise.
2119 * emulparams/elf32ebmip.sh: Likewise.
2120 * emulparams/elf32lmip.sh: Likewise.
2121 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2122 * emulparams/elf32lsmip.sh: Likewise.
2123 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2124 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2125 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2126 * emulparams/elf64btsmip.sh: Likewise.
2127 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2128 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2129 * emulparams/elf32ppclinux.sh: Likewise.
2130 * emulparams/elf32ppcsim.sh: Likewise.
2131 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2132 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2133 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2134 * emulparams/h8300self.sh: Likewise.
2135 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2136 * emulparams/sh.sh: Comment.
2137 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2138 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2139 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2141 2001-11-21 David Heine <dlheine@tensilica.com>
2142 Alan Modra <amodra@bigpond.net.au>
2144 * ldlang.c (map_input_to_output_sections): Replace "break"
2145 accidentally removed with 2001-08-03 change.
2146 (lang_gc_sections_1): Likewise.
2148 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2150 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2152 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2154 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2155 of false when calling lang_size_sections.
2156 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2158 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2160 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2161 function when LDEMUL_FINISH isn't set to the same name. Don't
2162 call ${LDEMUL_FINISH}.
2163 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2164 * emultempl/armelf.em (arm_elf_finish): Call
2165 gld${EMULATION_NAME}_finish.
2166 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2167 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2168 hppaelf_layout_sections_again if necessary.
2169 (need_laying_out): New var.
2170 (hppaelf_layaout_sections_again): Rename to
2171 hppaelf_layout_sections_again. Clear need_laying_out.
2172 (PARSE_AND_LIST_OPTIONS): Format text.
2174 2001-11-14 H.J. Lu <hjl@gnu.org>
2176 * emultempl/armelf.em (arm_elf_finish): Renamed from
2177 gld${EMULATION_NAME}_finish.
2178 (LDEMUL_FINISH): Set to arm_elf_finish.
2180 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2182 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2183 (struct ld_emulation_xfer_struct): Use it.
2185 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2187 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2188 additional symbols referenced by newer crt0.o files from HP.
2190 2001-11-12 Anthony Green <green@redhat.com>
2192 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2194 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2196 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2197 * Makefile.in: Regenerate.
2199 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2201 * ld.texinfo: Use @command for commands, @option for options.
2202 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2204 * Makefile.in: Rebuild.
2206 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2208 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2209 Add support for targets.
2211 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2213 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2214 * configure: Regernate.
2215 * po/fr.po: New file.
2216 * po/sv.po: New file.
2218 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2220 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2221 as little endian default and to support big endian.
2223 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2225 * ld.texinfo (Options): Document new option, -nostdlib.
2226 * lexsup.c (OPTION_NOSTDLIB): New definition.
2227 (ld_options): Add entry for "nostdlib".
2228 (parse_args): Handle OPTIONS_NOSTDLIB.
2229 * ldfile.c (ldfile_add_library_path): Don't add directories
2230 to the search path if they weren't specified on the command line
2231 and -nostdlib was specified.
2232 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2234 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2236 * lexsup.c (parse_args): Prevent infinite parsing loop when
2237 "-rpath.a" is specified on the command line.
2238 Replace calls to fprintf with calls to einfo.
2240 2001-10-31 John Marshall <jmarshall@acm.org>
2242 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2243 appear only once across all the linker scripts involved in a link
2244 invocation no longer applies. Make the documentation reflect
2247 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2249 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2251 (sh-*-linux*): Added targ_extra_libpath.
2253 2001-10-31 David Heine <dlheine@tensilica.com>
2255 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2256 for padding statements.
2258 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2260 * configure.tgt (mmix-*-*): New target.
2261 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2262 Add dependencies to match.
2263 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2264 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2265 scripttempl/mmo.sc: New files.
2266 * gen-doc.texi: @set MMIX.
2267 * ld.texinfo: Ditto.
2268 [MMIX] Add MMIX node.
2269 * Makefile.in: Regenerate.
2271 2001-10-29 Kazu Hirata <kazu@hxi.com>
2273 * ldlang.c: Fix a comment typo.
2275 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2277 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2278 entries, and match *-*-linux*.
2280 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2282 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2283 with ldlex_script, ldlex_popstate.
2284 (ifile_p1): Likewise.
2285 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2287 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2288 to 1. Don't BEGIN(SCRIPT).
2289 (lex_redirect): Similarly.
2290 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2292 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2294 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2295 __EH_FRAME_END__ and accept eh frames into data section.
2296 Add ctor and dtor sections.
2298 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2300 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2301 (auto-export): Fix indentation.
2303 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2305 * pe-dll.c (autofilter_objectlist): Add startup objects
2307 (auto-export): Constify char * p.
2308 Extract file basename and use strcmp rather than ststr
2311 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2313 * ldmain.c (get_emulation): Improve comment about the handling
2316 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2318 * po/POTFILES.in: Regenerate.
2320 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2322 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2323 -z nocopyreloc and -z nocombreloc usage strings.
2325 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2327 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2330 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2332 * scripttempl/armaout.sc: Place .bss section after end of aligned
2333 data section to match behaviour of aout code in constructrion of
2336 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2338 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2339 startup files for mingw32 dlls to list.
2341 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2343 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2345 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2347 * configure.tgt (targ): Add arm9e-*-elf.
2349 2001-10-05 H.J. Lu <hjl@gnu.org>
2351 * genscripts.sh: Fix a typo in the last change.
2353 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2355 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2356 -z nocombreloc in usage.
2358 2001-10-03 Jim Blandy <jimb@redhat.com>
2360 * genscripts.sh: Include a comment at the top of each generated
2361 script, explaining its purpose.
2363 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2365 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2366 * NEWS: Mention -z nocopyreloc.
2367 * ld.texinfo (Options): Describe nocopyreloc.
2369 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2371 * configure: Regenerate.
2373 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2375 * ldver.h (ld_program_version): Remove declaration.
2376 * lexsup.c (parse_args): Move printing of copyright message..
2377 * ldver.c (ldversion): .. to here.
2378 Use BFD_VERSION_STRING in place of BFD_VERSION.
2379 (ld_program_version): Remove.
2380 * Makefile.am (Makefile): Depend on bfd/configure.in.
2382 * Makefile.in: Regenerate.
2384 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2386 * Makefile.am: Update dependencies with "make dep-am".
2387 * Makefile.in: Regenerate.
2389 2001-09-29 John Reiser <jreiser@BitWagon.com>
2391 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2392 * lexsup.c: Add --no-define-common commandline option.
2393 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2394 * ldlex.l: Likewise.
2395 * ld.h: Add command_line.inhibit_common_definition.
2396 * ldmain.c (main): Initialize.
2397 * ld.texinfo: Document.
2399 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2401 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2403 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2405 * ldmisc.c (USE_STDARG): Remove.
2406 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2411 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2412 declarations. Update copyright.
2414 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2416 * pe-dll.c: Remove obsoleted declaration of
2417 pe_get_data_import_dll_name.
2418 (pe_create_import_fixup): Fix thinko.
2420 * ld.texinfo(enable-auto-import): Clarify the explanation.
2422 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2424 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2425 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2426 DLL_SUPPORT controlled code.
2428 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2430 * emultempl/pe.em(pe_data_import_dll): Make static.
2431 (pe_get_data_import_dll_name): New accessor function.
2432 * pe-dll.c(pe_create_import_fixup): call
2433 pe_get_data_import_dll_name() from pe.em, instead of
2434 directly accessing pe_data_import_dll variable from pe.em.
2436 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2438 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2439 (def_file_add_directive): Use ISSPACE instead of isspace.
2440 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2441 isdigit/isxdigit/isalpha/isalnum.
2442 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2443 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2444 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2445 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2447 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2448 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2450 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2451 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2452 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2453 (ctor_prio): Use ISDIGIT instead of isdigit.
2454 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2455 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2456 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2458 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2459 (stricpy): Use TOLOWER instead of isupper/tolower.
2460 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2461 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2462 (lex_warn_invalid): Use ISPRINT instead of isprint.
2463 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2464 (main): For gettext, also set the LC_CTYPE locate facet.
2465 (add_keepsyms_file): Use ISSPACE instead of isspace.
2466 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2467 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2468 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2469 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2470 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2471 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2472 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2473 (quoteput): Use ISSPACE instead of isspace.
2474 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2477 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2479 * deffilep.y (def_stash_module): Constify "name" param.
2481 * pe-dll.c: Replace CONST with const throughout.
2482 (quick_symbol): Constify "n1", "n2", "n3" params.
2483 (make_singleton_name_thunk): Constify "import" param. Make
2484 "buffer_len" a size_t.
2485 (make_import_fixup_entry): Constify "name", "fixup_name",
2486 "dll_symname" params.
2487 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2488 (pe_get32): Likewise.
2489 (pe_implied_import_dll): Likewise.
2491 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2492 (sort_by_section_name): Likewise.
2494 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2495 (make_import_fixup): Cast printf arg, rel->address to long rather
2497 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2499 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2501 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2502 defines BufferSize. Increase buffer size by one.
2504 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2506 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2508 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2510 * configure.tgt: Add arm-openbsd target.
2512 2001-09-12 H.J. Lu <hjl@gnu.org>
2514 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2516 (ALL_64_EMULATIONS): Here.
2517 * Makefile.in: Regenerated.
2519 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2521 * emultempl/pe.em(make_import_fixup): change signature to
2522 take asection as well as arelec; we need this for proper
2523 error reporting. Only call pe_create_import_fixup() if
2524 there is no attempt to add a constant addend to the reloc;
2525 otherwise, report error condition.
2526 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2527 since final argument is a pointer to make_import_fixup().
2528 Change call to cb() to match make_import_fixup() signature.
2529 (make_import_fixup_mark): make buffer_len unsigned.
2530 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2532 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2534 * ld.texinfo: add verbose documentation for auto-import
2535 direct-addressing workaround, to compliment the terse
2538 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2540 * scripttempl/v850.sc: Add gcc_except_table sections.
2542 2001-09-11 Jeffrey A Law (law@cygnus.com)
2544 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2545 * emulparams/h8300self.sh: Similarly.
2547 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2549 * ld.texinfo (Options, --stack): Correct default value for stack
2552 2001-09-05 Tom Rix <trix@redhat.com>
2554 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2556 2001-09-03 Andreas Jaeger <aj@suse.de>
2558 * emultempl/beos.em: Declare prototypes for comparions functions,
2561 2001-09-02 Andreas Jaeger <aj@suse.de>
2563 * emultempl/aix.em: Add missing prototype.
2564 * emultempl/lnk960.em: Likewise.
2565 * emultempl/vanilla.em: Likewise.
2566 * emultempl/armcoff.em: Likewise.
2567 * emultempl/armelf_oabi.em: Likewise.
2568 * emultempl/beos.em: Likewise.
2569 * emultempl/gld960c.em: Likewise.
2570 * emultempl/gld960.em: Likewise.
2572 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2573 for prototype declaration.
2575 2001-08-31 Eric Christopher <echristo@redhat.com>
2576 Jason Eckhardt <jle@redhat.com>
2578 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2580 2001-08-31 Andreas Jaeger <aj@suse.de>
2582 * emultempl/pe.em: Add missing prototypes.
2583 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2584 pe_find_data_imports.
2585 (pr_sym): Add unused attribute.
2587 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2589 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2590 default from coff to elf.
2592 2001-08-29 Jeff Law <law@redhat.com>
2594 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2596 * emulparams/h8300self.sh: Similarly.
2598 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2600 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2602 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2603 * configure.tgt (h8300-*-elf*): New case.
2604 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2605 * emulparams/h8300self.sh: New file.
2606 * Makefile.in: Regenerated.
2608 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2610 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2613 2001-08-27 Linus Nordberg <linus@swox.com>
2614 Alan Modra <amodra@bigpond.net.au>
2616 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2617 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2619 * Makefile.in: Regenerate.
2620 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2621 entries to correct alphabetical position.
2622 * emulparams/elf64ppc.sh: New.
2623 * emulparams/elf64lppc.sh: New.
2625 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2627 * ldmain.c (main): Declare BSIZE as static.
2629 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2631 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2632 into .rel.dyn resp. .rela.dyn if combreloc.
2633 (get_script): If .x linker script is equal to .xn, only put it
2634 once into the binary.
2635 Add .xc and .xsc scripts.
2636 (parse_args): Handle -z combreloc and -z nocombreloc.
2637 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2638 For .xc and .xsc scripts put all .rel* or .rela* input sections
2639 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2640 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2642 Strip trailing whitespace from script.
2643 Generate .xc and .xsc scripts if requested.
2644 * ldmain.c (main): Initialize link_info.combreloc and
2645 link_info.spare_dynamic_tags.
2646 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2647 (ld_options): Add --spare-dynamic-tags option.
2648 (parse_args): Likewise.
2649 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2650 * ldint.texinfo: Document .xc and .xsc linker scripts.
2651 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2653 2001-08-22 H.J. Lu <hjl@gnu.org>
2655 * emulparams/elf32fr30.sh: Add a newline.
2657 2001-08-21 Andreas Jaeger <aj@suse.de>
2659 * deffilep.y: Add missing prototypes.
2660 * pe-dll.c: Likewise.
2662 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2664 * ldlang.c (insert_pad): Fix typos in last patch.
2666 * ldlang.c: When traversing lang_statement_union_type lists,
2667 consistently use "header.next" rather than "next".
2668 * mpw-eppcmac.c: Likewise.
2669 * emultempl/beos.em: Likewise.
2670 * emultempl/hppaelf.em: Likewise.
2671 * emultempl/pe.em: Likewise.
2672 * ldlang.h (union lang_statement_union): Remove "next" field.
2674 * ldlang.c (insert_pad): Use offsetof macro.
2675 (lang_size_sections): Always neuter padding statements.
2676 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2678 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2679 passed to lang_size_sections.
2680 (pe_exe_fill_sections): Likewise.
2681 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2682 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2684 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2686 * emultempl/aix.em: Formatting fixes.
2688 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2690 * ldlang.c (insert_pad): Make use of an existing pad statement if
2691 available. Move code calculating alignment, adjusting section
2692 alignment power, and adjusting dot to ..
2693 (size_input_section): .. here. Remove unused relax param.
2694 (lang_size_sections): Change boolean `relax' param to boolean *.
2695 Adjust call to size_input_section. Make use of insert_pad to
2696 place pad after the assignment statement. If relaxing, zap
2698 (reset_memory_regions): Reset output_bfd section sizes too.
2699 (relax_again): Move to..
2700 (lang_process): ..here. Adjust call to lang_size_sections, and
2701 remove duplicated code.
2702 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2704 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2706 * ld.texinfo: Document that fill values now use the four least
2708 * emulparams/elf32fr30.sh (NOP): Update.
2709 * emulparams/elf32mcore.sh: Likewise.
2710 * emulparams/elf64_s390.sh: Likewise.
2711 * emulparams/elf_i386.sh: Likewise.
2712 * emulparams/elf_i386_be.sh: Likewise.
2713 * emulparams/elf_i386_chaos.sh: Likewise.
2714 * emulparams/elf_i386_ldso.sh: Likewise.
2715 * emulparams/elf_s390.sh: Likewise.
2716 * emulparams/elf_x86_64.sh: Likewise.
2717 * emulparams/i386moss.sh: Likewise.
2718 * emulparams/i386nw.sh: Likewise.
2719 * emulparams/m68kelf.sh: Likewise.
2720 * scripttempl/elf.sc: Update NOP comment.
2721 * scripttempl/elfi370.sc: Likewise.
2722 * scripttempl/elfm68hc11.sc: Likewise.
2723 * scripttempl/elfm68hc12.sc: Likewise.
2724 * scripttempl/nw.sc: Likewise.
2726 2001-08-15 Tom Rix <trix@redhat.com>
2728 * ldgram.y (saved_script_handle): Initialize to NULL.
2729 * ldmain.c (main): Change check on saved_script_handle.
2731 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2733 * emultempl/elf32.em: Formatting fixes.
2734 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2735 looking at sec->owner.
2736 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2737 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2738 unused code, and reorganize orphan section placement code.
2740 * ldlang.c (wild_doit): Rename to lang_add_section.
2741 * ldlang.h: Here too.
2742 * mpw-elfmips.c: And here.
2743 * emultempl/beos.em: And here.
2744 * emultempl/elf32.em: And here.
2745 * emultempl/hppaelf.em: And here.
2746 * emultempl/pe.em: And here.
2748 2001-08-13 Richard Henderson <rth@redhat.com>
2750 * emultempl/needrelax.em: New file.
2751 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2752 * Makefile.am (eelf64_ia64.c): Depend on it.
2753 * Makefile.in: Rebuild.
2755 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2757 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2758 output_section is set non-NULL.
2760 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2761 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2762 needlessly create an output_section_statement. Treat a correctly
2763 named output_section_statement with NULL bfd_section as compatible.
2765 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2767 * emultempl/generic.em: Support EXTRA_EM_FILE.
2768 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2769 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2770 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2771 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2772 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2773 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2774 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2775 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2776 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2777 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2779 2001-08-12 Richard Henderson <rth@redhat.com>
2781 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2782 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2783 scripttempl/v850.sc: Keep .jcr data.
2785 2001-08-12 H.J. Lu <hjl@gnu.org>
2786 Andrew Haley <aph@cambridge.redhat.com>
2787 Nick Clifton <nickc@redhat.com>
2789 * ldgram.y (had_script): Change name to saved_script_handle.
2790 Change type to file handle.
2791 * ld.h (had_script): Rename and retype.
2792 * ldfile.c (ldfile_open_command_file): Save the file handle
2793 used in saved_script_handle.
2794 * lexsup.c (parse_args): Do not allow -c option to alter
2795 saved_script_handle.
2796 * ldmain.c (main): Print out the linker script used if
2797 --verbose is given. Check saved_script_handle to obtain the
2798 external linker script used, or if NULL, dump the builtin
2800 * ld.texinfo: Document that --verbose now dumps the linker
2801 script used, regardless of whether it was an internal or an
2804 2001-08-10 Andreas Jaeger <aj@suse.de>
2806 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2808 * configure: Regenerate.
2810 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2812 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2814 * scripttempl/elf.sc: Move non-text .dynamic section before
2815 .plt/.got/.sdata* group.
2816 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2817 (OTHER_SDATA_SECTIONS): Add.
2818 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2820 * emulparams/crislinux.sh: Likewise.
2821 * emulparams/elf32b4300.sh: Likewise.
2822 * emulparams/elf32bmip.sh: Likewise.
2823 * emulparams/elf32bmipn32.sh: Likewise.
2824 * emulparams/elf32bsmip.sh: Likewise.
2825 * emulparams/elf32btsmip.sh: Likewise.
2826 * emulparams/elf32ebmip.sh: Likewise.
2827 * emulparams/elf32elmip.sh: Likewise.
2828 * emulparams/elf32l4300.sh: Likewise.
2829 * emulparams/elf32lmip.sh: Likewise.
2830 * emulparams/elf32lsmip.sh: Likewise.
2831 * emulparams/elf32ltsmip.sh: Likewise.
2832 * emulparams/elf64bmip.sh: Likewise.
2833 * emulparams/elf64btsmip.sh: Likewise.
2834 * emulparams/elf64ltsmip.sh: Likewise.
2836 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2838 * genscripts.sh: Source the emulparams script before each output
2839 script is generated so that variables like `RELOCATING' may affect
2840 variables defined in the emulparams script.
2842 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2844 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2847 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2848 ie. iterate over wild_statement.section_list.
2849 (gld${EMULATION_NAME}_place_orphan): Likewise.
2851 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2853 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2854 .fini[0-4] sections used by _exit
2855 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2856 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2857 * scripttempl/elfm68hc11.sc: Likewise.
2859 2001-08-03 H.J. Lu <hjl@gnu.org>
2861 * emultempl/beos.em (init): Add the missing initialization.
2863 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2865 * ld.texinfo (Input Section Basics): Clarify ordering of output
2867 * ldlang.c (callback_t): Add wildcard_list param.
2868 (walk_wild_section): Remove "section" param. Rewrite for
2869 lang_wild_statement_type change. Remove unique_section_p test.
2870 (walk_wild_file): Remove "section" param.
2871 (walk_wild): Remove "section" and "file" params.
2872 (lang_gc_wild): Likewise.
2873 (wild): Likewise. Modify for lang_wild_statement_type change.
2874 (wild_sort): Likewise. Add "sec" param.
2875 (gc_section_callback): Likewise.
2876 (output_section_callback): Likewise. Do unique_section_p test.
2877 (map_input_to_output_sections): Modify call to wild.
2878 (lang_gc_sections_1): Likewise.
2879 (print_wild_statement): Modify for lang_wild_statement_type
2881 (lang_add_wild): Replace filename, filenames_sorted param with
2882 filespec. Replace section_name, sections_sorted,
2883 exclude_filename_list with section_list.
2884 * ldlang.h (lang_add_wild): Here too.
2885 (lang_wild_statement_type): Replace section_name, sections_sorted,
2886 and exclude_filename_list with section_list.
2887 * ldgram.y (current_file): Delete.
2888 (%union): Add wildcard_list.
2889 (file_NAME_list): Set type to wildcard_list. Build a linked list
2890 rather than calling lang_add_wild for each entry.
2891 (input_section_spec_no_keep): Call lang_add_wild here instead.
2892 * ld.h (struct wildcard_list): Declare.
2893 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2895 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2897 * ldmain.c (main): initialize link_info.pei386_auto_import
2898 * pe-dll.c: new tables for auto-export filtering
2899 (auto_export): change API, pass abfd for contextual filtering.
2900 Loop thru tables of excluded symbols instead of comparing
2903 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2905 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2906 static variable current_sec (static struct sec *). Add
2907 forward declaration for add_bfd_to_link.
2908 (process_def_file): Don't export undefined symbols. Do not
2909 export symbols starting with "_imp__". Call auto_export()
2911 (pe_walk_relocs_of_symbol): New function.
2912 (generate_reloc): add optional extra debugging
2913 (pe_dll_generate_def_file): eliminate extraneous initial blank
2915 (make_one): enlarge symtab to make room for __nm__ symbols
2916 (DATA auto-import support).
2917 (make_singleton_name_thunk): New function.
2918 (make_import_fixup_mark): New function.
2919 (make_import_fixup_entry): New function.
2920 (pe_create_import_fixup): New function.
2921 (add_bfd_to_link): Specify that 'name' argument is a CONST
2923 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2924 declare new functions pe_walk_relocs_of_symbol and
2925 pe_create_import_fixup.
2926 * emultempl/pe.em: add new options --enable-auto-import,
2927 --disable-auto-import, and --enable-extra-pe-debug.
2928 (make_import_fixup): New function.
2929 (pe_find_data_imports): New function.
2930 (pr_sym): New function.
2931 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2932 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2935 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2937 * ld.texinfo: add additional documentation for
2938 --export-all-symbols. Document --out-implib,
2939 --enable-auto-image-base, --disable-auto-image-base,
2940 --dll-search-prefix, --enable-auto-import, and
2941 --disable-auto-import.
2942 * ldint.texinfo: Add detailed documentation on auto-import
2945 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2947 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2950 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2952 * Makefile.am: Update dependencies with "make dep-am".
2953 * Makefile.in: Regenerate
2955 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2957 * ldcref.c (check_section_sym_xref): New function.
2958 (check_nocrossrefs): Call it.
2959 (check_nocrossref): Interate over h->refs here instead of..
2960 (check_refs): ..here. Pass in the symbol name, section, and bfd
2961 rather than hash_entry pointers.
2962 (struct check_refs_info): Keep symbol name rather than hash entry.
2964 (check_reloc_refs): Tweak for above changes in check_refs_info.
2965 Only report references to section syms when symname is NULL to
2966 prevent duplicate messages for the same reloc.
2968 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2970 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2971 available. Do not print NULL trees.
2972 (exp_print_token): Print unknown tokens with values > 126 as
2973 decimal values not ASCII characters.
2975 * ldlang.c (lang_leave_overlay): If a region is specified assign
2976 it to all sections inside the overlay unless they have been
2977 assigned to the own, non-default, memory region.
2979 * README: Add header for consistency with other README files.
2981 2001-07-14 H.J. Lu <hjl@gnu.org>
2983 * emultempl/elf32.em (output_prev_sec_find): Never return
2984 bfd_abs_section_ptr, bfd_com_section_ptr nor
2985 bfd_und_section_ptr.
2987 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2989 * Makefile.am (em32relf.c): Change dependency from generic.em to
2991 * Makefile.in: Regenerate.
2993 2001-07-14 matthew green <mrg@eterna.com.au>
2995 * configure.tgt (i386-*-netbsdelf*): New target.
2996 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2998 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3000 * emultempl/elf32.em (output_prev_sec_find): New.
3001 (place_orphan): Use it.
3003 2001-07-11 H.J. Lu <hjl@gnu.org>
3005 * ldmain.c (main): Fix typos in the last change.
3007 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3009 * ldmain.c (main): Disallow -F and -f without -shared.
3011 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3013 * emultempl/pe.em (after_open): Check for the output_bfd not
3014 having any coff_data structure allocated to it.
3016 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3018 * emultempl/elf32.em: Do not assuming that contents of the buffer
3019 returned from basename function will remain unchanged accross other
3022 2001-07-03 H.J. Lu <hjl@gnu.org>
3024 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3025 2001-07-03. It creates dynamic entries even for static binaries.
3027 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3029 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3030 (DYNAMIC): Use it to reserve few dynamic entries for
3033 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3035 * emulparams/hppa64linux.sh: New file.
3036 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3037 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3038 (ehppa64linux.c): Add rule to make it.
3040 * Makefile.in: Regenerate.
3042 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3044 * ld.texinfo (Options, -r): Mention restrictions when using
3045 different object formats.
3047 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3049 * ldlang.c (lang_check): Emit fatal error if relocatable link
3050 between different object flavours with relocations in input.
3052 2001-06-19 H.J. Lu <hjl@gnu.org>
3054 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3055 (--version-script): Mention the language support.
3057 2001-06-19 H.J. Lu <hjl@gnu.org>
3059 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3061 2001-06-18 H.J. Lu <hjl@gnu.org>
3063 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3064 (diststuff): Add $(MANS).
3065 * Makefile.in: Regenerated.
3069 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3071 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3072 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3073 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3074 * ld.h (args_type): Remove member export_dynamic. All users
3075 changed to use struct bfd_link_info member.
3077 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3078 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3079 * Makefile.in: Regenerate.
3081 2001-06-18 H.J. Lu <hjl@gnu.org>
3083 * ldlang.c (init_os): Add the newline to the einfo call.
3084 (lang_check): Likewise.
3085 (lang_do_version_exports_section): Likewise.
3087 2001-06-15 H.J. Lu <hjl@gnu.org>
3089 * lexsup.c (parse_args); Save optind to report unrecognized
3092 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3094 * ldlang.c (lang_check): Emit fatal error if relocatable link
3095 between different object flavours.
3097 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3098 Set new link_info member export_dynamic.
3099 * ldmain.c (main): Initialize new link_info member export_dynamic.
3101 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3103 * ldlang.c (walk_wild): Only call walk_wild_file if
3104 lookup_name returns something.
3105 (lookup_name): If load_symbols fails, return NULL.
3106 (load_symbols): Change to a boolean function.
3107 (open_input_bfds): If load_symbols fails then do not make the
3110 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3112 * ldlang.c (record_bfd_errors): Remove.
3114 * emultempl/aix.em: Fix copyright dates.
3116 2001-06-07 Andreas Jaeger <aj@suse.de>
3118 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3119 (TEXT_START_ADDR): Likewise.
3121 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3123 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3125 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3127 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3129 2001-05-31 H.J. Lu <hjl@gnu.org>
3131 * ldlang.c (open_input_bfds): Don't change the bfd error
3132 handler whilst loading symbols.
3134 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3136 * configure.tgt: Remove i370-mvs architecture, it is not currently
3139 2001-05-25 H.J. Lu <hjl@gnu.org>
3141 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3142 like emulparams/aixppc.sh.
3144 2001-05-25 H.J. Lu <hjl@gnu.org>
3146 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3147 setting of output_filename after bfd_scan_arch.
3148 * emultempl/pe.em: Likewise.
3150 2001-05-25 H.J. Lu <hjl@gnu.org>
3152 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3153 like emulparams/aixppc.sh.
3155 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3156 instead of ${srcdir}/emultempl/stringify.sed.
3158 2001-05-25 Timothy Wall <twall@oculustech.com>
3160 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3163 2001-05-25 Alan Modra <amodra@one.net.au>
3165 * configure.host: Replace linuxoldld with linux*oldld.
3166 * configure.tgt: Likewise.
3168 2001-05-24 H.J. Lu <hjl@gnu.org>
3170 * emultempl/stringify.sed: Removed again.
3172 2001-05-24 H.J. Lu <hjl@gnu.org>
3174 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3175 (gld${EMULATION_NAME}_before_parse): Initialize
3176 ldfile_output_architecture, ldfile_output_machine and
3177 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3178 * emultempl/beos.em: Likewise.
3179 * emultempl/elf32.em: Likewise.
3180 * emultempl/linux.em: Likewise.
3181 * emultempl/mipsecoff.em: Likewise.
3182 * emultempl/pe.em: Likewise.
3183 * emultempl/sunos.em: Likewise.
3185 2001-05-24 Tom Rix <trix@redhat.com>
3187 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3188 udate import file format.
3189 (change_symbol_mode) New, same
3190 (is_syscall) New, same
3191 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3192 * emulparams/aixppc64.sh : same
3193 * emulparams/aixrs6.sh : same
3194 * emulparams/ppcmacos.sh : same
3195 * emultempl/aix.em : use strtoull to parse options
3196 * Makefile.am : add eaixppc64 emulation for xcoff64
3197 * Makefile.in : same
3198 * configure.tgt : same
3200 * scripttempl/aix.sc : default text section offset to 0x10000000
3201 default data section offset to 0x20000000
3202 add .sv3264 and .sv64 pseudo sections
3203 loader and debug sections use the currect section offset.
3205 * emultempl/aix.em : Add xcoff64 support
3206 Add -binitfini support
3207 (gld${EMULATION_NAME}_before_parse) -binitfini
3208 (gld${EMULATION_NAME}_parse_args) same
3209 (gld${EMULATION_NAME}_before_allocation) format change for special
3212 * emulparams/aixppc64.sh : New file for xcoff64 support
3214 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3216 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3217 variable to avoid non-portable shell construct.
3219 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3221 * ldmain.c (get_emulation): Add -mips5 command line argument.
3223 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3225 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3226 (ELF_INTERPRETER_NAME): Define it.
3227 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3229 * configure.tgt (targ_emul, targ_extra_emuls)
3230 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3231 as primary, elf_i386 as extra.
3232 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3233 (eelf_i386_ldso.c): New rule.
3234 * Makefile.in: Rebuilt.
3236 2001-05-22 Nick Clifton <nickc@redhat.com>
3238 * lexsup.c (ld_options): Allow -I to be an alias for
3239 --dynamic-linker. This is for Solaris compatability.
3240 * ld.texinfo: Document that -I can be used.
3243 2001-05-16 Alan Modra <amodra@one.net.au>
3245 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3246 whether an input section is the first one assigned to an output
3248 Assorted formatting fixes.
3250 2001-05-14 DJ Delorie <dj@delorie.com>
3252 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3253 * Makefile.in: Ditto.
3255 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3257 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3258 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3260 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3262 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3264 * ldlang.c (lang_process): Call bfd_merge_sections.
3266 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3268 * ldgram.y: Fix typo.
3270 2001-05-03 H.J. Lu <hjl@gnu.org>
3272 * emultempl/elf32.em: Include "libiberty.h".
3273 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3274 basename of the bfd filename.
3275 (gld${EMULATION_NAME}_stat_needed): Likewise.
3276 (gld${EMULATION_NAME}_try_needed): Likewise.
3277 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3279 2001-05-02 H.J. Lu <hjl@gnu.org>
3281 * emultempl/pe.em: Include <ctype.h>.
3283 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3285 * emulparams/elf32openrisc.sh: New file.
3287 * Makefile.am: Add OpenRISC target.
3288 * Makefile.in: Regenerated.
3290 * configure.tgt: Add openrisc-*-* mapping.
3292 2001-05-02 Nick Clifton <nickc@redhat.com>
3294 * emultempl/aix.em: Replace buystring with xstrdup.
3295 * emultempl/beos.em: Replace buystring with xstrdup.
3297 2001-05-02 H.J. Lu <hjl@gnu.org>
3299 * ldfile.c: Include "libiberty.h".
3300 * ldlex.l: Likewise.
3302 * ldmisc.c (buystring): Removed.
3303 * ldmisc.h: Likewise.
3305 * ldfile.c: Replace buystring with xstrdup.
3306 * ldlang.c: Likewise.
3307 * ldlex.l: Likewise.
3308 * ldmain.c: Likewise.
3309 * ldmisc.c: Likewise.
3310 * lexsup.c: Likewise.
3311 * mpw-eppcmac.c: Likewise.
3313 2001-04-30 Andreas Jaeger <aj@suse.de>
3315 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3317 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3319 * ldlang.c (load_symbols): Give emulation a chance
3320 to process unrecognized file before fatal error is
3321 reported, not after.
3323 2001-04-27 Sean McNeil <sean@mcneil.com>
3325 * configure.tgt: Add arm-vxworks target.
3326 * scripttempl/armcoff.sc: Support .text or .data as a section name
3330 2001-04-13 J.T. Conklin <jtc@redback.com>
3332 * ld.texinfo: Document --fatal-warnings.
3335 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3336 warnings have been turned into errors.
3337 * lexsup.c (OPTION_WARN_FATAL): Define.
3338 (ld_options): Entry for --fatal-warnings.
3339 (parse_args): Handle OPTION_WARN_FATAL.
3340 * ld.h (ld_config_type): Add fatal_warnings field.
3342 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3344 * ldmain.c (main): Default to discard_sec_merge.
3345 * lexsup.c (OPTION_DISCARD_NONE): Define.
3346 (ld_options): Add --discard-none.
3347 (parse_args): Handle OPTION_DISCARD_NONE.
3348 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3349 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3350 all its input sections match.
3352 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3354 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3355 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3356 (eelf32ltsmip.c): New target.
3357 (eelf64btsmip.c): Likewise.
3358 (eelf64ltsmip.c): Likewise.
3359 * Makefile.in: Regenerated.
3361 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3363 (mips*-*-linux-gnu*): Likewise.
3365 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3367 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3369 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3372 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3374 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3375 correct value of __Stext here.
3376 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3379 * emulparams/crislinux.sh: Remove FIXME.
3381 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3383 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3384 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3386 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3388 * configure.tgt (cris-*-*): Change default emulation to criself.
3389 (cris-*-*aout*): New rule.
3391 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3393 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3394 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3396 2001-03-26 Andreas Jaeger <aj@suse.de>
3398 * ld.texinfo (Overview): Fix syntax in texi code.
3400 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3402 * ld.texinfo: Put @c man indications to generate the ld man page.
3403 When generating man, define all the variables. Define SEEALSO
3404 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3405 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3406 (ld.1): Generate from ld.texinfo.
3407 * Makefile.in: Regenerate.
3409 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3411 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3412 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3414 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3416 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3417 is an absolute path look only for this file and not along the path.
3419 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3421 * emultempl/elf32.em (OPTION_GROUP): New macro.
3422 Add new option Bgroup to longopts.
3423 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3424 (gld*_list_options): Add -Bgroup and -z defs.
3425 * ld.1: Document -Bgroup and -z defs.
3426 * ld.texinfo: Likewise.
3428 2001-03-07 Michael Meissner <meissner@redhat.com>
3430 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3431 with sections created by -fdata-sections.
3432 (.dynbss,.bss): Ditto.
3434 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3436 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3437 after_allocation_default, not gld..._before_allocation.
3439 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3441 * configure.in (BFD_VERSION): New.
3442 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3443 * configure: Regenerate.
3444 * Makefile.am: Run "make dep-am"
3445 * Makefile.in: Regenerate.
3447 2001-02-26 Timothy Wall <twall@cygnus.com>
3449 * emulparams/elf64_aix.sh: Add additional read-only sections;
3450 uncomment lines which are now required.
3452 2001-02-26 H.J. Lu <hjl@gnu.org>
3454 * ldlang.c (open_input_bfds): Set the bfd error handler so
3455 that problems can be caught whilst loading symbols.
3456 (record_bfd_errors): New function: Report BFD errors and mark
3457 the executable output as being invalid.
3459 2001-02-22 Timothy Wall <twall@cygnus.com>
3461 * configure.host: Add configuration for ia64-*-aix*.
3462 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3463 Add dependencies for eelf64_aix.c.
3464 * Makefile.in: Regenerate.
3465 * configure.tgt: Add ia64-*-aix* mapping.
3466 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3468 2001-02-20 H.J. Lu <hjl@gnu.org>
3470 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3471 false if we found the file.
3473 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3475 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3476 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3478 2001-02-18 lars brinkhoff <lars@nocrew.org>
3480 * Makefile.am: Add PDP-11 target.
3481 * configure.tgt: Likewise.
3482 * emulparams/pdp11.sh: New file.
3484 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3486 * configure.host: Add a generic FreeBSD configuration entry such that
3487 all [modern] FreeBSD systems on all platforms will look the same.
3489 2001-02-14 H.J. Lu <hjl@gnu.org>
3491 * configure.tgt: Remove mention of earmelf_linux26.
3493 2001-02-13 Richard Henderson <rth@redhat.com>
3495 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3497 2001-02-13 H.J. Lu <hjl@gnu.org>
3499 * ldexp.h (node_type): Add etree_provided.
3500 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3501 type to etree_provided if defined by PROVIDE. Allow updating
3503 (exp_print_tree): Handle etree_provided.
3504 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3507 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3509 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3510 .IA_64.unwind.* pattern to unwind table section and
3511 .IA_64.unwind_info* pattern to unwind info section.
3513 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3515 * Makefile.am: Add linux target for S/390.
3516 * Makefile.in: Likewise.
3517 * configure.host: Likewise.
3518 * configure.tgt: Likewise.
3519 * emulparams/elf64_s390.sh: New file.
3520 * emulparams/elf_s390.sh: New file.
3522 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3524 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3526 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3528 2001-02-06 Philip Blundell <philb@gnu.org>
3530 * Makefile.am: Remove mention of earmelf_linux26.
3531 * Makefile.in: Regenerate.
3533 2001-02-04 Philip Blundell <philb@gnu.org>
3535 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3536 * emulparams/armelf_linux26.sh: Delete.
3537 * configure.tgt: Remove mention of armelf_linux26 emulation.
3539 2001-02-01 Nick Clifton <nickc@redhat.com>
3541 * ld.1: Replace occurances of -oformat with --oformat.
3543 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3545 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3546 load_base is specified.
3548 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3550 * emultempl/elf32.em: Correct spelling in comments and listed
3553 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3555 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3556 default for the first section of a group of overlay sections.
3558 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3560 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3561 * Makefile.in: Regenerate.
3562 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3563 Check for null tool_dir.
3565 2001-01-16 Jim Wilson <wilson@redhat.com>
3567 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3568 and IA_64.unwind.info.
3570 2001-01-16 H.J. Lu <hjl@gnu.org>
3572 * ldlang.c (lang_check): Merge the private data only if the
3573 input file has contents.
3575 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3577 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3579 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3580 enabling search for libmilli. On a relocatable link, make .text
3582 (LDEMUL_AFTER_PARSE): Define.
3583 (hppaelf_finish): Correct spelling of relocatable in comments.
3585 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3586 rummage through the script for sections on the unique list.
3587 Correct length of strncmp for ".note".
3588 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3590 * ldlang.c (unique_section_list): New var.
3591 (unique_section_p): New function.
3592 (walk_wild_section): Don't match sections on unique_section_list.
3593 (lang_add_unique): New function.
3594 Correct spelling of relocatable in comments.
3596 * ldlang.h (struct unique_sections): Declare.
3597 (unique_section_list): Declare.
3598 (unique_section_p): Declare.
3599 (lang_add_unique): Declare.
3601 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3602 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3604 * ld.texinfo (--unique): Update.
3606 2001-01-13 Nick Clifton <nickc@redhat.com>
3608 * lexsup.c (parse_args): Remove spurious white space.
3610 2001-01-12 Nick Clifton <nickc@redhat.com>
3612 * lexsup.c (parse_args): Update copyright date.
3614 2001-01-12 Philip Blundell <pb@futuretv.com>
3616 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3618 2001-01-10 Kazu Hirata <kazu@hxi.com>
3620 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3621 * scripttempl/h8300h.sc: Fix formatting.
3622 * scripttempl/h8300s.sc: Likewise.
3623 * scripttempl/h8500.sc: Likewise.
3624 * scripttempl/h8500b.sc: Likewise.
3625 * scripttempl/h8500c.sc: Likewise.
3626 * scripttempl/h8500m.sc: Likewise.
3627 * scripttempl/h8500s.sc: Likewise.
3629 2000-01-07 David O'Brien <obrien@BSDi.com>
3631 * emultempl/elf32.em: Only perform Linux ld hints processing when
3634 2001-01-07 Philip Blundell <philb@gnu.org>
3636 * ld.texinfo (Bug Reporting): Update email address for reports.
3638 2000-12-31 Nick Clifton <nickc@redhat.com>
3640 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3641 options by checking for a return value of '?' not -1.
3643 2000-12-28 Nick Clifton <nickc@redhat.com>
3645 * lexsup.c (struct ld_option): Add new enum value:
3647 (ld_options[]): Change -omagic, -output and -oformat options
3648 to be EXACTLY_TWO_DASHES.
3649 (OUTPUT_COUNT): Use ARRAY_SIZE.
3650 (parse_args): Change parameter 'argc' to unsigned.
3651 Place EXACTLY_TWO_DASHES options into new really_longopts
3653 If getopt_long_only fails, try calling getopt_long using the
3654 really_longopts array.
3655 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3658 * ldlex.h: Fix prototype of parse_args.
3660 * ld.texinfo: Document that long options starting with 'o'
3661 must be preceeded by two dashes. Change example of a single
3662 dashed long option from -oformat to -trace-symbol.
3664 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3666 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3667 (longopts[]): New --no-default-excludes option.
3668 (gld_${EMULATION_NAME}_list_options): Document.
3669 (gld_${EMULATION_NAME}_parse_args): Handle.
3671 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3673 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3674 whitespace, it breaks the K&R C preprocessor.
3676 2000-12-11 DJ Delorie <dj@redhat.com>
3678 * ld.texinfo: Add notes about --whole-archive and gcc.
3680 2000-11-18 Fred Fish <fnf@be.com>
3682 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3683 (ld_options): Entry for --allow-shlib-undefined.
3684 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3685 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3687 * ld.texinfo: Document new command line switch.
3689 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3691 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3692 .fixup is actually read/write.
3693 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3694 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3695 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3697 2000-12-11 Jan Hubicka <jh@suse.cz>
3699 * NEWS: Add note about x86_64 architecture.
3701 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3703 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3704 Set DWARF2 sections to a VMA of zero.
3706 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3708 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3710 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3711 (sparc*-*-rtems*): Switched from a.out to ELF.
3713 2000-11-30 Jan Hubicka <jh@suse.cz>
3715 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3716 (eelf_x86_64.c): New.
3717 * Makefile.in: Regenerate.
3718 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3719 * emulparams/elf_x86_64.sh: New.
3721 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3723 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3724 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3726 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3727 merging non-a.out sections into CONSTRUCTING.
3729 2000-11-28 Nick Clifton <nickc@redhat.com>
3731 * ld.1 (COPYING): Mention that the GNU Free Documentation
3732 License is present in the sources, but not the output, and
3733 also available from the GNU website.
3734 (GNU Free Documentation License): Comment out this section.
3736 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3738 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3741 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3743 * ld.1: Remove old date so it does not give the impression the manpage
3746 2000-11-24 Nick Clifton <nickc@redhat.com>
3748 * configure.tgt (xscale-coff): Add target.
3749 (xscale-elf): Add target.
3751 2000-11-24 Fred Fish <fnf@be.com>
3753 * ldmain.c (main): Remove redundant init of config.make_executable
3756 2000-11-15 Richard Henderson <rth@redhat.com>
3758 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3760 2000-11-14 Kazu Hirata <kazu@hxi.com>
3762 * scripttempl/h8300.sc: Fix formatting.
3763 * scripttempl/h8300h.sc: Likewise.
3764 * scripttempl/h8300s.sc: Likewise.
3766 2000-11-14 Denis Chertykov <denisc@overta.ru>
3768 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3770 2000-11-09 Philip Blundell <pb@futuretv.com>
3772 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3773 around orphan sections whose names can be represented in C.
3775 2000-11-07 Jim Wilson <wilson@redhat.com>
3777 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3778 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3780 2000-11-06 Nick Clifton <nickc@redhat.com>
3782 * ld.texinfo: Add GNU Free Documentation License.
3783 * ldint.texinfo: Add GNU Free Documentation License.
3784 * ld.1: Add GNU Free Documentation License.
3786 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3788 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3789 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3791 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3792 Move 2000-11-02 Makefile.in changes to this file.
3793 * Makefile.in: Regenerate.
3795 2000-11-03 Nick Clifton <nickc@redhat.com>
3797 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3798 constructors and destructors.
3799 * scripttempl/h8300h.sc: Ditto.
3800 * scripttempl/h8300s.sc: Ditto.
3801 * scripttempl/h8500.sc: Ditto.
3802 * scripttempl/h8500b.sc: Ditto.
3803 * scripttempl/h8500c.sc: Ditto.
3804 * scripttempl/h8500m.sc: Ditto.
3805 * scripttempl/h8500s.sc: Ditto.
3806 * scripttempl/v850.sc: Ditto.
3807 * scripttempl/w65.sc: Ditto.
3808 * scripttempl/z8000.sc: Ditto.
3810 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3812 * Makefile.in (e_i386_chaos.c): New rule.
3813 (ALL_EMULATIONS): Added e_i386_chaos.o.
3814 * emulparams/elf_i386_chaos.sh: New file.
3815 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3817 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3819 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3820 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3821 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3822 library path suffix.
3823 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3825 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3827 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3828 for consecutive sections.
3830 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3832 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3834 * ld.texinfo: Added notes about this new option.
3836 2000-10-16 Nick Clifton <nickc@redhat.com>
3838 * emultempl/pe.em (_after_open): Add tests of return values from
3839 bfd functions. Emit appropriate error messages if necessary.
3841 2000-10-13 Nick Clifton <nickc@redhat.com>
3843 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3844 local variables - they are not used, but leave in the call to
3845 bfd_canonicalize_symtab.
3846 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3847 pe_dll_search_prefix.
3849 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3851 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3852 (longopts): New --dll-search-prefix option.
3853 (gld_${EMULATION_NAME}_list_options): Document.
3854 (gld_${EMULATION_NAME}_parse_args): Handle.
3855 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3856 dynamically, search for a dll named '<prefix><basename>.dll'
3857 in preference to 'lib<basename>.dll' if --dll-search-prefix
3860 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3862 * ldlang.c (section_already_linked): Set kept_section instead of
3865 2000-10-10 Kazu Hirata <kazu@hxi.com>
3867 * deffile.h: Fix formatting.
3868 * lexsup.c: Likewise.
3871 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3873 * pe-dll.c (make_one): Do not generate code thunk for DATA
3875 (process_def_file): deduce DATA flag for auto-export sumbols.
3877 2000-10-09 Kazu Hirata <kazu@hxi.com>
3879 * ld.h: Fix formatting.
3880 * ldcref.c: Likewise.
3881 * ldctor.h: Likewise.
3882 * ldemul.c: Likewise.
3883 * ldemul.h: Likewise.
3884 * ldexp.c: Likewise.
3885 * ldexp.h: Likewise.
3886 * ldfile.c: Likewise.
3887 * ldfile.h: Likewise.
3888 * ldlang.c: Likewise.
3889 * ldlang.h: Likewise.
3890 * ldmain.c: Likewise.
3891 * pe-dll.c: Likewise.
3893 * pe-dll.c: Revert some formatting fixes.
3895 2000-10-08 Kazu Hirata <kazu@hxi.com>
3897 * pe-dll.c: Fix formatting.
3899 2000-10-05 Kazu Hirata <kazu@hxi.com>
3901 * ldlang.c: Fix formatting.
3903 2000-10-03 DJ Delorie <dj@redhat.com>
3905 * pe-dll.c (fill_edata): initialize entire block
3906 (make_one): fill in correct section.
3908 2000-10-03 Kazu Hirata <kazu@hxi.com>
3910 * ldexp.c: Fix formatting.
3912 2000-10-02 DJ Delorie <dj@redhat.com>
3914 * emultempl/pe.em (gld_*_after_open): detect case where there two
3915 import libraries for same dll; rename one to ensure proper link
3918 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3920 (generate_edata): fix typo
3922 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3924 * scripttempl/crisaout.sc (ENTRY): Now __start.
3925 (.text): Add default setting for __start.
3926 Remove CONSTRUCTORS handling.
3927 (/DISCARD/): Add .gnu.warning.*.
3928 * emulparams/crislinux.sh (ENTRY): Now __start.
3929 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3930 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3931 (ENTRY): Now __start.
3932 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3933 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3935 2000-09-29 Kazu Hirata <kazu@hxi.com>
3937 * deffile.h: Fix formatting.
3939 * ldcref.c: Likewise.
3940 * ldctor.c: Likewise.
3941 * ldctor.h: Likewise.
3942 * ldemul.c: Likewise.
3943 * ldemul.h: Likewise.
3944 * ldexp.c: Likewise.
3945 * ldexp.h: Likewise.
3946 * ldfile.c: Likewise.
3947 * ldfile.h: Likewise.
3948 * ldlang.c: Likewise.
3949 * ldlang.h: Likewise.
3950 * lexsup.c: Likewise.
3952 * pe-dll.c: Likewise.
3954 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3956 * pe-dll.c (process_def_file): Uninitialized data wasn't
3957 exported with --export-all-symbols switch.
3959 2000-09-28 DJ Delorie <dj@redhat.com>
3961 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3962 noname work properly.
3964 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3966 * ld.texinfo (HPPA ELF32): New section.
3968 * emultempl/hppaelf.em (group_size): New.
3969 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3970 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3971 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3972 options to prevent abbreviations matching.
3973 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3974 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3976 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3978 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3979 on the m68*-*-elf target. Make it support COFF input objects.
3981 2000-09-21 Kazu Hirata <kazu@hxi.com>
3983 * ldmain.c: Fix formatting.
3984 * ldmisc.c: Likewise.
3985 * ldver.c: Likewise.
3986 * ldwrite.c: Likewise.
3988 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3990 * ldwrite.c (clone_section): Silence gcc warnings.
3992 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3994 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3995 out of memory failure.
3997 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3998 (clone_section): Handle out of memory failures. Rename var to
3999 avoid c++ reserved word.
4001 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4003 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4004 stub_name param to stub_sec_name.
4005 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4007 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4009 * emultempl/m68kelf.em: New file.
4010 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4011 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4012 * Makefile.in: Regenerate.
4014 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4016 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4019 2000-09-13 Nick Clifton <nickc@redhat.com>
4021 * ldmain.c (multiple_definition): Disable relaxation if
4022 multiple symbol definitions are encountered - otherwise the
4023 linker could abort with an assertion failure.
4025 2000-09-10 Nick Clifton <nickc@redhat.com>
4027 * mri.c: Fix formatting.
4029 2000-09-07 H.J. Lu <hjl@gnu.org>
4031 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4032 * configure: Rebuild.
4034 2000-09-07 H.J. Lu <hjl@gnu.org>
4036 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4037 * Makefile.in: Rebuild.
4039 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4041 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4042 broken list handling. Create __start_SECNAME and __stop_SECNAME
4043 when no place-holder. Add some comments. Test both SEC_CODE and
4044 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4045 Handle case where no output section statement created.
4047 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4049 * configure.tgt (sh-*-linux*): Added.
4050 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4051 * Makefile.in: Rebuilt.
4052 * emulparams/shelf_linux.sh: New file.
4053 * emulparams/shlelf_linux.sh: New file.
4055 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4057 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4058 try shuffling sections when the orphan happens to be the place
4059 holder. Keep count of unique section names generated so we speed
4060 the search for a new name.
4062 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4064 * configure: Rebuilt with new libtool.m4.
4066 2000-09-05 Nick Clifton <nickc@redhat.com>
4068 * Makefile.in: Regenerate.
4069 * aclocal.m4: Regenerate.
4070 * configure: Regenerate.
4071 * config.in: Regenerate.
4072 * po/ld.pot: Regenerate.
4074 * ldint.texinfo: Remove CVS revision marker - it foils local
4077 * emultempl/ticoff.em: Remove extraneous comma.
4079 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4081 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4082 to stub section flags.
4083 (hppa_for_each_input_file_wrapper): New.
4084 (hppa_lang_for_each_input_file): New.
4085 (lang_for_each_input_file): Define to call above.
4086 (multi_subspace): New.
4087 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4088 (PARSE_AND_LIST_PROLOGUE): Define.
4089 (PARSE_AND_LIST_LONGOPTS): Define.
4090 (PARSE_AND_LIST_OPTIONS): Define.
4091 (PARSE_AND_LIST_ARGS_CASES): Define.
4092 (hppaelf_finish): Call elf32_hppa_set_gp.
4093 (hppaelf_set_output_arch): Remove.
4094 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4096 * emulparams/hppalinux.sh (ELFSIZE): Define.
4098 (OTHER_READONLY_SECTIONS): Define.
4100 (GENERATE_SHLIB_SCRIPT): Define.
4102 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4103 to const throughout. Change `void *' to `PTR' throughout.
4104 (lang_memory_default): Function is local to file, add `static'.
4106 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4107 (ehppalinux.c): Likewise.
4108 (earmelf.c): Likewise.
4109 (earmelf_linux.c): Likewise.
4110 (earmelf_linux26.c): Likewise.
4111 * Makefile.in: Regenerate.
4113 * ld.h (ld_config_type): Add unique_orphan_sections.
4114 * lexsup.c (OPTION_UNIQUE): Define.
4115 (ld_options): Add "--unique".
4116 (parse_args): Handle it.
4117 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4118 search for an existing output section if unique_orphan_sections is
4119 set. Make use of bfd_get_unique_section_name rather than
4120 duplicating code here.
4121 * ld.texinfo: Describe --unique.
4123 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4124 optional arg to split-by-file.
4125 (parse_args): Handle them.
4126 * ld.texinfo: Update description of these options.
4127 * ldwrite.c (clone_section): Pass in the section name. Replace
4128 local code with bfd_get_unique_section_name.
4129 (split_sections): Tidy code and comments. Use a list traversal
4130 more appropriate to the list construction. Handle cooked section
4131 sizes. Split when split_by_reloc reached rather than exceeded.
4132 Track section size and split when split_by_file reached. Fix
4133 link_order_tail (even though it's not used).
4134 (ldwrite): Modify condition for calling split_sections to suit
4135 changed split_by_reloc and split_by_file.
4136 * ldmain.c (main): Init config.split_by_reloc and
4137 config.split_by_file to -1.
4138 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4139 Change split_by_file to bfd_size_type.
4141 2000-09-02 Nick Clifton <nickc@redhat.com>
4143 * configure.in: Increase version number to 2.10.91.
4144 * NEWS: Mention new ability to support removal of duplicate DWARF2
4146 * configure: Regenerate.
4147 * aclocal.m4: Regenerate.
4148 * config.in: Regenerate.
4150 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4152 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4154 * scripttempl/elf32avr.sc: Ditto.
4155 * scripttempl/elfd10v.sc: Ditto.
4156 * scripttempl/elfd30v.sc: Ditto.
4157 * scripttempl/elfi370.sc: Ditto.
4158 * scripttempl/elfm68hc11.sc: Ditto.
4159 * scripttempl/elfm68hc12.sc: Ditto.
4160 * scripttempl/elfi386beos.sc: Ditto.
4161 * scripttempl/v850.sc: Ditto.
4163 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4165 * acinclude.m4: Include libtool and gettext macros from the
4167 * aclocal.m4, configure: Rebuilt.
4169 2000-08-25 Nick Clifton <nickc@redhat.com>
4171 * ldlang.c (open_output): When choosing the target for a
4172 particular endianness, do nothing if the target is not
4175 2000-08-25 H.J. Lu <hjl@gnu.org>
4177 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4178 check -rpath nor LD_RUN_PATH for cross link.
4179 * ld.texinfo: Document the change.
4181 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4183 * NEWS: Mention support for CRIS.
4185 2000-08-23 H.J. Lu <hjl@gnu.org>
4187 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4188 the current runpath list from bfd_elf_get_runpath_list ()
4191 2000-08-22 H.J. Lu <hjl@gnu.org>
4193 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4194 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4195 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4196 trace_file_tries is non-zero.
4197 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4198 if trace_file_tries is non-zero.
4200 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4203 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4205 * NEWS: Mention i860 support.
4207 2000-08-14 Andreas Schwab <schwab@suse.de>
4209 * scripttempl/elf.sc: Fix last change to use correct comment
4212 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4214 * scripttempl/elf.sc: Add a comment giving the correspondence
4215 between sections, per-datum sections, and linkonce sections. Make
4216 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4219 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4221 * emulparams/elf32_i860.sh: New file.
4222 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4223 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4224 (eelf32_i860.c): New rule.
4225 * Makefile.in: Regenerate.
4227 2000-08-10 Nick Clifton <nickc@cygnus.com>
4229 * emulparams/mipspe.sh (ENTRY): Add definition.
4231 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4233 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4236 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4238 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4239 the final size of .bss section.
4240 * scripttempl/elfm68hc12.sc: Likewise.
4242 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4244 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4245 gld${EMULATION_NAME}_parse_args for consistency. Combine
4246 lastoptind and prevoptind vars, and keep track of last optind.
4247 (gld_${EMULATION_NAME}_list_options): Rename to
4248 gld${EMULATION_NAME}_list_options.
4250 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4252 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4253 (i586-sco-sysv5uw7.1.0).
4255 2000-07-27 H.J. Lu <hjl@gnu.org>
4257 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4258 (PARSE_AND_LIST_PROLOGUE): New.
4259 (PARSE_AND_LIST_LONGOPTS): Likewise.
4260 (PARSE_AND_LIST_OPTIONS): Likewise.
4261 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4262 (PARSE_AND_LIST_EPILOGUE): Likewise.
4264 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4266 * emultempl/armelf.em: Elide functions common to elf32.em,
4267 ie. most of the file.
4268 (arm_elf_after_open): New. Do arm specific things then call
4269 gld${EMULATION_NAME}_after_open.
4270 (arm_elf_before_allocation): New. Call
4271 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4272 (PARSE_AND_LIST_PROLOGUE): Define.
4273 (PARSE_AND_LIST_SHORTOPTS): Define.
4274 (PARSE_AND_LIST_LONGOPTS): Define.
4275 (PARSE_AND_LIST_OPTIONS): Define.
4276 (PARSE_AND_LIST_ARGS_CASES): Define.
4277 (LDEMUL_AFTER_OPEN): Define.
4278 (LDEMUL_BEFORE_ALLOCATION): Define.
4279 (LDEMUL_BEFORE_PARSE): Define.
4280 (LDEMUL_FINISH): Define.
4282 * emultempl/hppaelf.em: Similarly zap most of this file.
4283 (hppaelf_add_stub_section): Prototype.
4284 (hppaelf_layaout_sections_again): Prototype.
4285 (hook_in_stub): Prototype.
4286 (LDEMUL_SET_OUTPUT_ARCH): Define.
4287 (LDEMUL_FINISH): Define.
4288 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4290 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4291 (EXTRA_EM_FILE): New.
4292 * emulparams/armelf_linux.sh: Likewise.
4293 * emulparams/armelf_linux26.sh: Likewise.
4294 * emulparams/hppalinux.sh: Likewise.
4295 * emulparams/hppaelf.sh: Likewise.
4298 * emultempl/elf32.em: Fix formatting.
4299 (EXTRA_EM_FILE): Source it.
4300 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4301 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4302 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4303 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4304 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4305 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4306 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4307 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4308 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4309 allow functions in this file to be overridden.
4310 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4312 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4314 * emultempl/elf32.em: Reorganize file.
4316 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4318 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4319 specific option to fit 64-bit executable in the lower
4320 31-bit address range. This is done by changing start
4321 address of .interp (the very first section of executable)
4322 and then setting EF_ALPHA_32BIT elf header flag.
4324 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4326 * emultempl/m68kcoff.em: New file.
4327 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4328 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4330 * Makefile.in: Regenerate.
4332 2000-07-20 H.J. Lu <hjl@gnu.org>
4334 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4335 and "disable-new-dtags" to stop getopt from treating -d/-e as
4336 abbreviations for these options.
4338 2000-07-20 H.J. Lu <hjl@gnu.org>
4340 * ld.texinfo: Add documentation for --disable-new-dtags and
4343 * ldmain.c (main): Initialize link_info.new_dtags to false.
4345 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4346 --disable-new-dtags and --enable-new-dtags.
4347 (gld_${EMULATION_NAME}_list_options): Likewise.
4349 2000-07-05 Kenneth Block <krblock@computer.org>
4351 * lexsup.c: Add optional style to demangle switch
4352 * ld.texinfo: Document optional style to demangle switch.
4354 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4356 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4358 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4359 Regenerate dependencies.
4360 * Makefile.in: Rebuild.
4361 * configure.tgt (cris-*-*): New target.
4362 * emulparams/crisaout.sh, emulparams/criself.sh,
4363 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4364 * po/POTFILES.in, po/ld.pot: Regenerate.
4366 2000-07-20 H.J. Lu <hjl@gnu.org>
4368 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4369 Print out ignored -z options.
4371 2000-07-19 H.J. Lu <hjl@gnu.org>
4373 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4374 (PARSE_AND_LIST_PROLOGUE): New.
4375 (PARSE_AND_LIST_LONGOPTS): Likewise.
4376 (PARSE_AND_LIST_OPTIONS): Likewise.
4377 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4379 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4381 * lexsup.c (ld_options): Comment out 'z'.
4382 (parse_args): Likewise.
4384 * emultempl/elf32.em: Include "elf/common.h".
4385 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4387 (gld_${EMULATION_NAME}_list_options): Likewise.
4389 * ld.texinfo: Add documentation for the recognized -z options.
4391 2000-07-19 H.J. Lu <hjl@gnu.org>
4393 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4394 bfd_elf_set_dt_needed_soname ().
4396 2000-07-18 DJ Delorie <dj@cygnus.com>
4398 * pe-dll.c (pe_dll_id_target): check object target name also
4400 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4402 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4403 ${INIT_END} if relocating.
4404 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4406 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4408 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4409 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4410 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4411 errors introduced by the old dynamic lib search order.
4413 2000-07-17 DJ Delorie <dj@cygnus.com>
4415 * pe-dll.c (process_def_file): auto-export data items also
4416 (pe_process_import_defs): also see if _imp_ form needed
4418 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4420 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4421 for dll import libraries
4423 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4425 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4426 gcc 2.95.2 and later.
4428 2000-07-11 Kazu Hirata <kazu@hxi.com>
4430 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4433 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4435 * ldemul.h (struct lang_input_statement_struct): Remove forward
4437 (struct search_dirs): Likewise.
4438 * ldfile.h (struct lang_input_statement_struct): Likewise.
4439 Protect file from multiple inclusion.
4440 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4441 declaration from macro to file scope.
4443 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4444 * ldgram.y: Likewise here.
4445 * ldlang.c: And here.
4446 * ldmain.c: And here.
4447 * mpw-elfmips.c: And here.
4448 * mpw-eppcmac.c: And here.
4449 * emultempl/aix.em: And here.
4450 * emultempl/armcoff.em: And here.
4451 * emultempl/armelf.em: And here.
4452 * emultempl/armelf_oabi.em: And here.
4453 * emultempl/beos.em: And here.
4454 * emultempl/elf32.em: And here.
4455 * emultempl/hppaelf.em: And here.
4456 * emultempl/linux.em: And here.
4457 * emultempl/lnk960.em: And here.
4458 * emultempl/pe.em: And here.
4459 * emultempl/sunos.em: And here.
4460 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4461 * mpw-idtmips.c: Ditto.
4462 * emultempl/generic.em: Ditto.
4463 * emultempl/gld960.em: Ditto.
4464 * emultempl/gld960c.em: Ditto.
4465 * emultempl/mipsecoff.em: Ditto.
4466 * emultempl/ticoff.em: Ditto.
4467 * emultempl/vanilla.em: Ditto.
4469 * pe-dll.c: Include ldfile.h
4470 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4472 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4473 arguments to bfd_elf32_size_dynamic_sections call.
4474 (gldelf32ebmip_place_orphan): Add missing arguments to
4475 lang_leave_output_section_statement call.
4477 2000-07-10 H.J. Lu <hjl@gnu.org>
4479 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4481 (strhash): Likewise.
4482 (compute_dll_image_base): Likewise.
4483 (pe_undef_found_sym): Likewise.
4484 (pe_undef_cdecl_match): Likewise.
4485 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4486 argument "arch" with ATTRIBUTE_UNUSED.
4488 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4490 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4492 From Ryan Bradetich <rbradetich@uswest.net>
4493 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4495 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4497 Changes to create multiple linker stubs, positioned immediately
4498 before the section where they are required.
4499 * emultempl/hppaelf.em: Include elf32-hppa.h.
4500 (stub_sec, file_chain): Delete.
4501 (hppaelf_create_output_section_statements): Don't make a stub
4503 (hook_stub_info): New struct.
4504 (hook_in_stub): New function.
4505 (hppaelf_add_stub_section): New function.
4506 (hppaelf_finish): Do nothing for relocateable links. Modify the
4507 call to elf32_hppa_size_stubs. Move code for updating section
4509 (hppaelf_layaout_sections_again): ..to here, a new function.
4511 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4512 broken list handling. Pass in a pointer to the list.
4513 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4515 (hppaelf_before_parse): Prototype.
4516 (hppaelf_set_output_arch): Prototype.
4517 (hppaelf_create_output_section_statements): Prototype.
4518 (hppaelf_delete_padding_statements): Prototype.
4519 (hppaelf_finish): Prototype.
4522 * emultempl/hppaelf.em: Include ctype.h.
4523 (struct orphan_save): New.
4524 (gld${EMULATION_NAME}_place_orphan): New.
4525 (output_rel_find): New.
4526 (hppaelf_get_script): Update from elf32.em.
4527 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4528 Change emulation_name field to "${EMULATION_NAME}". Add
4529 gld${EMULATION_NAME}_place_orphan.
4531 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4532 ehppalinux.o, sort it. Regenerate dependencies.
4533 (ehppalinux.c): Depend on hppaelf.em
4534 * Makefile.in: Regenerate.
4536 * configure.tgt: targ_emul=hppalinux for hppa*linux
4538 * emulparams/hppalinux.sh: New.
4539 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4541 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4543 * lexsup.c (parse_args): Copy section name.
4545 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4547 * emultempl/pe.em: institute the following search order for
4548 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4549 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4550 static lib (libfoo.a) if none of the above are found.
4552 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4554 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4555 (longopts): New --{enable,disable}-auto-image-base options.
4556 (gld_${EMULATION_NAME}_list_options): Document.
4557 (gld_${EMULATION_NAME}_parse): Handle.
4558 (strhash): New static function.
4559 (compute_dll_image_base): New static function.
4560 (gld_${EMULATION_NAME}_set_symbols): Use.
4562 2000-07-05 DJ Delorie <dj@redhat.com>
4566 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4568 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4569 * emulparams/elf32btsmip.sh: New file.
4570 * Makefile.am: Add traditional mips target.
4571 * Makefile.in: Rebuild.
4573 2000-07-01 H.J. Lu <hjl@gnu.org>
4575 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4576 automake to use YLWRAP.
4577 * Makefile.in: Rebuild.
4579 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4581 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4582 (CLEANFILES): Add DEPA.
4583 * Makefile.in: Regenerate.
4585 2000-06-30 Timothy Wall <twall@ppc>
4587 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4588 the page in the upper octet of the address.
4590 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4592 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4594 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4596 * NEWS: arm-elf does --gc-sections too.
4598 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4600 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4602 * Makefile.in: Regenerate.
4604 2000-06-21 H.J. Lu <hjl@gnu.org>
4606 * Makefile.am: Rebuild dependency.
4607 * Makefile.in: Rebuild.
4609 2000-06-20 H.J. Lu <hjl@gnu.org>
4611 * Makefile.am: Rebuild dependency.
4612 * Makefile.in: Rebuild.
4614 2000-06-20 Timothy Wall <twall@cygnus.com>
4616 * scripttempl/tic54xcoff.sc: New.
4617 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4618 * gen-doc.texi: Add flag for TI COFF.
4619 * ld.texinfo: Add documentation for TI COFF handling switches.
4620 * emultempl/ticoff.em: New. TI COFF handling.
4621 * configure.tgt: Add tic54x target.
4622 * Makefile.am: Add tic54x target.
4623 * Makefile.in: Ditto.
4625 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4627 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4628 checking for backslashes.
4630 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4632 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4634 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4636 * NEWS: Update list of targets supporting --gc-sections.
4638 * scripttempl/elf.sc: KEEP .eh_frame contents.
4639 * scripttempl/elfd30v.sc: Same here.
4641 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4643 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4645 * Makefile.in: Rebuild.
4646 * configure.tgt: Recognize m68hc12 and m68hc11.
4647 * scripttempl/elfm68hc12.sc: New file.
4648 * emulparams/m68hc12elfb: New emulation.
4649 * emulparams/m68hc12elf: New emulation.
4650 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4651 (includes a memory.x script to define the ROM and RAM banks).
4652 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4653 New configuration files for support of Motorola 68hc11
4655 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4657 * ldmain.c (main): Only change SEC_READONLY for final link.
4659 2000-06-13 H.J. Lu <hjl@gnu.org>
4661 * configure: Regenerate.
4663 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4665 * configure.in (VERSION): Update to show this is the CVS mainline.
4667 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4669 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4670 input objects to be ECOFF.
4671 (check_sections): einfo takes %B, not %P, to print a BFD name.
4673 2000-06-05 Michael Matz <matz@ifh.de>
4675 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4678 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4680 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4682 * emulparams/avr1200.sh (STACK): Define as 0.
4683 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4684 * emulparams/avr4433.sh (STACK): Likewise.
4685 * emulparams/avr44x4.sh (STACK): Likewise.
4686 * emulparams/avr85xx.sh (STACK): Likewise.
4687 * emulparams/avrmega103.sh (STACK): Likewise.
4688 * emulparams/avrmega161.sh (STACK): Likewise.
4689 * emulparams/avrmega603.sh (STACK): Likewise.
4690 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4691 (__stack): Define from ${STACK} for main().
4693 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4695 * Makefile.am: Update dependencies with "make dep-am"
4696 * Makefile.in: Regenerate.
4698 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4700 * ldmain.c: Include filenames.h.
4701 (set_scripts_dir): Support backslashes in program name.
4703 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4705 * ldmain.c (main): When deciding if ".text" section should be
4706 read-only, don't forget to reset SEC_READONLY because it
4707 could be already set.
4709 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4711 * ld.1: Add documentation for new command line option:
4712 --section-start <sectionname>=<sectionorg>
4713 This is a generic version of -Ttext etc. which accepts
4714 any section name as a parameter instead of just text/data/
4716 * ld.texinfo: More docs.
4718 * lexsup.c: (parse_args): Recognize new command line option.
4719 (ld_options): Add new option.
4721 2000-05-18 H.J. Lu <hjl@gnu.org>
4723 * lexsup.c (parse_args): `i' == `r', not `q'.
4725 2000-05-18 Jeffrey A Law (law@cygnus.com)
4727 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4729 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4730 Rick Gorton <gorton@scrugs.lkg.dec.com>
4732 Add support for '-q' == '--emit-relocs' switch.
4733 * ldmain.c (main): Default to false.
4734 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4735 * NEWS: Describe the emitrelocations switch.
4736 * ld.texinfo: Describe the emitrelocations switch.
4738 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4740 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4741 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4742 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4745 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4747 * lexsup.c (parse_args): Update the year in the copyright notice.
4749 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4751 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4752 Replace defines with those from intl/libgettext.h to quieten gcc
4755 2000-05-10 H.J. Lu <hjl@gnu.org>
4757 * ldlang.c (open_input_bfds): Don't load the same file within
4758 a group again if the whole archive has been loaded already.
4760 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4762 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4763 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4766 2000-05-01 Jim Wilson <wilson@cygnus.com>
4768 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4770 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4771 host "ia64-*-linux-gnu*".
4773 2000-04-29 Andreas Jaeger <aj@suse.de>
4775 * ld.h: Correctly check GCC version.
4777 2000-04-25 Jeffrey A Law (law@cygnus.com)
4779 * Makefile.am: Add PA64 support. Add missing dependencies for
4781 * Makefile.in: Rebuilt.
4782 * configure.tgt: Add PA64 support (currently disabled).
4784 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4786 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4787 (output_rel_find): New function.
4788 (hold_section, hold_use): Delete.
4789 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4790 hold_interp): Make local to place_orphan.
4791 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4792 rather than place_section to find possible previous use of orphan.
4793 Similarly find the place-holder output sections. Use returned
4794 value from lang_enter_output_section_statement rather than calling
4795 lang_output_section_statement_lookup.
4796 * emultempl/armelf.em: Same here.
4797 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4799 * ldlang.c (lang_enter_output_section_statement): Return output
4801 * ldlang.h (lang_enter_output_section_statement): Change
4804 * ldlang.h (lang_output_section_statement): Export it.
4805 * ldlang.c (lang_output_section_statement): Ditto.
4807 2000-04-24 Nick Clifton <nickc@cygnus.com>
4809 * ld.texinfo (Output Section Data): Add note that section data
4810 commands cannot appear outside of section directives.
4812 2000-04-2 Matthew Green <mrg@cygnus.com>
4814 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4816 2000-04-21 Richard Henderson <rth@cygnus.com>
4817 David Mosberger <davidm@hpl.hp.com>
4819 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4820 (eelf64_ia64.c): New rule.
4821 * Makefile.in: Rebuild.
4822 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4823 * emulparams/elf64_ia64.sh: New file.
4825 2000-04-21 Richard Henderson <rth@cygnus.com>
4827 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4829 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4831 * dep-in.sed: Match space at start of file name, not at end.
4833 2000-04-18 H.J. Lu <hjl@gnu.org>
4835 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4836 lang_leave_output_section_statement () after calling
4837 lang_enter_output_section_statement ().
4838 * emultempl/armelf.em: Likewise.
4840 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4842 * emultempl/elf32.em (struct orphan_save): Add section field.
4843 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4844 better order, and place first orphan section as we did before the
4845 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4846 Don't call make_bfd_section here, let wild_doit do the job for us.
4847 Don't build a statement list when we'll only throw it away.
4848 * emultempl/armelf.em: Ditto.
4849 * emultempl/pe.em: Similarly.
4851 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4853 * scripttempl/elfppc.sc: Remove.
4854 * emulparams/elf32ppc.sh: Use elf.sc.
4855 * emulparams/elf32lppc.sh: Use elf.sc.
4856 * emulparams/elf32ppclinux.sh: Use elf.sc.
4857 * emulparams/elf32ppcsim.sh: New file.
4858 * emulparams/elf32lppcsim.sh: New file.
4859 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4860 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4861 * Makefile.in: Regenerate.
4862 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4864 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4866 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4867 ~SEC_ALLOC sections too. Init start address of debug sections.
4868 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4869 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4870 Also set all relocateable section start addresses.
4872 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4874 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4875 Add new BSS_PLT variable for when .plt need not be contained in
4876 the file. Move _etext so that it is also after .fini, and provide
4877 both etext and _etext with a leading underscore. Mark the start
4880 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4882 * emultempl/elf32.em (struct orphan_save): New.
4883 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4884 hold_interp): Make them struct orphan_save.
4885 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4886 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4887 the end of the relevant section list. Also add associated section
4888 statements to the end of any previous orphan statements.
4889 * emultempl/armelf.em: Similarly.
4890 * emultempl/pe.em: Similarly.
4892 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4894 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4896 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4898 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4899 --enable-build-warnings option.
4900 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4901 * Makefile.in, configure: Re-generate.
4903 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4905 * po/ld.pot: Regenerate.
4907 * lexsup.c (help): Restore translated part of bug string.
4909 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4910 (DEP): Quote when passing vars to sub-make. Add warning message
4912 (DEP1): Rewrite for "gcc -MM".
4913 (CLEANFILES): Add DEP2.
4914 Update dependencies.
4915 * Makefile.in: Regenerate.
4917 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4919 * ld.h: #include "bin-bugs.h"
4920 * lexsup.c (help): Use REPORT_BUGS_TO.
4922 2000-03-27 Denis Chertykov <denisc@overta.ru>
4924 * configure.tgt (avr-*-*): New target support.
4925 * Makefile.am: Likewise.
4926 * scripttempl/elf32avr.sc: New script file.
4927 * emulparams/avr1200.sh: New file.
4928 * emulparams/avr23xx.sh: New file.
4929 * emulparams/avr4433.sh New file.
4930 * emulparams/avr44x4.sh New file.
4931 * emulparams/avr85xx.sh New file.
4932 * emulparams/avrmega103.sh New file.
4933 * emulparams/avrmega161.sh New file.
4934 * emulparams/avrmega603.sh New file.
4935 * Makefile.in: Regenerate.
4937 2000-03-09 Andreas Jaeger <aj@suse.de>
4939 * Makefile.am (check-DEJAGNU): Also unset LANG.
4940 * Makefile.in: Rebuild.
4942 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4944 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4947 2000-03-02 H.J. Lu <hjl@gnu.org>
4949 * emulparams/elf32mcore.sh: Include "getopt.h".
4951 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4953 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4955 2000-03-01 H.J. Lu <hjl@gnu.org>
4957 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4958 * emulparams/shpe.sh: Likewise.
4960 2000-03-01 Nick Clifton <nickc@cygnus.com>
4962 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4963 to unused parameters.
4965 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4966 functions only used by DLL code.
4967 (_place_orphan): Initialise 'dollar'.
4969 2000-03-01 H.J. Lu <hjl@gnu.org>
4971 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4972 indicate if the undefined symbol is a fatal error or not.
4973 Don't delete the output file if "fatal" is false.
4975 2000-02-29 H.J. Lu <hjl@gnu.org>
4977 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4978 Set LC_COLLATE and LC_ALL to null and export them. It is for
4979 sort which expects the C locale.
4980 Add $(LIBS) to all $(HOSTING_LIBS).
4981 * Makefile.in: Rebuild.
4983 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4985 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4986 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4987 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4988 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4989 find_potential_libraries.
4991 2000-02-28 Jim Blandy <jimb@redhat.com>
4993 * ldgram.y (exclude_name_list): Don't require a comma to separate
4994 list entries; the lexer considers commas to be valid part of a
4995 filename, so in something like `foo, bar' the comma is considered
4996 part of the first filename, `foo,'.
4997 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4999 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5001 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5002 host "i[3456]86-*-freebsdelf*".
5004 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5006 * scripttempl/i386go32.sc: Move misplaced semicolons.
5008 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5010 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5011 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5012 (eelf64hppa.c, ehppaelf.c): Remove targets.
5013 * Makefile.in: Rebuild.
5015 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5017 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5018 GNU/Linux/sparc, but keep the default as 32.
5020 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5021 it default if sparcv9 or sparc64.
5023 2000-02-24 Nick Clifton <nickc@cygnus.com>
5025 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5026 * Makefile.in: Regenerate.
5027 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5029 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5030 find_potential_libraries.
5031 * ldemul.c (ldemul_find_potential_libraries): New function.
5033 * ldfile.c (ldfile_open_file_search): Allow function to be
5035 (ldfile_open_file): Call ldemul_find_potential_libraries.
5036 * ldfile.h: Add prototype for ldfile_open_file_search.
5038 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5040 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5041 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5043 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5044 (gld_X_find_potential_libraries): New function. Search for
5045 libraries called "*.lib".
5047 * scripttempl/pe.sc: Add .pdata section.
5049 2000-02-23 Richard Henderson <rth@cygnus.com>
5051 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5052 Add and use memory regions.
5054 2000-02-23 Linas Vepstas (linas@linas.org)
5056 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5058 * Makefile.am: Add support for Linux/IBM 370.
5059 * configure.tgt: Likewise.
5061 * Makefile.in: Regenerate.
5063 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5065 * ldlang.c (print_input_section, print_data_statement,
5066 print_reloc_statement, print_padding_statement, insert_pad,
5067 size_input_section, lang_check_section_addresses,
5068 lang_size_sections, lang_do_assignments, lang_set_startof,
5069 lang_one_common): Change `opb' to unsigned.
5070 (lang_do_assignments): Also change `size' to unsigned.
5072 2000-02-16 Richard Henderson <rth@cygnus.com>
5074 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5076 2000-02-16 Timothy Wall <twall@cygnus.com>
5078 * mri.c (mri_draw_tree): Add default LMA region argument to call
5079 to lang_leave_output_section_statement.
5080 * ldlang.h: Update prototypes with LMA region arguments.
5081 * ldlang.c (lang_size_sections): Encapsulate region bounds
5082 checking in os_check_region call.
5083 (os_check_region): New function.
5084 (lang_output_section_statement_lookup): Initialize lma_region.
5085 (lang_leave_output_section_statement): Add LMA region argument.
5086 (lang_leave_overlay): Ditto.
5087 * ldgram.y: Handle LMA region syntax.
5088 * ld.texinfo (Output Section Description): Describe LMA region usage.
5089 * emultempl/armelf.em (gld$place_orphan): Add default value for
5090 lma region in call to lang_leave_output_section_statement.
5091 * emultempl/elf32.em (gld$place_orphan): Add default value for
5092 lma region in call to lang_leave_output_section_statement.
5093 * emultempl/pe.em (gld$place_orphan): Add default value for
5094 lma region in call to lang_leave_output_section_statement.
5097 2000-02-04 Timothy Wall <twall@redhat.com>
5099 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5100 octets when calculating section end addresses.
5102 2000-02-04 Timothy Wall <twall@redhat.com>
5104 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5106 2000-02-03 Timothy Wall <twall@redhat.com>
5108 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5110 * ldlang.c (print_input_section, print_data_statement,
5111 print_reloc_statement, print_padding_statement): Print target
5112 address values and section sizes as bytes, not octets.
5113 (insert_pad) Calculate padding size in octets, and adjust "dot"
5115 (size_input_section) Always adjust "dot" by bytes, not octets.
5116 (lang_check_section_addresses, lang_do_assignments) Adjust
5117 "dot" by bytes, not octets. Use the larger of the directive size
5118 or octets_per_byte for the number of octets actually allocated in
5120 (lang_set_startof) Make sure STARTOF returns a target address.
5121 (lang_one_common) Record size changes in octets.
5122 (lang_abs_symbol_at_end_of) Section end symbol's value is
5123 recorded in target bytes.
5124 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5125 to be clear about behavior when an octet is smaller than one byte.
5127 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5129 * ldcref.c (output_cref): Don't pass message strings to printf
5133 * ldmisc.c (vfinfo): Same here.
5136 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5138 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5139 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5140 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5141 Add missing NULL initialisers, and comments.
5143 2000-01-21 Nick Clifton <nickc@cygnus.com>
5145 * ldlang.c (lang_size_sections): Fix typo in comment.
5147 2000-01-18 H.J. Lu <hjl@gnu.org>
5149 * ldlang.c (lang_size_sections): Also update the current
5150 address of a region if the SEC_NEVER_LOAD bit is not set.
5152 2000-01-10 Philip Blundell <pb@futuretv.com>
5154 * configure.tgt (arm*-*-conix*): New target.
5156 2000-01-07 Nick Clifton <nickc@cygnus.com>
5158 * ld.texinfo (Options): Remind users to preceed linker command
5159 line switches with -Wl, (or whatever is appropriate) if it is
5160 being invoked by a comnpiler driver program.
5161 Fix description of the behaviour of the -n command line switch.
5163 2000-01-05 Catherine Moore <clm@cygnus.com>
5165 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5167 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5168 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5169 (exclude_name_list): New.
5170 ldlang.c (walk_wild_section): Support list of excluded files.
5171 (print_wild_statement): Likewise.
5172 (lang_add_wild): Likewise.
5173 * ldlang.h (lang_wild_statement_type): Likewise.
5174 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5176 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5178 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5179 (process_def_file): Use.
5180 (pe_dll_compat_implib): New variable.
5183 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5184 pe_dll_compat_implib.
5186 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5187 compat-implib options.
5188 (gld_${EMULATION_NAME}_list_options): List new options.
5189 (gld_${EMULATION_NAME}_parse_args): Handle.
5191 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5194 * deffilep.y (opt_name): Allow "." in name.
5196 For older changes see ChangeLog-9899
5202 version-control: never