1 2002-07-26 Bernd Schmidt <bernds@redhat.com>
3 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
6 2002-07-25 Nick Clifton <nickc@redhat.com>
8 * po/sv.po: Updated Swedish translation.
9 * po/es.po: Updated Spanish translation.
10 * po/fr.po: Updated French translation.
12 2002-07-24 Nick Clifton <nickc@redhat.com>
14 * po/sv.po: Updated Swedish translation.
15 * po/es.po: Updated Spanish translation.
17 2002-07-23 Nick Clifton <nickc@redhat.com>
19 * po/fr.po: Updated French translation.
21 2002-07-20 Alan Modra <amodra@bigpond.net.au>
23 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
24 bomb on /DISCARD/ input section.
25 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
26 * emultempl/mmo.em (mmo_place_orphan): Likewise.
28 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
30 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
33 2002-07-16 Denis Chertykov <denisc@overta.ru>
34 Nick Clifton <nickc@redhat.com>
35 Frank Ch. Eigler <fche@redhat.com>
36 John Healy <jhealy@redhat.com>
38 * configure.tgt: Add support for ip2k-elf.
39 * Makefile.am: Add support for ip2k-elf.
40 * Makefile.in: Regenerate.
41 * emulparams/elf32ip2k.sh: New file.
42 * scripttempl/ip2k.sc: New file
43 * NEWS: Mention support for new port.
45 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
47 * NEWS: Add 'Changes in 2.13'.
49 2002-07-14 H.J. Lu <hjl@gnu.org>
51 * ld.texinfo: Document a .symver takes precedence over a
54 2002-07-12 Alan Modra <amodra@bigpond.net.au>
56 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
57 (COMMONPAGESIZE): Define.
59 2002-07-09 Alan Modra <amodra@bigpond.net.au>
61 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
63 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
65 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
66 powerpc-*-openbsd* and sparc64-*-openbsd*.
67 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
68 * Makefile.in: Regenerate.
69 * emulparams/hppaobsd.sh: New file.
71 2002-07-05 Alan Modra <amodra@bigpond.net.au>
73 * ldlang.c (print_wild_statement): Fix output formatting.
75 2002-07-04 Alan Modra <amodra@bigpond.net.au>
77 * ldlang.c: (strip_excluded_output_sections): New function.
78 (lang_process): Call it.
79 (lang_size_sections_1): Revert 2002-06-10 change.
81 2002-07-03 Alan Modra <amodra@bigpond.net.au>
83 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
85 * Makefile.in: Regenerate.
87 2002-07-02 Alan Modra <amodra@bigpond.net.au>
89 * ldfile.c (ldfile_try_open_bfd): Formatting.
91 * ldmisc.c (demangle): Move so that it doesn't intrude between
92 vfinfo comment and body. Add comment.
94 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
96 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
98 2002-07-01 Alan Modra <amodra@bigpond.net.au>
100 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
101 * ldlang.c (entry_sym): Likewise.
102 (ldlang_undef_chain_list_type): Likewise.
103 (lang_finish): Adjust references to entry_symbol.
104 (lang_add_entry): Likewise.
105 (lang_gc_sections): Use link_info.gc_sym_list.
106 (lang_process): Set link_info.gc_sym_list.
107 * ldlex.l: Include bfdlink.h.
108 * ldmain.c (main): Init link_info.gc_sym_list.
109 * emultempl/aix.em: Adjust references to entry_symbol.
110 * emultempl/armcoff.em: Likewise.
111 * emultempl/armelf.em: Likewise.
112 * emultempl/pe.em: Likewise.
113 * emultempl/ppc64elf.em (ppc_after_open): New function.
114 (LDEMUL_AFTER_OPEN): Define.
115 * emulparams/elf64ppc.sh: KEEP .opd sections.
117 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
119 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
120 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
121 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
122 (EEPROM_START_ADDR): Define.
123 (EEPROM_MEMORY): Define.
124 * emulparams/m68hc12elf.sh: Likewise.
125 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
126 section to put soft registers in .page0.
127 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
129 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
131 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
132 section. Add ${RELOCATING-0}.
134 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
136 * emulparams/shelf.sh (STACK_ADDR): Don't define.
137 (OTHER_SECTIONS): Define.
138 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
139 (OTHER_SECTIONS): Undef.
141 2002-06-26 Alan Modra <amodra@bigpond.net.au>
143 * ldmisc.c (demangle): Restore dots stripped from sym name.
145 2002-06-25 H.J. Lu <hjl@gnu.org>
147 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
148 * Makefile.in: Regenerated.
150 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
152 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
153 the size of attached object files, to allow make the object files
154 available via FTP or HTTP and to mention that the mail will be
155 sent to a mailing list.
157 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
159 * ld/configure.host (romp): Drop support.
161 2002-06-18 Chris Demetriou <cgd@broadcom.com>
163 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
164 section flags for SEC_DATA, rather than for SEC_CODE being unset.
166 2002-06-18 Chris Demetriou <cgd@broadcom.com>
168 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
169 format specifier used to print BFD name.
171 2002-06-18 Dave Brolley <brolley@redhat.com>
173 From Catherine Moore, Michael Meissner, Jim Blandy:
174 * emulparams/elf32frv.sh: New file.
175 * configure.tgt: Support frv-*-*.
176 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
177 (eelf32frv.c): New target.
179 2002-06-17 Tom Rix <trix@redhat.com>
181 * emultempl/elf32.em: gld*_get_script: Check for
182 GENERATE_COMBRELOC_SCRIPT.
183 * scripttempl/elfd10v.sc : Fix STACK and INSN.
184 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
186 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
188 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
190 2002-06-12 H.J. Lu <hjl@gnu.org>
192 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
193 false if xvec doesn't match.
195 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
197 * ldlang.c (lang_size_sections_1): Skip removed output sections.
199 2002-06-08 Alan Modra <amodra@bigpond.net.au>
201 * ldexp.c: Replace CONST with const.
202 * ldfile.c: Likewise.
203 * ldfile.h: Likewise.
206 * pe-dll.h: Likewise.
208 2002-06-07 Alan Modra <amodra@bigpond.net.au>
210 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
212 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
214 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
215 to -1 == implicit enable.
216 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
217 initialize link_info.pei386_auto_import to -1 == implicit
219 (gld_${EMULATION_NAME}_parse_args): When processing
220 --enable-auto-import and --disable-auto-import options, use
221 '1' and '0' instead of 'true' and 'false'.
222 (pe_find_data_imports): Only issue message about auto-import
223 when the feature is implicitly enabled. Downgrade message to
224 informational instead of warning.
226 2002-06-07 Alan Modra <amodra@bigpond.net.au>
228 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
230 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
232 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
233 HOSTING_CRT0 and HOSTING_LIBS.
235 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
237 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
239 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
241 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
242 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
244 2002-06-05 Alan Modra <amodra@bigpond.net.au>
246 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
247 SEC_EXCLUDE sections when doing a relocatable link.
249 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
251 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
252 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
253 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
254 (eshlelf64_nbsd.c): New rules.
255 * Makefile.in: Regenerate.
256 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
257 (sh64-*-netbsd*): New targets.
258 * emulparams/shelf32_nbsd.sh: New file.
259 * emulparams/shelf64_nbsd.sh: New file.
260 * emulparams/shlelf32_nbsd.sh: New file.
261 * emulparams/shlelf64_nbsd.sh: New file.
263 2002-06-04 Alan Modra <amodra@bigpond.net.au>
265 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
267 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
269 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
270 C++ constructors/destructors, loosely based on the m68hc11 port.
272 2002-05-31 Alan Modra <amodra@bigpond.net.au>
274 * Makefile.in: Regenerate.
275 * aclocal.m4: Regenerate.
276 * config.in: Regenerate.
277 * configure: Regenerate.
279 2002-05-31 Graeme Peterson <gp@qnx.com>
281 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
282 (ei386nto.c): Add rule.
283 * Makefile.in: Regenerate.
284 * configure.tgt: Add i[3456]86-*-nto-qnx*.
285 * emulparams/i386nto.sh: New file.
287 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
289 * NEWS: Add entry for VAX ELF support.
291 2002-05-29 Matt Thomas <matt@3am-software.com>
292 Jason Thorpe <thorpej@wasabisystems.com>
294 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
296 (evaxnbsd.c): New rules.
297 * Makefile.in: Regenerate.
298 * configure.tgt (vax-*-netbsdelf*)
300 (vax-*-netbsd*): New targets.
301 * emulparams/elf32vax.sh: New file.
302 * emulparams/vaxnbsd.sh: New file.
304 2002-05-29 Adam Nemet <anemet@lnxw.com>
306 * emultempl/armelf.em (arm_elf_after_open): Don't determine
307 bfd_for_interwork, instead add glue sections to each input bfd.
308 (bfd_for_interwork): New global.
309 (arm_elf_set_bfd_for_interworking): New function.
310 (arm_elf_before_allocation): Use it.
312 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
314 * Makefile.am: Add DLX make target.
315 * configure.tgt: Add DLX configuration.
316 * Makefile.in: Regenerate.
317 * emulparams/elf32_dlx.sh: New file
318 * scripttempl/dlx.sc: New file
320 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
322 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
323 * Makefile.in: Regenerate.
324 * emulparams/elf_chaos.sh: Use elf_chaos script.
325 * scripttempl/elf_chaos.sc: New file.
327 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
329 * ldlang.c (lang_size_sections_1): Move check for conflicting load
330 addresses and regions from here...
331 (lang_get_regions): ...to this new function.
332 (lang_leave_output_section_statement): Use lang_get_regions.
333 (lang_leave_overlay): Likewise.
334 * mri.c (mri_draw_tree): Pass null as last argument to
335 lang_leave_output_section_statement.
336 * emultempl/elf32.em (gld*_place_orphan): Likewise.
337 * emultempl/mmo.em (mmo_place_orphan): Likewise.
338 * emultempl/pe.em (gld*_place_orphan): Likewise.
340 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
342 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
344 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
346 * ldemul.c: Fix formatting.
347 * ldfile.c: Likewise.
348 * pe-dll.c: Likewise.
349 * pe-dll.h: Likewise.
351 2002-05-25 Alan Modra <amodra@bigpond.net.au>
353 * ldlang.c (lang_process): Formatting, grammar.
355 * ldlex.l: Use #include "" instead of <> for local header files.
357 2002-05-24 TAMURA Kent <kent@netbsd.org>
359 * configure.tgt: Add a target for i386-netbsdpe.
361 2002-05-23 Jakub Jelinek <jakub@redhat.com>
363 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
364 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
365 output section if necessary. Handle .tbss.
366 (lang_size_sections): Clear _raw_size for .tbss section
367 (it allocates space in PT_TLS segment only).
368 * ldwrite.c (build_link_order): Build link order for .tbss too.
370 2002-05-23 Alan Modra <amodra@bigpond.net.au>
372 * configure.in: Correct spelling of AC_PREREQ.
374 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
376 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
378 (autofilter_objlist): Add crtbegin.o, crtend.o.
380 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
382 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
383 (longopts): Add new option --exclude-libs.
384 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
385 (gld_${EMULATION_NAME}_parse_args): Use it.
386 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
387 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
389 (pe_dll_add_excludes): Set excludes->type.
390 (auto_export): Add new variable libname and set to archive basename if
391 abfd. Use it when filtering default and user-specified libarary
392 excludes. Let string "ALL" mean all libs when filtering user-specified
394 * ld.texinfo: Document --exclude-libs.
396 2002-05-22 Alan Modra <amodra@bigpond.net.au>
398 * ldemul.c (ldemul_new_vers_pattern): New function.
399 * ldemul.h (ldemul_new_vers_pattern): Declare.
400 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
401 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
402 * emultempl/ppc64elf.em (dotsyms): New static var.
403 (gld${EMULATION_NAME}_new_vers_pattern): New function.
404 (LDEMUL_NEW_VERS_PATTERN): Define.
405 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
406 (PARSE_AND_LIST_LONGOPTS): Likewise.
407 (PARSE_AND_LIST_ARGS_CASES): Handle them.
408 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
410 * emultempl/armcoff.em: Likewise.
411 * emultempl/armelf_oabi.em: Likewise.
412 * emultempl/beos.em: Likewise.
413 * emultempl/elf32.em: Likewise.
414 * emultempl/generic.em: Likewise.
415 * emultempl/gld960.em: Likewise.
416 * emultempl/gld960c.em: Likewise.
417 * emultempl/linux.em: Likewise.
418 * emultempl/lnk960.em: Likewise.
419 * emultempl/m68kcoff.em: Likewise.
420 * emultempl/mipsecoff.em: Likewise.
421 * emultempl/pe.em: Likewise.
422 * emultempl/sunos.em: Likewise.
423 * emultempl/ticoff.em: Likewise.
424 * emultempl/vanilla.em: Likewise.
426 2002-05-22 Alan Modra <amodra@bigpond.net.au>
428 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
429 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
430 (LIB_SEARCH_DIRS): No need to use "tr".
431 (COMPILE_IN): Only set for native targets.
432 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
433 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
434 * configure.tgt (powerpc*): Set tdir_*.
435 (powerpcle*): Correct targ_extra_emuls.
436 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
437 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
439 2002-05-22 Alan Modra <amodra@bigpond.net.au>
441 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
442 calling lang_add_entry.
444 2002-05-21 H.J. Lu (hjl@gnu.org)
446 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
448 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
450 * ld.texinfo: Updated for --allow-multiple-definition and
453 * ldmain.c (main): Initialize the allow_multiple_definition
456 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
457 (ld_options): Add --allow-multiple-definition.
458 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
460 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
462 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
463 (earmelfb_nbsd.c): New rule.
464 * Makefile.in: Regenerate.
465 * configure.tgt (armeb-*-netbsdelf*): New target.
466 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
467 (arm-*-netbsd*): Likewise.
468 * emulparams/armelfb_nbsd.sh: New file.
470 2002-05-18 Tom Rix <trix@redhat.com>
472 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
475 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
477 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
478 * Makefile.in: Regenerate.
479 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
481 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
483 * emulparams/avr1.sh: New file.
484 * emulparams/avr2.sh: New file.
485 * emulparams/avr3.sh: New file.
486 * emulparams/avr4.sh: New file.
487 * emulparams/avr5.sh: New file.
488 * scripttempl/avr.sc: New file.
490 2002-05-15 Alan Modra <amodra@bigpond.net.au>
492 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
493 (lang_place_orphans): Abort if just_syms_flag.
495 2002-05-10 Tom Rix <trix@redhat.com>
497 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
498 architecture and machine information in the output bfd.
499 (gld*_before_parse): Remove old arch and machine code.
500 (choose_target): Rename to gld*_choose_target.
501 (rtld): Change type to int.
502 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
503 objects in XCOFF archives.
504 * ldfile.h: Update copyright date.
506 2002-05-10 Jakub Jelinek <jakub@redhat.com>
508 * ldmain.c (main): Enable -z combreloc by default.
510 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
512 * Makefile.am: Honour DESTDIR.
513 * Makefile.in: Regenerate.
515 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
517 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
518 (lang_enter_overlay): Remove the last two parameters.
519 (lang_leave_overlay): Take them here instead.
520 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
521 (section): Pass LMA and crossref flag to lang_leave_overlay rather
522 than lang_enter_overlay.
523 * ldlang.c (lang_memory_region_lookup): Return null for null names.
524 (lang_output_section_statement_lookup): Initialize update_dot_tree.
525 (lang_size_sections_1): Evaluate it.
526 (lang_leave_output_section_statement): Rework LMA lookup.
527 (overlay_lma, overlay_nocrossrefs): Remove.
528 (lang_enter_overlay): Remove LMA and crossref arguments.
529 (lang_enter_overlay_section): Don't set the LMA here.
530 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
531 assignment to the last section's update_dot_tree. Unconditionally
532 use the load and run-time regions specified in the OVERLAY statement.
533 Likewise the first section's LMA. Only set the other sections' LMAs
534 when no load region is given.
536 2002-05-06 Nick Clifton <nickc@redhat.com>
538 * po/sv.po: New translation.
540 2002-05-04 Alan Modra <amodra@bigpond.net.au>
542 * emultempl/hppaelf.em (build_section_lists): New function.
543 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
544 and build_section_lists.
546 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
548 * ld.h: Fix formatting.
550 * ldfile.c: Likewise.
551 * ldlang.c: Likewise.
552 * ldmain.c: Likewise.
553 * lexsup.c: Likewise.
554 * pe-dll.c: Likewise.
556 2002-05-02 Alan Modra <amodra@bigpond.net.au>
558 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
559 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
560 (build_section_lists): Do output_section tests here.
562 2002-04-30 Tom Rix <trix@redhat.com>
564 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
566 2002-05-01 Alan Modra <amodra@bigpond.net.au>
568 Long branch stubs, multiple stub sections.
569 * emultempl/ppc64elf.em: Include ldctor.h.
570 (stub_file): New var.
571 (group_size): New var.
572 (ppc_create_output_section_statements): New function.
573 (struct hook_stub_info): New.
574 (hook_in_stub): New function.
575 (ppc_add_stub_section): New function.
576 (ppc_layout_sections_again): New function.
577 (build_section_lists): New function.
578 (gld${EMULATION_NAME}_finish): Rewrite.
579 (real_func): New var.
580 (ppc_for_each_input_file_wrapper): New function.
581 (ppc_lang_for_each_input_file): New function.
582 (lang_for_each_input_file): Define.
583 (PARSE_AND_LIST_PROLOGUE): Define.
584 (PARSE_AND_LIST_LONGOPTS): Define.
585 (PARSE_AND_LIST_OPTIONS): Define.
586 (PARSE_AND_LIST_ARGS_CASES): Define.
587 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
589 2002-04-30 Tom Rix <trix@redhat.com>
591 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
592 -blibpath, -bnolibpath support.
594 2002-04-30 Mark Mitchell <mark@codesourcery.com>
596 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
597 (eelf32ppcwindiss.c): New target.
598 * Makefile.in: Regenerated.
599 * configure.tgt: Add support for powerpc-*-windiss.
600 * emulparams/elf32ppcwindiss.sh: New file.
602 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
604 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
605 * ldexp.c (exp_print_token): Add "infix_p" argument.
606 (exp_print_tree): Update accordingly.
608 2002-04-28 Alan Modra <amodra@bigpond.net.au>
610 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
611 * Makefile.in: Regenerate.
612 * mpw-elfmips.c: Delete.
613 * mpw-eppcmac.c: Delete.
615 * mpw-idtmips.c: Delete.
617 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
619 * emulparams/shelf32.sh (MACHINE): Now sh5.
621 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
623 * ldgram.y: Fix syntax warning.
625 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
627 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
628 to prevent "-n" from being taken as an abbreviation for
629 "--no-pipeline-knowledge".
631 2002-04-08 Alan Modra <amodra@bigpond.net.au>
633 * ldlang.c (lang_size_sections_1): Don't complain about
634 SEC_NEVER_LOAD sections having no memory region specified.
636 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
638 2002-04-07 matthew green <mrg@redhat.com>
640 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
642 2002-04-04 Alan Modra <amodra@bigpond.net.au>
644 * dep-in.sed: Cope with absolute paths.
645 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
647 * Makefile.in: Regenerate.
649 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
651 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
653 2002-04-03 Jakub Jelinek <jakub@redhat.com>
655 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
656 is smaller than maximum, round dot up to common page boundary.
658 2002-03-28 Alan Modra <amodra@bigpond.net.au>
660 * configure.host: Set up for generic hosts first, then tweak as
661 necessary in more specific targets.
662 (HOSTING_LIBS): Include libgcc_eh.a if found.
664 2002-03-23 Andreas Jaeger <aj@suse.de>
666 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
668 2002-03-21 Alan Modra <amodra@bigpond.net.au>
670 * Makefile.am: Run "make dep-am".
671 * Makefile.in: Regenerate.
673 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
675 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
677 2002-03-20 Alan Modra <amodra@bigpond.net.au>
679 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
680 add the symbol to the linker hash table immediately.
681 (lang_place_undefineds): Split symbol creation out..
682 (insert_undefined): ..to here.
684 2002-03-18 David O'Brien <obrien@FreeBSD.org>
686 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
687 the contents of the buffer returned from basename function will are
688 getting overwritten while still being used.
690 2002-03-18 Jan Hubicka <jh@suse.cz>
691 Andreas Jaeger <aj@suse.de>
692 Andreas Schwab <schwab@suse.de>
694 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
695 * elf_x86_64.sh (ARCH): Set to i386:x86-64
696 set libraries to default to lib64 paths.
698 2002-03-18 Tom Rix <trix@redhat.com>
700 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
701 * configure.tgt : Same.
702 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
703 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
704 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
705 emulation parameters for better -b32, -b64 support.
706 * emulparms/aixrs6.sh : Same.
707 * emulparms/ppcmacos.sh : Same.
708 * emultempl/aix.em (choose_target) : Use new emulation parameters
709 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
710 * Makefile.in : Regenerate.
712 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
714 * po/fr.po: Updated version.
716 2002-03-18 Alan Modra <amodra@bigpond.net.au>
718 * ldmain.c (main): Move .text readonly flag fudges from here..
719 * ldlang.c (lang_process): ..to here.
721 2002-03-14 Alan Modra <amodra@bigpond.net.au>
723 * ldlang.c (lang_check): Remove the word size check added in last
724 change. Treat emitrelocations case as for relocatable links.
726 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
728 * po/fr.po: Updated version.
730 2002-03-13 Alan Modra <amodra@bigpond.net.au>
732 * ldlang.c (lang_check): Do relocatable link checks first, so that
733 warn_mismatch can't override. Check compatible and word size too.
735 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
737 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
739 2002-03-05 Jakub Jelinek <jakub@redhat.com>
741 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
744 2002-03-04 H.J. Lu <hjl@gnu.org>
746 * scripttempl/elf.sc: Put .preinit_array, .init_array and
747 .fini_array in the data segment.
749 2002-03-04 Alan Modra <amodra@bigpond.net.au>
751 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
753 2002-03-01 David Mosberger <davidm@hpl.hp.com>
755 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
756 .init_array, and .fini_array.
758 2002-02-20 Andreas Schwab <schwab@suse.de>
760 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
761 .IA64_unwind* in a relocatable link.
763 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
765 * NEWS: Mark 2.12 branch.
767 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
769 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
770 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
772 2002-02-18 Tom Rix <trix@redhat.com>
774 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
775 (gld*_before_allocation): Same.
776 (gld*_create_output_section_statements): Generate
777 __rtinit if run time linking. Add librtl.a to the link.
778 (gld*_read_file): Clean.
780 2002-02-18 Alan Modra <amodra@bigpond.net.au>
782 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
784 2002-02-18 David O'Brien <obrien@FreeBSD.org>
786 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
787 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
788 and eelf64alpha_fbsd.
789 * Makefile.in: Regenerate.
790 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
791 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
792 use a FreeBSD-specific emulation rather than the psABI one.
793 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
794 for all FreeBSD ELF systems.
795 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
797 * emulparams/elf32ppc_fbsd.sh: Likewise.
798 * emulparams/elf64_ia64_fbsd.sh: Likewise.
799 * emulparams/elf64_sparc_fbsd.sh: Likewise.
800 * emulparams/elf64alpha_fbsd.sh: Likewise.
801 * emulparams/elf_i386_fbsd.sh: Likewise.
802 * emulparams/elf_x86_64_fbsd.sh: Likewise.
804 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
806 * po/tr.po: Updated version.
808 2002-02-18 Alan Modra <amodra@bigpond.net.au>
810 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
813 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
815 * emultempl/mmo.em (mmo_after_open): Don't call
816 _bfd_mmix_check_all_relocs when producing ELF output.
818 2002-02-15 Richard Henderson <rth@redhat.com>
820 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
821 definition. Emit a unop+nop pair.
823 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
825 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
826 for presence of .MMIX.reg_contents.linker_allocated before early
829 * NEWS: Mention support for MMIX.
831 2002-02-15 Alan Modra <amodra@bigpond.net.au>
833 Support arbitrary length fill patterns.
834 * ld.texinfo (Output Section Fill): Describe fill expressions.
835 (FILL): Refer to the above.
836 * ldexp.h (etree_value_type): Add "str" field.
837 (union etree_union): Add "str" to "value" struct.
838 (exp_bigintop): Declare.
839 (exp_get_fill): Declare.
840 * ldexp.c: Include "safe-ctype.h".
841 (exp_intop): Set value.str to NULL.
842 (exp_bigintop): New function.
843 (new_rel): Pass in "str", and set new.str from it.
844 (new_rel_from_section): Set new.str to NULL.
845 (fold_name): Adjust calls to new_rel.
846 (exp_fold_tree): Likewise.
847 (exp_get_fill): New function.
848 * ldgram.y (struct big_int bigint, fill_type *fill): New.
849 (INT): Returns a "bigint". Adjust all code handling INTs.
850 (fill_opt): Returns a "fill".
851 (fill_exp): Split out of fill_opt, use for FILL.
852 * ldlang.h (struct _fill_type): New.
853 (fill_type): Move typedef to ldexp.h.
854 (lang_output_section_statement_type): "fill" is now a pointer.
855 (lang_fill_statement_type): Likewise.
856 (lang_padding_statement_type): Likewise.
857 (lang_add_fill): Now takes a "fill_type *" param.
858 (lang_leave_output_section_statement): Likewise.
859 (lang_do_assignments): Likewise.
860 (lang_size_sections): Likewise.
861 (lang_leave_overlay_section): Likewise.
862 (lang_leave_overlay): Likewise.
863 * ldlang.c: Include ldgram.h after ldexp.h.
864 (lang_output_section_statement_lookup): Adjust for fill_type change.
865 (print_fill_statement): Likewise.
866 (print_padding_statement): Likewise.
867 (insert_pad): Now takes a "fill_type *" arg.
868 (size_input_section): Likewise.
869 (lang_size_sections_1): Likewise.
870 (lang_size_sections): Likewise.
871 (lang_do_assignments): Likewise.
872 (lang_add_fill): Likewise.
873 (lang_leave_output_section_statement): Likewise.
874 (lang_leave_overlay_section): Likewise.
875 (lang_leave_overlay): Likewise.
876 Adjust all callers of the above function.
877 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
878 starting with "0X" as well as "0x". Return bigint.str for hex
879 numbers starting with "0x" or "0X", zero bigint.str otherwise.
880 Always use base 16 for numbers starting with "$".
881 * ldmain.c: Include ldgram.h after ldexp.h.
882 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
883 of bfd_fill_link_order.
884 * pe-dll.c: Adjust lang_do_assignments calls.
885 * emultempl/elf32.em: Likewise.
886 * emultempl/hppaelf.em: Likewise.
887 * emultempl/ppc64elf.em: Likewise.
888 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
889 lang_add_assignment call.
890 * emultempl/pe.em: Likewise.
892 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
894 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
895 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
896 the pattern in question is not a regexp.
897 * ldlang.c: Likewise.
898 * ldlang.h: Likewise.
899 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
901 2002-02-12 Jakub Jelinek <jakub@redhat.com>
903 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
904 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
905 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
906 * ldexp.c (exp_data_seg): New variable.
907 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
908 (fold_binary): Handle DATA_SEGMENT_ALIGN.
909 (exp_fold_tree): Handle DATA_SEGMENT_END.
910 Pass allocation_done when recursing instead of hardcoding
911 lang_allocating_phase_enum.
912 * ldexp.h (exp_data_seg): New.
913 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
914 (lang_size_sections): New.
915 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
916 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
917 if COMMONPAGESIZE is defined.
918 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
919 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
920 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
921 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
922 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
925 2002-02-11 Alan Modra <amodra@bigpond.net.au>
927 * Makefile.in: Regenerate.
929 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
931 * lexsup.c: Remove strtoul declaration.
933 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
935 * ldmain.c: Add prototype for main ().
936 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
937 * emultempl/lnk960.em (lnk960_choose_target): Function should
940 2002-02-10 Alan Modra <amodra@bigpond.net.au>
942 * ldlang.c (entry_section): New initialised variable.
943 (lang_finish): Use it.
944 * ldlang.h (entry_section): Declare.
945 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
946 entry_section to ".opd".
948 2002-02-09 Chris Demetriou <cgd@broadcom.com>
950 * ld.texinfo (Options): Add back in -nostdlib documentation,
951 which had been inadvertently removed.
953 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
955 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
956 register section vma to a sane value after emitting error. Make
957 fatal conditions cause program exit when emitting message.
959 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
961 * configure.tgt: Add or32-*-rtems target.
963 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
966 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
967 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
968 in OTHER_RELOCATABLE_SECTIONS.
969 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
970 * emulparams/shelf32.sh (STACK_ADDR): Define.
971 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
972 (OTHER_SECTIONS): this. Removed stack settings.
973 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
974 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
975 2001-03-12 DJ Delorie <dj@redhat.com>
976 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
977 relaxing if any shmedia or mixed sections are found.
978 2001-03-07 DJ Delorie <dj@redhat.com>
979 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
980 einfo. Gracefully decline to output to non-elf formats.
981 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
982 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
983 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
984 * emulparams/shelf32.sh: Ditto.
985 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
986 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
988 2001-01-10 Ben Elliston <bje@redhat.com>
989 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
990 non-portable shell constructs. From Hans-Peter Nilsson.
991 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
992 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
993 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
994 dependencies to the shell script include chain.
995 * Makefile.in: Regenerate.
996 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
997 * emultempl/sh64elf.em: Update and tweak comments.
998 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
999 make a .cranges section SEC_IN_MEMORY.
1000 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1001 * emultempl/sh64elf.em
1002 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1003 .cranges section found to be necessary; continue and set stored
1004 section contents flags for sections with non-mixed contents.
1005 Use a struct sh64_section_data container and sh64_elf_section_data
1006 to store contents-type flags.
1007 Remove unused update of "isec".
1008 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1009 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1010 access contents-type flags. Assert that the associated container
1011 is initialized. Use that container, not elf_gp_size, to hold size
1012 of linker-generated cranges contents.
1013 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1014 * emultempl/sh64elf.em
1015 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1016 there's already a .cranges section. When section flag difference
1017 is found, don't NULL-check cranges a second time. Tweak comments.
1018 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1019 merging, not max size, as size of ld-generated .cranges contents.
1020 Don't set ELF section flags in output section. When checking for
1021 needed .cranges descriptors, don't use a variable; compare
1022 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1024 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1025 * emultempl/sh64elf.em: New file.
1026 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1027 * Makefile.in: Regenerate.
1028 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1029 (OTHER_RELOCATING_SECTIONS): Ditto.
1030 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1031 * emulparams/shlelf32.sh: Stub out all settings except
1032 OUTPUT_FORMAT. Source shelf32.sh.
1033 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1034 OTHER_RELOCATING_SECTIONS.
1035 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1036 * emulparams/shlelf64.sh: Stub out all settings except
1037 OUTPUT_FORMAT. Source shelf64.sh.
1038 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1039 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1041 (DATA_START_SYMBOLS): Define, provide ___data.
1042 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1043 for consecutive .data section.
1044 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1045 section after .data section.
1046 * emulparams/shlelf64.sh: Ditto.
1047 * emulparams/shelf32.sh: Ditto.
1048 (ALIGNMENT): Define to 8.
1049 * emulparams/shelf32.sh: Ditto.
1050 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1051 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1052 built-in linker scripts.
1053 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1054 * emulparams/shlelf64.sh: New.
1055 * emulparams/shelf64.sh: New.
1056 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1058 * Makefile.am: Add support for shlelf64 and shelf64.
1059 * Makefile.in: Regenerate.
1060 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1061 * configure.tgt (sh64-*-elf*): Add shelf as default.
1062 Add shlelf to targ_extra_emuls.
1063 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1064 * emulparams/shelf32.sh: New file.
1065 * emulparams/shlelf32.sh: New file.
1066 * Makefile.am: Add support for shlelf32 and shelf32.
1067 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1068 * Makefile.in: Regenerate.
1070 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1072 * ldlang.c (lang_reset_memory_regions): Rename from
1073 reset_memory_regions. Change all callers. Make public.
1074 * ldlang.h (lang_reset_memory_regions): Prototype.
1075 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1076 lang_reset_memory_regions before lang_size_sections.
1077 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1078 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1080 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1082 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1083 arithmetic when checking for too many global registers.
1085 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1087 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1088 (ehppanbsd.c): New rule.
1089 * Makefile.in: Regenerate.
1090 * configure.tgt (hppa*-*-netbsd*): New target.
1091 * emulparams/hppalinux.sh: Add comment to check other files
1092 that source this file it is modified, and list which
1094 * emulparams/hppanbsd.sh: New file.
1096 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1098 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1101 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1103 Support on-demand global register allocation from
1104 R_MMIX_BASE_PLUS_OFFSET relocs.
1105 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1106 mmix_set_reg_section_vma. Call
1107 _bfd_mmix_finalize_linker_allocated_gregs.
1108 (mmix_before_allocation): New function.
1109 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1110 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1111 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1112 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1113 before .MMIX.reg_contents.
1114 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1115 (mmo_after_open): New function.
1116 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1117 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1118 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1120 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1122 * emulparams/or32.sh: New file.
1123 * emulparams/or32elf.sh: New file.
1124 * scripttempl/or32.sc: New file.
1125 * configure.tgt : Add support for or32.
1126 * configure: Regenerate
1127 * Makefile.am: Add support for or32.
1128 * Makefile.in: Regenerate.
1129 * NEWS: Mention support for or32.
1130 * po/ld.pot: Regenerate.
1132 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1133 Mitch Lichtenberg <mpl@broadcom.com>
1135 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1136 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1137 reloc creation (ld --embedded-relocs).
1139 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1141 * configure: Regenerated.
1143 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1145 * Makefile.am (install): Depend on install-info.
1146 * Makefile.in: Regenerate.
1148 2002-01-26 Christian Rose <menthos@menthos.com>
1150 * ldmain.c (main): Use full sentences to ease translation.
1152 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1154 * po/fr.po: Updated version.
1156 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1158 * po/es.po: Updated version.
1160 2002-01-25 Andreas Jaeger <aj@suse.de>
1162 * ldlex.l (yy_input): Correct error check.
1164 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1166 * ldmisc.c (demangle): Put back dots when string not demangled.
1168 2002-01-22 Richard Henderson <rth@redhat.com>
1170 * emulparams/elf64alpha.sh (NOP): Use unop.
1172 2002-01-21 Andreas Jaeger <aj@suse.de>
1174 * ldlex.l: Use fread instead of read.
1176 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1178 * configure.tgt (ia64-*-netbsd*): New target.
1180 2002-01-21 H.J. Lu <hjl@gnu.org>
1182 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1184 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1186 2002-01-18 Andreas Jaeger <aj@suse.de>
1188 * ldver.c (ldversion): Update year.
1190 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1192 * po/ld.pot: Regenerate.
1194 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1196 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1197 * Makefile.in: Regenerate.
1198 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1199 * emultempl/ppc64elf.em: New file.
1201 2002-01-15 DJ Delorie <dj@redhat.com>
1203 * scripttempl/pe.sc: Add support for constructor priorities.
1205 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1207 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1208 * emulparams/avr23xx.sh: Likewise.
1209 * emulparams/avr4433.sh: Likewise.
1210 * emulparams/avr44x4.sh: Likewise.
1211 * emulparams/avr85xx.sh: Likewise.
1212 * emulparams/avrmega103.sh: Likewise.
1213 * emulparams/avrmega161.sh: Likewise.
1214 * emulparams/avrmega603.sh: Likewise.
1215 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1217 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1219 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1220 archive is excluded.
1222 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1224 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1225 (eshelf_nbsd.c): New rule.
1226 (eshlelf_nbsd.c): New rule.
1227 * Makefile.in: Regenerate.
1228 * configure.tgt (sh*le-*-netbsdelf*): New target.
1229 (sh*-*-netbsdelf*): New target.
1230 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1231 * ld/emulparams/shelf_nbsd.sh: New emulation.
1232 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1234 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1236 * po/es.po: New file: Spanish translation.
1237 * configure.in (ALL_LINGUAS): Add es.
1238 * configure: Regenerate.
1240 2002-01-06 John Marshall <jmarshall@acm.org>
1242 * ld.texinfo: Note that --emit-relocs is currently only
1243 implemented for ELF.
1245 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1247 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1248 of bfd_section_list_remove and bfd_section_list_insert macros.
1249 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1250 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1252 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1254 * configure.tgt (x86_64-*-netbsd*): New target.
1256 2001-12-21 Tom Rix <trix@redhat.com>
1258 (gld*_create_output_section_statements): New function.
1259 For -binitfini support.
1260 * emultempl/aix.em (gld*_before_parse): Fix comment.
1261 * emultempl/aix.em (gld*_parse_args): Fix comment.
1263 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1265 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1267 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1269 * configure.tgt (arm-*-netbsdelf*): Add target.
1270 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1271 * emulparams/armelf_nbsd.sh: Added.
1272 * Makefile.am: Add rules for earmelf_nbsd.
1273 * Makefile.in: Regenerate.
1275 2001-12-19 Andreas Jaeger <aj@suse.de>,
1276 Susanne Oberhauser <froh@suse.de>
1278 * configure.host: Add rules for x86_64-*linux-gnu. Change
1279 s390x-linux entry to use gcc to report configuration, replace gcc
1280 with $CC in s390-linux
1282 2001-12-19 Andreas Jaeger <aj@suse.de>
1284 * ld.texinfo (VERSION): Fix markup.
1286 2001-12-18 matthew green <mrg@eterna.com.au>
1288 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1289 (m68kelfnbsd.c): New rule.
1290 * Makefile.in: Regenerate.
1291 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1292 (m68*-*-netbsd*4k*): .. this.
1293 (m68*-*-netbsdelf*): New target.
1294 (m68*-*-netbsd*): Also include ELF support.
1295 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1296 * emulparams/m68kelfnbsd.sh: New emulation.
1298 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1300 * ldgram.y (vers_node): Support anonymous version tags.
1301 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1302 tag is not defined together with non-anonymous versions.
1303 * ld.texinfo: Document it.
1305 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1307 * po/tr.po: New file: Turkish translation.
1308 * configure.in (ALL_LINGUAS): Add tr.
1309 * configure: Regenerate.
1311 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1313 * Makefile.am: Add rules for eelf64alpha_nbsd.
1314 * Makefile.in: Regenerate.
1315 * configure.tgt (alpha*-*-netbsd*): Set
1316 targ_emul to elf64alpha_nbsd.
1317 * emulparams/elf64alpha_nbsd.sh: Added.
1319 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1321 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1322 section_tail when fiddling with section list.
1323 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1324 broken into separate strings to make translation easier.
1325 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1326 fiddling with section list.
1327 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1329 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1331 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1333 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1335 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1337 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1339 * emultempl/elf32.em (finish): Supply output_bfd
1340 to bfd_elf*_discard_info.
1341 (OPTION_EH_FRAME_HDR): Define.
1342 (longopts): Add --eh-frame-hdr.
1343 (parse_args): Handle it.
1344 (list_options): Add --eh-frame-hdr to help.
1345 * emultempl/hppaelf.em (finish): Supply output_bfd
1346 to bfd_elf*_discard_info.
1347 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1349 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1351 * lexsup.c (parse_args): Don't pass shortopts to second call to
1352 getopt functions. Restore optind rather than decrementing before
1353 second call. Remove errind as it now duplicates last_optind.
1355 2001-12-11 Christopher Faylor <cgf@redhat.com>
1357 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1359 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1360 Richard Henderson <rth@redhat.com>
1362 * Makefile.am: Add support for xstormy16.
1363 * configure.tgt: Add support for xstormy16.
1364 * Makefile.in: Regenerate.
1365 * emulparams/elf32xstormy16.sh: New file.
1366 * scripttempl/xstormy16.sc: New file.
1368 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1370 * Makefile.in (LIB_PATH): Make configurable.
1371 (GENSCRIPTS): Set LIB_PATH in environment.
1372 * configure.in: Substitute LIB_PATH.
1373 * configure: Regenerate.
1374 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1375 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1377 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1379 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1380 describing the -N option so that it is easier to translate into
1383 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1385 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1386 statements describing a single option with a single, newline
1387 escaped fprintf. This allows better translation into other
1390 * ldmain.c (add_archive_element): Combine multiple strings
1391 into a single string to permit better translation into other
1394 2001-12-05 Tom Rix <trix@redhat.com>
1396 * Makefile.am: Remove eaixppc64.
1397 * Makefile.in: Regenerate.
1399 2001-12-04 Tom Rix <trix@redhat.com>
1401 * emultempl/aix.em (choose_target): Change default target to
1402 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1404 (gld*_read_file): Fix typo.
1405 (change_symbol_mode): Add prototype.
1408 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1409 * emulparams/aixrs6.sh : Same.
1410 * emulparams/ppcmacos.sh : Same.
1411 * emulparams/aixppc64.sh : Delete file.
1412 * emultempl/aix.em : Formatting changes.
1414 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1416 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1417 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1419 (OTHER_END_SYMBOLS): Fix formatting.
1420 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1421 (OTHER_END_SYMBOLS): Fix formatting.
1423 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1425 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1427 2001-12-02 Tom Rix <trix@redhat.com>
1429 * configure.tgt : Remove eaixppc64 emulations.
1430 * Makefile.in : Remove eaixppc64.c
1431 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1432 (ldemul_default_target): Same.
1433 * emultempl/gld960.em (gld960_choose_target): Same.
1434 * emultempl/gld960c.em (gld960_choose_target): Same.
1435 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1436 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1437 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1438 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1439 * emultempl/aix.em (choose_target): New function. Handle emulation of
1442 2001-11-27 H.J. Lu <hjl@gnu.org>
1444 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1445 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1446 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1447 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1448 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1449 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1450 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1451 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1453 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1456 (REL_SDATA): Likewise.
1457 (REL_SBSS): Likewise.
1458 (REL_SDATA2): Likewise.
1459 (REL_SBSS2): Likewise.
1460 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1463 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1465 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1467 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1469 2001-11-22 H.J. Lu <hjl@gnu.org>
1471 * Makefile.in: Regenerated with automake based on automake
1472 1.4-8 in RedHat 7.1.
1474 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1476 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1477 (config.status): Delete rule.
1478 Add extra dependencies to cover sourced emulparams files.
1479 * Makefile.in: Regenerate.
1481 * scripttempl/elf.sc: Order <section>, <section>.* and
1482 corresponding linkonce sections as seen in input files.
1483 Formatting fixes. Zero vma of all sections if not relocating.
1484 (STACK): Define and insert if STACK_ADDR defined.
1485 (OTHER_RELOCATING_SECTIONS): Delete.
1486 (OTHER_END_SYMBOLS): Define.
1487 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1488 (OTHER_READWRITE_SECTIONS): Likewise.
1489 (OTHER_GOT_SECTIONS): Likewise.
1490 (OTHER_SDATA_SECTIONS): Likewise.
1491 (OTHER_BSS_SECTIONS): Likewise.
1492 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1493 (OTHER_READWRITE_SECTIONS): Likewise.
1494 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1495 (OTHER_READWRITE_SECTIONS): Likewise
1497 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1498 (STACK_ADDR): Define.
1499 * emulparams/armelf_oabi.sh: As for armelf.sh.
1500 * emulparams/elf32mcore.sh: As for armelf.sh.
1501 * emulparams/h8300elf.sh: As for armelf.sh.
1502 * emulparams/mn10200.sh: As for armelf.sh.
1503 * emulparams/shelf.sh: As for armelf.sh.
1505 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1506 (OTHER_END_SYMBOLS): Define.
1507 * emulparams/m32relf.sh: As for elf32fr30.sh.
1508 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1509 * emulparams/h8300self.sh: As for elf32fr30.sh.
1511 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1512 defines with RELOCATING test.
1513 (OTHER_SDATA_SECTIONS): Likewise.
1514 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1515 (OTHER_END_SYMBOLS): ..this.
1516 * emulparams/crislinux.sh: As for criself.sh.
1518 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1520 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1521 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1522 normal and linkonce sections as seen in input files.
1523 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1524 (TEXT_DYNAMIC): Likewise.
1525 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1526 (OTHER_SDATA_SECTIONS): Likewise.
1527 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1528 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1529 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1530 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1531 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1532 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1533 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1534 sections as seen in input files.
1535 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1536 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1538 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1539 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1540 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1541 (OTHER_SECTIONS): Instead, use this..
1542 (OTHER_END_SYMBOLS): ..and this.
1544 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1545 * emulparams/elf32bsmip.sh: Likewise.
1546 * emulparams/elf32btsmip.sh: Likewise.
1547 * emulparams/elf32ebmip.sh: Likewise.
1548 * emulparams/elf32lmip.sh: Likewise.
1549 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1550 * emulparams/elf32lsmip.sh: Likewise.
1551 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1552 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1553 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1554 * emulparams/elf64btsmip.sh: Likewise.
1555 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1556 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1557 * emulparams/elf32ppclinux.sh: Likewise.
1558 * emulparams/elf32ppcsim.sh: Likewise.
1559 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1560 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1561 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1562 * emulparams/h8300self.sh: Likewise.
1563 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1564 * emulparams/sh.sh: Comment.
1565 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1566 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1567 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1569 2001-11-21 David Heine <dlheine@tensilica.com>
1570 Alan Modra <amodra@bigpond.net.au>
1572 * ldlang.c (map_input_to_output_sections): Replace "break"
1573 accidentally removed with 2001-08-03 change.
1574 (lang_gc_sections_1): Likewise.
1576 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1578 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1580 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1582 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1583 of false when calling lang_size_sections.
1584 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1586 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1588 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1589 function when LDEMUL_FINISH isn't set to the same name. Don't
1590 call ${LDEMUL_FINISH}.
1591 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1592 * emultempl/armelf.em (arm_elf_finish): Call
1593 gld${EMULATION_NAME}_finish.
1594 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1595 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1596 hppaelf_layout_sections_again if necessary.
1597 (need_laying_out): New var.
1598 (hppaelf_layaout_sections_again): Rename to
1599 hppaelf_layout_sections_again. Clear need_laying_out.
1600 (PARSE_AND_LIST_OPTIONS): Format text.
1602 2001-11-14 H.J. Lu <hjl@gnu.org>
1604 * emultempl/armelf.em (arm_elf_finish): Renamed from
1605 gld${EMULATION_NAME}_finish.
1606 (LDEMUL_FINISH): Set to arm_elf_finish.
1608 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1610 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1611 (struct ld_emulation_xfer_struct): Use it.
1613 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1615 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1616 additional symbols referenced by newer crt0.o files from HP.
1618 2001-11-12 Anthony Green <green@redhat.com>
1620 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1622 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1624 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1625 * Makefile.in: Regenerate.
1627 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1629 * ld.texinfo: Use @command for commands, @option for options.
1630 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1632 * Makefile.in: Rebuild.
1634 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1636 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1637 Add support for targets.
1639 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1641 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1642 * configure: Regernate.
1643 * po/fr.po: New file.
1644 * po/sv.po: New file.
1646 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1648 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1649 as little endian default and to support big endian.
1651 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1653 * ld.texinfo (Options): Document new option, -nostdlib.
1654 * lexsup.c (OPTION_NOSTDLIB): New definition.
1655 (ld_options): Add entry for "nostdlib".
1656 (parse_args): Handle OPTIONS_NOSTDLIB.
1657 * ldfile.c (ldfile_add_library_path): Don't add directories
1658 to the search path if they weren't specified on the command line
1659 and -nostdlib was specified.
1660 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1662 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1664 * lexsup.c (parse_args): Prevent infinite parsing loop when
1665 "-rpath.a" is specified on the command line.
1666 Replace calls to fprintf with calls to einfo.
1668 2001-10-31 John Marshall <jmarshall@acm.org>
1670 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1671 appear only once across all the linker scripts involved in a link
1672 invocation no longer applies. Make the documentation reflect
1675 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1677 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1679 (sh-*-linux*): Added targ_extra_libpath.
1681 2001-10-31 David Heine <dlheine@tensilica.com>
1683 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1684 for padding statements.
1686 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1688 * configure.tgt (mmix-*-*): New target.
1689 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1690 Add dependencies to match.
1691 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1692 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1693 scripttempl/mmo.sc: New files.
1694 * gen-doc.texi: @set MMIX.
1695 * ld.texinfo: Ditto.
1696 [MMIX] Add MMIX node.
1697 * Makefile.in: Regenerate.
1699 2001-10-29 Kazu Hirata <kazu@hxi.com>
1701 * ldlang.c: Fix a comment typo.
1703 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1705 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1706 entries, and match *-*-linux*.
1708 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1710 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1711 with ldlex_script, ldlex_popstate.
1712 (ifile_p1): Likewise.
1713 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1715 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1716 to 1. Don't BEGIN(SCRIPT).
1717 (lex_redirect): Similarly.
1718 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1720 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1722 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1723 __EH_FRAME_END__ and accept eh frames into data section.
1724 Add ctor and dtor sections.
1726 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1728 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1729 (auto-export): Fix indentation.
1731 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1733 * pe-dll.c (autofilter_objectlist): Add startup objects
1735 (auto-export): Constify char * p.
1736 Extract file basename and use strcmp rather than ststr
1739 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1741 * ldmain.c (get_emulation): Improve comment about the handling
1744 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1746 * po/POTFILES.in: Regenerate.
1748 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1750 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1751 -z nocopyreloc and -z nocombreloc usage strings.
1753 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1755 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1758 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1760 * scripttempl/armaout.sc: Place .bss section after end of aligned
1761 data section to match behaviour of aout code in constructrion of
1764 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1766 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1767 startup files for mingw32 dlls to list.
1769 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1771 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1773 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1775 * configure.tgt (targ): Add arm9e-*-elf.
1777 2001-10-05 H.J. Lu <hjl@gnu.org>
1779 * genscripts.sh: Fix a typo in the last change.
1781 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1783 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1784 -z nocombreloc in usage.
1786 2001-10-03 Jim Blandy <jimb@redhat.com>
1788 * genscripts.sh: Include a comment at the top of each generated
1789 script, explaining its purpose.
1791 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1793 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1794 * NEWS: Mention -z nocopyreloc.
1795 * ld.texinfo (Options): Describe nocopyreloc.
1797 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1799 * configure: Regenerate.
1801 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1803 * ldver.h (ld_program_version): Remove declaration.
1804 * lexsup.c (parse_args): Move printing of copyright message..
1805 * ldver.c (ldversion): .. to here.
1806 Use BFD_VERSION_STRING in place of BFD_VERSION.
1807 (ld_program_version): Remove.
1808 * Makefile.am (Makefile): Depend on bfd/configure.in.
1810 * Makefile.in: Regenerate.
1812 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1814 * Makefile.am: Update dependencies with "make dep-am".
1815 * Makefile.in: Regenerate.
1817 2001-09-29 John Reiser <jreiser@BitWagon.com>
1819 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1820 * lexsup.c: Add --no-define-common commandline option.
1821 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1822 * ldlex.l: Likewise.
1823 * ld.h: Add command_line.inhibit_common_definition.
1824 * ldmain.c (main): Initialize.
1825 * ld.texinfo: Document.
1827 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1829 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1831 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1833 * ldmisc.c (USE_STDARG): Remove.
1834 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1839 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1840 declarations. Update copyright.
1842 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1844 * pe-dll.c: Remove obsoleted declaration of
1845 pe_get_data_import_dll_name.
1846 (pe_create_import_fixup): Fix thinko.
1848 * ld.texinfo(enable-auto-import): Clarify the explanation.
1850 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1852 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1853 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1854 DLL_SUPPORT controlled code.
1856 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1858 * emultempl/pe.em(pe_data_import_dll): Make static.
1859 (pe_get_data_import_dll_name): New accessor function.
1860 * pe-dll.c(pe_create_import_fixup): call
1861 pe_get_data_import_dll_name() from pe.em, instead of
1862 directly accessing pe_data_import_dll variable from pe.em.
1864 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1866 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1867 (def_file_add_directive): Use ISSPACE instead of isspace.
1868 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1869 isdigit/isxdigit/isalpha/isalnum.
1870 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1871 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1872 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1873 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1875 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1876 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1878 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1879 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1880 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1881 (ctor_prio): Use ISDIGIT instead of isdigit.
1882 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1883 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1884 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1886 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1887 (stricpy): Use TOLOWER instead of isupper/tolower.
1888 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1889 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1890 (lex_warn_invalid): Use ISPRINT instead of isprint.
1891 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1892 (main): For gettext, also set the LC_CTYPE locate facet.
1893 (add_keepsyms_file): Use ISSPACE instead of isspace.
1894 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1895 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1896 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1897 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1898 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1899 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1900 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1901 (quoteput): Use ISSPACE instead of isspace.
1902 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1905 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1907 * deffilep.y (def_stash_module): Constify "name" param.
1909 * pe-dll.c: Replace CONST with const throughout.
1910 (quick_symbol): Constify "n1", "n2", "n3" params.
1911 (make_singleton_name_thunk): Constify "import" param. Make
1912 "buffer_len" a size_t.
1913 (make_import_fixup_entry): Constify "name", "fixup_name",
1914 "dll_symname" params.
1915 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1916 (pe_get32): Likewise.
1917 (pe_implied_import_dll): Likewise.
1919 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1920 (sort_by_section_name): Likewise.
1922 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1923 (make_import_fixup): Cast printf arg, rel->address to long rather
1925 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1927 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1929 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1930 defines BufferSize. Increase buffer size by one.
1932 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1934 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1936 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1938 * configure.tgt: Add arm-openbsd target.
1940 2001-09-12 H.J. Lu <hjl@gnu.org>
1942 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1944 (ALL_64_EMULATIONS): Here.
1945 * Makefile.in: Regenerated.
1947 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1949 * emultempl/pe.em(make_import_fixup): change signature to
1950 take asection as well as arelec; we need this for proper
1951 error reporting. Only call pe_create_import_fixup() if
1952 there is no attempt to add a constant addend to the reloc;
1953 otherwise, report error condition.
1954 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1955 since final argument is a pointer to make_import_fixup().
1956 Change call to cb() to match make_import_fixup() signature.
1957 (make_import_fixup_mark): make buffer_len unsigned.
1958 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1960 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1962 * ld.texinfo: add verbose documentation for auto-import
1963 direct-addressing workaround, to compliment the terse
1966 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1968 * scripttempl/v850.sc: Add gcc_except_table sections.
1970 2001-09-11 Jeffrey A Law (law@cygnus.com)
1972 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1973 * emulparams/h8300self.sh: Similarly.
1975 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1977 * ld.texinfo (Options, --stack): Correct default value for stack
1980 2001-09-05 Tom Rix <trix@redhat.com>
1982 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1984 2001-09-03 Andreas Jaeger <aj@suse.de>
1986 * emultempl/beos.em: Declare prototypes for comparions functions,
1989 2001-09-02 Andreas Jaeger <aj@suse.de>
1991 * emultempl/aix.em: Add missing prototype.
1992 * emultempl/lnk960.em: Likewise.
1993 * emultempl/vanilla.em: Likewise.
1994 * emultempl/armcoff.em: Likewise.
1995 * emultempl/armelf_oabi.em: Likewise.
1996 * emultempl/beos.em: Likewise.
1997 * emultempl/gld960c.em: Likewise.
1998 * emultempl/gld960.em: Likewise.
2000 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2001 for prototype declaration.
2003 2001-08-31 Eric Christopher <echristo@redhat.com>
2004 Jason Eckhardt <jle@redhat.com>
2006 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2008 2001-08-31 Andreas Jaeger <aj@suse.de>
2010 * emultempl/pe.em: Add missing prototypes.
2011 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2012 pe_find_data_imports.
2013 (pr_sym): Add unused attribute.
2015 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2017 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2018 default from coff to elf.
2020 2001-08-29 Jeff Law <law@redhat.com>
2022 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2024 * emulparams/h8300self.sh: Similarly.
2026 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2028 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2030 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2031 * configure.tgt (h8300-*-elf*): New case.
2032 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2033 * emulparams/h8300self.sh: New file.
2034 * Makefile.in: Regenerated.
2036 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2038 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2041 2001-08-27 Linus Nordberg <linus@swox.com>
2042 Alan Modra <amodra@bigpond.net.au>
2044 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2045 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2047 * Makefile.in: Regenerate.
2048 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2049 entries to correct alphabetical position.
2050 * emulparams/elf64ppc.sh: New.
2051 * emulparams/elf64lppc.sh: New.
2053 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2055 * ldmain.c (main): Declare BSIZE as static.
2057 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2059 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2060 into .rel.dyn resp. .rela.dyn if combreloc.
2061 (get_script): If .x linker script is equal to .xn, only put it
2062 once into the binary.
2063 Add .xc and .xsc scripts.
2064 (parse_args): Handle -z combreloc and -z nocombreloc.
2065 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2066 For .xc and .xsc scripts put all .rel* or .rela* input sections
2067 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2068 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2070 Strip trailing whitespace from script.
2071 Generate .xc and .xsc scripts if requested.
2072 * ldmain.c (main): Initialize link_info.combreloc and
2073 link_info.spare_dynamic_tags.
2074 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2075 (ld_options): Add --spare-dynamic-tags option.
2076 (parse_args): Likewise.
2077 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2078 * ldint.texinfo: Document .xc and .xsc linker scripts.
2079 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2081 2001-08-22 H.J. Lu <hjl@gnu.org>
2083 * emulparams/elf32fr30.sh: Add a newline.
2085 2001-08-21 Andreas Jaeger <aj@suse.de>
2087 * deffilep.y: Add missing prototypes.
2088 * pe-dll.c: Likewise.
2090 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2092 * ldlang.c (insert_pad): Fix typos in last patch.
2094 * ldlang.c: When traversing lang_statement_union_type lists,
2095 consistently use "header.next" rather than "next".
2096 * mpw-eppcmac.c: Likewise.
2097 * emultempl/beos.em: Likewise.
2098 * emultempl/hppaelf.em: Likewise.
2099 * emultempl/pe.em: Likewise.
2100 * ldlang.h (union lang_statement_union): Remove "next" field.
2102 * ldlang.c (insert_pad): Use offsetof macro.
2103 (lang_size_sections): Always neuter padding statements.
2104 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2106 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2107 passed to lang_size_sections.
2108 (pe_exe_fill_sections): Likewise.
2109 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2110 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2112 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2114 * emultempl/aix.em: Formatting fixes.
2116 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2118 * ldlang.c (insert_pad): Make use of an existing pad statement if
2119 available. Move code calculating alignment, adjusting section
2120 alignment power, and adjusting dot to ..
2121 (size_input_section): .. here. Remove unused relax param.
2122 (lang_size_sections): Change boolean `relax' param to boolean *.
2123 Adjust call to size_input_section. Make use of insert_pad to
2124 place pad after the assignment statement. If relaxing, zap
2126 (reset_memory_regions): Reset output_bfd section sizes too.
2127 (relax_again): Move to..
2128 (lang_process): ..here. Adjust call to lang_size_sections, and
2129 remove duplicated code.
2130 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2132 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2134 * ld.texinfo: Document that fill values now use the four least
2136 * emulparams/elf32fr30.sh (NOP): Update.
2137 * emulparams/elf32mcore.sh: Likewise.
2138 * emulparams/elf64_s390.sh: Likewise.
2139 * emulparams/elf_i386.sh: Likewise.
2140 * emulparams/elf_i386_be.sh: Likewise.
2141 * emulparams/elf_i386_chaos.sh: Likewise.
2142 * emulparams/elf_i386_ldso.sh: Likewise.
2143 * emulparams/elf_s390.sh: Likewise.
2144 * emulparams/elf_x86_64.sh: Likewise.
2145 * emulparams/i386moss.sh: Likewise.
2146 * emulparams/i386nw.sh: Likewise.
2147 * emulparams/m68kelf.sh: Likewise.
2148 * scripttempl/elf.sc: Update NOP comment.
2149 * scripttempl/elfi370.sc: Likewise.
2150 * scripttempl/elfm68hc11.sc: Likewise.
2151 * scripttempl/elfm68hc12.sc: Likewise.
2152 * scripttempl/nw.sc: Likewise.
2154 2001-08-15 Tom Rix <trix@redhat.com>
2156 * ldgram.y (saved_script_handle): Initialize to NULL.
2157 * ldmain.c (main): Change check on saved_script_handle.
2159 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2161 * emultempl/elf32.em: Formatting fixes.
2162 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2163 looking at sec->owner.
2164 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2165 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2166 unused code, and reorganize orphan section placement code.
2168 * ldlang.c (wild_doit): Rename to lang_add_section.
2169 * ldlang.h: Here too.
2170 * mpw-elfmips.c: And here.
2171 * emultempl/beos.em: And here.
2172 * emultempl/elf32.em: And here.
2173 * emultempl/hppaelf.em: And here.
2174 * emultempl/pe.em: And here.
2176 2001-08-13 Richard Henderson <rth@redhat.com>
2178 * emultempl/needrelax.em: New file.
2179 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2180 * Makefile.am (eelf64_ia64.c): Depend on it.
2181 * Makefile.in: Rebuild.
2183 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2185 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2186 output_section is set non-NULL.
2188 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2189 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2190 needlessly create an output_section_statement. Treat a correctly
2191 named output_section_statement with NULL bfd_section as compatible.
2193 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2195 * emultempl/generic.em: Support EXTRA_EM_FILE.
2196 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2197 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2198 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2199 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2200 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2201 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2202 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2203 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2204 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2205 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2207 2001-08-12 Richard Henderson <rth@redhat.com>
2209 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2210 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2211 scripttempl/v850.sc: Keep .jcr data.
2213 2001-08-12 H.J. Lu <hjl@gnu.org>
2214 Andrew Haley <aph@cambridge.redhat.com>
2215 Nick Clifton <nickc@redhat.com>
2217 * ldgram.y (had_script): Change name to saved_script_handle.
2218 Change type to file handle.
2219 * ld.h (had_script): Rename and retype.
2220 * ldfile.c (ldfile_open_command_file): Save the file handle
2221 used in saved_script_handle.
2222 * lexsup.c (parse_args): Do not allow -c option to alter
2223 saved_script_handle.
2224 * ldmain.c (main): Print out the linker script used if
2225 --verbose is given. Check saved_script_handle to obtain the
2226 external linker script used, or if NULL, dump the builtin
2228 * ld.texinfo: Document that --verbose now dumps the linker
2229 script used, regardless of whether it was an internal or an
2232 2001-08-10 Andreas Jaeger <aj@suse.de>
2234 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2236 * configure: Regenerate.
2238 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2240 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2242 * scripttempl/elf.sc: Move non-text .dynamic section before
2243 .plt/.got/.sdata* group.
2244 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2245 (OTHER_SDATA_SECTIONS): Add.
2246 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2248 * emulparams/crislinux.sh: Likewise.
2249 * emulparams/elf32b4300.sh: Likewise.
2250 * emulparams/elf32bmip.sh: Likewise.
2251 * emulparams/elf32bmipn32.sh: Likewise.
2252 * emulparams/elf32bsmip.sh: Likewise.
2253 * emulparams/elf32btsmip.sh: Likewise.
2254 * emulparams/elf32ebmip.sh: Likewise.
2255 * emulparams/elf32elmip.sh: Likewise.
2256 * emulparams/elf32l4300.sh: Likewise.
2257 * emulparams/elf32lmip.sh: Likewise.
2258 * emulparams/elf32lsmip.sh: Likewise.
2259 * emulparams/elf32ltsmip.sh: Likewise.
2260 * emulparams/elf64bmip.sh: Likewise.
2261 * emulparams/elf64btsmip.sh: Likewise.
2262 * emulparams/elf64ltsmip.sh: Likewise.
2264 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2266 * genscripts.sh: Source the emulparams script before each output
2267 script is generated so that variables like `RELOCATING' may affect
2268 variables defined in the emulparams script.
2270 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2272 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2275 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2276 ie. iterate over wild_statement.section_list.
2277 (gld${EMULATION_NAME}_place_orphan): Likewise.
2279 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2281 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2282 .fini[0-4] sections used by _exit
2283 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2284 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2285 * scripttempl/elfm68hc11.sc: Likewise.
2287 2001-08-03 H.J. Lu <hjl@gnu.org>
2289 * emultempl/beos.em (init): Add the missing initialization.
2291 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2293 * ld.texinfo (Input Section Basics): Clarify ordering of output
2295 * ldlang.c (callback_t): Add wildcard_list param.
2296 (walk_wild_section): Remove "section" param. Rewrite for
2297 lang_wild_statement_type change. Remove unique_section_p test.
2298 (walk_wild_file): Remove "section" param.
2299 (walk_wild): Remove "section" and "file" params.
2300 (lang_gc_wild): Likewise.
2301 (wild): Likewise. Modify for lang_wild_statement_type change.
2302 (wild_sort): Likewise. Add "sec" param.
2303 (gc_section_callback): Likewise.
2304 (output_section_callback): Likewise. Do unique_section_p test.
2305 (map_input_to_output_sections): Modify call to wild.
2306 (lang_gc_sections_1): Likewise.
2307 (print_wild_statement): Modify for lang_wild_statement_type
2309 (lang_add_wild): Replace filename, filenames_sorted param with
2310 filespec. Replace section_name, sections_sorted,
2311 exclude_filename_list with section_list.
2312 * ldlang.h (lang_add_wild): Here too.
2313 (lang_wild_statement_type): Replace section_name, sections_sorted,
2314 and exclude_filename_list with section_list.
2315 * ldgram.y (current_file): Delete.
2316 (%union): Add wildcard_list.
2317 (file_NAME_list): Set type to wildcard_list. Build a linked list
2318 rather than calling lang_add_wild for each entry.
2319 (input_section_spec_no_keep): Call lang_add_wild here instead.
2320 * ld.h (struct wildcard_list): Declare.
2321 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2323 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2325 * ldmain.c (main): initialize link_info.pei386_auto_import
2326 * pe-dll.c: new tables for auto-export filtering
2327 (auto_export): change API, pass abfd for contextual filtering.
2328 Loop thru tables of excluded symbols instead of comparing
2331 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2333 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2334 static variable current_sec (static struct sec *). Add
2335 forward declaration for add_bfd_to_link.
2336 (process_def_file): Don't export undefined symbols. Do not
2337 export symbols starting with "_imp__". Call auto_export()
2339 (pe_walk_relocs_of_symbol): New function.
2340 (generate_reloc): add optional extra debugging
2341 (pe_dll_generate_def_file): eliminate extraneous initial blank
2343 (make_one): enlarge symtab to make room for __nm__ symbols
2344 (DATA auto-import support).
2345 (make_singleton_name_thunk): New function.
2346 (make_import_fixup_mark): New function.
2347 (make_import_fixup_entry): New function.
2348 (pe_create_import_fixup): New function.
2349 (add_bfd_to_link): Specify that 'name' argument is a CONST
2351 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2352 declare new functions pe_walk_relocs_of_symbol and
2353 pe_create_import_fixup.
2354 * emultempl/pe.em: add new options --enable-auto-import,
2355 --disable-auto-import, and --enable-extra-pe-debug.
2356 (make_import_fixup): New function.
2357 (pe_find_data_imports): New function.
2358 (pr_sym): New function.
2359 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2360 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2363 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2365 * ld.texinfo: add additional documentation for
2366 --export-all-symbols. Document --out-implib,
2367 --enable-auto-image-base, --disable-auto-image-base,
2368 --dll-search-prefix, --enable-auto-import, and
2369 --disable-auto-import.
2370 * ldint.texinfo: Add detailed documentation on auto-import
2373 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2375 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2378 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2380 * Makefile.am: Update dependencies with "make dep-am".
2381 * Makefile.in: Regenerate
2383 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2385 * ldcref.c (check_section_sym_xref): New function.
2386 (check_nocrossrefs): Call it.
2387 (check_nocrossref): Interate over h->refs here instead of..
2388 (check_refs): ..here. Pass in the symbol name, section, and bfd
2389 rather than hash_entry pointers.
2390 (struct check_refs_info): Keep symbol name rather than hash entry.
2392 (check_reloc_refs): Tweak for above changes in check_refs_info.
2393 Only report references to section syms when symname is NULL to
2394 prevent duplicate messages for the same reloc.
2396 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2398 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2399 available. Do not print NULL trees.
2400 (exp_print_token): Print unknown tokens with values > 126 as
2401 decimal values not ASCII characters.
2403 * ldlang.c (lang_leave_overlay): If a region is specified assign
2404 it to all sections inside the overlay unless they have been
2405 assigned to the own, non-default, memory region.
2407 * README: Add header for consistency with other README files.
2409 2001-07-14 H.J. Lu <hjl@gnu.org>
2411 * emultempl/elf32.em (output_prev_sec_find): Never return
2412 bfd_abs_section_ptr, bfd_com_section_ptr nor
2413 bfd_und_section_ptr.
2415 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2417 * Makefile.am (em32relf.c): Change dependency from generic.em to
2419 * Makefile.in: Regenerate.
2421 2001-07-14 matthew green <mrg@eterna.com.au>
2423 * configure.tgt (i386-*-netbsdelf*): New target.
2424 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2426 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2428 * emultempl/elf32.em (output_prev_sec_find): New.
2429 (place_orphan): Use it.
2431 2001-07-11 H.J. Lu <hjl@gnu.org>
2433 * ldmain.c (main): Fix typos in the last change.
2435 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2437 * ldmain.c (main): Disallow -F and -f without -shared.
2439 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2441 * emultempl/pe.em (after_open): Check for the output_bfd not
2442 having any coff_data structure allocated to it.
2444 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2446 * emultempl/elf32.em: Do not assuming that contents of the buffer
2447 returned from basename function will remain unchanged accross other
2450 2001-07-03 H.J. Lu <hjl@gnu.org>
2452 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2453 2001-07-03. It creates dynamic entries even for static binaries.
2455 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2457 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2458 (DYNAMIC): Use it to reserve few dynamic entries for
2461 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2463 * emulparams/hppa64linux.sh: New file.
2464 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2465 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2466 (ehppa64linux.c): Add rule to make it.
2468 * Makefile.in: Regenerate.
2470 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2472 * ld.texinfo (Options, -r): Mention restrictions when using
2473 different object formats.
2475 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2477 * ldlang.c (lang_check): Emit fatal error if relocatable link
2478 between different object flavours with relocations in input.
2480 2001-06-19 H.J. Lu <hjl@gnu.org>
2482 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2483 (--version-script): Mention the language support.
2485 2001-06-19 H.J. Lu <hjl@gnu.org>
2487 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2489 2001-06-18 H.J. Lu <hjl@gnu.org>
2491 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2492 (diststuff): Add $(MANS).
2493 * Makefile.in: Regenerated.
2497 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2499 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2500 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2501 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2502 * ld.h (args_type): Remove member export_dynamic. All users
2503 changed to use struct bfd_link_info member.
2505 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2506 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2507 * Makefile.in: Regenerate.
2509 2001-06-18 H.J. Lu <hjl@gnu.org>
2511 * ldlang.c (init_os): Add the newline to the einfo call.
2512 (lang_check): Likewise.
2513 (lang_do_version_exports_section): Likewise.
2515 2001-06-15 H.J. Lu <hjl@gnu.org>
2517 * lexsup.c (parse_args); Save optind to report unrecognized
2520 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2522 * ldlang.c (lang_check): Emit fatal error if relocatable link
2523 between different object flavours.
2525 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2526 Set new link_info member export_dynamic.
2527 * ldmain.c (main): Initialize new link_info member export_dynamic.
2529 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2531 * ldlang.c (walk_wild): Only call walk_wild_file if
2532 lookup_name returns something.
2533 (lookup_name): If load_symbols fails, return NULL.
2534 (load_symbols): Change to a boolean function.
2535 (open_input_bfds): If load_symbols fails then do not make the
2538 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2540 * ldlang.c (record_bfd_errors): Remove.
2542 * emultempl/aix.em: Fix copyright dates.
2544 2001-06-07 Andreas Jaeger <aj@suse.de>
2546 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2547 (TEXT_START_ADDR): Likewise.
2549 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2551 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2553 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2555 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2557 2001-05-31 H.J. Lu <hjl@gnu.org>
2559 * ldlang.c (open_input_bfds): Don't change the bfd error
2560 handler whilst loading symbols.
2562 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2564 * configure.tgt: Remove i370-mvs architecture, it is not currently
2567 2001-05-25 H.J. Lu <hjl@gnu.org>
2569 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2570 like emulparams/aixppc.sh.
2572 2001-05-25 H.J. Lu <hjl@gnu.org>
2574 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2575 setting of output_filename after bfd_scan_arch.
2576 * emultempl/pe.em: Likewise.
2578 2001-05-25 H.J. Lu <hjl@gnu.org>
2580 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2581 like emulparams/aixppc.sh.
2583 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2584 instead of ${srcdir}/emultempl/stringify.sed.
2586 2001-05-25 Timothy Wall <twall@oculustech.com>
2588 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2591 2001-05-25 Alan Modra <amodra@one.net.au>
2593 * configure.host: Replace linuxoldld with linux*oldld.
2594 * configure.tgt: Likewise.
2596 2001-05-24 H.J. Lu <hjl@gnu.org>
2598 * emultempl/stringify.sed: Removed again.
2600 2001-05-24 H.J. Lu <hjl@gnu.org>
2602 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2603 (gld${EMULATION_NAME}_before_parse): Initialize
2604 ldfile_output_architecture, ldfile_output_machine and
2605 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2606 * emultempl/beos.em: Likewise.
2607 * emultempl/elf32.em: Likewise.
2608 * emultempl/linux.em: Likewise.
2609 * emultempl/mipsecoff.em: Likewise.
2610 * emultempl/pe.em: Likewise.
2611 * emultempl/sunos.em: Likewise.
2613 2001-05-24 Tom Rix <trix@redhat.com>
2615 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2616 udate import file format.
2617 (change_symbol_mode) New, same
2618 (is_syscall) New, same
2619 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2620 * emulparams/aixppc64.sh : same
2621 * emulparams/aixrs6.sh : same
2622 * emulparams/ppcmacos.sh : same
2623 * emultempl/aix.em : use strtoull to parse options
2624 * Makefile.am : add eaixppc64 emulation for xcoff64
2625 * Makefile.in : same
2626 * configure.tgt : same
2628 * scripttempl/aix.sc : default text section offset to 0x10000000
2629 default data section offset to 0x20000000
2630 add .sv3264 and .sv64 pseudo sections
2631 loader and debug sections use the currect section offset.
2633 * emultempl/aix.em : Add xcoff64 support
2634 Add -binitfini support
2635 (gld${EMULATION_NAME}_before_parse) -binitfini
2636 (gld${EMULATION_NAME}_parse_args) same
2637 (gld${EMULATION_NAME}_before_allocation) format change for special
2640 * emulparams/aixppc64.sh : New file for xcoff64 support
2642 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2644 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2645 variable to avoid non-portable shell construct.
2647 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2649 * ldmain.c (get_emulation): Add -mips5 command line argument.
2651 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2653 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2654 (ELF_INTERPRETER_NAME): Define it.
2655 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2657 * configure.tgt (targ_emul, targ_extra_emuls)
2658 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2659 as primary, elf_i386 as extra.
2660 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2661 (eelf_i386_ldso.c): New rule.
2662 * Makefile.in: Rebuilt.
2664 2001-05-22 Nick Clifton <nickc@redhat.com>
2666 * lexsup.c (ld_options): Allow -I to be an alias for
2667 --dynamic-linker. This is for Solaris compatability.
2668 * ld.texinfo: Document that -I can be used.
2671 2001-05-16 Alan Modra <amodra@one.net.au>
2673 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2674 whether an input section is the first one assigned to an output
2676 Assorted formatting fixes.
2678 2001-05-14 DJ Delorie <dj@delorie.com>
2680 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2681 * Makefile.in: Ditto.
2683 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2685 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2686 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2688 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2690 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2692 * ldlang.c (lang_process): Call bfd_merge_sections.
2694 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2696 * ldgram.y: Fix typo.
2698 2001-05-03 H.J. Lu <hjl@gnu.org>
2700 * emultempl/elf32.em: Include "libiberty.h".
2701 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2702 basename of the bfd filename.
2703 (gld${EMULATION_NAME}_stat_needed): Likewise.
2704 (gld${EMULATION_NAME}_try_needed): Likewise.
2705 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2707 2001-05-02 H.J. Lu <hjl@gnu.org>
2709 * emultempl/pe.em: Include <ctype.h>.
2711 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2713 * emulparams/elf32openrisc.sh: New file.
2715 * Makefile.am: Add OpenRISC target.
2716 * Makefile.in: Regenerated.
2718 * configure.tgt: Add openrisc-*-* mapping.
2720 2001-05-02 Nick Clifton <nickc@redhat.com>
2722 * emultempl/aix.em: Replace buystring with xstrdup.
2723 * emultempl/beos.em: Replace buystring with xstrdup.
2725 2001-05-02 H.J. Lu <hjl@gnu.org>
2727 * ldfile.c: Include "libiberty.h".
2728 * ldlex.l: Likewise.
2730 * ldmisc.c (buystring): Removed.
2731 * ldmisc.h: Likewise.
2733 * ldfile.c: Replace buystring with xstrdup.
2734 * ldlang.c: Likewise.
2735 * ldlex.l: Likewise.
2736 * ldmain.c: Likewise.
2737 * ldmisc.c: Likewise.
2738 * lexsup.c: Likewise.
2739 * mpw-eppcmac.c: Likewise.
2741 2001-04-30 Andreas Jaeger <aj@suse.de>
2743 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2745 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2747 * ldlang.c (load_symbols): Give emulation a chance
2748 to process unrecognized file before fatal error is
2749 reported, not after.
2751 2001-04-27 Sean McNeil <sean@mcneil.com>
2753 * configure.tgt: Add arm-vxworks target.
2754 * scripttempl/armcoff.sc: Support .text or .data as a section name
2758 2001-04-13 J.T. Conklin <jtc@redback.com>
2760 * ld.texinfo: Document --fatal-warnings.
2763 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2764 warnings have been turned into errors.
2765 * lexsup.c (OPTION_WARN_FATAL): Define.
2766 (ld_options): Entry for --fatal-warnings.
2767 (parse_args): Handle OPTION_WARN_FATAL.
2768 * ld.h (ld_config_type): Add fatal_warnings field.
2770 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2772 * ldmain.c (main): Default to discard_sec_merge.
2773 * lexsup.c (OPTION_DISCARD_NONE): Define.
2774 (ld_options): Add --discard-none.
2775 (parse_args): Handle OPTION_DISCARD_NONE.
2776 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2777 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2778 all its input sections match.
2780 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2782 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2783 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2784 (eelf32ltsmip.c): New target.
2785 (eelf64btsmip.c): Likewise.
2786 (eelf64ltsmip.c): Likewise.
2787 * Makefile.in: Regenerated.
2789 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2791 (mips*-*-linux-gnu*): Likewise.
2793 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2795 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2797 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2800 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2802 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2803 correct value of __Stext here.
2804 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2807 * emulparams/crislinux.sh: Remove FIXME.
2809 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2811 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2812 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2814 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2816 * configure.tgt (cris-*-*): Change default emulation to criself.
2817 (cris-*-*aout*): New rule.
2819 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2821 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2822 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2824 2001-03-26 Andreas Jaeger <aj@suse.de>
2826 * ld.texinfo (Overview): Fix syntax in texi code.
2828 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2830 * ld.texinfo: Put @c man indications to generate the ld man page.
2831 When generating man, define all the variables. Define SEEALSO
2832 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2833 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2834 (ld.1): Generate from ld.texinfo.
2835 * Makefile.in: Regenerate.
2837 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2839 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2840 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2842 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2844 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2845 is an absolute path look only for this file and not along the path.
2847 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2849 * emultempl/elf32.em (OPTION_GROUP): New macro.
2850 Add new option Bgroup to longopts.
2851 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2852 (gld*_list_options): Add -Bgroup and -z defs.
2853 * ld.1: Document -Bgroup and -z defs.
2854 * ld.texinfo: Likewise.
2856 2001-03-07 Michael Meissner <meissner@redhat.com>
2858 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2859 with sections created by -fdata-sections.
2860 (.dynbss,.bss): Ditto.
2862 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2864 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2865 after_allocation_default, not gld..._before_allocation.
2867 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2869 * configure.in (BFD_VERSION): New.
2870 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2871 * configure: Regenerate.
2872 * Makefile.am: Run "make dep-am"
2873 * Makefile.in: Regenerate.
2875 2001-02-26 Timothy Wall <twall@cygnus.com>
2877 * emulparams/elf64_aix.sh: Add additional read-only sections;
2878 uncomment lines which are now required.
2880 2001-02-26 H.J. Lu <hjl@gnu.org>
2882 * ldlang.c (open_input_bfds): Set the bfd error handler so
2883 that problems can be caught whilst loading symbols.
2884 (record_bfd_errors): New function: Report BFD errors and mark
2885 the executable output as being invalid.
2887 2001-02-22 Timothy Wall <twall@cygnus.com>
2889 * configure.host: Add configuration for ia64-*-aix*.
2890 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2891 Add dependencies for eelf64_aix.c.
2892 * Makefile.in: Regenerate.
2893 * configure.tgt: Add ia64-*-aix* mapping.
2894 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2895 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2898 2001-02-20 H.J. Lu <hjl@gnu.org>
2900 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2901 false if we found the file.
2903 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2905 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2906 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2908 2001-02-18 lars brinkhoff <lars@nocrew.org>
2910 * Makefile.am: Add PDP-11 target.
2911 * configure.tgt: Likewise.
2912 * emulparams/pdp11.sh: New file.
2914 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2916 * configure.host: Add a generic FreeBSD configuration entry such that
2917 all [modern] FreeBSD systems on all platforms will look the same.
2919 2001-02-14 H.J. Lu <hjl@gnu.org>
2921 * configure.tgt: Remove mention of earmelf_linux26.
2923 2001-02-13 Richard Henderson <rth@redhat.com>
2925 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2927 2001-02-13 H.J. Lu <hjl@gnu.org>
2929 * ldexp.h (node_type): Add etree_provided.
2930 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2931 type to etree_provided if defined by PROVIDE. Allow updating
2933 (exp_print_tree): Handle etree_provided.
2934 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2937 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2939 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2940 .IA_64.unwind.* pattern to unwind table section and
2941 .IA_64.unwind_info* pattern to unwind info section.
2943 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2945 * Makefile.am: Add linux target for S/390.
2946 * Makefile.in: Likewise.
2947 * configure.host: Likewise.
2948 * configure.tgt: Likewise.
2949 * emulparams/elf64_s390.sh: New file.
2950 * emulparams/elf_s390.sh: New file.
2952 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2954 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2956 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2958 2001-02-06 Philip Blundell <philb@gnu.org>
2960 * Makefile.am: Remove mention of earmelf_linux26.
2961 * Makefile.in: Regenerate.
2963 2001-02-04 Philip Blundell <philb@gnu.org>
2965 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2966 * emulparams/armelf_linux26.sh: Delete.
2967 * configure.tgt: Remove mention of armelf_linux26 emulation.
2969 2001-02-01 Nick Clifton <nickc@redhat.com>
2971 * ld.1: Replace occurances of -oformat with --oformat.
2973 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2975 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2976 load_base is specified.
2978 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2980 * emultempl/elf32.em: Correct spelling in comments and listed
2983 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2985 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2986 default for the first section of a group of overlay sections.
2988 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2990 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2991 * Makefile.in: Regenerate.
2992 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2993 Check for null tool_dir.
2995 2001-01-16 Jim Wilson <wilson@redhat.com>
2997 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2998 and IA_64.unwind.info.
3000 2001-01-16 H.J. Lu <hjl@gnu.org>
3002 * ldlang.c (lang_check): Merge the private data only if the
3003 input file has contents.
3005 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3007 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3009 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3010 enabling search for libmilli. On a relocatable link, make .text
3012 (LDEMUL_AFTER_PARSE): Define.
3013 (hppaelf_finish): Correct spelling of relocatable in comments.
3015 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3016 rummage through the script for sections on the unique list.
3017 Correct length of strncmp for ".note".
3018 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3020 * ldlang.c (unique_section_list): New var.
3021 (unique_section_p): New function.
3022 (walk_wild_section): Don't match sections on unique_section_list.
3023 (lang_add_unique): New function.
3024 Correct spelling of relocatable in comments.
3026 * ldlang.h (struct unique_sections): Declare.
3027 (unique_section_list): Declare.
3028 (unique_section_p): Declare.
3029 (lang_add_unique): Declare.
3031 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3032 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3034 * ld.texinfo (--unique): Update.
3036 2001-01-13 Nick Clifton <nickc@redhat.com>
3038 * lexsup.c (parse_args): Remove spurious white space.
3040 2001-01-12 Nick Clifton <nickc@redhat.com>
3042 * lexsup.c (parse_args): Update copyright date.
3044 2001-01-12 Philip Blundell <pb@futuretv.com>
3046 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3048 2001-01-10 Kazu Hirata <kazu@hxi.com>
3050 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3051 * scripttempl/h8300h.sc: Fix formatting.
3052 * scripttempl/h8300s.sc: Likewise.
3053 * scripttempl/h8500.sc: Likewise.
3054 * scripttempl/h8500b.sc: Likewise.
3055 * scripttempl/h8500c.sc: Likewise.
3056 * scripttempl/h8500m.sc: Likewise.
3057 * scripttempl/h8500s.sc: Likewise.
3059 2000-01-07 David O'Brien <obrien@BSDi.com>
3061 * emultempl/elf32.em: Only perform Linux ld hints processing when
3064 2001-01-07 Philip Blundell <philb@gnu.org>
3066 * ld.texinfo (Bug Reporting): Update email address for reports.
3068 2000-12-31 Nick Clifton <nickc@redhat.com>
3070 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3071 options by checking for a return value of '?' not -1.
3073 2000-12-28 Nick Clifton <nickc@redhat.com>
3075 * lexsup.c (struct ld_option): Add new enum value:
3077 (ld_options[]): Change -omagic, -output and -oformat options
3078 to be EXACTLY_TWO_DASHES.
3079 (OUTPUT_COUNT): Use ARRAY_SIZE.
3080 (parse_args): Change parameter 'argc' to unsigned.
3081 Place EXACTLY_TWO_DASHES options into new really_longopts
3083 If getopt_long_only fails, try calling getopt_long using the
3084 really_longopts array.
3085 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3088 * ldlex.h: Fix prototype of parse_args.
3090 * ld.texinfo: Document that long options starting with 'o'
3091 must be preceeded by two dashes. Change example of a single
3092 dashed long option from -oformat to -trace-symbol.
3094 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3096 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3097 (longopts[]): New --no-default-excludes option.
3098 (gld_${EMULATION_NAME}_list_options): Document.
3099 (gld_${EMULATION_NAME}_parse_args): Handle.
3101 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3103 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3104 whitespace, it breaks the K&R C preprocessor.
3106 2000-12-11 DJ Delorie <dj@redhat.com>
3108 * ld.texinfo: Add notes about --whole-archive and gcc.
3110 2000-11-18 Fred Fish <fnf@be.com>
3112 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3113 (ld_options): Entry for --allow-shlib-undefined.
3114 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3115 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3117 * ld.texinfo: Document new command line switch.
3119 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3121 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3122 .fixup is actually read/write.
3123 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3124 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3125 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3127 2000-12-11 Jan Hubicka <jh@suse.cz>
3129 * NEWS: Add note about x86_64 architecture.
3131 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3133 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3134 Set DWARF2 sections to a VMA of zero.
3136 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3138 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3140 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3141 (sparc*-*-rtems*): Switched from a.out to ELF.
3143 2000-11-30 Jan Hubicka <jh@suse.cz>
3145 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3146 (eelf_x86_64.c): New.
3147 * Makefile.in: Regenerate.
3148 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3149 * emulparams/elf_x86_64.sh: New.
3151 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3153 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3154 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3156 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3157 merging non-a.out sections into CONSTRUCTING.
3159 2000-11-28 Nick Clifton <nickc@redhat.com>
3161 * ld.1 (COPYING): Mention that the GNU Free Documentation
3162 License is present in the sources, but not the output, and
3163 also available from the GNU website.
3164 (GNU Free Documentation License): Comment out this section.
3166 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3168 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3171 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3173 * ld.1: Remove old date so it does not give the impression the manpage
3176 2000-11-24 Nick Clifton <nickc@redhat.com>
3178 * configure.tgt (xscale-coff): Add target.
3179 (xscale-elf): Add target.
3181 2000-11-24 Fred Fish <fnf@be.com>
3183 * ldmain.c (main): Remove redundant init of config.make_executable
3186 2000-11-15 Richard Henderson <rth@redhat.com>
3188 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3190 2000-11-14 Kazu Hirata <kazu@hxi.com>
3192 * scripttempl/h8300.sc: Fix formatting.
3193 * scripttempl/h8300h.sc: Likewise.
3194 * scripttempl/h8300s.sc: Likewise.
3196 2000-11-14 Denis Chertykov <denisc@overta.ru>
3198 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3200 2000-11-09 Philip Blundell <pb@futuretv.com>
3202 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3203 around orphan sections whose names can be represented in C.
3205 2000-11-07 Jim Wilson <wilson@redhat.com>
3207 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3208 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3210 2000-11-06 Nick Clifton <nickc@redhat.com>
3212 * ld.texinfo: Add GNU Free Documentation License.
3213 * ldint.texinfo: Add GNU Free Documentation License.
3214 * ld.1: Add GNU Free Documentation License.
3216 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3218 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3219 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3221 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3222 Move 2000-11-02 Makefile.in changes to this file.
3223 * Makefile.in: Regenerate.
3225 2000-11-03 Nick Clifton <nickc@redhat.com>
3227 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3228 constructors and destructors.
3229 * scripttempl/h8300h.sc: Ditto.
3230 * scripttempl/h8300s.sc: Ditto.
3231 * scripttempl/h8500.sc: Ditto.
3232 * scripttempl/h8500b.sc: Ditto.
3233 * scripttempl/h8500c.sc: Ditto.
3234 * scripttempl/h8500m.sc: Ditto.
3235 * scripttempl/h8500s.sc: Ditto.
3236 * scripttempl/v850.sc: Ditto.
3237 * scripttempl/w65.sc: Ditto.
3238 * scripttempl/z8000.sc: Ditto.
3240 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3242 * Makefile.in (e_i386_chaos.c): New rule.
3243 (ALL_EMULATIONS): Added e_i386_chaos.o.
3244 * emulparams/elf_i386_chaos.sh: New file.
3245 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3247 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3249 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3250 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3251 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3252 library path suffix.
3253 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3255 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3257 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3258 for consecutive sections.
3260 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3262 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3264 * ld.texinfo: Added notes about this new option.
3266 2000-10-16 Nick Clifton <nickc@redhat.com>
3268 * emultempl/pe.em (_after_open): Add tests of return values from
3269 bfd functions. Emit appropriate error messages if necessary.
3271 2000-10-13 Nick Clifton <nickc@redhat.com>
3273 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3274 local variables - they are not used, but leave in the call to
3275 bfd_canonicalize_symtab.
3276 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3277 pe_dll_search_prefix.
3279 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3281 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3282 (longopts): New --dll-search-prefix option.
3283 (gld_${EMULATION_NAME}_list_options): Document.
3284 (gld_${EMULATION_NAME}_parse_args): Handle.
3285 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3286 dynamically, search for a dll named '<prefix><basename>.dll'
3287 in preference to 'lib<basename>.dll' if --dll-search-prefix
3290 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3292 * ldlang.c (section_already_linked): Set kept_section instead of
3295 2000-10-10 Kazu Hirata <kazu@hxi.com>
3297 * deffile.h: Fix formatting.
3298 * lexsup.c: Likewise.
3301 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3303 * pe-dll.c (make_one): Do not generate code thunk for DATA
3305 (process_def_file): deduce DATA flag for auto-export sumbols.
3307 2000-10-09 Kazu Hirata <kazu@hxi.com>
3309 * ld.h: Fix formatting.
3310 * ldcref.c: Likewise.
3311 * ldctor.h: Likewise.
3312 * ldemul.c: Likewise.
3313 * ldemul.h: Likewise.
3314 * ldexp.c: Likewise.
3315 * ldexp.h: Likewise.
3316 * ldfile.c: Likewise.
3317 * ldfile.h: Likewise.
3318 * ldlang.c: Likewise.
3319 * ldlang.h: Likewise.
3320 * ldmain.c: Likewise.
3321 * pe-dll.c: Likewise.
3323 * pe-dll.c: Revert some formatting fixes.
3325 2000-10-08 Kazu Hirata <kazu@hxi.com>
3327 * pe-dll.c: Fix formatting.
3329 2000-10-05 Kazu Hirata <kazu@hxi.com>
3331 * ldlang.c: Fix formatting.
3333 2000-10-03 DJ Delorie <dj@redhat.com>
3335 * pe-dll.c (fill_edata): initialize entire block
3336 (make_one): fill in correct section.
3338 2000-10-03 Kazu Hirata <kazu@hxi.com>
3340 * ldexp.c: Fix formatting.
3342 2000-10-02 DJ Delorie <dj@redhat.com>
3344 * emultempl/pe.em (gld_*_after_open): detect case where there two
3345 import libraries for same dll; rename one to ensure proper link
3348 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3350 (generate_edata): fix typo
3352 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3354 * scripttempl/crisaout.sc (ENTRY): Now __start.
3355 (.text): Add default setting for __start.
3356 Remove CONSTRUCTORS handling.
3357 (/DISCARD/): Add .gnu.warning.*.
3358 * emulparams/crislinux.sh (ENTRY): Now __start.
3359 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3360 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3361 (ENTRY): Now __start.
3362 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3363 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3365 2000-09-29 Kazu Hirata <kazu@hxi.com>
3367 * deffile.h: Fix formatting.
3369 * ldcref.c: Likewise.
3370 * ldctor.c: Likewise.
3371 * ldctor.h: Likewise.
3372 * ldemul.c: Likewise.
3373 * ldemul.h: Likewise.
3374 * ldexp.c: Likewise.
3375 * ldexp.h: Likewise.
3376 * ldfile.c: Likewise.
3377 * ldfile.h: Likewise.
3378 * ldlang.c: Likewise.
3379 * ldlang.h: Likewise.
3380 * lexsup.c: Likewise.
3382 * pe-dll.c: Likewise.
3384 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3386 * pe-dll.c (process_def_file): Uninitialized data wasn't
3387 exported with --export-all-symbols switch.
3389 2000-09-28 DJ Delorie <dj@redhat.com>
3391 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3392 noname work properly.
3394 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3396 * ld.texinfo (HPPA ELF32): New section.
3398 * emultempl/hppaelf.em (group_size): New.
3399 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3400 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3401 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3402 options to prevent abbreviations matching.
3403 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3404 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3406 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3408 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3409 on the m68*-*-elf target. Make it support COFF input objects.
3411 2000-09-21 Kazu Hirata <kazu@hxi.com>
3413 * ldmain.c: Fix formatting.
3414 * ldmisc.c: Likewise.
3415 * ldver.c: Likewise.
3416 * ldwrite.c: Likewise.
3418 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3420 * ldwrite.c (clone_section): Silence gcc warnings.
3422 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3424 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3425 out of memory failure.
3427 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3428 (clone_section): Handle out of memory failures. Rename var to
3429 avoid c++ reserved word.
3431 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3433 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3434 stub_name param to stub_sec_name.
3435 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3437 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3439 * emultempl/m68kelf.em: New file.
3440 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3441 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3442 * Makefile.in: Regenerate.
3444 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3446 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3449 2000-09-13 Nick Clifton <nickc@redhat.com>
3451 * ldmain.c (multiple_definition): Disable relaxation if
3452 multiple symbol definitions are encountered - otherwise the
3453 linker could abort with an assertion failure.
3455 2000-09-10 Nick Clifton <nickc@redhat.com>
3457 * mri.c: Fix formatting.
3459 2000-09-07 H.J. Lu <hjl@gnu.org>
3461 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3462 * configure: Rebuild.
3464 2000-09-07 H.J. Lu <hjl@gnu.org>
3466 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3467 * Makefile.in: Rebuild.
3469 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3471 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3472 broken list handling. Create __start_SECNAME and __stop_SECNAME
3473 when no place-holder. Add some comments. Test both SEC_CODE and
3474 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3475 Handle case where no output section statement created.
3477 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3479 * configure.tgt (sh-*-linux*): Added.
3480 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3481 * Makefile.in: Rebuilt.
3482 * emulparams/shelf_linux.sh: New file.
3483 * emulparams/shlelf_linux.sh: New file.
3485 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3487 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3488 try shuffling sections when the orphan happens to be the place
3489 holder. Keep count of unique section names generated so we speed
3490 the search for a new name.
3492 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3494 * configure: Rebuilt with new libtool.m4.
3496 2000-09-05 Nick Clifton <nickc@redhat.com>
3498 * Makefile.in: Regenerate.
3499 * aclocal.m4: Regenerate.
3500 * configure: Regenerate.
3501 * config.in: Regenerate.
3502 * po/ld.pot: Regenerate.
3504 * ldint.texinfo: Remove CVS revision marker - it foils local
3507 * emultempl/ticoff.em: Remove extraneous comma.
3509 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3511 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3512 to stub section flags.
3513 (hppa_for_each_input_file_wrapper): New.
3514 (hppa_lang_for_each_input_file): New.
3515 (lang_for_each_input_file): Define to call above.
3516 (multi_subspace): New.
3517 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3518 (PARSE_AND_LIST_PROLOGUE): Define.
3519 (PARSE_AND_LIST_LONGOPTS): Define.
3520 (PARSE_AND_LIST_OPTIONS): Define.
3521 (PARSE_AND_LIST_ARGS_CASES): Define.
3522 (hppaelf_finish): Call elf32_hppa_set_gp.
3523 (hppaelf_set_output_arch): Remove.
3524 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3526 * emulparams/hppalinux.sh (ELFSIZE): Define.
3528 (OTHER_READONLY_SECTIONS): Define.
3530 (GENERATE_SHLIB_SCRIPT): Define.
3532 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3533 to const throughout. Change `void *' to `PTR' throughout.
3534 (lang_memory_default): Function is local to file, add `static'.
3536 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3537 (ehppalinux.c): Likewise.
3538 (earmelf.c): Likewise.
3539 (earmelf_linux.c): Likewise.
3540 (earmelf_linux26.c): Likewise.
3541 * Makefile.in: Regenerate.
3543 * ld.h (ld_config_type): Add unique_orphan_sections.
3544 * lexsup.c (OPTION_UNIQUE): Define.
3545 (ld_options): Add "--unique".
3546 (parse_args): Handle it.
3547 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3548 search for an existing output section if unique_orphan_sections is
3549 set. Make use of bfd_get_unique_section_name rather than
3550 duplicating code here.
3551 * ld.texinfo: Describe --unique.
3553 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3554 optional arg to split-by-file.
3555 (parse_args): Handle them.
3556 * ld.texinfo: Update description of these options.
3557 * ldwrite.c (clone_section): Pass in the section name. Replace
3558 local code with bfd_get_unique_section_name.
3559 (split_sections): Tidy code and comments. Use a list traversal
3560 more appropriate to the list construction. Handle cooked section
3561 sizes. Split when split_by_reloc reached rather than exceeded.
3562 Track section size and split when split_by_file reached. Fix
3563 link_order_tail (even though it's not used).
3564 (ldwrite): Modify condition for calling split_sections to suit
3565 changed split_by_reloc and split_by_file.
3566 * ldmain.c (main): Init config.split_by_reloc and
3567 config.split_by_file to -1.
3568 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3569 Change split_by_file to bfd_size_type.
3571 2000-09-02 Nick Clifton <nickc@redhat.com>
3573 * configure.in: Increase version number to 2.10.91.
3574 * NEWS: Mention new ability to support removal of duplicate DWARF2
3576 * configure: Regenerate.
3577 * aclocal.m4: Regenerate.
3578 * config.in: Regenerate.
3580 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3582 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3584 * scripttempl/elf32avr.sc: Ditto.
3585 * scripttempl/elfd10v.sc: Ditto.
3586 * scripttempl/elfd30v.sc: Ditto.
3587 * scripttempl/elfi370.sc: Ditto.
3588 * scripttempl/elfm68hc11.sc: Ditto.
3589 * scripttempl/elfm68hc12.sc: Ditto.
3590 * scripttempl/elfi386beos.sc: Ditto.
3591 * scripttempl/v850.sc: Ditto.
3593 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3595 * acinclude.m4: Include libtool and gettext macros from the
3597 * aclocal.m4, configure: Rebuilt.
3599 2000-08-25 Nick Clifton <nickc@redhat.com>
3601 * ldlang.c (open_output): When choosing the target for a
3602 particular endianness, do nothing if the target is not
3605 2000-08-25 H.J. Lu <hjl@gnu.org>
3607 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3608 check -rpath nor LD_RUN_PATH for cross link.
3609 * ld.texinfo: Document the change.
3611 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3613 * NEWS: Mention support for CRIS.
3615 2000-08-23 H.J. Lu <hjl@gnu.org>
3617 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3618 the current runpath list from bfd_elf_get_runpath_list ()
3621 2000-08-22 H.J. Lu <hjl@gnu.org>
3623 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3624 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3625 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3626 trace_file_tries is non-zero.
3627 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3628 if trace_file_tries is non-zero.
3630 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3633 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3635 * NEWS: Mention i860 support.
3637 2000-08-14 Andreas Schwab <schwab@suse.de>
3639 * scripttempl/elf.sc: Fix last change to use correct comment
3642 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3644 * scripttempl/elf.sc: Add a comment giving the correspondence
3645 between sections, per-datum sections, and linkonce sections. Make
3646 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3649 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3651 * emulparams/elf32_i860.sh: New file.
3652 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3653 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3654 (eelf32_i860.c): New rule.
3655 * Makefile.in: Regenerate.
3657 2000-08-10 Nick Clifton <nickc@cygnus.com>
3659 * emulparams/mipspe.sh (ENTRY): Add definition.
3661 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3663 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3666 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3668 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3669 the final size of .bss section.
3670 * scripttempl/elfm68hc12.sc: Likewise.
3672 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3674 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3675 gld${EMULATION_NAME}_parse_args for consistency. Combine
3676 lastoptind and prevoptind vars, and keep track of last optind.
3677 (gld_${EMULATION_NAME}_list_options): Rename to
3678 gld${EMULATION_NAME}_list_options.
3680 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3682 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3683 (i586-sco-sysv5uw7.1.0).
3685 2000-07-27 H.J. Lu <hjl@gnu.org>
3687 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3688 (PARSE_AND_LIST_PROLOGUE): New.
3689 (PARSE_AND_LIST_LONGOPTS): Likewise.
3690 (PARSE_AND_LIST_OPTIONS): Likewise.
3691 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3692 (PARSE_AND_LIST_EPILOGUE): Likewise.
3694 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3696 * emultempl/armelf.em: Elide functions common to elf32.em,
3697 ie. most of the file.
3698 (arm_elf_after_open): New. Do arm specific things then call
3699 gld${EMULATION_NAME}_after_open.
3700 (arm_elf_before_allocation): New. Call
3701 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3702 (PARSE_AND_LIST_PROLOGUE): Define.
3703 (PARSE_AND_LIST_SHORTOPTS): Define.
3704 (PARSE_AND_LIST_LONGOPTS): Define.
3705 (PARSE_AND_LIST_OPTIONS): Define.
3706 (PARSE_AND_LIST_ARGS_CASES): Define.
3707 (LDEMUL_AFTER_OPEN): Define.
3708 (LDEMUL_BEFORE_ALLOCATION): Define.
3709 (LDEMUL_BEFORE_PARSE): Define.
3710 (LDEMUL_FINISH): Define.
3712 * emultempl/hppaelf.em: Similarly zap most of this file.
3713 (hppaelf_add_stub_section): Prototype.
3714 (hppaelf_layaout_sections_again): Prototype.
3715 (hook_in_stub): Prototype.
3716 (LDEMUL_SET_OUTPUT_ARCH): Define.
3717 (LDEMUL_FINISH): Define.
3718 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3720 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3721 (EXTRA_EM_FILE): New.
3722 * emulparams/armelf_linux.sh: Likewise.
3723 * emulparams/armelf_linux26.sh: Likewise.
3724 * emulparams/hppalinux.sh: Likewise.
3725 * emulparams/hppaelf.sh: Likewise.
3728 * emultempl/elf32.em: Fix formatting.
3729 (EXTRA_EM_FILE): Source it.
3730 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3731 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3732 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3733 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3734 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3735 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3736 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3737 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3738 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3739 allow functions in this file to be overridden.
3740 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3742 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3744 * emultempl/elf32.em: Reorganize file.
3746 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3748 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3749 specific option to fit 64-bit executable in the lower
3750 31-bit address range. This is done by changing start
3751 address of .interp (the very first section of executable)
3752 and then setting EF_ALPHA_32BIT elf header flag.
3754 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3756 * emultempl/m68kcoff.em: New file.
3757 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3758 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3760 * Makefile.in: Regenerate.
3762 2000-07-20 H.J. Lu <hjl@gnu.org>
3764 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3765 and "disable-new-dtags" to stop getopt from treating -d/-e as
3766 abbreviations for these options.
3768 2000-07-20 H.J. Lu <hjl@gnu.org>
3770 * ld.texinfo: Add documentation for --disable-new-dtags and
3773 * ldmain.c (main): Initialize link_info.new_dtags to false.
3775 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3776 --disable-new-dtags and --enable-new-dtags.
3777 (gld_${EMULATION_NAME}_list_options): Likewise.
3779 2000-07-05 Kenneth Block <krblock@computer.org>
3781 * lexsup.c: Add optional style to demangle switch
3782 * ld.texinfo: Document optional style to demangle switch.
3784 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3786 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3788 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3789 Regenerate dependencies.
3790 * Makefile.in: Rebuild.
3791 * configure.tgt (cris-*-*): New target.
3792 * emulparams/crisaout.sh, emulparams/criself.sh,
3793 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3794 * po/POTFILES.in, po/ld.pot: Regenerate.
3796 2000-07-20 H.J. Lu <hjl@gnu.org>
3798 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3799 Print out ignored -z options.
3801 2000-07-19 H.J. Lu <hjl@gnu.org>
3803 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3804 (PARSE_AND_LIST_PROLOGUE): New.
3805 (PARSE_AND_LIST_LONGOPTS): Likewise.
3806 (PARSE_AND_LIST_OPTIONS): Likewise.
3807 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3809 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3811 * lexsup.c (ld_options): Comment out 'z'.
3812 (parse_args): Likewise.
3814 * emultempl/elf32.em: Include "elf/common.h".
3815 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3817 (gld_${EMULATION_NAME}_list_options): Likewise.
3819 * ld.texinfo: Add documentation for the recognized -z options.
3821 2000-07-19 H.J. Lu <hjl@gnu.org>
3823 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3824 bfd_elf_set_dt_needed_soname ().
3826 2000-07-18 DJ Delorie <dj@cygnus.com>
3828 * pe-dll.c (pe_dll_id_target): check object target name also
3830 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3832 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3833 ${INIT_END} if relocating.
3834 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3836 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3838 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3839 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3840 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3841 errors introduced by the old dynamic lib search order.
3843 2000-07-17 DJ Delorie <dj@cygnus.com>
3845 * pe-dll.c (process_def_file): auto-export data items also
3846 (pe_process_import_defs): also see if _imp_ form needed
3848 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3850 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3851 for dll import libraries
3853 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3855 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3856 gcc 2.95.2 and later.
3858 2000-07-11 Kazu Hirata <kazu@hxi.com>
3860 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3863 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3865 * ldemul.h (struct lang_input_statement_struct): Remove forward
3867 (struct search_dirs): Likewise.
3868 * ldfile.h (struct lang_input_statement_struct): Likewise.
3869 Protect file from multiple inclusion.
3870 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3871 declaration from macro to file scope.
3873 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3874 * ldgram.y: Likewise here.
3875 * ldlang.c: And here.
3876 * ldmain.c: And here.
3877 * mpw-elfmips.c: And here.
3878 * mpw-eppcmac.c: And here.
3879 * emultempl/aix.em: And here.
3880 * emultempl/armcoff.em: And here.
3881 * emultempl/armelf.em: And here.
3882 * emultempl/armelf_oabi.em: And here.
3883 * emultempl/beos.em: And here.
3884 * emultempl/elf32.em: And here.
3885 * emultempl/hppaelf.em: And here.
3886 * emultempl/linux.em: And here.
3887 * emultempl/lnk960.em: And here.
3888 * emultempl/pe.em: And here.
3889 * emultempl/sunos.em: And here.
3890 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3891 * mpw-idtmips.c: Ditto.
3892 * emultempl/generic.em: Ditto.
3893 * emultempl/gld960.em: Ditto.
3894 * emultempl/gld960c.em: Ditto.
3895 * emultempl/mipsecoff.em: Ditto.
3896 * emultempl/ticoff.em: Ditto.
3897 * emultempl/vanilla.em: Ditto.
3899 * pe-dll.c: Include ldfile.h
3900 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3902 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3903 arguments to bfd_elf32_size_dynamic_sections call.
3904 (gldelf32ebmip_place_orphan): Add missing arguments to
3905 lang_leave_output_section_statement call.
3907 2000-07-10 H.J. Lu <hjl@gnu.org>
3909 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3911 (strhash): Likewise.
3912 (compute_dll_image_base): Likewise.
3913 (pe_undef_found_sym): Likewise.
3914 (pe_undef_cdecl_match): Likewise.
3915 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3916 argument "arch" with ATTRIBUTE_UNUSED.
3918 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3920 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3922 From Ryan Bradetich <rbradetich@uswest.net>
3923 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3925 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3927 Changes to create multiple linker stubs, positioned immediately
3928 before the section where they are required.
3929 * emultempl/hppaelf.em: Include elf32-hppa.h.
3930 (stub_sec, file_chain): Delete.
3931 (hppaelf_create_output_section_statements): Don't make a stub
3933 (hook_stub_info): New struct.
3934 (hook_in_stub): New function.
3935 (hppaelf_add_stub_section): New function.
3936 (hppaelf_finish): Do nothing for relocateable links. Modify the
3937 call to elf32_hppa_size_stubs. Move code for updating section
3939 (hppaelf_layaout_sections_again): ..to here, a new function.
3941 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3942 broken list handling. Pass in a pointer to the list.
3943 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3945 (hppaelf_before_parse): Prototype.
3946 (hppaelf_set_output_arch): Prototype.
3947 (hppaelf_create_output_section_statements): Prototype.
3948 (hppaelf_delete_padding_statements): Prototype.
3949 (hppaelf_finish): Prototype.
3952 * emultempl/hppaelf.em: Include ctype.h.
3953 (struct orphan_save): New.
3954 (gld${EMULATION_NAME}_place_orphan): New.
3955 (output_rel_find): New.
3956 (hppaelf_get_script): Update from elf32.em.
3957 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3958 Change emulation_name field to "${EMULATION_NAME}". Add
3959 gld${EMULATION_NAME}_place_orphan.
3961 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3962 ehppalinux.o, sort it. Regenerate dependencies.
3963 (ehppalinux.c): Depend on hppaelf.em
3964 * Makefile.in: Regenerate.
3966 * configure.tgt: targ_emul=hppalinux for hppa*linux
3968 * emulparams/hppalinux.sh: New.
3969 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3971 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3973 * lexsup.c (parse_args): Copy section name.
3975 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3977 * emultempl/pe.em: institute the following search order for
3978 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3979 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3980 static lib (libfoo.a) if none of the above are found.
3982 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3984 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3985 (longopts): New --{enable,disable}-auto-image-base options.
3986 (gld_${EMULATION_NAME}_list_options): Document.
3987 (gld_${EMULATION_NAME}_parse): Handle.
3988 (strhash): New static function.
3989 (compute_dll_image_base): New static function.
3990 (gld_${EMULATION_NAME}_set_symbols): Use.
3992 2000-07-05 DJ Delorie <dj@redhat.com>
3996 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3998 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3999 * emulparams/elf32btsmip.sh: New file.
4000 * Makefile.am: Add traditional mips target.
4001 * Makefile.in: Rebuild.
4003 2000-07-01 H.J. Lu <hjl@gnu.org>
4005 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4006 automake to use YLWRAP.
4007 * Makefile.in: Rebuild.
4009 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4011 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4012 (CLEANFILES): Add DEPA.
4013 * Makefile.in: Regenerate.
4015 2000-06-30 Timothy Wall <twall@ppc>
4017 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4018 the page in the upper octet of the address.
4020 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4022 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4024 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4026 * NEWS: arm-elf does --gc-sections too.
4028 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4030 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4032 * Makefile.in: Regenerate.
4034 2000-06-21 H.J. Lu <hjl@gnu.org>
4036 * Makefile.am: Rebuild dependency.
4037 * Makefile.in: Rebuild.
4039 2000-06-20 H.J. Lu <hjl@gnu.org>
4041 * Makefile.am: Rebuild dependency.
4042 * Makefile.in: Rebuild.
4044 2000-06-20 Timothy Wall <twall@cygnus.com>
4046 * scripttempl/tic54xcoff.sc: New.
4047 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4048 * gen-doc.texi: Add flag for TI COFF.
4049 * ld.texinfo: Add documentation for TI COFF handling switches.
4050 * emultempl/ticoff.em: New. TI COFF handling.
4051 * configure.tgt: Add tic54x target.
4052 * Makefile.am: Add tic54x target.
4053 * Makefile.in: Ditto.
4055 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4057 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4058 checking for backslashes.
4060 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4062 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4064 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4066 * NEWS: Update list of targets supporting --gc-sections.
4068 * scripttempl/elf.sc: KEEP .eh_frame contents.
4069 * scripttempl/elfd30v.sc: Same here.
4071 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4073 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4075 * Makefile.in: Rebuild.
4076 * configure.tgt: Recognize m68hc12 and m68hc11.
4077 * scripttempl/elfm68hc12.sc: New file.
4078 * emulparams/m68hc12elfb: New emulation.
4079 * emulparams/m68hc12elf: New emulation.
4080 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4081 (includes a memory.x script to define the ROM and RAM banks).
4082 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4083 New configuration files for support of Motorola 68hc11
4085 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4087 * ldmain.c (main): Only change SEC_READONLY for final link.
4089 2000-06-13 H.J. Lu <hjl@gnu.org>
4091 * configure: Regenerate.
4093 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4095 * configure.in (VERSION): Update to show this is the CVS mainline.
4097 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4099 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4100 input objects to be ECOFF.
4101 (check_sections): einfo takes %B, not %P, to print a BFD name.
4103 2000-06-05 Michael Matz <matz@ifh.de>
4105 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4108 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4110 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4112 * emulparams/avr1200.sh (STACK): Define as 0.
4113 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4114 * emulparams/avr4433.sh (STACK): Likewise.
4115 * emulparams/avr44x4.sh (STACK): Likewise.
4116 * emulparams/avr85xx.sh (STACK): Likewise.
4117 * emulparams/avrmega103.sh (STACK): Likewise.
4118 * emulparams/avrmega161.sh (STACK): Likewise.
4119 * emulparams/avrmega603.sh (STACK): Likewise.
4120 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4121 (__stack): Define from ${STACK} for main().
4123 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4125 * Makefile.am: Update dependencies with "make dep-am"
4126 * Makefile.in: Regenerate.
4128 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4130 * ldmain.c: Include filenames.h.
4131 (set_scripts_dir): Support backslashes in program name.
4133 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4135 * ldmain.c (main): When deciding if ".text" section should be
4136 read-only, don't forget to reset SEC_READONLY because it
4137 could be already set.
4139 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4141 * ld.1: Add documentation for new command line option:
4142 --section-start <sectionname>=<sectionorg>
4143 This is a generic version of -Ttext etc. which accepts
4144 any section name as a parameter instead of just text/data/
4146 * ld.texinfo: More docs.
4148 * lexsup.c: (parse_args): Recognize new command line option.
4149 (ld_options): Add new option.
4151 2000-05-18 H.J. Lu <hjl@gnu.org>
4153 * lexsup.c (parse_args): `i' == `r', not `q'.
4155 2000-05-18 Jeffrey A Law (law@cygnus.com)
4157 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4159 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4160 Rick Gorton <gorton@scrugs.lkg.dec.com>
4162 Add support for '-q' == '--emit-relocs' switch.
4163 * ldmain.c (main): Default to false.
4164 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4165 * NEWS: Describe the emitrelocations switch.
4166 * ld.texinfo: Describe the emitrelocations switch.
4168 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4170 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4171 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4172 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4175 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4177 * lexsup.c (parse_args): Update the year in the copyright notice.
4179 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4181 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4182 Replace defines with those from intl/libgettext.h to quieten gcc
4185 2000-05-10 H.J. Lu <hjl@gnu.org>
4187 * ldlang.c (open_input_bfds): Don't load the same file within
4188 a group again if the whole archive has been loaded already.
4190 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4192 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4193 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4196 2000-05-01 Jim Wilson <wilson@cygnus.com>
4198 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4200 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4201 host "ia64-*-linux-gnu*".
4203 2000-04-29 Andreas Jaeger <aj@suse.de>
4205 * ld.h: Correctly check GCC version.
4207 2000-04-25 Jeffrey A Law (law@cygnus.com)
4209 * Makefile.am: Add PA64 support. Add missing dependencies for
4211 * Makefile.in: Rebuilt.
4212 * configure.tgt: Add PA64 support (currently disabled).
4214 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4216 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4217 (output_rel_find): New function.
4218 (hold_section, hold_use): Delete.
4219 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4220 hold_interp): Make local to place_orphan.
4221 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4222 rather than place_section to find possible previous use of orphan.
4223 Similarly find the place-holder output sections. Use returned
4224 value from lang_enter_output_section_statement rather than calling
4225 lang_output_section_statement_lookup.
4226 * emultempl/armelf.em: Same here.
4227 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4229 * ldlang.c (lang_enter_output_section_statement): Return output
4231 * ldlang.h (lang_enter_output_section_statement): Change
4234 * ldlang.h (lang_output_section_statement): Export it.
4235 * ldlang.c (lang_output_section_statement): Ditto.
4237 2000-04-24 Nick Clifton <nickc@cygnus.com>
4239 * ld.texinfo (Output Section Data): Add note that section data
4240 commands cannot appear outside of section directives.
4242 2000-04-2 Matthew Green <mrg@cygnus.com>
4244 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4246 2000-04-21 Richard Henderson <rth@cygnus.com>
4247 David Mosberger <davidm@hpl.hp.com>
4249 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4250 (eelf64_ia64.c): New rule.
4251 * Makefile.in: Rebuild.
4252 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4253 * emulparams/elf64_ia64.sh: New file.
4255 2000-04-21 Richard Henderson <rth@cygnus.com>
4257 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4259 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4261 * dep-in.sed: Match space at start of file name, not at end.
4263 2000-04-18 H.J. Lu <hjl@gnu.org>
4265 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4266 lang_leave_output_section_statement () after calling
4267 lang_enter_output_section_statement ().
4268 * emultempl/armelf.em: Likewise.
4270 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4272 * emultempl/elf32.em (struct orphan_save): Add section field.
4273 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4274 better order, and place first orphan section as we did before the
4275 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4276 Don't call make_bfd_section here, let wild_doit do the job for us.
4277 Don't build a statement list when we'll only throw it away.
4278 * emultempl/armelf.em: Ditto.
4279 * emultempl/pe.em: Similarly.
4281 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4283 * scripttempl/elfppc.sc: Remove.
4284 * emulparams/elf32ppc.sh: Use elf.sc.
4285 * emulparams/elf32lppc.sh: Use elf.sc.
4286 * emulparams/elf32ppclinux.sh: Use elf.sc.
4287 * emulparams/elf32ppcsim.sh: New file.
4288 * emulparams/elf32lppcsim.sh: New file.
4289 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4290 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4291 * Makefile.in: Regenerate.
4292 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4294 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4296 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4297 ~SEC_ALLOC sections too. Init start address of debug sections.
4298 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4299 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4300 Also set all relocateable section start addresses.
4302 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4304 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4305 Add new BSS_PLT variable for when .plt need not be contained in
4306 the file. Move _etext so that it is also after .fini, and provide
4307 both etext and _etext with a leading underscore. Mark the start
4310 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4312 * emultempl/elf32.em (struct orphan_save): New.
4313 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4314 hold_interp): Make them struct orphan_save.
4315 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4316 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4317 the end of the relevant section list. Also add associated section
4318 statements to the end of any previous orphan statements.
4319 * emultempl/armelf.em: Similarly.
4320 * emultempl/pe.em: Similarly.
4322 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4324 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4326 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4328 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4329 --enable-build-warnings option.
4330 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4331 * Makefile.in, configure: Re-generate.
4333 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4335 * po/ld.pot: Regenerate.
4337 * lexsup.c (help): Restore translated part of bug string.
4339 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4340 (DEP): Quote when passing vars to sub-make. Add warning message
4342 (DEP1): Rewrite for "gcc -MM".
4343 (CLEANFILES): Add DEP2.
4344 Update dependencies.
4345 * Makefile.in: Regenerate.
4347 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4349 * ld.h: #include "bin-bugs.h"
4350 * lexsup.c (help): Use REPORT_BUGS_TO.
4352 2000-03-27 Denis Chertykov <denisc@overta.ru>
4354 * configure.tgt (avr-*-*): New target support.
4355 * Makefile.am: Likewise.
4356 * scripttempl/elf32avr.sc: New script file.
4357 * emulparams/avr1200.sh: New file.
4358 * emulparams/avr23xx.sh: New file.
4359 * emulparams/avr4433.sh New file.
4360 * emulparams/avr44x4.sh New file.
4361 * emulparams/avr85xx.sh New file.
4362 * emulparams/avrmega103.sh New file.
4363 * emulparams/avrmega161.sh New file.
4364 * emulparams/avrmega603.sh New file.
4365 * Makefile.in: Regenerate.
4367 2000-03-09 Andreas Jaeger <aj@suse.de>
4369 * Makefile.am (check-DEJAGNU): Also unset LANG.
4370 * Makefile.in: Rebuild.
4372 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4374 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4377 2000-03-02 H.J. Lu <hjl@gnu.org>
4379 * emulparams/elf32mcore.sh: Include "getopt.h".
4381 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4383 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4385 2000-03-01 H.J. Lu <hjl@gnu.org>
4387 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4388 * emulparams/shpe.sh: Likewise.
4390 2000-03-01 Nick Clifton <nickc@cygnus.com>
4392 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4393 to unused parameters.
4395 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4396 functions only used by DLL code.
4397 (_place_orphan): Initialise 'dollar'.
4399 2000-03-01 H.J. Lu <hjl@gnu.org>
4401 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4402 indicate if the undefined symbol is a fatal error or not.
4403 Don't delete the output file if "fatal" is false.
4405 2000-02-29 H.J. Lu <hjl@gnu.org>
4407 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4408 Set LC_COLLATE and LC_ALL to null and export them. It is for
4409 sort which expects the C locale.
4410 Add $(LIBS) to all $(HOSTING_LIBS).
4411 * Makefile.in: Rebuild.
4413 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4415 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4416 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4417 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4418 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4419 find_potential_libraries.
4421 2000-02-28 Jim Blandy <jimb@redhat.com>
4423 * ldgram.y (exclude_name_list): Don't require a comma to separate
4424 list entries; the lexer considers commas to be valid part of a
4425 filename, so in something like `foo, bar' the comma is considered
4426 part of the first filename, `foo,'.
4427 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4429 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4431 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4432 host "i[3456]86-*-freebsdelf*".
4434 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4436 * scripttempl/i386go32.sc: Move misplaced semicolons.
4438 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4440 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4441 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4442 (eelf64hppa.c, ehppaelf.c): Remove targets.
4443 * Makefile.in: Rebuild.
4445 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4447 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4448 GNU/Linux/sparc, but keep the default as 32.
4450 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4451 it default if sparcv9 or sparc64.
4453 2000-02-24 Nick Clifton <nickc@cygnus.com>
4455 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4456 * Makefile.in: Regenerate.
4457 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4459 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4460 find_potential_libraries.
4461 * ldemul.c (ldemul_find_potential_libraries): New function.
4463 * ldfile.c (ldfile_open_file_search): Allow function to be
4465 (ldfile_open_file): Call ldemul_find_potential_libraries.
4466 * ldfile.h: Add prototype for ldfile_open_file_search.
4468 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4470 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4471 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4473 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4474 (gld_X_find_potential_libraries): New function. Search for
4475 libraries called "*.lib".
4477 * scripttempl/pe.sc: Add .pdata section.
4479 2000-02-23 Richard Henderson <rth@cygnus.com>
4481 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4482 Add and use memory regions.
4484 2000-02-23 Linas Vepstas (linas@linas.org)
4486 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4488 * Makefile.am: Add support for Linux/IBM 370.
4489 * configure.tgt: Likewise.
4491 * Makefile.in: Regenerate.
4493 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4495 * ldlang.c (print_input_section, print_data_statement,
4496 print_reloc_statement, print_padding_statement, insert_pad,
4497 size_input_section, lang_check_section_addresses,
4498 lang_size_sections, lang_do_assignments, lang_set_startof,
4499 lang_one_common): Change `opb' to unsigned.
4500 (lang_do_assignments): Also change `size' to unsigned.
4502 2000-02-16 Richard Henderson <rth@cygnus.com>
4504 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4506 2000-02-16 Timothy Wall <twall@cygnus.com>
4508 * mri.c (mri_draw_tree): Add default LMA region argument to call
4509 to lang_leave_output_section_statement.
4510 * ldlang.h: Update prototypes with LMA region arguments.
4511 * ldlang.c (lang_size_sections): Encapsulate region bounds
4512 checking in os_check_region call.
4513 (os_check_region): New function.
4514 (lang_output_section_statement_lookup): Initialize lma_region.
4515 (lang_leave_output_section_statement): Add LMA region argument.
4516 (lang_leave_overlay): Ditto.
4517 * ldgram.y: Handle LMA region syntax.
4518 * ld.texinfo (Output Section Description): Describe LMA region usage.
4519 * emultempl/armelf.em (gld$place_orphan): Add default value for
4520 lma region in call to lang_leave_output_section_statement.
4521 * emultempl/elf32.em (gld$place_orphan): Add default value for
4522 lma region in call to lang_leave_output_section_statement.
4523 * emultempl/pe.em (gld$place_orphan): Add default value for
4524 lma region in call to lang_leave_output_section_statement.
4527 2000-02-04 Timothy Wall <twall@redhat.com>
4529 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4530 octets when calculating section end addresses.
4532 2000-02-04 Timothy Wall <twall@redhat.com>
4534 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4536 2000-02-03 Timothy Wall <twall@redhat.com>
4538 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4540 * ldlang.c (print_input_section, print_data_statement,
4541 print_reloc_statement, print_padding_statement): Print target
4542 address values and section sizes as bytes, not octets.
4543 (insert_pad) Calculate padding size in octets, and adjust "dot"
4545 (size_input_section) Always adjust "dot" by bytes, not octets.
4546 (lang_check_section_addresses, lang_do_assignments) Adjust
4547 "dot" by bytes, not octets. Use the larger of the directive size
4548 or octets_per_byte for the number of octets actually allocated in
4550 (lang_set_startof) Make sure STARTOF returns a target address.
4551 (lang_one_common) Record size changes in octets.
4552 (lang_abs_symbol_at_end_of) Section end symbol's value is
4553 recorded in target bytes.
4554 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4555 to be clear about behavior when an octet is smaller than one byte.
4557 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4559 * ldcref.c (output_cref): Don't pass message strings to printf
4563 * ldmisc.c (vfinfo): Same here.
4566 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4568 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4569 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4570 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4571 Add missing NULL initialisers, and comments.
4573 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4575 2000-01-21 Nick Clifton <nickc@cygnus.com>
4577 * ldlang.c (lang_size_sections): Fix typo in comment.
4579 2000-01-18 H.J. Lu <hjl@gnu.org>
4581 * ldlang.c (lang_size_sections): Also update the current
4582 address of a region if the SEC_NEVER_LOAD bit is not set.
4584 2000-01-10 Philip Blundell <pb@futuretv.com>
4586 * configure.tgt (arm*-*-conix*): New target.
4588 2000-01-07 Nick Clifton <nickc@cygnus.com>
4590 * ld.texinfo (Options): Remind users to preceed linker command
4591 line switches with -Wl, (or whatever is appropriate) if it is
4592 being invoked by a comnpiler driver program.
4593 Fix description of the behaviour of the -n command line switch.
4595 2000-01-05 Catherine Moore <clm@cygnus.com>
4597 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4599 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4600 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4601 (exclude_name_list): New.
4602 ldlang.c (walk_wild_section): Support list of excluded files.
4603 (print_wild_statement): Likewise.
4604 (lang_add_wild): Likewise.
4605 * ldlang.h (lang_wild_statement_type): Likewise.
4606 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4608 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4610 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4611 (process_def_file): Use.
4612 (pe_dll_compat_implib): New variable.
4615 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4616 pe_dll_compat_implib.
4618 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4619 compat-implib options.
4620 (gld_${EMULATION_NAME}_list_options): List new options.
4621 (gld_${EMULATION_NAME}_parse_args): Handle.
4623 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4626 * deffilep.y (opt_name): Allow "." in name.
4628 For older changes see ChangeLog-9899
4634 version-control: never