1 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
3 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
5 (make_one): Create _nm_<symbol> for data only.
7 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
9 * ldlang.c (lang_file_exist): New function.
10 (new_afile): Abort if the filename to be added matches the linker
12 * ldlang.h: Add prototype for lang_file_exist.
13 * lexsup.c (parse_args): Abort if the output filename matches
14 one of the input filenames.
16 2002-10-02 Alan Modra <amodra@bigpond.net.au>
18 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
20 2002-09-30 Alan Modra <amodra@bigpond.net.au>
22 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
23 * scripttempl/elfm68hc11.sc: Likewise.
24 * scripttempl/elfm68hc12.sc: Likewise.
26 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
27 reloc sections just before .rel.plt/.rela.plt.
28 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
29 Only put loadable reloc sections in hold_rel.
31 2002-09-29 H.J. Lu <hjl@gnu.org>
33 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
35 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
37 From "Anita Kulkarni" <AnitaK@kpit.com>
38 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
41 2002-09-25 Alan Modra <amodra@bigpond.net.au>
43 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
45 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
46 SEGMENT_SIZE alignment.
47 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
48 (SEGMENT_SIZE): Define.
50 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
51 (fold_binary): Correct abs - non-abs case.
52 (fold_trinary): New. Split out from exp_fold_tree.
54 2002-09-24 Alan Modra <amodra@bigpond.net.au>
56 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
57 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
58 for start of .data, instead align up to 256M boundary.
59 * scripttempl/aix.sc: Likewise.
61 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
63 * scripttempl/i386go32.sc: Handle bss unique sections.
65 2002-09-21 Alan Modra <amodra@bigpond.net.au>
67 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
69 2002-09-17 Stan Cox <scox@redhat.com>
71 * emulparams/elf32bmipn32-defs.sh: New file.
72 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
73 * emulparams/elf32btsmipn32.sh: Likewise.
74 * emulparams/elf64bmip.sh: Likewise.
75 * emulparams/elf64btsmip.sh: Likewise.
77 2002-09-16 Bruno Haible <bruno@clisp.org>
79 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
81 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
84 2002-09-11 Nick Clifton <nickc@redhat.com>
86 * NEWS: New TI port supports both C4x and C3x series of DSPs.
88 * po/tr.po: Updated Turkish translation.
90 2002-09-06 Jeffrey A Law (law@redhat.com)
92 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
94 2002-09-02 Nick Clifton <nickc@redhat.com>
96 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
98 * emulparams/v850.sh (TEMPLATE_NAME): Define.
100 2002-08-30 Nick Clifton <nickc@redhat.com>
102 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
103 used. Change INSN to start at 0x01000000 and extend for
104 256K (ignoring holes). Start the STACK on a word aligned
106 (.rodata): Start it at the READONLY_START_ADDR.
108 2002-08-30 Alan Modra <amodra@bigpond.net.au>
110 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
112 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
114 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
115 added makefile targets for this file.
116 * Makefile.in: Regenerate.
117 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
118 * NEWS: Mention new port.
120 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
122 * emulparams/tic3xcoff.sh: New file.
123 * emulparams/tic4xcoff.sh: New file.
124 * scripttempl/tic3xcoff.sc: New file.
125 * scripttempl/tic4xcoff.sc: New file.
127 2002-08-28 Alan Modra <amodra@bigpond.net.au>
129 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
130 strtoul and strtoull with bfd_scan_vma.
131 (gld${EMULATION_NAME}_read_file): Likewise.
133 2002-08-28 Alan Modra <amodra@bigpond.net.au>
135 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
137 2002-08-27 Egor Duda <deo@logos-m.ru>
139 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
140 Add symbols for application to access them.
142 2002-08-27 Nick Clifton <nickc@redhat.com>
144 * emultempl/armelf.em: Revert this patch, it is not needed.
146 2002-08-22 Adam Nemet <anemet@lnxw.com>
148 2002-08-20 Dan Kegel <dank@kegel.com>
150 * configure.in: added --with-lib-path argument to ld's configure
152 * ld/NEWS: Document new switch.
153 * ld/README: Mention new switch.
154 * configure: Regenerate.
155 * Makefile.in: Regenerate.
158 2001-04-25 Christopher Faylor <cgf@cygnus.com>
160 * Makefile.in (LIB_PATH): Make configurable.
161 (GENSCRIPTS): Set LIB_PATH in environment.
162 * configure.in: Substitute LIB_PATH.
164 2002-08-22 Adam Nemet <anemet@lnxw.com>
166 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
167 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
168 depending on the type of the function.
169 (arm_elf_convert_thumb_symbol_to_address): New function.
171 2002-08-22 Graeme Peterson <gp@qnx.com>
173 * Makefile.am: Add esh{l}elf_nto.o files.
174 * Makefile.in: Regenerate.
175 * configure.tgt: Add support for sh-**-nto* targets.
176 * emulparams/shelf_nto.sh: New file.
177 * emulparams/shlelf_nto.sh: New file.
179 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
181 * ldlang.c (offsetof): Define if not defined.
183 2002-08-14 H.J. Lu <hjl@gnu.org>
185 * configure.tgt: Always enable 64bit emulations for 32bit
188 2002-08-13 Alan Modra <amodra@bigpond.net.au>
190 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
191 (MAXPAGESIZE): Set to 1.
193 * ld.h (ALIGN_N): Delete.
194 * ldexp.h (align_n): Declare.
195 * ldexp.c (align_n): New function.
196 (fold_binary): Use align_n instead of ALIGN_N.
197 (exp_fold_tree): Likewise.
198 * ldlang.c (lang_size_sections_1): Likewise.
199 (lang_one_common): Likewise.
200 * ld.texinfo (ALIGN): Remove power of 2 restriction.
202 2002-07-31 Graeme Peterson <gp@qnx.com>
204 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
205 * Makefile.am: Add eelf32{l}ppcnto.o files.
206 * Makefile.in: Regenerate.
207 * emulparams/elf32lppcnto.sh: New file.
208 * emulparams/elf32ppcnto.sh: New file.
210 2002-08-07 H.J. Lu <hjl@gnu.org>
212 * ld.texinfo: Document --no-undefined-version.
214 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
215 `script.' fields to 0.
217 * ldmain.c (main): Initialize the allow_undefined_version to
220 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
221 (ld_options): Add --no-undefined-version.
222 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
224 2002-08-07 Nick Clifton <nickc@redhat.com>
226 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
227 an interworking bfd if there are input bfds. (107501)
229 2002-08-06 Alan Modra <amodra@bigpond.net.au>
231 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
234 2002-08-01 Nick Clifton <nickc@redhat.com>
236 * emulparams/armelf.sh: Revert previous delta.
237 * scripttempl/elf.sc: Revert previous delta.
239 2002-07-31 H.J. Lu <hjl@gnu.org>
241 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
244 2002-07-31 H.J. Lu <hjl@gnu.org>
246 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
247 64bit BFD is selected.
249 2002-07-31 H.J. Lu <hjl@gnu.org>
251 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
252 if 64bit BFD is selected.
254 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
256 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
257 link_info.common_skip_ar_aymbols.
258 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
260 * ldmain.c (main): Initialize new field
261 link_info.common_skip_ar_aymbols.
263 2002-07-31 Adam Nemet <anemet@lnxw.com>
265 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
267 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
270 2002-07-31 Nick Clifton <nickc@redhat.com>
272 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
273 of the PDP-11 and 2.11BSD a.out support.
275 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
277 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
279 * Makefile.in: Regenerate.
280 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
281 n32 ABI emulations for these 64 bit targets.
282 * emulparams/elf32bmipn32.sh: Expand comment.
283 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
285 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
287 2002-07-30 Graeme Peterson <gp@qnx.com>
289 * configure.tgt: Add support for arm-*-nto target.
290 * Makefile.am: Add earmnto.o file.
291 * Makefile.in: Regenerate.
292 * NEWS: Mention port of ARM support to QNX.
293 * emulparams/armnto.sh: New file.
295 2002-07-30 Jakub Jelinek <jakub@redhat.com>
297 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
298 for relocatable link.
299 (lang_size_sections_1): Don't make .tbss zero size for relocatable
302 2002-07-26 Bernd Schmidt <bernds@redhat.com>
304 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
307 2002-07-25 Nick Clifton <nickc@redhat.com>
309 * po/sv.po: Updated Swedish translation.
310 * po/es.po: Updated Spanish translation.
311 * po/fr.po: Updated French translation.
313 2002-07-24 Nick Clifton <nickc@redhat.com>
315 * po/sv.po: Updated Swedish translation.
316 * po/es.po: Updated Spanish translation.
318 2002-07-23 Nick Clifton <nickc@redhat.com>
320 * po/fr.po: Updated French translation.
322 2002-07-20 Alan Modra <amodra@bigpond.net.au>
324 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
325 bomb on /DISCARD/ input section.
326 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
327 * emultempl/mmo.em (mmo_place_orphan): Likewise.
329 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
331 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
334 2002-07-16 Denis Chertykov <denisc@overta.ru>
335 Nick Clifton <nickc@redhat.com>
336 Frank Ch. Eigler <fche@redhat.com>
337 John Healy <jhealy@redhat.com>
339 * configure.tgt: Add support for ip2k-elf.
340 * Makefile.am: Add support for ip2k-elf.
341 * Makefile.in: Regenerate.
342 * emulparams/elf32ip2k.sh: New file.
343 * scripttempl/ip2k.sc: New file
344 * NEWS: Mention support for new port.
346 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
348 * NEWS: Add 'Changes in 2.13'.
350 2002-07-14 H.J. Lu <hjl@gnu.org>
352 * ld.texinfo: Document a .symver takes precedence over a
355 2002-07-12 Alan Modra <amodra@bigpond.net.au>
357 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
358 (COMMONPAGESIZE): Define.
360 2002-07-09 Alan Modra <amodra@bigpond.net.au>
362 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
364 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
366 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
367 powerpc-*-openbsd* and sparc64-*-openbsd*.
368 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
369 * Makefile.in: Regenerate.
370 * emulparams/hppaobsd.sh: New file.
372 2002-07-05 Alan Modra <amodra@bigpond.net.au>
374 * ldlang.c (print_wild_statement): Fix output formatting.
376 2002-07-04 Alan Modra <amodra@bigpond.net.au>
378 * ldlang.c: (strip_excluded_output_sections): New function.
379 (lang_process): Call it.
380 (lang_size_sections_1): Revert 2002-06-10 change.
382 2002-07-03 Alan Modra <amodra@bigpond.net.au>
384 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
386 * Makefile.in: Regenerate.
388 2002-07-02 Alan Modra <amodra@bigpond.net.au>
390 * ldfile.c (ldfile_try_open_bfd): Formatting.
392 * ldmisc.c (demangle): Move so that it doesn't intrude between
393 vfinfo comment and body. Add comment.
395 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
397 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
399 2002-07-01 Alan Modra <amodra@bigpond.net.au>
401 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
402 * ldlang.c (entry_sym): Likewise.
403 (ldlang_undef_chain_list_type): Likewise.
404 (lang_finish): Adjust references to entry_symbol.
405 (lang_add_entry): Likewise.
406 (lang_gc_sections): Use link_info.gc_sym_list.
407 (lang_process): Set link_info.gc_sym_list.
408 * ldlex.l: Include bfdlink.h.
409 * ldmain.c (main): Init link_info.gc_sym_list.
410 * emultempl/aix.em: Adjust references to entry_symbol.
411 * emultempl/armcoff.em: Likewise.
412 * emultempl/armelf.em: Likewise.
413 * emultempl/pe.em: Likewise.
414 * emultempl/ppc64elf.em (ppc_after_open): New function.
415 (LDEMUL_AFTER_OPEN): Define.
416 * emulparams/elf64ppc.sh: KEEP .opd sections.
418 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
420 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
421 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
422 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
423 (EEPROM_START_ADDR): Define.
424 (EEPROM_MEMORY): Define.
425 * emulparams/m68hc12elf.sh: Likewise.
426 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
427 section to put soft registers in .page0.
428 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
430 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
432 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
433 section. Add ${RELOCATING-0}.
435 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
437 * emulparams/shelf.sh (STACK_ADDR): Don't define.
438 (OTHER_SECTIONS): Define.
439 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
440 (OTHER_SECTIONS): Undef.
442 2002-06-26 Alan Modra <amodra@bigpond.net.au>
444 * ldmisc.c (demangle): Restore dots stripped from sym name.
446 2002-06-25 H.J. Lu <hjl@gnu.org>
448 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
449 * Makefile.in: Regenerated.
451 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
453 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
454 the size of attached object files, to allow make the object files
455 available via FTP or HTTP and to mention that the mail will be
456 sent to a mailing list.
458 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
460 * ld/configure.host (romp): Drop support.
462 2002-06-18 Chris Demetriou <cgd@broadcom.com>
464 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
465 section flags for SEC_DATA, rather than for SEC_CODE being unset.
467 2002-06-18 Chris Demetriou <cgd@broadcom.com>
469 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
470 format specifier used to print BFD name.
472 2002-06-18 Dave Brolley <brolley@redhat.com>
474 From Catherine Moore, Michael Meissner, Jim Blandy:
475 * emulparams/elf32frv.sh: New file.
476 * configure.tgt: Support frv-*-*.
477 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
478 (eelf32frv.c): New target.
480 2002-06-17 Tom Rix <trix@redhat.com>
482 * emultempl/elf32.em: gld*_get_script: Check for
483 GENERATE_COMBRELOC_SCRIPT.
484 * scripttempl/elfd10v.sc : Fix STACK and INSN.
485 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
487 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
489 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
491 2002-06-12 H.J. Lu <hjl@gnu.org>
493 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
494 false if xvec doesn't match.
496 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
498 * ldlang.c (lang_size_sections_1): Skip removed output sections.
500 2002-06-08 Alan Modra <amodra@bigpond.net.au>
502 * ldexp.c: Replace CONST with const.
503 * ldfile.c: Likewise.
504 * ldfile.h: Likewise.
507 * pe-dll.h: Likewise.
509 2002-06-07 Alan Modra <amodra@bigpond.net.au>
511 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
513 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
515 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
516 to -1 == implicit enable.
517 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
518 initialize link_info.pei386_auto_import to -1 == implicit
520 (gld_${EMULATION_NAME}_parse_args): When processing
521 --enable-auto-import and --disable-auto-import options, use
522 '1' and '0' instead of 'true' and 'false'.
523 (pe_find_data_imports): Only issue message about auto-import
524 when the feature is implicitly enabled. Downgrade message to
525 informational instead of warning.
527 2002-06-07 Alan Modra <amodra@bigpond.net.au>
529 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
531 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
533 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
534 HOSTING_CRT0 and HOSTING_LIBS.
536 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
538 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
540 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
542 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
543 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
545 2002-06-05 Alan Modra <amodra@bigpond.net.au>
547 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
548 SEC_EXCLUDE sections when doing a relocatable link.
550 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
552 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
553 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
554 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
555 (eshlelf64_nbsd.c): New rules.
556 * Makefile.in: Regenerate.
557 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
558 (sh64-*-netbsd*): New targets.
559 * emulparams/shelf32_nbsd.sh: New file.
560 * emulparams/shelf64_nbsd.sh: New file.
561 * emulparams/shlelf32_nbsd.sh: New file.
562 * emulparams/shlelf64_nbsd.sh: New file.
564 2002-06-04 Alan Modra <amodra@bigpond.net.au>
566 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
568 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
570 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
571 C++ constructors/destructors, loosely based on the m68hc11 port.
573 2002-05-31 Alan Modra <amodra@bigpond.net.au>
575 * Makefile.in: Regenerate.
576 * aclocal.m4: Regenerate.
577 * config.in: Regenerate.
578 * configure: Regenerate.
580 2002-05-31 Graeme Peterson <gp@qnx.com>
582 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
583 (ei386nto.c): Add rule.
584 * Makefile.in: Regenerate.
585 * configure.tgt: Add i[3456]86-*-nto-qnx*.
586 * emulparams/i386nto.sh: New file.
588 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
590 * NEWS: Add entry for VAX ELF support.
592 2002-05-29 Matt Thomas <matt@3am-software.com>
593 Jason Thorpe <thorpej@wasabisystems.com>
595 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
597 (evaxnbsd.c): New rules.
598 * Makefile.in: Regenerate.
599 * configure.tgt (vax-*-netbsdelf*)
601 (vax-*-netbsd*): New targets.
602 * emulparams/elf32vax.sh: New file.
603 * emulparams/vaxnbsd.sh: New file.
605 2002-05-29 Adam Nemet <anemet@lnxw.com>
607 * emultempl/armelf.em (arm_elf_after_open): Don't determine
608 bfd_for_interwork, instead add glue sections to each input bfd.
609 (bfd_for_interwork): New global.
610 (arm_elf_set_bfd_for_interworking): New function.
611 (arm_elf_before_allocation): Use it.
613 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
615 * Makefile.am: Add DLX make target.
616 * configure.tgt: Add DLX configuration.
617 * Makefile.in: Regenerate.
618 * emulparams/elf32_dlx.sh: New file
619 * scripttempl/dlx.sc: New file
621 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
623 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
624 * Makefile.in: Regenerate.
625 * emulparams/elf_chaos.sh: Use elf_chaos script.
626 * scripttempl/elf_chaos.sc: New file.
628 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
630 * ldlang.c (lang_size_sections_1): Move check for conflicting load
631 addresses and regions from here...
632 (lang_get_regions): ...to this new function.
633 (lang_leave_output_section_statement): Use lang_get_regions.
634 (lang_leave_overlay): Likewise.
635 * mri.c (mri_draw_tree): Pass null as last argument to
636 lang_leave_output_section_statement.
637 * emultempl/elf32.em (gld*_place_orphan): Likewise.
638 * emultempl/mmo.em (mmo_place_orphan): Likewise.
639 * emultempl/pe.em (gld*_place_orphan): Likewise.
641 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
643 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
645 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
647 * ldemul.c: Fix formatting.
648 * ldfile.c: Likewise.
649 * pe-dll.c: Likewise.
650 * pe-dll.h: Likewise.
652 2002-05-25 Alan Modra <amodra@bigpond.net.au>
654 * ldlang.c (lang_process): Formatting, grammar.
656 * ldlex.l: Use #include "" instead of <> for local header files.
658 2002-05-24 TAMURA Kent <kent@netbsd.org>
660 * configure.tgt: Add a target for i386-netbsdpe.
662 2002-05-23 Jakub Jelinek <jakub@redhat.com>
664 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
665 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
666 output section if necessary. Handle .tbss.
667 (lang_size_sections): Clear _raw_size for .tbss section
668 (it allocates space in PT_TLS segment only).
669 * ldwrite.c (build_link_order): Build link order for .tbss too.
671 2002-05-23 Alan Modra <amodra@bigpond.net.au>
673 * configure.in: Correct spelling of AC_PREREQ.
675 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
677 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
679 (autofilter_objlist): Add crtbegin.o, crtend.o.
681 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
683 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
684 (longopts): Add new option --exclude-libs.
685 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
686 (gld_${EMULATION_NAME}_parse_args): Use it.
687 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
688 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
690 (pe_dll_add_excludes): Set excludes->type.
691 (auto_export): Add new variable libname and set to archive basename if
692 abfd. Use it when filtering default and user-specified libarary
693 excludes. Let string "ALL" mean all libs when filtering user-specified
695 * ld.texinfo: Document --exclude-libs.
697 2002-05-22 Alan Modra <amodra@bigpond.net.au>
699 * ldemul.c (ldemul_new_vers_pattern): New function.
700 * ldemul.h (ldemul_new_vers_pattern): Declare.
701 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
702 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
703 * emultempl/ppc64elf.em (dotsyms): New static var.
704 (gld${EMULATION_NAME}_new_vers_pattern): New function.
705 (LDEMUL_NEW_VERS_PATTERN): Define.
706 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
707 (PARSE_AND_LIST_LONGOPTS): Likewise.
708 (PARSE_AND_LIST_ARGS_CASES): Handle them.
709 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
711 * emultempl/armcoff.em: Likewise.
712 * emultempl/armelf_oabi.em: Likewise.
713 * emultempl/beos.em: Likewise.
714 * emultempl/elf32.em: Likewise.
715 * emultempl/generic.em: Likewise.
716 * emultempl/gld960.em: Likewise.
717 * emultempl/gld960c.em: Likewise.
718 * emultempl/linux.em: Likewise.
719 * emultempl/lnk960.em: Likewise.
720 * emultempl/m68kcoff.em: Likewise.
721 * emultempl/mipsecoff.em: Likewise.
722 * emultempl/pe.em: Likewise.
723 * emultempl/sunos.em: Likewise.
724 * emultempl/ticoff.em: Likewise.
725 * emultempl/vanilla.em: Likewise.
727 2002-05-22 Alan Modra <amodra@bigpond.net.au>
729 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
730 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
731 (LIB_SEARCH_DIRS): No need to use "tr".
732 (COMPILE_IN): Only set for native targets.
733 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
734 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
735 * configure.tgt (powerpc*): Set tdir_*.
736 (powerpcle*): Correct targ_extra_emuls.
737 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
738 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
740 2002-05-22 Alan Modra <amodra@bigpond.net.au>
742 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
743 calling lang_add_entry.
745 2002-05-21 H.J. Lu (hjl@gnu.org)
747 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
749 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
751 * ld.texinfo: Updated for --allow-multiple-definition and
754 * ldmain.c (main): Initialize the allow_multiple_definition
757 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
758 (ld_options): Add --allow-multiple-definition.
759 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
761 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
763 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
764 (earmelfb_nbsd.c): New rule.
765 * Makefile.in: Regenerate.
766 * configure.tgt (armeb-*-netbsdelf*): New target.
767 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
768 (arm-*-netbsd*): Likewise.
769 * emulparams/armelfb_nbsd.sh: New file.
771 2002-05-18 Tom Rix <trix@redhat.com>
773 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
776 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
778 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
779 * Makefile.in: Regenerate.
780 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
782 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
784 * emulparams/avr1.sh: New file.
785 * emulparams/avr2.sh: New file.
786 * emulparams/avr3.sh: New file.
787 * emulparams/avr4.sh: New file.
788 * emulparams/avr5.sh: New file.
789 * scripttempl/avr.sc: New file.
791 2002-05-15 Alan Modra <amodra@bigpond.net.au>
793 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
794 (lang_place_orphans): Abort if just_syms_flag.
796 2002-05-10 Tom Rix <trix@redhat.com>
798 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
799 architecture and machine information in the output bfd.
800 (gld*_before_parse): Remove old arch and machine code.
801 (choose_target): Rename to gld*_choose_target.
802 (rtld): Change type to int.
803 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
804 objects in XCOFF archives.
805 * ldfile.h: Update copyright date.
807 2002-05-10 Jakub Jelinek <jakub@redhat.com>
809 * ldmain.c (main): Enable -z combreloc by default.
811 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
813 * Makefile.am: Honour DESTDIR.
814 * Makefile.in: Regenerate.
816 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
818 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
819 (lang_enter_overlay): Remove the last two parameters.
820 (lang_leave_overlay): Take them here instead.
821 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
822 (section): Pass LMA and crossref flag to lang_leave_overlay rather
823 than lang_enter_overlay.
824 * ldlang.c (lang_memory_region_lookup): Return null for null names.
825 (lang_output_section_statement_lookup): Initialize update_dot_tree.
826 (lang_size_sections_1): Evaluate it.
827 (lang_leave_output_section_statement): Rework LMA lookup.
828 (overlay_lma, overlay_nocrossrefs): Remove.
829 (lang_enter_overlay): Remove LMA and crossref arguments.
830 (lang_enter_overlay_section): Don't set the LMA here.
831 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
832 assignment to the last section's update_dot_tree. Unconditionally
833 use the load and run-time regions specified in the OVERLAY statement.
834 Likewise the first section's LMA. Only set the other sections' LMAs
835 when no load region is given.
837 2002-05-06 Nick Clifton <nickc@redhat.com>
839 * po/sv.po: New translation.
841 2002-05-04 Alan Modra <amodra@bigpond.net.au>
843 * emultempl/hppaelf.em (build_section_lists): New function.
844 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
845 and build_section_lists.
847 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
849 * ld.h: Fix formatting.
851 * ldfile.c: Likewise.
852 * ldlang.c: Likewise.
853 * ldmain.c: Likewise.
854 * lexsup.c: Likewise.
855 * pe-dll.c: Likewise.
857 2002-05-02 Alan Modra <amodra@bigpond.net.au>
859 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
860 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
861 (build_section_lists): Do output_section tests here.
863 2002-04-30 Tom Rix <trix@redhat.com>
865 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
867 2002-05-01 Alan Modra <amodra@bigpond.net.au>
869 Long branch stubs, multiple stub sections.
870 * emultempl/ppc64elf.em: Include ldctor.h.
871 (stub_file): New var.
872 (group_size): New var.
873 (ppc_create_output_section_statements): New function.
874 (struct hook_stub_info): New.
875 (hook_in_stub): New function.
876 (ppc_add_stub_section): New function.
877 (ppc_layout_sections_again): New function.
878 (build_section_lists): New function.
879 (gld${EMULATION_NAME}_finish): Rewrite.
880 (real_func): New var.
881 (ppc_for_each_input_file_wrapper): New function.
882 (ppc_lang_for_each_input_file): New function.
883 (lang_for_each_input_file): Define.
884 (PARSE_AND_LIST_PROLOGUE): Define.
885 (PARSE_AND_LIST_LONGOPTS): Define.
886 (PARSE_AND_LIST_OPTIONS): Define.
887 (PARSE_AND_LIST_ARGS_CASES): Define.
888 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
890 2002-04-30 Tom Rix <trix@redhat.com>
892 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
893 -blibpath, -bnolibpath support.
895 2002-04-30 Mark Mitchell <mark@codesourcery.com>
897 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
898 (eelf32ppcwindiss.c): New target.
899 * Makefile.in: Regenerated.
900 * configure.tgt: Add support for powerpc-*-windiss.
901 * emulparams/elf32ppcwindiss.sh: New file.
903 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
905 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
906 * ldexp.c (exp_print_token): Add "infix_p" argument.
907 (exp_print_tree): Update accordingly.
909 2002-04-28 Alan Modra <amodra@bigpond.net.au>
911 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
912 * Makefile.in: Regenerate.
913 * mpw-elfmips.c: Delete.
914 * mpw-eppcmac.c: Delete.
916 * mpw-idtmips.c: Delete.
918 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
920 * emulparams/shelf32.sh (MACHINE): Now sh5.
922 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
924 * ldgram.y: Fix syntax warning.
926 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
928 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
929 to prevent "-n" from being taken as an abbreviation for
930 "--no-pipeline-knowledge".
932 2002-04-08 Alan Modra <amodra@bigpond.net.au>
934 * ldlang.c (lang_size_sections_1): Don't complain about
935 SEC_NEVER_LOAD sections having no memory region specified.
937 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
939 2002-04-07 matthew green <mrg@redhat.com>
941 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
943 2002-04-04 Alan Modra <amodra@bigpond.net.au>
945 * dep-in.sed: Cope with absolute paths.
946 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
948 * Makefile.in: Regenerate.
950 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
952 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
954 2002-04-03 Jakub Jelinek <jakub@redhat.com>
956 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
957 is smaller than maximum, round dot up to common page boundary.
959 2002-03-28 Alan Modra <amodra@bigpond.net.au>
961 * configure.host: Set up for generic hosts first, then tweak as
962 necessary in more specific targets.
963 (HOSTING_LIBS): Include libgcc_eh.a if found.
965 2002-03-23 Andreas Jaeger <aj@suse.de>
967 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
969 2002-03-21 Alan Modra <amodra@bigpond.net.au>
971 * Makefile.am: Run "make dep-am".
972 * Makefile.in: Regenerate.
974 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
976 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
978 2002-03-20 Alan Modra <amodra@bigpond.net.au>
980 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
981 add the symbol to the linker hash table immediately.
982 (lang_place_undefineds): Split symbol creation out..
983 (insert_undefined): ..to here.
985 2002-03-18 David O'Brien <obrien@FreeBSD.org>
987 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
988 the contents of the buffer returned from basename function will are
989 getting overwritten while still being used.
991 2002-03-18 Jan Hubicka <jh@suse.cz>
992 Andreas Jaeger <aj@suse.de>
993 Andreas Schwab <schwab@suse.de>
995 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
996 * elf_x86_64.sh (ARCH): Set to i386:x86-64
997 set libraries to default to lib64 paths.
999 2002-03-18 Tom Rix <trix@redhat.com>
1001 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1002 * configure.tgt : Same.
1003 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1004 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1005 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1006 emulation parameters for better -b32, -b64 support.
1007 * emulparms/aixrs6.sh : Same.
1008 * emulparms/ppcmacos.sh : Same.
1009 * emultempl/aix.em (choose_target) : Use new emulation parameters
1010 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1011 * Makefile.in : Regenerate.
1013 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1015 * po/fr.po: Updated version.
1017 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1019 * ldmain.c (main): Move .text readonly flag fudges from here..
1020 * ldlang.c (lang_process): ..to here.
1022 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1024 * ldlang.c (lang_check): Remove the word size check added in last
1025 change. Treat emitrelocations case as for relocatable links.
1027 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1029 * po/fr.po: Updated version.
1031 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1033 * ldlang.c (lang_check): Do relocatable link checks first, so that
1034 warn_mismatch can't override. Check compatible and word size too.
1036 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1038 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1040 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1042 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1045 2002-03-04 H.J. Lu <hjl@gnu.org>
1047 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1048 .fini_array in the data segment.
1050 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1052 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1054 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1056 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1057 .init_array, and .fini_array.
1059 2002-02-20 Andreas Schwab <schwab@suse.de>
1061 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1062 .IA64_unwind* in a relocatable link.
1064 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1066 * NEWS: Mark 2.12 branch.
1068 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1070 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1071 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1073 2002-02-18 Tom Rix <trix@redhat.com>
1075 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1076 (gld*_before_allocation): Same.
1077 (gld*_create_output_section_statements): Generate
1078 __rtinit if run time linking. Add librtl.a to the link.
1079 (gld*_read_file): Clean.
1081 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1083 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1085 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1087 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1088 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1089 and eelf64alpha_fbsd.
1090 * Makefile.in: Regenerate.
1091 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1092 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1093 use a FreeBSD-specific emulation rather than the psABI one.
1094 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1095 for all FreeBSD ELF systems.
1096 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1098 * emulparams/elf32ppc_fbsd.sh: Likewise.
1099 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1100 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1101 * emulparams/elf64alpha_fbsd.sh: Likewise.
1102 * emulparams/elf_i386_fbsd.sh: Likewise.
1103 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1105 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1107 * po/tr.po: Updated version.
1109 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1111 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1114 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1116 * emultempl/mmo.em (mmo_after_open): Don't call
1117 _bfd_mmix_check_all_relocs when producing ELF output.
1119 2002-02-15 Richard Henderson <rth@redhat.com>
1121 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1122 definition. Emit a unop+nop pair.
1124 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1126 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1127 for presence of .MMIX.reg_contents.linker_allocated before early
1130 * NEWS: Mention support for MMIX.
1132 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1134 Support arbitrary length fill patterns.
1135 * ld.texinfo (Output Section Fill): Describe fill expressions.
1136 (FILL): Refer to the above.
1137 * ldexp.h (etree_value_type): Add "str" field.
1138 (union etree_union): Add "str" to "value" struct.
1139 (exp_bigintop): Declare.
1140 (exp_get_fill): Declare.
1141 * ldexp.c: Include "safe-ctype.h".
1142 (exp_intop): Set value.str to NULL.
1143 (exp_bigintop): New function.
1144 (new_rel): Pass in "str", and set new.str from it.
1145 (new_rel_from_section): Set new.str to NULL.
1146 (fold_name): Adjust calls to new_rel.
1147 (exp_fold_tree): Likewise.
1148 (exp_get_fill): New function.
1149 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1150 (INT): Returns a "bigint". Adjust all code handling INTs.
1151 (fill_opt): Returns a "fill".
1152 (fill_exp): Split out of fill_opt, use for FILL.
1153 * ldlang.h (struct _fill_type): New.
1154 (fill_type): Move typedef to ldexp.h.
1155 (lang_output_section_statement_type): "fill" is now a pointer.
1156 (lang_fill_statement_type): Likewise.
1157 (lang_padding_statement_type): Likewise.
1158 (lang_add_fill): Now takes a "fill_type *" param.
1159 (lang_leave_output_section_statement): Likewise.
1160 (lang_do_assignments): Likewise.
1161 (lang_size_sections): Likewise.
1162 (lang_leave_overlay_section): Likewise.
1163 (lang_leave_overlay): Likewise.
1164 * ldlang.c: Include ldgram.h after ldexp.h.
1165 (lang_output_section_statement_lookup): Adjust for fill_type change.
1166 (print_fill_statement): Likewise.
1167 (print_padding_statement): Likewise.
1168 (insert_pad): Now takes a "fill_type *" arg.
1169 (size_input_section): Likewise.
1170 (lang_size_sections_1): Likewise.
1171 (lang_size_sections): Likewise.
1172 (lang_do_assignments): Likewise.
1173 (lang_add_fill): Likewise.
1174 (lang_leave_output_section_statement): Likewise.
1175 (lang_leave_overlay_section): Likewise.
1176 (lang_leave_overlay): Likewise.
1177 Adjust all callers of the above function.
1178 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1179 starting with "0X" as well as "0x". Return bigint.str for hex
1180 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1181 Always use base 16 for numbers starting with "$".
1182 * ldmain.c: Include ldgram.h after ldexp.h.
1183 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1184 of bfd_fill_link_order.
1185 * pe-dll.c: Adjust lang_do_assignments calls.
1186 * emultempl/elf32.em: Likewise.
1187 * emultempl/hppaelf.em: Likewise.
1188 * emultempl/ppc64elf.em: Likewise.
1189 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1190 lang_add_assignment call.
1191 * emultempl/pe.em: Likewise.
1193 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1195 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1196 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1197 the pattern in question is not a regexp.
1198 * ldlang.c: Likewise.
1199 * ldlang.h: Likewise.
1200 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1202 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1204 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1205 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1206 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1207 * ldexp.c (exp_data_seg): New variable.
1208 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1209 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1210 (exp_fold_tree): Handle DATA_SEGMENT_END.
1211 Pass allocation_done when recursing instead of hardcoding
1212 lang_allocating_phase_enum.
1213 * ldexp.h (exp_data_seg): New.
1214 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1215 (lang_size_sections): New.
1216 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1217 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1218 if COMMONPAGESIZE is defined.
1219 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1220 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1221 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1222 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1223 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1226 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1228 * Makefile.in: Regenerate.
1230 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1232 * lexsup.c: Remove strtoul declaration.
1234 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1236 * ldmain.c: Add prototype for main ().
1237 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1238 * emultempl/lnk960.em (lnk960_choose_target): Function should
1241 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1243 * ldlang.c (entry_section): New initialised variable.
1244 (lang_finish): Use it.
1245 * ldlang.h (entry_section): Declare.
1246 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1247 entry_section to ".opd".
1249 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1251 * ld.texinfo (Options): Add back in -nostdlib documentation,
1252 which had been inadvertently removed.
1254 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1256 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1257 register section vma to a sane value after emitting error. Make
1258 fatal conditions cause program exit when emitting message.
1260 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1262 * configure.tgt: Add or32-*-rtems target.
1264 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1266 Contribute sh64-elf.
1267 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1268 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1269 in OTHER_RELOCATABLE_SECTIONS.
1270 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1271 * emulparams/shelf32.sh (STACK_ADDR): Define.
1272 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1273 (OTHER_SECTIONS): this. Removed stack settings.
1274 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1275 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1276 2001-03-12 DJ Delorie <dj@redhat.com>
1277 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1278 relaxing if any shmedia or mixed sections are found.
1279 2001-03-07 DJ Delorie <dj@redhat.com>
1280 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1281 einfo. Gracefully decline to output to non-elf formats.
1282 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1283 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1284 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1285 * emulparams/shelf32.sh: Ditto.
1286 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1287 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1289 2001-01-10 Ben Elliston <bje@redhat.com>
1290 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1291 non-portable shell constructs. From Hans-Peter Nilsson.
1292 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1293 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1294 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1295 dependencies to the shell script include chain.
1296 * Makefile.in: Regenerate.
1297 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1298 * emultempl/sh64elf.em: Update and tweak comments.
1299 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1300 make a .cranges section SEC_IN_MEMORY.
1301 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1302 * emultempl/sh64elf.em
1303 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1304 .cranges section found to be necessary; continue and set stored
1305 section contents flags for sections with non-mixed contents.
1306 Use a struct sh64_section_data container and sh64_elf_section_data
1307 to store contents-type flags.
1308 Remove unused update of "isec".
1309 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1310 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1311 access contents-type flags. Assert that the associated container
1312 is initialized. Use that container, not elf_gp_size, to hold size
1313 of linker-generated cranges contents.
1314 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1315 * emultempl/sh64elf.em
1316 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1317 there's already a .cranges section. When section flag difference
1318 is found, don't NULL-check cranges a second time. Tweak comments.
1319 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1320 merging, not max size, as size of ld-generated .cranges contents.
1321 Don't set ELF section flags in output section. When checking for
1322 needed .cranges descriptors, don't use a variable; compare
1323 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1325 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1326 * emultempl/sh64elf.em: New file.
1327 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1328 * Makefile.in: Regenerate.
1329 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1330 (OTHER_RELOCATING_SECTIONS): Ditto.
1331 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1332 * emulparams/shlelf32.sh: Stub out all settings except
1333 OUTPUT_FORMAT. Source shelf32.sh.
1334 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1335 OTHER_RELOCATING_SECTIONS.
1336 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1337 * emulparams/shlelf64.sh: Stub out all settings except
1338 OUTPUT_FORMAT. Source shelf64.sh.
1339 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1340 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1342 (DATA_START_SYMBOLS): Define, provide ___data.
1343 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1344 for consecutive .data section.
1345 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1346 section after .data section.
1347 * emulparams/shlelf64.sh: Ditto.
1348 * emulparams/shelf32.sh: Ditto.
1349 (ALIGNMENT): Define to 8.
1350 * emulparams/shelf32.sh: Ditto.
1351 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1352 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1353 built-in linker scripts.
1354 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1355 * emulparams/shlelf64.sh: New.
1356 * emulparams/shelf64.sh: New.
1357 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1359 * Makefile.am: Add support for shlelf64 and shelf64.
1360 * Makefile.in: Regenerate.
1361 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1362 * configure.tgt (sh64-*-elf*): Add shelf as default.
1363 Add shlelf to targ_extra_emuls.
1364 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1365 * emulparams/shelf32.sh: New file.
1366 * emulparams/shlelf32.sh: New file.
1367 * Makefile.am: Add support for shlelf32 and shelf32.
1368 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1369 * Makefile.in: Regenerate.
1371 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1373 * ldlang.c (lang_reset_memory_regions): Rename from
1374 reset_memory_regions. Change all callers. Make public.
1375 * ldlang.h (lang_reset_memory_regions): Prototype.
1376 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1377 lang_reset_memory_regions before lang_size_sections.
1378 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1379 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1381 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1383 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1384 arithmetic when checking for too many global registers.
1386 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1388 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1389 (ehppanbsd.c): New rule.
1390 * Makefile.in: Regenerate.
1391 * configure.tgt (hppa*-*-netbsd*): New target.
1392 * emulparams/hppalinux.sh: Add comment to check other files
1393 that source this file it is modified, and list which
1395 * emulparams/hppanbsd.sh: New file.
1397 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1399 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1402 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1404 Support on-demand global register allocation from
1405 R_MMIX_BASE_PLUS_OFFSET relocs.
1406 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1407 mmix_set_reg_section_vma. Call
1408 _bfd_mmix_finalize_linker_allocated_gregs.
1409 (mmix_before_allocation): New function.
1410 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1411 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1412 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1413 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1414 before .MMIX.reg_contents.
1415 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1416 (mmo_after_open): New function.
1417 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1418 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1419 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1421 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1423 * emulparams/or32.sh: New file.
1424 * emulparams/or32elf.sh: New file.
1425 * scripttempl/or32.sc: New file.
1426 * configure.tgt : Add support for or32.
1427 * configure: Regenerate
1428 * Makefile.am: Add support for or32.
1429 * Makefile.in: Regenerate.
1430 * NEWS: Mention support for or32.
1431 * po/ld.pot: Regenerate.
1433 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1434 Mitch Lichtenberg <mpl@broadcom.com>
1436 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1437 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1438 reloc creation (ld --embedded-relocs).
1440 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1442 * configure: Regenerated.
1444 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1446 * Makefile.am (install): Depend on install-info.
1447 * Makefile.in: Regenerate.
1449 2002-01-26 Christian Rose <menthos@menthos.com>
1451 * ldmain.c (main): Use full sentences to ease translation.
1453 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1455 * po/fr.po: Updated version.
1457 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1459 * po/es.po: Updated version.
1461 2002-01-25 Andreas Jaeger <aj@suse.de>
1463 * ldlex.l (yy_input): Correct error check.
1465 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1467 * ldmisc.c (demangle): Put back dots when string not demangled.
1469 2002-01-22 Richard Henderson <rth@redhat.com>
1471 * emulparams/elf64alpha.sh (NOP): Use unop.
1473 2002-01-21 Andreas Jaeger <aj@suse.de>
1475 * ldlex.l: Use fread instead of read.
1477 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1479 * configure.tgt (ia64-*-netbsd*): New target.
1481 2002-01-21 H.J. Lu <hjl@gnu.org>
1483 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1485 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1487 2002-01-18 Andreas Jaeger <aj@suse.de>
1489 * ldver.c (ldversion): Update year.
1491 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1493 * po/ld.pot: Regenerate.
1495 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1497 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1498 * Makefile.in: Regenerate.
1499 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1500 * emultempl/ppc64elf.em: New file.
1502 2002-01-15 DJ Delorie <dj@redhat.com>
1504 * scripttempl/pe.sc: Add support for constructor priorities.
1506 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1508 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1509 * emulparams/avr23xx.sh: Likewise.
1510 * emulparams/avr4433.sh: Likewise.
1511 * emulparams/avr44x4.sh: Likewise.
1512 * emulparams/avr85xx.sh: Likewise.
1513 * emulparams/avrmega103.sh: Likewise.
1514 * emulparams/avrmega161.sh: Likewise.
1515 * emulparams/avrmega603.sh: Likewise.
1516 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1518 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1520 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1521 archive is excluded.
1523 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1525 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1526 (eshelf_nbsd.c): New rule.
1527 (eshlelf_nbsd.c): New rule.
1528 * Makefile.in: Regenerate.
1529 * configure.tgt (sh*le-*-netbsdelf*): New target.
1530 (sh*-*-netbsdelf*): New target.
1531 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1532 * ld/emulparams/shelf_nbsd.sh: New emulation.
1533 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1535 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1537 * po/es.po: New file: Spanish translation.
1538 * configure.in (ALL_LINGUAS): Add es.
1539 * configure: Regenerate.
1541 2002-01-06 John Marshall <jmarshall@acm.org>
1543 * ld.texinfo: Note that --emit-relocs is currently only
1544 implemented for ELF.
1546 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1548 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1549 of bfd_section_list_remove and bfd_section_list_insert macros.
1550 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1551 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1553 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1555 * configure.tgt (x86_64-*-netbsd*): New target.
1557 2001-12-21 Tom Rix <trix@redhat.com>
1559 (gld*_create_output_section_statements): New function.
1560 For -binitfini support.
1561 * emultempl/aix.em (gld*_before_parse): Fix comment.
1562 * emultempl/aix.em (gld*_parse_args): Fix comment.
1564 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1566 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1568 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1570 * configure.tgt (arm-*-netbsdelf*): Add target.
1571 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1572 * emulparams/armelf_nbsd.sh: Added.
1573 * Makefile.am: Add rules for earmelf_nbsd.
1574 * Makefile.in: Regenerate.
1576 2001-12-19 Andreas Jaeger <aj@suse.de>,
1577 Susanne Oberhauser <froh@suse.de>
1579 * configure.host: Add rules for x86_64-*linux-gnu. Change
1580 s390x-linux entry to use gcc to report configuration, replace gcc
1581 with $CC in s390-linux
1583 2001-12-19 Andreas Jaeger <aj@suse.de>
1585 * ld.texinfo (VERSION): Fix markup.
1587 2001-12-18 matthew green <mrg@eterna.com.au>
1589 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1590 (m68kelfnbsd.c): New rule.
1591 * Makefile.in: Regenerate.
1592 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1593 (m68*-*-netbsd*4k*): .. this.
1594 (m68*-*-netbsdelf*): New target.
1595 (m68*-*-netbsd*): Also include ELF support.
1596 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1597 * emulparams/m68kelfnbsd.sh: New emulation.
1599 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1601 * ldgram.y (vers_node): Support anonymous version tags.
1602 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1603 tag is not defined together with non-anonymous versions.
1604 * ld.texinfo: Document it.
1606 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1608 * po/tr.po: New file: Turkish translation.
1609 * configure.in (ALL_LINGUAS): Add tr.
1610 * configure: Regenerate.
1612 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1614 * Makefile.am: Add rules for eelf64alpha_nbsd.
1615 * Makefile.in: Regenerate.
1616 * configure.tgt (alpha*-*-netbsd*): Set
1617 targ_emul to elf64alpha_nbsd.
1618 * emulparams/elf64alpha_nbsd.sh: Added.
1620 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1622 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1623 section_tail when fiddling with section list.
1624 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1625 broken into separate strings to make translation easier.
1626 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1627 fiddling with section list.
1628 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1630 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1632 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1634 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1636 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1638 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1640 * emultempl/elf32.em (finish): Supply output_bfd
1641 to bfd_elf*_discard_info.
1642 (OPTION_EH_FRAME_HDR): Define.
1643 (longopts): Add --eh-frame-hdr.
1644 (parse_args): Handle it.
1645 (list_options): Add --eh-frame-hdr to help.
1646 * emultempl/hppaelf.em (finish): Supply output_bfd
1647 to bfd_elf*_discard_info.
1648 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1650 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1652 * lexsup.c (parse_args): Don't pass shortopts to second call to
1653 getopt functions. Restore optind rather than decrementing before
1654 second call. Remove errind as it now duplicates last_optind.
1656 2001-12-11 Christopher Faylor <cgf@redhat.com>
1658 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1660 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1661 Richard Henderson <rth@redhat.com>
1663 * Makefile.am: Add support for xstormy16.
1664 * configure.tgt: Add support for xstormy16.
1665 * Makefile.in: Regenerate.
1666 * emulparams/elf32xstormy16.sh: New file.
1667 * scripttempl/xstormy16.sc: New file.
1669 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1671 * Makefile.in (LIB_PATH): Make configurable.
1672 (GENSCRIPTS): Set LIB_PATH in environment.
1673 * configure.in: Substitute LIB_PATH.
1674 * configure: Regenerate.
1675 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1676 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1678 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1680 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1681 describing the -N option so that it is easier to translate into
1684 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1686 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1687 statements describing a single option with a single, newline
1688 escaped fprintf. This allows better translation into other
1691 * ldmain.c (add_archive_element): Combine multiple strings
1692 into a single string to permit better translation into other
1695 2001-12-05 Tom Rix <trix@redhat.com>
1697 * Makefile.am: Remove eaixppc64.
1698 * Makefile.in: Regenerate.
1700 2001-12-04 Tom Rix <trix@redhat.com>
1702 * emultempl/aix.em (choose_target): Change default target to
1703 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1705 (gld*_read_file): Fix typo.
1706 (change_symbol_mode): Add prototype.
1709 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1710 * emulparams/aixrs6.sh : Same.
1711 * emulparams/ppcmacos.sh : Same.
1712 * emulparams/aixppc64.sh : Delete file.
1713 * emultempl/aix.em : Formatting changes.
1715 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1717 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1718 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1720 (OTHER_END_SYMBOLS): Fix formatting.
1721 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1722 (OTHER_END_SYMBOLS): Fix formatting.
1724 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1726 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1728 2001-12-02 Tom Rix <trix@redhat.com>
1730 * configure.tgt : Remove eaixppc64 emulations.
1731 * Makefile.in : Remove eaixppc64.c
1732 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1733 (ldemul_default_target): Same.
1734 * emultempl/gld960.em (gld960_choose_target): Same.
1735 * emultempl/gld960c.em (gld960_choose_target): Same.
1736 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1737 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1738 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1739 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1740 * emultempl/aix.em (choose_target): New function. Handle emulation of
1743 2001-11-27 H.J. Lu <hjl@gnu.org>
1745 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1746 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1747 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1748 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1749 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1750 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1751 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1752 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1754 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1757 (REL_SDATA): Likewise.
1758 (REL_SBSS): Likewise.
1759 (REL_SDATA2): Likewise.
1760 (REL_SBSS2): Likewise.
1761 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1764 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1766 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1768 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1770 2001-11-22 H.J. Lu <hjl@gnu.org>
1772 * Makefile.in: Regenerated with automake based on automake
1773 1.4-8 in RedHat 7.1.
1775 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1777 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1778 (config.status): Delete rule.
1779 Add extra dependencies to cover sourced emulparams files.
1780 * Makefile.in: Regenerate.
1782 * scripttempl/elf.sc: Order <section>, <section>.* and
1783 corresponding linkonce sections as seen in input files.
1784 Formatting fixes. Zero vma of all sections if not relocating.
1785 (STACK): Define and insert if STACK_ADDR defined.
1786 (OTHER_RELOCATING_SECTIONS): Delete.
1787 (OTHER_END_SYMBOLS): Define.
1788 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1789 (OTHER_READWRITE_SECTIONS): Likewise.
1790 (OTHER_GOT_SECTIONS): Likewise.
1791 (OTHER_SDATA_SECTIONS): Likewise.
1792 (OTHER_BSS_SECTIONS): Likewise.
1793 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1794 (OTHER_READWRITE_SECTIONS): Likewise.
1795 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1796 (OTHER_READWRITE_SECTIONS): Likewise
1798 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1799 (STACK_ADDR): Define.
1800 * emulparams/armelf_oabi.sh: As for armelf.sh.
1801 * emulparams/elf32mcore.sh: As for armelf.sh.
1802 * emulparams/h8300elf.sh: As for armelf.sh.
1803 * emulparams/mn10200.sh: As for armelf.sh.
1804 * emulparams/shelf.sh: As for armelf.sh.
1806 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1807 (OTHER_END_SYMBOLS): Define.
1808 * emulparams/m32relf.sh: As for elf32fr30.sh.
1809 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1810 * emulparams/h8300self.sh: As for elf32fr30.sh.
1812 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1813 defines with RELOCATING test.
1814 (OTHER_SDATA_SECTIONS): Likewise.
1815 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1816 (OTHER_END_SYMBOLS): ..this.
1817 * emulparams/crislinux.sh: As for criself.sh.
1819 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1821 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1822 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1823 normal and linkonce sections as seen in input files.
1824 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1825 (TEXT_DYNAMIC): Likewise.
1826 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1827 (OTHER_SDATA_SECTIONS): Likewise.
1828 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1829 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1830 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1831 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1832 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1833 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1834 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1835 sections as seen in input files.
1836 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1837 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1839 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1840 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1841 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1842 (OTHER_SECTIONS): Instead, use this..
1843 (OTHER_END_SYMBOLS): ..and this.
1845 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1846 * emulparams/elf32bsmip.sh: Likewise.
1847 * emulparams/elf32btsmip.sh: Likewise.
1848 * emulparams/elf32ebmip.sh: Likewise.
1849 * emulparams/elf32lmip.sh: Likewise.
1850 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1851 * emulparams/elf32lsmip.sh: Likewise.
1852 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1853 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1854 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1855 * emulparams/elf64btsmip.sh: Likewise.
1856 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1857 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1858 * emulparams/elf32ppclinux.sh: Likewise.
1859 * emulparams/elf32ppcsim.sh: Likewise.
1860 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1861 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1862 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1863 * emulparams/h8300self.sh: Likewise.
1864 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1865 * emulparams/sh.sh: Comment.
1866 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1867 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1868 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1870 2001-11-21 David Heine <dlheine@tensilica.com>
1871 Alan Modra <amodra@bigpond.net.au>
1873 * ldlang.c (map_input_to_output_sections): Replace "break"
1874 accidentally removed with 2001-08-03 change.
1875 (lang_gc_sections_1): Likewise.
1877 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1879 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1881 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1883 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1884 of false when calling lang_size_sections.
1885 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1887 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1889 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1890 function when LDEMUL_FINISH isn't set to the same name. Don't
1891 call ${LDEMUL_FINISH}.
1892 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1893 * emultempl/armelf.em (arm_elf_finish): Call
1894 gld${EMULATION_NAME}_finish.
1895 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1896 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1897 hppaelf_layout_sections_again if necessary.
1898 (need_laying_out): New var.
1899 (hppaelf_layaout_sections_again): Rename to
1900 hppaelf_layout_sections_again. Clear need_laying_out.
1901 (PARSE_AND_LIST_OPTIONS): Format text.
1903 2001-11-14 H.J. Lu <hjl@gnu.org>
1905 * emultempl/armelf.em (arm_elf_finish): Renamed from
1906 gld${EMULATION_NAME}_finish.
1907 (LDEMUL_FINISH): Set to arm_elf_finish.
1909 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1911 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1912 (struct ld_emulation_xfer_struct): Use it.
1914 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1916 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1917 additional symbols referenced by newer crt0.o files from HP.
1919 2001-11-12 Anthony Green <green@redhat.com>
1921 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1923 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1925 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1926 * Makefile.in: Regenerate.
1928 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1930 * ld.texinfo: Use @command for commands, @option for options.
1931 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1933 * Makefile.in: Rebuild.
1935 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1937 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1938 Add support for targets.
1940 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1942 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1943 * configure: Regernate.
1944 * po/fr.po: New file.
1945 * po/sv.po: New file.
1947 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1949 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1950 as little endian default and to support big endian.
1952 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1954 * ld.texinfo (Options): Document new option, -nostdlib.
1955 * lexsup.c (OPTION_NOSTDLIB): New definition.
1956 (ld_options): Add entry for "nostdlib".
1957 (parse_args): Handle OPTIONS_NOSTDLIB.
1958 * ldfile.c (ldfile_add_library_path): Don't add directories
1959 to the search path if they weren't specified on the command line
1960 and -nostdlib was specified.
1961 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1963 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1965 * lexsup.c (parse_args): Prevent infinite parsing loop when
1966 "-rpath.a" is specified on the command line.
1967 Replace calls to fprintf with calls to einfo.
1969 2001-10-31 John Marshall <jmarshall@acm.org>
1971 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1972 appear only once across all the linker scripts involved in a link
1973 invocation no longer applies. Make the documentation reflect
1976 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1978 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1980 (sh-*-linux*): Added targ_extra_libpath.
1982 2001-10-31 David Heine <dlheine@tensilica.com>
1984 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1985 for padding statements.
1987 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1989 * configure.tgt (mmix-*-*): New target.
1990 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1991 Add dependencies to match.
1992 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1993 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1994 scripttempl/mmo.sc: New files.
1995 * gen-doc.texi: @set MMIX.
1996 * ld.texinfo: Ditto.
1997 [MMIX] Add MMIX node.
1998 * Makefile.in: Regenerate.
2000 2001-10-29 Kazu Hirata <kazu@hxi.com>
2002 * ldlang.c: Fix a comment typo.
2004 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2006 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2007 entries, and match *-*-linux*.
2009 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2011 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2012 with ldlex_script, ldlex_popstate.
2013 (ifile_p1): Likewise.
2014 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2016 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2017 to 1. Don't BEGIN(SCRIPT).
2018 (lex_redirect): Similarly.
2019 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2021 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2023 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2024 __EH_FRAME_END__ and accept eh frames into data section.
2025 Add ctor and dtor sections.
2027 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2029 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2030 (auto-export): Fix indentation.
2032 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2034 * pe-dll.c (autofilter_objectlist): Add startup objects
2036 (auto-export): Constify char * p.
2037 Extract file basename and use strcmp rather than ststr
2040 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2042 * ldmain.c (get_emulation): Improve comment about the handling
2045 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2047 * po/POTFILES.in: Regenerate.
2049 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2051 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2052 -z nocopyreloc and -z nocombreloc usage strings.
2054 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2056 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2059 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2061 * scripttempl/armaout.sc: Place .bss section after end of aligned
2062 data section to match behaviour of aout code in constructrion of
2065 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2067 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2068 startup files for mingw32 dlls to list.
2070 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2072 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2074 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2076 * configure.tgt (targ): Add arm9e-*-elf.
2078 2001-10-05 H.J. Lu <hjl@gnu.org>
2080 * genscripts.sh: Fix a typo in the last change.
2082 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2084 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2085 -z nocombreloc in usage.
2087 2001-10-03 Jim Blandy <jimb@redhat.com>
2089 * genscripts.sh: Include a comment at the top of each generated
2090 script, explaining its purpose.
2092 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2094 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2095 * NEWS: Mention -z nocopyreloc.
2096 * ld.texinfo (Options): Describe nocopyreloc.
2098 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2100 * configure: Regenerate.
2102 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2104 * ldver.h (ld_program_version): Remove declaration.
2105 * lexsup.c (parse_args): Move printing of copyright message..
2106 * ldver.c (ldversion): .. to here.
2107 Use BFD_VERSION_STRING in place of BFD_VERSION.
2108 (ld_program_version): Remove.
2109 * Makefile.am (Makefile): Depend on bfd/configure.in.
2111 * Makefile.in: Regenerate.
2113 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2115 * Makefile.am: Update dependencies with "make dep-am".
2116 * Makefile.in: Regenerate.
2118 2001-09-29 John Reiser <jreiser@BitWagon.com>
2120 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2121 * lexsup.c: Add --no-define-common commandline option.
2122 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2123 * ldlex.l: Likewise.
2124 * ld.h: Add command_line.inhibit_common_definition.
2125 * ldmain.c (main): Initialize.
2126 * ld.texinfo: Document.
2128 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2130 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2132 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2134 * ldmisc.c (USE_STDARG): Remove.
2135 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2140 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2141 declarations. Update copyright.
2143 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2145 * pe-dll.c: Remove obsoleted declaration of
2146 pe_get_data_import_dll_name.
2147 (pe_create_import_fixup): Fix thinko.
2149 * ld.texinfo(enable-auto-import): Clarify the explanation.
2151 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2153 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2154 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2155 DLL_SUPPORT controlled code.
2157 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2159 * emultempl/pe.em(pe_data_import_dll): Make static.
2160 (pe_get_data_import_dll_name): New accessor function.
2161 * pe-dll.c(pe_create_import_fixup): call
2162 pe_get_data_import_dll_name() from pe.em, instead of
2163 directly accessing pe_data_import_dll variable from pe.em.
2165 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2167 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2168 (def_file_add_directive): Use ISSPACE instead of isspace.
2169 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2170 isdigit/isxdigit/isalpha/isalnum.
2171 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2172 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2173 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2174 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2176 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2177 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2179 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2180 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2181 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2182 (ctor_prio): Use ISDIGIT instead of isdigit.
2183 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2184 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2185 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2187 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2188 (stricpy): Use TOLOWER instead of isupper/tolower.
2189 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2190 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2191 (lex_warn_invalid): Use ISPRINT instead of isprint.
2192 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2193 (main): For gettext, also set the LC_CTYPE locate facet.
2194 (add_keepsyms_file): Use ISSPACE instead of isspace.
2195 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2196 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2197 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2198 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2199 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2200 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2201 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2202 (quoteput): Use ISSPACE instead of isspace.
2203 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2206 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2208 * deffilep.y (def_stash_module): Constify "name" param.
2210 * pe-dll.c: Replace CONST with const throughout.
2211 (quick_symbol): Constify "n1", "n2", "n3" params.
2212 (make_singleton_name_thunk): Constify "import" param. Make
2213 "buffer_len" a size_t.
2214 (make_import_fixup_entry): Constify "name", "fixup_name",
2215 "dll_symname" params.
2216 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2217 (pe_get32): Likewise.
2218 (pe_implied_import_dll): Likewise.
2220 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2221 (sort_by_section_name): Likewise.
2223 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2224 (make_import_fixup): Cast printf arg, rel->address to long rather
2226 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2228 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2230 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2231 defines BufferSize. Increase buffer size by one.
2233 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2235 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2237 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2239 * configure.tgt: Add arm-openbsd target.
2241 2001-09-12 H.J. Lu <hjl@gnu.org>
2243 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2245 (ALL_64_EMULATIONS): Here.
2246 * Makefile.in: Regenerated.
2248 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2250 * emultempl/pe.em(make_import_fixup): change signature to
2251 take asection as well as arelec; we need this for proper
2252 error reporting. Only call pe_create_import_fixup() if
2253 there is no attempt to add a constant addend to the reloc;
2254 otherwise, report error condition.
2255 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2256 since final argument is a pointer to make_import_fixup().
2257 Change call to cb() to match make_import_fixup() signature.
2258 (make_import_fixup_mark): make buffer_len unsigned.
2259 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2261 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2263 * ld.texinfo: add verbose documentation for auto-import
2264 direct-addressing workaround, to compliment the terse
2267 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2269 * scripttempl/v850.sc: Add gcc_except_table sections.
2271 2001-09-11 Jeffrey A Law (law@cygnus.com)
2273 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2274 * emulparams/h8300self.sh: Similarly.
2276 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2278 * ld.texinfo (Options, --stack): Correct default value for stack
2281 2001-09-05 Tom Rix <trix@redhat.com>
2283 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2285 2001-09-03 Andreas Jaeger <aj@suse.de>
2287 * emultempl/beos.em: Declare prototypes for comparions functions,
2290 2001-09-02 Andreas Jaeger <aj@suse.de>
2292 * emultempl/aix.em: Add missing prototype.
2293 * emultempl/lnk960.em: Likewise.
2294 * emultempl/vanilla.em: Likewise.
2295 * emultempl/armcoff.em: Likewise.
2296 * emultempl/armelf_oabi.em: Likewise.
2297 * emultempl/beos.em: Likewise.
2298 * emultempl/gld960c.em: Likewise.
2299 * emultempl/gld960.em: Likewise.
2301 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2302 for prototype declaration.
2304 2001-08-31 Eric Christopher <echristo@redhat.com>
2305 Jason Eckhardt <jle@redhat.com>
2307 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2309 2001-08-31 Andreas Jaeger <aj@suse.de>
2311 * emultempl/pe.em: Add missing prototypes.
2312 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2313 pe_find_data_imports.
2314 (pr_sym): Add unused attribute.
2316 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2318 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2319 default from coff to elf.
2321 2001-08-29 Jeff Law <law@redhat.com>
2323 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2325 * emulparams/h8300self.sh: Similarly.
2327 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2329 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2331 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2332 * configure.tgt (h8300-*-elf*): New case.
2333 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2334 * emulparams/h8300self.sh: New file.
2335 * Makefile.in: Regenerated.
2337 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2339 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2342 2001-08-27 Linus Nordberg <linus@swox.com>
2343 Alan Modra <amodra@bigpond.net.au>
2345 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2346 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2348 * Makefile.in: Regenerate.
2349 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2350 entries to correct alphabetical position.
2351 * emulparams/elf64ppc.sh: New.
2352 * emulparams/elf64lppc.sh: New.
2354 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2356 * ldmain.c (main): Declare BSIZE as static.
2358 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2360 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2361 into .rel.dyn resp. .rela.dyn if combreloc.
2362 (get_script): If .x linker script is equal to .xn, only put it
2363 once into the binary.
2364 Add .xc and .xsc scripts.
2365 (parse_args): Handle -z combreloc and -z nocombreloc.
2366 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2367 For .xc and .xsc scripts put all .rel* or .rela* input sections
2368 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2369 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2371 Strip trailing whitespace from script.
2372 Generate .xc and .xsc scripts if requested.
2373 * ldmain.c (main): Initialize link_info.combreloc and
2374 link_info.spare_dynamic_tags.
2375 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2376 (ld_options): Add --spare-dynamic-tags option.
2377 (parse_args): Likewise.
2378 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2379 * ldint.texinfo: Document .xc and .xsc linker scripts.
2380 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2382 2001-08-22 H.J. Lu <hjl@gnu.org>
2384 * emulparams/elf32fr30.sh: Add a newline.
2386 2001-08-21 Andreas Jaeger <aj@suse.de>
2388 * deffilep.y: Add missing prototypes.
2389 * pe-dll.c: Likewise.
2391 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2393 * ldlang.c (insert_pad): Fix typos in last patch.
2395 * ldlang.c: When traversing lang_statement_union_type lists,
2396 consistently use "header.next" rather than "next".
2397 * mpw-eppcmac.c: Likewise.
2398 * emultempl/beos.em: Likewise.
2399 * emultempl/hppaelf.em: Likewise.
2400 * emultempl/pe.em: Likewise.
2401 * ldlang.h (union lang_statement_union): Remove "next" field.
2403 * ldlang.c (insert_pad): Use offsetof macro.
2404 (lang_size_sections): Always neuter padding statements.
2405 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2407 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2408 passed to lang_size_sections.
2409 (pe_exe_fill_sections): Likewise.
2410 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2411 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2413 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2415 * emultempl/aix.em: Formatting fixes.
2417 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2419 * ldlang.c (insert_pad): Make use of an existing pad statement if
2420 available. Move code calculating alignment, adjusting section
2421 alignment power, and adjusting dot to ..
2422 (size_input_section): .. here. Remove unused relax param.
2423 (lang_size_sections): Change boolean `relax' param to boolean *.
2424 Adjust call to size_input_section. Make use of insert_pad to
2425 place pad after the assignment statement. If relaxing, zap
2427 (reset_memory_regions): Reset output_bfd section sizes too.
2428 (relax_again): Move to..
2429 (lang_process): ..here. Adjust call to lang_size_sections, and
2430 remove duplicated code.
2431 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2433 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2435 * ld.texinfo: Document that fill values now use the four least
2437 * emulparams/elf32fr30.sh (NOP): Update.
2438 * emulparams/elf32mcore.sh: Likewise.
2439 * emulparams/elf64_s390.sh: Likewise.
2440 * emulparams/elf_i386.sh: Likewise.
2441 * emulparams/elf_i386_be.sh: Likewise.
2442 * emulparams/elf_i386_chaos.sh: Likewise.
2443 * emulparams/elf_i386_ldso.sh: Likewise.
2444 * emulparams/elf_s390.sh: Likewise.
2445 * emulparams/elf_x86_64.sh: Likewise.
2446 * emulparams/i386moss.sh: Likewise.
2447 * emulparams/i386nw.sh: Likewise.
2448 * emulparams/m68kelf.sh: Likewise.
2449 * scripttempl/elf.sc: Update NOP comment.
2450 * scripttempl/elfi370.sc: Likewise.
2451 * scripttempl/elfm68hc11.sc: Likewise.
2452 * scripttempl/elfm68hc12.sc: Likewise.
2453 * scripttempl/nw.sc: Likewise.
2455 2001-08-15 Tom Rix <trix@redhat.com>
2457 * ldgram.y (saved_script_handle): Initialize to NULL.
2458 * ldmain.c (main): Change check on saved_script_handle.
2460 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2462 * emultempl/elf32.em: Formatting fixes.
2463 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2464 looking at sec->owner.
2465 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2466 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2467 unused code, and reorganize orphan section placement code.
2469 * ldlang.c (wild_doit): Rename to lang_add_section.
2470 * ldlang.h: Here too.
2471 * mpw-elfmips.c: And here.
2472 * emultempl/beos.em: And here.
2473 * emultempl/elf32.em: And here.
2474 * emultempl/hppaelf.em: And here.
2475 * emultempl/pe.em: And here.
2477 2001-08-13 Richard Henderson <rth@redhat.com>
2479 * emultempl/needrelax.em: New file.
2480 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2481 * Makefile.am (eelf64_ia64.c): Depend on it.
2482 * Makefile.in: Rebuild.
2484 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2486 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2487 output_section is set non-NULL.
2489 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2490 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2491 needlessly create an output_section_statement. Treat a correctly
2492 named output_section_statement with NULL bfd_section as compatible.
2494 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2496 * emultempl/generic.em: Support EXTRA_EM_FILE.
2497 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2498 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2499 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2500 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2501 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2502 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2503 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2504 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2505 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2506 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2508 2001-08-12 Richard Henderson <rth@redhat.com>
2510 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2511 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2512 scripttempl/v850.sc: Keep .jcr data.
2514 2001-08-12 H.J. Lu <hjl@gnu.org>
2515 Andrew Haley <aph@cambridge.redhat.com>
2516 Nick Clifton <nickc@redhat.com>
2518 * ldgram.y (had_script): Change name to saved_script_handle.
2519 Change type to file handle.
2520 * ld.h (had_script): Rename and retype.
2521 * ldfile.c (ldfile_open_command_file): Save the file handle
2522 used in saved_script_handle.
2523 * lexsup.c (parse_args): Do not allow -c option to alter
2524 saved_script_handle.
2525 * ldmain.c (main): Print out the linker script used if
2526 --verbose is given. Check saved_script_handle to obtain the
2527 external linker script used, or if NULL, dump the builtin
2529 * ld.texinfo: Document that --verbose now dumps the linker
2530 script used, regardless of whether it was an internal or an
2533 2001-08-10 Andreas Jaeger <aj@suse.de>
2535 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2537 * configure: Regenerate.
2539 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2541 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2543 * scripttempl/elf.sc: Move non-text .dynamic section before
2544 .plt/.got/.sdata* group.
2545 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2546 (OTHER_SDATA_SECTIONS): Add.
2547 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2549 * emulparams/crislinux.sh: Likewise.
2550 * emulparams/elf32b4300.sh: Likewise.
2551 * emulparams/elf32bmip.sh: Likewise.
2552 * emulparams/elf32bmipn32.sh: Likewise.
2553 * emulparams/elf32bsmip.sh: Likewise.
2554 * emulparams/elf32btsmip.sh: Likewise.
2555 * emulparams/elf32ebmip.sh: Likewise.
2556 * emulparams/elf32elmip.sh: Likewise.
2557 * emulparams/elf32l4300.sh: Likewise.
2558 * emulparams/elf32lmip.sh: Likewise.
2559 * emulparams/elf32lsmip.sh: Likewise.
2560 * emulparams/elf32ltsmip.sh: Likewise.
2561 * emulparams/elf64bmip.sh: Likewise.
2562 * emulparams/elf64btsmip.sh: Likewise.
2563 * emulparams/elf64ltsmip.sh: Likewise.
2565 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2567 * genscripts.sh: Source the emulparams script before each output
2568 script is generated so that variables like `RELOCATING' may affect
2569 variables defined in the emulparams script.
2571 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2573 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2576 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2577 ie. iterate over wild_statement.section_list.
2578 (gld${EMULATION_NAME}_place_orphan): Likewise.
2580 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2582 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2583 .fini[0-4] sections used by _exit
2584 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2585 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2586 * scripttempl/elfm68hc11.sc: Likewise.
2588 2001-08-03 H.J. Lu <hjl@gnu.org>
2590 * emultempl/beos.em (init): Add the missing initialization.
2592 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2594 * ld.texinfo (Input Section Basics): Clarify ordering of output
2596 * ldlang.c (callback_t): Add wildcard_list param.
2597 (walk_wild_section): Remove "section" param. Rewrite for
2598 lang_wild_statement_type change. Remove unique_section_p test.
2599 (walk_wild_file): Remove "section" param.
2600 (walk_wild): Remove "section" and "file" params.
2601 (lang_gc_wild): Likewise.
2602 (wild): Likewise. Modify for lang_wild_statement_type change.
2603 (wild_sort): Likewise. Add "sec" param.
2604 (gc_section_callback): Likewise.
2605 (output_section_callback): Likewise. Do unique_section_p test.
2606 (map_input_to_output_sections): Modify call to wild.
2607 (lang_gc_sections_1): Likewise.
2608 (print_wild_statement): Modify for lang_wild_statement_type
2610 (lang_add_wild): Replace filename, filenames_sorted param with
2611 filespec. Replace section_name, sections_sorted,
2612 exclude_filename_list with section_list.
2613 * ldlang.h (lang_add_wild): Here too.
2614 (lang_wild_statement_type): Replace section_name, sections_sorted,
2615 and exclude_filename_list with section_list.
2616 * ldgram.y (current_file): Delete.
2617 (%union): Add wildcard_list.
2618 (file_NAME_list): Set type to wildcard_list. Build a linked list
2619 rather than calling lang_add_wild for each entry.
2620 (input_section_spec_no_keep): Call lang_add_wild here instead.
2621 * ld.h (struct wildcard_list): Declare.
2622 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2624 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2626 * ldmain.c (main): initialize link_info.pei386_auto_import
2627 * pe-dll.c: new tables for auto-export filtering
2628 (auto_export): change API, pass abfd for contextual filtering.
2629 Loop thru tables of excluded symbols instead of comparing
2632 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2634 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2635 static variable current_sec (static struct sec *). Add
2636 forward declaration for add_bfd_to_link.
2637 (process_def_file): Don't export undefined symbols. Do not
2638 export symbols starting with "_imp__". Call auto_export()
2640 (pe_walk_relocs_of_symbol): New function.
2641 (generate_reloc): add optional extra debugging
2642 (pe_dll_generate_def_file): eliminate extraneous initial blank
2644 (make_one): enlarge symtab to make room for __nm__ symbols
2645 (DATA auto-import support).
2646 (make_singleton_name_thunk): New function.
2647 (make_import_fixup_mark): New function.
2648 (make_import_fixup_entry): New function.
2649 (pe_create_import_fixup): New function.
2650 (add_bfd_to_link): Specify that 'name' argument is a CONST
2652 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2653 declare new functions pe_walk_relocs_of_symbol and
2654 pe_create_import_fixup.
2655 * emultempl/pe.em: add new options --enable-auto-import,
2656 --disable-auto-import, and --enable-extra-pe-debug.
2657 (make_import_fixup): New function.
2658 (pe_find_data_imports): New function.
2659 (pr_sym): New function.
2660 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2661 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2664 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2666 * ld.texinfo: add additional documentation for
2667 --export-all-symbols. Document --out-implib,
2668 --enable-auto-image-base, --disable-auto-image-base,
2669 --dll-search-prefix, --enable-auto-import, and
2670 --disable-auto-import.
2671 * ldint.texinfo: Add detailed documentation on auto-import
2674 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2676 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2679 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2681 * Makefile.am: Update dependencies with "make dep-am".
2682 * Makefile.in: Regenerate
2684 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2686 * ldcref.c (check_section_sym_xref): New function.
2687 (check_nocrossrefs): Call it.
2688 (check_nocrossref): Interate over h->refs here instead of..
2689 (check_refs): ..here. Pass in the symbol name, section, and bfd
2690 rather than hash_entry pointers.
2691 (struct check_refs_info): Keep symbol name rather than hash entry.
2693 (check_reloc_refs): Tweak for above changes in check_refs_info.
2694 Only report references to section syms when symname is NULL to
2695 prevent duplicate messages for the same reloc.
2697 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2699 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2700 available. Do not print NULL trees.
2701 (exp_print_token): Print unknown tokens with values > 126 as
2702 decimal values not ASCII characters.
2704 * ldlang.c (lang_leave_overlay): If a region is specified assign
2705 it to all sections inside the overlay unless they have been
2706 assigned to the own, non-default, memory region.
2708 * README: Add header for consistency with other README files.
2710 2001-07-14 H.J. Lu <hjl@gnu.org>
2712 * emultempl/elf32.em (output_prev_sec_find): Never return
2713 bfd_abs_section_ptr, bfd_com_section_ptr nor
2714 bfd_und_section_ptr.
2716 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2718 * Makefile.am (em32relf.c): Change dependency from generic.em to
2720 * Makefile.in: Regenerate.
2722 2001-07-14 matthew green <mrg@eterna.com.au>
2724 * configure.tgt (i386-*-netbsdelf*): New target.
2725 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2727 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2729 * emultempl/elf32.em (output_prev_sec_find): New.
2730 (place_orphan): Use it.
2732 2001-07-11 H.J. Lu <hjl@gnu.org>
2734 * ldmain.c (main): Fix typos in the last change.
2736 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2738 * ldmain.c (main): Disallow -F and -f without -shared.
2740 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2742 * emultempl/pe.em (after_open): Check for the output_bfd not
2743 having any coff_data structure allocated to it.
2745 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2747 * emultempl/elf32.em: Do not assuming that contents of the buffer
2748 returned from basename function will remain unchanged accross other
2751 2001-07-03 H.J. Lu <hjl@gnu.org>
2753 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2754 2001-07-03. It creates dynamic entries even for static binaries.
2756 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2758 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2759 (DYNAMIC): Use it to reserve few dynamic entries for
2762 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2764 * emulparams/hppa64linux.sh: New file.
2765 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2766 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2767 (ehppa64linux.c): Add rule to make it.
2769 * Makefile.in: Regenerate.
2771 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2773 * ld.texinfo (Options, -r): Mention restrictions when using
2774 different object formats.
2776 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2778 * ldlang.c (lang_check): Emit fatal error if relocatable link
2779 between different object flavours with relocations in input.
2781 2001-06-19 H.J. Lu <hjl@gnu.org>
2783 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2784 (--version-script): Mention the language support.
2786 2001-06-19 H.J. Lu <hjl@gnu.org>
2788 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2790 2001-06-18 H.J. Lu <hjl@gnu.org>
2792 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2793 (diststuff): Add $(MANS).
2794 * Makefile.in: Regenerated.
2798 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2800 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2801 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2802 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2803 * ld.h (args_type): Remove member export_dynamic. All users
2804 changed to use struct bfd_link_info member.
2806 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2807 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2808 * Makefile.in: Regenerate.
2810 2001-06-18 H.J. Lu <hjl@gnu.org>
2812 * ldlang.c (init_os): Add the newline to the einfo call.
2813 (lang_check): Likewise.
2814 (lang_do_version_exports_section): Likewise.
2816 2001-06-15 H.J. Lu <hjl@gnu.org>
2818 * lexsup.c (parse_args); Save optind to report unrecognized
2821 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2823 * ldlang.c (lang_check): Emit fatal error if relocatable link
2824 between different object flavours.
2826 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2827 Set new link_info member export_dynamic.
2828 * ldmain.c (main): Initialize new link_info member export_dynamic.
2830 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2832 * ldlang.c (walk_wild): Only call walk_wild_file if
2833 lookup_name returns something.
2834 (lookup_name): If load_symbols fails, return NULL.
2835 (load_symbols): Change to a boolean function.
2836 (open_input_bfds): If load_symbols fails then do not make the
2839 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2841 * ldlang.c (record_bfd_errors): Remove.
2843 * emultempl/aix.em: Fix copyright dates.
2845 2001-06-07 Andreas Jaeger <aj@suse.de>
2847 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2848 (TEXT_START_ADDR): Likewise.
2850 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2852 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2854 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2856 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2858 2001-05-31 H.J. Lu <hjl@gnu.org>
2860 * ldlang.c (open_input_bfds): Don't change the bfd error
2861 handler whilst loading symbols.
2863 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2865 * configure.tgt: Remove i370-mvs architecture, it is not currently
2868 2001-05-25 H.J. Lu <hjl@gnu.org>
2870 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2871 like emulparams/aixppc.sh.
2873 2001-05-25 H.J. Lu <hjl@gnu.org>
2875 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2876 setting of output_filename after bfd_scan_arch.
2877 * emultempl/pe.em: Likewise.
2879 2001-05-25 H.J. Lu <hjl@gnu.org>
2881 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2882 like emulparams/aixppc.sh.
2884 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2885 instead of ${srcdir}/emultempl/stringify.sed.
2887 2001-05-25 Timothy Wall <twall@oculustech.com>
2889 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2892 2001-05-25 Alan Modra <amodra@one.net.au>
2894 * configure.host: Replace linuxoldld with linux*oldld.
2895 * configure.tgt: Likewise.
2897 2001-05-24 H.J. Lu <hjl@gnu.org>
2899 * emultempl/stringify.sed: Removed again.
2901 2001-05-24 H.J. Lu <hjl@gnu.org>
2903 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2904 (gld${EMULATION_NAME}_before_parse): Initialize
2905 ldfile_output_architecture, ldfile_output_machine and
2906 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2907 * emultempl/beos.em: Likewise.
2908 * emultempl/elf32.em: Likewise.
2909 * emultempl/linux.em: Likewise.
2910 * emultempl/mipsecoff.em: Likewise.
2911 * emultempl/pe.em: Likewise.
2912 * emultempl/sunos.em: Likewise.
2914 2001-05-24 Tom Rix <trix@redhat.com>
2916 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2917 udate import file format.
2918 (change_symbol_mode) New, same
2919 (is_syscall) New, same
2920 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2921 * emulparams/aixppc64.sh : same
2922 * emulparams/aixrs6.sh : same
2923 * emulparams/ppcmacos.sh : same
2924 * emultempl/aix.em : use strtoull to parse options
2925 * Makefile.am : add eaixppc64 emulation for xcoff64
2926 * Makefile.in : same
2927 * configure.tgt : same
2929 * scripttempl/aix.sc : default text section offset to 0x10000000
2930 default data section offset to 0x20000000
2931 add .sv3264 and .sv64 pseudo sections
2932 loader and debug sections use the currect section offset.
2934 * emultempl/aix.em : Add xcoff64 support
2935 Add -binitfini support
2936 (gld${EMULATION_NAME}_before_parse) -binitfini
2937 (gld${EMULATION_NAME}_parse_args) same
2938 (gld${EMULATION_NAME}_before_allocation) format change for special
2941 * emulparams/aixppc64.sh : New file for xcoff64 support
2943 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2945 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2946 variable to avoid non-portable shell construct.
2948 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2950 * ldmain.c (get_emulation): Add -mips5 command line argument.
2952 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2954 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2955 (ELF_INTERPRETER_NAME): Define it.
2956 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2958 * configure.tgt (targ_emul, targ_extra_emuls)
2959 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2960 as primary, elf_i386 as extra.
2961 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2962 (eelf_i386_ldso.c): New rule.
2963 * Makefile.in: Rebuilt.
2965 2001-05-22 Nick Clifton <nickc@redhat.com>
2967 * lexsup.c (ld_options): Allow -I to be an alias for
2968 --dynamic-linker. This is for Solaris compatability.
2969 * ld.texinfo: Document that -I can be used.
2972 2001-05-16 Alan Modra <amodra@one.net.au>
2974 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2975 whether an input section is the first one assigned to an output
2977 Assorted formatting fixes.
2979 2001-05-14 DJ Delorie <dj@delorie.com>
2981 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2982 * Makefile.in: Ditto.
2984 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2986 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2987 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2989 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2991 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2993 * ldlang.c (lang_process): Call bfd_merge_sections.
2995 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2997 * ldgram.y: Fix typo.
2999 2001-05-03 H.J. Lu <hjl@gnu.org>
3001 * emultempl/elf32.em: Include "libiberty.h".
3002 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3003 basename of the bfd filename.
3004 (gld${EMULATION_NAME}_stat_needed): Likewise.
3005 (gld${EMULATION_NAME}_try_needed): Likewise.
3006 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3008 2001-05-02 H.J. Lu <hjl@gnu.org>
3010 * emultempl/pe.em: Include <ctype.h>.
3012 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3014 * emulparams/elf32openrisc.sh: New file.
3016 * Makefile.am: Add OpenRISC target.
3017 * Makefile.in: Regenerated.
3019 * configure.tgt: Add openrisc-*-* mapping.
3021 2001-05-02 Nick Clifton <nickc@redhat.com>
3023 * emultempl/aix.em: Replace buystring with xstrdup.
3024 * emultempl/beos.em: Replace buystring with xstrdup.
3026 2001-05-02 H.J. Lu <hjl@gnu.org>
3028 * ldfile.c: Include "libiberty.h".
3029 * ldlex.l: Likewise.
3031 * ldmisc.c (buystring): Removed.
3032 * ldmisc.h: Likewise.
3034 * ldfile.c: Replace buystring with xstrdup.
3035 * ldlang.c: Likewise.
3036 * ldlex.l: Likewise.
3037 * ldmain.c: Likewise.
3038 * ldmisc.c: Likewise.
3039 * lexsup.c: Likewise.
3040 * mpw-eppcmac.c: Likewise.
3042 2001-04-30 Andreas Jaeger <aj@suse.de>
3044 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3046 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3048 * ldlang.c (load_symbols): Give emulation a chance
3049 to process unrecognized file before fatal error is
3050 reported, not after.
3052 2001-04-27 Sean McNeil <sean@mcneil.com>
3054 * configure.tgt: Add arm-vxworks target.
3055 * scripttempl/armcoff.sc: Support .text or .data as a section name
3059 2001-04-13 J.T. Conklin <jtc@redback.com>
3061 * ld.texinfo: Document --fatal-warnings.
3064 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3065 warnings have been turned into errors.
3066 * lexsup.c (OPTION_WARN_FATAL): Define.
3067 (ld_options): Entry for --fatal-warnings.
3068 (parse_args): Handle OPTION_WARN_FATAL.
3069 * ld.h (ld_config_type): Add fatal_warnings field.
3071 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3073 * ldmain.c (main): Default to discard_sec_merge.
3074 * lexsup.c (OPTION_DISCARD_NONE): Define.
3075 (ld_options): Add --discard-none.
3076 (parse_args): Handle OPTION_DISCARD_NONE.
3077 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3078 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3079 all its input sections match.
3081 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3083 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3084 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3085 (eelf32ltsmip.c): New target.
3086 (eelf64btsmip.c): Likewise.
3087 (eelf64ltsmip.c): Likewise.
3088 * Makefile.in: Regenerated.
3090 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3092 (mips*-*-linux-gnu*): Likewise.
3094 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3096 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3098 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3101 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3103 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3104 correct value of __Stext here.
3105 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3108 * emulparams/crislinux.sh: Remove FIXME.
3110 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3112 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3113 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3115 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3117 * configure.tgt (cris-*-*): Change default emulation to criself.
3118 (cris-*-*aout*): New rule.
3120 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3122 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3123 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3125 2001-03-26 Andreas Jaeger <aj@suse.de>
3127 * ld.texinfo (Overview): Fix syntax in texi code.
3129 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3131 * ld.texinfo: Put @c man indications to generate the ld man page.
3132 When generating man, define all the variables. Define SEEALSO
3133 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3134 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3135 (ld.1): Generate from ld.texinfo.
3136 * Makefile.in: Regenerate.
3138 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3140 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3141 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3143 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3145 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3146 is an absolute path look only for this file and not along the path.
3148 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3150 * emultempl/elf32.em (OPTION_GROUP): New macro.
3151 Add new option Bgroup to longopts.
3152 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3153 (gld*_list_options): Add -Bgroup and -z defs.
3154 * ld.1: Document -Bgroup and -z defs.
3155 * ld.texinfo: Likewise.
3157 2001-03-07 Michael Meissner <meissner@redhat.com>
3159 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3160 with sections created by -fdata-sections.
3161 (.dynbss,.bss): Ditto.
3163 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3165 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3166 after_allocation_default, not gld..._before_allocation.
3168 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3170 * configure.in (BFD_VERSION): New.
3171 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3172 * configure: Regenerate.
3173 * Makefile.am: Run "make dep-am"
3174 * Makefile.in: Regenerate.
3176 2001-02-26 Timothy Wall <twall@cygnus.com>
3178 * emulparams/elf64_aix.sh: Add additional read-only sections;
3179 uncomment lines which are now required.
3181 2001-02-26 H.J. Lu <hjl@gnu.org>
3183 * ldlang.c (open_input_bfds): Set the bfd error handler so
3184 that problems can be caught whilst loading symbols.
3185 (record_bfd_errors): New function: Report BFD errors and mark
3186 the executable output as being invalid.
3188 2001-02-22 Timothy Wall <twall@cygnus.com>
3190 * configure.host: Add configuration for ia64-*-aix*.
3191 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3192 Add dependencies for eelf64_aix.c.
3193 * Makefile.in: Regenerate.
3194 * configure.tgt: Add ia64-*-aix* mapping.
3195 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3196 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3199 2001-02-20 H.J. Lu <hjl@gnu.org>
3201 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3202 false if we found the file.
3204 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3206 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3207 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3209 2001-02-18 lars brinkhoff <lars@nocrew.org>
3211 * Makefile.am: Add PDP-11 target.
3212 * configure.tgt: Likewise.
3213 * emulparams/pdp11.sh: New file.
3215 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3217 * configure.host: Add a generic FreeBSD configuration entry such that
3218 all [modern] FreeBSD systems on all platforms will look the same.
3220 2001-02-14 H.J. Lu <hjl@gnu.org>
3222 * configure.tgt: Remove mention of earmelf_linux26.
3224 2001-02-13 Richard Henderson <rth@redhat.com>
3226 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3228 2001-02-13 H.J. Lu <hjl@gnu.org>
3230 * ldexp.h (node_type): Add etree_provided.
3231 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3232 type to etree_provided if defined by PROVIDE. Allow updating
3234 (exp_print_tree): Handle etree_provided.
3235 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3238 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3240 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3241 .IA_64.unwind.* pattern to unwind table section and
3242 .IA_64.unwind_info* pattern to unwind info section.
3244 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3246 * Makefile.am: Add linux target for S/390.
3247 * Makefile.in: Likewise.
3248 * configure.host: Likewise.
3249 * configure.tgt: Likewise.
3250 * emulparams/elf64_s390.sh: New file.
3251 * emulparams/elf_s390.sh: New file.
3253 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3255 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3257 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3259 2001-02-06 Philip Blundell <philb@gnu.org>
3261 * Makefile.am: Remove mention of earmelf_linux26.
3262 * Makefile.in: Regenerate.
3264 2001-02-04 Philip Blundell <philb@gnu.org>
3266 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3267 * emulparams/armelf_linux26.sh: Delete.
3268 * configure.tgt: Remove mention of armelf_linux26 emulation.
3270 2001-02-01 Nick Clifton <nickc@redhat.com>
3272 * ld.1: Replace occurances of -oformat with --oformat.
3274 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3276 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3277 load_base is specified.
3279 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3281 * emultempl/elf32.em: Correct spelling in comments and listed
3284 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3286 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3287 default for the first section of a group of overlay sections.
3289 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3291 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3292 * Makefile.in: Regenerate.
3293 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3294 Check for null tool_dir.
3296 2001-01-16 Jim Wilson <wilson@redhat.com>
3298 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3299 and IA_64.unwind.info.
3301 2001-01-16 H.J. Lu <hjl@gnu.org>
3303 * ldlang.c (lang_check): Merge the private data only if the
3304 input file has contents.
3306 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3308 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3310 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3311 enabling search for libmilli. On a relocatable link, make .text
3313 (LDEMUL_AFTER_PARSE): Define.
3314 (hppaelf_finish): Correct spelling of relocatable in comments.
3316 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3317 rummage through the script for sections on the unique list.
3318 Correct length of strncmp for ".note".
3319 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3321 * ldlang.c (unique_section_list): New var.
3322 (unique_section_p): New function.
3323 (walk_wild_section): Don't match sections on unique_section_list.
3324 (lang_add_unique): New function.
3325 Correct spelling of relocatable in comments.
3327 * ldlang.h (struct unique_sections): Declare.
3328 (unique_section_list): Declare.
3329 (unique_section_p): Declare.
3330 (lang_add_unique): Declare.
3332 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3333 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3335 * ld.texinfo (--unique): Update.
3337 2001-01-13 Nick Clifton <nickc@redhat.com>
3339 * lexsup.c (parse_args): Remove spurious white space.
3341 2001-01-12 Nick Clifton <nickc@redhat.com>
3343 * lexsup.c (parse_args): Update copyright date.
3345 2001-01-12 Philip Blundell <pb@futuretv.com>
3347 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3349 2001-01-10 Kazu Hirata <kazu@hxi.com>
3351 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3352 * scripttempl/h8300h.sc: Fix formatting.
3353 * scripttempl/h8300s.sc: Likewise.
3354 * scripttempl/h8500.sc: Likewise.
3355 * scripttempl/h8500b.sc: Likewise.
3356 * scripttempl/h8500c.sc: Likewise.
3357 * scripttempl/h8500m.sc: Likewise.
3358 * scripttempl/h8500s.sc: Likewise.
3360 2000-01-07 David O'Brien <obrien@BSDi.com>
3362 * emultempl/elf32.em: Only perform Linux ld hints processing when
3365 2001-01-07 Philip Blundell <philb@gnu.org>
3367 * ld.texinfo (Bug Reporting): Update email address for reports.
3369 2000-12-31 Nick Clifton <nickc@redhat.com>
3371 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3372 options by checking for a return value of '?' not -1.
3374 2000-12-28 Nick Clifton <nickc@redhat.com>
3376 * lexsup.c (struct ld_option): Add new enum value:
3378 (ld_options[]): Change -omagic, -output and -oformat options
3379 to be EXACTLY_TWO_DASHES.
3380 (OUTPUT_COUNT): Use ARRAY_SIZE.
3381 (parse_args): Change parameter 'argc' to unsigned.
3382 Place EXACTLY_TWO_DASHES options into new really_longopts
3384 If getopt_long_only fails, try calling getopt_long using the
3385 really_longopts array.
3386 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3389 * ldlex.h: Fix prototype of parse_args.
3391 * ld.texinfo: Document that long options starting with 'o'
3392 must be preceeded by two dashes. Change example of a single
3393 dashed long option from -oformat to -trace-symbol.
3395 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3397 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3398 (longopts[]): New --no-default-excludes option.
3399 (gld_${EMULATION_NAME}_list_options): Document.
3400 (gld_${EMULATION_NAME}_parse_args): Handle.
3402 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3404 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3405 whitespace, it breaks the K&R C preprocessor.
3407 2000-12-11 DJ Delorie <dj@redhat.com>
3409 * ld.texinfo: Add notes about --whole-archive and gcc.
3411 2000-11-18 Fred Fish <fnf@be.com>
3413 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3414 (ld_options): Entry for --allow-shlib-undefined.
3415 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3416 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3418 * ld.texinfo: Document new command line switch.
3420 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3422 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3423 .fixup is actually read/write.
3424 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3425 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3426 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3428 2000-12-11 Jan Hubicka <jh@suse.cz>
3430 * NEWS: Add note about x86_64 architecture.
3432 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3434 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3435 Set DWARF2 sections to a VMA of zero.
3437 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3439 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3441 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3442 (sparc*-*-rtems*): Switched from a.out to ELF.
3444 2000-11-30 Jan Hubicka <jh@suse.cz>
3446 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3447 (eelf_x86_64.c): New.
3448 * Makefile.in: Regenerate.
3449 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3450 * emulparams/elf_x86_64.sh: New.
3452 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3454 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3455 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3457 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3458 merging non-a.out sections into CONSTRUCTING.
3460 2000-11-28 Nick Clifton <nickc@redhat.com>
3462 * ld.1 (COPYING): Mention that the GNU Free Documentation
3463 License is present in the sources, but not the output, and
3464 also available from the GNU website.
3465 (GNU Free Documentation License): Comment out this section.
3467 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3469 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3472 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3474 * ld.1: Remove old date so it does not give the impression the manpage
3477 2000-11-24 Nick Clifton <nickc@redhat.com>
3479 * configure.tgt (xscale-coff): Add target.
3480 (xscale-elf): Add target.
3482 2000-11-24 Fred Fish <fnf@be.com>
3484 * ldmain.c (main): Remove redundant init of config.make_executable
3487 2000-11-15 Richard Henderson <rth@redhat.com>
3489 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3491 2000-11-14 Kazu Hirata <kazu@hxi.com>
3493 * scripttempl/h8300.sc: Fix formatting.
3494 * scripttempl/h8300h.sc: Likewise.
3495 * scripttempl/h8300s.sc: Likewise.
3497 2000-11-14 Denis Chertykov <denisc@overta.ru>
3499 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3501 2000-11-09 Philip Blundell <pb@futuretv.com>
3503 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3504 around orphan sections whose names can be represented in C.
3506 2000-11-07 Jim Wilson <wilson@redhat.com>
3508 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3509 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3511 2000-11-06 Nick Clifton <nickc@redhat.com>
3513 * ld.texinfo: Add GNU Free Documentation License.
3514 * ldint.texinfo: Add GNU Free Documentation License.
3515 * ld.1: Add GNU Free Documentation License.
3517 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3519 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3520 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3522 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3523 Move 2000-11-02 Makefile.in changes to this file.
3524 * Makefile.in: Regenerate.
3526 2000-11-03 Nick Clifton <nickc@redhat.com>
3528 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3529 constructors and destructors.
3530 * scripttempl/h8300h.sc: Ditto.
3531 * scripttempl/h8300s.sc: Ditto.
3532 * scripttempl/h8500.sc: Ditto.
3533 * scripttempl/h8500b.sc: Ditto.
3534 * scripttempl/h8500c.sc: Ditto.
3535 * scripttempl/h8500m.sc: Ditto.
3536 * scripttempl/h8500s.sc: Ditto.
3537 * scripttempl/v850.sc: Ditto.
3538 * scripttempl/w65.sc: Ditto.
3539 * scripttempl/z8000.sc: Ditto.
3541 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3543 * Makefile.in (e_i386_chaos.c): New rule.
3544 (ALL_EMULATIONS): Added e_i386_chaos.o.
3545 * emulparams/elf_i386_chaos.sh: New file.
3546 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3548 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3550 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3551 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3552 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3553 library path suffix.
3554 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3556 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3558 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3559 for consecutive sections.
3561 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3563 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3565 * ld.texinfo: Added notes about this new option.
3567 2000-10-16 Nick Clifton <nickc@redhat.com>
3569 * emultempl/pe.em (_after_open): Add tests of return values from
3570 bfd functions. Emit appropriate error messages if necessary.
3572 2000-10-13 Nick Clifton <nickc@redhat.com>
3574 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3575 local variables - they are not used, but leave in the call to
3576 bfd_canonicalize_symtab.
3577 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3578 pe_dll_search_prefix.
3580 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3582 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3583 (longopts): New --dll-search-prefix option.
3584 (gld_${EMULATION_NAME}_list_options): Document.
3585 (gld_${EMULATION_NAME}_parse_args): Handle.
3586 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3587 dynamically, search for a dll named '<prefix><basename>.dll'
3588 in preference to 'lib<basename>.dll' if --dll-search-prefix
3591 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3593 * ldlang.c (section_already_linked): Set kept_section instead of
3596 2000-10-10 Kazu Hirata <kazu@hxi.com>
3598 * deffile.h: Fix formatting.
3599 * lexsup.c: Likewise.
3602 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3604 * pe-dll.c (make_one): Do not generate code thunk for DATA
3606 (process_def_file): deduce DATA flag for auto-export sumbols.
3608 2000-10-09 Kazu Hirata <kazu@hxi.com>
3610 * ld.h: Fix formatting.
3611 * ldcref.c: Likewise.
3612 * ldctor.h: Likewise.
3613 * ldemul.c: Likewise.
3614 * ldemul.h: Likewise.
3615 * ldexp.c: Likewise.
3616 * ldexp.h: Likewise.
3617 * ldfile.c: Likewise.
3618 * ldfile.h: Likewise.
3619 * ldlang.c: Likewise.
3620 * ldlang.h: Likewise.
3621 * ldmain.c: Likewise.
3622 * pe-dll.c: Likewise.
3624 * pe-dll.c: Revert some formatting fixes.
3626 2000-10-08 Kazu Hirata <kazu@hxi.com>
3628 * pe-dll.c: Fix formatting.
3630 2000-10-05 Kazu Hirata <kazu@hxi.com>
3632 * ldlang.c: Fix formatting.
3634 2000-10-03 DJ Delorie <dj@redhat.com>
3636 * pe-dll.c (fill_edata): initialize entire block
3637 (make_one): fill in correct section.
3639 2000-10-03 Kazu Hirata <kazu@hxi.com>
3641 * ldexp.c: Fix formatting.
3643 2000-10-02 DJ Delorie <dj@redhat.com>
3645 * emultempl/pe.em (gld_*_after_open): detect case where there two
3646 import libraries for same dll; rename one to ensure proper link
3649 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3651 (generate_edata): fix typo
3653 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3655 * scripttempl/crisaout.sc (ENTRY): Now __start.
3656 (.text): Add default setting for __start.
3657 Remove CONSTRUCTORS handling.
3658 (/DISCARD/): Add .gnu.warning.*.
3659 * emulparams/crislinux.sh (ENTRY): Now __start.
3660 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3661 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3662 (ENTRY): Now __start.
3663 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3664 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3666 2000-09-29 Kazu Hirata <kazu@hxi.com>
3668 * deffile.h: Fix formatting.
3670 * ldcref.c: Likewise.
3671 * ldctor.c: Likewise.
3672 * ldctor.h: Likewise.
3673 * ldemul.c: Likewise.
3674 * ldemul.h: Likewise.
3675 * ldexp.c: Likewise.
3676 * ldexp.h: Likewise.
3677 * ldfile.c: Likewise.
3678 * ldfile.h: Likewise.
3679 * ldlang.c: Likewise.
3680 * ldlang.h: Likewise.
3681 * lexsup.c: Likewise.
3683 * pe-dll.c: Likewise.
3685 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3687 * pe-dll.c (process_def_file): Uninitialized data wasn't
3688 exported with --export-all-symbols switch.
3690 2000-09-28 DJ Delorie <dj@redhat.com>
3692 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3693 noname work properly.
3695 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3697 * ld.texinfo (HPPA ELF32): New section.
3699 * emultempl/hppaelf.em (group_size): New.
3700 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3701 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3702 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3703 options to prevent abbreviations matching.
3704 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3705 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3707 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3709 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3710 on the m68*-*-elf target. Make it support COFF input objects.
3712 2000-09-21 Kazu Hirata <kazu@hxi.com>
3714 * ldmain.c: Fix formatting.
3715 * ldmisc.c: Likewise.
3716 * ldver.c: Likewise.
3717 * ldwrite.c: Likewise.
3719 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3721 * ldwrite.c (clone_section): Silence gcc warnings.
3723 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3725 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3726 out of memory failure.
3728 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3729 (clone_section): Handle out of memory failures. Rename var to
3730 avoid c++ reserved word.
3732 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3734 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3735 stub_name param to stub_sec_name.
3736 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3738 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3740 * emultempl/m68kelf.em: New file.
3741 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3742 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3743 * Makefile.in: Regenerate.
3745 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3747 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3750 2000-09-13 Nick Clifton <nickc@redhat.com>
3752 * ldmain.c (multiple_definition): Disable relaxation if
3753 multiple symbol definitions are encountered - otherwise the
3754 linker could abort with an assertion failure.
3756 2000-09-10 Nick Clifton <nickc@redhat.com>
3758 * mri.c: Fix formatting.
3760 2000-09-07 H.J. Lu <hjl@gnu.org>
3762 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3763 * configure: Rebuild.
3765 2000-09-07 H.J. Lu <hjl@gnu.org>
3767 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3768 * Makefile.in: Rebuild.
3770 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3772 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3773 broken list handling. Create __start_SECNAME and __stop_SECNAME
3774 when no place-holder. Add some comments. Test both SEC_CODE and
3775 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3776 Handle case where no output section statement created.
3778 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3780 * configure.tgt (sh-*-linux*): Added.
3781 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3782 * Makefile.in: Rebuilt.
3783 * emulparams/shelf_linux.sh: New file.
3784 * emulparams/shlelf_linux.sh: New file.
3786 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3788 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3789 try shuffling sections when the orphan happens to be the place
3790 holder. Keep count of unique section names generated so we speed
3791 the search for a new name.
3793 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3795 * configure: Rebuilt with new libtool.m4.
3797 2000-09-05 Nick Clifton <nickc@redhat.com>
3799 * Makefile.in: Regenerate.
3800 * aclocal.m4: Regenerate.
3801 * configure: Regenerate.
3802 * config.in: Regenerate.
3803 * po/ld.pot: Regenerate.
3805 * ldint.texinfo: Remove CVS revision marker - it foils local
3808 * emultempl/ticoff.em: Remove extraneous comma.
3810 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3812 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3813 to stub section flags.
3814 (hppa_for_each_input_file_wrapper): New.
3815 (hppa_lang_for_each_input_file): New.
3816 (lang_for_each_input_file): Define to call above.
3817 (multi_subspace): New.
3818 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3819 (PARSE_AND_LIST_PROLOGUE): Define.
3820 (PARSE_AND_LIST_LONGOPTS): Define.
3821 (PARSE_AND_LIST_OPTIONS): Define.
3822 (PARSE_AND_LIST_ARGS_CASES): Define.
3823 (hppaelf_finish): Call elf32_hppa_set_gp.
3824 (hppaelf_set_output_arch): Remove.
3825 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3827 * emulparams/hppalinux.sh (ELFSIZE): Define.
3829 (OTHER_READONLY_SECTIONS): Define.
3831 (GENERATE_SHLIB_SCRIPT): Define.
3833 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3834 to const throughout. Change `void *' to `PTR' throughout.
3835 (lang_memory_default): Function is local to file, add `static'.
3837 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3838 (ehppalinux.c): Likewise.
3839 (earmelf.c): Likewise.
3840 (earmelf_linux.c): Likewise.
3841 (earmelf_linux26.c): Likewise.
3842 * Makefile.in: Regenerate.
3844 * ld.h (ld_config_type): Add unique_orphan_sections.
3845 * lexsup.c (OPTION_UNIQUE): Define.
3846 (ld_options): Add "--unique".
3847 (parse_args): Handle it.
3848 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3849 search for an existing output section if unique_orphan_sections is
3850 set. Make use of bfd_get_unique_section_name rather than
3851 duplicating code here.
3852 * ld.texinfo: Describe --unique.
3854 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3855 optional arg to split-by-file.
3856 (parse_args): Handle them.
3857 * ld.texinfo: Update description of these options.
3858 * ldwrite.c (clone_section): Pass in the section name. Replace
3859 local code with bfd_get_unique_section_name.
3860 (split_sections): Tidy code and comments. Use a list traversal
3861 more appropriate to the list construction. Handle cooked section
3862 sizes. Split when split_by_reloc reached rather than exceeded.
3863 Track section size and split when split_by_file reached. Fix
3864 link_order_tail (even though it's not used).
3865 (ldwrite): Modify condition for calling split_sections to suit
3866 changed split_by_reloc and split_by_file.
3867 * ldmain.c (main): Init config.split_by_reloc and
3868 config.split_by_file to -1.
3869 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3870 Change split_by_file to bfd_size_type.
3872 2000-09-02 Nick Clifton <nickc@redhat.com>
3874 * configure.in: Increase version number to 2.10.91.
3875 * NEWS: Mention new ability to support removal of duplicate DWARF2
3877 * configure: Regenerate.
3878 * aclocal.m4: Regenerate.
3879 * config.in: Regenerate.
3881 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3883 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3885 * scripttempl/elf32avr.sc: Ditto.
3886 * scripttempl/elfd10v.sc: Ditto.
3887 * scripttempl/elfd30v.sc: Ditto.
3888 * scripttempl/elfi370.sc: Ditto.
3889 * scripttempl/elfm68hc11.sc: Ditto.
3890 * scripttempl/elfm68hc12.sc: Ditto.
3891 * scripttempl/elfi386beos.sc: Ditto.
3892 * scripttempl/v850.sc: Ditto.
3894 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3896 * acinclude.m4: Include libtool and gettext macros from the
3898 * aclocal.m4, configure: Rebuilt.
3900 2000-08-25 Nick Clifton <nickc@redhat.com>
3902 * ldlang.c (open_output): When choosing the target for a
3903 particular endianness, do nothing if the target is not
3906 2000-08-25 H.J. Lu <hjl@gnu.org>
3908 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3909 check -rpath nor LD_RUN_PATH for cross link.
3910 * ld.texinfo: Document the change.
3912 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3914 * NEWS: Mention support for CRIS.
3916 2000-08-23 H.J. Lu <hjl@gnu.org>
3918 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3919 the current runpath list from bfd_elf_get_runpath_list ()
3922 2000-08-22 H.J. Lu <hjl@gnu.org>
3924 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3925 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3926 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3927 trace_file_tries is non-zero.
3928 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3929 if trace_file_tries is non-zero.
3931 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3934 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3936 * NEWS: Mention i860 support.
3938 2000-08-14 Andreas Schwab <schwab@suse.de>
3940 * scripttempl/elf.sc: Fix last change to use correct comment
3943 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3945 * scripttempl/elf.sc: Add a comment giving the correspondence
3946 between sections, per-datum sections, and linkonce sections. Make
3947 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3950 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3952 * emulparams/elf32_i860.sh: New file.
3953 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3954 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3955 (eelf32_i860.c): New rule.
3956 * Makefile.in: Regenerate.
3958 2000-08-10 Nick Clifton <nickc@cygnus.com>
3960 * emulparams/mipspe.sh (ENTRY): Add definition.
3962 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3964 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3967 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3969 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3970 the final size of .bss section.
3971 * scripttempl/elfm68hc12.sc: Likewise.
3973 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3975 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3976 gld${EMULATION_NAME}_parse_args for consistency. Combine
3977 lastoptind and prevoptind vars, and keep track of last optind.
3978 (gld_${EMULATION_NAME}_list_options): Rename to
3979 gld${EMULATION_NAME}_list_options.
3981 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3983 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3984 (i586-sco-sysv5uw7.1.0).
3986 2000-07-27 H.J. Lu <hjl@gnu.org>
3988 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3989 (PARSE_AND_LIST_PROLOGUE): New.
3990 (PARSE_AND_LIST_LONGOPTS): Likewise.
3991 (PARSE_AND_LIST_OPTIONS): Likewise.
3992 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3993 (PARSE_AND_LIST_EPILOGUE): Likewise.
3995 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3997 * emultempl/armelf.em: Elide functions common to elf32.em,
3998 ie. most of the file.
3999 (arm_elf_after_open): New. Do arm specific things then call
4000 gld${EMULATION_NAME}_after_open.
4001 (arm_elf_before_allocation): New. Call
4002 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4003 (PARSE_AND_LIST_PROLOGUE): Define.
4004 (PARSE_AND_LIST_SHORTOPTS): Define.
4005 (PARSE_AND_LIST_LONGOPTS): Define.
4006 (PARSE_AND_LIST_OPTIONS): Define.
4007 (PARSE_AND_LIST_ARGS_CASES): Define.
4008 (LDEMUL_AFTER_OPEN): Define.
4009 (LDEMUL_BEFORE_ALLOCATION): Define.
4010 (LDEMUL_BEFORE_PARSE): Define.
4011 (LDEMUL_FINISH): Define.
4013 * emultempl/hppaelf.em: Similarly zap most of this file.
4014 (hppaelf_add_stub_section): Prototype.
4015 (hppaelf_layaout_sections_again): Prototype.
4016 (hook_in_stub): Prototype.
4017 (LDEMUL_SET_OUTPUT_ARCH): Define.
4018 (LDEMUL_FINISH): Define.
4019 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4021 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4022 (EXTRA_EM_FILE): New.
4023 * emulparams/armelf_linux.sh: Likewise.
4024 * emulparams/armelf_linux26.sh: Likewise.
4025 * emulparams/hppalinux.sh: Likewise.
4026 * emulparams/hppaelf.sh: Likewise.
4029 * emultempl/elf32.em: Fix formatting.
4030 (EXTRA_EM_FILE): Source it.
4031 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4032 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4033 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4034 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4035 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4036 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4037 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4038 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4039 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4040 allow functions in this file to be overridden.
4041 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4043 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4045 * emultempl/elf32.em: Reorganize file.
4047 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4049 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4050 specific option to fit 64-bit executable in the lower
4051 31-bit address range. This is done by changing start
4052 address of .interp (the very first section of executable)
4053 and then setting EF_ALPHA_32BIT elf header flag.
4055 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4057 * emultempl/m68kcoff.em: New file.
4058 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4059 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4061 * Makefile.in: Regenerate.
4063 2000-07-20 H.J. Lu <hjl@gnu.org>
4065 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4066 and "disable-new-dtags" to stop getopt from treating -d/-e as
4067 abbreviations for these options.
4069 2000-07-20 H.J. Lu <hjl@gnu.org>
4071 * ld.texinfo: Add documentation for --disable-new-dtags and
4074 * ldmain.c (main): Initialize link_info.new_dtags to false.
4076 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4077 --disable-new-dtags and --enable-new-dtags.
4078 (gld_${EMULATION_NAME}_list_options): Likewise.
4080 2000-07-05 Kenneth Block <krblock@computer.org>
4082 * lexsup.c: Add optional style to demangle switch
4083 * ld.texinfo: Document optional style to demangle switch.
4085 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4087 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4089 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4090 Regenerate dependencies.
4091 * Makefile.in: Rebuild.
4092 * configure.tgt (cris-*-*): New target.
4093 * emulparams/crisaout.sh, emulparams/criself.sh,
4094 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4095 * po/POTFILES.in, po/ld.pot: Regenerate.
4097 2000-07-20 H.J. Lu <hjl@gnu.org>
4099 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4100 Print out ignored -z options.
4102 2000-07-19 H.J. Lu <hjl@gnu.org>
4104 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4105 (PARSE_AND_LIST_PROLOGUE): New.
4106 (PARSE_AND_LIST_LONGOPTS): Likewise.
4107 (PARSE_AND_LIST_OPTIONS): Likewise.
4108 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4110 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4112 * lexsup.c (ld_options): Comment out 'z'.
4113 (parse_args): Likewise.
4115 * emultempl/elf32.em: Include "elf/common.h".
4116 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4118 (gld_${EMULATION_NAME}_list_options): Likewise.
4120 * ld.texinfo: Add documentation for the recognized -z options.
4122 2000-07-19 H.J. Lu <hjl@gnu.org>
4124 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4125 bfd_elf_set_dt_needed_soname ().
4127 2000-07-18 DJ Delorie <dj@cygnus.com>
4129 * pe-dll.c (pe_dll_id_target): check object target name also
4131 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4133 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4134 ${INIT_END} if relocating.
4135 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4137 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4139 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4140 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4141 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4142 errors introduced by the old dynamic lib search order.
4144 2000-07-17 DJ Delorie <dj@cygnus.com>
4146 * pe-dll.c (process_def_file): auto-export data items also
4147 (pe_process_import_defs): also see if _imp_ form needed
4149 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4151 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4152 for dll import libraries
4154 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4156 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4157 gcc 2.95.2 and later.
4159 2000-07-11 Kazu Hirata <kazu@hxi.com>
4161 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4164 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4166 * ldemul.h (struct lang_input_statement_struct): Remove forward
4168 (struct search_dirs): Likewise.
4169 * ldfile.h (struct lang_input_statement_struct): Likewise.
4170 Protect file from multiple inclusion.
4171 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4172 declaration from macro to file scope.
4174 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4175 * ldgram.y: Likewise here.
4176 * ldlang.c: And here.
4177 * ldmain.c: And here.
4178 * mpw-elfmips.c: And here.
4179 * mpw-eppcmac.c: And here.
4180 * emultempl/aix.em: And here.
4181 * emultempl/armcoff.em: And here.
4182 * emultempl/armelf.em: And here.
4183 * emultempl/armelf_oabi.em: And here.
4184 * emultempl/beos.em: And here.
4185 * emultempl/elf32.em: And here.
4186 * emultempl/hppaelf.em: And here.
4187 * emultempl/linux.em: And here.
4188 * emultempl/lnk960.em: And here.
4189 * emultempl/pe.em: And here.
4190 * emultempl/sunos.em: And here.
4191 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4192 * mpw-idtmips.c: Ditto.
4193 * emultempl/generic.em: Ditto.
4194 * emultempl/gld960.em: Ditto.
4195 * emultempl/gld960c.em: Ditto.
4196 * emultempl/mipsecoff.em: Ditto.
4197 * emultempl/ticoff.em: Ditto.
4198 * emultempl/vanilla.em: Ditto.
4200 * pe-dll.c: Include ldfile.h
4201 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4203 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4204 arguments to bfd_elf32_size_dynamic_sections call.
4205 (gldelf32ebmip_place_orphan): Add missing arguments to
4206 lang_leave_output_section_statement call.
4208 2000-07-10 H.J. Lu <hjl@gnu.org>
4210 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4212 (strhash): Likewise.
4213 (compute_dll_image_base): Likewise.
4214 (pe_undef_found_sym): Likewise.
4215 (pe_undef_cdecl_match): Likewise.
4216 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4217 argument "arch" with ATTRIBUTE_UNUSED.
4219 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4221 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4223 From Ryan Bradetich <rbradetich@uswest.net>
4224 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4226 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4228 Changes to create multiple linker stubs, positioned immediately
4229 before the section where they are required.
4230 * emultempl/hppaelf.em: Include elf32-hppa.h.
4231 (stub_sec, file_chain): Delete.
4232 (hppaelf_create_output_section_statements): Don't make a stub
4234 (hook_stub_info): New struct.
4235 (hook_in_stub): New function.
4236 (hppaelf_add_stub_section): New function.
4237 (hppaelf_finish): Do nothing for relocateable links. Modify the
4238 call to elf32_hppa_size_stubs. Move code for updating section
4240 (hppaelf_layaout_sections_again): ..to here, a new function.
4242 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4243 broken list handling. Pass in a pointer to the list.
4244 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4246 (hppaelf_before_parse): Prototype.
4247 (hppaelf_set_output_arch): Prototype.
4248 (hppaelf_create_output_section_statements): Prototype.
4249 (hppaelf_delete_padding_statements): Prototype.
4250 (hppaelf_finish): Prototype.
4253 * emultempl/hppaelf.em: Include ctype.h.
4254 (struct orphan_save): New.
4255 (gld${EMULATION_NAME}_place_orphan): New.
4256 (output_rel_find): New.
4257 (hppaelf_get_script): Update from elf32.em.
4258 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4259 Change emulation_name field to "${EMULATION_NAME}". Add
4260 gld${EMULATION_NAME}_place_orphan.
4262 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4263 ehppalinux.o, sort it. Regenerate dependencies.
4264 (ehppalinux.c): Depend on hppaelf.em
4265 * Makefile.in: Regenerate.
4267 * configure.tgt: targ_emul=hppalinux for hppa*linux
4269 * emulparams/hppalinux.sh: New.
4270 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4272 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4274 * lexsup.c (parse_args): Copy section name.
4276 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4278 * emultempl/pe.em: institute the following search order for
4279 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4280 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4281 static lib (libfoo.a) if none of the above are found.
4283 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4285 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4286 (longopts): New --{enable,disable}-auto-image-base options.
4287 (gld_${EMULATION_NAME}_list_options): Document.
4288 (gld_${EMULATION_NAME}_parse): Handle.
4289 (strhash): New static function.
4290 (compute_dll_image_base): New static function.
4291 (gld_${EMULATION_NAME}_set_symbols): Use.
4293 2000-07-05 DJ Delorie <dj@redhat.com>
4297 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4299 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4300 * emulparams/elf32btsmip.sh: New file.
4301 * Makefile.am: Add traditional mips target.
4302 * Makefile.in: Rebuild.
4304 2000-07-01 H.J. Lu <hjl@gnu.org>
4306 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4307 automake to use YLWRAP.
4308 * Makefile.in: Rebuild.
4310 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4312 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4313 (CLEANFILES): Add DEPA.
4314 * Makefile.in: Regenerate.
4316 2000-06-30 Timothy Wall <twall@ppc>
4318 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4319 the page in the upper octet of the address.
4321 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4323 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4325 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4327 * NEWS: arm-elf does --gc-sections too.
4329 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4331 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4333 * Makefile.in: Regenerate.
4335 2000-06-21 H.J. Lu <hjl@gnu.org>
4337 * Makefile.am: Rebuild dependency.
4338 * Makefile.in: Rebuild.
4340 2000-06-20 H.J. Lu <hjl@gnu.org>
4342 * Makefile.am: Rebuild dependency.
4343 * Makefile.in: Rebuild.
4345 2000-06-20 Timothy Wall <twall@cygnus.com>
4347 * scripttempl/tic54xcoff.sc: New.
4348 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4349 * gen-doc.texi: Add flag for TI COFF.
4350 * ld.texinfo: Add documentation for TI COFF handling switches.
4351 * emultempl/ticoff.em: New. TI COFF handling.
4352 * configure.tgt: Add tic54x target.
4353 * Makefile.am: Add tic54x target.
4354 * Makefile.in: Ditto.
4356 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4358 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4359 checking for backslashes.
4361 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4363 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4365 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4367 * NEWS: Update list of targets supporting --gc-sections.
4369 * scripttempl/elf.sc: KEEP .eh_frame contents.
4370 * scripttempl/elfd30v.sc: Same here.
4372 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4374 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4376 * Makefile.in: Rebuild.
4377 * configure.tgt: Recognize m68hc12 and m68hc11.
4378 * scripttempl/elfm68hc12.sc: New file.
4379 * emulparams/m68hc12elfb: New emulation.
4380 * emulparams/m68hc12elf: New emulation.
4381 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4382 (includes a memory.x script to define the ROM and RAM banks).
4383 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4384 New configuration files for support of Motorola 68hc11
4386 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4388 * ldmain.c (main): Only change SEC_READONLY for final link.
4390 2000-06-13 H.J. Lu <hjl@gnu.org>
4392 * configure: Regenerate.
4394 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4396 * configure.in (VERSION): Update to show this is the CVS mainline.
4398 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4400 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4401 input objects to be ECOFF.
4402 (check_sections): einfo takes %B, not %P, to print a BFD name.
4404 2000-06-05 Michael Matz <matz@ifh.de>
4406 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4409 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4411 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4413 * emulparams/avr1200.sh (STACK): Define as 0.
4414 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4415 * emulparams/avr4433.sh (STACK): Likewise.
4416 * emulparams/avr44x4.sh (STACK): Likewise.
4417 * emulparams/avr85xx.sh (STACK): Likewise.
4418 * emulparams/avrmega103.sh (STACK): Likewise.
4419 * emulparams/avrmega161.sh (STACK): Likewise.
4420 * emulparams/avrmega603.sh (STACK): Likewise.
4421 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4422 (__stack): Define from ${STACK} for main().
4424 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4426 * Makefile.am: Update dependencies with "make dep-am"
4427 * Makefile.in: Regenerate.
4429 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4431 * ldmain.c: Include filenames.h.
4432 (set_scripts_dir): Support backslashes in program name.
4434 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4436 * ldmain.c (main): When deciding if ".text" section should be
4437 read-only, don't forget to reset SEC_READONLY because it
4438 could be already set.
4440 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4442 * ld.1: Add documentation for new command line option:
4443 --section-start <sectionname>=<sectionorg>
4444 This is a generic version of -Ttext etc. which accepts
4445 any section name as a parameter instead of just text/data/
4447 * ld.texinfo: More docs.
4449 * lexsup.c: (parse_args): Recognize new command line option.
4450 (ld_options): Add new option.
4452 2000-05-18 H.J. Lu <hjl@gnu.org>
4454 * lexsup.c (parse_args): `i' == `r', not `q'.
4456 2000-05-18 Jeffrey A Law (law@cygnus.com)
4458 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4460 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4461 Rick Gorton <gorton@scrugs.lkg.dec.com>
4463 Add support for '-q' == '--emit-relocs' switch.
4464 * ldmain.c (main): Default to false.
4465 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4466 * NEWS: Describe the emitrelocations switch.
4467 * ld.texinfo: Describe the emitrelocations switch.
4469 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4471 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4472 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4473 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4476 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4478 * lexsup.c (parse_args): Update the year in the copyright notice.
4480 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4482 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4483 Replace defines with those from intl/libgettext.h to quieten gcc
4486 2000-05-10 H.J. Lu <hjl@gnu.org>
4488 * ldlang.c (open_input_bfds): Don't load the same file within
4489 a group again if the whole archive has been loaded already.
4491 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4493 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4494 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4497 2000-05-01 Jim Wilson <wilson@cygnus.com>
4499 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4501 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4502 host "ia64-*-linux-gnu*".
4504 2000-04-29 Andreas Jaeger <aj@suse.de>
4506 * ld.h: Correctly check GCC version.
4508 2000-04-25 Jeffrey A Law (law@cygnus.com)
4510 * Makefile.am: Add PA64 support. Add missing dependencies for
4512 * Makefile.in: Rebuilt.
4513 * configure.tgt: Add PA64 support (currently disabled).
4515 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4517 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4518 (output_rel_find): New function.
4519 (hold_section, hold_use): Delete.
4520 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4521 hold_interp): Make local to place_orphan.
4522 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4523 rather than place_section to find possible previous use of orphan.
4524 Similarly find the place-holder output sections. Use returned
4525 value from lang_enter_output_section_statement rather than calling
4526 lang_output_section_statement_lookup.
4527 * emultempl/armelf.em: Same here.
4528 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4530 * ldlang.c (lang_enter_output_section_statement): Return output
4532 * ldlang.h (lang_enter_output_section_statement): Change
4535 * ldlang.h (lang_output_section_statement): Export it.
4536 * ldlang.c (lang_output_section_statement): Ditto.
4538 2000-04-24 Nick Clifton <nickc@cygnus.com>
4540 * ld.texinfo (Output Section Data): Add note that section data
4541 commands cannot appear outside of section directives.
4543 2000-04-2 Matthew Green <mrg@cygnus.com>
4545 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4547 2000-04-21 Richard Henderson <rth@cygnus.com>
4548 David Mosberger <davidm@hpl.hp.com>
4550 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4551 (eelf64_ia64.c): New rule.
4552 * Makefile.in: Rebuild.
4553 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4554 * emulparams/elf64_ia64.sh: New file.
4556 2000-04-21 Richard Henderson <rth@cygnus.com>
4558 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4560 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4562 * dep-in.sed: Match space at start of file name, not at end.
4564 2000-04-18 H.J. Lu <hjl@gnu.org>
4566 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4567 lang_leave_output_section_statement () after calling
4568 lang_enter_output_section_statement ().
4569 * emultempl/armelf.em: Likewise.
4571 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4573 * emultempl/elf32.em (struct orphan_save): Add section field.
4574 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4575 better order, and place first orphan section as we did before the
4576 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4577 Don't call make_bfd_section here, let wild_doit do the job for us.
4578 Don't build a statement list when we'll only throw it away.
4579 * emultempl/armelf.em: Ditto.
4580 * emultempl/pe.em: Similarly.
4582 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4584 * scripttempl/elfppc.sc: Remove.
4585 * emulparams/elf32ppc.sh: Use elf.sc.
4586 * emulparams/elf32lppc.sh: Use elf.sc.
4587 * emulparams/elf32ppclinux.sh: Use elf.sc.
4588 * emulparams/elf32ppcsim.sh: New file.
4589 * emulparams/elf32lppcsim.sh: New file.
4590 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4591 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4592 * Makefile.in: Regenerate.
4593 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4595 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4597 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4598 ~SEC_ALLOC sections too. Init start address of debug sections.
4599 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4600 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4601 Also set all relocateable section start addresses.
4603 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4605 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4606 Add new BSS_PLT variable for when .plt need not be contained in
4607 the file. Move _etext so that it is also after .fini, and provide
4608 both etext and _etext with a leading underscore. Mark the start
4611 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4613 * emultempl/elf32.em (struct orphan_save): New.
4614 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4615 hold_interp): Make them struct orphan_save.
4616 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4617 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4618 the end of the relevant section list. Also add associated section
4619 statements to the end of any previous orphan statements.
4620 * emultempl/armelf.em: Similarly.
4621 * emultempl/pe.em: Similarly.
4623 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4625 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4627 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4629 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4630 --enable-build-warnings option.
4631 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4632 * Makefile.in, configure: Re-generate.
4634 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4636 * po/ld.pot: Regenerate.
4638 * lexsup.c (help): Restore translated part of bug string.
4640 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4641 (DEP): Quote when passing vars to sub-make. Add warning message
4643 (DEP1): Rewrite for "gcc -MM".
4644 (CLEANFILES): Add DEP2.
4645 Update dependencies.
4646 * Makefile.in: Regenerate.
4648 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4650 * ld.h: #include "bin-bugs.h"
4651 * lexsup.c (help): Use REPORT_BUGS_TO.
4653 2000-03-27 Denis Chertykov <denisc@overta.ru>
4655 * configure.tgt (avr-*-*): New target support.
4656 * Makefile.am: Likewise.
4657 * scripttempl/elf32avr.sc: New script file.
4658 * emulparams/avr1200.sh: New file.
4659 * emulparams/avr23xx.sh: New file.
4660 * emulparams/avr4433.sh New file.
4661 * emulparams/avr44x4.sh New file.
4662 * emulparams/avr85xx.sh New file.
4663 * emulparams/avrmega103.sh New file.
4664 * emulparams/avrmega161.sh New file.
4665 * emulparams/avrmega603.sh New file.
4666 * Makefile.in: Regenerate.
4668 2000-03-09 Andreas Jaeger <aj@suse.de>
4670 * Makefile.am (check-DEJAGNU): Also unset LANG.
4671 * Makefile.in: Rebuild.
4673 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4675 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4678 2000-03-02 H.J. Lu <hjl@gnu.org>
4680 * emulparams/elf32mcore.sh: Include "getopt.h".
4682 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4684 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4686 2000-03-01 H.J. Lu <hjl@gnu.org>
4688 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4689 * emulparams/shpe.sh: Likewise.
4691 2000-03-01 Nick Clifton <nickc@cygnus.com>
4693 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4694 to unused parameters.
4696 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4697 functions only used by DLL code.
4698 (_place_orphan): Initialise 'dollar'.
4700 2000-03-01 H.J. Lu <hjl@gnu.org>
4702 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4703 indicate if the undefined symbol is a fatal error or not.
4704 Don't delete the output file if "fatal" is false.
4706 2000-02-29 H.J. Lu <hjl@gnu.org>
4708 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4709 Set LC_COLLATE and LC_ALL to null and export them. It is for
4710 sort which expects the C locale.
4711 Add $(LIBS) to all $(HOSTING_LIBS).
4712 * Makefile.in: Rebuild.
4714 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4716 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4717 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4718 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4719 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4720 find_potential_libraries.
4722 2000-02-28 Jim Blandy <jimb@redhat.com>
4724 * ldgram.y (exclude_name_list): Don't require a comma to separate
4725 list entries; the lexer considers commas to be valid part of a
4726 filename, so in something like `foo, bar' the comma is considered
4727 part of the first filename, `foo,'.
4728 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4730 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4732 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4733 host "i[3456]86-*-freebsdelf*".
4735 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4737 * scripttempl/i386go32.sc: Move misplaced semicolons.
4739 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4741 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4742 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4743 (eelf64hppa.c, ehppaelf.c): Remove targets.
4744 * Makefile.in: Rebuild.
4746 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4748 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4749 GNU/Linux/sparc, but keep the default as 32.
4751 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4752 it default if sparcv9 or sparc64.
4754 2000-02-24 Nick Clifton <nickc@cygnus.com>
4756 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4757 * Makefile.in: Regenerate.
4758 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4760 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4761 find_potential_libraries.
4762 * ldemul.c (ldemul_find_potential_libraries): New function.
4764 * ldfile.c (ldfile_open_file_search): Allow function to be
4766 (ldfile_open_file): Call ldemul_find_potential_libraries.
4767 * ldfile.h: Add prototype for ldfile_open_file_search.
4769 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4771 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4772 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4774 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4775 (gld_X_find_potential_libraries): New function. Search for
4776 libraries called "*.lib".
4778 * scripttempl/pe.sc: Add .pdata section.
4780 2000-02-23 Richard Henderson <rth@cygnus.com>
4782 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4783 Add and use memory regions.
4785 2000-02-23 Linas Vepstas (linas@linas.org)
4787 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4789 * Makefile.am: Add support for Linux/IBM 370.
4790 * configure.tgt: Likewise.
4792 * Makefile.in: Regenerate.
4794 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4796 * ldlang.c (print_input_section, print_data_statement,
4797 print_reloc_statement, print_padding_statement, insert_pad,
4798 size_input_section, lang_check_section_addresses,
4799 lang_size_sections, lang_do_assignments, lang_set_startof,
4800 lang_one_common): Change `opb' to unsigned.
4801 (lang_do_assignments): Also change `size' to unsigned.
4803 2000-02-16 Richard Henderson <rth@cygnus.com>
4805 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4807 2000-02-16 Timothy Wall <twall@cygnus.com>
4809 * mri.c (mri_draw_tree): Add default LMA region argument to call
4810 to lang_leave_output_section_statement.
4811 * ldlang.h: Update prototypes with LMA region arguments.
4812 * ldlang.c (lang_size_sections): Encapsulate region bounds
4813 checking in os_check_region call.
4814 (os_check_region): New function.
4815 (lang_output_section_statement_lookup): Initialize lma_region.
4816 (lang_leave_output_section_statement): Add LMA region argument.
4817 (lang_leave_overlay): Ditto.
4818 * ldgram.y: Handle LMA region syntax.
4819 * ld.texinfo (Output Section Description): Describe LMA region usage.
4820 * emultempl/armelf.em (gld$place_orphan): Add default value for
4821 lma region in call to lang_leave_output_section_statement.
4822 * emultempl/elf32.em (gld$place_orphan): Add default value for
4823 lma region in call to lang_leave_output_section_statement.
4824 * emultempl/pe.em (gld$place_orphan): Add default value for
4825 lma region in call to lang_leave_output_section_statement.
4828 2000-02-04 Timothy Wall <twall@redhat.com>
4830 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4831 octets when calculating section end addresses.
4833 2000-02-04 Timothy Wall <twall@redhat.com>
4835 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4837 2000-02-03 Timothy Wall <twall@redhat.com>
4839 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4841 * ldlang.c (print_input_section, print_data_statement,
4842 print_reloc_statement, print_padding_statement): Print target
4843 address values and section sizes as bytes, not octets.
4844 (insert_pad) Calculate padding size in octets, and adjust "dot"
4846 (size_input_section) Always adjust "dot" by bytes, not octets.
4847 (lang_check_section_addresses, lang_do_assignments) Adjust
4848 "dot" by bytes, not octets. Use the larger of the directive size
4849 or octets_per_byte for the number of octets actually allocated in
4851 (lang_set_startof) Make sure STARTOF returns a target address.
4852 (lang_one_common) Record size changes in octets.
4853 (lang_abs_symbol_at_end_of) Section end symbol's value is
4854 recorded in target bytes.
4855 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4856 to be clear about behavior when an octet is smaller than one byte.
4858 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4860 * ldcref.c (output_cref): Don't pass message strings to printf
4864 * ldmisc.c (vfinfo): Same here.
4867 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4869 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4870 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4871 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4872 Add missing NULL initialisers, and comments.
4874 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4876 2000-01-21 Nick Clifton <nickc@cygnus.com>
4878 * ldlang.c (lang_size_sections): Fix typo in comment.
4880 2000-01-18 H.J. Lu <hjl@gnu.org>
4882 * ldlang.c (lang_size_sections): Also update the current
4883 address of a region if the SEC_NEVER_LOAD bit is not set.
4885 2000-01-10 Philip Blundell <pb@futuretv.com>
4887 * configure.tgt (arm*-*-conix*): New target.
4889 2000-01-07 Nick Clifton <nickc@cygnus.com>
4891 * ld.texinfo (Options): Remind users to preceed linker command
4892 line switches with -Wl, (or whatever is appropriate) if it is
4893 being invoked by a comnpiler driver program.
4894 Fix description of the behaviour of the -n command line switch.
4896 2000-01-05 Catherine Moore <clm@cygnus.com>
4898 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4900 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4901 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4902 (exclude_name_list): New.
4903 ldlang.c (walk_wild_section): Support list of excluded files.
4904 (print_wild_statement): Likewise.
4905 (lang_add_wild): Likewise.
4906 * ldlang.h (lang_wild_statement_type): Likewise.
4907 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4909 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4911 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4912 (process_def_file): Use.
4913 (pe_dll_compat_implib): New variable.
4916 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4917 pe_dll_compat_implib.
4919 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4920 compat-implib options.
4921 (gld_${EMULATION_NAME}_list_options): List new options.
4922 (gld_${EMULATION_NAME}_parse_args): Handle.
4924 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4927 * deffilep.y (opt_name): Allow "." in name.
4929 For older changes see ChangeLog-9899
4935 version-control: never