1 2002-11-30 Alan Modra <amodra@bigpond.net.au>
3 * configure.host: Correct dynamic-linker for powerpc64 hosts.
5 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
6 * Makefile.in: Regenerate.
8 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
9 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
10 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
11 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
12 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
13 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
14 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
15 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
16 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
17 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
18 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
19 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
20 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
22 2002-11-27 David O'Brien <obrien@FreeBSD.org>
24 * configure.host: Fix generic FreeBSD configuration entry.
26 2002-11-27 H.J. Lu <hjl@gnu.org>
28 * ld.texinfo: Add the missing `;' to sample version scripts.
30 2002-11-20 Alan Modra <amodra@bigpond.net.au>
32 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
34 2002-11-14 Egor Duda <deo@logos-m.ru>
36 * ldmain.c (main): Make runtime relocs disabled by default. Remove
37 assignment which has no effect.
38 * pe-dll.h (pe_create_import_fixup): Change prototype.
39 * pe-dll.c (make_runtime_pseudo_reloc): New function.
40 (pe_create_runtime_relocator_reference): Ditto.
41 (pe_create_import_fixup): Handle relocations with non-zero addends.
42 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
43 --disable-runtime-pseudo-reloc.
44 (make_import_fixup): Handle relocations with non-zero addends. Create
45 an external reference to _pei386_runtime_relocator symbol if at least
46 one pseudo reloc was created.
47 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
48 --disable-runtime-pseudo-reloc options.
50 2002-11-12 Earl Chew <earl_chew@agilent.com>
52 * ldlang.c (lang_add_section): Discard debugging sections that have
53 been marked SEC_EXCLUDE.
55 2002-11-12 Nick Clifton <nickc@redhat.com>
57 * configure.in (ALL_LINGUAS): Add da.
58 * configure: Regenerate.
59 * po/da.po: New Danish translation.
61 2002-11-12 Alan Modra <amodra@bigpond.net.au>
63 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
64 (LDEMUL_BEFORE_ALLOCATION): Define.
65 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
67 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
69 2002-11-11 Christopher Faylor <cgf@redhat.com>
71 * configure.tgt (LIB_PATH): Default to searching w32api directory under
74 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
76 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
77 of restricted auto-export libs.
79 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
81 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
82 creative library naming instances like, e.g., libstdc++-2.a.
84 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
86 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
87 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
89 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
91 * deffilep.y (def_lex): Handle '@' as first character of an ID.
92 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
93 (make_one): Don't prefix decorated fastcall symbols with '_'.
94 (pe_process_import_defs): Likewise.
95 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
96 symbols to cdecl names or vise-versa.
98 2002-10-13 Eric Kohl <ekohl@rz-online.de>
100 * pe-dll.c (process_def_file): Handle fastcall symbols when
101 generating undecorated aliases. Don't prefix decorated fastcall
103 (fill_exported_offsets): Don't prefix decorated fastcall symbols
106 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
108 * emultempl/aix.em: Use include <> for generated headers.
109 * emultempl/beos.em: Likewise.
110 * emultempl/elf32.em: Likewise.
111 * emultempl/pe.em: Likewise.
112 * ldctor.c: Likewise.
114 * ldfile.c: Likewise.
115 * ldlang.c: Likewise.
118 * ldmain.c: Likewise.
119 * ldmisc.c: Likewise.
120 * ldwrite.c: Likewise.
121 * lexsup.c: Likewise.
123 * pe-dll.c: Likewise.
125 2002-10-23 Jakub Jelinek <jakub@redhat.com>
127 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
128 sections into .rel{,a}.dyn.
130 2002-10-23 Nick Clifton <nickc@redhat.com>
132 * lexsup.c (OPTION_NO_OMAGIC): Define.
133 (ld_options): Add "no-omagic" option.
134 (parse_args): Parse --no-omagic.
135 * ld.texinfo: Document --no-omagic.
136 * NEWS: Mention new option.
138 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
140 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
141 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
143 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
145 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
146 emulation name. Set LIB_PATH only for native tools, and
147 search the ABI-specific versions of NATIVE_LIB_DIRS before the
148 .../lib variants, not instead of them. Mostly copied from...
149 * emulparams/elf32ppc.sh: ... here. Fixed typo.
150 * emulparams/elf64bmip-defs.sh: Backed out.
151 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
152 * emulparams/elf64btsmip.sh: Likewise.
153 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
154 TEXT_DYNAMIC): Removed.
156 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
158 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
159 (GENERATE_SHLIB_SCRIPT): Set to yes.
160 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
161 * emulparams/elf32bmipn32.sh: here.
162 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
163 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
164 * emulparams/elf64bmip-defs.sh: New file. Extend
165 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
166 * emulparams/elf64bmip.sh: Bring in definitions from
168 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
170 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
171 * emulparams/elf64btsmip.sh: Bring in definitions from
173 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
174 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
176 2002-10-16 Jakub Jelinek <jakub@redhat.com>
178 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
179 (s390-*-linux*): Add elf64_s390 emulation if want64.
180 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
181 genscript.sh changes.
182 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
183 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
185 2002-10-15 Alan Modra <amodra@bigpond.net.au>
187 * ldlang.c (load_symbols): Revert last change.
189 2002-10-14 Alan Modra <amodra@bigpond.net.au>
191 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
193 (lang_reasonable_defaults): Don't compare against false.
194 (size_input_section): Likewise.
195 (lang_size_sections_1): Likewise.
196 (lang_do_assignments): Likewise.
197 (lang_add_output): Likewise.
199 * Makefile.am: Run "make dep-am".
200 * Makefile.in: Regenerate.
201 * ldver.c: #include "bfdver.h".
203 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
205 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
207 * scripttempl/elfm68hc12.sc: Likewise.
209 2002-10-11 Alan Modra <amodra@bigpond.net.au>
211 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
213 * ldgram.y (memory_spec): Provide empty action.
214 (section <NAME>): Likewise.
216 2002-10-10 Jakub Jelinek <jakub@redhat.com>
218 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
219 they have OUTPUT_FORMAT not matching actual output format.
220 * ldlang.c (lang_get_output_target): New function.
221 (open_output): Use it.
222 * ldlang.h (lang_get_output_target): New prototype.
224 2002-10-10 Alan Modra <amodra@bigpond.net.au>
226 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
227 when orphan is .rel, .rela when orphan is .rela.
228 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
229 first. Remove outsecname var.
231 2002-10-09 Richard Shann <richard.shann@superh.com>
232 Stephen Clarke <stephen.clarke@superh.com>
234 * Makefile.am: Add eshelf32_linux.o and
235 eshlelf32_linux.o, new emulations for sh64 Linux.
236 * Makefile.in: Regenerate.
237 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
238 * emulparams/shelf32_linux.sh: New file.
239 * emulparams/shlelf32_linux.sh: New file.
241 2002-10-08 H.J. Lu <hjl@gnu.org>
243 * ldlang.c (lang_file_exist): Removed.
244 (new_afile): Revert the last change.
245 * ldlang.h (lang_file_exist): Removed.
246 * lexsup.c (parse_args): Revert the last change.
248 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
250 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
252 (make_one): Create _nm_<symbol> for data only.
254 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
256 * ldlang.c (lang_file_exist): New function.
257 (new_afile): Abort if the filename to be added matches the linker
259 * ldlang.h: Add prototype for lang_file_exist.
260 * lexsup.c (parse_args): Abort if the output filename matches
261 one of the input filenames.
263 2002-10-02 Alan Modra <amodra@bigpond.net.au>
265 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
267 2002-09-30 Alan Modra <amodra@bigpond.net.au>
269 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
270 * scripttempl/elfm68hc11.sc: Likewise.
271 * scripttempl/elfm68hc12.sc: Likewise.
273 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
274 reloc sections just before .rel.plt/.rela.plt.
275 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
276 Only put loadable reloc sections in hold_rel.
278 2002-09-29 H.J. Lu <hjl@gnu.org>
280 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
282 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
284 From "Anita Kulkarni" <AnitaK@kpit.com>
285 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
288 2002-09-25 Alan Modra <amodra@bigpond.net.au>
290 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
292 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
293 SEGMENT_SIZE alignment.
294 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
295 (SEGMENT_SIZE): Define.
297 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
298 (fold_binary): Correct abs - non-abs case.
299 (fold_trinary): New. Split out from exp_fold_tree.
301 2002-09-24 Alan Modra <amodra@bigpond.net.au>
303 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
304 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
305 for start of .data, instead align up to 256M boundary.
306 * scripttempl/aix.sc: Likewise.
308 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
310 * scripttempl/i386go32.sc: Handle bss unique sections.
312 2002-09-21 Alan Modra <amodra@bigpond.net.au>
314 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
316 2002-09-17 Stan Cox <scox@redhat.com>
318 * emulparams/elf32bmipn32-defs.sh: New file.
319 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
320 * emulparams/elf32btsmipn32.sh: Likewise.
321 * emulparams/elf64bmip.sh: Likewise.
322 * emulparams/elf64btsmip.sh: Likewise.
324 2002-09-16 Bruno Haible <bruno@clisp.org>
326 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
328 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
331 2002-09-11 Nick Clifton <nickc@redhat.com>
333 * NEWS: New TI port supports both C4x and C3x series of DSPs.
335 * po/tr.po: Updated Turkish translation.
337 2002-09-06 Jeffrey A Law (law@redhat.com)
339 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
341 2002-09-02 Nick Clifton <nickc@redhat.com>
343 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
345 * emulparams/v850.sh (TEMPLATE_NAME): Define.
347 2002-08-30 Nick Clifton <nickc@redhat.com>
349 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
350 used. Change INSN to start at 0x01000000 and extend for
351 256K (ignoring holes). Start the STACK on a word aligned
353 (.rodata): Start it at the READONLY_START_ADDR.
355 2002-08-30 Alan Modra <amodra@bigpond.net.au>
357 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
359 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
361 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
362 added makefile targets for this file.
363 * Makefile.in: Regenerate.
364 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
365 * NEWS: Mention new port.
367 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
369 * emulparams/tic3xcoff.sh: New file.
370 * emulparams/tic4xcoff.sh: New file.
371 * scripttempl/tic3xcoff.sc: New file.
372 * scripttempl/tic4xcoff.sc: New file.
374 2002-08-28 Alan Modra <amodra@bigpond.net.au>
376 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
377 strtoul and strtoull with bfd_scan_vma.
378 (gld${EMULATION_NAME}_read_file): Likewise.
380 2002-08-28 Alan Modra <amodra@bigpond.net.au>
382 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
384 2002-08-27 Egor Duda <deo@logos-m.ru>
386 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
387 Add symbols for application to access them.
389 2002-08-27 Nick Clifton <nickc@redhat.com>
391 * emultempl/armelf.em: Revert this patch, it is not needed.
393 2002-08-22 Adam Nemet <anemet@lnxw.com>
395 2002-08-20 Dan Kegel <dank@kegel.com>
397 * configure.in: added --with-lib-path argument to ld's configure
399 * ld/NEWS: Document new switch.
400 * ld/README: Mention new switch.
401 * configure: Regenerate.
402 * Makefile.in: Regenerate.
405 2001-04-25 Christopher Faylor <cgf@cygnus.com>
407 * Makefile.in (LIB_PATH): Make configurable.
408 (GENSCRIPTS): Set LIB_PATH in environment.
409 * configure.in: Substitute LIB_PATH.
411 2002-08-22 Adam Nemet <anemet@lnxw.com>
413 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
414 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
415 depending on the type of the function.
416 (arm_elf_convert_thumb_symbol_to_address): New function.
418 2002-08-22 Graeme Peterson <gp@qnx.com>
420 * Makefile.am: Add esh{l}elf_nto.o files.
421 * Makefile.in: Regenerate.
422 * configure.tgt: Add support for sh-**-nto* targets.
423 * emulparams/shelf_nto.sh: New file.
424 * emulparams/shlelf_nto.sh: New file.
426 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
428 * ldlang.c (offsetof): Define if not defined.
430 2002-08-14 H.J. Lu <hjl@gnu.org>
432 * configure.tgt: Always enable 64bit emulations for 32bit
435 2002-08-13 Alan Modra <amodra@bigpond.net.au>
437 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
438 (MAXPAGESIZE): Set to 1.
440 * ld.h (ALIGN_N): Delete.
441 * ldexp.h (align_n): Declare.
442 * ldexp.c (align_n): New function.
443 (fold_binary): Use align_n instead of ALIGN_N.
444 (exp_fold_tree): Likewise.
445 * ldlang.c (lang_size_sections_1): Likewise.
446 (lang_one_common): Likewise.
447 * ld.texinfo (ALIGN): Remove power of 2 restriction.
449 2002-07-31 Graeme Peterson <gp@qnx.com>
451 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
452 * Makefile.am: Add eelf32{l}ppcnto.o files.
453 * Makefile.in: Regenerate.
454 * emulparams/elf32lppcnto.sh: New file.
455 * emulparams/elf32ppcnto.sh: New file.
457 2002-08-07 H.J. Lu <hjl@gnu.org>
459 * ld.texinfo: Document --no-undefined-version.
461 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
462 `script.' fields to 0.
464 * ldmain.c (main): Initialize the allow_undefined_version to
467 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
468 (ld_options): Add --no-undefined-version.
469 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
471 2002-08-07 Nick Clifton <nickc@redhat.com>
473 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
474 an interworking bfd if there are input bfds. (107501)
476 2002-08-06 Alan Modra <amodra@bigpond.net.au>
478 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
481 2002-08-01 Nick Clifton <nickc@redhat.com>
483 * emulparams/armelf.sh: Revert previous delta.
484 * scripttempl/elf.sc: Revert previous delta.
486 2002-07-31 H.J. Lu <hjl@gnu.org>
488 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
491 2002-07-31 H.J. Lu <hjl@gnu.org>
493 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
494 64bit BFD is selected.
496 2002-07-31 H.J. Lu <hjl@gnu.org>
498 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
499 if 64bit BFD is selected.
501 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
503 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
504 link_info.common_skip_ar_aymbols.
505 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
507 * ldmain.c (main): Initialize new field
508 link_info.common_skip_ar_aymbols.
510 2002-07-31 Adam Nemet <anemet@lnxw.com>
512 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
514 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
517 2002-07-31 Nick Clifton <nickc@redhat.com>
519 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
520 of the PDP-11 and 2.11BSD a.out support.
522 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
524 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
526 * Makefile.in: Regenerate.
527 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
528 n32 ABI emulations for these 64 bit targets.
529 * emulparams/elf32bmipn32.sh: Expand comment.
530 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
532 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
534 2002-07-30 Graeme Peterson <gp@qnx.com>
536 * configure.tgt: Add support for arm-*-nto target.
537 * Makefile.am: Add earmnto.o file.
538 * Makefile.in: Regenerate.
539 * NEWS: Mention port of ARM support to QNX.
540 * emulparams/armnto.sh: New file.
542 2002-07-30 Jakub Jelinek <jakub@redhat.com>
544 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
545 for relocatable link.
546 (lang_size_sections_1): Don't make .tbss zero size for relocatable
549 2002-07-26 Bernd Schmidt <bernds@redhat.com>
551 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
554 2002-07-25 Nick Clifton <nickc@redhat.com>
556 * po/sv.po: Updated Swedish translation.
557 * po/es.po: Updated Spanish translation.
558 * po/fr.po: Updated French translation.
560 2002-07-24 Nick Clifton <nickc@redhat.com>
562 * po/sv.po: Updated Swedish translation.
563 * po/es.po: Updated Spanish translation.
565 2002-07-23 Nick Clifton <nickc@redhat.com>
567 * po/fr.po: Updated French translation.
569 2002-07-20 Alan Modra <amodra@bigpond.net.au>
571 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
572 bomb on /DISCARD/ input section.
573 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
574 * emultempl/mmo.em (mmo_place_orphan): Likewise.
576 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
578 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
581 2002-07-16 Denis Chertykov <denisc@overta.ru>
582 Nick Clifton <nickc@redhat.com>
583 Frank Ch. Eigler <fche@redhat.com>
584 John Healy <jhealy@redhat.com>
586 * configure.tgt: Add support for ip2k-elf.
587 * Makefile.am: Add support for ip2k-elf.
588 * Makefile.in: Regenerate.
589 * emulparams/elf32ip2k.sh: New file.
590 * scripttempl/ip2k.sc: New file
591 * NEWS: Mention support for new port.
593 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
595 * NEWS: Add 'Changes in 2.13'.
597 2002-07-14 H.J. Lu <hjl@gnu.org>
599 * ld.texinfo: Document a .symver takes precedence over a
602 2002-07-12 Alan Modra <amodra@bigpond.net.au>
604 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
605 (COMMONPAGESIZE): Define.
607 2002-07-09 Alan Modra <amodra@bigpond.net.au>
609 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
611 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
613 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
614 powerpc-*-openbsd* and sparc64-*-openbsd*.
615 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
616 * Makefile.in: Regenerate.
617 * emulparams/hppaobsd.sh: New file.
619 2002-07-05 Alan Modra <amodra@bigpond.net.au>
621 * ldlang.c (print_wild_statement): Fix output formatting.
623 2002-07-04 Alan Modra <amodra@bigpond.net.au>
625 * ldlang.c: (strip_excluded_output_sections): New function.
626 (lang_process): Call it.
627 (lang_size_sections_1): Revert 2002-06-10 change.
629 2002-07-03 Alan Modra <amodra@bigpond.net.au>
631 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
633 * Makefile.in: Regenerate.
635 2002-07-02 Alan Modra <amodra@bigpond.net.au>
637 * ldfile.c (ldfile_try_open_bfd): Formatting.
639 * ldmisc.c (demangle): Move so that it doesn't intrude between
640 vfinfo comment and body. Add comment.
642 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
644 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
646 2002-07-01 Alan Modra <amodra@bigpond.net.au>
648 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
649 * ldlang.c (entry_sym): Likewise.
650 (ldlang_undef_chain_list_type): Likewise.
651 (lang_finish): Adjust references to entry_symbol.
652 (lang_add_entry): Likewise.
653 (lang_gc_sections): Use link_info.gc_sym_list.
654 (lang_process): Set link_info.gc_sym_list.
655 * ldlex.l: Include bfdlink.h.
656 * ldmain.c (main): Init link_info.gc_sym_list.
657 * emultempl/aix.em: Adjust references to entry_symbol.
658 * emultempl/armcoff.em: Likewise.
659 * emultempl/armelf.em: Likewise.
660 * emultempl/pe.em: Likewise.
661 * emultempl/ppc64elf.em (ppc_after_open): New function.
662 (LDEMUL_AFTER_OPEN): Define.
663 * emulparams/elf64ppc.sh: KEEP .opd sections.
665 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
667 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
668 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
669 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
670 (EEPROM_START_ADDR): Define.
671 (EEPROM_MEMORY): Define.
672 * emulparams/m68hc12elf.sh: Likewise.
673 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
674 section to put soft registers in .page0.
675 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
677 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
679 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
680 section. Add ${RELOCATING-0}.
682 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
684 * emulparams/shelf.sh (STACK_ADDR): Don't define.
685 (OTHER_SECTIONS): Define.
686 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
687 (OTHER_SECTIONS): Undef.
689 2002-06-26 Alan Modra <amodra@bigpond.net.au>
691 * ldmisc.c (demangle): Restore dots stripped from sym name.
693 2002-06-25 H.J. Lu <hjl@gnu.org>
695 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
696 * Makefile.in: Regenerated.
698 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
700 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
701 the size of attached object files, to allow make the object files
702 available via FTP or HTTP and to mention that the mail will be
703 sent to a mailing list.
705 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
707 * ld/configure.host (romp): Drop support.
709 2002-06-18 Chris Demetriou <cgd@broadcom.com>
711 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
712 section flags for SEC_DATA, rather than for SEC_CODE being unset.
714 2002-06-18 Chris Demetriou <cgd@broadcom.com>
716 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
717 format specifier used to print BFD name.
719 2002-06-18 Dave Brolley <brolley@redhat.com>
721 From Catherine Moore, Michael Meissner, Jim Blandy:
722 * emulparams/elf32frv.sh: New file.
723 * configure.tgt: Support frv-*-*.
724 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
725 (eelf32frv.c): New target.
727 2002-06-17 Tom Rix <trix@redhat.com>
729 * emultempl/elf32.em: gld*_get_script: Check for
730 GENERATE_COMBRELOC_SCRIPT.
731 * scripttempl/elfd10v.sc : Fix STACK and INSN.
732 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
734 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
736 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
738 2002-06-12 H.J. Lu <hjl@gnu.org>
740 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
741 false if xvec doesn't match.
743 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
745 * ldlang.c (lang_size_sections_1): Skip removed output sections.
747 2002-06-08 Alan Modra <amodra@bigpond.net.au>
749 * ldexp.c: Replace CONST with const.
750 * ldfile.c: Likewise.
751 * ldfile.h: Likewise.
754 * pe-dll.h: Likewise.
756 2002-06-07 Alan Modra <amodra@bigpond.net.au>
758 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
760 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
762 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
763 to -1 == implicit enable.
764 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
765 initialize link_info.pei386_auto_import to -1 == implicit
767 (gld_${EMULATION_NAME}_parse_args): When processing
768 --enable-auto-import and --disable-auto-import options, use
769 '1' and '0' instead of 'true' and 'false'.
770 (pe_find_data_imports): Only issue message about auto-import
771 when the feature is implicitly enabled. Downgrade message to
772 informational instead of warning.
774 2002-06-07 Alan Modra <amodra@bigpond.net.au>
776 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
778 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
780 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
781 HOSTING_CRT0 and HOSTING_LIBS.
783 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
785 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
787 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
789 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
790 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
792 2002-06-05 Alan Modra <amodra@bigpond.net.au>
794 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
795 SEC_EXCLUDE sections when doing a relocatable link.
797 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
799 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
800 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
801 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
802 (eshlelf64_nbsd.c): New rules.
803 * Makefile.in: Regenerate.
804 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
805 (sh64-*-netbsd*): New targets.
806 * emulparams/shelf32_nbsd.sh: New file.
807 * emulparams/shelf64_nbsd.sh: New file.
808 * emulparams/shlelf32_nbsd.sh: New file.
809 * emulparams/shlelf64_nbsd.sh: New file.
811 2002-06-04 Alan Modra <amodra@bigpond.net.au>
813 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
815 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
817 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
818 C++ constructors/destructors, loosely based on the m68hc11 port.
820 2002-05-31 Alan Modra <amodra@bigpond.net.au>
822 * Makefile.in: Regenerate.
823 * aclocal.m4: Regenerate.
824 * config.in: Regenerate.
825 * configure: Regenerate.
827 2002-05-31 Graeme Peterson <gp@qnx.com>
829 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
830 (ei386nto.c): Add rule.
831 * Makefile.in: Regenerate.
832 * configure.tgt: Add i[3456]86-*-nto-qnx*.
833 * emulparams/i386nto.sh: New file.
835 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
837 * NEWS: Add entry for VAX ELF support.
839 2002-05-29 Matt Thomas <matt@3am-software.com>
840 Jason Thorpe <thorpej@wasabisystems.com>
842 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
844 (evaxnbsd.c): New rules.
845 * Makefile.in: Regenerate.
846 * configure.tgt (vax-*-netbsdelf*)
848 (vax-*-netbsd*): New targets.
849 * emulparams/elf32vax.sh: New file.
850 * emulparams/vaxnbsd.sh: New file.
852 2002-05-29 Adam Nemet <anemet@lnxw.com>
854 * emultempl/armelf.em (arm_elf_after_open): Don't determine
855 bfd_for_interwork, instead add glue sections to each input bfd.
856 (bfd_for_interwork): New global.
857 (arm_elf_set_bfd_for_interworking): New function.
858 (arm_elf_before_allocation): Use it.
860 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
862 * Makefile.am: Add DLX make target.
863 * configure.tgt: Add DLX configuration.
864 * Makefile.in: Regenerate.
865 * emulparams/elf32_dlx.sh: New file
866 * scripttempl/dlx.sc: New file
868 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
870 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
871 * Makefile.in: Regenerate.
872 * emulparams/elf_chaos.sh: Use elf_chaos script.
873 * scripttempl/elf_chaos.sc: New file.
875 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
877 * ldlang.c (lang_size_sections_1): Move check for conflicting load
878 addresses and regions from here...
879 (lang_get_regions): ...to this new function.
880 (lang_leave_output_section_statement): Use lang_get_regions.
881 (lang_leave_overlay): Likewise.
882 * mri.c (mri_draw_tree): Pass null as last argument to
883 lang_leave_output_section_statement.
884 * emultempl/elf32.em (gld*_place_orphan): Likewise.
885 * emultempl/mmo.em (mmo_place_orphan): Likewise.
886 * emultempl/pe.em (gld*_place_orphan): Likewise.
888 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
890 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
892 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
894 * ldemul.c: Fix formatting.
895 * ldfile.c: Likewise.
896 * pe-dll.c: Likewise.
897 * pe-dll.h: Likewise.
899 2002-05-25 Alan Modra <amodra@bigpond.net.au>
901 * ldlang.c (lang_process): Formatting, grammar.
903 * ldlex.l: Use #include "" instead of <> for local header files.
905 2002-05-24 TAMURA Kent <kent@netbsd.org>
907 * configure.tgt: Add a target for i386-netbsdpe.
909 2002-05-23 Jakub Jelinek <jakub@redhat.com>
911 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
912 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
913 output section if necessary. Handle .tbss.
914 (lang_size_sections): Clear _raw_size for .tbss section
915 (it allocates space in PT_TLS segment only).
916 * ldwrite.c (build_link_order): Build link order for .tbss too.
918 2002-05-23 Alan Modra <amodra@bigpond.net.au>
920 * configure.in: Correct spelling of AC_PREREQ.
922 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
924 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
926 (autofilter_objlist): Add crtbegin.o, crtend.o.
928 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
930 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
931 (longopts): Add new option --exclude-libs.
932 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
933 (gld_${EMULATION_NAME}_parse_args): Use it.
934 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
935 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
937 (pe_dll_add_excludes): Set excludes->type.
938 (auto_export): Add new variable libname and set to archive basename if
939 abfd. Use it when filtering default and user-specified libarary
940 excludes. Let string "ALL" mean all libs when filtering user-specified
942 * ld.texinfo: Document --exclude-libs.
944 2002-05-22 Alan Modra <amodra@bigpond.net.au>
946 * ldemul.c (ldemul_new_vers_pattern): New function.
947 * ldemul.h (ldemul_new_vers_pattern): Declare.
948 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
949 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
950 * emultempl/ppc64elf.em (dotsyms): New static var.
951 (gld${EMULATION_NAME}_new_vers_pattern): New function.
952 (LDEMUL_NEW_VERS_PATTERN): Define.
953 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
954 (PARSE_AND_LIST_LONGOPTS): Likewise.
955 (PARSE_AND_LIST_ARGS_CASES): Handle them.
956 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
958 * emultempl/armcoff.em: Likewise.
959 * emultempl/armelf_oabi.em: Likewise.
960 * emultempl/beos.em: Likewise.
961 * emultempl/elf32.em: Likewise.
962 * emultempl/generic.em: Likewise.
963 * emultempl/gld960.em: Likewise.
964 * emultempl/gld960c.em: Likewise.
965 * emultempl/linux.em: Likewise.
966 * emultempl/lnk960.em: Likewise.
967 * emultempl/m68kcoff.em: Likewise.
968 * emultempl/mipsecoff.em: Likewise.
969 * emultempl/pe.em: Likewise.
970 * emultempl/sunos.em: Likewise.
971 * emultempl/ticoff.em: Likewise.
972 * emultempl/vanilla.em: Likewise.
974 2002-05-22 Alan Modra <amodra@bigpond.net.au>
976 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
977 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
978 (LIB_SEARCH_DIRS): No need to use "tr".
979 (COMPILE_IN): Only set for native targets.
980 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
981 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
982 * configure.tgt (powerpc*): Set tdir_*.
983 (powerpcle*): Correct targ_extra_emuls.
984 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
985 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
987 2002-05-22 Alan Modra <amodra@bigpond.net.au>
989 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
990 calling lang_add_entry.
992 2002-05-21 H.J. Lu (hjl@gnu.org)
994 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
996 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
998 * ld.texinfo: Updated for --allow-multiple-definition and
1001 * ldmain.c (main): Initialize the allow_multiple_definition
1004 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1005 (ld_options): Add --allow-multiple-definition.
1006 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1008 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1010 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1011 (earmelfb_nbsd.c): New rule.
1012 * Makefile.in: Regenerate.
1013 * configure.tgt (armeb-*-netbsdelf*): New target.
1014 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1015 (arm-*-netbsd*): Likewise.
1016 * emulparams/armelfb_nbsd.sh: New file.
1018 2002-05-18 Tom Rix <trix@redhat.com>
1020 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1023 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1025 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1026 * Makefile.in: Regenerate.
1027 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1029 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1031 * emulparams/avr1.sh: New file.
1032 * emulparams/avr2.sh: New file.
1033 * emulparams/avr3.sh: New file.
1034 * emulparams/avr4.sh: New file.
1035 * emulparams/avr5.sh: New file.
1036 * scripttempl/avr.sc: New file.
1038 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1040 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1041 (lang_place_orphans): Abort if just_syms_flag.
1043 2002-05-10 Tom Rix <trix@redhat.com>
1045 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1046 architecture and machine information in the output bfd.
1047 (gld*_before_parse): Remove old arch and machine code.
1048 (choose_target): Rename to gld*_choose_target.
1049 (rtld): Change type to int.
1050 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1051 objects in XCOFF archives.
1052 * ldfile.h: Update copyright date.
1054 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1056 * ldmain.c (main): Enable -z combreloc by default.
1058 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1060 * Makefile.am: Honour DESTDIR.
1061 * Makefile.in: Regenerate.
1063 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1065 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1066 (lang_enter_overlay): Remove the last two parameters.
1067 (lang_leave_overlay): Take them here instead.
1068 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1069 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1070 than lang_enter_overlay.
1071 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1072 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1073 (lang_size_sections_1): Evaluate it.
1074 (lang_leave_output_section_statement): Rework LMA lookup.
1075 (overlay_lma, overlay_nocrossrefs): Remove.
1076 (lang_enter_overlay): Remove LMA and crossref arguments.
1077 (lang_enter_overlay_section): Don't set the LMA here.
1078 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1079 assignment to the last section's update_dot_tree. Unconditionally
1080 use the load and run-time regions specified in the OVERLAY statement.
1081 Likewise the first section's LMA. Only set the other sections' LMAs
1082 when no load region is given.
1084 2002-05-06 Nick Clifton <nickc@redhat.com>
1086 * po/sv.po: New translation.
1088 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1090 * emultempl/hppaelf.em (build_section_lists): New function.
1091 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1092 and build_section_lists.
1094 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1096 * ld.h: Fix formatting.
1097 * ldexp.c: Likewise.
1098 * ldfile.c: Likewise.
1099 * ldlang.c: Likewise.
1100 * ldmain.c: Likewise.
1101 * lexsup.c: Likewise.
1102 * pe-dll.c: Likewise.
1104 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1106 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1107 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1108 (build_section_lists): Do output_section tests here.
1110 2002-04-30 Tom Rix <trix@redhat.com>
1112 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1114 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1116 Long branch stubs, multiple stub sections.
1117 * emultempl/ppc64elf.em: Include ldctor.h.
1118 (stub_file): New var.
1119 (group_size): New var.
1120 (ppc_create_output_section_statements): New function.
1121 (struct hook_stub_info): New.
1122 (hook_in_stub): New function.
1123 (ppc_add_stub_section): New function.
1124 (ppc_layout_sections_again): New function.
1125 (build_section_lists): New function.
1126 (gld${EMULATION_NAME}_finish): Rewrite.
1127 (real_func): New var.
1128 (ppc_for_each_input_file_wrapper): New function.
1129 (ppc_lang_for_each_input_file): New function.
1130 (lang_for_each_input_file): Define.
1131 (PARSE_AND_LIST_PROLOGUE): Define.
1132 (PARSE_AND_LIST_LONGOPTS): Define.
1133 (PARSE_AND_LIST_OPTIONS): Define.
1134 (PARSE_AND_LIST_ARGS_CASES): Define.
1135 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1137 2002-04-30 Tom Rix <trix@redhat.com>
1139 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1140 -blibpath, -bnolibpath support.
1142 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1144 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1145 (eelf32ppcwindiss.c): New target.
1146 * Makefile.in: Regenerated.
1147 * configure.tgt: Add support for powerpc-*-windiss.
1148 * emulparams/elf32ppcwindiss.sh: New file.
1150 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1152 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1153 * ldexp.c (exp_print_token): Add "infix_p" argument.
1154 (exp_print_tree): Update accordingly.
1156 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1158 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1159 * Makefile.in: Regenerate.
1160 * mpw-elfmips.c: Delete.
1161 * mpw-eppcmac.c: Delete.
1162 * mpw-esh.c: Delete.
1163 * mpw-idtmips.c: Delete.
1165 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1167 * emulparams/shelf32.sh (MACHINE): Now sh5.
1169 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1171 * ldgram.y: Fix syntax warning.
1173 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1175 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1176 to prevent "-n" from being taken as an abbreviation for
1177 "--no-pipeline-knowledge".
1179 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1181 * ldlang.c (lang_size_sections_1): Don't complain about
1182 SEC_NEVER_LOAD sections having no memory region specified.
1184 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1186 2002-04-07 matthew green <mrg@redhat.com>
1188 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1190 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1192 * dep-in.sed: Cope with absolute paths.
1193 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1195 * Makefile.in: Regenerate.
1197 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1199 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1201 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1203 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1204 is smaller than maximum, round dot up to common page boundary.
1206 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1208 * configure.host: Set up for generic hosts first, then tweak as
1209 necessary in more specific targets.
1210 (HOSTING_LIBS): Include libgcc_eh.a if found.
1212 2002-03-23 Andreas Jaeger <aj@suse.de>
1214 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1216 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1218 * Makefile.am: Run "make dep-am".
1219 * Makefile.in: Regenerate.
1221 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1223 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1225 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1227 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1228 add the symbol to the linker hash table immediately.
1229 (lang_place_undefineds): Split symbol creation out..
1230 (insert_undefined): ..to here.
1232 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1234 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1235 the contents of the buffer returned from basename function will are
1236 getting overwritten while still being used.
1238 2002-03-18 Jan Hubicka <jh@suse.cz>
1239 Andreas Jaeger <aj@suse.de>
1240 Andreas Schwab <schwab@suse.de>
1242 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1243 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1244 set libraries to default to lib64 paths.
1246 2002-03-18 Tom Rix <trix@redhat.com>
1248 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1249 * configure.tgt : Same.
1250 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1251 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1252 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1253 emulation parameters for better -b32, -b64 support.
1254 * emulparms/aixrs6.sh : Same.
1255 * emulparms/ppcmacos.sh : Same.
1256 * emultempl/aix.em (choose_target) : Use new emulation parameters
1257 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1258 * Makefile.in : Regenerate.
1260 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1262 * po/fr.po: Updated version.
1264 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1266 * ldmain.c (main): Move .text readonly flag fudges from here..
1267 * ldlang.c (lang_process): ..to here.
1269 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1271 * ldlang.c (lang_check): Remove the word size check added in last
1272 change. Treat emitrelocations case as for relocatable links.
1274 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1276 * po/fr.po: Updated version.
1278 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1280 * ldlang.c (lang_check): Do relocatable link checks first, so that
1281 warn_mismatch can't override. Check compatible and word size too.
1283 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1285 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1287 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1289 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1292 2002-03-04 H.J. Lu <hjl@gnu.org>
1294 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1295 .fini_array in the data segment.
1297 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1299 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1301 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1303 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1304 .init_array, and .fini_array.
1306 2002-02-20 Andreas Schwab <schwab@suse.de>
1308 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1309 .IA64_unwind* in a relocatable link.
1311 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1313 * NEWS: Mark 2.12 branch.
1315 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1317 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1318 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1320 2002-02-18 Tom Rix <trix@redhat.com>
1322 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1323 (gld*_before_allocation): Same.
1324 (gld*_create_output_section_statements): Generate
1325 __rtinit if run time linking. Add librtl.a to the link.
1326 (gld*_read_file): Clean.
1328 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1330 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1332 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1334 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1335 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1336 and eelf64alpha_fbsd.
1337 * Makefile.in: Regenerate.
1338 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1339 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1340 use a FreeBSD-specific emulation rather than the psABI one.
1341 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1342 for all FreeBSD ELF systems.
1343 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1345 * emulparams/elf32ppc_fbsd.sh: Likewise.
1346 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1347 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1348 * emulparams/elf64alpha_fbsd.sh: Likewise.
1349 * emulparams/elf_i386_fbsd.sh: Likewise.
1350 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1352 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1354 * po/tr.po: Updated version.
1356 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1358 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1361 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1363 * emultempl/mmo.em (mmo_after_open): Don't call
1364 _bfd_mmix_check_all_relocs when producing ELF output.
1366 2002-02-15 Richard Henderson <rth@redhat.com>
1368 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1369 definition. Emit a unop+nop pair.
1371 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1373 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1374 for presence of .MMIX.reg_contents.linker_allocated before early
1377 * NEWS: Mention support for MMIX.
1379 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1381 Support arbitrary length fill patterns.
1382 * ld.texinfo (Output Section Fill): Describe fill expressions.
1383 (FILL): Refer to the above.
1384 * ldexp.h (etree_value_type): Add "str" field.
1385 (union etree_union): Add "str" to "value" struct.
1386 (exp_bigintop): Declare.
1387 (exp_get_fill): Declare.
1388 * ldexp.c: Include "safe-ctype.h".
1389 (exp_intop): Set value.str to NULL.
1390 (exp_bigintop): New function.
1391 (new_rel): Pass in "str", and set new.str from it.
1392 (new_rel_from_section): Set new.str to NULL.
1393 (fold_name): Adjust calls to new_rel.
1394 (exp_fold_tree): Likewise.
1395 (exp_get_fill): New function.
1396 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1397 (INT): Returns a "bigint". Adjust all code handling INTs.
1398 (fill_opt): Returns a "fill".
1399 (fill_exp): Split out of fill_opt, use for FILL.
1400 * ldlang.h (struct _fill_type): New.
1401 (fill_type): Move typedef to ldexp.h.
1402 (lang_output_section_statement_type): "fill" is now a pointer.
1403 (lang_fill_statement_type): Likewise.
1404 (lang_padding_statement_type): Likewise.
1405 (lang_add_fill): Now takes a "fill_type *" param.
1406 (lang_leave_output_section_statement): Likewise.
1407 (lang_do_assignments): Likewise.
1408 (lang_size_sections): Likewise.
1409 (lang_leave_overlay_section): Likewise.
1410 (lang_leave_overlay): Likewise.
1411 * ldlang.c: Include ldgram.h after ldexp.h.
1412 (lang_output_section_statement_lookup): Adjust for fill_type change.
1413 (print_fill_statement): Likewise.
1414 (print_padding_statement): Likewise.
1415 (insert_pad): Now takes a "fill_type *" arg.
1416 (size_input_section): Likewise.
1417 (lang_size_sections_1): Likewise.
1418 (lang_size_sections): Likewise.
1419 (lang_do_assignments): Likewise.
1420 (lang_add_fill): Likewise.
1421 (lang_leave_output_section_statement): Likewise.
1422 (lang_leave_overlay_section): Likewise.
1423 (lang_leave_overlay): Likewise.
1424 Adjust all callers of the above function.
1425 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1426 starting with "0X" as well as "0x". Return bigint.str for hex
1427 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1428 Always use base 16 for numbers starting with "$".
1429 * ldmain.c: Include ldgram.h after ldexp.h.
1430 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1431 of bfd_fill_link_order.
1432 * pe-dll.c: Adjust lang_do_assignments calls.
1433 * emultempl/elf32.em: Likewise.
1434 * emultempl/hppaelf.em: Likewise.
1435 * emultempl/ppc64elf.em: Likewise.
1436 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1437 lang_add_assignment call.
1438 * emultempl/pe.em: Likewise.
1440 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1442 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1443 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1444 the pattern in question is not a regexp.
1445 * ldlang.c: Likewise.
1446 * ldlang.h: Likewise.
1447 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1449 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1451 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1452 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1453 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1454 * ldexp.c (exp_data_seg): New variable.
1455 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1456 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1457 (exp_fold_tree): Handle DATA_SEGMENT_END.
1458 Pass allocation_done when recursing instead of hardcoding
1459 lang_allocating_phase_enum.
1460 * ldexp.h (exp_data_seg): New.
1461 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1462 (lang_size_sections): New.
1463 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1464 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1465 if COMMONPAGESIZE is defined.
1466 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1467 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1468 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1469 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1470 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1473 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1475 * Makefile.in: Regenerate.
1477 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1479 * lexsup.c: Remove strtoul declaration.
1481 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1483 * ldmain.c: Add prototype for main ().
1484 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1485 * emultempl/lnk960.em (lnk960_choose_target): Function should
1488 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1490 * ldlang.c (entry_section): New initialised variable.
1491 (lang_finish): Use it.
1492 * ldlang.h (entry_section): Declare.
1493 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1494 entry_section to ".opd".
1496 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1498 * ld.texinfo (Options): Add back in -nostdlib documentation,
1499 which had been inadvertently removed.
1501 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1503 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1504 register section vma to a sane value after emitting error. Make
1505 fatal conditions cause program exit when emitting message.
1507 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1509 * configure.tgt: Add or32-*-rtems target.
1511 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1513 Contribute sh64-elf.
1514 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1515 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1516 in OTHER_RELOCATABLE_SECTIONS.
1517 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1518 * emulparams/shelf32.sh (STACK_ADDR): Define.
1519 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1520 (OTHER_SECTIONS): this. Removed stack settings.
1521 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1522 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1523 2001-03-12 DJ Delorie <dj@redhat.com>
1524 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1525 relaxing if any shmedia or mixed sections are found.
1526 2001-03-07 DJ Delorie <dj@redhat.com>
1527 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1528 einfo. Gracefully decline to output to non-elf formats.
1529 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1530 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1531 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1532 * emulparams/shelf32.sh: Ditto.
1533 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1534 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1536 2001-01-10 Ben Elliston <bje@redhat.com>
1537 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1538 non-portable shell constructs. From Hans-Peter Nilsson.
1539 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1540 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1541 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1542 dependencies to the shell script include chain.
1543 * Makefile.in: Regenerate.
1544 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1545 * emultempl/sh64elf.em: Update and tweak comments.
1546 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1547 make a .cranges section SEC_IN_MEMORY.
1548 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1549 * emultempl/sh64elf.em
1550 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1551 .cranges section found to be necessary; continue and set stored
1552 section contents flags for sections with non-mixed contents.
1553 Use a struct sh64_section_data container and sh64_elf_section_data
1554 to store contents-type flags.
1555 Remove unused update of "isec".
1556 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1557 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1558 access contents-type flags. Assert that the associated container
1559 is initialized. Use that container, not elf_gp_size, to hold size
1560 of linker-generated cranges contents.
1561 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1562 * emultempl/sh64elf.em
1563 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1564 there's already a .cranges section. When section flag difference
1565 is found, don't NULL-check cranges a second time. Tweak comments.
1566 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1567 merging, not max size, as size of ld-generated .cranges contents.
1568 Don't set ELF section flags in output section. When checking for
1569 needed .cranges descriptors, don't use a variable; compare
1570 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1572 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1573 * emultempl/sh64elf.em: New file.
1574 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1575 * Makefile.in: Regenerate.
1576 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1577 (OTHER_RELOCATING_SECTIONS): Ditto.
1578 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1579 * emulparams/shlelf32.sh: Stub out all settings except
1580 OUTPUT_FORMAT. Source shelf32.sh.
1581 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1582 OTHER_RELOCATING_SECTIONS.
1583 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1584 * emulparams/shlelf64.sh: Stub out all settings except
1585 OUTPUT_FORMAT. Source shelf64.sh.
1586 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1587 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1589 (DATA_START_SYMBOLS): Define, provide ___data.
1590 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1591 for consecutive .data section.
1592 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1593 section after .data section.
1594 * emulparams/shlelf64.sh: Ditto.
1595 * emulparams/shelf32.sh: Ditto.
1596 (ALIGNMENT): Define to 8.
1597 * emulparams/shelf32.sh: Ditto.
1598 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1599 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1600 built-in linker scripts.
1601 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1602 * emulparams/shlelf64.sh: New.
1603 * emulparams/shelf64.sh: New.
1604 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1606 * Makefile.am: Add support for shlelf64 and shelf64.
1607 * Makefile.in: Regenerate.
1608 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1609 * configure.tgt (sh64-*-elf*): Add shelf as default.
1610 Add shlelf to targ_extra_emuls.
1611 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1612 * emulparams/shelf32.sh: New file.
1613 * emulparams/shlelf32.sh: New file.
1614 * Makefile.am: Add support for shlelf32 and shelf32.
1615 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1616 * Makefile.in: Regenerate.
1618 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1620 * ldlang.c (lang_reset_memory_regions): Rename from
1621 reset_memory_regions. Change all callers. Make public.
1622 * ldlang.h (lang_reset_memory_regions): Prototype.
1623 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1624 lang_reset_memory_regions before lang_size_sections.
1625 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1626 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1628 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1630 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1631 arithmetic when checking for too many global registers.
1633 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1635 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1636 (ehppanbsd.c): New rule.
1637 * Makefile.in: Regenerate.
1638 * configure.tgt (hppa*-*-netbsd*): New target.
1639 * emulparams/hppalinux.sh: Add comment to check other files
1640 that source this file it is modified, and list which
1642 * emulparams/hppanbsd.sh: New file.
1644 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1646 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1649 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1651 Support on-demand global register allocation from
1652 R_MMIX_BASE_PLUS_OFFSET relocs.
1653 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1654 mmix_set_reg_section_vma. Call
1655 _bfd_mmix_finalize_linker_allocated_gregs.
1656 (mmix_before_allocation): New function.
1657 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1658 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1659 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1660 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1661 before .MMIX.reg_contents.
1662 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1663 (mmo_after_open): New function.
1664 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1665 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1666 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1668 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1670 * emulparams/or32.sh: New file.
1671 * emulparams/or32elf.sh: New file.
1672 * scripttempl/or32.sc: New file.
1673 * configure.tgt : Add support for or32.
1674 * configure: Regenerate
1675 * Makefile.am: Add support for or32.
1676 * Makefile.in: Regenerate.
1677 * NEWS: Mention support for or32.
1678 * po/ld.pot: Regenerate.
1680 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1681 Mitch Lichtenberg <mpl@broadcom.com>
1683 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1684 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1685 reloc creation (ld --embedded-relocs).
1687 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1689 * configure: Regenerated.
1691 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1693 * Makefile.am (install): Depend on install-info.
1694 * Makefile.in: Regenerate.
1696 2002-01-26 Christian Rose <menthos@menthos.com>
1698 * ldmain.c (main): Use full sentences to ease translation.
1700 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1702 * po/fr.po: Updated version.
1704 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1706 * po/es.po: Updated version.
1708 2002-01-25 Andreas Jaeger <aj@suse.de>
1710 * ldlex.l (yy_input): Correct error check.
1712 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1714 * ldmisc.c (demangle): Put back dots when string not demangled.
1716 2002-01-22 Richard Henderson <rth@redhat.com>
1718 * emulparams/elf64alpha.sh (NOP): Use unop.
1720 2002-01-21 Andreas Jaeger <aj@suse.de>
1722 * ldlex.l: Use fread instead of read.
1724 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1726 * configure.tgt (ia64-*-netbsd*): New target.
1728 2002-01-21 H.J. Lu <hjl@gnu.org>
1730 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1732 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1734 2002-01-18 Andreas Jaeger <aj@suse.de>
1736 * ldver.c (ldversion): Update year.
1738 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1740 * po/ld.pot: Regenerate.
1742 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1744 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1745 * Makefile.in: Regenerate.
1746 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1747 * emultempl/ppc64elf.em: New file.
1749 2002-01-15 DJ Delorie <dj@redhat.com>
1751 * scripttempl/pe.sc: Add support for constructor priorities.
1753 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1755 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1756 * emulparams/avr23xx.sh: Likewise.
1757 * emulparams/avr4433.sh: Likewise.
1758 * emulparams/avr44x4.sh: Likewise.
1759 * emulparams/avr85xx.sh: Likewise.
1760 * emulparams/avrmega103.sh: Likewise.
1761 * emulparams/avrmega161.sh: Likewise.
1762 * emulparams/avrmega603.sh: Likewise.
1763 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1765 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1767 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1768 archive is excluded.
1770 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1772 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1773 (eshelf_nbsd.c): New rule.
1774 (eshlelf_nbsd.c): New rule.
1775 * Makefile.in: Regenerate.
1776 * configure.tgt (sh*le-*-netbsdelf*): New target.
1777 (sh*-*-netbsdelf*): New target.
1778 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1779 * ld/emulparams/shelf_nbsd.sh: New emulation.
1780 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1782 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1784 * po/es.po: New file: Spanish translation.
1785 * configure.in (ALL_LINGUAS): Add es.
1786 * configure: Regenerate.
1788 2002-01-06 John Marshall <jmarshall@acm.org>
1790 * ld.texinfo: Note that --emit-relocs is currently only
1791 implemented for ELF.
1793 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1795 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1796 of bfd_section_list_remove and bfd_section_list_insert macros.
1797 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1798 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1800 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1802 * configure.tgt (x86_64-*-netbsd*): New target.
1804 2001-12-21 Tom Rix <trix@redhat.com>
1806 (gld*_create_output_section_statements): New function.
1807 For -binitfini support.
1808 * emultempl/aix.em (gld*_before_parse): Fix comment.
1809 * emultempl/aix.em (gld*_parse_args): Fix comment.
1811 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1813 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1815 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1817 * configure.tgt (arm-*-netbsdelf*): Add target.
1818 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1819 * emulparams/armelf_nbsd.sh: Added.
1820 * Makefile.am: Add rules for earmelf_nbsd.
1821 * Makefile.in: Regenerate.
1823 2001-12-19 Andreas Jaeger <aj@suse.de>,
1824 Susanne Oberhauser <froh@suse.de>
1826 * configure.host: Add rules for x86_64-*linux-gnu. Change
1827 s390x-linux entry to use gcc to report configuration, replace gcc
1828 with $CC in s390-linux
1830 2001-12-19 Andreas Jaeger <aj@suse.de>
1832 * ld.texinfo (VERSION): Fix markup.
1834 2001-12-18 matthew green <mrg@eterna.com.au>
1836 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1837 (m68kelfnbsd.c): New rule.
1838 * Makefile.in: Regenerate.
1839 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1840 (m68*-*-netbsd*4k*): .. this.
1841 (m68*-*-netbsdelf*): New target.
1842 (m68*-*-netbsd*): Also include ELF support.
1843 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1844 * emulparams/m68kelfnbsd.sh: New emulation.
1846 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1848 * ldgram.y (vers_node): Support anonymous version tags.
1849 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1850 tag is not defined together with non-anonymous versions.
1851 * ld.texinfo: Document it.
1853 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1855 * po/tr.po: New file: Turkish translation.
1856 * configure.in (ALL_LINGUAS): Add tr.
1857 * configure: Regenerate.
1859 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1861 * Makefile.am: Add rules for eelf64alpha_nbsd.
1862 * Makefile.in: Regenerate.
1863 * configure.tgt (alpha*-*-netbsd*): Set
1864 targ_emul to elf64alpha_nbsd.
1865 * emulparams/elf64alpha_nbsd.sh: Added.
1867 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1869 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1870 section_tail when fiddling with section list.
1871 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1872 broken into separate strings to make translation easier.
1873 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1874 fiddling with section list.
1875 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1877 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1879 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1881 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1883 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1885 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1887 * emultempl/elf32.em (finish): Supply output_bfd
1888 to bfd_elf*_discard_info.
1889 (OPTION_EH_FRAME_HDR): Define.
1890 (longopts): Add --eh-frame-hdr.
1891 (parse_args): Handle it.
1892 (list_options): Add --eh-frame-hdr to help.
1893 * emultempl/hppaelf.em (finish): Supply output_bfd
1894 to bfd_elf*_discard_info.
1895 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1897 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1899 * lexsup.c (parse_args): Don't pass shortopts to second call to
1900 getopt functions. Restore optind rather than decrementing before
1901 second call. Remove errind as it now duplicates last_optind.
1903 2001-12-11 Christopher Faylor <cgf@redhat.com>
1905 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1907 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1908 Richard Henderson <rth@redhat.com>
1910 * Makefile.am: Add support for xstormy16.
1911 * configure.tgt: Add support for xstormy16.
1912 * Makefile.in: Regenerate.
1913 * emulparams/elf32xstormy16.sh: New file.
1914 * scripttempl/xstormy16.sc: New file.
1916 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1918 * Makefile.in (LIB_PATH): Make configurable.
1919 (GENSCRIPTS): Set LIB_PATH in environment.
1920 * configure.in: Substitute LIB_PATH.
1921 * configure: Regenerate.
1922 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1923 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1925 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1927 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1928 describing the -N option so that it is easier to translate into
1931 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1933 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1934 statements describing a single option with a single, newline
1935 escaped fprintf. This allows better translation into other
1938 * ldmain.c (add_archive_element): Combine multiple strings
1939 into a single string to permit better translation into other
1942 2001-12-05 Tom Rix <trix@redhat.com>
1944 * Makefile.am: Remove eaixppc64.
1945 * Makefile.in: Regenerate.
1947 2001-12-04 Tom Rix <trix@redhat.com>
1949 * emultempl/aix.em (choose_target): Change default target to
1950 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1952 (gld*_read_file): Fix typo.
1953 (change_symbol_mode): Add prototype.
1956 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1957 * emulparams/aixrs6.sh : Same.
1958 * emulparams/ppcmacos.sh : Same.
1959 * emulparams/aixppc64.sh : Delete file.
1960 * emultempl/aix.em : Formatting changes.
1962 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1964 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1965 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1967 (OTHER_END_SYMBOLS): Fix formatting.
1968 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1969 (OTHER_END_SYMBOLS): Fix formatting.
1971 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1973 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1975 2001-12-02 Tom Rix <trix@redhat.com>
1977 * configure.tgt : Remove eaixppc64 emulations.
1978 * Makefile.in : Remove eaixppc64.c
1979 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1980 (ldemul_default_target): Same.
1981 * emultempl/gld960.em (gld960_choose_target): Same.
1982 * emultempl/gld960c.em (gld960_choose_target): Same.
1983 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1984 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1985 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1986 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1987 * emultempl/aix.em (choose_target): New function. Handle emulation of
1990 2001-11-27 H.J. Lu <hjl@gnu.org>
1992 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1993 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1994 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1995 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1996 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1997 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1998 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1999 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2001 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2004 (REL_SDATA): Likewise.
2005 (REL_SBSS): Likewise.
2006 (REL_SDATA2): Likewise.
2007 (REL_SBSS2): Likewise.
2008 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2011 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2013 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2015 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2017 2001-11-22 H.J. Lu <hjl@gnu.org>
2019 * Makefile.in: Regenerated with automake based on automake
2020 1.4-8 in RedHat 7.1.
2022 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2024 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2025 (config.status): Delete rule.
2026 Add extra dependencies to cover sourced emulparams files.
2027 * Makefile.in: Regenerate.
2029 * scripttempl/elf.sc: Order <section>, <section>.* and
2030 corresponding linkonce sections as seen in input files.
2031 Formatting fixes. Zero vma of all sections if not relocating.
2032 (STACK): Define and insert if STACK_ADDR defined.
2033 (OTHER_RELOCATING_SECTIONS): Delete.
2034 (OTHER_END_SYMBOLS): Define.
2035 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2036 (OTHER_READWRITE_SECTIONS): Likewise.
2037 (OTHER_GOT_SECTIONS): Likewise.
2038 (OTHER_SDATA_SECTIONS): Likewise.
2039 (OTHER_BSS_SECTIONS): Likewise.
2040 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2041 (OTHER_READWRITE_SECTIONS): Likewise.
2042 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2043 (OTHER_READWRITE_SECTIONS): Likewise
2045 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2046 (STACK_ADDR): Define.
2047 * emulparams/armelf_oabi.sh: As for armelf.sh.
2048 * emulparams/elf32mcore.sh: As for armelf.sh.
2049 * emulparams/h8300elf.sh: As for armelf.sh.
2050 * emulparams/mn10200.sh: As for armelf.sh.
2051 * emulparams/shelf.sh: As for armelf.sh.
2053 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2054 (OTHER_END_SYMBOLS): Define.
2055 * emulparams/m32relf.sh: As for elf32fr30.sh.
2056 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2057 * emulparams/h8300self.sh: As for elf32fr30.sh.
2059 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2060 defines with RELOCATING test.
2061 (OTHER_SDATA_SECTIONS): Likewise.
2062 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2063 (OTHER_END_SYMBOLS): ..this.
2064 * emulparams/crislinux.sh: As for criself.sh.
2066 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2068 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2069 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2070 normal and linkonce sections as seen in input files.
2071 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2072 (TEXT_DYNAMIC): Likewise.
2073 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2074 (OTHER_SDATA_SECTIONS): Likewise.
2075 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2076 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2077 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2078 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2079 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2080 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2081 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2082 sections as seen in input files.
2083 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2084 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2086 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2087 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2088 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2089 (OTHER_SECTIONS): Instead, use this..
2090 (OTHER_END_SYMBOLS): ..and this.
2092 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2093 * emulparams/elf32bsmip.sh: Likewise.
2094 * emulparams/elf32btsmip.sh: Likewise.
2095 * emulparams/elf32ebmip.sh: Likewise.
2096 * emulparams/elf32lmip.sh: Likewise.
2097 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2098 * emulparams/elf32lsmip.sh: Likewise.
2099 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2100 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2101 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2102 * emulparams/elf64btsmip.sh: Likewise.
2103 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2104 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2105 * emulparams/elf32ppclinux.sh: Likewise.
2106 * emulparams/elf32ppcsim.sh: Likewise.
2107 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2108 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2109 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2110 * emulparams/h8300self.sh: Likewise.
2111 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2112 * emulparams/sh.sh: Comment.
2113 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2114 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2115 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2117 2001-11-21 David Heine <dlheine@tensilica.com>
2118 Alan Modra <amodra@bigpond.net.au>
2120 * ldlang.c (map_input_to_output_sections): Replace "break"
2121 accidentally removed with 2001-08-03 change.
2122 (lang_gc_sections_1): Likewise.
2124 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2126 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2128 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2130 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2131 of false when calling lang_size_sections.
2132 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2134 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2136 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2137 function when LDEMUL_FINISH isn't set to the same name. Don't
2138 call ${LDEMUL_FINISH}.
2139 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2140 * emultempl/armelf.em (arm_elf_finish): Call
2141 gld${EMULATION_NAME}_finish.
2142 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2143 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2144 hppaelf_layout_sections_again if necessary.
2145 (need_laying_out): New var.
2146 (hppaelf_layaout_sections_again): Rename to
2147 hppaelf_layout_sections_again. Clear need_laying_out.
2148 (PARSE_AND_LIST_OPTIONS): Format text.
2150 2001-11-14 H.J. Lu <hjl@gnu.org>
2152 * emultempl/armelf.em (arm_elf_finish): Renamed from
2153 gld${EMULATION_NAME}_finish.
2154 (LDEMUL_FINISH): Set to arm_elf_finish.
2156 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2158 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2159 (struct ld_emulation_xfer_struct): Use it.
2161 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2163 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2164 additional symbols referenced by newer crt0.o files from HP.
2166 2001-11-12 Anthony Green <green@redhat.com>
2168 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2170 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2172 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2173 * Makefile.in: Regenerate.
2175 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2177 * ld.texinfo: Use @command for commands, @option for options.
2178 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2180 * Makefile.in: Rebuild.
2182 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2184 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2185 Add support for targets.
2187 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2189 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2190 * configure: Regernate.
2191 * po/fr.po: New file.
2192 * po/sv.po: New file.
2194 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2196 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2197 as little endian default and to support big endian.
2199 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2201 * ld.texinfo (Options): Document new option, -nostdlib.
2202 * lexsup.c (OPTION_NOSTDLIB): New definition.
2203 (ld_options): Add entry for "nostdlib".
2204 (parse_args): Handle OPTIONS_NOSTDLIB.
2205 * ldfile.c (ldfile_add_library_path): Don't add directories
2206 to the search path if they weren't specified on the command line
2207 and -nostdlib was specified.
2208 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2210 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2212 * lexsup.c (parse_args): Prevent infinite parsing loop when
2213 "-rpath.a" is specified on the command line.
2214 Replace calls to fprintf with calls to einfo.
2216 2001-10-31 John Marshall <jmarshall@acm.org>
2218 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2219 appear only once across all the linker scripts involved in a link
2220 invocation no longer applies. Make the documentation reflect
2223 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2225 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2227 (sh-*-linux*): Added targ_extra_libpath.
2229 2001-10-31 David Heine <dlheine@tensilica.com>
2231 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2232 for padding statements.
2234 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2236 * configure.tgt (mmix-*-*): New target.
2237 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2238 Add dependencies to match.
2239 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2240 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2241 scripttempl/mmo.sc: New files.
2242 * gen-doc.texi: @set MMIX.
2243 * ld.texinfo: Ditto.
2244 [MMIX] Add MMIX node.
2245 * Makefile.in: Regenerate.
2247 2001-10-29 Kazu Hirata <kazu@hxi.com>
2249 * ldlang.c: Fix a comment typo.
2251 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2253 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2254 entries, and match *-*-linux*.
2256 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2258 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2259 with ldlex_script, ldlex_popstate.
2260 (ifile_p1): Likewise.
2261 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2263 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2264 to 1. Don't BEGIN(SCRIPT).
2265 (lex_redirect): Similarly.
2266 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2268 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2270 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2271 __EH_FRAME_END__ and accept eh frames into data section.
2272 Add ctor and dtor sections.
2274 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2276 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2277 (auto-export): Fix indentation.
2279 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2281 * pe-dll.c (autofilter_objectlist): Add startup objects
2283 (auto-export): Constify char * p.
2284 Extract file basename and use strcmp rather than ststr
2287 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2289 * ldmain.c (get_emulation): Improve comment about the handling
2292 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2294 * po/POTFILES.in: Regenerate.
2296 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2298 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2299 -z nocopyreloc and -z nocombreloc usage strings.
2301 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2303 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2306 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2308 * scripttempl/armaout.sc: Place .bss section after end of aligned
2309 data section to match behaviour of aout code in constructrion of
2312 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2314 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2315 startup files for mingw32 dlls to list.
2317 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2319 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2321 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2323 * configure.tgt (targ): Add arm9e-*-elf.
2325 2001-10-05 H.J. Lu <hjl@gnu.org>
2327 * genscripts.sh: Fix a typo in the last change.
2329 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2331 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2332 -z nocombreloc in usage.
2334 2001-10-03 Jim Blandy <jimb@redhat.com>
2336 * genscripts.sh: Include a comment at the top of each generated
2337 script, explaining its purpose.
2339 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2341 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2342 * NEWS: Mention -z nocopyreloc.
2343 * ld.texinfo (Options): Describe nocopyreloc.
2345 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2347 * configure: Regenerate.
2349 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2351 * ldver.h (ld_program_version): Remove declaration.
2352 * lexsup.c (parse_args): Move printing of copyright message..
2353 * ldver.c (ldversion): .. to here.
2354 Use BFD_VERSION_STRING in place of BFD_VERSION.
2355 (ld_program_version): Remove.
2356 * Makefile.am (Makefile): Depend on bfd/configure.in.
2358 * Makefile.in: Regenerate.
2360 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2362 * Makefile.am: Update dependencies with "make dep-am".
2363 * Makefile.in: Regenerate.
2365 2001-09-29 John Reiser <jreiser@BitWagon.com>
2367 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2368 * lexsup.c: Add --no-define-common commandline option.
2369 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2370 * ldlex.l: Likewise.
2371 * ld.h: Add command_line.inhibit_common_definition.
2372 * ldmain.c (main): Initialize.
2373 * ld.texinfo: Document.
2375 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2377 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2379 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2381 * ldmisc.c (USE_STDARG): Remove.
2382 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2387 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2388 declarations. Update copyright.
2390 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2392 * pe-dll.c: Remove obsoleted declaration of
2393 pe_get_data_import_dll_name.
2394 (pe_create_import_fixup): Fix thinko.
2396 * ld.texinfo(enable-auto-import): Clarify the explanation.
2398 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2400 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2401 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2402 DLL_SUPPORT controlled code.
2404 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2406 * emultempl/pe.em(pe_data_import_dll): Make static.
2407 (pe_get_data_import_dll_name): New accessor function.
2408 * pe-dll.c(pe_create_import_fixup): call
2409 pe_get_data_import_dll_name() from pe.em, instead of
2410 directly accessing pe_data_import_dll variable from pe.em.
2412 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2414 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2415 (def_file_add_directive): Use ISSPACE instead of isspace.
2416 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2417 isdigit/isxdigit/isalpha/isalnum.
2418 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2419 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2420 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2421 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2423 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2424 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2426 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2427 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2428 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2429 (ctor_prio): Use ISDIGIT instead of isdigit.
2430 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2431 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2432 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2434 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2435 (stricpy): Use TOLOWER instead of isupper/tolower.
2436 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2437 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2438 (lex_warn_invalid): Use ISPRINT instead of isprint.
2439 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2440 (main): For gettext, also set the LC_CTYPE locate facet.
2441 (add_keepsyms_file): Use ISSPACE instead of isspace.
2442 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2443 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2444 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2445 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2446 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2447 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2448 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2449 (quoteput): Use ISSPACE instead of isspace.
2450 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2453 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2455 * deffilep.y (def_stash_module): Constify "name" param.
2457 * pe-dll.c: Replace CONST with const throughout.
2458 (quick_symbol): Constify "n1", "n2", "n3" params.
2459 (make_singleton_name_thunk): Constify "import" param. Make
2460 "buffer_len" a size_t.
2461 (make_import_fixup_entry): Constify "name", "fixup_name",
2462 "dll_symname" params.
2463 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2464 (pe_get32): Likewise.
2465 (pe_implied_import_dll): Likewise.
2467 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2468 (sort_by_section_name): Likewise.
2470 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2471 (make_import_fixup): Cast printf arg, rel->address to long rather
2473 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2475 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2477 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2478 defines BufferSize. Increase buffer size by one.
2480 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2482 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2484 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2486 * configure.tgt: Add arm-openbsd target.
2488 2001-09-12 H.J. Lu <hjl@gnu.org>
2490 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2492 (ALL_64_EMULATIONS): Here.
2493 * Makefile.in: Regenerated.
2495 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2497 * emultempl/pe.em(make_import_fixup): change signature to
2498 take asection as well as arelec; we need this for proper
2499 error reporting. Only call pe_create_import_fixup() if
2500 there is no attempt to add a constant addend to the reloc;
2501 otherwise, report error condition.
2502 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2503 since final argument is a pointer to make_import_fixup().
2504 Change call to cb() to match make_import_fixup() signature.
2505 (make_import_fixup_mark): make buffer_len unsigned.
2506 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2508 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2510 * ld.texinfo: add verbose documentation for auto-import
2511 direct-addressing workaround, to compliment the terse
2514 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2516 * scripttempl/v850.sc: Add gcc_except_table sections.
2518 2001-09-11 Jeffrey A Law (law@cygnus.com)
2520 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2521 * emulparams/h8300self.sh: Similarly.
2523 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2525 * ld.texinfo (Options, --stack): Correct default value for stack
2528 2001-09-05 Tom Rix <trix@redhat.com>
2530 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2532 2001-09-03 Andreas Jaeger <aj@suse.de>
2534 * emultempl/beos.em: Declare prototypes for comparions functions,
2537 2001-09-02 Andreas Jaeger <aj@suse.de>
2539 * emultempl/aix.em: Add missing prototype.
2540 * emultempl/lnk960.em: Likewise.
2541 * emultempl/vanilla.em: Likewise.
2542 * emultempl/armcoff.em: Likewise.
2543 * emultempl/armelf_oabi.em: Likewise.
2544 * emultempl/beos.em: Likewise.
2545 * emultempl/gld960c.em: Likewise.
2546 * emultempl/gld960.em: Likewise.
2548 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2549 for prototype declaration.
2551 2001-08-31 Eric Christopher <echristo@redhat.com>
2552 Jason Eckhardt <jle@redhat.com>
2554 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2556 2001-08-31 Andreas Jaeger <aj@suse.de>
2558 * emultempl/pe.em: Add missing prototypes.
2559 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2560 pe_find_data_imports.
2561 (pr_sym): Add unused attribute.
2563 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2565 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2566 default from coff to elf.
2568 2001-08-29 Jeff Law <law@redhat.com>
2570 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2572 * emulparams/h8300self.sh: Similarly.
2574 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2576 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2578 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2579 * configure.tgt (h8300-*-elf*): New case.
2580 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2581 * emulparams/h8300self.sh: New file.
2582 * Makefile.in: Regenerated.
2584 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2586 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2589 2001-08-27 Linus Nordberg <linus@swox.com>
2590 Alan Modra <amodra@bigpond.net.au>
2592 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2593 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2595 * Makefile.in: Regenerate.
2596 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2597 entries to correct alphabetical position.
2598 * emulparams/elf64ppc.sh: New.
2599 * emulparams/elf64lppc.sh: New.
2601 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2603 * ldmain.c (main): Declare BSIZE as static.
2605 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2607 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2608 into .rel.dyn resp. .rela.dyn if combreloc.
2609 (get_script): If .x linker script is equal to .xn, only put it
2610 once into the binary.
2611 Add .xc and .xsc scripts.
2612 (parse_args): Handle -z combreloc and -z nocombreloc.
2613 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2614 For .xc and .xsc scripts put all .rel* or .rela* input sections
2615 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2616 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2618 Strip trailing whitespace from script.
2619 Generate .xc and .xsc scripts if requested.
2620 * ldmain.c (main): Initialize link_info.combreloc and
2621 link_info.spare_dynamic_tags.
2622 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2623 (ld_options): Add --spare-dynamic-tags option.
2624 (parse_args): Likewise.
2625 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2626 * ldint.texinfo: Document .xc and .xsc linker scripts.
2627 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2629 2001-08-22 H.J. Lu <hjl@gnu.org>
2631 * emulparams/elf32fr30.sh: Add a newline.
2633 2001-08-21 Andreas Jaeger <aj@suse.de>
2635 * deffilep.y: Add missing prototypes.
2636 * pe-dll.c: Likewise.
2638 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2640 * ldlang.c (insert_pad): Fix typos in last patch.
2642 * ldlang.c: When traversing lang_statement_union_type lists,
2643 consistently use "header.next" rather than "next".
2644 * mpw-eppcmac.c: Likewise.
2645 * emultempl/beos.em: Likewise.
2646 * emultempl/hppaelf.em: Likewise.
2647 * emultempl/pe.em: Likewise.
2648 * ldlang.h (union lang_statement_union): Remove "next" field.
2650 * ldlang.c (insert_pad): Use offsetof macro.
2651 (lang_size_sections): Always neuter padding statements.
2652 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2654 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2655 passed to lang_size_sections.
2656 (pe_exe_fill_sections): Likewise.
2657 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2658 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2660 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2662 * emultempl/aix.em: Formatting fixes.
2664 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2666 * ldlang.c (insert_pad): Make use of an existing pad statement if
2667 available. Move code calculating alignment, adjusting section
2668 alignment power, and adjusting dot to ..
2669 (size_input_section): .. here. Remove unused relax param.
2670 (lang_size_sections): Change boolean `relax' param to boolean *.
2671 Adjust call to size_input_section. Make use of insert_pad to
2672 place pad after the assignment statement. If relaxing, zap
2674 (reset_memory_regions): Reset output_bfd section sizes too.
2675 (relax_again): Move to..
2676 (lang_process): ..here. Adjust call to lang_size_sections, and
2677 remove duplicated code.
2678 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2680 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2682 * ld.texinfo: Document that fill values now use the four least
2684 * emulparams/elf32fr30.sh (NOP): Update.
2685 * emulparams/elf32mcore.sh: Likewise.
2686 * emulparams/elf64_s390.sh: Likewise.
2687 * emulparams/elf_i386.sh: Likewise.
2688 * emulparams/elf_i386_be.sh: Likewise.
2689 * emulparams/elf_i386_chaos.sh: Likewise.
2690 * emulparams/elf_i386_ldso.sh: Likewise.
2691 * emulparams/elf_s390.sh: Likewise.
2692 * emulparams/elf_x86_64.sh: Likewise.
2693 * emulparams/i386moss.sh: Likewise.
2694 * emulparams/i386nw.sh: Likewise.
2695 * emulparams/m68kelf.sh: Likewise.
2696 * scripttempl/elf.sc: Update NOP comment.
2697 * scripttempl/elfi370.sc: Likewise.
2698 * scripttempl/elfm68hc11.sc: Likewise.
2699 * scripttempl/elfm68hc12.sc: Likewise.
2700 * scripttempl/nw.sc: Likewise.
2702 2001-08-15 Tom Rix <trix@redhat.com>
2704 * ldgram.y (saved_script_handle): Initialize to NULL.
2705 * ldmain.c (main): Change check on saved_script_handle.
2707 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2709 * emultempl/elf32.em: Formatting fixes.
2710 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2711 looking at sec->owner.
2712 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2713 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2714 unused code, and reorganize orphan section placement code.
2716 * ldlang.c (wild_doit): Rename to lang_add_section.
2717 * ldlang.h: Here too.
2718 * mpw-elfmips.c: And here.
2719 * emultempl/beos.em: And here.
2720 * emultempl/elf32.em: And here.
2721 * emultempl/hppaelf.em: And here.
2722 * emultempl/pe.em: And here.
2724 2001-08-13 Richard Henderson <rth@redhat.com>
2726 * emultempl/needrelax.em: New file.
2727 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2728 * Makefile.am (eelf64_ia64.c): Depend on it.
2729 * Makefile.in: Rebuild.
2731 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2733 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2734 output_section is set non-NULL.
2736 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2737 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2738 needlessly create an output_section_statement. Treat a correctly
2739 named output_section_statement with NULL bfd_section as compatible.
2741 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2743 * emultempl/generic.em: Support EXTRA_EM_FILE.
2744 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2745 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2746 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2747 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2748 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2749 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2750 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2751 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2752 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2753 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2755 2001-08-12 Richard Henderson <rth@redhat.com>
2757 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2758 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2759 scripttempl/v850.sc: Keep .jcr data.
2761 2001-08-12 H.J. Lu <hjl@gnu.org>
2762 Andrew Haley <aph@cambridge.redhat.com>
2763 Nick Clifton <nickc@redhat.com>
2765 * ldgram.y (had_script): Change name to saved_script_handle.
2766 Change type to file handle.
2767 * ld.h (had_script): Rename and retype.
2768 * ldfile.c (ldfile_open_command_file): Save the file handle
2769 used in saved_script_handle.
2770 * lexsup.c (parse_args): Do not allow -c option to alter
2771 saved_script_handle.
2772 * ldmain.c (main): Print out the linker script used if
2773 --verbose is given. Check saved_script_handle to obtain the
2774 external linker script used, or if NULL, dump the builtin
2776 * ld.texinfo: Document that --verbose now dumps the linker
2777 script used, regardless of whether it was an internal or an
2780 2001-08-10 Andreas Jaeger <aj@suse.de>
2782 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2784 * configure: Regenerate.
2786 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2788 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2790 * scripttempl/elf.sc: Move non-text .dynamic section before
2791 .plt/.got/.sdata* group.
2792 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2793 (OTHER_SDATA_SECTIONS): Add.
2794 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2796 * emulparams/crislinux.sh: Likewise.
2797 * emulparams/elf32b4300.sh: Likewise.
2798 * emulparams/elf32bmip.sh: Likewise.
2799 * emulparams/elf32bmipn32.sh: Likewise.
2800 * emulparams/elf32bsmip.sh: Likewise.
2801 * emulparams/elf32btsmip.sh: Likewise.
2802 * emulparams/elf32ebmip.sh: Likewise.
2803 * emulparams/elf32elmip.sh: Likewise.
2804 * emulparams/elf32l4300.sh: Likewise.
2805 * emulparams/elf32lmip.sh: Likewise.
2806 * emulparams/elf32lsmip.sh: Likewise.
2807 * emulparams/elf32ltsmip.sh: Likewise.
2808 * emulparams/elf64bmip.sh: Likewise.
2809 * emulparams/elf64btsmip.sh: Likewise.
2810 * emulparams/elf64ltsmip.sh: Likewise.
2812 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2814 * genscripts.sh: Source the emulparams script before each output
2815 script is generated so that variables like `RELOCATING' may affect
2816 variables defined in the emulparams script.
2818 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2820 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2823 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2824 ie. iterate over wild_statement.section_list.
2825 (gld${EMULATION_NAME}_place_orphan): Likewise.
2827 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2829 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2830 .fini[0-4] sections used by _exit
2831 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2832 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2833 * scripttempl/elfm68hc11.sc: Likewise.
2835 2001-08-03 H.J. Lu <hjl@gnu.org>
2837 * emultempl/beos.em (init): Add the missing initialization.
2839 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2841 * ld.texinfo (Input Section Basics): Clarify ordering of output
2843 * ldlang.c (callback_t): Add wildcard_list param.
2844 (walk_wild_section): Remove "section" param. Rewrite for
2845 lang_wild_statement_type change. Remove unique_section_p test.
2846 (walk_wild_file): Remove "section" param.
2847 (walk_wild): Remove "section" and "file" params.
2848 (lang_gc_wild): Likewise.
2849 (wild): Likewise. Modify for lang_wild_statement_type change.
2850 (wild_sort): Likewise. Add "sec" param.
2851 (gc_section_callback): Likewise.
2852 (output_section_callback): Likewise. Do unique_section_p test.
2853 (map_input_to_output_sections): Modify call to wild.
2854 (lang_gc_sections_1): Likewise.
2855 (print_wild_statement): Modify for lang_wild_statement_type
2857 (lang_add_wild): Replace filename, filenames_sorted param with
2858 filespec. Replace section_name, sections_sorted,
2859 exclude_filename_list with section_list.
2860 * ldlang.h (lang_add_wild): Here too.
2861 (lang_wild_statement_type): Replace section_name, sections_sorted,
2862 and exclude_filename_list with section_list.
2863 * ldgram.y (current_file): Delete.
2864 (%union): Add wildcard_list.
2865 (file_NAME_list): Set type to wildcard_list. Build a linked list
2866 rather than calling lang_add_wild for each entry.
2867 (input_section_spec_no_keep): Call lang_add_wild here instead.
2868 * ld.h (struct wildcard_list): Declare.
2869 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2871 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2873 * ldmain.c (main): initialize link_info.pei386_auto_import
2874 * pe-dll.c: new tables for auto-export filtering
2875 (auto_export): change API, pass abfd for contextual filtering.
2876 Loop thru tables of excluded symbols instead of comparing
2879 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2881 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2882 static variable current_sec (static struct sec *). Add
2883 forward declaration for add_bfd_to_link.
2884 (process_def_file): Don't export undefined symbols. Do not
2885 export symbols starting with "_imp__". Call auto_export()
2887 (pe_walk_relocs_of_symbol): New function.
2888 (generate_reloc): add optional extra debugging
2889 (pe_dll_generate_def_file): eliminate extraneous initial blank
2891 (make_one): enlarge symtab to make room for __nm__ symbols
2892 (DATA auto-import support).
2893 (make_singleton_name_thunk): New function.
2894 (make_import_fixup_mark): New function.
2895 (make_import_fixup_entry): New function.
2896 (pe_create_import_fixup): New function.
2897 (add_bfd_to_link): Specify that 'name' argument is a CONST
2899 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2900 declare new functions pe_walk_relocs_of_symbol and
2901 pe_create_import_fixup.
2902 * emultempl/pe.em: add new options --enable-auto-import,
2903 --disable-auto-import, and --enable-extra-pe-debug.
2904 (make_import_fixup): New function.
2905 (pe_find_data_imports): New function.
2906 (pr_sym): New function.
2907 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2908 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2911 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2913 * ld.texinfo: add additional documentation for
2914 --export-all-symbols. Document --out-implib,
2915 --enable-auto-image-base, --disable-auto-image-base,
2916 --dll-search-prefix, --enable-auto-import, and
2917 --disable-auto-import.
2918 * ldint.texinfo: Add detailed documentation on auto-import
2921 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2923 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2926 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2928 * Makefile.am: Update dependencies with "make dep-am".
2929 * Makefile.in: Regenerate
2931 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2933 * ldcref.c (check_section_sym_xref): New function.
2934 (check_nocrossrefs): Call it.
2935 (check_nocrossref): Interate over h->refs here instead of..
2936 (check_refs): ..here. Pass in the symbol name, section, and bfd
2937 rather than hash_entry pointers.
2938 (struct check_refs_info): Keep symbol name rather than hash entry.
2940 (check_reloc_refs): Tweak for above changes in check_refs_info.
2941 Only report references to section syms when symname is NULL to
2942 prevent duplicate messages for the same reloc.
2944 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2946 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2947 available. Do not print NULL trees.
2948 (exp_print_token): Print unknown tokens with values > 126 as
2949 decimal values not ASCII characters.
2951 * ldlang.c (lang_leave_overlay): If a region is specified assign
2952 it to all sections inside the overlay unless they have been
2953 assigned to the own, non-default, memory region.
2955 * README: Add header for consistency with other README files.
2957 2001-07-14 H.J. Lu <hjl@gnu.org>
2959 * emultempl/elf32.em (output_prev_sec_find): Never return
2960 bfd_abs_section_ptr, bfd_com_section_ptr nor
2961 bfd_und_section_ptr.
2963 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2965 * Makefile.am (em32relf.c): Change dependency from generic.em to
2967 * Makefile.in: Regenerate.
2969 2001-07-14 matthew green <mrg@eterna.com.au>
2971 * configure.tgt (i386-*-netbsdelf*): New target.
2972 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2974 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2976 * emultempl/elf32.em (output_prev_sec_find): New.
2977 (place_orphan): Use it.
2979 2001-07-11 H.J. Lu <hjl@gnu.org>
2981 * ldmain.c (main): Fix typos in the last change.
2983 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2985 * ldmain.c (main): Disallow -F and -f without -shared.
2987 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2989 * emultempl/pe.em (after_open): Check for the output_bfd not
2990 having any coff_data structure allocated to it.
2992 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2994 * emultempl/elf32.em: Do not assuming that contents of the buffer
2995 returned from basename function will remain unchanged accross other
2998 2001-07-03 H.J. Lu <hjl@gnu.org>
3000 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3001 2001-07-03. It creates dynamic entries even for static binaries.
3003 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3005 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3006 (DYNAMIC): Use it to reserve few dynamic entries for
3009 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3011 * emulparams/hppa64linux.sh: New file.
3012 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3013 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3014 (ehppa64linux.c): Add rule to make it.
3016 * Makefile.in: Regenerate.
3018 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3020 * ld.texinfo (Options, -r): Mention restrictions when using
3021 different object formats.
3023 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3025 * ldlang.c (lang_check): Emit fatal error if relocatable link
3026 between different object flavours with relocations in input.
3028 2001-06-19 H.J. Lu <hjl@gnu.org>
3030 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3031 (--version-script): Mention the language support.
3033 2001-06-19 H.J. Lu <hjl@gnu.org>
3035 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3037 2001-06-18 H.J. Lu <hjl@gnu.org>
3039 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3040 (diststuff): Add $(MANS).
3041 * Makefile.in: Regenerated.
3045 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3047 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3048 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3049 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3050 * ld.h (args_type): Remove member export_dynamic. All users
3051 changed to use struct bfd_link_info member.
3053 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3054 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3055 * Makefile.in: Regenerate.
3057 2001-06-18 H.J. Lu <hjl@gnu.org>
3059 * ldlang.c (init_os): Add the newline to the einfo call.
3060 (lang_check): Likewise.
3061 (lang_do_version_exports_section): Likewise.
3063 2001-06-15 H.J. Lu <hjl@gnu.org>
3065 * lexsup.c (parse_args); Save optind to report unrecognized
3068 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3070 * ldlang.c (lang_check): Emit fatal error if relocatable link
3071 between different object flavours.
3073 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3074 Set new link_info member export_dynamic.
3075 * ldmain.c (main): Initialize new link_info member export_dynamic.
3077 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3079 * ldlang.c (walk_wild): Only call walk_wild_file if
3080 lookup_name returns something.
3081 (lookup_name): If load_symbols fails, return NULL.
3082 (load_symbols): Change to a boolean function.
3083 (open_input_bfds): If load_symbols fails then do not make the
3086 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3088 * ldlang.c (record_bfd_errors): Remove.
3090 * emultempl/aix.em: Fix copyright dates.
3092 2001-06-07 Andreas Jaeger <aj@suse.de>
3094 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3095 (TEXT_START_ADDR): Likewise.
3097 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3099 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3101 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3103 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3105 2001-05-31 H.J. Lu <hjl@gnu.org>
3107 * ldlang.c (open_input_bfds): Don't change the bfd error
3108 handler whilst loading symbols.
3110 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3112 * configure.tgt: Remove i370-mvs architecture, it is not currently
3115 2001-05-25 H.J. Lu <hjl@gnu.org>
3117 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3118 like emulparams/aixppc.sh.
3120 2001-05-25 H.J. Lu <hjl@gnu.org>
3122 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3123 setting of output_filename after bfd_scan_arch.
3124 * emultempl/pe.em: Likewise.
3126 2001-05-25 H.J. Lu <hjl@gnu.org>
3128 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3129 like emulparams/aixppc.sh.
3131 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3132 instead of ${srcdir}/emultempl/stringify.sed.
3134 2001-05-25 Timothy Wall <twall@oculustech.com>
3136 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3139 2001-05-25 Alan Modra <amodra@one.net.au>
3141 * configure.host: Replace linuxoldld with linux*oldld.
3142 * configure.tgt: Likewise.
3144 2001-05-24 H.J. Lu <hjl@gnu.org>
3146 * emultempl/stringify.sed: Removed again.
3148 2001-05-24 H.J. Lu <hjl@gnu.org>
3150 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3151 (gld${EMULATION_NAME}_before_parse): Initialize
3152 ldfile_output_architecture, ldfile_output_machine and
3153 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3154 * emultempl/beos.em: Likewise.
3155 * emultempl/elf32.em: Likewise.
3156 * emultempl/linux.em: Likewise.
3157 * emultempl/mipsecoff.em: Likewise.
3158 * emultempl/pe.em: Likewise.
3159 * emultempl/sunos.em: Likewise.
3161 2001-05-24 Tom Rix <trix@redhat.com>
3163 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3164 udate import file format.
3165 (change_symbol_mode) New, same
3166 (is_syscall) New, same
3167 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3168 * emulparams/aixppc64.sh : same
3169 * emulparams/aixrs6.sh : same
3170 * emulparams/ppcmacos.sh : same
3171 * emultempl/aix.em : use strtoull to parse options
3172 * Makefile.am : add eaixppc64 emulation for xcoff64
3173 * Makefile.in : same
3174 * configure.tgt : same
3176 * scripttempl/aix.sc : default text section offset to 0x10000000
3177 default data section offset to 0x20000000
3178 add .sv3264 and .sv64 pseudo sections
3179 loader and debug sections use the currect section offset.
3181 * emultempl/aix.em : Add xcoff64 support
3182 Add -binitfini support
3183 (gld${EMULATION_NAME}_before_parse) -binitfini
3184 (gld${EMULATION_NAME}_parse_args) same
3185 (gld${EMULATION_NAME}_before_allocation) format change for special
3188 * emulparams/aixppc64.sh : New file for xcoff64 support
3190 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3192 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3193 variable to avoid non-portable shell construct.
3195 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3197 * ldmain.c (get_emulation): Add -mips5 command line argument.
3199 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3201 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3202 (ELF_INTERPRETER_NAME): Define it.
3203 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3205 * configure.tgt (targ_emul, targ_extra_emuls)
3206 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3207 as primary, elf_i386 as extra.
3208 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3209 (eelf_i386_ldso.c): New rule.
3210 * Makefile.in: Rebuilt.
3212 2001-05-22 Nick Clifton <nickc@redhat.com>
3214 * lexsup.c (ld_options): Allow -I to be an alias for
3215 --dynamic-linker. This is for Solaris compatability.
3216 * ld.texinfo: Document that -I can be used.
3219 2001-05-16 Alan Modra <amodra@one.net.au>
3221 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3222 whether an input section is the first one assigned to an output
3224 Assorted formatting fixes.
3226 2001-05-14 DJ Delorie <dj@delorie.com>
3228 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3229 * Makefile.in: Ditto.
3231 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3233 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3234 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3236 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3238 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3240 * ldlang.c (lang_process): Call bfd_merge_sections.
3242 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3244 * ldgram.y: Fix typo.
3246 2001-05-03 H.J. Lu <hjl@gnu.org>
3248 * emultempl/elf32.em: Include "libiberty.h".
3249 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3250 basename of the bfd filename.
3251 (gld${EMULATION_NAME}_stat_needed): Likewise.
3252 (gld${EMULATION_NAME}_try_needed): Likewise.
3253 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3255 2001-05-02 H.J. Lu <hjl@gnu.org>
3257 * emultempl/pe.em: Include <ctype.h>.
3259 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3261 * emulparams/elf32openrisc.sh: New file.
3263 * Makefile.am: Add OpenRISC target.
3264 * Makefile.in: Regenerated.
3266 * configure.tgt: Add openrisc-*-* mapping.
3268 2001-05-02 Nick Clifton <nickc@redhat.com>
3270 * emultempl/aix.em: Replace buystring with xstrdup.
3271 * emultempl/beos.em: Replace buystring with xstrdup.
3273 2001-05-02 H.J. Lu <hjl@gnu.org>
3275 * ldfile.c: Include "libiberty.h".
3276 * ldlex.l: Likewise.
3278 * ldmisc.c (buystring): Removed.
3279 * ldmisc.h: Likewise.
3281 * ldfile.c: Replace buystring with xstrdup.
3282 * ldlang.c: Likewise.
3283 * ldlex.l: Likewise.
3284 * ldmain.c: Likewise.
3285 * ldmisc.c: Likewise.
3286 * lexsup.c: Likewise.
3287 * mpw-eppcmac.c: Likewise.
3289 2001-04-30 Andreas Jaeger <aj@suse.de>
3291 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3293 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3295 * ldlang.c (load_symbols): Give emulation a chance
3296 to process unrecognized file before fatal error is
3297 reported, not after.
3299 2001-04-27 Sean McNeil <sean@mcneil.com>
3301 * configure.tgt: Add arm-vxworks target.
3302 * scripttempl/armcoff.sc: Support .text or .data as a section name
3306 2001-04-13 J.T. Conklin <jtc@redback.com>
3308 * ld.texinfo: Document --fatal-warnings.
3311 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3312 warnings have been turned into errors.
3313 * lexsup.c (OPTION_WARN_FATAL): Define.
3314 (ld_options): Entry for --fatal-warnings.
3315 (parse_args): Handle OPTION_WARN_FATAL.
3316 * ld.h (ld_config_type): Add fatal_warnings field.
3318 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3320 * ldmain.c (main): Default to discard_sec_merge.
3321 * lexsup.c (OPTION_DISCARD_NONE): Define.
3322 (ld_options): Add --discard-none.
3323 (parse_args): Handle OPTION_DISCARD_NONE.
3324 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3325 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3326 all its input sections match.
3328 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3330 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3331 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3332 (eelf32ltsmip.c): New target.
3333 (eelf64btsmip.c): Likewise.
3334 (eelf64ltsmip.c): Likewise.
3335 * Makefile.in: Regenerated.
3337 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3339 (mips*-*-linux-gnu*): Likewise.
3341 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3343 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3345 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3348 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3350 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3351 correct value of __Stext here.
3352 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3355 * emulparams/crislinux.sh: Remove FIXME.
3357 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3359 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3360 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3362 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3364 * configure.tgt (cris-*-*): Change default emulation to criself.
3365 (cris-*-*aout*): New rule.
3367 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3369 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3370 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3372 2001-03-26 Andreas Jaeger <aj@suse.de>
3374 * ld.texinfo (Overview): Fix syntax in texi code.
3376 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3378 * ld.texinfo: Put @c man indications to generate the ld man page.
3379 When generating man, define all the variables. Define SEEALSO
3380 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3381 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3382 (ld.1): Generate from ld.texinfo.
3383 * Makefile.in: Regenerate.
3385 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3387 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3388 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3390 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3392 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3393 is an absolute path look only for this file and not along the path.
3395 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3397 * emultempl/elf32.em (OPTION_GROUP): New macro.
3398 Add new option Bgroup to longopts.
3399 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3400 (gld*_list_options): Add -Bgroup and -z defs.
3401 * ld.1: Document -Bgroup and -z defs.
3402 * ld.texinfo: Likewise.
3404 2001-03-07 Michael Meissner <meissner@redhat.com>
3406 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3407 with sections created by -fdata-sections.
3408 (.dynbss,.bss): Ditto.
3410 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3412 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3413 after_allocation_default, not gld..._before_allocation.
3415 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3417 * configure.in (BFD_VERSION): New.
3418 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3419 * configure: Regenerate.
3420 * Makefile.am: Run "make dep-am"
3421 * Makefile.in: Regenerate.
3423 2001-02-26 Timothy Wall <twall@cygnus.com>
3425 * emulparams/elf64_aix.sh: Add additional read-only sections;
3426 uncomment lines which are now required.
3428 2001-02-26 H.J. Lu <hjl@gnu.org>
3430 * ldlang.c (open_input_bfds): Set the bfd error handler so
3431 that problems can be caught whilst loading symbols.
3432 (record_bfd_errors): New function: Report BFD errors and mark
3433 the executable output as being invalid.
3435 2001-02-22 Timothy Wall <twall@cygnus.com>
3437 * configure.host: Add configuration for ia64-*-aix*.
3438 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3439 Add dependencies for eelf64_aix.c.
3440 * Makefile.in: Regenerate.
3441 * configure.tgt: Add ia64-*-aix* mapping.
3442 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3444 2001-02-20 H.J. Lu <hjl@gnu.org>
3446 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3447 false if we found the file.
3449 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3451 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3452 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3454 2001-02-18 lars brinkhoff <lars@nocrew.org>
3456 * Makefile.am: Add PDP-11 target.
3457 * configure.tgt: Likewise.
3458 * emulparams/pdp11.sh: New file.
3460 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3462 * configure.host: Add a generic FreeBSD configuration entry such that
3463 all [modern] FreeBSD systems on all platforms will look the same.
3465 2001-02-14 H.J. Lu <hjl@gnu.org>
3467 * configure.tgt: Remove mention of earmelf_linux26.
3469 2001-02-13 Richard Henderson <rth@redhat.com>
3471 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3473 2001-02-13 H.J. Lu <hjl@gnu.org>
3475 * ldexp.h (node_type): Add etree_provided.
3476 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3477 type to etree_provided if defined by PROVIDE. Allow updating
3479 (exp_print_tree): Handle etree_provided.
3480 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3483 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3485 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3486 .IA_64.unwind.* pattern to unwind table section and
3487 .IA_64.unwind_info* pattern to unwind info section.
3489 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3491 * Makefile.am: Add linux target for S/390.
3492 * Makefile.in: Likewise.
3493 * configure.host: Likewise.
3494 * configure.tgt: Likewise.
3495 * emulparams/elf64_s390.sh: New file.
3496 * emulparams/elf_s390.sh: New file.
3498 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3500 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3502 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3504 2001-02-06 Philip Blundell <philb@gnu.org>
3506 * Makefile.am: Remove mention of earmelf_linux26.
3507 * Makefile.in: Regenerate.
3509 2001-02-04 Philip Blundell <philb@gnu.org>
3511 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3512 * emulparams/armelf_linux26.sh: Delete.
3513 * configure.tgt: Remove mention of armelf_linux26 emulation.
3515 2001-02-01 Nick Clifton <nickc@redhat.com>
3517 * ld.1: Replace occurances of -oformat with --oformat.
3519 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3521 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3522 load_base is specified.
3524 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3526 * emultempl/elf32.em: Correct spelling in comments and listed
3529 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3531 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3532 default for the first section of a group of overlay sections.
3534 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3536 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3537 * Makefile.in: Regenerate.
3538 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3539 Check for null tool_dir.
3541 2001-01-16 Jim Wilson <wilson@redhat.com>
3543 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3544 and IA_64.unwind.info.
3546 2001-01-16 H.J. Lu <hjl@gnu.org>
3548 * ldlang.c (lang_check): Merge the private data only if the
3549 input file has contents.
3551 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3553 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3555 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3556 enabling search for libmilli. On a relocatable link, make .text
3558 (LDEMUL_AFTER_PARSE): Define.
3559 (hppaelf_finish): Correct spelling of relocatable in comments.
3561 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3562 rummage through the script for sections on the unique list.
3563 Correct length of strncmp for ".note".
3564 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3566 * ldlang.c (unique_section_list): New var.
3567 (unique_section_p): New function.
3568 (walk_wild_section): Don't match sections on unique_section_list.
3569 (lang_add_unique): New function.
3570 Correct spelling of relocatable in comments.
3572 * ldlang.h (struct unique_sections): Declare.
3573 (unique_section_list): Declare.
3574 (unique_section_p): Declare.
3575 (lang_add_unique): Declare.
3577 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3578 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3580 * ld.texinfo (--unique): Update.
3582 2001-01-13 Nick Clifton <nickc@redhat.com>
3584 * lexsup.c (parse_args): Remove spurious white space.
3586 2001-01-12 Nick Clifton <nickc@redhat.com>
3588 * lexsup.c (parse_args): Update copyright date.
3590 2001-01-12 Philip Blundell <pb@futuretv.com>
3592 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3594 2001-01-10 Kazu Hirata <kazu@hxi.com>
3596 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3597 * scripttempl/h8300h.sc: Fix formatting.
3598 * scripttempl/h8300s.sc: Likewise.
3599 * scripttempl/h8500.sc: Likewise.
3600 * scripttempl/h8500b.sc: Likewise.
3601 * scripttempl/h8500c.sc: Likewise.
3602 * scripttempl/h8500m.sc: Likewise.
3603 * scripttempl/h8500s.sc: Likewise.
3605 2000-01-07 David O'Brien <obrien@BSDi.com>
3607 * emultempl/elf32.em: Only perform Linux ld hints processing when
3610 2001-01-07 Philip Blundell <philb@gnu.org>
3612 * ld.texinfo (Bug Reporting): Update email address for reports.
3614 2000-12-31 Nick Clifton <nickc@redhat.com>
3616 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3617 options by checking for a return value of '?' not -1.
3619 2000-12-28 Nick Clifton <nickc@redhat.com>
3621 * lexsup.c (struct ld_option): Add new enum value:
3623 (ld_options[]): Change -omagic, -output and -oformat options
3624 to be EXACTLY_TWO_DASHES.
3625 (OUTPUT_COUNT): Use ARRAY_SIZE.
3626 (parse_args): Change parameter 'argc' to unsigned.
3627 Place EXACTLY_TWO_DASHES options into new really_longopts
3629 If getopt_long_only fails, try calling getopt_long using the
3630 really_longopts array.
3631 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3634 * ldlex.h: Fix prototype of parse_args.
3636 * ld.texinfo: Document that long options starting with 'o'
3637 must be preceeded by two dashes. Change example of a single
3638 dashed long option from -oformat to -trace-symbol.
3640 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3642 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3643 (longopts[]): New --no-default-excludes option.
3644 (gld_${EMULATION_NAME}_list_options): Document.
3645 (gld_${EMULATION_NAME}_parse_args): Handle.
3647 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3649 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3650 whitespace, it breaks the K&R C preprocessor.
3652 2000-12-11 DJ Delorie <dj@redhat.com>
3654 * ld.texinfo: Add notes about --whole-archive and gcc.
3656 2000-11-18 Fred Fish <fnf@be.com>
3658 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3659 (ld_options): Entry for --allow-shlib-undefined.
3660 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3661 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3663 * ld.texinfo: Document new command line switch.
3665 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3667 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3668 .fixup is actually read/write.
3669 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3670 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3671 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3673 2000-12-11 Jan Hubicka <jh@suse.cz>
3675 * NEWS: Add note about x86_64 architecture.
3677 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3679 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3680 Set DWARF2 sections to a VMA of zero.
3682 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3684 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3686 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3687 (sparc*-*-rtems*): Switched from a.out to ELF.
3689 2000-11-30 Jan Hubicka <jh@suse.cz>
3691 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3692 (eelf_x86_64.c): New.
3693 * Makefile.in: Regenerate.
3694 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3695 * emulparams/elf_x86_64.sh: New.
3697 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3699 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3700 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3702 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3703 merging non-a.out sections into CONSTRUCTING.
3705 2000-11-28 Nick Clifton <nickc@redhat.com>
3707 * ld.1 (COPYING): Mention that the GNU Free Documentation
3708 License is present in the sources, but not the output, and
3709 also available from the GNU website.
3710 (GNU Free Documentation License): Comment out this section.
3712 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3714 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3717 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3719 * ld.1: Remove old date so it does not give the impression the manpage
3722 2000-11-24 Nick Clifton <nickc@redhat.com>
3724 * configure.tgt (xscale-coff): Add target.
3725 (xscale-elf): Add target.
3727 2000-11-24 Fred Fish <fnf@be.com>
3729 * ldmain.c (main): Remove redundant init of config.make_executable
3732 2000-11-15 Richard Henderson <rth@redhat.com>
3734 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3736 2000-11-14 Kazu Hirata <kazu@hxi.com>
3738 * scripttempl/h8300.sc: Fix formatting.
3739 * scripttempl/h8300h.sc: Likewise.
3740 * scripttempl/h8300s.sc: Likewise.
3742 2000-11-14 Denis Chertykov <denisc@overta.ru>
3744 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3746 2000-11-09 Philip Blundell <pb@futuretv.com>
3748 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3749 around orphan sections whose names can be represented in C.
3751 2000-11-07 Jim Wilson <wilson@redhat.com>
3753 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3754 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3756 2000-11-06 Nick Clifton <nickc@redhat.com>
3758 * ld.texinfo: Add GNU Free Documentation License.
3759 * ldint.texinfo: Add GNU Free Documentation License.
3760 * ld.1: Add GNU Free Documentation License.
3762 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3764 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3765 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3767 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3768 Move 2000-11-02 Makefile.in changes to this file.
3769 * Makefile.in: Regenerate.
3771 2000-11-03 Nick Clifton <nickc@redhat.com>
3773 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3774 constructors and destructors.
3775 * scripttempl/h8300h.sc: Ditto.
3776 * scripttempl/h8300s.sc: Ditto.
3777 * scripttempl/h8500.sc: Ditto.
3778 * scripttempl/h8500b.sc: Ditto.
3779 * scripttempl/h8500c.sc: Ditto.
3780 * scripttempl/h8500m.sc: Ditto.
3781 * scripttempl/h8500s.sc: Ditto.
3782 * scripttempl/v850.sc: Ditto.
3783 * scripttempl/w65.sc: Ditto.
3784 * scripttempl/z8000.sc: Ditto.
3786 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3788 * Makefile.in (e_i386_chaos.c): New rule.
3789 (ALL_EMULATIONS): Added e_i386_chaos.o.
3790 * emulparams/elf_i386_chaos.sh: New file.
3791 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3793 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3795 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3796 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3797 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3798 library path suffix.
3799 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3801 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3803 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3804 for consecutive sections.
3806 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3808 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3810 * ld.texinfo: Added notes about this new option.
3812 2000-10-16 Nick Clifton <nickc@redhat.com>
3814 * emultempl/pe.em (_after_open): Add tests of return values from
3815 bfd functions. Emit appropriate error messages if necessary.
3817 2000-10-13 Nick Clifton <nickc@redhat.com>
3819 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3820 local variables - they are not used, but leave in the call to
3821 bfd_canonicalize_symtab.
3822 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3823 pe_dll_search_prefix.
3825 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3827 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3828 (longopts): New --dll-search-prefix option.
3829 (gld_${EMULATION_NAME}_list_options): Document.
3830 (gld_${EMULATION_NAME}_parse_args): Handle.
3831 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3832 dynamically, search for a dll named '<prefix><basename>.dll'
3833 in preference to 'lib<basename>.dll' if --dll-search-prefix
3836 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3838 * ldlang.c (section_already_linked): Set kept_section instead of
3841 2000-10-10 Kazu Hirata <kazu@hxi.com>
3843 * deffile.h: Fix formatting.
3844 * lexsup.c: Likewise.
3847 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3849 * pe-dll.c (make_one): Do not generate code thunk for DATA
3851 (process_def_file): deduce DATA flag for auto-export sumbols.
3853 2000-10-09 Kazu Hirata <kazu@hxi.com>
3855 * ld.h: Fix formatting.
3856 * ldcref.c: Likewise.
3857 * ldctor.h: Likewise.
3858 * ldemul.c: Likewise.
3859 * ldemul.h: Likewise.
3860 * ldexp.c: Likewise.
3861 * ldexp.h: Likewise.
3862 * ldfile.c: Likewise.
3863 * ldfile.h: Likewise.
3864 * ldlang.c: Likewise.
3865 * ldlang.h: Likewise.
3866 * ldmain.c: Likewise.
3867 * pe-dll.c: Likewise.
3869 * pe-dll.c: Revert some formatting fixes.
3871 2000-10-08 Kazu Hirata <kazu@hxi.com>
3873 * pe-dll.c: Fix formatting.
3875 2000-10-05 Kazu Hirata <kazu@hxi.com>
3877 * ldlang.c: Fix formatting.
3879 2000-10-03 DJ Delorie <dj@redhat.com>
3881 * pe-dll.c (fill_edata): initialize entire block
3882 (make_one): fill in correct section.
3884 2000-10-03 Kazu Hirata <kazu@hxi.com>
3886 * ldexp.c: Fix formatting.
3888 2000-10-02 DJ Delorie <dj@redhat.com>
3890 * emultempl/pe.em (gld_*_after_open): detect case where there two
3891 import libraries for same dll; rename one to ensure proper link
3894 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3896 (generate_edata): fix typo
3898 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3900 * scripttempl/crisaout.sc (ENTRY): Now __start.
3901 (.text): Add default setting for __start.
3902 Remove CONSTRUCTORS handling.
3903 (/DISCARD/): Add .gnu.warning.*.
3904 * emulparams/crislinux.sh (ENTRY): Now __start.
3905 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3906 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3907 (ENTRY): Now __start.
3908 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3909 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3911 2000-09-29 Kazu Hirata <kazu@hxi.com>
3913 * deffile.h: Fix formatting.
3915 * ldcref.c: Likewise.
3916 * ldctor.c: Likewise.
3917 * ldctor.h: Likewise.
3918 * ldemul.c: Likewise.
3919 * ldemul.h: Likewise.
3920 * ldexp.c: Likewise.
3921 * ldexp.h: Likewise.
3922 * ldfile.c: Likewise.
3923 * ldfile.h: Likewise.
3924 * ldlang.c: Likewise.
3925 * ldlang.h: Likewise.
3926 * lexsup.c: Likewise.
3928 * pe-dll.c: Likewise.
3930 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3932 * pe-dll.c (process_def_file): Uninitialized data wasn't
3933 exported with --export-all-symbols switch.
3935 2000-09-28 DJ Delorie <dj@redhat.com>
3937 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3938 noname work properly.
3940 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3942 * ld.texinfo (HPPA ELF32): New section.
3944 * emultempl/hppaelf.em (group_size): New.
3945 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3946 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3947 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3948 options to prevent abbreviations matching.
3949 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3950 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3952 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3954 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3955 on the m68*-*-elf target. Make it support COFF input objects.
3957 2000-09-21 Kazu Hirata <kazu@hxi.com>
3959 * ldmain.c: Fix formatting.
3960 * ldmisc.c: Likewise.
3961 * ldver.c: Likewise.
3962 * ldwrite.c: Likewise.
3964 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3966 * ldwrite.c (clone_section): Silence gcc warnings.
3968 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3970 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3971 out of memory failure.
3973 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3974 (clone_section): Handle out of memory failures. Rename var to
3975 avoid c++ reserved word.
3977 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3979 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3980 stub_name param to stub_sec_name.
3981 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3983 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3985 * emultempl/m68kelf.em: New file.
3986 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3987 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3988 * Makefile.in: Regenerate.
3990 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3992 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3995 2000-09-13 Nick Clifton <nickc@redhat.com>
3997 * ldmain.c (multiple_definition): Disable relaxation if
3998 multiple symbol definitions are encountered - otherwise the
3999 linker could abort with an assertion failure.
4001 2000-09-10 Nick Clifton <nickc@redhat.com>
4003 * mri.c: Fix formatting.
4005 2000-09-07 H.J. Lu <hjl@gnu.org>
4007 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4008 * configure: Rebuild.
4010 2000-09-07 H.J. Lu <hjl@gnu.org>
4012 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4013 * Makefile.in: Rebuild.
4015 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4017 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4018 broken list handling. Create __start_SECNAME and __stop_SECNAME
4019 when no place-holder. Add some comments. Test both SEC_CODE and
4020 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4021 Handle case where no output section statement created.
4023 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4025 * configure.tgt (sh-*-linux*): Added.
4026 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4027 * Makefile.in: Rebuilt.
4028 * emulparams/shelf_linux.sh: New file.
4029 * emulparams/shlelf_linux.sh: New file.
4031 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4033 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4034 try shuffling sections when the orphan happens to be the place
4035 holder. Keep count of unique section names generated so we speed
4036 the search for a new name.
4038 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4040 * configure: Rebuilt with new libtool.m4.
4042 2000-09-05 Nick Clifton <nickc@redhat.com>
4044 * Makefile.in: Regenerate.
4045 * aclocal.m4: Regenerate.
4046 * configure: Regenerate.
4047 * config.in: Regenerate.
4048 * po/ld.pot: Regenerate.
4050 * ldint.texinfo: Remove CVS revision marker - it foils local
4053 * emultempl/ticoff.em: Remove extraneous comma.
4055 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4057 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4058 to stub section flags.
4059 (hppa_for_each_input_file_wrapper): New.
4060 (hppa_lang_for_each_input_file): New.
4061 (lang_for_each_input_file): Define to call above.
4062 (multi_subspace): New.
4063 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4064 (PARSE_AND_LIST_PROLOGUE): Define.
4065 (PARSE_AND_LIST_LONGOPTS): Define.
4066 (PARSE_AND_LIST_OPTIONS): Define.
4067 (PARSE_AND_LIST_ARGS_CASES): Define.
4068 (hppaelf_finish): Call elf32_hppa_set_gp.
4069 (hppaelf_set_output_arch): Remove.
4070 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4072 * emulparams/hppalinux.sh (ELFSIZE): Define.
4074 (OTHER_READONLY_SECTIONS): Define.
4076 (GENERATE_SHLIB_SCRIPT): Define.
4078 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4079 to const throughout. Change `void *' to `PTR' throughout.
4080 (lang_memory_default): Function is local to file, add `static'.
4082 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4083 (ehppalinux.c): Likewise.
4084 (earmelf.c): Likewise.
4085 (earmelf_linux.c): Likewise.
4086 (earmelf_linux26.c): Likewise.
4087 * Makefile.in: Regenerate.
4089 * ld.h (ld_config_type): Add unique_orphan_sections.
4090 * lexsup.c (OPTION_UNIQUE): Define.
4091 (ld_options): Add "--unique".
4092 (parse_args): Handle it.
4093 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4094 search for an existing output section if unique_orphan_sections is
4095 set. Make use of bfd_get_unique_section_name rather than
4096 duplicating code here.
4097 * ld.texinfo: Describe --unique.
4099 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4100 optional arg to split-by-file.
4101 (parse_args): Handle them.
4102 * ld.texinfo: Update description of these options.
4103 * ldwrite.c (clone_section): Pass in the section name. Replace
4104 local code with bfd_get_unique_section_name.
4105 (split_sections): Tidy code and comments. Use a list traversal
4106 more appropriate to the list construction. Handle cooked section
4107 sizes. Split when split_by_reloc reached rather than exceeded.
4108 Track section size and split when split_by_file reached. Fix
4109 link_order_tail (even though it's not used).
4110 (ldwrite): Modify condition for calling split_sections to suit
4111 changed split_by_reloc and split_by_file.
4112 * ldmain.c (main): Init config.split_by_reloc and
4113 config.split_by_file to -1.
4114 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4115 Change split_by_file to bfd_size_type.
4117 2000-09-02 Nick Clifton <nickc@redhat.com>
4119 * configure.in: Increase version number to 2.10.91.
4120 * NEWS: Mention new ability to support removal of duplicate DWARF2
4122 * configure: Regenerate.
4123 * aclocal.m4: Regenerate.
4124 * config.in: Regenerate.
4126 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4128 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4130 * scripttempl/elf32avr.sc: Ditto.
4131 * scripttempl/elfd10v.sc: Ditto.
4132 * scripttempl/elfd30v.sc: Ditto.
4133 * scripttempl/elfi370.sc: Ditto.
4134 * scripttempl/elfm68hc11.sc: Ditto.
4135 * scripttempl/elfm68hc12.sc: Ditto.
4136 * scripttempl/elfi386beos.sc: Ditto.
4137 * scripttempl/v850.sc: Ditto.
4139 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4141 * acinclude.m4: Include libtool and gettext macros from the
4143 * aclocal.m4, configure: Rebuilt.
4145 2000-08-25 Nick Clifton <nickc@redhat.com>
4147 * ldlang.c (open_output): When choosing the target for a
4148 particular endianness, do nothing if the target is not
4151 2000-08-25 H.J. Lu <hjl@gnu.org>
4153 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4154 check -rpath nor LD_RUN_PATH for cross link.
4155 * ld.texinfo: Document the change.
4157 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4159 * NEWS: Mention support for CRIS.
4161 2000-08-23 H.J. Lu <hjl@gnu.org>
4163 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4164 the current runpath list from bfd_elf_get_runpath_list ()
4167 2000-08-22 H.J. Lu <hjl@gnu.org>
4169 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4170 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4171 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4172 trace_file_tries is non-zero.
4173 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4174 if trace_file_tries is non-zero.
4176 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4179 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4181 * NEWS: Mention i860 support.
4183 2000-08-14 Andreas Schwab <schwab@suse.de>
4185 * scripttempl/elf.sc: Fix last change to use correct comment
4188 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4190 * scripttempl/elf.sc: Add a comment giving the correspondence
4191 between sections, per-datum sections, and linkonce sections. Make
4192 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4195 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4197 * emulparams/elf32_i860.sh: New file.
4198 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4199 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4200 (eelf32_i860.c): New rule.
4201 * Makefile.in: Regenerate.
4203 2000-08-10 Nick Clifton <nickc@cygnus.com>
4205 * emulparams/mipspe.sh (ENTRY): Add definition.
4207 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4209 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4212 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4214 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4215 the final size of .bss section.
4216 * scripttempl/elfm68hc12.sc: Likewise.
4218 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4220 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4221 gld${EMULATION_NAME}_parse_args for consistency. Combine
4222 lastoptind and prevoptind vars, and keep track of last optind.
4223 (gld_${EMULATION_NAME}_list_options): Rename to
4224 gld${EMULATION_NAME}_list_options.
4226 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4228 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4229 (i586-sco-sysv5uw7.1.0).
4231 2000-07-27 H.J. Lu <hjl@gnu.org>
4233 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4234 (PARSE_AND_LIST_PROLOGUE): New.
4235 (PARSE_AND_LIST_LONGOPTS): Likewise.
4236 (PARSE_AND_LIST_OPTIONS): Likewise.
4237 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4238 (PARSE_AND_LIST_EPILOGUE): Likewise.
4240 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4242 * emultempl/armelf.em: Elide functions common to elf32.em,
4243 ie. most of the file.
4244 (arm_elf_after_open): New. Do arm specific things then call
4245 gld${EMULATION_NAME}_after_open.
4246 (arm_elf_before_allocation): New. Call
4247 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4248 (PARSE_AND_LIST_PROLOGUE): Define.
4249 (PARSE_AND_LIST_SHORTOPTS): Define.
4250 (PARSE_AND_LIST_LONGOPTS): Define.
4251 (PARSE_AND_LIST_OPTIONS): Define.
4252 (PARSE_AND_LIST_ARGS_CASES): Define.
4253 (LDEMUL_AFTER_OPEN): Define.
4254 (LDEMUL_BEFORE_ALLOCATION): Define.
4255 (LDEMUL_BEFORE_PARSE): Define.
4256 (LDEMUL_FINISH): Define.
4258 * emultempl/hppaelf.em: Similarly zap most of this file.
4259 (hppaelf_add_stub_section): Prototype.
4260 (hppaelf_layaout_sections_again): Prototype.
4261 (hook_in_stub): Prototype.
4262 (LDEMUL_SET_OUTPUT_ARCH): Define.
4263 (LDEMUL_FINISH): Define.
4264 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4266 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4267 (EXTRA_EM_FILE): New.
4268 * emulparams/armelf_linux.sh: Likewise.
4269 * emulparams/armelf_linux26.sh: Likewise.
4270 * emulparams/hppalinux.sh: Likewise.
4271 * emulparams/hppaelf.sh: Likewise.
4274 * emultempl/elf32.em: Fix formatting.
4275 (EXTRA_EM_FILE): Source it.
4276 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4277 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4278 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4279 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4280 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4281 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4282 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4283 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4284 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4285 allow functions in this file to be overridden.
4286 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4288 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4290 * emultempl/elf32.em: Reorganize file.
4292 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4294 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4295 specific option to fit 64-bit executable in the lower
4296 31-bit address range. This is done by changing start
4297 address of .interp (the very first section of executable)
4298 and then setting EF_ALPHA_32BIT elf header flag.
4300 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4302 * emultempl/m68kcoff.em: New file.
4303 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4304 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4306 * Makefile.in: Regenerate.
4308 2000-07-20 H.J. Lu <hjl@gnu.org>
4310 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4311 and "disable-new-dtags" to stop getopt from treating -d/-e as
4312 abbreviations for these options.
4314 2000-07-20 H.J. Lu <hjl@gnu.org>
4316 * ld.texinfo: Add documentation for --disable-new-dtags and
4319 * ldmain.c (main): Initialize link_info.new_dtags to false.
4321 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4322 --disable-new-dtags and --enable-new-dtags.
4323 (gld_${EMULATION_NAME}_list_options): Likewise.
4325 2000-07-05 Kenneth Block <krblock@computer.org>
4327 * lexsup.c: Add optional style to demangle switch
4328 * ld.texinfo: Document optional style to demangle switch.
4330 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4332 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4334 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4335 Regenerate dependencies.
4336 * Makefile.in: Rebuild.
4337 * configure.tgt (cris-*-*): New target.
4338 * emulparams/crisaout.sh, emulparams/criself.sh,
4339 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4340 * po/POTFILES.in, po/ld.pot: Regenerate.
4342 2000-07-20 H.J. Lu <hjl@gnu.org>
4344 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4345 Print out ignored -z options.
4347 2000-07-19 H.J. Lu <hjl@gnu.org>
4349 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4350 (PARSE_AND_LIST_PROLOGUE): New.
4351 (PARSE_AND_LIST_LONGOPTS): Likewise.
4352 (PARSE_AND_LIST_OPTIONS): Likewise.
4353 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4355 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4357 * lexsup.c (ld_options): Comment out 'z'.
4358 (parse_args): Likewise.
4360 * emultempl/elf32.em: Include "elf/common.h".
4361 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4363 (gld_${EMULATION_NAME}_list_options): Likewise.
4365 * ld.texinfo: Add documentation for the recognized -z options.
4367 2000-07-19 H.J. Lu <hjl@gnu.org>
4369 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4370 bfd_elf_set_dt_needed_soname ().
4372 2000-07-18 DJ Delorie <dj@cygnus.com>
4374 * pe-dll.c (pe_dll_id_target): check object target name also
4376 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4378 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4379 ${INIT_END} if relocating.
4380 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4382 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4384 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4385 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4386 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4387 errors introduced by the old dynamic lib search order.
4389 2000-07-17 DJ Delorie <dj@cygnus.com>
4391 * pe-dll.c (process_def_file): auto-export data items also
4392 (pe_process_import_defs): also see if _imp_ form needed
4394 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4396 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4397 for dll import libraries
4399 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4401 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4402 gcc 2.95.2 and later.
4404 2000-07-11 Kazu Hirata <kazu@hxi.com>
4406 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4409 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4411 * ldemul.h (struct lang_input_statement_struct): Remove forward
4413 (struct search_dirs): Likewise.
4414 * ldfile.h (struct lang_input_statement_struct): Likewise.
4415 Protect file from multiple inclusion.
4416 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4417 declaration from macro to file scope.
4419 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4420 * ldgram.y: Likewise here.
4421 * ldlang.c: And here.
4422 * ldmain.c: And here.
4423 * mpw-elfmips.c: And here.
4424 * mpw-eppcmac.c: And here.
4425 * emultempl/aix.em: And here.
4426 * emultempl/armcoff.em: And here.
4427 * emultempl/armelf.em: And here.
4428 * emultempl/armelf_oabi.em: And here.
4429 * emultempl/beos.em: And here.
4430 * emultempl/elf32.em: And here.
4431 * emultempl/hppaelf.em: And here.
4432 * emultempl/linux.em: And here.
4433 * emultempl/lnk960.em: And here.
4434 * emultempl/pe.em: And here.
4435 * emultempl/sunos.em: And here.
4436 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4437 * mpw-idtmips.c: Ditto.
4438 * emultempl/generic.em: Ditto.
4439 * emultempl/gld960.em: Ditto.
4440 * emultempl/gld960c.em: Ditto.
4441 * emultempl/mipsecoff.em: Ditto.
4442 * emultempl/ticoff.em: Ditto.
4443 * emultempl/vanilla.em: Ditto.
4445 * pe-dll.c: Include ldfile.h
4446 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4448 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4449 arguments to bfd_elf32_size_dynamic_sections call.
4450 (gldelf32ebmip_place_orphan): Add missing arguments to
4451 lang_leave_output_section_statement call.
4453 2000-07-10 H.J. Lu <hjl@gnu.org>
4455 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4457 (strhash): Likewise.
4458 (compute_dll_image_base): Likewise.
4459 (pe_undef_found_sym): Likewise.
4460 (pe_undef_cdecl_match): Likewise.
4461 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4462 argument "arch" with ATTRIBUTE_UNUSED.
4464 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4466 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4468 From Ryan Bradetich <rbradetich@uswest.net>
4469 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4471 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4473 Changes to create multiple linker stubs, positioned immediately
4474 before the section where they are required.
4475 * emultempl/hppaelf.em: Include elf32-hppa.h.
4476 (stub_sec, file_chain): Delete.
4477 (hppaelf_create_output_section_statements): Don't make a stub
4479 (hook_stub_info): New struct.
4480 (hook_in_stub): New function.
4481 (hppaelf_add_stub_section): New function.
4482 (hppaelf_finish): Do nothing for relocateable links. Modify the
4483 call to elf32_hppa_size_stubs. Move code for updating section
4485 (hppaelf_layaout_sections_again): ..to here, a new function.
4487 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4488 broken list handling. Pass in a pointer to the list.
4489 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4491 (hppaelf_before_parse): Prototype.
4492 (hppaelf_set_output_arch): Prototype.
4493 (hppaelf_create_output_section_statements): Prototype.
4494 (hppaelf_delete_padding_statements): Prototype.
4495 (hppaelf_finish): Prototype.
4498 * emultempl/hppaelf.em: Include ctype.h.
4499 (struct orphan_save): New.
4500 (gld${EMULATION_NAME}_place_orphan): New.
4501 (output_rel_find): New.
4502 (hppaelf_get_script): Update from elf32.em.
4503 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4504 Change emulation_name field to "${EMULATION_NAME}". Add
4505 gld${EMULATION_NAME}_place_orphan.
4507 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4508 ehppalinux.o, sort it. Regenerate dependencies.
4509 (ehppalinux.c): Depend on hppaelf.em
4510 * Makefile.in: Regenerate.
4512 * configure.tgt: targ_emul=hppalinux for hppa*linux
4514 * emulparams/hppalinux.sh: New.
4515 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4517 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4519 * lexsup.c (parse_args): Copy section name.
4521 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4523 * emultempl/pe.em: institute the following search order for
4524 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4525 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4526 static lib (libfoo.a) if none of the above are found.
4528 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4530 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4531 (longopts): New --{enable,disable}-auto-image-base options.
4532 (gld_${EMULATION_NAME}_list_options): Document.
4533 (gld_${EMULATION_NAME}_parse): Handle.
4534 (strhash): New static function.
4535 (compute_dll_image_base): New static function.
4536 (gld_${EMULATION_NAME}_set_symbols): Use.
4538 2000-07-05 DJ Delorie <dj@redhat.com>
4542 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4544 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4545 * emulparams/elf32btsmip.sh: New file.
4546 * Makefile.am: Add traditional mips target.
4547 * Makefile.in: Rebuild.
4549 2000-07-01 H.J. Lu <hjl@gnu.org>
4551 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4552 automake to use YLWRAP.
4553 * Makefile.in: Rebuild.
4555 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4557 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4558 (CLEANFILES): Add DEPA.
4559 * Makefile.in: Regenerate.
4561 2000-06-30 Timothy Wall <twall@ppc>
4563 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4564 the page in the upper octet of the address.
4566 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4568 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4570 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4572 * NEWS: arm-elf does --gc-sections too.
4574 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4576 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4578 * Makefile.in: Regenerate.
4580 2000-06-21 H.J. Lu <hjl@gnu.org>
4582 * Makefile.am: Rebuild dependency.
4583 * Makefile.in: Rebuild.
4585 2000-06-20 H.J. Lu <hjl@gnu.org>
4587 * Makefile.am: Rebuild dependency.
4588 * Makefile.in: Rebuild.
4590 2000-06-20 Timothy Wall <twall@cygnus.com>
4592 * scripttempl/tic54xcoff.sc: New.
4593 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4594 * gen-doc.texi: Add flag for TI COFF.
4595 * ld.texinfo: Add documentation for TI COFF handling switches.
4596 * emultempl/ticoff.em: New. TI COFF handling.
4597 * configure.tgt: Add tic54x target.
4598 * Makefile.am: Add tic54x target.
4599 * Makefile.in: Ditto.
4601 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4603 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4604 checking for backslashes.
4606 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4608 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4610 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4612 * NEWS: Update list of targets supporting --gc-sections.
4614 * scripttempl/elf.sc: KEEP .eh_frame contents.
4615 * scripttempl/elfd30v.sc: Same here.
4617 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4619 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4621 * Makefile.in: Rebuild.
4622 * configure.tgt: Recognize m68hc12 and m68hc11.
4623 * scripttempl/elfm68hc12.sc: New file.
4624 * emulparams/m68hc12elfb: New emulation.
4625 * emulparams/m68hc12elf: New emulation.
4626 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4627 (includes a memory.x script to define the ROM and RAM banks).
4628 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4629 New configuration files for support of Motorola 68hc11
4631 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4633 * ldmain.c (main): Only change SEC_READONLY for final link.
4635 2000-06-13 H.J. Lu <hjl@gnu.org>
4637 * configure: Regenerate.
4639 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4641 * configure.in (VERSION): Update to show this is the CVS mainline.
4643 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4645 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4646 input objects to be ECOFF.
4647 (check_sections): einfo takes %B, not %P, to print a BFD name.
4649 2000-06-05 Michael Matz <matz@ifh.de>
4651 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4654 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4656 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4658 * emulparams/avr1200.sh (STACK): Define as 0.
4659 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4660 * emulparams/avr4433.sh (STACK): Likewise.
4661 * emulparams/avr44x4.sh (STACK): Likewise.
4662 * emulparams/avr85xx.sh (STACK): Likewise.
4663 * emulparams/avrmega103.sh (STACK): Likewise.
4664 * emulparams/avrmega161.sh (STACK): Likewise.
4665 * emulparams/avrmega603.sh (STACK): Likewise.
4666 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4667 (__stack): Define from ${STACK} for main().
4669 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4671 * Makefile.am: Update dependencies with "make dep-am"
4672 * Makefile.in: Regenerate.
4674 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4676 * ldmain.c: Include filenames.h.
4677 (set_scripts_dir): Support backslashes in program name.
4679 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4681 * ldmain.c (main): When deciding if ".text" section should be
4682 read-only, don't forget to reset SEC_READONLY because it
4683 could be already set.
4685 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4687 * ld.1: Add documentation for new command line option:
4688 --section-start <sectionname>=<sectionorg>
4689 This is a generic version of -Ttext etc. which accepts
4690 any section name as a parameter instead of just text/data/
4692 * ld.texinfo: More docs.
4694 * lexsup.c: (parse_args): Recognize new command line option.
4695 (ld_options): Add new option.
4697 2000-05-18 H.J. Lu <hjl@gnu.org>
4699 * lexsup.c (parse_args): `i' == `r', not `q'.
4701 2000-05-18 Jeffrey A Law (law@cygnus.com)
4703 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4705 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4706 Rick Gorton <gorton@scrugs.lkg.dec.com>
4708 Add support for '-q' == '--emit-relocs' switch.
4709 * ldmain.c (main): Default to false.
4710 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4711 * NEWS: Describe the emitrelocations switch.
4712 * ld.texinfo: Describe the emitrelocations switch.
4714 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4716 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4717 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4718 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4721 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4723 * lexsup.c (parse_args): Update the year in the copyright notice.
4725 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4727 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4728 Replace defines with those from intl/libgettext.h to quieten gcc
4731 2000-05-10 H.J. Lu <hjl@gnu.org>
4733 * ldlang.c (open_input_bfds): Don't load the same file within
4734 a group again if the whole archive has been loaded already.
4736 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4738 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4739 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4742 2000-05-01 Jim Wilson <wilson@cygnus.com>
4744 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4746 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4747 host "ia64-*-linux-gnu*".
4749 2000-04-29 Andreas Jaeger <aj@suse.de>
4751 * ld.h: Correctly check GCC version.
4753 2000-04-25 Jeffrey A Law (law@cygnus.com)
4755 * Makefile.am: Add PA64 support. Add missing dependencies for
4757 * Makefile.in: Rebuilt.
4758 * configure.tgt: Add PA64 support (currently disabled).
4760 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4762 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4763 (output_rel_find): New function.
4764 (hold_section, hold_use): Delete.
4765 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4766 hold_interp): Make local to place_orphan.
4767 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4768 rather than place_section to find possible previous use of orphan.
4769 Similarly find the place-holder output sections. Use returned
4770 value from lang_enter_output_section_statement rather than calling
4771 lang_output_section_statement_lookup.
4772 * emultempl/armelf.em: Same here.
4773 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4775 * ldlang.c (lang_enter_output_section_statement): Return output
4777 * ldlang.h (lang_enter_output_section_statement): Change
4780 * ldlang.h (lang_output_section_statement): Export it.
4781 * ldlang.c (lang_output_section_statement): Ditto.
4783 2000-04-24 Nick Clifton <nickc@cygnus.com>
4785 * ld.texinfo (Output Section Data): Add note that section data
4786 commands cannot appear outside of section directives.
4788 2000-04-2 Matthew Green <mrg@cygnus.com>
4790 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4792 2000-04-21 Richard Henderson <rth@cygnus.com>
4793 David Mosberger <davidm@hpl.hp.com>
4795 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4796 (eelf64_ia64.c): New rule.
4797 * Makefile.in: Rebuild.
4798 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4799 * emulparams/elf64_ia64.sh: New file.
4801 2000-04-21 Richard Henderson <rth@cygnus.com>
4803 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4805 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4807 * dep-in.sed: Match space at start of file name, not at end.
4809 2000-04-18 H.J. Lu <hjl@gnu.org>
4811 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4812 lang_leave_output_section_statement () after calling
4813 lang_enter_output_section_statement ().
4814 * emultempl/armelf.em: Likewise.
4816 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4818 * emultempl/elf32.em (struct orphan_save): Add section field.
4819 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4820 better order, and place first orphan section as we did before the
4821 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4822 Don't call make_bfd_section here, let wild_doit do the job for us.
4823 Don't build a statement list when we'll only throw it away.
4824 * emultempl/armelf.em: Ditto.
4825 * emultempl/pe.em: Similarly.
4827 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4829 * scripttempl/elfppc.sc: Remove.
4830 * emulparams/elf32ppc.sh: Use elf.sc.
4831 * emulparams/elf32lppc.sh: Use elf.sc.
4832 * emulparams/elf32ppclinux.sh: Use elf.sc.
4833 * emulparams/elf32ppcsim.sh: New file.
4834 * emulparams/elf32lppcsim.sh: New file.
4835 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4836 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4837 * Makefile.in: Regenerate.
4838 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4840 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4842 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4843 ~SEC_ALLOC sections too. Init start address of debug sections.
4844 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4845 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4846 Also set all relocateable section start addresses.
4848 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4850 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4851 Add new BSS_PLT variable for when .plt need not be contained in
4852 the file. Move _etext so that it is also after .fini, and provide
4853 both etext and _etext with a leading underscore. Mark the start
4856 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4858 * emultempl/elf32.em (struct orphan_save): New.
4859 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4860 hold_interp): Make them struct orphan_save.
4861 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4862 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4863 the end of the relevant section list. Also add associated section
4864 statements to the end of any previous orphan statements.
4865 * emultempl/armelf.em: Similarly.
4866 * emultempl/pe.em: Similarly.
4868 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4870 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4872 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4874 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4875 --enable-build-warnings option.
4876 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4877 * Makefile.in, configure: Re-generate.
4879 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4881 * po/ld.pot: Regenerate.
4883 * lexsup.c (help): Restore translated part of bug string.
4885 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4886 (DEP): Quote when passing vars to sub-make. Add warning message
4888 (DEP1): Rewrite for "gcc -MM".
4889 (CLEANFILES): Add DEP2.
4890 Update dependencies.
4891 * Makefile.in: Regenerate.
4893 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4895 * ld.h: #include "bin-bugs.h"
4896 * lexsup.c (help): Use REPORT_BUGS_TO.
4898 2000-03-27 Denis Chertykov <denisc@overta.ru>
4900 * configure.tgt (avr-*-*): New target support.
4901 * Makefile.am: Likewise.
4902 * scripttempl/elf32avr.sc: New script file.
4903 * emulparams/avr1200.sh: New file.
4904 * emulparams/avr23xx.sh: New file.
4905 * emulparams/avr4433.sh New file.
4906 * emulparams/avr44x4.sh New file.
4907 * emulparams/avr85xx.sh New file.
4908 * emulparams/avrmega103.sh New file.
4909 * emulparams/avrmega161.sh New file.
4910 * emulparams/avrmega603.sh New file.
4911 * Makefile.in: Regenerate.
4913 2000-03-09 Andreas Jaeger <aj@suse.de>
4915 * Makefile.am (check-DEJAGNU): Also unset LANG.
4916 * Makefile.in: Rebuild.
4918 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4920 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4923 2000-03-02 H.J. Lu <hjl@gnu.org>
4925 * emulparams/elf32mcore.sh: Include "getopt.h".
4927 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4929 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4931 2000-03-01 H.J. Lu <hjl@gnu.org>
4933 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4934 * emulparams/shpe.sh: Likewise.
4936 2000-03-01 Nick Clifton <nickc@cygnus.com>
4938 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4939 to unused parameters.
4941 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4942 functions only used by DLL code.
4943 (_place_orphan): Initialise 'dollar'.
4945 2000-03-01 H.J. Lu <hjl@gnu.org>
4947 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4948 indicate if the undefined symbol is a fatal error or not.
4949 Don't delete the output file if "fatal" is false.
4951 2000-02-29 H.J. Lu <hjl@gnu.org>
4953 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4954 Set LC_COLLATE and LC_ALL to null and export them. It is for
4955 sort which expects the C locale.
4956 Add $(LIBS) to all $(HOSTING_LIBS).
4957 * Makefile.in: Rebuild.
4959 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4961 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4962 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4963 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4964 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4965 find_potential_libraries.
4967 2000-02-28 Jim Blandy <jimb@redhat.com>
4969 * ldgram.y (exclude_name_list): Don't require a comma to separate
4970 list entries; the lexer considers commas to be valid part of a
4971 filename, so in something like `foo, bar' the comma is considered
4972 part of the first filename, `foo,'.
4973 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4975 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4977 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4978 host "i[3456]86-*-freebsdelf*".
4980 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4982 * scripttempl/i386go32.sc: Move misplaced semicolons.
4984 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4986 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4987 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4988 (eelf64hppa.c, ehppaelf.c): Remove targets.
4989 * Makefile.in: Rebuild.
4991 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4993 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4994 GNU/Linux/sparc, but keep the default as 32.
4996 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4997 it default if sparcv9 or sparc64.
4999 2000-02-24 Nick Clifton <nickc@cygnus.com>
5001 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5002 * Makefile.in: Regenerate.
5003 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5005 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5006 find_potential_libraries.
5007 * ldemul.c (ldemul_find_potential_libraries): New function.
5009 * ldfile.c (ldfile_open_file_search): Allow function to be
5011 (ldfile_open_file): Call ldemul_find_potential_libraries.
5012 * ldfile.h: Add prototype for ldfile_open_file_search.
5014 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5016 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5017 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5019 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5020 (gld_X_find_potential_libraries): New function. Search for
5021 libraries called "*.lib".
5023 * scripttempl/pe.sc: Add .pdata section.
5025 2000-02-23 Richard Henderson <rth@cygnus.com>
5027 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5028 Add and use memory regions.
5030 2000-02-23 Linas Vepstas (linas@linas.org)
5032 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5034 * Makefile.am: Add support for Linux/IBM 370.
5035 * configure.tgt: Likewise.
5037 * Makefile.in: Regenerate.
5039 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5041 * ldlang.c (print_input_section, print_data_statement,
5042 print_reloc_statement, print_padding_statement, insert_pad,
5043 size_input_section, lang_check_section_addresses,
5044 lang_size_sections, lang_do_assignments, lang_set_startof,
5045 lang_one_common): Change `opb' to unsigned.
5046 (lang_do_assignments): Also change `size' to unsigned.
5048 2000-02-16 Richard Henderson <rth@cygnus.com>
5050 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5052 2000-02-16 Timothy Wall <twall@cygnus.com>
5054 * mri.c (mri_draw_tree): Add default LMA region argument to call
5055 to lang_leave_output_section_statement.
5056 * ldlang.h: Update prototypes with LMA region arguments.
5057 * ldlang.c (lang_size_sections): Encapsulate region bounds
5058 checking in os_check_region call.
5059 (os_check_region): New function.
5060 (lang_output_section_statement_lookup): Initialize lma_region.
5061 (lang_leave_output_section_statement): Add LMA region argument.
5062 (lang_leave_overlay): Ditto.
5063 * ldgram.y: Handle LMA region syntax.
5064 * ld.texinfo (Output Section Description): Describe LMA region usage.
5065 * emultempl/armelf.em (gld$place_orphan): Add default value for
5066 lma region in call to lang_leave_output_section_statement.
5067 * emultempl/elf32.em (gld$place_orphan): Add default value for
5068 lma region in call to lang_leave_output_section_statement.
5069 * emultempl/pe.em (gld$place_orphan): Add default value for
5070 lma region in call to lang_leave_output_section_statement.
5073 2000-02-04 Timothy Wall <twall@redhat.com>
5075 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5076 octets when calculating section end addresses.
5078 2000-02-04 Timothy Wall <twall@redhat.com>
5080 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5082 2000-02-03 Timothy Wall <twall@redhat.com>
5084 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5086 * ldlang.c (print_input_section, print_data_statement,
5087 print_reloc_statement, print_padding_statement): Print target
5088 address values and section sizes as bytes, not octets.
5089 (insert_pad) Calculate padding size in octets, and adjust "dot"
5091 (size_input_section) Always adjust "dot" by bytes, not octets.
5092 (lang_check_section_addresses, lang_do_assignments) Adjust
5093 "dot" by bytes, not octets. Use the larger of the directive size
5094 or octets_per_byte for the number of octets actually allocated in
5096 (lang_set_startof) Make sure STARTOF returns a target address.
5097 (lang_one_common) Record size changes in octets.
5098 (lang_abs_symbol_at_end_of) Section end symbol's value is
5099 recorded in target bytes.
5100 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5101 to be clear about behavior when an octet is smaller than one byte.
5103 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5105 * ldcref.c (output_cref): Don't pass message strings to printf
5109 * ldmisc.c (vfinfo): Same here.
5112 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5114 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5115 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5116 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5117 Add missing NULL initialisers, and comments.
5119 2000-01-21 Nick Clifton <nickc@cygnus.com>
5121 * ldlang.c (lang_size_sections): Fix typo in comment.
5123 2000-01-18 H.J. Lu <hjl@gnu.org>
5125 * ldlang.c (lang_size_sections): Also update the current
5126 address of a region if the SEC_NEVER_LOAD bit is not set.
5128 2000-01-10 Philip Blundell <pb@futuretv.com>
5130 * configure.tgt (arm*-*-conix*): New target.
5132 2000-01-07 Nick Clifton <nickc@cygnus.com>
5134 * ld.texinfo (Options): Remind users to preceed linker command
5135 line switches with -Wl, (or whatever is appropriate) if it is
5136 being invoked by a comnpiler driver program.
5137 Fix description of the behaviour of the -n command line switch.
5139 2000-01-05 Catherine Moore <clm@cygnus.com>
5141 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5143 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5144 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5145 (exclude_name_list): New.
5146 ldlang.c (walk_wild_section): Support list of excluded files.
5147 (print_wild_statement): Likewise.
5148 (lang_add_wild): Likewise.
5149 * ldlang.h (lang_wild_statement_type): Likewise.
5150 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5152 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5154 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5155 (process_def_file): Use.
5156 (pe_dll_compat_implib): New variable.
5159 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5160 pe_dll_compat_implib.
5162 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5163 compat-implib options.
5164 (gld_${EMULATION_NAME}_list_options): List new options.
5165 (gld_${EMULATION_NAME}_parse_args): Handle.
5167 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5170 * deffilep.y (opt_name): Allow "." in name.
5172 For older changes see ChangeLog-9899
5178 version-control: never