1 2002-12-08 Alan Modra <amodra@bigpond.net.au>
3 * ldlang.h: Formatting.
5 2002-12-07 Alan Modra <amodra@bigpond.net.au>
7 * ldlang.c (init_os): Ensure sections mentioned in load_base
10 2002-12-05 Alan Modra <amodra@bigpond.net.au>
12 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
13 load_base for orphans that follow a section with load_base set.
15 2002-12-01 H.J. Lu <hjl@gnu.org>
17 * ld.texinfo: Remove the extra `;' in sample version script.
19 2002-11-30 Alan Modra <amodra@bigpond.net.au>
21 * configure.host: Correct dynamic-linker for powerpc64 hosts.
23 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
24 * Makefile.in: Regenerate.
26 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
27 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
28 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
29 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
30 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
31 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
32 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
33 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
34 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
35 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
36 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
37 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
38 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
40 2002-11-27 David O'Brien <obrien@FreeBSD.org>
42 * configure.host: Fix generic FreeBSD configuration entry.
44 2002-11-27 H.J. Lu <hjl@gnu.org>
46 * ld.texinfo: Add the missing `;' to sample version scripts.
48 2002-11-20 Alan Modra <amodra@bigpond.net.au>
50 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
52 2002-11-14 Egor Duda <deo@logos-m.ru>
54 * ldmain.c (main): Make runtime relocs disabled by default. Remove
55 assignment which has no effect.
56 * pe-dll.h (pe_create_import_fixup): Change prototype.
57 * pe-dll.c (make_runtime_pseudo_reloc): New function.
58 (pe_create_runtime_relocator_reference): Ditto.
59 (pe_create_import_fixup): Handle relocations with non-zero addends.
60 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
61 --disable-runtime-pseudo-reloc.
62 (make_import_fixup): Handle relocations with non-zero addends. Create
63 an external reference to _pei386_runtime_relocator symbol if at least
64 one pseudo reloc was created.
65 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
66 --disable-runtime-pseudo-reloc options.
68 2002-11-12 Earl Chew <earl_chew@agilent.com>
70 * ldlang.c (lang_add_section): Discard debugging sections that have
71 been marked SEC_EXCLUDE.
73 2002-11-12 Nick Clifton <nickc@redhat.com>
75 * configure.in (ALL_LINGUAS): Add da.
76 * configure: Regenerate.
77 * po/da.po: New Danish translation.
79 2002-11-12 Alan Modra <amodra@bigpond.net.au>
81 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
82 (LDEMUL_BEFORE_ALLOCATION): Define.
83 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
85 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
87 2002-11-11 Christopher Faylor <cgf@redhat.com>
89 * configure.tgt (LIB_PATH): Default to searching w32api directory under
92 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
94 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
95 of restricted auto-export libs.
97 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
99 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
100 creative library naming instances like, e.g., libstdc++-2.a.
102 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
104 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
105 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
107 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
109 * deffilep.y (def_lex): Handle '@' as first character of an ID.
110 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
111 (make_one): Don't prefix decorated fastcall symbols with '_'.
112 (pe_process_import_defs): Likewise.
113 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
114 symbols to cdecl names or vise-versa.
116 2002-10-13 Eric Kohl <ekohl@rz-online.de>
118 * pe-dll.c (process_def_file): Handle fastcall symbols when
119 generating undecorated aliases. Don't prefix decorated fastcall
121 (fill_exported_offsets): Don't prefix decorated fastcall symbols
124 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
126 * emultempl/aix.em: Use include <> for generated headers.
127 * emultempl/beos.em: Likewise.
128 * emultempl/elf32.em: Likewise.
129 * emultempl/pe.em: Likewise.
130 * ldctor.c: Likewise.
132 * ldfile.c: Likewise.
133 * ldlang.c: Likewise.
136 * ldmain.c: Likewise.
137 * ldmisc.c: Likewise.
138 * ldwrite.c: Likewise.
139 * lexsup.c: Likewise.
141 * pe-dll.c: Likewise.
143 2002-10-23 Jakub Jelinek <jakub@redhat.com>
145 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
146 sections into .rel{,a}.dyn.
148 2002-10-23 Nick Clifton <nickc@redhat.com>
150 * lexsup.c (OPTION_NO_OMAGIC): Define.
151 (ld_options): Add "no-omagic" option.
152 (parse_args): Parse --no-omagic.
153 * ld.texinfo: Document --no-omagic.
154 * NEWS: Mention new option.
156 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
158 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
159 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
161 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
163 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
164 emulation name. Set LIB_PATH only for native tools, and
165 search the ABI-specific versions of NATIVE_LIB_DIRS before the
166 .../lib variants, not instead of them. Mostly copied from...
167 * emulparams/elf32ppc.sh: ... here. Fixed typo.
168 * emulparams/elf64bmip-defs.sh: Backed out.
169 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
170 * emulparams/elf64btsmip.sh: Likewise.
171 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
172 TEXT_DYNAMIC): Removed.
174 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
176 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
177 (GENERATE_SHLIB_SCRIPT): Set to yes.
178 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
179 * emulparams/elf32bmipn32.sh: here.
180 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
181 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
182 * emulparams/elf64bmip-defs.sh: New file. Extend
183 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
184 * emulparams/elf64bmip.sh: Bring in definitions from
186 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
188 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
189 * emulparams/elf64btsmip.sh: Bring in definitions from
191 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
192 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
194 2002-10-16 Jakub Jelinek <jakub@redhat.com>
196 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
197 (s390-*-linux*): Add elf64_s390 emulation if want64.
198 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
199 genscript.sh changes.
200 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
201 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
203 2002-10-15 Alan Modra <amodra@bigpond.net.au>
205 * ldlang.c (load_symbols): Revert last change.
207 2002-10-14 Alan Modra <amodra@bigpond.net.au>
209 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
211 (lang_reasonable_defaults): Don't compare against false.
212 (size_input_section): Likewise.
213 (lang_size_sections_1): Likewise.
214 (lang_do_assignments): Likewise.
215 (lang_add_output): Likewise.
217 * Makefile.am: Run "make dep-am".
218 * Makefile.in: Regenerate.
219 * ldver.c: #include "bfdver.h".
221 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
223 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
225 * scripttempl/elfm68hc12.sc: Likewise.
227 2002-10-11 Alan Modra <amodra@bigpond.net.au>
229 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
231 * ldgram.y (memory_spec): Provide empty action.
232 (section <NAME>): Likewise.
234 2002-10-10 Jakub Jelinek <jakub@redhat.com>
236 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
237 they have OUTPUT_FORMAT not matching actual output format.
238 * ldlang.c (lang_get_output_target): New function.
239 (open_output): Use it.
240 * ldlang.h (lang_get_output_target): New prototype.
242 2002-10-10 Alan Modra <amodra@bigpond.net.au>
244 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
245 when orphan is .rel, .rela when orphan is .rela.
246 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
247 first. Remove outsecname var.
249 2002-10-09 Richard Shann <richard.shann@superh.com>
250 Stephen Clarke <stephen.clarke@superh.com>
252 * Makefile.am: Add eshelf32_linux.o and
253 eshlelf32_linux.o, new emulations for sh64 Linux.
254 * Makefile.in: Regenerate.
255 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
256 * emulparams/shelf32_linux.sh: New file.
257 * emulparams/shlelf32_linux.sh: New file.
259 2002-10-08 H.J. Lu <hjl@gnu.org>
261 * ldlang.c (lang_file_exist): Removed.
262 (new_afile): Revert the last change.
263 * ldlang.h (lang_file_exist): Removed.
264 * lexsup.c (parse_args): Revert the last change.
266 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
268 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
270 (make_one): Create _nm_<symbol> for data only.
272 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
274 * ldlang.c (lang_file_exist): New function.
275 (new_afile): Abort if the filename to be added matches the linker
277 * ldlang.h: Add prototype for lang_file_exist.
278 * lexsup.c (parse_args): Abort if the output filename matches
279 one of the input filenames.
281 2002-10-02 Alan Modra <amodra@bigpond.net.au>
283 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
285 2002-09-30 Alan Modra <amodra@bigpond.net.au>
287 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
288 * scripttempl/elfm68hc11.sc: Likewise.
289 * scripttempl/elfm68hc12.sc: Likewise.
291 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
292 reloc sections just before .rel.plt/.rela.plt.
293 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
294 Only put loadable reloc sections in hold_rel.
296 2002-09-29 H.J. Lu <hjl@gnu.org>
298 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
300 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
302 From "Anita Kulkarni" <AnitaK@kpit.com>
303 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
306 2002-09-25 Alan Modra <amodra@bigpond.net.au>
308 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
310 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
311 SEGMENT_SIZE alignment.
312 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
313 (SEGMENT_SIZE): Define.
315 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
316 (fold_binary): Correct abs - non-abs case.
317 (fold_trinary): New. Split out from exp_fold_tree.
319 2002-09-24 Alan Modra <amodra@bigpond.net.au>
321 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
322 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
323 for start of .data, instead align up to 256M boundary.
324 * scripttempl/aix.sc: Likewise.
326 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
328 * scripttempl/i386go32.sc: Handle bss unique sections.
330 2002-09-21 Alan Modra <amodra@bigpond.net.au>
332 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
334 2002-09-17 Stan Cox <scox@redhat.com>
336 * emulparams/elf32bmipn32-defs.sh: New file.
337 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
338 * emulparams/elf32btsmipn32.sh: Likewise.
339 * emulparams/elf64bmip.sh: Likewise.
340 * emulparams/elf64btsmip.sh: Likewise.
342 2002-09-16 Bruno Haible <bruno@clisp.org>
344 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
346 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
349 2002-09-11 Nick Clifton <nickc@redhat.com>
351 * NEWS: New TI port supports both C4x and C3x series of DSPs.
353 * po/tr.po: Updated Turkish translation.
355 2002-09-06 Jeffrey A Law (law@redhat.com)
357 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
359 2002-09-02 Nick Clifton <nickc@redhat.com>
361 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
363 * emulparams/v850.sh (TEMPLATE_NAME): Define.
365 2002-08-30 Nick Clifton <nickc@redhat.com>
367 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
368 used. Change INSN to start at 0x01000000 and extend for
369 256K (ignoring holes). Start the STACK on a word aligned
371 (.rodata): Start it at the READONLY_START_ADDR.
373 2002-08-30 Alan Modra <amodra@bigpond.net.au>
375 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
377 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
379 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
380 added makefile targets for this file.
381 * Makefile.in: Regenerate.
382 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
383 * NEWS: Mention new port.
385 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
387 * emulparams/tic3xcoff.sh: New file.
388 * emulparams/tic4xcoff.sh: New file.
389 * scripttempl/tic3xcoff.sc: New file.
390 * scripttempl/tic4xcoff.sc: New file.
392 2002-08-28 Alan Modra <amodra@bigpond.net.au>
394 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
395 strtoul and strtoull with bfd_scan_vma.
396 (gld${EMULATION_NAME}_read_file): Likewise.
398 2002-08-28 Alan Modra <amodra@bigpond.net.au>
400 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
402 2002-08-27 Egor Duda <deo@logos-m.ru>
404 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
405 Add symbols for application to access them.
407 2002-08-27 Nick Clifton <nickc@redhat.com>
409 * emultempl/armelf.em: Revert this patch, it is not needed.
411 2002-08-22 Adam Nemet <anemet@lnxw.com>
413 2002-08-20 Dan Kegel <dank@kegel.com>
415 * configure.in: added --with-lib-path argument to ld's configure
417 * ld/NEWS: Document new switch.
418 * ld/README: Mention new switch.
419 * configure: Regenerate.
420 * Makefile.in: Regenerate.
423 2001-04-25 Christopher Faylor <cgf@cygnus.com>
425 * Makefile.in (LIB_PATH): Make configurable.
426 (GENSCRIPTS): Set LIB_PATH in environment.
427 * configure.in: Substitute LIB_PATH.
429 2002-08-22 Adam Nemet <anemet@lnxw.com>
431 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
432 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
433 depending on the type of the function.
434 (arm_elf_convert_thumb_symbol_to_address): New function.
436 2002-08-22 Graeme Peterson <gp@qnx.com>
438 * Makefile.am: Add esh{l}elf_nto.o files.
439 * Makefile.in: Regenerate.
440 * configure.tgt: Add support for sh-**-nto* targets.
441 * emulparams/shelf_nto.sh: New file.
442 * emulparams/shlelf_nto.sh: New file.
444 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
446 * ldlang.c (offsetof): Define if not defined.
448 2002-08-14 H.J. Lu <hjl@gnu.org>
450 * configure.tgt: Always enable 64bit emulations for 32bit
453 2002-08-13 Alan Modra <amodra@bigpond.net.au>
455 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
456 (MAXPAGESIZE): Set to 1.
458 * ld.h (ALIGN_N): Delete.
459 * ldexp.h (align_n): Declare.
460 * ldexp.c (align_n): New function.
461 (fold_binary): Use align_n instead of ALIGN_N.
462 (exp_fold_tree): Likewise.
463 * ldlang.c (lang_size_sections_1): Likewise.
464 (lang_one_common): Likewise.
465 * ld.texinfo (ALIGN): Remove power of 2 restriction.
467 2002-07-31 Graeme Peterson <gp@qnx.com>
469 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
470 * Makefile.am: Add eelf32{l}ppcnto.o files.
471 * Makefile.in: Regenerate.
472 * emulparams/elf32lppcnto.sh: New file.
473 * emulparams/elf32ppcnto.sh: New file.
475 2002-08-07 H.J. Lu <hjl@gnu.org>
477 * ld.texinfo: Document --no-undefined-version.
479 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
480 `script.' fields to 0.
482 * ldmain.c (main): Initialize the allow_undefined_version to
485 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
486 (ld_options): Add --no-undefined-version.
487 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
489 2002-08-07 Nick Clifton <nickc@redhat.com>
491 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
492 an interworking bfd if there are input bfds. (107501)
494 2002-08-06 Alan Modra <amodra@bigpond.net.au>
496 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
499 2002-08-01 Nick Clifton <nickc@redhat.com>
501 * emulparams/armelf.sh: Revert previous delta.
502 * scripttempl/elf.sc: Revert previous delta.
504 2002-07-31 H.J. Lu <hjl@gnu.org>
506 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
509 2002-07-31 H.J. Lu <hjl@gnu.org>
511 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
512 64bit BFD is selected.
514 2002-07-31 H.J. Lu <hjl@gnu.org>
516 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
517 if 64bit BFD is selected.
519 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
521 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
522 link_info.common_skip_ar_aymbols.
523 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
525 * ldmain.c (main): Initialize new field
526 link_info.common_skip_ar_aymbols.
528 2002-07-31 Adam Nemet <anemet@lnxw.com>
530 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
532 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
535 2002-07-31 Nick Clifton <nickc@redhat.com>
537 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
538 of the PDP-11 and 2.11BSD a.out support.
540 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
542 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
544 * Makefile.in: Regenerate.
545 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
546 n32 ABI emulations for these 64 bit targets.
547 * emulparams/elf32bmipn32.sh: Expand comment.
548 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
550 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
552 2002-07-30 Graeme Peterson <gp@qnx.com>
554 * configure.tgt: Add support for arm-*-nto target.
555 * Makefile.am: Add earmnto.o file.
556 * Makefile.in: Regenerate.
557 * NEWS: Mention port of ARM support to QNX.
558 * emulparams/armnto.sh: New file.
560 2002-07-30 Jakub Jelinek <jakub@redhat.com>
562 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
563 for relocatable link.
564 (lang_size_sections_1): Don't make .tbss zero size for relocatable
567 2002-07-26 Bernd Schmidt <bernds@redhat.com>
569 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
572 2002-07-25 Nick Clifton <nickc@redhat.com>
574 * po/sv.po: Updated Swedish translation.
575 * po/es.po: Updated Spanish translation.
576 * po/fr.po: Updated French translation.
578 2002-07-24 Nick Clifton <nickc@redhat.com>
580 * po/sv.po: Updated Swedish translation.
581 * po/es.po: Updated Spanish translation.
583 2002-07-23 Nick Clifton <nickc@redhat.com>
585 * po/fr.po: Updated French translation.
587 2002-07-20 Alan Modra <amodra@bigpond.net.au>
589 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
590 bomb on /DISCARD/ input section.
591 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
592 * emultempl/mmo.em (mmo_place_orphan): Likewise.
594 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
596 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
599 2002-07-16 Denis Chertykov <denisc@overta.ru>
600 Nick Clifton <nickc@redhat.com>
601 Frank Ch. Eigler <fche@redhat.com>
602 John Healy <jhealy@redhat.com>
604 * configure.tgt: Add support for ip2k-elf.
605 * Makefile.am: Add support for ip2k-elf.
606 * Makefile.in: Regenerate.
607 * emulparams/elf32ip2k.sh: New file.
608 * scripttempl/ip2k.sc: New file
609 * NEWS: Mention support for new port.
611 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
613 * NEWS: Add 'Changes in 2.13'.
615 2002-07-14 H.J. Lu <hjl@gnu.org>
617 * ld.texinfo: Document a .symver takes precedence over a
620 2002-07-12 Alan Modra <amodra@bigpond.net.au>
622 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
623 (COMMONPAGESIZE): Define.
625 2002-07-09 Alan Modra <amodra@bigpond.net.au>
627 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
629 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
631 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
632 powerpc-*-openbsd* and sparc64-*-openbsd*.
633 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
634 * Makefile.in: Regenerate.
635 * emulparams/hppaobsd.sh: New file.
637 2002-07-05 Alan Modra <amodra@bigpond.net.au>
639 * ldlang.c (print_wild_statement): Fix output formatting.
641 2002-07-04 Alan Modra <amodra@bigpond.net.au>
643 * ldlang.c: (strip_excluded_output_sections): New function.
644 (lang_process): Call it.
645 (lang_size_sections_1): Revert 2002-06-10 change.
647 2002-07-03 Alan Modra <amodra@bigpond.net.au>
649 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
651 * Makefile.in: Regenerate.
653 2002-07-02 Alan Modra <amodra@bigpond.net.au>
655 * ldfile.c (ldfile_try_open_bfd): Formatting.
657 * ldmisc.c (demangle): Move so that it doesn't intrude between
658 vfinfo comment and body. Add comment.
660 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
662 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
664 2002-07-01 Alan Modra <amodra@bigpond.net.au>
666 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
667 * ldlang.c (entry_sym): Likewise.
668 (ldlang_undef_chain_list_type): Likewise.
669 (lang_finish): Adjust references to entry_symbol.
670 (lang_add_entry): Likewise.
671 (lang_gc_sections): Use link_info.gc_sym_list.
672 (lang_process): Set link_info.gc_sym_list.
673 * ldlex.l: Include bfdlink.h.
674 * ldmain.c (main): Init link_info.gc_sym_list.
675 * emultempl/aix.em: Adjust references to entry_symbol.
676 * emultempl/armcoff.em: Likewise.
677 * emultempl/armelf.em: Likewise.
678 * emultempl/pe.em: Likewise.
679 * emultempl/ppc64elf.em (ppc_after_open): New function.
680 (LDEMUL_AFTER_OPEN): Define.
681 * emulparams/elf64ppc.sh: KEEP .opd sections.
683 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
685 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
686 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
687 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
688 (EEPROM_START_ADDR): Define.
689 (EEPROM_MEMORY): Define.
690 * emulparams/m68hc12elf.sh: Likewise.
691 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
692 section to put soft registers in .page0.
693 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
695 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
697 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
698 section. Add ${RELOCATING-0}.
700 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
702 * emulparams/shelf.sh (STACK_ADDR): Don't define.
703 (OTHER_SECTIONS): Define.
704 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
705 (OTHER_SECTIONS): Undef.
707 2002-06-26 Alan Modra <amodra@bigpond.net.au>
709 * ldmisc.c (demangle): Restore dots stripped from sym name.
711 2002-06-25 H.J. Lu <hjl@gnu.org>
713 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
714 * Makefile.in: Regenerated.
716 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
718 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
719 the size of attached object files, to allow make the object files
720 available via FTP or HTTP and to mention that the mail will be
721 sent to a mailing list.
723 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
725 * ld/configure.host (romp): Drop support.
727 2002-06-18 Chris Demetriou <cgd@broadcom.com>
729 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
730 section flags for SEC_DATA, rather than for SEC_CODE being unset.
732 2002-06-18 Chris Demetriou <cgd@broadcom.com>
734 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
735 format specifier used to print BFD name.
737 2002-06-18 Dave Brolley <brolley@redhat.com>
739 From Catherine Moore, Michael Meissner, Jim Blandy:
740 * emulparams/elf32frv.sh: New file.
741 * configure.tgt: Support frv-*-*.
742 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
743 (eelf32frv.c): New target.
745 2002-06-17 Tom Rix <trix@redhat.com>
747 * emultempl/elf32.em: gld*_get_script: Check for
748 GENERATE_COMBRELOC_SCRIPT.
749 * scripttempl/elfd10v.sc : Fix STACK and INSN.
750 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
752 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
754 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
756 2002-06-12 H.J. Lu <hjl@gnu.org>
758 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
759 false if xvec doesn't match.
761 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
763 * ldlang.c (lang_size_sections_1): Skip removed output sections.
765 2002-06-08 Alan Modra <amodra@bigpond.net.au>
767 * ldexp.c: Replace CONST with const.
768 * ldfile.c: Likewise.
769 * ldfile.h: Likewise.
772 * pe-dll.h: Likewise.
774 2002-06-07 Alan Modra <amodra@bigpond.net.au>
776 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
778 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
780 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
781 to -1 == implicit enable.
782 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
783 initialize link_info.pei386_auto_import to -1 == implicit
785 (gld_${EMULATION_NAME}_parse_args): When processing
786 --enable-auto-import and --disable-auto-import options, use
787 '1' and '0' instead of 'true' and 'false'.
788 (pe_find_data_imports): Only issue message about auto-import
789 when the feature is implicitly enabled. Downgrade message to
790 informational instead of warning.
792 2002-06-07 Alan Modra <amodra@bigpond.net.au>
794 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
796 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
798 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
799 HOSTING_CRT0 and HOSTING_LIBS.
801 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
803 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
805 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
807 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
808 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
810 2002-06-05 Alan Modra <amodra@bigpond.net.au>
812 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
813 SEC_EXCLUDE sections when doing a relocatable link.
815 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
817 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
818 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
819 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
820 (eshlelf64_nbsd.c): New rules.
821 * Makefile.in: Regenerate.
822 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
823 (sh64-*-netbsd*): New targets.
824 * emulparams/shelf32_nbsd.sh: New file.
825 * emulparams/shelf64_nbsd.sh: New file.
826 * emulparams/shlelf32_nbsd.sh: New file.
827 * emulparams/shlelf64_nbsd.sh: New file.
829 2002-06-04 Alan Modra <amodra@bigpond.net.au>
831 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
833 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
835 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
836 C++ constructors/destructors, loosely based on the m68hc11 port.
838 2002-05-31 Alan Modra <amodra@bigpond.net.au>
840 * Makefile.in: Regenerate.
841 * aclocal.m4: Regenerate.
842 * config.in: Regenerate.
843 * configure: Regenerate.
845 2002-05-31 Graeme Peterson <gp@qnx.com>
847 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
848 (ei386nto.c): Add rule.
849 * Makefile.in: Regenerate.
850 * configure.tgt: Add i[3456]86-*-nto-qnx*.
851 * emulparams/i386nto.sh: New file.
853 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
855 * NEWS: Add entry for VAX ELF support.
857 2002-05-29 Matt Thomas <matt@3am-software.com>
858 Jason Thorpe <thorpej@wasabisystems.com>
860 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
862 (evaxnbsd.c): New rules.
863 * Makefile.in: Regenerate.
864 * configure.tgt (vax-*-netbsdelf*)
866 (vax-*-netbsd*): New targets.
867 * emulparams/elf32vax.sh: New file.
868 * emulparams/vaxnbsd.sh: New file.
870 2002-05-29 Adam Nemet <anemet@lnxw.com>
872 * emultempl/armelf.em (arm_elf_after_open): Don't determine
873 bfd_for_interwork, instead add glue sections to each input bfd.
874 (bfd_for_interwork): New global.
875 (arm_elf_set_bfd_for_interworking): New function.
876 (arm_elf_before_allocation): Use it.
878 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
880 * Makefile.am: Add DLX make target.
881 * configure.tgt: Add DLX configuration.
882 * Makefile.in: Regenerate.
883 * emulparams/elf32_dlx.sh: New file
884 * scripttempl/dlx.sc: New file
886 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
888 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
889 * Makefile.in: Regenerate.
890 * emulparams/elf_chaos.sh: Use elf_chaos script.
891 * scripttempl/elf_chaos.sc: New file.
893 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
895 * ldlang.c (lang_size_sections_1): Move check for conflicting load
896 addresses and regions from here...
897 (lang_get_regions): ...to this new function.
898 (lang_leave_output_section_statement): Use lang_get_regions.
899 (lang_leave_overlay): Likewise.
900 * mri.c (mri_draw_tree): Pass null as last argument to
901 lang_leave_output_section_statement.
902 * emultempl/elf32.em (gld*_place_orphan): Likewise.
903 * emultempl/mmo.em (mmo_place_orphan): Likewise.
904 * emultempl/pe.em (gld*_place_orphan): Likewise.
906 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
908 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
910 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
912 * ldemul.c: Fix formatting.
913 * ldfile.c: Likewise.
914 * pe-dll.c: Likewise.
915 * pe-dll.h: Likewise.
917 2002-05-25 Alan Modra <amodra@bigpond.net.au>
919 * ldlang.c (lang_process): Formatting, grammar.
921 * ldlex.l: Use #include "" instead of <> for local header files.
923 2002-05-24 TAMURA Kent <kent@netbsd.org>
925 * configure.tgt: Add a target for i386-netbsdpe.
927 2002-05-23 Jakub Jelinek <jakub@redhat.com>
929 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
930 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
931 output section if necessary. Handle .tbss.
932 (lang_size_sections): Clear _raw_size for .tbss section
933 (it allocates space in PT_TLS segment only).
934 * ldwrite.c (build_link_order): Build link order for .tbss too.
936 2002-05-23 Alan Modra <amodra@bigpond.net.au>
938 * configure.in: Correct spelling of AC_PREREQ.
940 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
942 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
944 (autofilter_objlist): Add crtbegin.o, crtend.o.
946 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
948 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
949 (longopts): Add new option --exclude-libs.
950 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
951 (gld_${EMULATION_NAME}_parse_args): Use it.
952 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
953 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
955 (pe_dll_add_excludes): Set excludes->type.
956 (auto_export): Add new variable libname and set to archive basename if
957 abfd. Use it when filtering default and user-specified libarary
958 excludes. Let string "ALL" mean all libs when filtering user-specified
960 * ld.texinfo: Document --exclude-libs.
962 2002-05-22 Alan Modra <amodra@bigpond.net.au>
964 * ldemul.c (ldemul_new_vers_pattern): New function.
965 * ldemul.h (ldemul_new_vers_pattern): Declare.
966 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
967 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
968 * emultempl/ppc64elf.em (dotsyms): New static var.
969 (gld${EMULATION_NAME}_new_vers_pattern): New function.
970 (LDEMUL_NEW_VERS_PATTERN): Define.
971 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
972 (PARSE_AND_LIST_LONGOPTS): Likewise.
973 (PARSE_AND_LIST_ARGS_CASES): Handle them.
974 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
976 * emultempl/armcoff.em: Likewise.
977 * emultempl/armelf_oabi.em: Likewise.
978 * emultempl/beos.em: Likewise.
979 * emultempl/elf32.em: Likewise.
980 * emultempl/generic.em: Likewise.
981 * emultempl/gld960.em: Likewise.
982 * emultempl/gld960c.em: Likewise.
983 * emultempl/linux.em: Likewise.
984 * emultempl/lnk960.em: Likewise.
985 * emultempl/m68kcoff.em: Likewise.
986 * emultempl/mipsecoff.em: Likewise.
987 * emultempl/pe.em: Likewise.
988 * emultempl/sunos.em: Likewise.
989 * emultempl/ticoff.em: Likewise.
990 * emultempl/vanilla.em: Likewise.
992 2002-05-22 Alan Modra <amodra@bigpond.net.au>
994 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
995 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
996 (LIB_SEARCH_DIRS): No need to use "tr".
997 (COMPILE_IN): Only set for native targets.
998 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
999 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1000 * configure.tgt (powerpc*): Set tdir_*.
1001 (powerpcle*): Correct targ_extra_emuls.
1002 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1003 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1005 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1007 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1008 calling lang_add_entry.
1010 2002-05-21 H.J. Lu (hjl@gnu.org)
1012 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1014 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1016 * ld.texinfo: Updated for --allow-multiple-definition and
1019 * ldmain.c (main): Initialize the allow_multiple_definition
1022 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1023 (ld_options): Add --allow-multiple-definition.
1024 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1026 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1028 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1029 (earmelfb_nbsd.c): New rule.
1030 * Makefile.in: Regenerate.
1031 * configure.tgt (armeb-*-netbsdelf*): New target.
1032 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1033 (arm-*-netbsd*): Likewise.
1034 * emulparams/armelfb_nbsd.sh: New file.
1036 2002-05-18 Tom Rix <trix@redhat.com>
1038 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1041 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1043 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1044 * Makefile.in: Regenerate.
1045 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1047 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1049 * emulparams/avr1.sh: New file.
1050 * emulparams/avr2.sh: New file.
1051 * emulparams/avr3.sh: New file.
1052 * emulparams/avr4.sh: New file.
1053 * emulparams/avr5.sh: New file.
1054 * scripttempl/avr.sc: New file.
1056 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1058 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1059 (lang_place_orphans): Abort if just_syms_flag.
1061 2002-05-10 Tom Rix <trix@redhat.com>
1063 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1064 architecture and machine information in the output bfd.
1065 (gld*_before_parse): Remove old arch and machine code.
1066 (choose_target): Rename to gld*_choose_target.
1067 (rtld): Change type to int.
1068 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1069 objects in XCOFF archives.
1070 * ldfile.h: Update copyright date.
1072 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1074 * ldmain.c (main): Enable -z combreloc by default.
1076 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1078 * Makefile.am: Honour DESTDIR.
1079 * Makefile.in: Regenerate.
1081 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1083 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1084 (lang_enter_overlay): Remove the last two parameters.
1085 (lang_leave_overlay): Take them here instead.
1086 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1087 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1088 than lang_enter_overlay.
1089 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1090 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1091 (lang_size_sections_1): Evaluate it.
1092 (lang_leave_output_section_statement): Rework LMA lookup.
1093 (overlay_lma, overlay_nocrossrefs): Remove.
1094 (lang_enter_overlay): Remove LMA and crossref arguments.
1095 (lang_enter_overlay_section): Don't set the LMA here.
1096 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1097 assignment to the last section's update_dot_tree. Unconditionally
1098 use the load and run-time regions specified in the OVERLAY statement.
1099 Likewise the first section's LMA. Only set the other sections' LMAs
1100 when no load region is given.
1102 2002-05-06 Nick Clifton <nickc@redhat.com>
1104 * po/sv.po: New translation.
1106 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1108 * emultempl/hppaelf.em (build_section_lists): New function.
1109 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1110 and build_section_lists.
1112 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1114 * ld.h: Fix formatting.
1115 * ldexp.c: Likewise.
1116 * ldfile.c: Likewise.
1117 * ldlang.c: Likewise.
1118 * ldmain.c: Likewise.
1119 * lexsup.c: Likewise.
1120 * pe-dll.c: Likewise.
1122 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1124 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1125 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1126 (build_section_lists): Do output_section tests here.
1128 2002-04-30 Tom Rix <trix@redhat.com>
1130 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1132 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1134 Long branch stubs, multiple stub sections.
1135 * emultempl/ppc64elf.em: Include ldctor.h.
1136 (stub_file): New var.
1137 (group_size): New var.
1138 (ppc_create_output_section_statements): New function.
1139 (struct hook_stub_info): New.
1140 (hook_in_stub): New function.
1141 (ppc_add_stub_section): New function.
1142 (ppc_layout_sections_again): New function.
1143 (build_section_lists): New function.
1144 (gld${EMULATION_NAME}_finish): Rewrite.
1145 (real_func): New var.
1146 (ppc_for_each_input_file_wrapper): New function.
1147 (ppc_lang_for_each_input_file): New function.
1148 (lang_for_each_input_file): Define.
1149 (PARSE_AND_LIST_PROLOGUE): Define.
1150 (PARSE_AND_LIST_LONGOPTS): Define.
1151 (PARSE_AND_LIST_OPTIONS): Define.
1152 (PARSE_AND_LIST_ARGS_CASES): Define.
1153 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1155 2002-04-30 Tom Rix <trix@redhat.com>
1157 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1158 -blibpath, -bnolibpath support.
1160 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1162 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1163 (eelf32ppcwindiss.c): New target.
1164 * Makefile.in: Regenerated.
1165 * configure.tgt: Add support for powerpc-*-windiss.
1166 * emulparams/elf32ppcwindiss.sh: New file.
1168 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1170 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1171 * ldexp.c (exp_print_token): Add "infix_p" argument.
1172 (exp_print_tree): Update accordingly.
1174 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1176 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1177 * Makefile.in: Regenerate.
1178 * mpw-elfmips.c: Delete.
1179 * mpw-eppcmac.c: Delete.
1180 * mpw-esh.c: Delete.
1181 * mpw-idtmips.c: Delete.
1183 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1185 * emulparams/shelf32.sh (MACHINE): Now sh5.
1187 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1189 * ldgram.y: Fix syntax warning.
1191 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1193 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1194 to prevent "-n" from being taken as an abbreviation for
1195 "--no-pipeline-knowledge".
1197 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1199 * ldlang.c (lang_size_sections_1): Don't complain about
1200 SEC_NEVER_LOAD sections having no memory region specified.
1202 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1204 2002-04-07 matthew green <mrg@redhat.com>
1206 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1208 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1210 * dep-in.sed: Cope with absolute paths.
1211 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1213 * Makefile.in: Regenerate.
1215 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1217 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1219 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1221 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1222 is smaller than maximum, round dot up to common page boundary.
1224 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1226 * configure.host: Set up for generic hosts first, then tweak as
1227 necessary in more specific targets.
1228 (HOSTING_LIBS): Include libgcc_eh.a if found.
1230 2002-03-23 Andreas Jaeger <aj@suse.de>
1232 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1234 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1236 * Makefile.am: Run "make dep-am".
1237 * Makefile.in: Regenerate.
1239 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1241 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1243 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1245 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1246 add the symbol to the linker hash table immediately.
1247 (lang_place_undefineds): Split symbol creation out..
1248 (insert_undefined): ..to here.
1250 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1252 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1253 the contents of the buffer returned from basename function will are
1254 getting overwritten while still being used.
1256 2002-03-18 Jan Hubicka <jh@suse.cz>
1257 Andreas Jaeger <aj@suse.de>
1258 Andreas Schwab <schwab@suse.de>
1260 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1261 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1262 set libraries to default to lib64 paths.
1264 2002-03-18 Tom Rix <trix@redhat.com>
1266 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1267 * configure.tgt : Same.
1268 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1269 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1270 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1271 emulation parameters for better -b32, -b64 support.
1272 * emulparms/aixrs6.sh : Same.
1273 * emulparms/ppcmacos.sh : Same.
1274 * emultempl/aix.em (choose_target) : Use new emulation parameters
1275 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1276 * Makefile.in : Regenerate.
1278 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1280 * po/fr.po: Updated version.
1282 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1284 * ldmain.c (main): Move .text readonly flag fudges from here..
1285 * ldlang.c (lang_process): ..to here.
1287 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1289 * ldlang.c (lang_check): Remove the word size check added in last
1290 change. Treat emitrelocations case as for relocatable links.
1292 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1294 * po/fr.po: Updated version.
1296 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1298 * ldlang.c (lang_check): Do relocatable link checks first, so that
1299 warn_mismatch can't override. Check compatible and word size too.
1301 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1303 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1305 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1307 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1310 2002-03-04 H.J. Lu <hjl@gnu.org>
1312 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1313 .fini_array in the data segment.
1315 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1317 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1319 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1321 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1322 .init_array, and .fini_array.
1324 2002-02-20 Andreas Schwab <schwab@suse.de>
1326 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1327 .IA64_unwind* in a relocatable link.
1329 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1331 * NEWS: Mark 2.12 branch.
1333 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1335 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1336 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1338 2002-02-18 Tom Rix <trix@redhat.com>
1340 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1341 (gld*_before_allocation): Same.
1342 (gld*_create_output_section_statements): Generate
1343 __rtinit if run time linking. Add librtl.a to the link.
1344 (gld*_read_file): Clean.
1346 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1348 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1350 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1352 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1353 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1354 and eelf64alpha_fbsd.
1355 * Makefile.in: Regenerate.
1356 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1357 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1358 use a FreeBSD-specific emulation rather than the psABI one.
1359 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1360 for all FreeBSD ELF systems.
1361 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1363 * emulparams/elf32ppc_fbsd.sh: Likewise.
1364 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1365 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1366 * emulparams/elf64alpha_fbsd.sh: Likewise.
1367 * emulparams/elf_i386_fbsd.sh: Likewise.
1368 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1370 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1372 * po/tr.po: Updated version.
1374 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1376 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1379 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1381 * emultempl/mmo.em (mmo_after_open): Don't call
1382 _bfd_mmix_check_all_relocs when producing ELF output.
1384 2002-02-15 Richard Henderson <rth@redhat.com>
1386 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1387 definition. Emit a unop+nop pair.
1389 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1391 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1392 for presence of .MMIX.reg_contents.linker_allocated before early
1395 * NEWS: Mention support for MMIX.
1397 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1399 Support arbitrary length fill patterns.
1400 * ld.texinfo (Output Section Fill): Describe fill expressions.
1401 (FILL): Refer to the above.
1402 * ldexp.h (etree_value_type): Add "str" field.
1403 (union etree_union): Add "str" to "value" struct.
1404 (exp_bigintop): Declare.
1405 (exp_get_fill): Declare.
1406 * ldexp.c: Include "safe-ctype.h".
1407 (exp_intop): Set value.str to NULL.
1408 (exp_bigintop): New function.
1409 (new_rel): Pass in "str", and set new.str from it.
1410 (new_rel_from_section): Set new.str to NULL.
1411 (fold_name): Adjust calls to new_rel.
1412 (exp_fold_tree): Likewise.
1413 (exp_get_fill): New function.
1414 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1415 (INT): Returns a "bigint". Adjust all code handling INTs.
1416 (fill_opt): Returns a "fill".
1417 (fill_exp): Split out of fill_opt, use for FILL.
1418 * ldlang.h (struct _fill_type): New.
1419 (fill_type): Move typedef to ldexp.h.
1420 (lang_output_section_statement_type): "fill" is now a pointer.
1421 (lang_fill_statement_type): Likewise.
1422 (lang_padding_statement_type): Likewise.
1423 (lang_add_fill): Now takes a "fill_type *" param.
1424 (lang_leave_output_section_statement): Likewise.
1425 (lang_do_assignments): Likewise.
1426 (lang_size_sections): Likewise.
1427 (lang_leave_overlay_section): Likewise.
1428 (lang_leave_overlay): Likewise.
1429 * ldlang.c: Include ldgram.h after ldexp.h.
1430 (lang_output_section_statement_lookup): Adjust for fill_type change.
1431 (print_fill_statement): Likewise.
1432 (print_padding_statement): Likewise.
1433 (insert_pad): Now takes a "fill_type *" arg.
1434 (size_input_section): Likewise.
1435 (lang_size_sections_1): Likewise.
1436 (lang_size_sections): Likewise.
1437 (lang_do_assignments): Likewise.
1438 (lang_add_fill): Likewise.
1439 (lang_leave_output_section_statement): Likewise.
1440 (lang_leave_overlay_section): Likewise.
1441 (lang_leave_overlay): Likewise.
1442 Adjust all callers of the above function.
1443 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1444 starting with "0X" as well as "0x". Return bigint.str for hex
1445 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1446 Always use base 16 for numbers starting with "$".
1447 * ldmain.c: Include ldgram.h after ldexp.h.
1448 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1449 of bfd_fill_link_order.
1450 * pe-dll.c: Adjust lang_do_assignments calls.
1451 * emultempl/elf32.em: Likewise.
1452 * emultempl/hppaelf.em: Likewise.
1453 * emultempl/ppc64elf.em: Likewise.
1454 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1455 lang_add_assignment call.
1456 * emultempl/pe.em: Likewise.
1458 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1460 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1461 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1462 the pattern in question is not a regexp.
1463 * ldlang.c: Likewise.
1464 * ldlang.h: Likewise.
1465 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1467 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1469 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1470 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1471 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1472 * ldexp.c (exp_data_seg): New variable.
1473 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1474 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1475 (exp_fold_tree): Handle DATA_SEGMENT_END.
1476 Pass allocation_done when recursing instead of hardcoding
1477 lang_allocating_phase_enum.
1478 * ldexp.h (exp_data_seg): New.
1479 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1480 (lang_size_sections): New.
1481 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1482 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1483 if COMMONPAGESIZE is defined.
1484 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1485 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1486 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1487 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1488 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1491 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1493 * Makefile.in: Regenerate.
1495 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1497 * lexsup.c: Remove strtoul declaration.
1499 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1501 * ldmain.c: Add prototype for main ().
1502 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1503 * emultempl/lnk960.em (lnk960_choose_target): Function should
1506 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1508 * ldlang.c (entry_section): New initialised variable.
1509 (lang_finish): Use it.
1510 * ldlang.h (entry_section): Declare.
1511 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1512 entry_section to ".opd".
1514 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1516 * ld.texinfo (Options): Add back in -nostdlib documentation,
1517 which had been inadvertently removed.
1519 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1521 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1522 register section vma to a sane value after emitting error. Make
1523 fatal conditions cause program exit when emitting message.
1525 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1527 * configure.tgt: Add or32-*-rtems target.
1529 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1531 Contribute sh64-elf.
1532 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1533 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1534 in OTHER_RELOCATABLE_SECTIONS.
1535 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1536 * emulparams/shelf32.sh (STACK_ADDR): Define.
1537 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1538 (OTHER_SECTIONS): this. Removed stack settings.
1539 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1540 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1541 2001-03-12 DJ Delorie <dj@redhat.com>
1542 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1543 relaxing if any shmedia or mixed sections are found.
1544 2001-03-07 DJ Delorie <dj@redhat.com>
1545 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1546 einfo. Gracefully decline to output to non-elf formats.
1547 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1548 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1549 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1550 * emulparams/shelf32.sh: Ditto.
1551 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1552 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1554 2001-01-10 Ben Elliston <bje@redhat.com>
1555 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1556 non-portable shell constructs. From Hans-Peter Nilsson.
1557 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1558 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1559 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1560 dependencies to the shell script include chain.
1561 * Makefile.in: Regenerate.
1562 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1563 * emultempl/sh64elf.em: Update and tweak comments.
1564 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1565 make a .cranges section SEC_IN_MEMORY.
1566 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1567 * emultempl/sh64elf.em
1568 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1569 .cranges section found to be necessary; continue and set stored
1570 section contents flags for sections with non-mixed contents.
1571 Use a struct sh64_section_data container and sh64_elf_section_data
1572 to store contents-type flags.
1573 Remove unused update of "isec".
1574 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1575 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1576 access contents-type flags. Assert that the associated container
1577 is initialized. Use that container, not elf_gp_size, to hold size
1578 of linker-generated cranges contents.
1579 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1580 * emultempl/sh64elf.em
1581 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1582 there's already a .cranges section. When section flag difference
1583 is found, don't NULL-check cranges a second time. Tweak comments.
1584 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1585 merging, not max size, as size of ld-generated .cranges contents.
1586 Don't set ELF section flags in output section. When checking for
1587 needed .cranges descriptors, don't use a variable; compare
1588 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1590 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1591 * emultempl/sh64elf.em: New file.
1592 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1593 * Makefile.in: Regenerate.
1594 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1595 (OTHER_RELOCATING_SECTIONS): Ditto.
1596 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1597 * emulparams/shlelf32.sh: Stub out all settings except
1598 OUTPUT_FORMAT. Source shelf32.sh.
1599 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1600 OTHER_RELOCATING_SECTIONS.
1601 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1602 * emulparams/shlelf64.sh: Stub out all settings except
1603 OUTPUT_FORMAT. Source shelf64.sh.
1604 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1605 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1607 (DATA_START_SYMBOLS): Define, provide ___data.
1608 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1609 for consecutive .data section.
1610 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1611 section after .data section.
1612 * emulparams/shlelf64.sh: Ditto.
1613 * emulparams/shelf32.sh: Ditto.
1614 (ALIGNMENT): Define to 8.
1615 * emulparams/shelf32.sh: Ditto.
1616 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1617 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1618 built-in linker scripts.
1619 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1620 * emulparams/shlelf64.sh: New.
1621 * emulparams/shelf64.sh: New.
1622 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1624 * Makefile.am: Add support for shlelf64 and shelf64.
1625 * Makefile.in: Regenerate.
1626 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1627 * configure.tgt (sh64-*-elf*): Add shelf as default.
1628 Add shlelf to targ_extra_emuls.
1629 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1630 * emulparams/shelf32.sh: New file.
1631 * emulparams/shlelf32.sh: New file.
1632 * Makefile.am: Add support for shlelf32 and shelf32.
1633 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1634 * Makefile.in: Regenerate.
1636 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1638 * ldlang.c (lang_reset_memory_regions): Rename from
1639 reset_memory_regions. Change all callers. Make public.
1640 * ldlang.h (lang_reset_memory_regions): Prototype.
1641 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1642 lang_reset_memory_regions before lang_size_sections.
1643 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1644 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1646 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1648 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1649 arithmetic when checking for too many global registers.
1651 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1653 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1654 (ehppanbsd.c): New rule.
1655 * Makefile.in: Regenerate.
1656 * configure.tgt (hppa*-*-netbsd*): New target.
1657 * emulparams/hppalinux.sh: Add comment to check other files
1658 that source this file it is modified, and list which
1660 * emulparams/hppanbsd.sh: New file.
1662 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1664 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1667 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1669 Support on-demand global register allocation from
1670 R_MMIX_BASE_PLUS_OFFSET relocs.
1671 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1672 mmix_set_reg_section_vma. Call
1673 _bfd_mmix_finalize_linker_allocated_gregs.
1674 (mmix_before_allocation): New function.
1675 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1676 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1677 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1678 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1679 before .MMIX.reg_contents.
1680 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1681 (mmo_after_open): New function.
1682 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1683 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1684 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1686 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1688 * emulparams/or32.sh: New file.
1689 * emulparams/or32elf.sh: New file.
1690 * scripttempl/or32.sc: New file.
1691 * configure.tgt : Add support for or32.
1692 * configure: Regenerate
1693 * Makefile.am: Add support for or32.
1694 * Makefile.in: Regenerate.
1695 * NEWS: Mention support for or32.
1696 * po/ld.pot: Regenerate.
1698 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1699 Mitch Lichtenberg <mpl@broadcom.com>
1701 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1702 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1703 reloc creation (ld --embedded-relocs).
1705 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1707 * configure: Regenerated.
1709 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1711 * Makefile.am (install): Depend on install-info.
1712 * Makefile.in: Regenerate.
1714 2002-01-26 Christian Rose <menthos@menthos.com>
1716 * ldmain.c (main): Use full sentences to ease translation.
1718 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1720 * po/fr.po: Updated version.
1722 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1724 * po/es.po: Updated version.
1726 2002-01-25 Andreas Jaeger <aj@suse.de>
1728 * ldlex.l (yy_input): Correct error check.
1730 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1732 * ldmisc.c (demangle): Put back dots when string not demangled.
1734 2002-01-22 Richard Henderson <rth@redhat.com>
1736 * emulparams/elf64alpha.sh (NOP): Use unop.
1738 2002-01-21 Andreas Jaeger <aj@suse.de>
1740 * ldlex.l: Use fread instead of read.
1742 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1744 * configure.tgt (ia64-*-netbsd*): New target.
1746 2002-01-21 H.J. Lu <hjl@gnu.org>
1748 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1750 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1752 2002-01-18 Andreas Jaeger <aj@suse.de>
1754 * ldver.c (ldversion): Update year.
1756 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1758 * po/ld.pot: Regenerate.
1760 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1762 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1763 * Makefile.in: Regenerate.
1764 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1765 * emultempl/ppc64elf.em: New file.
1767 2002-01-15 DJ Delorie <dj@redhat.com>
1769 * scripttempl/pe.sc: Add support for constructor priorities.
1771 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1773 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1774 * emulparams/avr23xx.sh: Likewise.
1775 * emulparams/avr4433.sh: Likewise.
1776 * emulparams/avr44x4.sh: Likewise.
1777 * emulparams/avr85xx.sh: Likewise.
1778 * emulparams/avrmega103.sh: Likewise.
1779 * emulparams/avrmega161.sh: Likewise.
1780 * emulparams/avrmega603.sh: Likewise.
1781 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1783 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1785 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1786 archive is excluded.
1788 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1790 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1791 (eshelf_nbsd.c): New rule.
1792 (eshlelf_nbsd.c): New rule.
1793 * Makefile.in: Regenerate.
1794 * configure.tgt (sh*le-*-netbsdelf*): New target.
1795 (sh*-*-netbsdelf*): New target.
1796 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1797 * ld/emulparams/shelf_nbsd.sh: New emulation.
1798 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1800 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1802 * po/es.po: New file: Spanish translation.
1803 * configure.in (ALL_LINGUAS): Add es.
1804 * configure: Regenerate.
1806 2002-01-06 John Marshall <jmarshall@acm.org>
1808 * ld.texinfo: Note that --emit-relocs is currently only
1809 implemented for ELF.
1811 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1813 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1814 of bfd_section_list_remove and bfd_section_list_insert macros.
1815 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1816 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1818 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1820 * configure.tgt (x86_64-*-netbsd*): New target.
1822 2001-12-21 Tom Rix <trix@redhat.com>
1824 (gld*_create_output_section_statements): New function.
1825 For -binitfini support.
1826 * emultempl/aix.em (gld*_before_parse): Fix comment.
1827 * emultempl/aix.em (gld*_parse_args): Fix comment.
1829 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1831 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1833 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1835 * configure.tgt (arm-*-netbsdelf*): Add target.
1836 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1837 * emulparams/armelf_nbsd.sh: Added.
1838 * Makefile.am: Add rules for earmelf_nbsd.
1839 * Makefile.in: Regenerate.
1841 2001-12-19 Andreas Jaeger <aj@suse.de>,
1842 Susanne Oberhauser <froh@suse.de>
1844 * configure.host: Add rules for x86_64-*linux-gnu. Change
1845 s390x-linux entry to use gcc to report configuration, replace gcc
1846 with $CC in s390-linux
1848 2001-12-19 Andreas Jaeger <aj@suse.de>
1850 * ld.texinfo (VERSION): Fix markup.
1852 2001-12-18 matthew green <mrg@eterna.com.au>
1854 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1855 (m68kelfnbsd.c): New rule.
1856 * Makefile.in: Regenerate.
1857 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1858 (m68*-*-netbsd*4k*): .. this.
1859 (m68*-*-netbsdelf*): New target.
1860 (m68*-*-netbsd*): Also include ELF support.
1861 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1862 * emulparams/m68kelfnbsd.sh: New emulation.
1864 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1866 * ldgram.y (vers_node): Support anonymous version tags.
1867 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1868 tag is not defined together with non-anonymous versions.
1869 * ld.texinfo: Document it.
1871 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1873 * po/tr.po: New file: Turkish translation.
1874 * configure.in (ALL_LINGUAS): Add tr.
1875 * configure: Regenerate.
1877 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1879 * Makefile.am: Add rules for eelf64alpha_nbsd.
1880 * Makefile.in: Regenerate.
1881 * configure.tgt (alpha*-*-netbsd*): Set
1882 targ_emul to elf64alpha_nbsd.
1883 * emulparams/elf64alpha_nbsd.sh: Added.
1885 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1887 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1888 section_tail when fiddling with section list.
1889 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1890 broken into separate strings to make translation easier.
1891 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1892 fiddling with section list.
1893 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1895 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1897 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1899 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1901 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1903 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1905 * emultempl/elf32.em (finish): Supply output_bfd
1906 to bfd_elf*_discard_info.
1907 (OPTION_EH_FRAME_HDR): Define.
1908 (longopts): Add --eh-frame-hdr.
1909 (parse_args): Handle it.
1910 (list_options): Add --eh-frame-hdr to help.
1911 * emultempl/hppaelf.em (finish): Supply output_bfd
1912 to bfd_elf*_discard_info.
1913 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1915 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1917 * lexsup.c (parse_args): Don't pass shortopts to second call to
1918 getopt functions. Restore optind rather than decrementing before
1919 second call. Remove errind as it now duplicates last_optind.
1921 2001-12-11 Christopher Faylor <cgf@redhat.com>
1923 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1925 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1926 Richard Henderson <rth@redhat.com>
1928 * Makefile.am: Add support for xstormy16.
1929 * configure.tgt: Add support for xstormy16.
1930 * Makefile.in: Regenerate.
1931 * emulparams/elf32xstormy16.sh: New file.
1932 * scripttempl/xstormy16.sc: New file.
1934 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1936 * Makefile.in (LIB_PATH): Make configurable.
1937 (GENSCRIPTS): Set LIB_PATH in environment.
1938 * configure.in: Substitute LIB_PATH.
1939 * configure: Regenerate.
1940 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1941 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1943 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1945 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1946 describing the -N option so that it is easier to translate into
1949 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1951 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1952 statements describing a single option with a single, newline
1953 escaped fprintf. This allows better translation into other
1956 * ldmain.c (add_archive_element): Combine multiple strings
1957 into a single string to permit better translation into other
1960 2001-12-05 Tom Rix <trix@redhat.com>
1962 * Makefile.am: Remove eaixppc64.
1963 * Makefile.in: Regenerate.
1965 2001-12-04 Tom Rix <trix@redhat.com>
1967 * emultempl/aix.em (choose_target): Change default target to
1968 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1970 (gld*_read_file): Fix typo.
1971 (change_symbol_mode): Add prototype.
1974 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1975 * emulparams/aixrs6.sh : Same.
1976 * emulparams/ppcmacos.sh : Same.
1977 * emulparams/aixppc64.sh : Delete file.
1978 * emultempl/aix.em : Formatting changes.
1980 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1982 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1983 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1985 (OTHER_END_SYMBOLS): Fix formatting.
1986 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1987 (OTHER_END_SYMBOLS): Fix formatting.
1989 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1991 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1993 2001-12-02 Tom Rix <trix@redhat.com>
1995 * configure.tgt : Remove eaixppc64 emulations.
1996 * Makefile.in : Remove eaixppc64.c
1997 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1998 (ldemul_default_target): Same.
1999 * emultempl/gld960.em (gld960_choose_target): Same.
2000 * emultempl/gld960c.em (gld960_choose_target): Same.
2001 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2002 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2003 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2004 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2005 * emultempl/aix.em (choose_target): New function. Handle emulation of
2008 2001-11-27 H.J. Lu <hjl@gnu.org>
2010 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2011 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2012 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2013 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2014 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2015 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2016 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2017 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2019 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2022 (REL_SDATA): Likewise.
2023 (REL_SBSS): Likewise.
2024 (REL_SDATA2): Likewise.
2025 (REL_SBSS2): Likewise.
2026 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2029 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2031 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2033 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2035 2001-11-22 H.J. Lu <hjl@gnu.org>
2037 * Makefile.in: Regenerated with automake based on automake
2038 1.4-8 in RedHat 7.1.
2040 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2042 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2043 (config.status): Delete rule.
2044 Add extra dependencies to cover sourced emulparams files.
2045 * Makefile.in: Regenerate.
2047 * scripttempl/elf.sc: Order <section>, <section>.* and
2048 corresponding linkonce sections as seen in input files.
2049 Formatting fixes. Zero vma of all sections if not relocating.
2050 (STACK): Define and insert if STACK_ADDR defined.
2051 (OTHER_RELOCATING_SECTIONS): Delete.
2052 (OTHER_END_SYMBOLS): Define.
2053 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2054 (OTHER_READWRITE_SECTIONS): Likewise.
2055 (OTHER_GOT_SECTIONS): Likewise.
2056 (OTHER_SDATA_SECTIONS): Likewise.
2057 (OTHER_BSS_SECTIONS): Likewise.
2058 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2059 (OTHER_READWRITE_SECTIONS): Likewise.
2060 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2061 (OTHER_READWRITE_SECTIONS): Likewise
2063 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2064 (STACK_ADDR): Define.
2065 * emulparams/armelf_oabi.sh: As for armelf.sh.
2066 * emulparams/elf32mcore.sh: As for armelf.sh.
2067 * emulparams/h8300elf.sh: As for armelf.sh.
2068 * emulparams/mn10200.sh: As for armelf.sh.
2069 * emulparams/shelf.sh: As for armelf.sh.
2071 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2072 (OTHER_END_SYMBOLS): Define.
2073 * emulparams/m32relf.sh: As for elf32fr30.sh.
2074 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2075 * emulparams/h8300self.sh: As for elf32fr30.sh.
2077 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2078 defines with RELOCATING test.
2079 (OTHER_SDATA_SECTIONS): Likewise.
2080 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2081 (OTHER_END_SYMBOLS): ..this.
2082 * emulparams/crislinux.sh: As for criself.sh.
2084 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2086 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2087 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2088 normal and linkonce sections as seen in input files.
2089 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2090 (TEXT_DYNAMIC): Likewise.
2091 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2092 (OTHER_SDATA_SECTIONS): Likewise.
2093 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2094 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2095 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2096 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2097 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2098 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2099 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2100 sections as seen in input files.
2101 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2102 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2104 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2105 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2106 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2107 (OTHER_SECTIONS): Instead, use this..
2108 (OTHER_END_SYMBOLS): ..and this.
2110 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2111 * emulparams/elf32bsmip.sh: Likewise.
2112 * emulparams/elf32btsmip.sh: Likewise.
2113 * emulparams/elf32ebmip.sh: Likewise.
2114 * emulparams/elf32lmip.sh: Likewise.
2115 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2116 * emulparams/elf32lsmip.sh: Likewise.
2117 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2118 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2119 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2120 * emulparams/elf64btsmip.sh: Likewise.
2121 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2122 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2123 * emulparams/elf32ppclinux.sh: Likewise.
2124 * emulparams/elf32ppcsim.sh: Likewise.
2125 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2126 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2127 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2128 * emulparams/h8300self.sh: Likewise.
2129 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2130 * emulparams/sh.sh: Comment.
2131 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2132 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2133 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2135 2001-11-21 David Heine <dlheine@tensilica.com>
2136 Alan Modra <amodra@bigpond.net.au>
2138 * ldlang.c (map_input_to_output_sections): Replace "break"
2139 accidentally removed with 2001-08-03 change.
2140 (lang_gc_sections_1): Likewise.
2142 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2144 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2146 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2148 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2149 of false when calling lang_size_sections.
2150 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2152 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2154 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2155 function when LDEMUL_FINISH isn't set to the same name. Don't
2156 call ${LDEMUL_FINISH}.
2157 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2158 * emultempl/armelf.em (arm_elf_finish): Call
2159 gld${EMULATION_NAME}_finish.
2160 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2161 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2162 hppaelf_layout_sections_again if necessary.
2163 (need_laying_out): New var.
2164 (hppaelf_layaout_sections_again): Rename to
2165 hppaelf_layout_sections_again. Clear need_laying_out.
2166 (PARSE_AND_LIST_OPTIONS): Format text.
2168 2001-11-14 H.J. Lu <hjl@gnu.org>
2170 * emultempl/armelf.em (arm_elf_finish): Renamed from
2171 gld${EMULATION_NAME}_finish.
2172 (LDEMUL_FINISH): Set to arm_elf_finish.
2174 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2176 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2177 (struct ld_emulation_xfer_struct): Use it.
2179 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2181 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2182 additional symbols referenced by newer crt0.o files from HP.
2184 2001-11-12 Anthony Green <green@redhat.com>
2186 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2188 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2190 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2191 * Makefile.in: Regenerate.
2193 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2195 * ld.texinfo: Use @command for commands, @option for options.
2196 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2198 * Makefile.in: Rebuild.
2200 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2202 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2203 Add support for targets.
2205 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2207 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2208 * configure: Regernate.
2209 * po/fr.po: New file.
2210 * po/sv.po: New file.
2212 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2214 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2215 as little endian default and to support big endian.
2217 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2219 * ld.texinfo (Options): Document new option, -nostdlib.
2220 * lexsup.c (OPTION_NOSTDLIB): New definition.
2221 (ld_options): Add entry for "nostdlib".
2222 (parse_args): Handle OPTIONS_NOSTDLIB.
2223 * ldfile.c (ldfile_add_library_path): Don't add directories
2224 to the search path if they weren't specified on the command line
2225 and -nostdlib was specified.
2226 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2228 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2230 * lexsup.c (parse_args): Prevent infinite parsing loop when
2231 "-rpath.a" is specified on the command line.
2232 Replace calls to fprintf with calls to einfo.
2234 2001-10-31 John Marshall <jmarshall@acm.org>
2236 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2237 appear only once across all the linker scripts involved in a link
2238 invocation no longer applies. Make the documentation reflect
2241 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2243 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2245 (sh-*-linux*): Added targ_extra_libpath.
2247 2001-10-31 David Heine <dlheine@tensilica.com>
2249 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2250 for padding statements.
2252 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2254 * configure.tgt (mmix-*-*): New target.
2255 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2256 Add dependencies to match.
2257 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2258 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2259 scripttempl/mmo.sc: New files.
2260 * gen-doc.texi: @set MMIX.
2261 * ld.texinfo: Ditto.
2262 [MMIX] Add MMIX node.
2263 * Makefile.in: Regenerate.
2265 2001-10-29 Kazu Hirata <kazu@hxi.com>
2267 * ldlang.c: Fix a comment typo.
2269 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2271 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2272 entries, and match *-*-linux*.
2274 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2276 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2277 with ldlex_script, ldlex_popstate.
2278 (ifile_p1): Likewise.
2279 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2281 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2282 to 1. Don't BEGIN(SCRIPT).
2283 (lex_redirect): Similarly.
2284 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2286 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2288 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2289 __EH_FRAME_END__ and accept eh frames into data section.
2290 Add ctor and dtor sections.
2292 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2294 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2295 (auto-export): Fix indentation.
2297 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2299 * pe-dll.c (autofilter_objectlist): Add startup objects
2301 (auto-export): Constify char * p.
2302 Extract file basename and use strcmp rather than ststr
2305 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2307 * ldmain.c (get_emulation): Improve comment about the handling
2310 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2312 * po/POTFILES.in: Regenerate.
2314 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2316 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2317 -z nocopyreloc and -z nocombreloc usage strings.
2319 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2321 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2324 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2326 * scripttempl/armaout.sc: Place .bss section after end of aligned
2327 data section to match behaviour of aout code in constructrion of
2330 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2332 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2333 startup files for mingw32 dlls to list.
2335 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2337 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2339 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2341 * configure.tgt (targ): Add arm9e-*-elf.
2343 2001-10-05 H.J. Lu <hjl@gnu.org>
2345 * genscripts.sh: Fix a typo in the last change.
2347 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2349 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2350 -z nocombreloc in usage.
2352 2001-10-03 Jim Blandy <jimb@redhat.com>
2354 * genscripts.sh: Include a comment at the top of each generated
2355 script, explaining its purpose.
2357 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2359 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2360 * NEWS: Mention -z nocopyreloc.
2361 * ld.texinfo (Options): Describe nocopyreloc.
2363 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2365 * configure: Regenerate.
2367 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2369 * ldver.h (ld_program_version): Remove declaration.
2370 * lexsup.c (parse_args): Move printing of copyright message..
2371 * ldver.c (ldversion): .. to here.
2372 Use BFD_VERSION_STRING in place of BFD_VERSION.
2373 (ld_program_version): Remove.
2374 * Makefile.am (Makefile): Depend on bfd/configure.in.
2376 * Makefile.in: Regenerate.
2378 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2380 * Makefile.am: Update dependencies with "make dep-am".
2381 * Makefile.in: Regenerate.
2383 2001-09-29 John Reiser <jreiser@BitWagon.com>
2385 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2386 * lexsup.c: Add --no-define-common commandline option.
2387 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2388 * ldlex.l: Likewise.
2389 * ld.h: Add command_line.inhibit_common_definition.
2390 * ldmain.c (main): Initialize.
2391 * ld.texinfo: Document.
2393 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2395 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2397 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2399 * ldmisc.c (USE_STDARG): Remove.
2400 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2405 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2406 declarations. Update copyright.
2408 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2410 * pe-dll.c: Remove obsoleted declaration of
2411 pe_get_data_import_dll_name.
2412 (pe_create_import_fixup): Fix thinko.
2414 * ld.texinfo(enable-auto-import): Clarify the explanation.
2416 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2418 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2419 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2420 DLL_SUPPORT controlled code.
2422 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2424 * emultempl/pe.em(pe_data_import_dll): Make static.
2425 (pe_get_data_import_dll_name): New accessor function.
2426 * pe-dll.c(pe_create_import_fixup): call
2427 pe_get_data_import_dll_name() from pe.em, instead of
2428 directly accessing pe_data_import_dll variable from pe.em.
2430 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2432 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2433 (def_file_add_directive): Use ISSPACE instead of isspace.
2434 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2435 isdigit/isxdigit/isalpha/isalnum.
2436 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2437 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2438 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2439 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2441 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2442 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2444 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2445 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2446 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2447 (ctor_prio): Use ISDIGIT instead of isdigit.
2448 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2449 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2450 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2452 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2453 (stricpy): Use TOLOWER instead of isupper/tolower.
2454 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2455 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2456 (lex_warn_invalid): Use ISPRINT instead of isprint.
2457 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2458 (main): For gettext, also set the LC_CTYPE locate facet.
2459 (add_keepsyms_file): Use ISSPACE instead of isspace.
2460 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2461 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2462 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2463 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2464 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2465 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2466 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2467 (quoteput): Use ISSPACE instead of isspace.
2468 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2471 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2473 * deffilep.y (def_stash_module): Constify "name" param.
2475 * pe-dll.c: Replace CONST with const throughout.
2476 (quick_symbol): Constify "n1", "n2", "n3" params.
2477 (make_singleton_name_thunk): Constify "import" param. Make
2478 "buffer_len" a size_t.
2479 (make_import_fixup_entry): Constify "name", "fixup_name",
2480 "dll_symname" params.
2481 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2482 (pe_get32): Likewise.
2483 (pe_implied_import_dll): Likewise.
2485 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2486 (sort_by_section_name): Likewise.
2488 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2489 (make_import_fixup): Cast printf arg, rel->address to long rather
2491 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2493 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2495 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2496 defines BufferSize. Increase buffer size by one.
2498 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2500 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2502 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2504 * configure.tgt: Add arm-openbsd target.
2506 2001-09-12 H.J. Lu <hjl@gnu.org>
2508 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2510 (ALL_64_EMULATIONS): Here.
2511 * Makefile.in: Regenerated.
2513 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2515 * emultempl/pe.em(make_import_fixup): change signature to
2516 take asection as well as arelec; we need this for proper
2517 error reporting. Only call pe_create_import_fixup() if
2518 there is no attempt to add a constant addend to the reloc;
2519 otherwise, report error condition.
2520 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2521 since final argument is a pointer to make_import_fixup().
2522 Change call to cb() to match make_import_fixup() signature.
2523 (make_import_fixup_mark): make buffer_len unsigned.
2524 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2526 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2528 * ld.texinfo: add verbose documentation for auto-import
2529 direct-addressing workaround, to compliment the terse
2532 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2534 * scripttempl/v850.sc: Add gcc_except_table sections.
2536 2001-09-11 Jeffrey A Law (law@cygnus.com)
2538 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2539 * emulparams/h8300self.sh: Similarly.
2541 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2543 * ld.texinfo (Options, --stack): Correct default value for stack
2546 2001-09-05 Tom Rix <trix@redhat.com>
2548 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2550 2001-09-03 Andreas Jaeger <aj@suse.de>
2552 * emultempl/beos.em: Declare prototypes for comparions functions,
2555 2001-09-02 Andreas Jaeger <aj@suse.de>
2557 * emultempl/aix.em: Add missing prototype.
2558 * emultempl/lnk960.em: Likewise.
2559 * emultempl/vanilla.em: Likewise.
2560 * emultempl/armcoff.em: Likewise.
2561 * emultempl/armelf_oabi.em: Likewise.
2562 * emultempl/beos.em: Likewise.
2563 * emultempl/gld960c.em: Likewise.
2564 * emultempl/gld960.em: Likewise.
2566 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2567 for prototype declaration.
2569 2001-08-31 Eric Christopher <echristo@redhat.com>
2570 Jason Eckhardt <jle@redhat.com>
2572 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2574 2001-08-31 Andreas Jaeger <aj@suse.de>
2576 * emultempl/pe.em: Add missing prototypes.
2577 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2578 pe_find_data_imports.
2579 (pr_sym): Add unused attribute.
2581 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2583 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2584 default from coff to elf.
2586 2001-08-29 Jeff Law <law@redhat.com>
2588 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2590 * emulparams/h8300self.sh: Similarly.
2592 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2594 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2596 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2597 * configure.tgt (h8300-*-elf*): New case.
2598 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2599 * emulparams/h8300self.sh: New file.
2600 * Makefile.in: Regenerated.
2602 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2604 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2607 2001-08-27 Linus Nordberg <linus@swox.com>
2608 Alan Modra <amodra@bigpond.net.au>
2610 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2611 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2613 * Makefile.in: Regenerate.
2614 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2615 entries to correct alphabetical position.
2616 * emulparams/elf64ppc.sh: New.
2617 * emulparams/elf64lppc.sh: New.
2619 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2621 * ldmain.c (main): Declare BSIZE as static.
2623 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2625 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2626 into .rel.dyn resp. .rela.dyn if combreloc.
2627 (get_script): If .x linker script is equal to .xn, only put it
2628 once into the binary.
2629 Add .xc and .xsc scripts.
2630 (parse_args): Handle -z combreloc and -z nocombreloc.
2631 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2632 For .xc and .xsc scripts put all .rel* or .rela* input sections
2633 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2634 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2636 Strip trailing whitespace from script.
2637 Generate .xc and .xsc scripts if requested.
2638 * ldmain.c (main): Initialize link_info.combreloc and
2639 link_info.spare_dynamic_tags.
2640 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2641 (ld_options): Add --spare-dynamic-tags option.
2642 (parse_args): Likewise.
2643 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2644 * ldint.texinfo: Document .xc and .xsc linker scripts.
2645 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2647 2001-08-22 H.J. Lu <hjl@gnu.org>
2649 * emulparams/elf32fr30.sh: Add a newline.
2651 2001-08-21 Andreas Jaeger <aj@suse.de>
2653 * deffilep.y: Add missing prototypes.
2654 * pe-dll.c: Likewise.
2656 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2658 * ldlang.c (insert_pad): Fix typos in last patch.
2660 * ldlang.c: When traversing lang_statement_union_type lists,
2661 consistently use "header.next" rather than "next".
2662 * mpw-eppcmac.c: Likewise.
2663 * emultempl/beos.em: Likewise.
2664 * emultempl/hppaelf.em: Likewise.
2665 * emultempl/pe.em: Likewise.
2666 * ldlang.h (union lang_statement_union): Remove "next" field.
2668 * ldlang.c (insert_pad): Use offsetof macro.
2669 (lang_size_sections): Always neuter padding statements.
2670 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2672 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2673 passed to lang_size_sections.
2674 (pe_exe_fill_sections): Likewise.
2675 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2676 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2678 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2680 * emultempl/aix.em: Formatting fixes.
2682 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2684 * ldlang.c (insert_pad): Make use of an existing pad statement if
2685 available. Move code calculating alignment, adjusting section
2686 alignment power, and adjusting dot to ..
2687 (size_input_section): .. here. Remove unused relax param.
2688 (lang_size_sections): Change boolean `relax' param to boolean *.
2689 Adjust call to size_input_section. Make use of insert_pad to
2690 place pad after the assignment statement. If relaxing, zap
2692 (reset_memory_regions): Reset output_bfd section sizes too.
2693 (relax_again): Move to..
2694 (lang_process): ..here. Adjust call to lang_size_sections, and
2695 remove duplicated code.
2696 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2698 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2700 * ld.texinfo: Document that fill values now use the four least
2702 * emulparams/elf32fr30.sh (NOP): Update.
2703 * emulparams/elf32mcore.sh: Likewise.
2704 * emulparams/elf64_s390.sh: Likewise.
2705 * emulparams/elf_i386.sh: Likewise.
2706 * emulparams/elf_i386_be.sh: Likewise.
2707 * emulparams/elf_i386_chaos.sh: Likewise.
2708 * emulparams/elf_i386_ldso.sh: Likewise.
2709 * emulparams/elf_s390.sh: Likewise.
2710 * emulparams/elf_x86_64.sh: Likewise.
2711 * emulparams/i386moss.sh: Likewise.
2712 * emulparams/i386nw.sh: Likewise.
2713 * emulparams/m68kelf.sh: Likewise.
2714 * scripttempl/elf.sc: Update NOP comment.
2715 * scripttempl/elfi370.sc: Likewise.
2716 * scripttempl/elfm68hc11.sc: Likewise.
2717 * scripttempl/elfm68hc12.sc: Likewise.
2718 * scripttempl/nw.sc: Likewise.
2720 2001-08-15 Tom Rix <trix@redhat.com>
2722 * ldgram.y (saved_script_handle): Initialize to NULL.
2723 * ldmain.c (main): Change check on saved_script_handle.
2725 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2727 * emultempl/elf32.em: Formatting fixes.
2728 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2729 looking at sec->owner.
2730 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2731 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2732 unused code, and reorganize orphan section placement code.
2734 * ldlang.c (wild_doit): Rename to lang_add_section.
2735 * ldlang.h: Here too.
2736 * mpw-elfmips.c: And here.
2737 * emultempl/beos.em: And here.
2738 * emultempl/elf32.em: And here.
2739 * emultempl/hppaelf.em: And here.
2740 * emultempl/pe.em: And here.
2742 2001-08-13 Richard Henderson <rth@redhat.com>
2744 * emultempl/needrelax.em: New file.
2745 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2746 * Makefile.am (eelf64_ia64.c): Depend on it.
2747 * Makefile.in: Rebuild.
2749 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2751 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2752 output_section is set non-NULL.
2754 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2755 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2756 needlessly create an output_section_statement. Treat a correctly
2757 named output_section_statement with NULL bfd_section as compatible.
2759 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2761 * emultempl/generic.em: Support EXTRA_EM_FILE.
2762 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2763 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2764 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2765 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2766 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2767 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2768 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2769 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2770 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2771 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2773 2001-08-12 Richard Henderson <rth@redhat.com>
2775 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2776 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2777 scripttempl/v850.sc: Keep .jcr data.
2779 2001-08-12 H.J. Lu <hjl@gnu.org>
2780 Andrew Haley <aph@cambridge.redhat.com>
2781 Nick Clifton <nickc@redhat.com>
2783 * ldgram.y (had_script): Change name to saved_script_handle.
2784 Change type to file handle.
2785 * ld.h (had_script): Rename and retype.
2786 * ldfile.c (ldfile_open_command_file): Save the file handle
2787 used in saved_script_handle.
2788 * lexsup.c (parse_args): Do not allow -c option to alter
2789 saved_script_handle.
2790 * ldmain.c (main): Print out the linker script used if
2791 --verbose is given. Check saved_script_handle to obtain the
2792 external linker script used, or if NULL, dump the builtin
2794 * ld.texinfo: Document that --verbose now dumps the linker
2795 script used, regardless of whether it was an internal or an
2798 2001-08-10 Andreas Jaeger <aj@suse.de>
2800 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2802 * configure: Regenerate.
2804 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2806 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2808 * scripttempl/elf.sc: Move non-text .dynamic section before
2809 .plt/.got/.sdata* group.
2810 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2811 (OTHER_SDATA_SECTIONS): Add.
2812 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2814 * emulparams/crislinux.sh: Likewise.
2815 * emulparams/elf32b4300.sh: Likewise.
2816 * emulparams/elf32bmip.sh: Likewise.
2817 * emulparams/elf32bmipn32.sh: Likewise.
2818 * emulparams/elf32bsmip.sh: Likewise.
2819 * emulparams/elf32btsmip.sh: Likewise.
2820 * emulparams/elf32ebmip.sh: Likewise.
2821 * emulparams/elf32elmip.sh: Likewise.
2822 * emulparams/elf32l4300.sh: Likewise.
2823 * emulparams/elf32lmip.sh: Likewise.
2824 * emulparams/elf32lsmip.sh: Likewise.
2825 * emulparams/elf32ltsmip.sh: Likewise.
2826 * emulparams/elf64bmip.sh: Likewise.
2827 * emulparams/elf64btsmip.sh: Likewise.
2828 * emulparams/elf64ltsmip.sh: Likewise.
2830 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2832 * genscripts.sh: Source the emulparams script before each output
2833 script is generated so that variables like `RELOCATING' may affect
2834 variables defined in the emulparams script.
2836 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2838 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2841 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2842 ie. iterate over wild_statement.section_list.
2843 (gld${EMULATION_NAME}_place_orphan): Likewise.
2845 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2847 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2848 .fini[0-4] sections used by _exit
2849 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2850 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2851 * scripttempl/elfm68hc11.sc: Likewise.
2853 2001-08-03 H.J. Lu <hjl@gnu.org>
2855 * emultempl/beos.em (init): Add the missing initialization.
2857 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2859 * ld.texinfo (Input Section Basics): Clarify ordering of output
2861 * ldlang.c (callback_t): Add wildcard_list param.
2862 (walk_wild_section): Remove "section" param. Rewrite for
2863 lang_wild_statement_type change. Remove unique_section_p test.
2864 (walk_wild_file): Remove "section" param.
2865 (walk_wild): Remove "section" and "file" params.
2866 (lang_gc_wild): Likewise.
2867 (wild): Likewise. Modify for lang_wild_statement_type change.
2868 (wild_sort): Likewise. Add "sec" param.
2869 (gc_section_callback): Likewise.
2870 (output_section_callback): Likewise. Do unique_section_p test.
2871 (map_input_to_output_sections): Modify call to wild.
2872 (lang_gc_sections_1): Likewise.
2873 (print_wild_statement): Modify for lang_wild_statement_type
2875 (lang_add_wild): Replace filename, filenames_sorted param with
2876 filespec. Replace section_name, sections_sorted,
2877 exclude_filename_list with section_list.
2878 * ldlang.h (lang_add_wild): Here too.
2879 (lang_wild_statement_type): Replace section_name, sections_sorted,
2880 and exclude_filename_list with section_list.
2881 * ldgram.y (current_file): Delete.
2882 (%union): Add wildcard_list.
2883 (file_NAME_list): Set type to wildcard_list. Build a linked list
2884 rather than calling lang_add_wild for each entry.
2885 (input_section_spec_no_keep): Call lang_add_wild here instead.
2886 * ld.h (struct wildcard_list): Declare.
2887 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2889 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2891 * ldmain.c (main): initialize link_info.pei386_auto_import
2892 * pe-dll.c: new tables for auto-export filtering
2893 (auto_export): change API, pass abfd for contextual filtering.
2894 Loop thru tables of excluded symbols instead of comparing
2897 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2899 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2900 static variable current_sec (static struct sec *). Add
2901 forward declaration for add_bfd_to_link.
2902 (process_def_file): Don't export undefined symbols. Do not
2903 export symbols starting with "_imp__". Call auto_export()
2905 (pe_walk_relocs_of_symbol): New function.
2906 (generate_reloc): add optional extra debugging
2907 (pe_dll_generate_def_file): eliminate extraneous initial blank
2909 (make_one): enlarge symtab to make room for __nm__ symbols
2910 (DATA auto-import support).
2911 (make_singleton_name_thunk): New function.
2912 (make_import_fixup_mark): New function.
2913 (make_import_fixup_entry): New function.
2914 (pe_create_import_fixup): New function.
2915 (add_bfd_to_link): Specify that 'name' argument is a CONST
2917 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2918 declare new functions pe_walk_relocs_of_symbol and
2919 pe_create_import_fixup.
2920 * emultempl/pe.em: add new options --enable-auto-import,
2921 --disable-auto-import, and --enable-extra-pe-debug.
2922 (make_import_fixup): New function.
2923 (pe_find_data_imports): New function.
2924 (pr_sym): New function.
2925 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2926 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2929 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2931 * ld.texinfo: add additional documentation for
2932 --export-all-symbols. Document --out-implib,
2933 --enable-auto-image-base, --disable-auto-image-base,
2934 --dll-search-prefix, --enable-auto-import, and
2935 --disable-auto-import.
2936 * ldint.texinfo: Add detailed documentation on auto-import
2939 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2941 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2944 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2946 * Makefile.am: Update dependencies with "make dep-am".
2947 * Makefile.in: Regenerate
2949 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2951 * ldcref.c (check_section_sym_xref): New function.
2952 (check_nocrossrefs): Call it.
2953 (check_nocrossref): Interate over h->refs here instead of..
2954 (check_refs): ..here. Pass in the symbol name, section, and bfd
2955 rather than hash_entry pointers.
2956 (struct check_refs_info): Keep symbol name rather than hash entry.
2958 (check_reloc_refs): Tweak for above changes in check_refs_info.
2959 Only report references to section syms when symname is NULL to
2960 prevent duplicate messages for the same reloc.
2962 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2964 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2965 available. Do not print NULL trees.
2966 (exp_print_token): Print unknown tokens with values > 126 as
2967 decimal values not ASCII characters.
2969 * ldlang.c (lang_leave_overlay): If a region is specified assign
2970 it to all sections inside the overlay unless they have been
2971 assigned to the own, non-default, memory region.
2973 * README: Add header for consistency with other README files.
2975 2001-07-14 H.J. Lu <hjl@gnu.org>
2977 * emultempl/elf32.em (output_prev_sec_find): Never return
2978 bfd_abs_section_ptr, bfd_com_section_ptr nor
2979 bfd_und_section_ptr.
2981 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2983 * Makefile.am (em32relf.c): Change dependency from generic.em to
2985 * Makefile.in: Regenerate.
2987 2001-07-14 matthew green <mrg@eterna.com.au>
2989 * configure.tgt (i386-*-netbsdelf*): New target.
2990 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2992 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2994 * emultempl/elf32.em (output_prev_sec_find): New.
2995 (place_orphan): Use it.
2997 2001-07-11 H.J. Lu <hjl@gnu.org>
2999 * ldmain.c (main): Fix typos in the last change.
3001 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3003 * ldmain.c (main): Disallow -F and -f without -shared.
3005 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3007 * emultempl/pe.em (after_open): Check for the output_bfd not
3008 having any coff_data structure allocated to it.
3010 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3012 * emultempl/elf32.em: Do not assuming that contents of the buffer
3013 returned from basename function will remain unchanged accross other
3016 2001-07-03 H.J. Lu <hjl@gnu.org>
3018 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3019 2001-07-03. It creates dynamic entries even for static binaries.
3021 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3023 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3024 (DYNAMIC): Use it to reserve few dynamic entries for
3027 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3029 * emulparams/hppa64linux.sh: New file.
3030 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3031 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3032 (ehppa64linux.c): Add rule to make it.
3034 * Makefile.in: Regenerate.
3036 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3038 * ld.texinfo (Options, -r): Mention restrictions when using
3039 different object formats.
3041 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3043 * ldlang.c (lang_check): Emit fatal error if relocatable link
3044 between different object flavours with relocations in input.
3046 2001-06-19 H.J. Lu <hjl@gnu.org>
3048 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3049 (--version-script): Mention the language support.
3051 2001-06-19 H.J. Lu <hjl@gnu.org>
3053 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3055 2001-06-18 H.J. Lu <hjl@gnu.org>
3057 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3058 (diststuff): Add $(MANS).
3059 * Makefile.in: Regenerated.
3063 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3065 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3066 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3067 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3068 * ld.h (args_type): Remove member export_dynamic. All users
3069 changed to use struct bfd_link_info member.
3071 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3072 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3073 * Makefile.in: Regenerate.
3075 2001-06-18 H.J. Lu <hjl@gnu.org>
3077 * ldlang.c (init_os): Add the newline to the einfo call.
3078 (lang_check): Likewise.
3079 (lang_do_version_exports_section): Likewise.
3081 2001-06-15 H.J. Lu <hjl@gnu.org>
3083 * lexsup.c (parse_args); Save optind to report unrecognized
3086 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3088 * ldlang.c (lang_check): Emit fatal error if relocatable link
3089 between different object flavours.
3091 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3092 Set new link_info member export_dynamic.
3093 * ldmain.c (main): Initialize new link_info member export_dynamic.
3095 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3097 * ldlang.c (walk_wild): Only call walk_wild_file if
3098 lookup_name returns something.
3099 (lookup_name): If load_symbols fails, return NULL.
3100 (load_symbols): Change to a boolean function.
3101 (open_input_bfds): If load_symbols fails then do not make the
3104 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3106 * ldlang.c (record_bfd_errors): Remove.
3108 * emultempl/aix.em: Fix copyright dates.
3110 2001-06-07 Andreas Jaeger <aj@suse.de>
3112 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3113 (TEXT_START_ADDR): Likewise.
3115 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3117 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3119 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3121 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3123 2001-05-31 H.J. Lu <hjl@gnu.org>
3125 * ldlang.c (open_input_bfds): Don't change the bfd error
3126 handler whilst loading symbols.
3128 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3130 * configure.tgt: Remove i370-mvs architecture, it is not currently
3133 2001-05-25 H.J. Lu <hjl@gnu.org>
3135 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3136 like emulparams/aixppc.sh.
3138 2001-05-25 H.J. Lu <hjl@gnu.org>
3140 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3141 setting of output_filename after bfd_scan_arch.
3142 * emultempl/pe.em: Likewise.
3144 2001-05-25 H.J. Lu <hjl@gnu.org>
3146 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3147 like emulparams/aixppc.sh.
3149 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3150 instead of ${srcdir}/emultempl/stringify.sed.
3152 2001-05-25 Timothy Wall <twall@oculustech.com>
3154 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3157 2001-05-25 Alan Modra <amodra@one.net.au>
3159 * configure.host: Replace linuxoldld with linux*oldld.
3160 * configure.tgt: Likewise.
3162 2001-05-24 H.J. Lu <hjl@gnu.org>
3164 * emultempl/stringify.sed: Removed again.
3166 2001-05-24 H.J. Lu <hjl@gnu.org>
3168 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3169 (gld${EMULATION_NAME}_before_parse): Initialize
3170 ldfile_output_architecture, ldfile_output_machine and
3171 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3172 * emultempl/beos.em: Likewise.
3173 * emultempl/elf32.em: Likewise.
3174 * emultempl/linux.em: Likewise.
3175 * emultempl/mipsecoff.em: Likewise.
3176 * emultempl/pe.em: Likewise.
3177 * emultempl/sunos.em: Likewise.
3179 2001-05-24 Tom Rix <trix@redhat.com>
3181 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3182 udate import file format.
3183 (change_symbol_mode) New, same
3184 (is_syscall) New, same
3185 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3186 * emulparams/aixppc64.sh : same
3187 * emulparams/aixrs6.sh : same
3188 * emulparams/ppcmacos.sh : same
3189 * emultempl/aix.em : use strtoull to parse options
3190 * Makefile.am : add eaixppc64 emulation for xcoff64
3191 * Makefile.in : same
3192 * configure.tgt : same
3194 * scripttempl/aix.sc : default text section offset to 0x10000000
3195 default data section offset to 0x20000000
3196 add .sv3264 and .sv64 pseudo sections
3197 loader and debug sections use the currect section offset.
3199 * emultempl/aix.em : Add xcoff64 support
3200 Add -binitfini support
3201 (gld${EMULATION_NAME}_before_parse) -binitfini
3202 (gld${EMULATION_NAME}_parse_args) same
3203 (gld${EMULATION_NAME}_before_allocation) format change for special
3206 * emulparams/aixppc64.sh : New file for xcoff64 support
3208 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3210 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3211 variable to avoid non-portable shell construct.
3213 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3215 * ldmain.c (get_emulation): Add -mips5 command line argument.
3217 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3219 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3220 (ELF_INTERPRETER_NAME): Define it.
3221 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3223 * configure.tgt (targ_emul, targ_extra_emuls)
3224 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3225 as primary, elf_i386 as extra.
3226 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3227 (eelf_i386_ldso.c): New rule.
3228 * Makefile.in: Rebuilt.
3230 2001-05-22 Nick Clifton <nickc@redhat.com>
3232 * lexsup.c (ld_options): Allow -I to be an alias for
3233 --dynamic-linker. This is for Solaris compatability.
3234 * ld.texinfo: Document that -I can be used.
3237 2001-05-16 Alan Modra <amodra@one.net.au>
3239 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3240 whether an input section is the first one assigned to an output
3242 Assorted formatting fixes.
3244 2001-05-14 DJ Delorie <dj@delorie.com>
3246 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3247 * Makefile.in: Ditto.
3249 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3251 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3252 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3254 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3256 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3258 * ldlang.c (lang_process): Call bfd_merge_sections.
3260 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3262 * ldgram.y: Fix typo.
3264 2001-05-03 H.J. Lu <hjl@gnu.org>
3266 * emultempl/elf32.em: Include "libiberty.h".
3267 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3268 basename of the bfd filename.
3269 (gld${EMULATION_NAME}_stat_needed): Likewise.
3270 (gld${EMULATION_NAME}_try_needed): Likewise.
3271 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3273 2001-05-02 H.J. Lu <hjl@gnu.org>
3275 * emultempl/pe.em: Include <ctype.h>.
3277 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3279 * emulparams/elf32openrisc.sh: New file.
3281 * Makefile.am: Add OpenRISC target.
3282 * Makefile.in: Regenerated.
3284 * configure.tgt: Add openrisc-*-* mapping.
3286 2001-05-02 Nick Clifton <nickc@redhat.com>
3288 * emultempl/aix.em: Replace buystring with xstrdup.
3289 * emultempl/beos.em: Replace buystring with xstrdup.
3291 2001-05-02 H.J. Lu <hjl@gnu.org>
3293 * ldfile.c: Include "libiberty.h".
3294 * ldlex.l: Likewise.
3296 * ldmisc.c (buystring): Removed.
3297 * ldmisc.h: Likewise.
3299 * ldfile.c: Replace buystring with xstrdup.
3300 * ldlang.c: Likewise.
3301 * ldlex.l: Likewise.
3302 * ldmain.c: Likewise.
3303 * ldmisc.c: Likewise.
3304 * lexsup.c: Likewise.
3305 * mpw-eppcmac.c: Likewise.
3307 2001-04-30 Andreas Jaeger <aj@suse.de>
3309 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3311 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3313 * ldlang.c (load_symbols): Give emulation a chance
3314 to process unrecognized file before fatal error is
3315 reported, not after.
3317 2001-04-27 Sean McNeil <sean@mcneil.com>
3319 * configure.tgt: Add arm-vxworks target.
3320 * scripttempl/armcoff.sc: Support .text or .data as a section name
3324 2001-04-13 J.T. Conklin <jtc@redback.com>
3326 * ld.texinfo: Document --fatal-warnings.
3329 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3330 warnings have been turned into errors.
3331 * lexsup.c (OPTION_WARN_FATAL): Define.
3332 (ld_options): Entry for --fatal-warnings.
3333 (parse_args): Handle OPTION_WARN_FATAL.
3334 * ld.h (ld_config_type): Add fatal_warnings field.
3336 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3338 * ldmain.c (main): Default to discard_sec_merge.
3339 * lexsup.c (OPTION_DISCARD_NONE): Define.
3340 (ld_options): Add --discard-none.
3341 (parse_args): Handle OPTION_DISCARD_NONE.
3342 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3343 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3344 all its input sections match.
3346 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3348 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3349 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3350 (eelf32ltsmip.c): New target.
3351 (eelf64btsmip.c): Likewise.
3352 (eelf64ltsmip.c): Likewise.
3353 * Makefile.in: Regenerated.
3355 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3357 (mips*-*-linux-gnu*): Likewise.
3359 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3361 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3363 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3366 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3368 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3369 correct value of __Stext here.
3370 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3373 * emulparams/crislinux.sh: Remove FIXME.
3375 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3377 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3378 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3380 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3382 * configure.tgt (cris-*-*): Change default emulation to criself.
3383 (cris-*-*aout*): New rule.
3385 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3387 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3388 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3390 2001-03-26 Andreas Jaeger <aj@suse.de>
3392 * ld.texinfo (Overview): Fix syntax in texi code.
3394 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3396 * ld.texinfo: Put @c man indications to generate the ld man page.
3397 When generating man, define all the variables. Define SEEALSO
3398 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3399 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3400 (ld.1): Generate from ld.texinfo.
3401 * Makefile.in: Regenerate.
3403 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3405 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3406 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3408 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3410 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3411 is an absolute path look only for this file and not along the path.
3413 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3415 * emultempl/elf32.em (OPTION_GROUP): New macro.
3416 Add new option Bgroup to longopts.
3417 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3418 (gld*_list_options): Add -Bgroup and -z defs.
3419 * ld.1: Document -Bgroup and -z defs.
3420 * ld.texinfo: Likewise.
3422 2001-03-07 Michael Meissner <meissner@redhat.com>
3424 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3425 with sections created by -fdata-sections.
3426 (.dynbss,.bss): Ditto.
3428 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3430 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3431 after_allocation_default, not gld..._before_allocation.
3433 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3435 * configure.in (BFD_VERSION): New.
3436 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3437 * configure: Regenerate.
3438 * Makefile.am: Run "make dep-am"
3439 * Makefile.in: Regenerate.
3441 2001-02-26 Timothy Wall <twall@cygnus.com>
3443 * emulparams/elf64_aix.sh: Add additional read-only sections;
3444 uncomment lines which are now required.
3446 2001-02-26 H.J. Lu <hjl@gnu.org>
3448 * ldlang.c (open_input_bfds): Set the bfd error handler so
3449 that problems can be caught whilst loading symbols.
3450 (record_bfd_errors): New function: Report BFD errors and mark
3451 the executable output as being invalid.
3453 2001-02-22 Timothy Wall <twall@cygnus.com>
3455 * configure.host: Add configuration for ia64-*-aix*.
3456 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3457 Add dependencies for eelf64_aix.c.
3458 * Makefile.in: Regenerate.
3459 * configure.tgt: Add ia64-*-aix* mapping.
3460 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3462 2001-02-20 H.J. Lu <hjl@gnu.org>
3464 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3465 false if we found the file.
3467 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3469 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3470 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3472 2001-02-18 lars brinkhoff <lars@nocrew.org>
3474 * Makefile.am: Add PDP-11 target.
3475 * configure.tgt: Likewise.
3476 * emulparams/pdp11.sh: New file.
3478 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3480 * configure.host: Add a generic FreeBSD configuration entry such that
3481 all [modern] FreeBSD systems on all platforms will look the same.
3483 2001-02-14 H.J. Lu <hjl@gnu.org>
3485 * configure.tgt: Remove mention of earmelf_linux26.
3487 2001-02-13 Richard Henderson <rth@redhat.com>
3489 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3491 2001-02-13 H.J. Lu <hjl@gnu.org>
3493 * ldexp.h (node_type): Add etree_provided.
3494 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3495 type to etree_provided if defined by PROVIDE. Allow updating
3497 (exp_print_tree): Handle etree_provided.
3498 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3501 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3503 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3504 .IA_64.unwind.* pattern to unwind table section and
3505 .IA_64.unwind_info* pattern to unwind info section.
3507 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3509 * Makefile.am: Add linux target for S/390.
3510 * Makefile.in: Likewise.
3511 * configure.host: Likewise.
3512 * configure.tgt: Likewise.
3513 * emulparams/elf64_s390.sh: New file.
3514 * emulparams/elf_s390.sh: New file.
3516 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3518 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3520 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3522 2001-02-06 Philip Blundell <philb@gnu.org>
3524 * Makefile.am: Remove mention of earmelf_linux26.
3525 * Makefile.in: Regenerate.
3527 2001-02-04 Philip Blundell <philb@gnu.org>
3529 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3530 * emulparams/armelf_linux26.sh: Delete.
3531 * configure.tgt: Remove mention of armelf_linux26 emulation.
3533 2001-02-01 Nick Clifton <nickc@redhat.com>
3535 * ld.1: Replace occurances of -oformat with --oformat.
3537 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3539 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3540 load_base is specified.
3542 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3544 * emultempl/elf32.em: Correct spelling in comments and listed
3547 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3549 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3550 default for the first section of a group of overlay sections.
3552 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3554 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3555 * Makefile.in: Regenerate.
3556 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3557 Check for null tool_dir.
3559 2001-01-16 Jim Wilson <wilson@redhat.com>
3561 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3562 and IA_64.unwind.info.
3564 2001-01-16 H.J. Lu <hjl@gnu.org>
3566 * ldlang.c (lang_check): Merge the private data only if the
3567 input file has contents.
3569 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3571 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3573 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3574 enabling search for libmilli. On a relocatable link, make .text
3576 (LDEMUL_AFTER_PARSE): Define.
3577 (hppaelf_finish): Correct spelling of relocatable in comments.
3579 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3580 rummage through the script for sections on the unique list.
3581 Correct length of strncmp for ".note".
3582 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3584 * ldlang.c (unique_section_list): New var.
3585 (unique_section_p): New function.
3586 (walk_wild_section): Don't match sections on unique_section_list.
3587 (lang_add_unique): New function.
3588 Correct spelling of relocatable in comments.
3590 * ldlang.h (struct unique_sections): Declare.
3591 (unique_section_list): Declare.
3592 (unique_section_p): Declare.
3593 (lang_add_unique): Declare.
3595 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3596 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3598 * ld.texinfo (--unique): Update.
3600 2001-01-13 Nick Clifton <nickc@redhat.com>
3602 * lexsup.c (parse_args): Remove spurious white space.
3604 2001-01-12 Nick Clifton <nickc@redhat.com>
3606 * lexsup.c (parse_args): Update copyright date.
3608 2001-01-12 Philip Blundell <pb@futuretv.com>
3610 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3612 2001-01-10 Kazu Hirata <kazu@hxi.com>
3614 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3615 * scripttempl/h8300h.sc: Fix formatting.
3616 * scripttempl/h8300s.sc: Likewise.
3617 * scripttempl/h8500.sc: Likewise.
3618 * scripttempl/h8500b.sc: Likewise.
3619 * scripttempl/h8500c.sc: Likewise.
3620 * scripttempl/h8500m.sc: Likewise.
3621 * scripttempl/h8500s.sc: Likewise.
3623 2000-01-07 David O'Brien <obrien@BSDi.com>
3625 * emultempl/elf32.em: Only perform Linux ld hints processing when
3628 2001-01-07 Philip Blundell <philb@gnu.org>
3630 * ld.texinfo (Bug Reporting): Update email address for reports.
3632 2000-12-31 Nick Clifton <nickc@redhat.com>
3634 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3635 options by checking for a return value of '?' not -1.
3637 2000-12-28 Nick Clifton <nickc@redhat.com>
3639 * lexsup.c (struct ld_option): Add new enum value:
3641 (ld_options[]): Change -omagic, -output and -oformat options
3642 to be EXACTLY_TWO_DASHES.
3643 (OUTPUT_COUNT): Use ARRAY_SIZE.
3644 (parse_args): Change parameter 'argc' to unsigned.
3645 Place EXACTLY_TWO_DASHES options into new really_longopts
3647 If getopt_long_only fails, try calling getopt_long using the
3648 really_longopts array.
3649 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3652 * ldlex.h: Fix prototype of parse_args.
3654 * ld.texinfo: Document that long options starting with 'o'
3655 must be preceeded by two dashes. Change example of a single
3656 dashed long option from -oformat to -trace-symbol.
3658 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3660 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3661 (longopts[]): New --no-default-excludes option.
3662 (gld_${EMULATION_NAME}_list_options): Document.
3663 (gld_${EMULATION_NAME}_parse_args): Handle.
3665 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3667 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3668 whitespace, it breaks the K&R C preprocessor.
3670 2000-12-11 DJ Delorie <dj@redhat.com>
3672 * ld.texinfo: Add notes about --whole-archive and gcc.
3674 2000-11-18 Fred Fish <fnf@be.com>
3676 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3677 (ld_options): Entry for --allow-shlib-undefined.
3678 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3679 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3681 * ld.texinfo: Document new command line switch.
3683 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3685 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3686 .fixup is actually read/write.
3687 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3688 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3689 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3691 2000-12-11 Jan Hubicka <jh@suse.cz>
3693 * NEWS: Add note about x86_64 architecture.
3695 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3697 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3698 Set DWARF2 sections to a VMA of zero.
3700 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3702 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3704 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3705 (sparc*-*-rtems*): Switched from a.out to ELF.
3707 2000-11-30 Jan Hubicka <jh@suse.cz>
3709 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3710 (eelf_x86_64.c): New.
3711 * Makefile.in: Regenerate.
3712 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3713 * emulparams/elf_x86_64.sh: New.
3715 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3717 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3718 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3720 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3721 merging non-a.out sections into CONSTRUCTING.
3723 2000-11-28 Nick Clifton <nickc@redhat.com>
3725 * ld.1 (COPYING): Mention that the GNU Free Documentation
3726 License is present in the sources, but not the output, and
3727 also available from the GNU website.
3728 (GNU Free Documentation License): Comment out this section.
3730 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3732 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3735 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3737 * ld.1: Remove old date so it does not give the impression the manpage
3740 2000-11-24 Nick Clifton <nickc@redhat.com>
3742 * configure.tgt (xscale-coff): Add target.
3743 (xscale-elf): Add target.
3745 2000-11-24 Fred Fish <fnf@be.com>
3747 * ldmain.c (main): Remove redundant init of config.make_executable
3750 2000-11-15 Richard Henderson <rth@redhat.com>
3752 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3754 2000-11-14 Kazu Hirata <kazu@hxi.com>
3756 * scripttempl/h8300.sc: Fix formatting.
3757 * scripttempl/h8300h.sc: Likewise.
3758 * scripttempl/h8300s.sc: Likewise.
3760 2000-11-14 Denis Chertykov <denisc@overta.ru>
3762 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3764 2000-11-09 Philip Blundell <pb@futuretv.com>
3766 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3767 around orphan sections whose names can be represented in C.
3769 2000-11-07 Jim Wilson <wilson@redhat.com>
3771 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3772 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3774 2000-11-06 Nick Clifton <nickc@redhat.com>
3776 * ld.texinfo: Add GNU Free Documentation License.
3777 * ldint.texinfo: Add GNU Free Documentation License.
3778 * ld.1: Add GNU Free Documentation License.
3780 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3782 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3783 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3785 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3786 Move 2000-11-02 Makefile.in changes to this file.
3787 * Makefile.in: Regenerate.
3789 2000-11-03 Nick Clifton <nickc@redhat.com>
3791 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3792 constructors and destructors.
3793 * scripttempl/h8300h.sc: Ditto.
3794 * scripttempl/h8300s.sc: Ditto.
3795 * scripttempl/h8500.sc: Ditto.
3796 * scripttempl/h8500b.sc: Ditto.
3797 * scripttempl/h8500c.sc: Ditto.
3798 * scripttempl/h8500m.sc: Ditto.
3799 * scripttempl/h8500s.sc: Ditto.
3800 * scripttempl/v850.sc: Ditto.
3801 * scripttempl/w65.sc: Ditto.
3802 * scripttempl/z8000.sc: Ditto.
3804 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3806 * Makefile.in (e_i386_chaos.c): New rule.
3807 (ALL_EMULATIONS): Added e_i386_chaos.o.
3808 * emulparams/elf_i386_chaos.sh: New file.
3809 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3811 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3813 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3814 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3815 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3816 library path suffix.
3817 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3819 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3821 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3822 for consecutive sections.
3824 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3826 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3828 * ld.texinfo: Added notes about this new option.
3830 2000-10-16 Nick Clifton <nickc@redhat.com>
3832 * emultempl/pe.em (_after_open): Add tests of return values from
3833 bfd functions. Emit appropriate error messages if necessary.
3835 2000-10-13 Nick Clifton <nickc@redhat.com>
3837 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3838 local variables - they are not used, but leave in the call to
3839 bfd_canonicalize_symtab.
3840 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3841 pe_dll_search_prefix.
3843 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3845 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3846 (longopts): New --dll-search-prefix option.
3847 (gld_${EMULATION_NAME}_list_options): Document.
3848 (gld_${EMULATION_NAME}_parse_args): Handle.
3849 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3850 dynamically, search for a dll named '<prefix><basename>.dll'
3851 in preference to 'lib<basename>.dll' if --dll-search-prefix
3854 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3856 * ldlang.c (section_already_linked): Set kept_section instead of
3859 2000-10-10 Kazu Hirata <kazu@hxi.com>
3861 * deffile.h: Fix formatting.
3862 * lexsup.c: Likewise.
3865 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3867 * pe-dll.c (make_one): Do not generate code thunk for DATA
3869 (process_def_file): deduce DATA flag for auto-export sumbols.
3871 2000-10-09 Kazu Hirata <kazu@hxi.com>
3873 * ld.h: Fix formatting.
3874 * ldcref.c: Likewise.
3875 * ldctor.h: Likewise.
3876 * ldemul.c: Likewise.
3877 * ldemul.h: Likewise.
3878 * ldexp.c: Likewise.
3879 * ldexp.h: Likewise.
3880 * ldfile.c: Likewise.
3881 * ldfile.h: Likewise.
3882 * ldlang.c: Likewise.
3883 * ldlang.h: Likewise.
3884 * ldmain.c: Likewise.
3885 * pe-dll.c: Likewise.
3887 * pe-dll.c: Revert some formatting fixes.
3889 2000-10-08 Kazu Hirata <kazu@hxi.com>
3891 * pe-dll.c: Fix formatting.
3893 2000-10-05 Kazu Hirata <kazu@hxi.com>
3895 * ldlang.c: Fix formatting.
3897 2000-10-03 DJ Delorie <dj@redhat.com>
3899 * pe-dll.c (fill_edata): initialize entire block
3900 (make_one): fill in correct section.
3902 2000-10-03 Kazu Hirata <kazu@hxi.com>
3904 * ldexp.c: Fix formatting.
3906 2000-10-02 DJ Delorie <dj@redhat.com>
3908 * emultempl/pe.em (gld_*_after_open): detect case where there two
3909 import libraries for same dll; rename one to ensure proper link
3912 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3914 (generate_edata): fix typo
3916 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3918 * scripttempl/crisaout.sc (ENTRY): Now __start.
3919 (.text): Add default setting for __start.
3920 Remove CONSTRUCTORS handling.
3921 (/DISCARD/): Add .gnu.warning.*.
3922 * emulparams/crislinux.sh (ENTRY): Now __start.
3923 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3924 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3925 (ENTRY): Now __start.
3926 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3927 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3929 2000-09-29 Kazu Hirata <kazu@hxi.com>
3931 * deffile.h: Fix formatting.
3933 * ldcref.c: Likewise.
3934 * ldctor.c: Likewise.
3935 * ldctor.h: Likewise.
3936 * ldemul.c: Likewise.
3937 * ldemul.h: Likewise.
3938 * ldexp.c: Likewise.
3939 * ldexp.h: Likewise.
3940 * ldfile.c: Likewise.
3941 * ldfile.h: Likewise.
3942 * ldlang.c: Likewise.
3943 * ldlang.h: Likewise.
3944 * lexsup.c: Likewise.
3946 * pe-dll.c: Likewise.
3948 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3950 * pe-dll.c (process_def_file): Uninitialized data wasn't
3951 exported with --export-all-symbols switch.
3953 2000-09-28 DJ Delorie <dj@redhat.com>
3955 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3956 noname work properly.
3958 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3960 * ld.texinfo (HPPA ELF32): New section.
3962 * emultempl/hppaelf.em (group_size): New.
3963 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3964 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3965 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3966 options to prevent abbreviations matching.
3967 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3968 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3970 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3972 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3973 on the m68*-*-elf target. Make it support COFF input objects.
3975 2000-09-21 Kazu Hirata <kazu@hxi.com>
3977 * ldmain.c: Fix formatting.
3978 * ldmisc.c: Likewise.
3979 * ldver.c: Likewise.
3980 * ldwrite.c: Likewise.
3982 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3984 * ldwrite.c (clone_section): Silence gcc warnings.
3986 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3988 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3989 out of memory failure.
3991 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3992 (clone_section): Handle out of memory failures. Rename var to
3993 avoid c++ reserved word.
3995 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3997 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3998 stub_name param to stub_sec_name.
3999 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4001 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4003 * emultempl/m68kelf.em: New file.
4004 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4005 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4006 * Makefile.in: Regenerate.
4008 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4010 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4013 2000-09-13 Nick Clifton <nickc@redhat.com>
4015 * ldmain.c (multiple_definition): Disable relaxation if
4016 multiple symbol definitions are encountered - otherwise the
4017 linker could abort with an assertion failure.
4019 2000-09-10 Nick Clifton <nickc@redhat.com>
4021 * mri.c: Fix formatting.
4023 2000-09-07 H.J. Lu <hjl@gnu.org>
4025 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4026 * configure: Rebuild.
4028 2000-09-07 H.J. Lu <hjl@gnu.org>
4030 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4031 * Makefile.in: Rebuild.
4033 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4035 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4036 broken list handling. Create __start_SECNAME and __stop_SECNAME
4037 when no place-holder. Add some comments. Test both SEC_CODE and
4038 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4039 Handle case where no output section statement created.
4041 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4043 * configure.tgt (sh-*-linux*): Added.
4044 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4045 * Makefile.in: Rebuilt.
4046 * emulparams/shelf_linux.sh: New file.
4047 * emulparams/shlelf_linux.sh: New file.
4049 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4051 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4052 try shuffling sections when the orphan happens to be the place
4053 holder. Keep count of unique section names generated so we speed
4054 the search for a new name.
4056 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4058 * configure: Rebuilt with new libtool.m4.
4060 2000-09-05 Nick Clifton <nickc@redhat.com>
4062 * Makefile.in: Regenerate.
4063 * aclocal.m4: Regenerate.
4064 * configure: Regenerate.
4065 * config.in: Regenerate.
4066 * po/ld.pot: Regenerate.
4068 * ldint.texinfo: Remove CVS revision marker - it foils local
4071 * emultempl/ticoff.em: Remove extraneous comma.
4073 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4075 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4076 to stub section flags.
4077 (hppa_for_each_input_file_wrapper): New.
4078 (hppa_lang_for_each_input_file): New.
4079 (lang_for_each_input_file): Define to call above.
4080 (multi_subspace): New.
4081 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4082 (PARSE_AND_LIST_PROLOGUE): Define.
4083 (PARSE_AND_LIST_LONGOPTS): Define.
4084 (PARSE_AND_LIST_OPTIONS): Define.
4085 (PARSE_AND_LIST_ARGS_CASES): Define.
4086 (hppaelf_finish): Call elf32_hppa_set_gp.
4087 (hppaelf_set_output_arch): Remove.
4088 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4090 * emulparams/hppalinux.sh (ELFSIZE): Define.
4092 (OTHER_READONLY_SECTIONS): Define.
4094 (GENERATE_SHLIB_SCRIPT): Define.
4096 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4097 to const throughout. Change `void *' to `PTR' throughout.
4098 (lang_memory_default): Function is local to file, add `static'.
4100 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4101 (ehppalinux.c): Likewise.
4102 (earmelf.c): Likewise.
4103 (earmelf_linux.c): Likewise.
4104 (earmelf_linux26.c): Likewise.
4105 * Makefile.in: Regenerate.
4107 * ld.h (ld_config_type): Add unique_orphan_sections.
4108 * lexsup.c (OPTION_UNIQUE): Define.
4109 (ld_options): Add "--unique".
4110 (parse_args): Handle it.
4111 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4112 search for an existing output section if unique_orphan_sections is
4113 set. Make use of bfd_get_unique_section_name rather than
4114 duplicating code here.
4115 * ld.texinfo: Describe --unique.
4117 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4118 optional arg to split-by-file.
4119 (parse_args): Handle them.
4120 * ld.texinfo: Update description of these options.
4121 * ldwrite.c (clone_section): Pass in the section name. Replace
4122 local code with bfd_get_unique_section_name.
4123 (split_sections): Tidy code and comments. Use a list traversal
4124 more appropriate to the list construction. Handle cooked section
4125 sizes. Split when split_by_reloc reached rather than exceeded.
4126 Track section size and split when split_by_file reached. Fix
4127 link_order_tail (even though it's not used).
4128 (ldwrite): Modify condition for calling split_sections to suit
4129 changed split_by_reloc and split_by_file.
4130 * ldmain.c (main): Init config.split_by_reloc and
4131 config.split_by_file to -1.
4132 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4133 Change split_by_file to bfd_size_type.
4135 2000-09-02 Nick Clifton <nickc@redhat.com>
4137 * configure.in: Increase version number to 2.10.91.
4138 * NEWS: Mention new ability to support removal of duplicate DWARF2
4140 * configure: Regenerate.
4141 * aclocal.m4: Regenerate.
4142 * config.in: Regenerate.
4144 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4146 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4148 * scripttempl/elf32avr.sc: Ditto.
4149 * scripttempl/elfd10v.sc: Ditto.
4150 * scripttempl/elfd30v.sc: Ditto.
4151 * scripttempl/elfi370.sc: Ditto.
4152 * scripttempl/elfm68hc11.sc: Ditto.
4153 * scripttempl/elfm68hc12.sc: Ditto.
4154 * scripttempl/elfi386beos.sc: Ditto.
4155 * scripttempl/v850.sc: Ditto.
4157 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4159 * acinclude.m4: Include libtool and gettext macros from the
4161 * aclocal.m4, configure: Rebuilt.
4163 2000-08-25 Nick Clifton <nickc@redhat.com>
4165 * ldlang.c (open_output): When choosing the target for a
4166 particular endianness, do nothing if the target is not
4169 2000-08-25 H.J. Lu <hjl@gnu.org>
4171 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4172 check -rpath nor LD_RUN_PATH for cross link.
4173 * ld.texinfo: Document the change.
4175 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4177 * NEWS: Mention support for CRIS.
4179 2000-08-23 H.J. Lu <hjl@gnu.org>
4181 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4182 the current runpath list from bfd_elf_get_runpath_list ()
4185 2000-08-22 H.J. Lu <hjl@gnu.org>
4187 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4188 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4189 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4190 trace_file_tries is non-zero.
4191 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4192 if trace_file_tries is non-zero.
4194 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4197 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4199 * NEWS: Mention i860 support.
4201 2000-08-14 Andreas Schwab <schwab@suse.de>
4203 * scripttempl/elf.sc: Fix last change to use correct comment
4206 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4208 * scripttempl/elf.sc: Add a comment giving the correspondence
4209 between sections, per-datum sections, and linkonce sections. Make
4210 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4213 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4215 * emulparams/elf32_i860.sh: New file.
4216 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4217 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4218 (eelf32_i860.c): New rule.
4219 * Makefile.in: Regenerate.
4221 2000-08-10 Nick Clifton <nickc@cygnus.com>
4223 * emulparams/mipspe.sh (ENTRY): Add definition.
4225 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4227 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4230 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4232 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4233 the final size of .bss section.
4234 * scripttempl/elfm68hc12.sc: Likewise.
4236 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4238 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4239 gld${EMULATION_NAME}_parse_args for consistency. Combine
4240 lastoptind and prevoptind vars, and keep track of last optind.
4241 (gld_${EMULATION_NAME}_list_options): Rename to
4242 gld${EMULATION_NAME}_list_options.
4244 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4246 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4247 (i586-sco-sysv5uw7.1.0).
4249 2000-07-27 H.J. Lu <hjl@gnu.org>
4251 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4252 (PARSE_AND_LIST_PROLOGUE): New.
4253 (PARSE_AND_LIST_LONGOPTS): Likewise.
4254 (PARSE_AND_LIST_OPTIONS): Likewise.
4255 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4256 (PARSE_AND_LIST_EPILOGUE): Likewise.
4258 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4260 * emultempl/armelf.em: Elide functions common to elf32.em,
4261 ie. most of the file.
4262 (arm_elf_after_open): New. Do arm specific things then call
4263 gld${EMULATION_NAME}_after_open.
4264 (arm_elf_before_allocation): New. Call
4265 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4266 (PARSE_AND_LIST_PROLOGUE): Define.
4267 (PARSE_AND_LIST_SHORTOPTS): Define.
4268 (PARSE_AND_LIST_LONGOPTS): Define.
4269 (PARSE_AND_LIST_OPTIONS): Define.
4270 (PARSE_AND_LIST_ARGS_CASES): Define.
4271 (LDEMUL_AFTER_OPEN): Define.
4272 (LDEMUL_BEFORE_ALLOCATION): Define.
4273 (LDEMUL_BEFORE_PARSE): Define.
4274 (LDEMUL_FINISH): Define.
4276 * emultempl/hppaelf.em: Similarly zap most of this file.
4277 (hppaelf_add_stub_section): Prototype.
4278 (hppaelf_layaout_sections_again): Prototype.
4279 (hook_in_stub): Prototype.
4280 (LDEMUL_SET_OUTPUT_ARCH): Define.
4281 (LDEMUL_FINISH): Define.
4282 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4284 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4285 (EXTRA_EM_FILE): New.
4286 * emulparams/armelf_linux.sh: Likewise.
4287 * emulparams/armelf_linux26.sh: Likewise.
4288 * emulparams/hppalinux.sh: Likewise.
4289 * emulparams/hppaelf.sh: Likewise.
4292 * emultempl/elf32.em: Fix formatting.
4293 (EXTRA_EM_FILE): Source it.
4294 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4295 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4296 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4297 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4298 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4299 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4300 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4301 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4302 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4303 allow functions in this file to be overridden.
4304 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4306 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4308 * emultempl/elf32.em: Reorganize file.
4310 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4312 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4313 specific option to fit 64-bit executable in the lower
4314 31-bit address range. This is done by changing start
4315 address of .interp (the very first section of executable)
4316 and then setting EF_ALPHA_32BIT elf header flag.
4318 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4320 * emultempl/m68kcoff.em: New file.
4321 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4322 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4324 * Makefile.in: Regenerate.
4326 2000-07-20 H.J. Lu <hjl@gnu.org>
4328 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4329 and "disable-new-dtags" to stop getopt from treating -d/-e as
4330 abbreviations for these options.
4332 2000-07-20 H.J. Lu <hjl@gnu.org>
4334 * ld.texinfo: Add documentation for --disable-new-dtags and
4337 * ldmain.c (main): Initialize link_info.new_dtags to false.
4339 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4340 --disable-new-dtags and --enable-new-dtags.
4341 (gld_${EMULATION_NAME}_list_options): Likewise.
4343 2000-07-05 Kenneth Block <krblock@computer.org>
4345 * lexsup.c: Add optional style to demangle switch
4346 * ld.texinfo: Document optional style to demangle switch.
4348 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4350 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4352 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4353 Regenerate dependencies.
4354 * Makefile.in: Rebuild.
4355 * configure.tgt (cris-*-*): New target.
4356 * emulparams/crisaout.sh, emulparams/criself.sh,
4357 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4358 * po/POTFILES.in, po/ld.pot: Regenerate.
4360 2000-07-20 H.J. Lu <hjl@gnu.org>
4362 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4363 Print out ignored -z options.
4365 2000-07-19 H.J. Lu <hjl@gnu.org>
4367 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4368 (PARSE_AND_LIST_PROLOGUE): New.
4369 (PARSE_AND_LIST_LONGOPTS): Likewise.
4370 (PARSE_AND_LIST_OPTIONS): Likewise.
4371 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4373 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4375 * lexsup.c (ld_options): Comment out 'z'.
4376 (parse_args): Likewise.
4378 * emultempl/elf32.em: Include "elf/common.h".
4379 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4381 (gld_${EMULATION_NAME}_list_options): Likewise.
4383 * ld.texinfo: Add documentation for the recognized -z options.
4385 2000-07-19 H.J. Lu <hjl@gnu.org>
4387 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4388 bfd_elf_set_dt_needed_soname ().
4390 2000-07-18 DJ Delorie <dj@cygnus.com>
4392 * pe-dll.c (pe_dll_id_target): check object target name also
4394 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4396 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4397 ${INIT_END} if relocating.
4398 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4400 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4402 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4403 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4404 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4405 errors introduced by the old dynamic lib search order.
4407 2000-07-17 DJ Delorie <dj@cygnus.com>
4409 * pe-dll.c (process_def_file): auto-export data items also
4410 (pe_process_import_defs): also see if _imp_ form needed
4412 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4414 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4415 for dll import libraries
4417 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4419 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4420 gcc 2.95.2 and later.
4422 2000-07-11 Kazu Hirata <kazu@hxi.com>
4424 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4427 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4429 * ldemul.h (struct lang_input_statement_struct): Remove forward
4431 (struct search_dirs): Likewise.
4432 * ldfile.h (struct lang_input_statement_struct): Likewise.
4433 Protect file from multiple inclusion.
4434 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4435 declaration from macro to file scope.
4437 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4438 * ldgram.y: Likewise here.
4439 * ldlang.c: And here.
4440 * ldmain.c: And here.
4441 * mpw-elfmips.c: And here.
4442 * mpw-eppcmac.c: And here.
4443 * emultempl/aix.em: And here.
4444 * emultempl/armcoff.em: And here.
4445 * emultempl/armelf.em: And here.
4446 * emultempl/armelf_oabi.em: And here.
4447 * emultempl/beos.em: And here.
4448 * emultempl/elf32.em: And here.
4449 * emultempl/hppaelf.em: And here.
4450 * emultempl/linux.em: And here.
4451 * emultempl/lnk960.em: And here.
4452 * emultempl/pe.em: And here.
4453 * emultempl/sunos.em: And here.
4454 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4455 * mpw-idtmips.c: Ditto.
4456 * emultempl/generic.em: Ditto.
4457 * emultempl/gld960.em: Ditto.
4458 * emultempl/gld960c.em: Ditto.
4459 * emultempl/mipsecoff.em: Ditto.
4460 * emultempl/ticoff.em: Ditto.
4461 * emultempl/vanilla.em: Ditto.
4463 * pe-dll.c: Include ldfile.h
4464 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4466 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4467 arguments to bfd_elf32_size_dynamic_sections call.
4468 (gldelf32ebmip_place_orphan): Add missing arguments to
4469 lang_leave_output_section_statement call.
4471 2000-07-10 H.J. Lu <hjl@gnu.org>
4473 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4475 (strhash): Likewise.
4476 (compute_dll_image_base): Likewise.
4477 (pe_undef_found_sym): Likewise.
4478 (pe_undef_cdecl_match): Likewise.
4479 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4480 argument "arch" with ATTRIBUTE_UNUSED.
4482 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4484 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4486 From Ryan Bradetich <rbradetich@uswest.net>
4487 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4489 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4491 Changes to create multiple linker stubs, positioned immediately
4492 before the section where they are required.
4493 * emultempl/hppaelf.em: Include elf32-hppa.h.
4494 (stub_sec, file_chain): Delete.
4495 (hppaelf_create_output_section_statements): Don't make a stub
4497 (hook_stub_info): New struct.
4498 (hook_in_stub): New function.
4499 (hppaelf_add_stub_section): New function.
4500 (hppaelf_finish): Do nothing for relocateable links. Modify the
4501 call to elf32_hppa_size_stubs. Move code for updating section
4503 (hppaelf_layaout_sections_again): ..to here, a new function.
4505 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4506 broken list handling. Pass in a pointer to the list.
4507 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4509 (hppaelf_before_parse): Prototype.
4510 (hppaelf_set_output_arch): Prototype.
4511 (hppaelf_create_output_section_statements): Prototype.
4512 (hppaelf_delete_padding_statements): Prototype.
4513 (hppaelf_finish): Prototype.
4516 * emultempl/hppaelf.em: Include ctype.h.
4517 (struct orphan_save): New.
4518 (gld${EMULATION_NAME}_place_orphan): New.
4519 (output_rel_find): New.
4520 (hppaelf_get_script): Update from elf32.em.
4521 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4522 Change emulation_name field to "${EMULATION_NAME}". Add
4523 gld${EMULATION_NAME}_place_orphan.
4525 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4526 ehppalinux.o, sort it. Regenerate dependencies.
4527 (ehppalinux.c): Depend on hppaelf.em
4528 * Makefile.in: Regenerate.
4530 * configure.tgt: targ_emul=hppalinux for hppa*linux
4532 * emulparams/hppalinux.sh: New.
4533 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4535 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4537 * lexsup.c (parse_args): Copy section name.
4539 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4541 * emultempl/pe.em: institute the following search order for
4542 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4543 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4544 static lib (libfoo.a) if none of the above are found.
4546 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4548 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4549 (longopts): New --{enable,disable}-auto-image-base options.
4550 (gld_${EMULATION_NAME}_list_options): Document.
4551 (gld_${EMULATION_NAME}_parse): Handle.
4552 (strhash): New static function.
4553 (compute_dll_image_base): New static function.
4554 (gld_${EMULATION_NAME}_set_symbols): Use.
4556 2000-07-05 DJ Delorie <dj@redhat.com>
4560 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4562 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4563 * emulparams/elf32btsmip.sh: New file.
4564 * Makefile.am: Add traditional mips target.
4565 * Makefile.in: Rebuild.
4567 2000-07-01 H.J. Lu <hjl@gnu.org>
4569 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4570 automake to use YLWRAP.
4571 * Makefile.in: Rebuild.
4573 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4575 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4576 (CLEANFILES): Add DEPA.
4577 * Makefile.in: Regenerate.
4579 2000-06-30 Timothy Wall <twall@ppc>
4581 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4582 the page in the upper octet of the address.
4584 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4586 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4588 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4590 * NEWS: arm-elf does --gc-sections too.
4592 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4594 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4596 * Makefile.in: Regenerate.
4598 2000-06-21 H.J. Lu <hjl@gnu.org>
4600 * Makefile.am: Rebuild dependency.
4601 * Makefile.in: Rebuild.
4603 2000-06-20 H.J. Lu <hjl@gnu.org>
4605 * Makefile.am: Rebuild dependency.
4606 * Makefile.in: Rebuild.
4608 2000-06-20 Timothy Wall <twall@cygnus.com>
4610 * scripttempl/tic54xcoff.sc: New.
4611 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4612 * gen-doc.texi: Add flag for TI COFF.
4613 * ld.texinfo: Add documentation for TI COFF handling switches.
4614 * emultempl/ticoff.em: New. TI COFF handling.
4615 * configure.tgt: Add tic54x target.
4616 * Makefile.am: Add tic54x target.
4617 * Makefile.in: Ditto.
4619 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4621 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4622 checking for backslashes.
4624 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4626 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4628 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4630 * NEWS: Update list of targets supporting --gc-sections.
4632 * scripttempl/elf.sc: KEEP .eh_frame contents.
4633 * scripttempl/elfd30v.sc: Same here.
4635 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4637 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4639 * Makefile.in: Rebuild.
4640 * configure.tgt: Recognize m68hc12 and m68hc11.
4641 * scripttempl/elfm68hc12.sc: New file.
4642 * emulparams/m68hc12elfb: New emulation.
4643 * emulparams/m68hc12elf: New emulation.
4644 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4645 (includes a memory.x script to define the ROM and RAM banks).
4646 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4647 New configuration files for support of Motorola 68hc11
4649 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4651 * ldmain.c (main): Only change SEC_READONLY for final link.
4653 2000-06-13 H.J. Lu <hjl@gnu.org>
4655 * configure: Regenerate.
4657 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4659 * configure.in (VERSION): Update to show this is the CVS mainline.
4661 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4663 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4664 input objects to be ECOFF.
4665 (check_sections): einfo takes %B, not %P, to print a BFD name.
4667 2000-06-05 Michael Matz <matz@ifh.de>
4669 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4672 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4674 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4676 * emulparams/avr1200.sh (STACK): Define as 0.
4677 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4678 * emulparams/avr4433.sh (STACK): Likewise.
4679 * emulparams/avr44x4.sh (STACK): Likewise.
4680 * emulparams/avr85xx.sh (STACK): Likewise.
4681 * emulparams/avrmega103.sh (STACK): Likewise.
4682 * emulparams/avrmega161.sh (STACK): Likewise.
4683 * emulparams/avrmega603.sh (STACK): Likewise.
4684 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4685 (__stack): Define from ${STACK} for main().
4687 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4689 * Makefile.am: Update dependencies with "make dep-am"
4690 * Makefile.in: Regenerate.
4692 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4694 * ldmain.c: Include filenames.h.
4695 (set_scripts_dir): Support backslashes in program name.
4697 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4699 * ldmain.c (main): When deciding if ".text" section should be
4700 read-only, don't forget to reset SEC_READONLY because it
4701 could be already set.
4703 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4705 * ld.1: Add documentation for new command line option:
4706 --section-start <sectionname>=<sectionorg>
4707 This is a generic version of -Ttext etc. which accepts
4708 any section name as a parameter instead of just text/data/
4710 * ld.texinfo: More docs.
4712 * lexsup.c: (parse_args): Recognize new command line option.
4713 (ld_options): Add new option.
4715 2000-05-18 H.J. Lu <hjl@gnu.org>
4717 * lexsup.c (parse_args): `i' == `r', not `q'.
4719 2000-05-18 Jeffrey A Law (law@cygnus.com)
4721 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4723 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4724 Rick Gorton <gorton@scrugs.lkg.dec.com>
4726 Add support for '-q' == '--emit-relocs' switch.
4727 * ldmain.c (main): Default to false.
4728 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4729 * NEWS: Describe the emitrelocations switch.
4730 * ld.texinfo: Describe the emitrelocations switch.
4732 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4734 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4735 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4736 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4739 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4741 * lexsup.c (parse_args): Update the year in the copyright notice.
4743 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4745 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4746 Replace defines with those from intl/libgettext.h to quieten gcc
4749 2000-05-10 H.J. Lu <hjl@gnu.org>
4751 * ldlang.c (open_input_bfds): Don't load the same file within
4752 a group again if the whole archive has been loaded already.
4754 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4756 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4757 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4760 2000-05-01 Jim Wilson <wilson@cygnus.com>
4762 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4764 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4765 host "ia64-*-linux-gnu*".
4767 2000-04-29 Andreas Jaeger <aj@suse.de>
4769 * ld.h: Correctly check GCC version.
4771 2000-04-25 Jeffrey A Law (law@cygnus.com)
4773 * Makefile.am: Add PA64 support. Add missing dependencies for
4775 * Makefile.in: Rebuilt.
4776 * configure.tgt: Add PA64 support (currently disabled).
4778 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4780 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4781 (output_rel_find): New function.
4782 (hold_section, hold_use): Delete.
4783 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4784 hold_interp): Make local to place_orphan.
4785 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4786 rather than place_section to find possible previous use of orphan.
4787 Similarly find the place-holder output sections. Use returned
4788 value from lang_enter_output_section_statement rather than calling
4789 lang_output_section_statement_lookup.
4790 * emultempl/armelf.em: Same here.
4791 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4793 * ldlang.c (lang_enter_output_section_statement): Return output
4795 * ldlang.h (lang_enter_output_section_statement): Change
4798 * ldlang.h (lang_output_section_statement): Export it.
4799 * ldlang.c (lang_output_section_statement): Ditto.
4801 2000-04-24 Nick Clifton <nickc@cygnus.com>
4803 * ld.texinfo (Output Section Data): Add note that section data
4804 commands cannot appear outside of section directives.
4806 2000-04-2 Matthew Green <mrg@cygnus.com>
4808 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4810 2000-04-21 Richard Henderson <rth@cygnus.com>
4811 David Mosberger <davidm@hpl.hp.com>
4813 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4814 (eelf64_ia64.c): New rule.
4815 * Makefile.in: Rebuild.
4816 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4817 * emulparams/elf64_ia64.sh: New file.
4819 2000-04-21 Richard Henderson <rth@cygnus.com>
4821 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4823 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4825 * dep-in.sed: Match space at start of file name, not at end.
4827 2000-04-18 H.J. Lu <hjl@gnu.org>
4829 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4830 lang_leave_output_section_statement () after calling
4831 lang_enter_output_section_statement ().
4832 * emultempl/armelf.em: Likewise.
4834 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4836 * emultempl/elf32.em (struct orphan_save): Add section field.
4837 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4838 better order, and place first orphan section as we did before the
4839 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4840 Don't call make_bfd_section here, let wild_doit do the job for us.
4841 Don't build a statement list when we'll only throw it away.
4842 * emultempl/armelf.em: Ditto.
4843 * emultempl/pe.em: Similarly.
4845 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4847 * scripttempl/elfppc.sc: Remove.
4848 * emulparams/elf32ppc.sh: Use elf.sc.
4849 * emulparams/elf32lppc.sh: Use elf.sc.
4850 * emulparams/elf32ppclinux.sh: Use elf.sc.
4851 * emulparams/elf32ppcsim.sh: New file.
4852 * emulparams/elf32lppcsim.sh: New file.
4853 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4854 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4855 * Makefile.in: Regenerate.
4856 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4858 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4860 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4861 ~SEC_ALLOC sections too. Init start address of debug sections.
4862 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4863 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4864 Also set all relocateable section start addresses.
4866 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4868 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4869 Add new BSS_PLT variable for when .plt need not be contained in
4870 the file. Move _etext so that it is also after .fini, and provide
4871 both etext and _etext with a leading underscore. Mark the start
4874 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4876 * emultempl/elf32.em (struct orphan_save): New.
4877 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4878 hold_interp): Make them struct orphan_save.
4879 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4880 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4881 the end of the relevant section list. Also add associated section
4882 statements to the end of any previous orphan statements.
4883 * emultempl/armelf.em: Similarly.
4884 * emultempl/pe.em: Similarly.
4886 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4888 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4890 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4892 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4893 --enable-build-warnings option.
4894 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4895 * Makefile.in, configure: Re-generate.
4897 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4899 * po/ld.pot: Regenerate.
4901 * lexsup.c (help): Restore translated part of bug string.
4903 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4904 (DEP): Quote when passing vars to sub-make. Add warning message
4906 (DEP1): Rewrite for "gcc -MM".
4907 (CLEANFILES): Add DEP2.
4908 Update dependencies.
4909 * Makefile.in: Regenerate.
4911 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4913 * ld.h: #include "bin-bugs.h"
4914 * lexsup.c (help): Use REPORT_BUGS_TO.
4916 2000-03-27 Denis Chertykov <denisc@overta.ru>
4918 * configure.tgt (avr-*-*): New target support.
4919 * Makefile.am: Likewise.
4920 * scripttempl/elf32avr.sc: New script file.
4921 * emulparams/avr1200.sh: New file.
4922 * emulparams/avr23xx.sh: New file.
4923 * emulparams/avr4433.sh New file.
4924 * emulparams/avr44x4.sh New file.
4925 * emulparams/avr85xx.sh New file.
4926 * emulparams/avrmega103.sh New file.
4927 * emulparams/avrmega161.sh New file.
4928 * emulparams/avrmega603.sh New file.
4929 * Makefile.in: Regenerate.
4931 2000-03-09 Andreas Jaeger <aj@suse.de>
4933 * Makefile.am (check-DEJAGNU): Also unset LANG.
4934 * Makefile.in: Rebuild.
4936 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4938 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4941 2000-03-02 H.J. Lu <hjl@gnu.org>
4943 * emulparams/elf32mcore.sh: Include "getopt.h".
4945 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4947 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4949 2000-03-01 H.J. Lu <hjl@gnu.org>
4951 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4952 * emulparams/shpe.sh: Likewise.
4954 2000-03-01 Nick Clifton <nickc@cygnus.com>
4956 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4957 to unused parameters.
4959 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4960 functions only used by DLL code.
4961 (_place_orphan): Initialise 'dollar'.
4963 2000-03-01 H.J. Lu <hjl@gnu.org>
4965 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4966 indicate if the undefined symbol is a fatal error or not.
4967 Don't delete the output file if "fatal" is false.
4969 2000-02-29 H.J. Lu <hjl@gnu.org>
4971 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4972 Set LC_COLLATE and LC_ALL to null and export them. It is for
4973 sort which expects the C locale.
4974 Add $(LIBS) to all $(HOSTING_LIBS).
4975 * Makefile.in: Rebuild.
4977 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4979 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4980 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4981 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4982 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4983 find_potential_libraries.
4985 2000-02-28 Jim Blandy <jimb@redhat.com>
4987 * ldgram.y (exclude_name_list): Don't require a comma to separate
4988 list entries; the lexer considers commas to be valid part of a
4989 filename, so in something like `foo, bar' the comma is considered
4990 part of the first filename, `foo,'.
4991 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4993 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4995 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4996 host "i[3456]86-*-freebsdelf*".
4998 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5000 * scripttempl/i386go32.sc: Move misplaced semicolons.
5002 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5004 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5005 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5006 (eelf64hppa.c, ehppaelf.c): Remove targets.
5007 * Makefile.in: Rebuild.
5009 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5011 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5012 GNU/Linux/sparc, but keep the default as 32.
5014 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5015 it default if sparcv9 or sparc64.
5017 2000-02-24 Nick Clifton <nickc@cygnus.com>
5019 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5020 * Makefile.in: Regenerate.
5021 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5023 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5024 find_potential_libraries.
5025 * ldemul.c (ldemul_find_potential_libraries): New function.
5027 * ldfile.c (ldfile_open_file_search): Allow function to be
5029 (ldfile_open_file): Call ldemul_find_potential_libraries.
5030 * ldfile.h: Add prototype for ldfile_open_file_search.
5032 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5034 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5035 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5037 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5038 (gld_X_find_potential_libraries): New function. Search for
5039 libraries called "*.lib".
5041 * scripttempl/pe.sc: Add .pdata section.
5043 2000-02-23 Richard Henderson <rth@cygnus.com>
5045 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5046 Add and use memory regions.
5048 2000-02-23 Linas Vepstas (linas@linas.org)
5050 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5052 * Makefile.am: Add support for Linux/IBM 370.
5053 * configure.tgt: Likewise.
5055 * Makefile.in: Regenerate.
5057 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5059 * ldlang.c (print_input_section, print_data_statement,
5060 print_reloc_statement, print_padding_statement, insert_pad,
5061 size_input_section, lang_check_section_addresses,
5062 lang_size_sections, lang_do_assignments, lang_set_startof,
5063 lang_one_common): Change `opb' to unsigned.
5064 (lang_do_assignments): Also change `size' to unsigned.
5066 2000-02-16 Richard Henderson <rth@cygnus.com>
5068 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5070 2000-02-16 Timothy Wall <twall@cygnus.com>
5072 * mri.c (mri_draw_tree): Add default LMA region argument to call
5073 to lang_leave_output_section_statement.
5074 * ldlang.h: Update prototypes with LMA region arguments.
5075 * ldlang.c (lang_size_sections): Encapsulate region bounds
5076 checking in os_check_region call.
5077 (os_check_region): New function.
5078 (lang_output_section_statement_lookup): Initialize lma_region.
5079 (lang_leave_output_section_statement): Add LMA region argument.
5080 (lang_leave_overlay): Ditto.
5081 * ldgram.y: Handle LMA region syntax.
5082 * ld.texinfo (Output Section Description): Describe LMA region usage.
5083 * emultempl/armelf.em (gld$place_orphan): Add default value for
5084 lma region in call to lang_leave_output_section_statement.
5085 * emultempl/elf32.em (gld$place_orphan): Add default value for
5086 lma region in call to lang_leave_output_section_statement.
5087 * emultempl/pe.em (gld$place_orphan): Add default value for
5088 lma region in call to lang_leave_output_section_statement.
5091 2000-02-04 Timothy Wall <twall@redhat.com>
5093 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5094 octets when calculating section end addresses.
5096 2000-02-04 Timothy Wall <twall@redhat.com>
5098 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5100 2000-02-03 Timothy Wall <twall@redhat.com>
5102 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5104 * ldlang.c (print_input_section, print_data_statement,
5105 print_reloc_statement, print_padding_statement): Print target
5106 address values and section sizes as bytes, not octets.
5107 (insert_pad) Calculate padding size in octets, and adjust "dot"
5109 (size_input_section) Always adjust "dot" by bytes, not octets.
5110 (lang_check_section_addresses, lang_do_assignments) Adjust
5111 "dot" by bytes, not octets. Use the larger of the directive size
5112 or octets_per_byte for the number of octets actually allocated in
5114 (lang_set_startof) Make sure STARTOF returns a target address.
5115 (lang_one_common) Record size changes in octets.
5116 (lang_abs_symbol_at_end_of) Section end symbol's value is
5117 recorded in target bytes.
5118 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5119 to be clear about behavior when an octet is smaller than one byte.
5121 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5123 * ldcref.c (output_cref): Don't pass message strings to printf
5127 * ldmisc.c (vfinfo): Same here.
5130 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5132 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5133 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5134 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5135 Add missing NULL initialisers, and comments.
5137 2000-01-21 Nick Clifton <nickc@cygnus.com>
5139 * ldlang.c (lang_size_sections): Fix typo in comment.
5141 2000-01-18 H.J. Lu <hjl@gnu.org>
5143 * ldlang.c (lang_size_sections): Also update the current
5144 address of a region if the SEC_NEVER_LOAD bit is not set.
5146 2000-01-10 Philip Blundell <pb@futuretv.com>
5148 * configure.tgt (arm*-*-conix*): New target.
5150 2000-01-07 Nick Clifton <nickc@cygnus.com>
5152 * ld.texinfo (Options): Remind users to preceed linker command
5153 line switches with -Wl, (or whatever is appropriate) if it is
5154 being invoked by a comnpiler driver program.
5155 Fix description of the behaviour of the -n command line switch.
5157 2000-01-05 Catherine Moore <clm@cygnus.com>
5159 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5161 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5162 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5163 (exclude_name_list): New.
5164 ldlang.c (walk_wild_section): Support list of excluded files.
5165 (print_wild_statement): Likewise.
5166 (lang_add_wild): Likewise.
5167 * ldlang.h (lang_wild_statement_type): Likewise.
5168 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5170 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5172 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5173 (process_def_file): Use.
5174 (pe_dll_compat_implib): New variable.
5177 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5178 pe_dll_compat_implib.
5180 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5181 compat-implib options.
5182 (gld_${EMULATION_NAME}_list_options): List new options.
5183 (gld_${EMULATION_NAME}_parse_args): Handle.
5185 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5188 * deffilep.y (opt_name): Allow "." in name.
5190 For older changes see ChangeLog-9899
5196 version-control: never