1 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
4 link_info.common_skip_ar_aymbols.
5 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
7 * ldmain.c (main): Initialize new field
8 link_info.common_skip_ar_aymbols.
10 2002-07-31 Adam Nemet <anemet@lnxw.com>
12 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
14 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
17 2002-07-31 Nick Clifton <nickc@redhat.com>
19 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
20 of the PDP-11 and 2.11BSD a.out support.
22 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
24 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
26 * Makefile.in: Regenerate.
27 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
28 n32 ABI emulations for these 64 bit targets.
29 * emulparams/elf32bmipn32.sh: Expand comment.
30 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
32 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
34 2002-07-30 Graeme Peterson <gp@qnx.com>
36 * configure.tgt: Add support for arm-*-nto target.
37 * Makefile.am: Add earmnto.o file.
38 * Makefile.in: Regenerate.
39 * NEWS: Mention port of ARM support to QNX.
40 * emulparams/armnto.sh: New file.
42 2002-07-30 Jakub Jelinek <jakub@redhat.com>
44 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
46 (lang_size_sections_1): Don't make .tbss zero size for relocatable
49 2002-07-26 Bernd Schmidt <bernds@redhat.com>
51 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
54 2002-07-25 Nick Clifton <nickc@redhat.com>
56 * po/sv.po: Updated Swedish translation.
57 * po/es.po: Updated Spanish translation.
58 * po/fr.po: Updated French translation.
60 2002-07-24 Nick Clifton <nickc@redhat.com>
62 * po/sv.po: Updated Swedish translation.
63 * po/es.po: Updated Spanish translation.
65 2002-07-23 Nick Clifton <nickc@redhat.com>
67 * po/fr.po: Updated French translation.
69 2002-07-20 Alan Modra <amodra@bigpond.net.au>
71 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
72 bomb on /DISCARD/ input section.
73 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
74 * emultempl/mmo.em (mmo_place_orphan): Likewise.
76 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
78 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
81 2002-07-16 Denis Chertykov <denisc@overta.ru>
82 Nick Clifton <nickc@redhat.com>
83 Frank Ch. Eigler <fche@redhat.com>
84 John Healy <jhealy@redhat.com>
86 * configure.tgt: Add support for ip2k-elf.
87 * Makefile.am: Add support for ip2k-elf.
88 * Makefile.in: Regenerate.
89 * emulparams/elf32ip2k.sh: New file.
90 * scripttempl/ip2k.sc: New file
91 * NEWS: Mention support for new port.
93 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
95 * NEWS: Add 'Changes in 2.13'.
97 2002-07-14 H.J. Lu <hjl@gnu.org>
99 * ld.texinfo: Document a .symver takes precedence over a
102 2002-07-12 Alan Modra <amodra@bigpond.net.au>
104 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
105 (COMMONPAGESIZE): Define.
107 2002-07-09 Alan Modra <amodra@bigpond.net.au>
109 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
111 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
113 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
114 powerpc-*-openbsd* and sparc64-*-openbsd*.
115 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
116 * Makefile.in: Regenerate.
117 * emulparams/hppaobsd.sh: New file.
119 2002-07-05 Alan Modra <amodra@bigpond.net.au>
121 * ldlang.c (print_wild_statement): Fix output formatting.
123 2002-07-04 Alan Modra <amodra@bigpond.net.au>
125 * ldlang.c: (strip_excluded_output_sections): New function.
126 (lang_process): Call it.
127 (lang_size_sections_1): Revert 2002-06-10 change.
129 2002-07-03 Alan Modra <amodra@bigpond.net.au>
131 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
133 * Makefile.in: Regenerate.
135 2002-07-02 Alan Modra <amodra@bigpond.net.au>
137 * ldfile.c (ldfile_try_open_bfd): Formatting.
139 * ldmisc.c (demangle): Move so that it doesn't intrude between
140 vfinfo comment and body. Add comment.
142 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
144 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
146 2002-07-01 Alan Modra <amodra@bigpond.net.au>
148 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
149 * ldlang.c (entry_sym): Likewise.
150 (ldlang_undef_chain_list_type): Likewise.
151 (lang_finish): Adjust references to entry_symbol.
152 (lang_add_entry): Likewise.
153 (lang_gc_sections): Use link_info.gc_sym_list.
154 (lang_process): Set link_info.gc_sym_list.
155 * ldlex.l: Include bfdlink.h.
156 * ldmain.c (main): Init link_info.gc_sym_list.
157 * emultempl/aix.em: Adjust references to entry_symbol.
158 * emultempl/armcoff.em: Likewise.
159 * emultempl/armelf.em: Likewise.
160 * emultempl/pe.em: Likewise.
161 * emultempl/ppc64elf.em (ppc_after_open): New function.
162 (LDEMUL_AFTER_OPEN): Define.
163 * emulparams/elf64ppc.sh: KEEP .opd sections.
165 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
167 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
168 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
169 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
170 (EEPROM_START_ADDR): Define.
171 (EEPROM_MEMORY): Define.
172 * emulparams/m68hc12elf.sh: Likewise.
173 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
174 section to put soft registers in .page0.
175 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
177 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
179 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
180 section. Add ${RELOCATING-0}.
182 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
184 * emulparams/shelf.sh (STACK_ADDR): Don't define.
185 (OTHER_SECTIONS): Define.
186 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
187 (OTHER_SECTIONS): Undef.
189 2002-06-26 Alan Modra <amodra@bigpond.net.au>
191 * ldmisc.c (demangle): Restore dots stripped from sym name.
193 2002-06-25 H.J. Lu <hjl@gnu.org>
195 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
196 * Makefile.in: Regenerated.
198 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
200 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
201 the size of attached object files, to allow make the object files
202 available via FTP or HTTP and to mention that the mail will be
203 sent to a mailing list.
205 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
207 * ld/configure.host (romp): Drop support.
209 2002-06-18 Chris Demetriou <cgd@broadcom.com>
211 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
212 section flags for SEC_DATA, rather than for SEC_CODE being unset.
214 2002-06-18 Chris Demetriou <cgd@broadcom.com>
216 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
217 format specifier used to print BFD name.
219 2002-06-18 Dave Brolley <brolley@redhat.com>
221 From Catherine Moore, Michael Meissner, Jim Blandy:
222 * emulparams/elf32frv.sh: New file.
223 * configure.tgt: Support frv-*-*.
224 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
225 (eelf32frv.c): New target.
227 2002-06-17 Tom Rix <trix@redhat.com>
229 * emultempl/elf32.em: gld*_get_script: Check for
230 GENERATE_COMBRELOC_SCRIPT.
231 * scripttempl/elfd10v.sc : Fix STACK and INSN.
232 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
234 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
236 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
238 2002-06-12 H.J. Lu <hjl@gnu.org>
240 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
241 false if xvec doesn't match.
243 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
245 * ldlang.c (lang_size_sections_1): Skip removed output sections.
247 2002-06-08 Alan Modra <amodra@bigpond.net.au>
249 * ldexp.c: Replace CONST with const.
250 * ldfile.c: Likewise.
251 * ldfile.h: Likewise.
254 * pe-dll.h: Likewise.
256 2002-06-07 Alan Modra <amodra@bigpond.net.au>
258 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
260 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
262 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
263 to -1 == implicit enable.
264 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
265 initialize link_info.pei386_auto_import to -1 == implicit
267 (gld_${EMULATION_NAME}_parse_args): When processing
268 --enable-auto-import and --disable-auto-import options, use
269 '1' and '0' instead of 'true' and 'false'.
270 (pe_find_data_imports): Only issue message about auto-import
271 when the feature is implicitly enabled. Downgrade message to
272 informational instead of warning.
274 2002-06-07 Alan Modra <amodra@bigpond.net.au>
276 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
278 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
280 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
281 HOSTING_CRT0 and HOSTING_LIBS.
283 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
285 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
287 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
289 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
290 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
292 2002-06-05 Alan Modra <amodra@bigpond.net.au>
294 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
295 SEC_EXCLUDE sections when doing a relocatable link.
297 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
299 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
300 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
301 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
302 (eshlelf64_nbsd.c): New rules.
303 * Makefile.in: Regenerate.
304 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
305 (sh64-*-netbsd*): New targets.
306 * emulparams/shelf32_nbsd.sh: New file.
307 * emulparams/shelf64_nbsd.sh: New file.
308 * emulparams/shlelf32_nbsd.sh: New file.
309 * emulparams/shlelf64_nbsd.sh: New file.
311 2002-06-04 Alan Modra <amodra@bigpond.net.au>
313 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
315 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
317 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
318 C++ constructors/destructors, loosely based on the m68hc11 port.
320 2002-05-31 Alan Modra <amodra@bigpond.net.au>
322 * Makefile.in: Regenerate.
323 * aclocal.m4: Regenerate.
324 * config.in: Regenerate.
325 * configure: Regenerate.
327 2002-05-31 Graeme Peterson <gp@qnx.com>
329 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
330 (ei386nto.c): Add rule.
331 * Makefile.in: Regenerate.
332 * configure.tgt: Add i[3456]86-*-nto-qnx*.
333 * emulparams/i386nto.sh: New file.
335 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
337 * NEWS: Add entry for VAX ELF support.
339 2002-05-29 Matt Thomas <matt@3am-software.com>
340 Jason Thorpe <thorpej@wasabisystems.com>
342 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
344 (evaxnbsd.c): New rules.
345 * Makefile.in: Regenerate.
346 * configure.tgt (vax-*-netbsdelf*)
348 (vax-*-netbsd*): New targets.
349 * emulparams/elf32vax.sh: New file.
350 * emulparams/vaxnbsd.sh: New file.
352 2002-05-29 Adam Nemet <anemet@lnxw.com>
354 * emultempl/armelf.em (arm_elf_after_open): Don't determine
355 bfd_for_interwork, instead add glue sections to each input bfd.
356 (bfd_for_interwork): New global.
357 (arm_elf_set_bfd_for_interworking): New function.
358 (arm_elf_before_allocation): Use it.
360 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
362 * Makefile.am: Add DLX make target.
363 * configure.tgt: Add DLX configuration.
364 * Makefile.in: Regenerate.
365 * emulparams/elf32_dlx.sh: New file
366 * scripttempl/dlx.sc: New file
368 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
370 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
371 * Makefile.in: Regenerate.
372 * emulparams/elf_chaos.sh: Use elf_chaos script.
373 * scripttempl/elf_chaos.sc: New file.
375 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
377 * ldlang.c (lang_size_sections_1): Move check for conflicting load
378 addresses and regions from here...
379 (lang_get_regions): ...to this new function.
380 (lang_leave_output_section_statement): Use lang_get_regions.
381 (lang_leave_overlay): Likewise.
382 * mri.c (mri_draw_tree): Pass null as last argument to
383 lang_leave_output_section_statement.
384 * emultempl/elf32.em (gld*_place_orphan): Likewise.
385 * emultempl/mmo.em (mmo_place_orphan): Likewise.
386 * emultempl/pe.em (gld*_place_orphan): Likewise.
388 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
390 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
392 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
394 * ldemul.c: Fix formatting.
395 * ldfile.c: Likewise.
396 * pe-dll.c: Likewise.
397 * pe-dll.h: Likewise.
399 2002-05-25 Alan Modra <amodra@bigpond.net.au>
401 * ldlang.c (lang_process): Formatting, grammar.
403 * ldlex.l: Use #include "" instead of <> for local header files.
405 2002-05-24 TAMURA Kent <kent@netbsd.org>
407 * configure.tgt: Add a target for i386-netbsdpe.
409 2002-05-23 Jakub Jelinek <jakub@redhat.com>
411 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
412 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
413 output section if necessary. Handle .tbss.
414 (lang_size_sections): Clear _raw_size for .tbss section
415 (it allocates space in PT_TLS segment only).
416 * ldwrite.c (build_link_order): Build link order for .tbss too.
418 2002-05-23 Alan Modra <amodra@bigpond.net.au>
420 * configure.in: Correct spelling of AC_PREREQ.
422 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
424 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
426 (autofilter_objlist): Add crtbegin.o, crtend.o.
428 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
430 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
431 (longopts): Add new option --exclude-libs.
432 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
433 (gld_${EMULATION_NAME}_parse_args): Use it.
434 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
435 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
437 (pe_dll_add_excludes): Set excludes->type.
438 (auto_export): Add new variable libname and set to archive basename if
439 abfd. Use it when filtering default and user-specified libarary
440 excludes. Let string "ALL" mean all libs when filtering user-specified
442 * ld.texinfo: Document --exclude-libs.
444 2002-05-22 Alan Modra <amodra@bigpond.net.au>
446 * ldemul.c (ldemul_new_vers_pattern): New function.
447 * ldemul.h (ldemul_new_vers_pattern): Declare.
448 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
449 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
450 * emultempl/ppc64elf.em (dotsyms): New static var.
451 (gld${EMULATION_NAME}_new_vers_pattern): New function.
452 (LDEMUL_NEW_VERS_PATTERN): Define.
453 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
454 (PARSE_AND_LIST_LONGOPTS): Likewise.
455 (PARSE_AND_LIST_ARGS_CASES): Handle them.
456 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
458 * emultempl/armcoff.em: Likewise.
459 * emultempl/armelf_oabi.em: Likewise.
460 * emultempl/beos.em: Likewise.
461 * emultempl/elf32.em: Likewise.
462 * emultempl/generic.em: Likewise.
463 * emultempl/gld960.em: Likewise.
464 * emultempl/gld960c.em: Likewise.
465 * emultempl/linux.em: Likewise.
466 * emultempl/lnk960.em: Likewise.
467 * emultempl/m68kcoff.em: Likewise.
468 * emultempl/mipsecoff.em: Likewise.
469 * emultempl/pe.em: Likewise.
470 * emultempl/sunos.em: Likewise.
471 * emultempl/ticoff.em: Likewise.
472 * emultempl/vanilla.em: Likewise.
474 2002-05-22 Alan Modra <amodra@bigpond.net.au>
476 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
477 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
478 (LIB_SEARCH_DIRS): No need to use "tr".
479 (COMPILE_IN): Only set for native targets.
480 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
481 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
482 * configure.tgt (powerpc*): Set tdir_*.
483 (powerpcle*): Correct targ_extra_emuls.
484 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
485 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
487 2002-05-22 Alan Modra <amodra@bigpond.net.au>
489 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
490 calling lang_add_entry.
492 2002-05-21 H.J. Lu (hjl@gnu.org)
494 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
496 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
498 * ld.texinfo: Updated for --allow-multiple-definition and
501 * ldmain.c (main): Initialize the allow_multiple_definition
504 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
505 (ld_options): Add --allow-multiple-definition.
506 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
508 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
510 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
511 (earmelfb_nbsd.c): New rule.
512 * Makefile.in: Regenerate.
513 * configure.tgt (armeb-*-netbsdelf*): New target.
514 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
515 (arm-*-netbsd*): Likewise.
516 * emulparams/armelfb_nbsd.sh: New file.
518 2002-05-18 Tom Rix <trix@redhat.com>
520 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
523 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
525 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
526 * Makefile.in: Regenerate.
527 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
529 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
531 * emulparams/avr1.sh: New file.
532 * emulparams/avr2.sh: New file.
533 * emulparams/avr3.sh: New file.
534 * emulparams/avr4.sh: New file.
535 * emulparams/avr5.sh: New file.
536 * scripttempl/avr.sc: New file.
538 2002-05-15 Alan Modra <amodra@bigpond.net.au>
540 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
541 (lang_place_orphans): Abort if just_syms_flag.
543 2002-05-10 Tom Rix <trix@redhat.com>
545 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
546 architecture and machine information in the output bfd.
547 (gld*_before_parse): Remove old arch and machine code.
548 (choose_target): Rename to gld*_choose_target.
549 (rtld): Change type to int.
550 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
551 objects in XCOFF archives.
552 * ldfile.h: Update copyright date.
554 2002-05-10 Jakub Jelinek <jakub@redhat.com>
556 * ldmain.c (main): Enable -z combreloc by default.
558 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
560 * Makefile.am: Honour DESTDIR.
561 * Makefile.in: Regenerate.
563 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
565 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
566 (lang_enter_overlay): Remove the last two parameters.
567 (lang_leave_overlay): Take them here instead.
568 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
569 (section): Pass LMA and crossref flag to lang_leave_overlay rather
570 than lang_enter_overlay.
571 * ldlang.c (lang_memory_region_lookup): Return null for null names.
572 (lang_output_section_statement_lookup): Initialize update_dot_tree.
573 (lang_size_sections_1): Evaluate it.
574 (lang_leave_output_section_statement): Rework LMA lookup.
575 (overlay_lma, overlay_nocrossrefs): Remove.
576 (lang_enter_overlay): Remove LMA and crossref arguments.
577 (lang_enter_overlay_section): Don't set the LMA here.
578 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
579 assignment to the last section's update_dot_tree. Unconditionally
580 use the load and run-time regions specified in the OVERLAY statement.
581 Likewise the first section's LMA. Only set the other sections' LMAs
582 when no load region is given.
584 2002-05-06 Nick Clifton <nickc@redhat.com>
586 * po/sv.po: New translation.
588 2002-05-04 Alan Modra <amodra@bigpond.net.au>
590 * emultempl/hppaelf.em (build_section_lists): New function.
591 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
592 and build_section_lists.
594 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
596 * ld.h: Fix formatting.
598 * ldfile.c: Likewise.
599 * ldlang.c: Likewise.
600 * ldmain.c: Likewise.
601 * lexsup.c: Likewise.
602 * pe-dll.c: Likewise.
604 2002-05-02 Alan Modra <amodra@bigpond.net.au>
606 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
607 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
608 (build_section_lists): Do output_section tests here.
610 2002-04-30 Tom Rix <trix@redhat.com>
612 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
614 2002-05-01 Alan Modra <amodra@bigpond.net.au>
616 Long branch stubs, multiple stub sections.
617 * emultempl/ppc64elf.em: Include ldctor.h.
618 (stub_file): New var.
619 (group_size): New var.
620 (ppc_create_output_section_statements): New function.
621 (struct hook_stub_info): New.
622 (hook_in_stub): New function.
623 (ppc_add_stub_section): New function.
624 (ppc_layout_sections_again): New function.
625 (build_section_lists): New function.
626 (gld${EMULATION_NAME}_finish): Rewrite.
627 (real_func): New var.
628 (ppc_for_each_input_file_wrapper): New function.
629 (ppc_lang_for_each_input_file): New function.
630 (lang_for_each_input_file): Define.
631 (PARSE_AND_LIST_PROLOGUE): Define.
632 (PARSE_AND_LIST_LONGOPTS): Define.
633 (PARSE_AND_LIST_OPTIONS): Define.
634 (PARSE_AND_LIST_ARGS_CASES): Define.
635 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
637 2002-04-30 Tom Rix <trix@redhat.com>
639 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
640 -blibpath, -bnolibpath support.
642 2002-04-30 Mark Mitchell <mark@codesourcery.com>
644 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
645 (eelf32ppcwindiss.c): New target.
646 * Makefile.in: Regenerated.
647 * configure.tgt: Add support for powerpc-*-windiss.
648 * emulparams/elf32ppcwindiss.sh: New file.
650 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
652 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
653 * ldexp.c (exp_print_token): Add "infix_p" argument.
654 (exp_print_tree): Update accordingly.
656 2002-04-28 Alan Modra <amodra@bigpond.net.au>
658 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
659 * Makefile.in: Regenerate.
660 * mpw-elfmips.c: Delete.
661 * mpw-eppcmac.c: Delete.
663 * mpw-idtmips.c: Delete.
665 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
667 * emulparams/shelf32.sh (MACHINE): Now sh5.
669 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
671 * ldgram.y: Fix syntax warning.
673 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
675 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
676 to prevent "-n" from being taken as an abbreviation for
677 "--no-pipeline-knowledge".
679 2002-04-08 Alan Modra <amodra@bigpond.net.au>
681 * ldlang.c (lang_size_sections_1): Don't complain about
682 SEC_NEVER_LOAD sections having no memory region specified.
684 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
686 2002-04-07 matthew green <mrg@redhat.com>
688 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
690 2002-04-04 Alan Modra <amodra@bigpond.net.au>
692 * dep-in.sed: Cope with absolute paths.
693 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
695 * Makefile.in: Regenerate.
697 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
699 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
701 2002-04-03 Jakub Jelinek <jakub@redhat.com>
703 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
704 is smaller than maximum, round dot up to common page boundary.
706 2002-03-28 Alan Modra <amodra@bigpond.net.au>
708 * configure.host: Set up for generic hosts first, then tweak as
709 necessary in more specific targets.
710 (HOSTING_LIBS): Include libgcc_eh.a if found.
712 2002-03-23 Andreas Jaeger <aj@suse.de>
714 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
716 2002-03-21 Alan Modra <amodra@bigpond.net.au>
718 * Makefile.am: Run "make dep-am".
719 * Makefile.in: Regenerate.
721 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
723 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
725 2002-03-20 Alan Modra <amodra@bigpond.net.au>
727 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
728 add the symbol to the linker hash table immediately.
729 (lang_place_undefineds): Split symbol creation out..
730 (insert_undefined): ..to here.
732 2002-03-18 David O'Brien <obrien@FreeBSD.org>
734 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
735 the contents of the buffer returned from basename function will are
736 getting overwritten while still being used.
738 2002-03-18 Jan Hubicka <jh@suse.cz>
739 Andreas Jaeger <aj@suse.de>
740 Andreas Schwab <schwab@suse.de>
742 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
743 * elf_x86_64.sh (ARCH): Set to i386:x86-64
744 set libraries to default to lib64 paths.
746 2002-03-18 Tom Rix <trix@redhat.com>
748 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
749 * configure.tgt : Same.
750 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
751 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
752 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
753 emulation parameters for better -b32, -b64 support.
754 * emulparms/aixrs6.sh : Same.
755 * emulparms/ppcmacos.sh : Same.
756 * emultempl/aix.em (choose_target) : Use new emulation parameters
757 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
758 * Makefile.in : Regenerate.
760 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
762 * po/fr.po: Updated version.
764 2002-03-18 Alan Modra <amodra@bigpond.net.au>
766 * ldmain.c (main): Move .text readonly flag fudges from here..
767 * ldlang.c (lang_process): ..to here.
769 2002-03-14 Alan Modra <amodra@bigpond.net.au>
771 * ldlang.c (lang_check): Remove the word size check added in last
772 change. Treat emitrelocations case as for relocatable links.
774 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
776 * po/fr.po: Updated version.
778 2002-03-13 Alan Modra <amodra@bigpond.net.au>
780 * ldlang.c (lang_check): Do relocatable link checks first, so that
781 warn_mismatch can't override. Check compatible and word size too.
783 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
785 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
787 2002-03-05 Jakub Jelinek <jakub@redhat.com>
789 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
792 2002-03-04 H.J. Lu <hjl@gnu.org>
794 * scripttempl/elf.sc: Put .preinit_array, .init_array and
795 .fini_array in the data segment.
797 2002-03-04 Alan Modra <amodra@bigpond.net.au>
799 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
801 2002-03-01 David Mosberger <davidm@hpl.hp.com>
803 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
804 .init_array, and .fini_array.
806 2002-02-20 Andreas Schwab <schwab@suse.de>
808 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
809 .IA64_unwind* in a relocatable link.
811 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
813 * NEWS: Mark 2.12 branch.
815 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
817 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
818 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
820 2002-02-18 Tom Rix <trix@redhat.com>
822 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
823 (gld*_before_allocation): Same.
824 (gld*_create_output_section_statements): Generate
825 __rtinit if run time linking. Add librtl.a to the link.
826 (gld*_read_file): Clean.
828 2002-02-18 Alan Modra <amodra@bigpond.net.au>
830 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
832 2002-02-18 David O'Brien <obrien@FreeBSD.org>
834 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
835 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
836 and eelf64alpha_fbsd.
837 * Makefile.in: Regenerate.
838 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
839 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
840 use a FreeBSD-specific emulation rather than the psABI one.
841 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
842 for all FreeBSD ELF systems.
843 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
845 * emulparams/elf32ppc_fbsd.sh: Likewise.
846 * emulparams/elf64_ia64_fbsd.sh: Likewise.
847 * emulparams/elf64_sparc_fbsd.sh: Likewise.
848 * emulparams/elf64alpha_fbsd.sh: Likewise.
849 * emulparams/elf_i386_fbsd.sh: Likewise.
850 * emulparams/elf_x86_64_fbsd.sh: Likewise.
852 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
854 * po/tr.po: Updated version.
856 2002-02-18 Alan Modra <amodra@bigpond.net.au>
858 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
861 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
863 * emultempl/mmo.em (mmo_after_open): Don't call
864 _bfd_mmix_check_all_relocs when producing ELF output.
866 2002-02-15 Richard Henderson <rth@redhat.com>
868 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
869 definition. Emit a unop+nop pair.
871 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
873 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
874 for presence of .MMIX.reg_contents.linker_allocated before early
877 * NEWS: Mention support for MMIX.
879 2002-02-15 Alan Modra <amodra@bigpond.net.au>
881 Support arbitrary length fill patterns.
882 * ld.texinfo (Output Section Fill): Describe fill expressions.
883 (FILL): Refer to the above.
884 * ldexp.h (etree_value_type): Add "str" field.
885 (union etree_union): Add "str" to "value" struct.
886 (exp_bigintop): Declare.
887 (exp_get_fill): Declare.
888 * ldexp.c: Include "safe-ctype.h".
889 (exp_intop): Set value.str to NULL.
890 (exp_bigintop): New function.
891 (new_rel): Pass in "str", and set new.str from it.
892 (new_rel_from_section): Set new.str to NULL.
893 (fold_name): Adjust calls to new_rel.
894 (exp_fold_tree): Likewise.
895 (exp_get_fill): New function.
896 * ldgram.y (struct big_int bigint, fill_type *fill): New.
897 (INT): Returns a "bigint". Adjust all code handling INTs.
898 (fill_opt): Returns a "fill".
899 (fill_exp): Split out of fill_opt, use for FILL.
900 * ldlang.h (struct _fill_type): New.
901 (fill_type): Move typedef to ldexp.h.
902 (lang_output_section_statement_type): "fill" is now a pointer.
903 (lang_fill_statement_type): Likewise.
904 (lang_padding_statement_type): Likewise.
905 (lang_add_fill): Now takes a "fill_type *" param.
906 (lang_leave_output_section_statement): Likewise.
907 (lang_do_assignments): Likewise.
908 (lang_size_sections): Likewise.
909 (lang_leave_overlay_section): Likewise.
910 (lang_leave_overlay): Likewise.
911 * ldlang.c: Include ldgram.h after ldexp.h.
912 (lang_output_section_statement_lookup): Adjust for fill_type change.
913 (print_fill_statement): Likewise.
914 (print_padding_statement): Likewise.
915 (insert_pad): Now takes a "fill_type *" arg.
916 (size_input_section): Likewise.
917 (lang_size_sections_1): Likewise.
918 (lang_size_sections): Likewise.
919 (lang_do_assignments): Likewise.
920 (lang_add_fill): Likewise.
921 (lang_leave_output_section_statement): Likewise.
922 (lang_leave_overlay_section): Likewise.
923 (lang_leave_overlay): Likewise.
924 Adjust all callers of the above function.
925 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
926 starting with "0X" as well as "0x". Return bigint.str for hex
927 numbers starting with "0x" or "0X", zero bigint.str otherwise.
928 Always use base 16 for numbers starting with "$".
929 * ldmain.c: Include ldgram.h after ldexp.h.
930 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
931 of bfd_fill_link_order.
932 * pe-dll.c: Adjust lang_do_assignments calls.
933 * emultempl/elf32.em: Likewise.
934 * emultempl/hppaelf.em: Likewise.
935 * emultempl/ppc64elf.em: Likewise.
936 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
937 lang_add_assignment call.
938 * emultempl/pe.em: Likewise.
940 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
942 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
943 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
944 the pattern in question is not a regexp.
945 * ldlang.c: Likewise.
946 * ldlang.h: Likewise.
947 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
949 2002-02-12 Jakub Jelinek <jakub@redhat.com>
951 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
952 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
953 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
954 * ldexp.c (exp_data_seg): New variable.
955 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
956 (fold_binary): Handle DATA_SEGMENT_ALIGN.
957 (exp_fold_tree): Handle DATA_SEGMENT_END.
958 Pass allocation_done when recursing instead of hardcoding
959 lang_allocating_phase_enum.
960 * ldexp.h (exp_data_seg): New.
961 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
962 (lang_size_sections): New.
963 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
964 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
965 if COMMONPAGESIZE is defined.
966 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
967 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
968 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
969 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
970 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
973 2002-02-11 Alan Modra <amodra@bigpond.net.au>
975 * Makefile.in: Regenerate.
977 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
979 * lexsup.c: Remove strtoul declaration.
981 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
983 * ldmain.c: Add prototype for main ().
984 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
985 * emultempl/lnk960.em (lnk960_choose_target): Function should
988 2002-02-10 Alan Modra <amodra@bigpond.net.au>
990 * ldlang.c (entry_section): New initialised variable.
991 (lang_finish): Use it.
992 * ldlang.h (entry_section): Declare.
993 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
994 entry_section to ".opd".
996 2002-02-09 Chris Demetriou <cgd@broadcom.com>
998 * ld.texinfo (Options): Add back in -nostdlib documentation,
999 which had been inadvertently removed.
1001 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1003 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1004 register section vma to a sane value after emitting error. Make
1005 fatal conditions cause program exit when emitting message.
1007 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1009 * configure.tgt: Add or32-*-rtems target.
1011 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1013 Contribute sh64-elf.
1014 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1015 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1016 in OTHER_RELOCATABLE_SECTIONS.
1017 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1018 * emulparams/shelf32.sh (STACK_ADDR): Define.
1019 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1020 (OTHER_SECTIONS): this. Removed stack settings.
1021 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1022 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1023 2001-03-12 DJ Delorie <dj@redhat.com>
1024 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1025 relaxing if any shmedia or mixed sections are found.
1026 2001-03-07 DJ Delorie <dj@redhat.com>
1027 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1028 einfo. Gracefully decline to output to non-elf formats.
1029 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1030 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1031 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1032 * emulparams/shelf32.sh: Ditto.
1033 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1034 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1036 2001-01-10 Ben Elliston <bje@redhat.com>
1037 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1038 non-portable shell constructs. From Hans-Peter Nilsson.
1039 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1040 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1041 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1042 dependencies to the shell script include chain.
1043 * Makefile.in: Regenerate.
1044 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1045 * emultempl/sh64elf.em: Update and tweak comments.
1046 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1047 make a .cranges section SEC_IN_MEMORY.
1048 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1049 * emultempl/sh64elf.em
1050 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1051 .cranges section found to be necessary; continue and set stored
1052 section contents flags for sections with non-mixed contents.
1053 Use a struct sh64_section_data container and sh64_elf_section_data
1054 to store contents-type flags.
1055 Remove unused update of "isec".
1056 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1057 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1058 access contents-type flags. Assert that the associated container
1059 is initialized. Use that container, not elf_gp_size, to hold size
1060 of linker-generated cranges contents.
1061 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1062 * emultempl/sh64elf.em
1063 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1064 there's already a .cranges section. When section flag difference
1065 is found, don't NULL-check cranges a second time. Tweak comments.
1066 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1067 merging, not max size, as size of ld-generated .cranges contents.
1068 Don't set ELF section flags in output section. When checking for
1069 needed .cranges descriptors, don't use a variable; compare
1070 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1072 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1073 * emultempl/sh64elf.em: New file.
1074 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1075 * Makefile.in: Regenerate.
1076 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1077 (OTHER_RELOCATING_SECTIONS): Ditto.
1078 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1079 * emulparams/shlelf32.sh: Stub out all settings except
1080 OUTPUT_FORMAT. Source shelf32.sh.
1081 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1082 OTHER_RELOCATING_SECTIONS.
1083 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1084 * emulparams/shlelf64.sh: Stub out all settings except
1085 OUTPUT_FORMAT. Source shelf64.sh.
1086 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1087 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1089 (DATA_START_SYMBOLS): Define, provide ___data.
1090 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1091 for consecutive .data section.
1092 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1093 section after .data section.
1094 * emulparams/shlelf64.sh: Ditto.
1095 * emulparams/shelf32.sh: Ditto.
1096 (ALIGNMENT): Define to 8.
1097 * emulparams/shelf32.sh: Ditto.
1098 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1099 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1100 built-in linker scripts.
1101 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1102 * emulparams/shlelf64.sh: New.
1103 * emulparams/shelf64.sh: New.
1104 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1106 * Makefile.am: Add support for shlelf64 and shelf64.
1107 * Makefile.in: Regenerate.
1108 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1109 * configure.tgt (sh64-*-elf*): Add shelf as default.
1110 Add shlelf to targ_extra_emuls.
1111 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1112 * emulparams/shelf32.sh: New file.
1113 * emulparams/shlelf32.sh: New file.
1114 * Makefile.am: Add support for shlelf32 and shelf32.
1115 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1116 * Makefile.in: Regenerate.
1118 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1120 * ldlang.c (lang_reset_memory_regions): Rename from
1121 reset_memory_regions. Change all callers. Make public.
1122 * ldlang.h (lang_reset_memory_regions): Prototype.
1123 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1124 lang_reset_memory_regions before lang_size_sections.
1125 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1126 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1128 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1130 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1131 arithmetic when checking for too many global registers.
1133 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1135 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1136 (ehppanbsd.c): New rule.
1137 * Makefile.in: Regenerate.
1138 * configure.tgt (hppa*-*-netbsd*): New target.
1139 * emulparams/hppalinux.sh: Add comment to check other files
1140 that source this file it is modified, and list which
1142 * emulparams/hppanbsd.sh: New file.
1144 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1146 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1149 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1151 Support on-demand global register allocation from
1152 R_MMIX_BASE_PLUS_OFFSET relocs.
1153 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1154 mmix_set_reg_section_vma. Call
1155 _bfd_mmix_finalize_linker_allocated_gregs.
1156 (mmix_before_allocation): New function.
1157 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1158 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1159 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1160 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1161 before .MMIX.reg_contents.
1162 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1163 (mmo_after_open): New function.
1164 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1165 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1166 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1168 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1170 * emulparams/or32.sh: New file.
1171 * emulparams/or32elf.sh: New file.
1172 * scripttempl/or32.sc: New file.
1173 * configure.tgt : Add support for or32.
1174 * configure: Regenerate
1175 * Makefile.am: Add support for or32.
1176 * Makefile.in: Regenerate.
1177 * NEWS: Mention support for or32.
1178 * po/ld.pot: Regenerate.
1180 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1181 Mitch Lichtenberg <mpl@broadcom.com>
1183 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1184 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1185 reloc creation (ld --embedded-relocs).
1187 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1189 * configure: Regenerated.
1191 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1193 * Makefile.am (install): Depend on install-info.
1194 * Makefile.in: Regenerate.
1196 2002-01-26 Christian Rose <menthos@menthos.com>
1198 * ldmain.c (main): Use full sentences to ease translation.
1200 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1202 * po/fr.po: Updated version.
1204 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1206 * po/es.po: Updated version.
1208 2002-01-25 Andreas Jaeger <aj@suse.de>
1210 * ldlex.l (yy_input): Correct error check.
1212 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1214 * ldmisc.c (demangle): Put back dots when string not demangled.
1216 2002-01-22 Richard Henderson <rth@redhat.com>
1218 * emulparams/elf64alpha.sh (NOP): Use unop.
1220 2002-01-21 Andreas Jaeger <aj@suse.de>
1222 * ldlex.l: Use fread instead of read.
1224 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1226 * configure.tgt (ia64-*-netbsd*): New target.
1228 2002-01-21 H.J. Lu <hjl@gnu.org>
1230 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1232 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1234 2002-01-18 Andreas Jaeger <aj@suse.de>
1236 * ldver.c (ldversion): Update year.
1238 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1240 * po/ld.pot: Regenerate.
1242 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1244 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1245 * Makefile.in: Regenerate.
1246 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1247 * emultempl/ppc64elf.em: New file.
1249 2002-01-15 DJ Delorie <dj@redhat.com>
1251 * scripttempl/pe.sc: Add support for constructor priorities.
1253 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1255 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1256 * emulparams/avr23xx.sh: Likewise.
1257 * emulparams/avr4433.sh: Likewise.
1258 * emulparams/avr44x4.sh: Likewise.
1259 * emulparams/avr85xx.sh: Likewise.
1260 * emulparams/avrmega103.sh: Likewise.
1261 * emulparams/avrmega161.sh: Likewise.
1262 * emulparams/avrmega603.sh: Likewise.
1263 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1265 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1267 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1268 archive is excluded.
1270 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1272 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1273 (eshelf_nbsd.c): New rule.
1274 (eshlelf_nbsd.c): New rule.
1275 * Makefile.in: Regenerate.
1276 * configure.tgt (sh*le-*-netbsdelf*): New target.
1277 (sh*-*-netbsdelf*): New target.
1278 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1279 * ld/emulparams/shelf_nbsd.sh: New emulation.
1280 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1282 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1284 * po/es.po: New file: Spanish translation.
1285 * configure.in (ALL_LINGUAS): Add es.
1286 * configure: Regenerate.
1288 2002-01-06 John Marshall <jmarshall@acm.org>
1290 * ld.texinfo: Note that --emit-relocs is currently only
1291 implemented for ELF.
1293 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1295 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1296 of bfd_section_list_remove and bfd_section_list_insert macros.
1297 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1298 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1300 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1302 * configure.tgt (x86_64-*-netbsd*): New target.
1304 2001-12-21 Tom Rix <trix@redhat.com>
1306 (gld*_create_output_section_statements): New function.
1307 For -binitfini support.
1308 * emultempl/aix.em (gld*_before_parse): Fix comment.
1309 * emultempl/aix.em (gld*_parse_args): Fix comment.
1311 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1313 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1315 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1317 * configure.tgt (arm-*-netbsdelf*): Add target.
1318 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1319 * emulparams/armelf_nbsd.sh: Added.
1320 * Makefile.am: Add rules for earmelf_nbsd.
1321 * Makefile.in: Regenerate.
1323 2001-12-19 Andreas Jaeger <aj@suse.de>,
1324 Susanne Oberhauser <froh@suse.de>
1326 * configure.host: Add rules for x86_64-*linux-gnu. Change
1327 s390x-linux entry to use gcc to report configuration, replace gcc
1328 with $CC in s390-linux
1330 2001-12-19 Andreas Jaeger <aj@suse.de>
1332 * ld.texinfo (VERSION): Fix markup.
1334 2001-12-18 matthew green <mrg@eterna.com.au>
1336 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1337 (m68kelfnbsd.c): New rule.
1338 * Makefile.in: Regenerate.
1339 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1340 (m68*-*-netbsd*4k*): .. this.
1341 (m68*-*-netbsdelf*): New target.
1342 (m68*-*-netbsd*): Also include ELF support.
1343 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1344 * emulparams/m68kelfnbsd.sh: New emulation.
1346 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1348 * ldgram.y (vers_node): Support anonymous version tags.
1349 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1350 tag is not defined together with non-anonymous versions.
1351 * ld.texinfo: Document it.
1353 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1355 * po/tr.po: New file: Turkish translation.
1356 * configure.in (ALL_LINGUAS): Add tr.
1357 * configure: Regenerate.
1359 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1361 * Makefile.am: Add rules for eelf64alpha_nbsd.
1362 * Makefile.in: Regenerate.
1363 * configure.tgt (alpha*-*-netbsd*): Set
1364 targ_emul to elf64alpha_nbsd.
1365 * emulparams/elf64alpha_nbsd.sh: Added.
1367 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1369 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1370 section_tail when fiddling with section list.
1371 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1372 broken into separate strings to make translation easier.
1373 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1374 fiddling with section list.
1375 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1377 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1379 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1381 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1383 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1385 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1387 * emultempl/elf32.em (finish): Supply output_bfd
1388 to bfd_elf*_discard_info.
1389 (OPTION_EH_FRAME_HDR): Define.
1390 (longopts): Add --eh-frame-hdr.
1391 (parse_args): Handle it.
1392 (list_options): Add --eh-frame-hdr to help.
1393 * emultempl/hppaelf.em (finish): Supply output_bfd
1394 to bfd_elf*_discard_info.
1395 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1397 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1399 * lexsup.c (parse_args): Don't pass shortopts to second call to
1400 getopt functions. Restore optind rather than decrementing before
1401 second call. Remove errind as it now duplicates last_optind.
1403 2001-12-11 Christopher Faylor <cgf@redhat.com>
1405 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1407 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1408 Richard Henderson <rth@redhat.com>
1410 * Makefile.am: Add support for xstormy16.
1411 * configure.tgt: Add support for xstormy16.
1412 * Makefile.in: Regenerate.
1413 * emulparams/elf32xstormy16.sh: New file.
1414 * scripttempl/xstormy16.sc: New file.
1416 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1418 * Makefile.in (LIB_PATH): Make configurable.
1419 (GENSCRIPTS): Set LIB_PATH in environment.
1420 * configure.in: Substitute LIB_PATH.
1421 * configure: Regenerate.
1422 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1423 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1425 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1427 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1428 describing the -N option so that it is easier to translate into
1431 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1433 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1434 statements describing a single option with a single, newline
1435 escaped fprintf. This allows better translation into other
1438 * ldmain.c (add_archive_element): Combine multiple strings
1439 into a single string to permit better translation into other
1442 2001-12-05 Tom Rix <trix@redhat.com>
1444 * Makefile.am: Remove eaixppc64.
1445 * Makefile.in: Regenerate.
1447 2001-12-04 Tom Rix <trix@redhat.com>
1449 * emultempl/aix.em (choose_target): Change default target to
1450 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1452 (gld*_read_file): Fix typo.
1453 (change_symbol_mode): Add prototype.
1456 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1457 * emulparams/aixrs6.sh : Same.
1458 * emulparams/ppcmacos.sh : Same.
1459 * emulparams/aixppc64.sh : Delete file.
1460 * emultempl/aix.em : Formatting changes.
1462 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1464 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1465 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1467 (OTHER_END_SYMBOLS): Fix formatting.
1468 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1469 (OTHER_END_SYMBOLS): Fix formatting.
1471 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1473 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1475 2001-12-02 Tom Rix <trix@redhat.com>
1477 * configure.tgt : Remove eaixppc64 emulations.
1478 * Makefile.in : Remove eaixppc64.c
1479 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1480 (ldemul_default_target): Same.
1481 * emultempl/gld960.em (gld960_choose_target): Same.
1482 * emultempl/gld960c.em (gld960_choose_target): Same.
1483 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1484 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1485 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1486 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1487 * emultempl/aix.em (choose_target): New function. Handle emulation of
1490 2001-11-27 H.J. Lu <hjl@gnu.org>
1492 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1493 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1494 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1495 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1496 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1497 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1498 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1499 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1501 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1504 (REL_SDATA): Likewise.
1505 (REL_SBSS): Likewise.
1506 (REL_SDATA2): Likewise.
1507 (REL_SBSS2): Likewise.
1508 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1511 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1513 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1515 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1517 2001-11-22 H.J. Lu <hjl@gnu.org>
1519 * Makefile.in: Regenerated with automake based on automake
1520 1.4-8 in RedHat 7.1.
1522 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1524 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1525 (config.status): Delete rule.
1526 Add extra dependencies to cover sourced emulparams files.
1527 * Makefile.in: Regenerate.
1529 * scripttempl/elf.sc: Order <section>, <section>.* and
1530 corresponding linkonce sections as seen in input files.
1531 Formatting fixes. Zero vma of all sections if not relocating.
1532 (STACK): Define and insert if STACK_ADDR defined.
1533 (OTHER_RELOCATING_SECTIONS): Delete.
1534 (OTHER_END_SYMBOLS): Define.
1535 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1536 (OTHER_READWRITE_SECTIONS): Likewise.
1537 (OTHER_GOT_SECTIONS): Likewise.
1538 (OTHER_SDATA_SECTIONS): Likewise.
1539 (OTHER_BSS_SECTIONS): Likewise.
1540 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1541 (OTHER_READWRITE_SECTIONS): Likewise.
1542 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1543 (OTHER_READWRITE_SECTIONS): Likewise
1545 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1546 (STACK_ADDR): Define.
1547 * emulparams/armelf_oabi.sh: As for armelf.sh.
1548 * emulparams/elf32mcore.sh: As for armelf.sh.
1549 * emulparams/h8300elf.sh: As for armelf.sh.
1550 * emulparams/mn10200.sh: As for armelf.sh.
1551 * emulparams/shelf.sh: As for armelf.sh.
1553 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1554 (OTHER_END_SYMBOLS): Define.
1555 * emulparams/m32relf.sh: As for elf32fr30.sh.
1556 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1557 * emulparams/h8300self.sh: As for elf32fr30.sh.
1559 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1560 defines with RELOCATING test.
1561 (OTHER_SDATA_SECTIONS): Likewise.
1562 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1563 (OTHER_END_SYMBOLS): ..this.
1564 * emulparams/crislinux.sh: As for criself.sh.
1566 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1568 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1569 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1570 normal and linkonce sections as seen in input files.
1571 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1572 (TEXT_DYNAMIC): Likewise.
1573 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1574 (OTHER_SDATA_SECTIONS): Likewise.
1575 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1576 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1577 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1578 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1579 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1580 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1581 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1582 sections as seen in input files.
1583 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1584 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1586 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1587 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1588 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1589 (OTHER_SECTIONS): Instead, use this..
1590 (OTHER_END_SYMBOLS): ..and this.
1592 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1593 * emulparams/elf32bsmip.sh: Likewise.
1594 * emulparams/elf32btsmip.sh: Likewise.
1595 * emulparams/elf32ebmip.sh: Likewise.
1596 * emulparams/elf32lmip.sh: Likewise.
1597 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1598 * emulparams/elf32lsmip.sh: Likewise.
1599 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1600 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1601 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1602 * emulparams/elf64btsmip.sh: Likewise.
1603 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1604 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1605 * emulparams/elf32ppclinux.sh: Likewise.
1606 * emulparams/elf32ppcsim.sh: Likewise.
1607 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1608 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1609 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1610 * emulparams/h8300self.sh: Likewise.
1611 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1612 * emulparams/sh.sh: Comment.
1613 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1614 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1615 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1617 2001-11-21 David Heine <dlheine@tensilica.com>
1618 Alan Modra <amodra@bigpond.net.au>
1620 * ldlang.c (map_input_to_output_sections): Replace "break"
1621 accidentally removed with 2001-08-03 change.
1622 (lang_gc_sections_1): Likewise.
1624 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1626 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1628 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1630 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1631 of false when calling lang_size_sections.
1632 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1634 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1636 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1637 function when LDEMUL_FINISH isn't set to the same name. Don't
1638 call ${LDEMUL_FINISH}.
1639 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1640 * emultempl/armelf.em (arm_elf_finish): Call
1641 gld${EMULATION_NAME}_finish.
1642 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1643 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1644 hppaelf_layout_sections_again if necessary.
1645 (need_laying_out): New var.
1646 (hppaelf_layaout_sections_again): Rename to
1647 hppaelf_layout_sections_again. Clear need_laying_out.
1648 (PARSE_AND_LIST_OPTIONS): Format text.
1650 2001-11-14 H.J. Lu <hjl@gnu.org>
1652 * emultempl/armelf.em (arm_elf_finish): Renamed from
1653 gld${EMULATION_NAME}_finish.
1654 (LDEMUL_FINISH): Set to arm_elf_finish.
1656 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1658 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1659 (struct ld_emulation_xfer_struct): Use it.
1661 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1663 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1664 additional symbols referenced by newer crt0.o files from HP.
1666 2001-11-12 Anthony Green <green@redhat.com>
1668 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1670 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1672 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1673 * Makefile.in: Regenerate.
1675 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1677 * ld.texinfo: Use @command for commands, @option for options.
1678 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1680 * Makefile.in: Rebuild.
1682 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1684 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1685 Add support for targets.
1687 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1689 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1690 * configure: Regernate.
1691 * po/fr.po: New file.
1692 * po/sv.po: New file.
1694 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1696 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1697 as little endian default and to support big endian.
1699 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1701 * ld.texinfo (Options): Document new option, -nostdlib.
1702 * lexsup.c (OPTION_NOSTDLIB): New definition.
1703 (ld_options): Add entry for "nostdlib".
1704 (parse_args): Handle OPTIONS_NOSTDLIB.
1705 * ldfile.c (ldfile_add_library_path): Don't add directories
1706 to the search path if they weren't specified on the command line
1707 and -nostdlib was specified.
1708 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1710 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1712 * lexsup.c (parse_args): Prevent infinite parsing loop when
1713 "-rpath.a" is specified on the command line.
1714 Replace calls to fprintf with calls to einfo.
1716 2001-10-31 John Marshall <jmarshall@acm.org>
1718 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1719 appear only once across all the linker scripts involved in a link
1720 invocation no longer applies. Make the documentation reflect
1723 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1725 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1727 (sh-*-linux*): Added targ_extra_libpath.
1729 2001-10-31 David Heine <dlheine@tensilica.com>
1731 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1732 for padding statements.
1734 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1736 * configure.tgt (mmix-*-*): New target.
1737 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1738 Add dependencies to match.
1739 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1740 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1741 scripttempl/mmo.sc: New files.
1742 * gen-doc.texi: @set MMIX.
1743 * ld.texinfo: Ditto.
1744 [MMIX] Add MMIX node.
1745 * Makefile.in: Regenerate.
1747 2001-10-29 Kazu Hirata <kazu@hxi.com>
1749 * ldlang.c: Fix a comment typo.
1751 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1753 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1754 entries, and match *-*-linux*.
1756 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1758 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1759 with ldlex_script, ldlex_popstate.
1760 (ifile_p1): Likewise.
1761 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1763 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1764 to 1. Don't BEGIN(SCRIPT).
1765 (lex_redirect): Similarly.
1766 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1768 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1770 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1771 __EH_FRAME_END__ and accept eh frames into data section.
1772 Add ctor and dtor sections.
1774 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1776 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1777 (auto-export): Fix indentation.
1779 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1781 * pe-dll.c (autofilter_objectlist): Add startup objects
1783 (auto-export): Constify char * p.
1784 Extract file basename and use strcmp rather than ststr
1787 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1789 * ldmain.c (get_emulation): Improve comment about the handling
1792 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1794 * po/POTFILES.in: Regenerate.
1796 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1798 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1799 -z nocopyreloc and -z nocombreloc usage strings.
1801 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1803 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1806 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1808 * scripttempl/armaout.sc: Place .bss section after end of aligned
1809 data section to match behaviour of aout code in constructrion of
1812 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1814 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1815 startup files for mingw32 dlls to list.
1817 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1819 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1821 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1823 * configure.tgt (targ): Add arm9e-*-elf.
1825 2001-10-05 H.J. Lu <hjl@gnu.org>
1827 * genscripts.sh: Fix a typo in the last change.
1829 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1831 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1832 -z nocombreloc in usage.
1834 2001-10-03 Jim Blandy <jimb@redhat.com>
1836 * genscripts.sh: Include a comment at the top of each generated
1837 script, explaining its purpose.
1839 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1841 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1842 * NEWS: Mention -z nocopyreloc.
1843 * ld.texinfo (Options): Describe nocopyreloc.
1845 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1847 * configure: Regenerate.
1849 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1851 * ldver.h (ld_program_version): Remove declaration.
1852 * lexsup.c (parse_args): Move printing of copyright message..
1853 * ldver.c (ldversion): .. to here.
1854 Use BFD_VERSION_STRING in place of BFD_VERSION.
1855 (ld_program_version): Remove.
1856 * Makefile.am (Makefile): Depend on bfd/configure.in.
1858 * Makefile.in: Regenerate.
1860 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1862 * Makefile.am: Update dependencies with "make dep-am".
1863 * Makefile.in: Regenerate.
1865 2001-09-29 John Reiser <jreiser@BitWagon.com>
1867 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1868 * lexsup.c: Add --no-define-common commandline option.
1869 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1870 * ldlex.l: Likewise.
1871 * ld.h: Add command_line.inhibit_common_definition.
1872 * ldmain.c (main): Initialize.
1873 * ld.texinfo: Document.
1875 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1877 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1879 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1881 * ldmisc.c (USE_STDARG): Remove.
1882 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1887 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1888 declarations. Update copyright.
1890 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1892 * pe-dll.c: Remove obsoleted declaration of
1893 pe_get_data_import_dll_name.
1894 (pe_create_import_fixup): Fix thinko.
1896 * ld.texinfo(enable-auto-import): Clarify the explanation.
1898 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1900 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1901 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1902 DLL_SUPPORT controlled code.
1904 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1906 * emultempl/pe.em(pe_data_import_dll): Make static.
1907 (pe_get_data_import_dll_name): New accessor function.
1908 * pe-dll.c(pe_create_import_fixup): call
1909 pe_get_data_import_dll_name() from pe.em, instead of
1910 directly accessing pe_data_import_dll variable from pe.em.
1912 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1914 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1915 (def_file_add_directive): Use ISSPACE instead of isspace.
1916 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1917 isdigit/isxdigit/isalpha/isalnum.
1918 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1919 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1920 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1921 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1923 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1924 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1926 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1927 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1928 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1929 (ctor_prio): Use ISDIGIT instead of isdigit.
1930 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1931 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1932 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1934 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1935 (stricpy): Use TOLOWER instead of isupper/tolower.
1936 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1937 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1938 (lex_warn_invalid): Use ISPRINT instead of isprint.
1939 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1940 (main): For gettext, also set the LC_CTYPE locate facet.
1941 (add_keepsyms_file): Use ISSPACE instead of isspace.
1942 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1943 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1944 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1945 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1946 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1947 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1948 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1949 (quoteput): Use ISSPACE instead of isspace.
1950 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1953 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1955 * deffilep.y (def_stash_module): Constify "name" param.
1957 * pe-dll.c: Replace CONST with const throughout.
1958 (quick_symbol): Constify "n1", "n2", "n3" params.
1959 (make_singleton_name_thunk): Constify "import" param. Make
1960 "buffer_len" a size_t.
1961 (make_import_fixup_entry): Constify "name", "fixup_name",
1962 "dll_symname" params.
1963 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1964 (pe_get32): Likewise.
1965 (pe_implied_import_dll): Likewise.
1967 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1968 (sort_by_section_name): Likewise.
1970 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1971 (make_import_fixup): Cast printf arg, rel->address to long rather
1973 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1975 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1977 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1978 defines BufferSize. Increase buffer size by one.
1980 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1982 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1984 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1986 * configure.tgt: Add arm-openbsd target.
1988 2001-09-12 H.J. Lu <hjl@gnu.org>
1990 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1992 (ALL_64_EMULATIONS): Here.
1993 * Makefile.in: Regenerated.
1995 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1997 * emultempl/pe.em(make_import_fixup): change signature to
1998 take asection as well as arelec; we need this for proper
1999 error reporting. Only call pe_create_import_fixup() if
2000 there is no attempt to add a constant addend to the reloc;
2001 otherwise, report error condition.
2002 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2003 since final argument is a pointer to make_import_fixup().
2004 Change call to cb() to match make_import_fixup() signature.
2005 (make_import_fixup_mark): make buffer_len unsigned.
2006 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2008 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2010 * ld.texinfo: add verbose documentation for auto-import
2011 direct-addressing workaround, to compliment the terse
2014 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2016 * scripttempl/v850.sc: Add gcc_except_table sections.
2018 2001-09-11 Jeffrey A Law (law@cygnus.com)
2020 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2021 * emulparams/h8300self.sh: Similarly.
2023 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2025 * ld.texinfo (Options, --stack): Correct default value for stack
2028 2001-09-05 Tom Rix <trix@redhat.com>
2030 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2032 2001-09-03 Andreas Jaeger <aj@suse.de>
2034 * emultempl/beos.em: Declare prototypes for comparions functions,
2037 2001-09-02 Andreas Jaeger <aj@suse.de>
2039 * emultempl/aix.em: Add missing prototype.
2040 * emultempl/lnk960.em: Likewise.
2041 * emultempl/vanilla.em: Likewise.
2042 * emultempl/armcoff.em: Likewise.
2043 * emultempl/armelf_oabi.em: Likewise.
2044 * emultempl/beos.em: Likewise.
2045 * emultempl/gld960c.em: Likewise.
2046 * emultempl/gld960.em: Likewise.
2048 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2049 for prototype declaration.
2051 2001-08-31 Eric Christopher <echristo@redhat.com>
2052 Jason Eckhardt <jle@redhat.com>
2054 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2056 2001-08-31 Andreas Jaeger <aj@suse.de>
2058 * emultempl/pe.em: Add missing prototypes.
2059 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2060 pe_find_data_imports.
2061 (pr_sym): Add unused attribute.
2063 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2065 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2066 default from coff to elf.
2068 2001-08-29 Jeff Law <law@redhat.com>
2070 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2072 * emulparams/h8300self.sh: Similarly.
2074 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2076 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2078 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2079 * configure.tgt (h8300-*-elf*): New case.
2080 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2081 * emulparams/h8300self.sh: New file.
2082 * Makefile.in: Regenerated.
2084 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2086 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2089 2001-08-27 Linus Nordberg <linus@swox.com>
2090 Alan Modra <amodra@bigpond.net.au>
2092 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2093 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2095 * Makefile.in: Regenerate.
2096 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2097 entries to correct alphabetical position.
2098 * emulparams/elf64ppc.sh: New.
2099 * emulparams/elf64lppc.sh: New.
2101 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2103 * ldmain.c (main): Declare BSIZE as static.
2105 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2107 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2108 into .rel.dyn resp. .rela.dyn if combreloc.
2109 (get_script): If .x linker script is equal to .xn, only put it
2110 once into the binary.
2111 Add .xc and .xsc scripts.
2112 (parse_args): Handle -z combreloc and -z nocombreloc.
2113 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2114 For .xc and .xsc scripts put all .rel* or .rela* input sections
2115 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2116 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2118 Strip trailing whitespace from script.
2119 Generate .xc and .xsc scripts if requested.
2120 * ldmain.c (main): Initialize link_info.combreloc and
2121 link_info.spare_dynamic_tags.
2122 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2123 (ld_options): Add --spare-dynamic-tags option.
2124 (parse_args): Likewise.
2125 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2126 * ldint.texinfo: Document .xc and .xsc linker scripts.
2127 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2129 2001-08-22 H.J. Lu <hjl@gnu.org>
2131 * emulparams/elf32fr30.sh: Add a newline.
2133 2001-08-21 Andreas Jaeger <aj@suse.de>
2135 * deffilep.y: Add missing prototypes.
2136 * pe-dll.c: Likewise.
2138 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2140 * ldlang.c (insert_pad): Fix typos in last patch.
2142 * ldlang.c: When traversing lang_statement_union_type lists,
2143 consistently use "header.next" rather than "next".
2144 * mpw-eppcmac.c: Likewise.
2145 * emultempl/beos.em: Likewise.
2146 * emultempl/hppaelf.em: Likewise.
2147 * emultempl/pe.em: Likewise.
2148 * ldlang.h (union lang_statement_union): Remove "next" field.
2150 * ldlang.c (insert_pad): Use offsetof macro.
2151 (lang_size_sections): Always neuter padding statements.
2152 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2154 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2155 passed to lang_size_sections.
2156 (pe_exe_fill_sections): Likewise.
2157 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2158 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2160 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2162 * emultempl/aix.em: Formatting fixes.
2164 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2166 * ldlang.c (insert_pad): Make use of an existing pad statement if
2167 available. Move code calculating alignment, adjusting section
2168 alignment power, and adjusting dot to ..
2169 (size_input_section): .. here. Remove unused relax param.
2170 (lang_size_sections): Change boolean `relax' param to boolean *.
2171 Adjust call to size_input_section. Make use of insert_pad to
2172 place pad after the assignment statement. If relaxing, zap
2174 (reset_memory_regions): Reset output_bfd section sizes too.
2175 (relax_again): Move to..
2176 (lang_process): ..here. Adjust call to lang_size_sections, and
2177 remove duplicated code.
2178 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2180 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2182 * ld.texinfo: Document that fill values now use the four least
2184 * emulparams/elf32fr30.sh (NOP): Update.
2185 * emulparams/elf32mcore.sh: Likewise.
2186 * emulparams/elf64_s390.sh: Likewise.
2187 * emulparams/elf_i386.sh: Likewise.
2188 * emulparams/elf_i386_be.sh: Likewise.
2189 * emulparams/elf_i386_chaos.sh: Likewise.
2190 * emulparams/elf_i386_ldso.sh: Likewise.
2191 * emulparams/elf_s390.sh: Likewise.
2192 * emulparams/elf_x86_64.sh: Likewise.
2193 * emulparams/i386moss.sh: Likewise.
2194 * emulparams/i386nw.sh: Likewise.
2195 * emulparams/m68kelf.sh: Likewise.
2196 * scripttempl/elf.sc: Update NOP comment.
2197 * scripttempl/elfi370.sc: Likewise.
2198 * scripttempl/elfm68hc11.sc: Likewise.
2199 * scripttempl/elfm68hc12.sc: Likewise.
2200 * scripttempl/nw.sc: Likewise.
2202 2001-08-15 Tom Rix <trix@redhat.com>
2204 * ldgram.y (saved_script_handle): Initialize to NULL.
2205 * ldmain.c (main): Change check on saved_script_handle.
2207 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2209 * emultempl/elf32.em: Formatting fixes.
2210 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2211 looking at sec->owner.
2212 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2213 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2214 unused code, and reorganize orphan section placement code.
2216 * ldlang.c (wild_doit): Rename to lang_add_section.
2217 * ldlang.h: Here too.
2218 * mpw-elfmips.c: And here.
2219 * emultempl/beos.em: And here.
2220 * emultempl/elf32.em: And here.
2221 * emultempl/hppaelf.em: And here.
2222 * emultempl/pe.em: And here.
2224 2001-08-13 Richard Henderson <rth@redhat.com>
2226 * emultempl/needrelax.em: New file.
2227 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2228 * Makefile.am (eelf64_ia64.c): Depend on it.
2229 * Makefile.in: Rebuild.
2231 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2233 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2234 output_section is set non-NULL.
2236 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2237 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2238 needlessly create an output_section_statement. Treat a correctly
2239 named output_section_statement with NULL bfd_section as compatible.
2241 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2243 * emultempl/generic.em: Support EXTRA_EM_FILE.
2244 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2245 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2246 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2247 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2248 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2249 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2250 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2251 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2252 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2253 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2255 2001-08-12 Richard Henderson <rth@redhat.com>
2257 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2258 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2259 scripttempl/v850.sc: Keep .jcr data.
2261 2001-08-12 H.J. Lu <hjl@gnu.org>
2262 Andrew Haley <aph@cambridge.redhat.com>
2263 Nick Clifton <nickc@redhat.com>
2265 * ldgram.y (had_script): Change name to saved_script_handle.
2266 Change type to file handle.
2267 * ld.h (had_script): Rename and retype.
2268 * ldfile.c (ldfile_open_command_file): Save the file handle
2269 used in saved_script_handle.
2270 * lexsup.c (parse_args): Do not allow -c option to alter
2271 saved_script_handle.
2272 * ldmain.c (main): Print out the linker script used if
2273 --verbose is given. Check saved_script_handle to obtain the
2274 external linker script used, or if NULL, dump the builtin
2276 * ld.texinfo: Document that --verbose now dumps the linker
2277 script used, regardless of whether it was an internal or an
2280 2001-08-10 Andreas Jaeger <aj@suse.de>
2282 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2284 * configure: Regenerate.
2286 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2288 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2290 * scripttempl/elf.sc: Move non-text .dynamic section before
2291 .plt/.got/.sdata* group.
2292 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2293 (OTHER_SDATA_SECTIONS): Add.
2294 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2296 * emulparams/crislinux.sh: Likewise.
2297 * emulparams/elf32b4300.sh: Likewise.
2298 * emulparams/elf32bmip.sh: Likewise.
2299 * emulparams/elf32bmipn32.sh: Likewise.
2300 * emulparams/elf32bsmip.sh: Likewise.
2301 * emulparams/elf32btsmip.sh: Likewise.
2302 * emulparams/elf32ebmip.sh: Likewise.
2303 * emulparams/elf32elmip.sh: Likewise.
2304 * emulparams/elf32l4300.sh: Likewise.
2305 * emulparams/elf32lmip.sh: Likewise.
2306 * emulparams/elf32lsmip.sh: Likewise.
2307 * emulparams/elf32ltsmip.sh: Likewise.
2308 * emulparams/elf64bmip.sh: Likewise.
2309 * emulparams/elf64btsmip.sh: Likewise.
2310 * emulparams/elf64ltsmip.sh: Likewise.
2312 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2314 * genscripts.sh: Source the emulparams script before each output
2315 script is generated so that variables like `RELOCATING' may affect
2316 variables defined in the emulparams script.
2318 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2320 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2323 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2324 ie. iterate over wild_statement.section_list.
2325 (gld${EMULATION_NAME}_place_orphan): Likewise.
2327 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2329 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2330 .fini[0-4] sections used by _exit
2331 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2332 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2333 * scripttempl/elfm68hc11.sc: Likewise.
2335 2001-08-03 H.J. Lu <hjl@gnu.org>
2337 * emultempl/beos.em (init): Add the missing initialization.
2339 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2341 * ld.texinfo (Input Section Basics): Clarify ordering of output
2343 * ldlang.c (callback_t): Add wildcard_list param.
2344 (walk_wild_section): Remove "section" param. Rewrite for
2345 lang_wild_statement_type change. Remove unique_section_p test.
2346 (walk_wild_file): Remove "section" param.
2347 (walk_wild): Remove "section" and "file" params.
2348 (lang_gc_wild): Likewise.
2349 (wild): Likewise. Modify for lang_wild_statement_type change.
2350 (wild_sort): Likewise. Add "sec" param.
2351 (gc_section_callback): Likewise.
2352 (output_section_callback): Likewise. Do unique_section_p test.
2353 (map_input_to_output_sections): Modify call to wild.
2354 (lang_gc_sections_1): Likewise.
2355 (print_wild_statement): Modify for lang_wild_statement_type
2357 (lang_add_wild): Replace filename, filenames_sorted param with
2358 filespec. Replace section_name, sections_sorted,
2359 exclude_filename_list with section_list.
2360 * ldlang.h (lang_add_wild): Here too.
2361 (lang_wild_statement_type): Replace section_name, sections_sorted,
2362 and exclude_filename_list with section_list.
2363 * ldgram.y (current_file): Delete.
2364 (%union): Add wildcard_list.
2365 (file_NAME_list): Set type to wildcard_list. Build a linked list
2366 rather than calling lang_add_wild for each entry.
2367 (input_section_spec_no_keep): Call lang_add_wild here instead.
2368 * ld.h (struct wildcard_list): Declare.
2369 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2371 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2373 * ldmain.c (main): initialize link_info.pei386_auto_import
2374 * pe-dll.c: new tables for auto-export filtering
2375 (auto_export): change API, pass abfd for contextual filtering.
2376 Loop thru tables of excluded symbols instead of comparing
2379 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2381 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2382 static variable current_sec (static struct sec *). Add
2383 forward declaration for add_bfd_to_link.
2384 (process_def_file): Don't export undefined symbols. Do not
2385 export symbols starting with "_imp__". Call auto_export()
2387 (pe_walk_relocs_of_symbol): New function.
2388 (generate_reloc): add optional extra debugging
2389 (pe_dll_generate_def_file): eliminate extraneous initial blank
2391 (make_one): enlarge symtab to make room for __nm__ symbols
2392 (DATA auto-import support).
2393 (make_singleton_name_thunk): New function.
2394 (make_import_fixup_mark): New function.
2395 (make_import_fixup_entry): New function.
2396 (pe_create_import_fixup): New function.
2397 (add_bfd_to_link): Specify that 'name' argument is a CONST
2399 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2400 declare new functions pe_walk_relocs_of_symbol and
2401 pe_create_import_fixup.
2402 * emultempl/pe.em: add new options --enable-auto-import,
2403 --disable-auto-import, and --enable-extra-pe-debug.
2404 (make_import_fixup): New function.
2405 (pe_find_data_imports): New function.
2406 (pr_sym): New function.
2407 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2408 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2411 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2413 * ld.texinfo: add additional documentation for
2414 --export-all-symbols. Document --out-implib,
2415 --enable-auto-image-base, --disable-auto-image-base,
2416 --dll-search-prefix, --enable-auto-import, and
2417 --disable-auto-import.
2418 * ldint.texinfo: Add detailed documentation on auto-import
2421 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2423 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2426 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2428 * Makefile.am: Update dependencies with "make dep-am".
2429 * Makefile.in: Regenerate
2431 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2433 * ldcref.c (check_section_sym_xref): New function.
2434 (check_nocrossrefs): Call it.
2435 (check_nocrossref): Interate over h->refs here instead of..
2436 (check_refs): ..here. Pass in the symbol name, section, and bfd
2437 rather than hash_entry pointers.
2438 (struct check_refs_info): Keep symbol name rather than hash entry.
2440 (check_reloc_refs): Tweak for above changes in check_refs_info.
2441 Only report references to section syms when symname is NULL to
2442 prevent duplicate messages for the same reloc.
2444 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2446 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2447 available. Do not print NULL trees.
2448 (exp_print_token): Print unknown tokens with values > 126 as
2449 decimal values not ASCII characters.
2451 * ldlang.c (lang_leave_overlay): If a region is specified assign
2452 it to all sections inside the overlay unless they have been
2453 assigned to the own, non-default, memory region.
2455 * README: Add header for consistency with other README files.
2457 2001-07-14 H.J. Lu <hjl@gnu.org>
2459 * emultempl/elf32.em (output_prev_sec_find): Never return
2460 bfd_abs_section_ptr, bfd_com_section_ptr nor
2461 bfd_und_section_ptr.
2463 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2465 * Makefile.am (em32relf.c): Change dependency from generic.em to
2467 * Makefile.in: Regenerate.
2469 2001-07-14 matthew green <mrg@eterna.com.au>
2471 * configure.tgt (i386-*-netbsdelf*): New target.
2472 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2474 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2476 * emultempl/elf32.em (output_prev_sec_find): New.
2477 (place_orphan): Use it.
2479 2001-07-11 H.J. Lu <hjl@gnu.org>
2481 * ldmain.c (main): Fix typos in the last change.
2483 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2485 * ldmain.c (main): Disallow -F and -f without -shared.
2487 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2489 * emultempl/pe.em (after_open): Check for the output_bfd not
2490 having any coff_data structure allocated to it.
2492 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2494 * emultempl/elf32.em: Do not assuming that contents of the buffer
2495 returned from basename function will remain unchanged accross other
2498 2001-07-03 H.J. Lu <hjl@gnu.org>
2500 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2501 2001-07-03. It creates dynamic entries even for static binaries.
2503 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2505 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2506 (DYNAMIC): Use it to reserve few dynamic entries for
2509 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2511 * emulparams/hppa64linux.sh: New file.
2512 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2513 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2514 (ehppa64linux.c): Add rule to make it.
2516 * Makefile.in: Regenerate.
2518 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2520 * ld.texinfo (Options, -r): Mention restrictions when using
2521 different object formats.
2523 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2525 * ldlang.c (lang_check): Emit fatal error if relocatable link
2526 between different object flavours with relocations in input.
2528 2001-06-19 H.J. Lu <hjl@gnu.org>
2530 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2531 (--version-script): Mention the language support.
2533 2001-06-19 H.J. Lu <hjl@gnu.org>
2535 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2537 2001-06-18 H.J. Lu <hjl@gnu.org>
2539 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2540 (diststuff): Add $(MANS).
2541 * Makefile.in: Regenerated.
2545 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2547 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2548 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2549 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2550 * ld.h (args_type): Remove member export_dynamic. All users
2551 changed to use struct bfd_link_info member.
2553 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2554 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2555 * Makefile.in: Regenerate.
2557 2001-06-18 H.J. Lu <hjl@gnu.org>
2559 * ldlang.c (init_os): Add the newline to the einfo call.
2560 (lang_check): Likewise.
2561 (lang_do_version_exports_section): Likewise.
2563 2001-06-15 H.J. Lu <hjl@gnu.org>
2565 * lexsup.c (parse_args); Save optind to report unrecognized
2568 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2570 * ldlang.c (lang_check): Emit fatal error if relocatable link
2571 between different object flavours.
2573 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2574 Set new link_info member export_dynamic.
2575 * ldmain.c (main): Initialize new link_info member export_dynamic.
2577 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2579 * ldlang.c (walk_wild): Only call walk_wild_file if
2580 lookup_name returns something.
2581 (lookup_name): If load_symbols fails, return NULL.
2582 (load_symbols): Change to a boolean function.
2583 (open_input_bfds): If load_symbols fails then do not make the
2586 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2588 * ldlang.c (record_bfd_errors): Remove.
2590 * emultempl/aix.em: Fix copyright dates.
2592 2001-06-07 Andreas Jaeger <aj@suse.de>
2594 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2595 (TEXT_START_ADDR): Likewise.
2597 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2599 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2601 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2603 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2605 2001-05-31 H.J. Lu <hjl@gnu.org>
2607 * ldlang.c (open_input_bfds): Don't change the bfd error
2608 handler whilst loading symbols.
2610 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2612 * configure.tgt: Remove i370-mvs architecture, it is not currently
2615 2001-05-25 H.J. Lu <hjl@gnu.org>
2617 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2618 like emulparams/aixppc.sh.
2620 2001-05-25 H.J. Lu <hjl@gnu.org>
2622 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2623 setting of output_filename after bfd_scan_arch.
2624 * emultempl/pe.em: Likewise.
2626 2001-05-25 H.J. Lu <hjl@gnu.org>
2628 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2629 like emulparams/aixppc.sh.
2631 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2632 instead of ${srcdir}/emultempl/stringify.sed.
2634 2001-05-25 Timothy Wall <twall@oculustech.com>
2636 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2639 2001-05-25 Alan Modra <amodra@one.net.au>
2641 * configure.host: Replace linuxoldld with linux*oldld.
2642 * configure.tgt: Likewise.
2644 2001-05-24 H.J. Lu <hjl@gnu.org>
2646 * emultempl/stringify.sed: Removed again.
2648 2001-05-24 H.J. Lu <hjl@gnu.org>
2650 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2651 (gld${EMULATION_NAME}_before_parse): Initialize
2652 ldfile_output_architecture, ldfile_output_machine and
2653 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2654 * emultempl/beos.em: Likewise.
2655 * emultempl/elf32.em: Likewise.
2656 * emultempl/linux.em: Likewise.
2657 * emultempl/mipsecoff.em: Likewise.
2658 * emultempl/pe.em: Likewise.
2659 * emultempl/sunos.em: Likewise.
2661 2001-05-24 Tom Rix <trix@redhat.com>
2663 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2664 udate import file format.
2665 (change_symbol_mode) New, same
2666 (is_syscall) New, same
2667 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2668 * emulparams/aixppc64.sh : same
2669 * emulparams/aixrs6.sh : same
2670 * emulparams/ppcmacos.sh : same
2671 * emultempl/aix.em : use strtoull to parse options
2672 * Makefile.am : add eaixppc64 emulation for xcoff64
2673 * Makefile.in : same
2674 * configure.tgt : same
2676 * scripttempl/aix.sc : default text section offset to 0x10000000
2677 default data section offset to 0x20000000
2678 add .sv3264 and .sv64 pseudo sections
2679 loader and debug sections use the currect section offset.
2681 * emultempl/aix.em : Add xcoff64 support
2682 Add -binitfini support
2683 (gld${EMULATION_NAME}_before_parse) -binitfini
2684 (gld${EMULATION_NAME}_parse_args) same
2685 (gld${EMULATION_NAME}_before_allocation) format change for special
2688 * emulparams/aixppc64.sh : New file for xcoff64 support
2690 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2692 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2693 variable to avoid non-portable shell construct.
2695 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2697 * ldmain.c (get_emulation): Add -mips5 command line argument.
2699 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2701 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2702 (ELF_INTERPRETER_NAME): Define it.
2703 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2705 * configure.tgt (targ_emul, targ_extra_emuls)
2706 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2707 as primary, elf_i386 as extra.
2708 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2709 (eelf_i386_ldso.c): New rule.
2710 * Makefile.in: Rebuilt.
2712 2001-05-22 Nick Clifton <nickc@redhat.com>
2714 * lexsup.c (ld_options): Allow -I to be an alias for
2715 --dynamic-linker. This is for Solaris compatability.
2716 * ld.texinfo: Document that -I can be used.
2719 2001-05-16 Alan Modra <amodra@one.net.au>
2721 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2722 whether an input section is the first one assigned to an output
2724 Assorted formatting fixes.
2726 2001-05-14 DJ Delorie <dj@delorie.com>
2728 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2729 * Makefile.in: Ditto.
2731 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2733 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2734 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2736 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2738 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2740 * ldlang.c (lang_process): Call bfd_merge_sections.
2742 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2744 * ldgram.y: Fix typo.
2746 2001-05-03 H.J. Lu <hjl@gnu.org>
2748 * emultempl/elf32.em: Include "libiberty.h".
2749 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2750 basename of the bfd filename.
2751 (gld${EMULATION_NAME}_stat_needed): Likewise.
2752 (gld${EMULATION_NAME}_try_needed): Likewise.
2753 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2755 2001-05-02 H.J. Lu <hjl@gnu.org>
2757 * emultempl/pe.em: Include <ctype.h>.
2759 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2761 * emulparams/elf32openrisc.sh: New file.
2763 * Makefile.am: Add OpenRISC target.
2764 * Makefile.in: Regenerated.
2766 * configure.tgt: Add openrisc-*-* mapping.
2768 2001-05-02 Nick Clifton <nickc@redhat.com>
2770 * emultempl/aix.em: Replace buystring with xstrdup.
2771 * emultempl/beos.em: Replace buystring with xstrdup.
2773 2001-05-02 H.J. Lu <hjl@gnu.org>
2775 * ldfile.c: Include "libiberty.h".
2776 * ldlex.l: Likewise.
2778 * ldmisc.c (buystring): Removed.
2779 * ldmisc.h: Likewise.
2781 * ldfile.c: Replace buystring with xstrdup.
2782 * ldlang.c: Likewise.
2783 * ldlex.l: Likewise.
2784 * ldmain.c: Likewise.
2785 * ldmisc.c: Likewise.
2786 * lexsup.c: Likewise.
2787 * mpw-eppcmac.c: Likewise.
2789 2001-04-30 Andreas Jaeger <aj@suse.de>
2791 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2793 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2795 * ldlang.c (load_symbols): Give emulation a chance
2796 to process unrecognized file before fatal error is
2797 reported, not after.
2799 2001-04-27 Sean McNeil <sean@mcneil.com>
2801 * configure.tgt: Add arm-vxworks target.
2802 * scripttempl/armcoff.sc: Support .text or .data as a section name
2806 2001-04-13 J.T. Conklin <jtc@redback.com>
2808 * ld.texinfo: Document --fatal-warnings.
2811 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2812 warnings have been turned into errors.
2813 * lexsup.c (OPTION_WARN_FATAL): Define.
2814 (ld_options): Entry for --fatal-warnings.
2815 (parse_args): Handle OPTION_WARN_FATAL.
2816 * ld.h (ld_config_type): Add fatal_warnings field.
2818 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2820 * ldmain.c (main): Default to discard_sec_merge.
2821 * lexsup.c (OPTION_DISCARD_NONE): Define.
2822 (ld_options): Add --discard-none.
2823 (parse_args): Handle OPTION_DISCARD_NONE.
2824 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2825 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2826 all its input sections match.
2828 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2830 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2831 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2832 (eelf32ltsmip.c): New target.
2833 (eelf64btsmip.c): Likewise.
2834 (eelf64ltsmip.c): Likewise.
2835 * Makefile.in: Regenerated.
2837 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2839 (mips*-*-linux-gnu*): Likewise.
2841 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2843 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2845 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2848 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2850 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2851 correct value of __Stext here.
2852 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2855 * emulparams/crislinux.sh: Remove FIXME.
2857 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2859 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2860 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2862 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2864 * configure.tgt (cris-*-*): Change default emulation to criself.
2865 (cris-*-*aout*): New rule.
2867 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2869 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2870 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2872 2001-03-26 Andreas Jaeger <aj@suse.de>
2874 * ld.texinfo (Overview): Fix syntax in texi code.
2876 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2878 * ld.texinfo: Put @c man indications to generate the ld man page.
2879 When generating man, define all the variables. Define SEEALSO
2880 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2881 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2882 (ld.1): Generate from ld.texinfo.
2883 * Makefile.in: Regenerate.
2885 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2887 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2888 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2890 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2892 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2893 is an absolute path look only for this file and not along the path.
2895 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2897 * emultempl/elf32.em (OPTION_GROUP): New macro.
2898 Add new option Bgroup to longopts.
2899 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2900 (gld*_list_options): Add -Bgroup and -z defs.
2901 * ld.1: Document -Bgroup and -z defs.
2902 * ld.texinfo: Likewise.
2904 2001-03-07 Michael Meissner <meissner@redhat.com>
2906 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2907 with sections created by -fdata-sections.
2908 (.dynbss,.bss): Ditto.
2910 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2912 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2913 after_allocation_default, not gld..._before_allocation.
2915 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2917 * configure.in (BFD_VERSION): New.
2918 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2919 * configure: Regenerate.
2920 * Makefile.am: Run "make dep-am"
2921 * Makefile.in: Regenerate.
2923 2001-02-26 Timothy Wall <twall@cygnus.com>
2925 * emulparams/elf64_aix.sh: Add additional read-only sections;
2926 uncomment lines which are now required.
2928 2001-02-26 H.J. Lu <hjl@gnu.org>
2930 * ldlang.c (open_input_bfds): Set the bfd error handler so
2931 that problems can be caught whilst loading symbols.
2932 (record_bfd_errors): New function: Report BFD errors and mark
2933 the executable output as being invalid.
2935 2001-02-22 Timothy Wall <twall@cygnus.com>
2937 * configure.host: Add configuration for ia64-*-aix*.
2938 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2939 Add dependencies for eelf64_aix.c.
2940 * Makefile.in: Regenerate.
2941 * configure.tgt: Add ia64-*-aix* mapping.
2942 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2943 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2946 2001-02-20 H.J. Lu <hjl@gnu.org>
2948 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2949 false if we found the file.
2951 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2953 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2954 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2956 2001-02-18 lars brinkhoff <lars@nocrew.org>
2958 * Makefile.am: Add PDP-11 target.
2959 * configure.tgt: Likewise.
2960 * emulparams/pdp11.sh: New file.
2962 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2964 * configure.host: Add a generic FreeBSD configuration entry such that
2965 all [modern] FreeBSD systems on all platforms will look the same.
2967 2001-02-14 H.J. Lu <hjl@gnu.org>
2969 * configure.tgt: Remove mention of earmelf_linux26.
2971 2001-02-13 Richard Henderson <rth@redhat.com>
2973 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2975 2001-02-13 H.J. Lu <hjl@gnu.org>
2977 * ldexp.h (node_type): Add etree_provided.
2978 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2979 type to etree_provided if defined by PROVIDE. Allow updating
2981 (exp_print_tree): Handle etree_provided.
2982 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2985 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2987 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2988 .IA_64.unwind.* pattern to unwind table section and
2989 .IA_64.unwind_info* pattern to unwind info section.
2991 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2993 * Makefile.am: Add linux target for S/390.
2994 * Makefile.in: Likewise.
2995 * configure.host: Likewise.
2996 * configure.tgt: Likewise.
2997 * emulparams/elf64_s390.sh: New file.
2998 * emulparams/elf_s390.sh: New file.
3000 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3002 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3004 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3006 2001-02-06 Philip Blundell <philb@gnu.org>
3008 * Makefile.am: Remove mention of earmelf_linux26.
3009 * Makefile.in: Regenerate.
3011 2001-02-04 Philip Blundell <philb@gnu.org>
3013 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3014 * emulparams/armelf_linux26.sh: Delete.
3015 * configure.tgt: Remove mention of armelf_linux26 emulation.
3017 2001-02-01 Nick Clifton <nickc@redhat.com>
3019 * ld.1: Replace occurances of -oformat with --oformat.
3021 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3023 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3024 load_base is specified.
3026 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3028 * emultempl/elf32.em: Correct spelling in comments and listed
3031 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3033 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3034 default for the first section of a group of overlay sections.
3036 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3038 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3039 * Makefile.in: Regenerate.
3040 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3041 Check for null tool_dir.
3043 2001-01-16 Jim Wilson <wilson@redhat.com>
3045 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3046 and IA_64.unwind.info.
3048 2001-01-16 H.J. Lu <hjl@gnu.org>
3050 * ldlang.c (lang_check): Merge the private data only if the
3051 input file has contents.
3053 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3055 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3057 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3058 enabling search for libmilli. On a relocatable link, make .text
3060 (LDEMUL_AFTER_PARSE): Define.
3061 (hppaelf_finish): Correct spelling of relocatable in comments.
3063 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3064 rummage through the script for sections on the unique list.
3065 Correct length of strncmp for ".note".
3066 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3068 * ldlang.c (unique_section_list): New var.
3069 (unique_section_p): New function.
3070 (walk_wild_section): Don't match sections on unique_section_list.
3071 (lang_add_unique): New function.
3072 Correct spelling of relocatable in comments.
3074 * ldlang.h (struct unique_sections): Declare.
3075 (unique_section_list): Declare.
3076 (unique_section_p): Declare.
3077 (lang_add_unique): Declare.
3079 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3080 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3082 * ld.texinfo (--unique): Update.
3084 2001-01-13 Nick Clifton <nickc@redhat.com>
3086 * lexsup.c (parse_args): Remove spurious white space.
3088 2001-01-12 Nick Clifton <nickc@redhat.com>
3090 * lexsup.c (parse_args): Update copyright date.
3092 2001-01-12 Philip Blundell <pb@futuretv.com>
3094 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3096 2001-01-10 Kazu Hirata <kazu@hxi.com>
3098 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3099 * scripttempl/h8300h.sc: Fix formatting.
3100 * scripttempl/h8300s.sc: Likewise.
3101 * scripttempl/h8500.sc: Likewise.
3102 * scripttempl/h8500b.sc: Likewise.
3103 * scripttempl/h8500c.sc: Likewise.
3104 * scripttempl/h8500m.sc: Likewise.
3105 * scripttempl/h8500s.sc: Likewise.
3107 2000-01-07 David O'Brien <obrien@BSDi.com>
3109 * emultempl/elf32.em: Only perform Linux ld hints processing when
3112 2001-01-07 Philip Blundell <philb@gnu.org>
3114 * ld.texinfo (Bug Reporting): Update email address for reports.
3116 2000-12-31 Nick Clifton <nickc@redhat.com>
3118 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3119 options by checking for a return value of '?' not -1.
3121 2000-12-28 Nick Clifton <nickc@redhat.com>
3123 * lexsup.c (struct ld_option): Add new enum value:
3125 (ld_options[]): Change -omagic, -output and -oformat options
3126 to be EXACTLY_TWO_DASHES.
3127 (OUTPUT_COUNT): Use ARRAY_SIZE.
3128 (parse_args): Change parameter 'argc' to unsigned.
3129 Place EXACTLY_TWO_DASHES options into new really_longopts
3131 If getopt_long_only fails, try calling getopt_long using the
3132 really_longopts array.
3133 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3136 * ldlex.h: Fix prototype of parse_args.
3138 * ld.texinfo: Document that long options starting with 'o'
3139 must be preceeded by two dashes. Change example of a single
3140 dashed long option from -oformat to -trace-symbol.
3142 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3144 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3145 (longopts[]): New --no-default-excludes option.
3146 (gld_${EMULATION_NAME}_list_options): Document.
3147 (gld_${EMULATION_NAME}_parse_args): Handle.
3149 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3151 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3152 whitespace, it breaks the K&R C preprocessor.
3154 2000-12-11 DJ Delorie <dj@redhat.com>
3156 * ld.texinfo: Add notes about --whole-archive and gcc.
3158 2000-11-18 Fred Fish <fnf@be.com>
3160 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3161 (ld_options): Entry for --allow-shlib-undefined.
3162 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3163 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3165 * ld.texinfo: Document new command line switch.
3167 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3169 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3170 .fixup is actually read/write.
3171 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3172 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3173 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3175 2000-12-11 Jan Hubicka <jh@suse.cz>
3177 * NEWS: Add note about x86_64 architecture.
3179 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3181 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3182 Set DWARF2 sections to a VMA of zero.
3184 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3186 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3188 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3189 (sparc*-*-rtems*): Switched from a.out to ELF.
3191 2000-11-30 Jan Hubicka <jh@suse.cz>
3193 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3194 (eelf_x86_64.c): New.
3195 * Makefile.in: Regenerate.
3196 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3197 * emulparams/elf_x86_64.sh: New.
3199 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3201 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3202 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3204 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3205 merging non-a.out sections into CONSTRUCTING.
3207 2000-11-28 Nick Clifton <nickc@redhat.com>
3209 * ld.1 (COPYING): Mention that the GNU Free Documentation
3210 License is present in the sources, but not the output, and
3211 also available from the GNU website.
3212 (GNU Free Documentation License): Comment out this section.
3214 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3216 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3219 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3221 * ld.1: Remove old date so it does not give the impression the manpage
3224 2000-11-24 Nick Clifton <nickc@redhat.com>
3226 * configure.tgt (xscale-coff): Add target.
3227 (xscale-elf): Add target.
3229 2000-11-24 Fred Fish <fnf@be.com>
3231 * ldmain.c (main): Remove redundant init of config.make_executable
3234 2000-11-15 Richard Henderson <rth@redhat.com>
3236 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3238 2000-11-14 Kazu Hirata <kazu@hxi.com>
3240 * scripttempl/h8300.sc: Fix formatting.
3241 * scripttempl/h8300h.sc: Likewise.
3242 * scripttempl/h8300s.sc: Likewise.
3244 2000-11-14 Denis Chertykov <denisc@overta.ru>
3246 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3248 2000-11-09 Philip Blundell <pb@futuretv.com>
3250 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3251 around orphan sections whose names can be represented in C.
3253 2000-11-07 Jim Wilson <wilson@redhat.com>
3255 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3256 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3258 2000-11-06 Nick Clifton <nickc@redhat.com>
3260 * ld.texinfo: Add GNU Free Documentation License.
3261 * ldint.texinfo: Add GNU Free Documentation License.
3262 * ld.1: Add GNU Free Documentation License.
3264 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3266 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3267 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3269 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3270 Move 2000-11-02 Makefile.in changes to this file.
3271 * Makefile.in: Regenerate.
3273 2000-11-03 Nick Clifton <nickc@redhat.com>
3275 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3276 constructors and destructors.
3277 * scripttempl/h8300h.sc: Ditto.
3278 * scripttempl/h8300s.sc: Ditto.
3279 * scripttempl/h8500.sc: Ditto.
3280 * scripttempl/h8500b.sc: Ditto.
3281 * scripttempl/h8500c.sc: Ditto.
3282 * scripttempl/h8500m.sc: Ditto.
3283 * scripttempl/h8500s.sc: Ditto.
3284 * scripttempl/v850.sc: Ditto.
3285 * scripttempl/w65.sc: Ditto.
3286 * scripttempl/z8000.sc: Ditto.
3288 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3290 * Makefile.in (e_i386_chaos.c): New rule.
3291 (ALL_EMULATIONS): Added e_i386_chaos.o.
3292 * emulparams/elf_i386_chaos.sh: New file.
3293 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3295 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3297 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3298 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3299 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3300 library path suffix.
3301 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3303 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3305 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3306 for consecutive sections.
3308 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3310 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3312 * ld.texinfo: Added notes about this new option.
3314 2000-10-16 Nick Clifton <nickc@redhat.com>
3316 * emultempl/pe.em (_after_open): Add tests of return values from
3317 bfd functions. Emit appropriate error messages if necessary.
3319 2000-10-13 Nick Clifton <nickc@redhat.com>
3321 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3322 local variables - they are not used, but leave in the call to
3323 bfd_canonicalize_symtab.
3324 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3325 pe_dll_search_prefix.
3327 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3329 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3330 (longopts): New --dll-search-prefix option.
3331 (gld_${EMULATION_NAME}_list_options): Document.
3332 (gld_${EMULATION_NAME}_parse_args): Handle.
3333 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3334 dynamically, search for a dll named '<prefix><basename>.dll'
3335 in preference to 'lib<basename>.dll' if --dll-search-prefix
3338 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3340 * ldlang.c (section_already_linked): Set kept_section instead of
3343 2000-10-10 Kazu Hirata <kazu@hxi.com>
3345 * deffile.h: Fix formatting.
3346 * lexsup.c: Likewise.
3349 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3351 * pe-dll.c (make_one): Do not generate code thunk for DATA
3353 (process_def_file): deduce DATA flag for auto-export sumbols.
3355 2000-10-09 Kazu Hirata <kazu@hxi.com>
3357 * ld.h: Fix formatting.
3358 * ldcref.c: Likewise.
3359 * ldctor.h: Likewise.
3360 * ldemul.c: Likewise.
3361 * ldemul.h: Likewise.
3362 * ldexp.c: Likewise.
3363 * ldexp.h: Likewise.
3364 * ldfile.c: Likewise.
3365 * ldfile.h: Likewise.
3366 * ldlang.c: Likewise.
3367 * ldlang.h: Likewise.
3368 * ldmain.c: Likewise.
3369 * pe-dll.c: Likewise.
3371 * pe-dll.c: Revert some formatting fixes.
3373 2000-10-08 Kazu Hirata <kazu@hxi.com>
3375 * pe-dll.c: Fix formatting.
3377 2000-10-05 Kazu Hirata <kazu@hxi.com>
3379 * ldlang.c: Fix formatting.
3381 2000-10-03 DJ Delorie <dj@redhat.com>
3383 * pe-dll.c (fill_edata): initialize entire block
3384 (make_one): fill in correct section.
3386 2000-10-03 Kazu Hirata <kazu@hxi.com>
3388 * ldexp.c: Fix formatting.
3390 2000-10-02 DJ Delorie <dj@redhat.com>
3392 * emultempl/pe.em (gld_*_after_open): detect case where there two
3393 import libraries for same dll; rename one to ensure proper link
3396 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3398 (generate_edata): fix typo
3400 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3402 * scripttempl/crisaout.sc (ENTRY): Now __start.
3403 (.text): Add default setting for __start.
3404 Remove CONSTRUCTORS handling.
3405 (/DISCARD/): Add .gnu.warning.*.
3406 * emulparams/crislinux.sh (ENTRY): Now __start.
3407 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3408 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3409 (ENTRY): Now __start.
3410 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3411 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3413 2000-09-29 Kazu Hirata <kazu@hxi.com>
3415 * deffile.h: Fix formatting.
3417 * ldcref.c: Likewise.
3418 * ldctor.c: Likewise.
3419 * ldctor.h: Likewise.
3420 * ldemul.c: Likewise.
3421 * ldemul.h: Likewise.
3422 * ldexp.c: Likewise.
3423 * ldexp.h: Likewise.
3424 * ldfile.c: Likewise.
3425 * ldfile.h: Likewise.
3426 * ldlang.c: Likewise.
3427 * ldlang.h: Likewise.
3428 * lexsup.c: Likewise.
3430 * pe-dll.c: Likewise.
3432 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3434 * pe-dll.c (process_def_file): Uninitialized data wasn't
3435 exported with --export-all-symbols switch.
3437 2000-09-28 DJ Delorie <dj@redhat.com>
3439 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3440 noname work properly.
3442 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3444 * ld.texinfo (HPPA ELF32): New section.
3446 * emultempl/hppaelf.em (group_size): New.
3447 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3448 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3449 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3450 options to prevent abbreviations matching.
3451 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3452 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3454 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3456 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3457 on the m68*-*-elf target. Make it support COFF input objects.
3459 2000-09-21 Kazu Hirata <kazu@hxi.com>
3461 * ldmain.c: Fix formatting.
3462 * ldmisc.c: Likewise.
3463 * ldver.c: Likewise.
3464 * ldwrite.c: Likewise.
3466 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3468 * ldwrite.c (clone_section): Silence gcc warnings.
3470 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3472 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3473 out of memory failure.
3475 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3476 (clone_section): Handle out of memory failures. Rename var to
3477 avoid c++ reserved word.
3479 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3481 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3482 stub_name param to stub_sec_name.
3483 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3485 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3487 * emultempl/m68kelf.em: New file.
3488 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3489 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3490 * Makefile.in: Regenerate.
3492 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3494 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3497 2000-09-13 Nick Clifton <nickc@redhat.com>
3499 * ldmain.c (multiple_definition): Disable relaxation if
3500 multiple symbol definitions are encountered - otherwise the
3501 linker could abort with an assertion failure.
3503 2000-09-10 Nick Clifton <nickc@redhat.com>
3505 * mri.c: Fix formatting.
3507 2000-09-07 H.J. Lu <hjl@gnu.org>
3509 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3510 * configure: Rebuild.
3512 2000-09-07 H.J. Lu <hjl@gnu.org>
3514 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3515 * Makefile.in: Rebuild.
3517 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3519 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3520 broken list handling. Create __start_SECNAME and __stop_SECNAME
3521 when no place-holder. Add some comments. Test both SEC_CODE and
3522 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3523 Handle case where no output section statement created.
3525 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3527 * configure.tgt (sh-*-linux*): Added.
3528 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3529 * Makefile.in: Rebuilt.
3530 * emulparams/shelf_linux.sh: New file.
3531 * emulparams/shlelf_linux.sh: New file.
3533 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3535 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3536 try shuffling sections when the orphan happens to be the place
3537 holder. Keep count of unique section names generated so we speed
3538 the search for a new name.
3540 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3542 * configure: Rebuilt with new libtool.m4.
3544 2000-09-05 Nick Clifton <nickc@redhat.com>
3546 * Makefile.in: Regenerate.
3547 * aclocal.m4: Regenerate.
3548 * configure: Regenerate.
3549 * config.in: Regenerate.
3550 * po/ld.pot: Regenerate.
3552 * ldint.texinfo: Remove CVS revision marker - it foils local
3555 * emultempl/ticoff.em: Remove extraneous comma.
3557 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3559 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3560 to stub section flags.
3561 (hppa_for_each_input_file_wrapper): New.
3562 (hppa_lang_for_each_input_file): New.
3563 (lang_for_each_input_file): Define to call above.
3564 (multi_subspace): New.
3565 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3566 (PARSE_AND_LIST_PROLOGUE): Define.
3567 (PARSE_AND_LIST_LONGOPTS): Define.
3568 (PARSE_AND_LIST_OPTIONS): Define.
3569 (PARSE_AND_LIST_ARGS_CASES): Define.
3570 (hppaelf_finish): Call elf32_hppa_set_gp.
3571 (hppaelf_set_output_arch): Remove.
3572 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3574 * emulparams/hppalinux.sh (ELFSIZE): Define.
3576 (OTHER_READONLY_SECTIONS): Define.
3578 (GENERATE_SHLIB_SCRIPT): Define.
3580 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3581 to const throughout. Change `void *' to `PTR' throughout.
3582 (lang_memory_default): Function is local to file, add `static'.
3584 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3585 (ehppalinux.c): Likewise.
3586 (earmelf.c): Likewise.
3587 (earmelf_linux.c): Likewise.
3588 (earmelf_linux26.c): Likewise.
3589 * Makefile.in: Regenerate.
3591 * ld.h (ld_config_type): Add unique_orphan_sections.
3592 * lexsup.c (OPTION_UNIQUE): Define.
3593 (ld_options): Add "--unique".
3594 (parse_args): Handle it.
3595 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3596 search for an existing output section if unique_orphan_sections is
3597 set. Make use of bfd_get_unique_section_name rather than
3598 duplicating code here.
3599 * ld.texinfo: Describe --unique.
3601 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3602 optional arg to split-by-file.
3603 (parse_args): Handle them.
3604 * ld.texinfo: Update description of these options.
3605 * ldwrite.c (clone_section): Pass in the section name. Replace
3606 local code with bfd_get_unique_section_name.
3607 (split_sections): Tidy code and comments. Use a list traversal
3608 more appropriate to the list construction. Handle cooked section
3609 sizes. Split when split_by_reloc reached rather than exceeded.
3610 Track section size and split when split_by_file reached. Fix
3611 link_order_tail (even though it's not used).
3612 (ldwrite): Modify condition for calling split_sections to suit
3613 changed split_by_reloc and split_by_file.
3614 * ldmain.c (main): Init config.split_by_reloc and
3615 config.split_by_file to -1.
3616 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3617 Change split_by_file to bfd_size_type.
3619 2000-09-02 Nick Clifton <nickc@redhat.com>
3621 * configure.in: Increase version number to 2.10.91.
3622 * NEWS: Mention new ability to support removal of duplicate DWARF2
3624 * configure: Regenerate.
3625 * aclocal.m4: Regenerate.
3626 * config.in: Regenerate.
3628 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3630 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3632 * scripttempl/elf32avr.sc: Ditto.
3633 * scripttempl/elfd10v.sc: Ditto.
3634 * scripttempl/elfd30v.sc: Ditto.
3635 * scripttempl/elfi370.sc: Ditto.
3636 * scripttempl/elfm68hc11.sc: Ditto.
3637 * scripttempl/elfm68hc12.sc: Ditto.
3638 * scripttempl/elfi386beos.sc: Ditto.
3639 * scripttempl/v850.sc: Ditto.
3641 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3643 * acinclude.m4: Include libtool and gettext macros from the
3645 * aclocal.m4, configure: Rebuilt.
3647 2000-08-25 Nick Clifton <nickc@redhat.com>
3649 * ldlang.c (open_output): When choosing the target for a
3650 particular endianness, do nothing if the target is not
3653 2000-08-25 H.J. Lu <hjl@gnu.org>
3655 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3656 check -rpath nor LD_RUN_PATH for cross link.
3657 * ld.texinfo: Document the change.
3659 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3661 * NEWS: Mention support for CRIS.
3663 2000-08-23 H.J. Lu <hjl@gnu.org>
3665 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3666 the current runpath list from bfd_elf_get_runpath_list ()
3669 2000-08-22 H.J. Lu <hjl@gnu.org>
3671 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3672 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3673 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3674 trace_file_tries is non-zero.
3675 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3676 if trace_file_tries is non-zero.
3678 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3681 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3683 * NEWS: Mention i860 support.
3685 2000-08-14 Andreas Schwab <schwab@suse.de>
3687 * scripttempl/elf.sc: Fix last change to use correct comment
3690 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3692 * scripttempl/elf.sc: Add a comment giving the correspondence
3693 between sections, per-datum sections, and linkonce sections. Make
3694 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3697 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3699 * emulparams/elf32_i860.sh: New file.
3700 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3701 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3702 (eelf32_i860.c): New rule.
3703 * Makefile.in: Regenerate.
3705 2000-08-10 Nick Clifton <nickc@cygnus.com>
3707 * emulparams/mipspe.sh (ENTRY): Add definition.
3709 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3711 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3714 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3716 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3717 the final size of .bss section.
3718 * scripttempl/elfm68hc12.sc: Likewise.
3720 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3722 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3723 gld${EMULATION_NAME}_parse_args for consistency. Combine
3724 lastoptind and prevoptind vars, and keep track of last optind.
3725 (gld_${EMULATION_NAME}_list_options): Rename to
3726 gld${EMULATION_NAME}_list_options.
3728 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3730 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3731 (i586-sco-sysv5uw7.1.0).
3733 2000-07-27 H.J. Lu <hjl@gnu.org>
3735 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3736 (PARSE_AND_LIST_PROLOGUE): New.
3737 (PARSE_AND_LIST_LONGOPTS): Likewise.
3738 (PARSE_AND_LIST_OPTIONS): Likewise.
3739 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3740 (PARSE_AND_LIST_EPILOGUE): Likewise.
3742 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3744 * emultempl/armelf.em: Elide functions common to elf32.em,
3745 ie. most of the file.
3746 (arm_elf_after_open): New. Do arm specific things then call
3747 gld${EMULATION_NAME}_after_open.
3748 (arm_elf_before_allocation): New. Call
3749 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3750 (PARSE_AND_LIST_PROLOGUE): Define.
3751 (PARSE_AND_LIST_SHORTOPTS): Define.
3752 (PARSE_AND_LIST_LONGOPTS): Define.
3753 (PARSE_AND_LIST_OPTIONS): Define.
3754 (PARSE_AND_LIST_ARGS_CASES): Define.
3755 (LDEMUL_AFTER_OPEN): Define.
3756 (LDEMUL_BEFORE_ALLOCATION): Define.
3757 (LDEMUL_BEFORE_PARSE): Define.
3758 (LDEMUL_FINISH): Define.
3760 * emultempl/hppaelf.em: Similarly zap most of this file.
3761 (hppaelf_add_stub_section): Prototype.
3762 (hppaelf_layaout_sections_again): Prototype.
3763 (hook_in_stub): Prototype.
3764 (LDEMUL_SET_OUTPUT_ARCH): Define.
3765 (LDEMUL_FINISH): Define.
3766 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3768 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3769 (EXTRA_EM_FILE): New.
3770 * emulparams/armelf_linux.sh: Likewise.
3771 * emulparams/armelf_linux26.sh: Likewise.
3772 * emulparams/hppalinux.sh: Likewise.
3773 * emulparams/hppaelf.sh: Likewise.
3776 * emultempl/elf32.em: Fix formatting.
3777 (EXTRA_EM_FILE): Source it.
3778 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3779 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3780 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3781 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3782 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3783 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3784 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3785 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3786 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3787 allow functions in this file to be overridden.
3788 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3790 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3792 * emultempl/elf32.em: Reorganize file.
3794 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3796 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3797 specific option to fit 64-bit executable in the lower
3798 31-bit address range. This is done by changing start
3799 address of .interp (the very first section of executable)
3800 and then setting EF_ALPHA_32BIT elf header flag.
3802 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3804 * emultempl/m68kcoff.em: New file.
3805 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3806 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3808 * Makefile.in: Regenerate.
3810 2000-07-20 H.J. Lu <hjl@gnu.org>
3812 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3813 and "disable-new-dtags" to stop getopt from treating -d/-e as
3814 abbreviations for these options.
3816 2000-07-20 H.J. Lu <hjl@gnu.org>
3818 * ld.texinfo: Add documentation for --disable-new-dtags and
3821 * ldmain.c (main): Initialize link_info.new_dtags to false.
3823 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3824 --disable-new-dtags and --enable-new-dtags.
3825 (gld_${EMULATION_NAME}_list_options): Likewise.
3827 2000-07-05 Kenneth Block <krblock@computer.org>
3829 * lexsup.c: Add optional style to demangle switch
3830 * ld.texinfo: Document optional style to demangle switch.
3832 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3834 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3836 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3837 Regenerate dependencies.
3838 * Makefile.in: Rebuild.
3839 * configure.tgt (cris-*-*): New target.
3840 * emulparams/crisaout.sh, emulparams/criself.sh,
3841 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3842 * po/POTFILES.in, po/ld.pot: Regenerate.
3844 2000-07-20 H.J. Lu <hjl@gnu.org>
3846 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3847 Print out ignored -z options.
3849 2000-07-19 H.J. Lu <hjl@gnu.org>
3851 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3852 (PARSE_AND_LIST_PROLOGUE): New.
3853 (PARSE_AND_LIST_LONGOPTS): Likewise.
3854 (PARSE_AND_LIST_OPTIONS): Likewise.
3855 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3857 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3859 * lexsup.c (ld_options): Comment out 'z'.
3860 (parse_args): Likewise.
3862 * emultempl/elf32.em: Include "elf/common.h".
3863 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3865 (gld_${EMULATION_NAME}_list_options): Likewise.
3867 * ld.texinfo: Add documentation for the recognized -z options.
3869 2000-07-19 H.J. Lu <hjl@gnu.org>
3871 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3872 bfd_elf_set_dt_needed_soname ().
3874 2000-07-18 DJ Delorie <dj@cygnus.com>
3876 * pe-dll.c (pe_dll_id_target): check object target name also
3878 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3880 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3881 ${INIT_END} if relocating.
3882 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3884 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3886 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3887 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3888 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3889 errors introduced by the old dynamic lib search order.
3891 2000-07-17 DJ Delorie <dj@cygnus.com>
3893 * pe-dll.c (process_def_file): auto-export data items also
3894 (pe_process_import_defs): also see if _imp_ form needed
3896 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3898 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3899 for dll import libraries
3901 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3903 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3904 gcc 2.95.2 and later.
3906 2000-07-11 Kazu Hirata <kazu@hxi.com>
3908 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3911 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3913 * ldemul.h (struct lang_input_statement_struct): Remove forward
3915 (struct search_dirs): Likewise.
3916 * ldfile.h (struct lang_input_statement_struct): Likewise.
3917 Protect file from multiple inclusion.
3918 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3919 declaration from macro to file scope.
3921 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3922 * ldgram.y: Likewise here.
3923 * ldlang.c: And here.
3924 * ldmain.c: And here.
3925 * mpw-elfmips.c: And here.
3926 * mpw-eppcmac.c: And here.
3927 * emultempl/aix.em: And here.
3928 * emultempl/armcoff.em: And here.
3929 * emultempl/armelf.em: And here.
3930 * emultempl/armelf_oabi.em: And here.
3931 * emultempl/beos.em: And here.
3932 * emultempl/elf32.em: And here.
3933 * emultempl/hppaelf.em: And here.
3934 * emultempl/linux.em: And here.
3935 * emultempl/lnk960.em: And here.
3936 * emultempl/pe.em: And here.
3937 * emultempl/sunos.em: And here.
3938 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3939 * mpw-idtmips.c: Ditto.
3940 * emultempl/generic.em: Ditto.
3941 * emultempl/gld960.em: Ditto.
3942 * emultempl/gld960c.em: Ditto.
3943 * emultempl/mipsecoff.em: Ditto.
3944 * emultempl/ticoff.em: Ditto.
3945 * emultempl/vanilla.em: Ditto.
3947 * pe-dll.c: Include ldfile.h
3948 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3950 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3951 arguments to bfd_elf32_size_dynamic_sections call.
3952 (gldelf32ebmip_place_orphan): Add missing arguments to
3953 lang_leave_output_section_statement call.
3955 2000-07-10 H.J. Lu <hjl@gnu.org>
3957 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3959 (strhash): Likewise.
3960 (compute_dll_image_base): Likewise.
3961 (pe_undef_found_sym): Likewise.
3962 (pe_undef_cdecl_match): Likewise.
3963 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3964 argument "arch" with ATTRIBUTE_UNUSED.
3966 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3968 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3970 From Ryan Bradetich <rbradetich@uswest.net>
3971 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3973 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3975 Changes to create multiple linker stubs, positioned immediately
3976 before the section where they are required.
3977 * emultempl/hppaelf.em: Include elf32-hppa.h.
3978 (stub_sec, file_chain): Delete.
3979 (hppaelf_create_output_section_statements): Don't make a stub
3981 (hook_stub_info): New struct.
3982 (hook_in_stub): New function.
3983 (hppaelf_add_stub_section): New function.
3984 (hppaelf_finish): Do nothing for relocateable links. Modify the
3985 call to elf32_hppa_size_stubs. Move code for updating section
3987 (hppaelf_layaout_sections_again): ..to here, a new function.
3989 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3990 broken list handling. Pass in a pointer to the list.
3991 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3993 (hppaelf_before_parse): Prototype.
3994 (hppaelf_set_output_arch): Prototype.
3995 (hppaelf_create_output_section_statements): Prototype.
3996 (hppaelf_delete_padding_statements): Prototype.
3997 (hppaelf_finish): Prototype.
4000 * emultempl/hppaelf.em: Include ctype.h.
4001 (struct orphan_save): New.
4002 (gld${EMULATION_NAME}_place_orphan): New.
4003 (output_rel_find): New.
4004 (hppaelf_get_script): Update from elf32.em.
4005 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4006 Change emulation_name field to "${EMULATION_NAME}". Add
4007 gld${EMULATION_NAME}_place_orphan.
4009 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4010 ehppalinux.o, sort it. Regenerate dependencies.
4011 (ehppalinux.c): Depend on hppaelf.em
4012 * Makefile.in: Regenerate.
4014 * configure.tgt: targ_emul=hppalinux for hppa*linux
4016 * emulparams/hppalinux.sh: New.
4017 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4019 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4021 * lexsup.c (parse_args): Copy section name.
4023 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4025 * emultempl/pe.em: institute the following search order for
4026 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4027 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4028 static lib (libfoo.a) if none of the above are found.
4030 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4032 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4033 (longopts): New --{enable,disable}-auto-image-base options.
4034 (gld_${EMULATION_NAME}_list_options): Document.
4035 (gld_${EMULATION_NAME}_parse): Handle.
4036 (strhash): New static function.
4037 (compute_dll_image_base): New static function.
4038 (gld_${EMULATION_NAME}_set_symbols): Use.
4040 2000-07-05 DJ Delorie <dj@redhat.com>
4044 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4046 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4047 * emulparams/elf32btsmip.sh: New file.
4048 * Makefile.am: Add traditional mips target.
4049 * Makefile.in: Rebuild.
4051 2000-07-01 H.J. Lu <hjl@gnu.org>
4053 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4054 automake to use YLWRAP.
4055 * Makefile.in: Rebuild.
4057 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4059 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4060 (CLEANFILES): Add DEPA.
4061 * Makefile.in: Regenerate.
4063 2000-06-30 Timothy Wall <twall@ppc>
4065 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4066 the page in the upper octet of the address.
4068 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4070 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4072 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4074 * NEWS: arm-elf does --gc-sections too.
4076 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4078 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4080 * Makefile.in: Regenerate.
4082 2000-06-21 H.J. Lu <hjl@gnu.org>
4084 * Makefile.am: Rebuild dependency.
4085 * Makefile.in: Rebuild.
4087 2000-06-20 H.J. Lu <hjl@gnu.org>
4089 * Makefile.am: Rebuild dependency.
4090 * Makefile.in: Rebuild.
4092 2000-06-20 Timothy Wall <twall@cygnus.com>
4094 * scripttempl/tic54xcoff.sc: New.
4095 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4096 * gen-doc.texi: Add flag for TI COFF.
4097 * ld.texinfo: Add documentation for TI COFF handling switches.
4098 * emultempl/ticoff.em: New. TI COFF handling.
4099 * configure.tgt: Add tic54x target.
4100 * Makefile.am: Add tic54x target.
4101 * Makefile.in: Ditto.
4103 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4105 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4106 checking for backslashes.
4108 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4110 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4112 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4114 * NEWS: Update list of targets supporting --gc-sections.
4116 * scripttempl/elf.sc: KEEP .eh_frame contents.
4117 * scripttempl/elfd30v.sc: Same here.
4119 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4121 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4123 * Makefile.in: Rebuild.
4124 * configure.tgt: Recognize m68hc12 and m68hc11.
4125 * scripttempl/elfm68hc12.sc: New file.
4126 * emulparams/m68hc12elfb: New emulation.
4127 * emulparams/m68hc12elf: New emulation.
4128 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4129 (includes a memory.x script to define the ROM and RAM banks).
4130 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4131 New configuration files for support of Motorola 68hc11
4133 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4135 * ldmain.c (main): Only change SEC_READONLY for final link.
4137 2000-06-13 H.J. Lu <hjl@gnu.org>
4139 * configure: Regenerate.
4141 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4143 * configure.in (VERSION): Update to show this is the CVS mainline.
4145 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4147 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4148 input objects to be ECOFF.
4149 (check_sections): einfo takes %B, not %P, to print a BFD name.
4151 2000-06-05 Michael Matz <matz@ifh.de>
4153 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4156 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4158 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4160 * emulparams/avr1200.sh (STACK): Define as 0.
4161 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4162 * emulparams/avr4433.sh (STACK): Likewise.
4163 * emulparams/avr44x4.sh (STACK): Likewise.
4164 * emulparams/avr85xx.sh (STACK): Likewise.
4165 * emulparams/avrmega103.sh (STACK): Likewise.
4166 * emulparams/avrmega161.sh (STACK): Likewise.
4167 * emulparams/avrmega603.sh (STACK): Likewise.
4168 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4169 (__stack): Define from ${STACK} for main().
4171 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4173 * Makefile.am: Update dependencies with "make dep-am"
4174 * Makefile.in: Regenerate.
4176 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4178 * ldmain.c: Include filenames.h.
4179 (set_scripts_dir): Support backslashes in program name.
4181 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4183 * ldmain.c (main): When deciding if ".text" section should be
4184 read-only, don't forget to reset SEC_READONLY because it
4185 could be already set.
4187 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4189 * ld.1: Add documentation for new command line option:
4190 --section-start <sectionname>=<sectionorg>
4191 This is a generic version of -Ttext etc. which accepts
4192 any section name as a parameter instead of just text/data/
4194 * ld.texinfo: More docs.
4196 * lexsup.c: (parse_args): Recognize new command line option.
4197 (ld_options): Add new option.
4199 2000-05-18 H.J. Lu <hjl@gnu.org>
4201 * lexsup.c (parse_args): `i' == `r', not `q'.
4203 2000-05-18 Jeffrey A Law (law@cygnus.com)
4205 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4207 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4208 Rick Gorton <gorton@scrugs.lkg.dec.com>
4210 Add support for '-q' == '--emit-relocs' switch.
4211 * ldmain.c (main): Default to false.
4212 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4213 * NEWS: Describe the emitrelocations switch.
4214 * ld.texinfo: Describe the emitrelocations switch.
4216 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4218 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4219 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4220 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4223 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4225 * lexsup.c (parse_args): Update the year in the copyright notice.
4227 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4229 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4230 Replace defines with those from intl/libgettext.h to quieten gcc
4233 2000-05-10 H.J. Lu <hjl@gnu.org>
4235 * ldlang.c (open_input_bfds): Don't load the same file within
4236 a group again if the whole archive has been loaded already.
4238 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4240 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4241 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4244 2000-05-01 Jim Wilson <wilson@cygnus.com>
4246 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4248 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4249 host "ia64-*-linux-gnu*".
4251 2000-04-29 Andreas Jaeger <aj@suse.de>
4253 * ld.h: Correctly check GCC version.
4255 2000-04-25 Jeffrey A Law (law@cygnus.com)
4257 * Makefile.am: Add PA64 support. Add missing dependencies for
4259 * Makefile.in: Rebuilt.
4260 * configure.tgt: Add PA64 support (currently disabled).
4262 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4264 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4265 (output_rel_find): New function.
4266 (hold_section, hold_use): Delete.
4267 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4268 hold_interp): Make local to place_orphan.
4269 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4270 rather than place_section to find possible previous use of orphan.
4271 Similarly find the place-holder output sections. Use returned
4272 value from lang_enter_output_section_statement rather than calling
4273 lang_output_section_statement_lookup.
4274 * emultempl/armelf.em: Same here.
4275 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4277 * ldlang.c (lang_enter_output_section_statement): Return output
4279 * ldlang.h (lang_enter_output_section_statement): Change
4282 * ldlang.h (lang_output_section_statement): Export it.
4283 * ldlang.c (lang_output_section_statement): Ditto.
4285 2000-04-24 Nick Clifton <nickc@cygnus.com>
4287 * ld.texinfo (Output Section Data): Add note that section data
4288 commands cannot appear outside of section directives.
4290 2000-04-2 Matthew Green <mrg@cygnus.com>
4292 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4294 2000-04-21 Richard Henderson <rth@cygnus.com>
4295 David Mosberger <davidm@hpl.hp.com>
4297 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4298 (eelf64_ia64.c): New rule.
4299 * Makefile.in: Rebuild.
4300 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4301 * emulparams/elf64_ia64.sh: New file.
4303 2000-04-21 Richard Henderson <rth@cygnus.com>
4305 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4307 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4309 * dep-in.sed: Match space at start of file name, not at end.
4311 2000-04-18 H.J. Lu <hjl@gnu.org>
4313 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4314 lang_leave_output_section_statement () after calling
4315 lang_enter_output_section_statement ().
4316 * emultempl/armelf.em: Likewise.
4318 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4320 * emultempl/elf32.em (struct orphan_save): Add section field.
4321 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4322 better order, and place first orphan section as we did before the
4323 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4324 Don't call make_bfd_section here, let wild_doit do the job for us.
4325 Don't build a statement list when we'll only throw it away.
4326 * emultempl/armelf.em: Ditto.
4327 * emultempl/pe.em: Similarly.
4329 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4331 * scripttempl/elfppc.sc: Remove.
4332 * emulparams/elf32ppc.sh: Use elf.sc.
4333 * emulparams/elf32lppc.sh: Use elf.sc.
4334 * emulparams/elf32ppclinux.sh: Use elf.sc.
4335 * emulparams/elf32ppcsim.sh: New file.
4336 * emulparams/elf32lppcsim.sh: New file.
4337 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4338 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4339 * Makefile.in: Regenerate.
4340 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4342 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4344 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4345 ~SEC_ALLOC sections too. Init start address of debug sections.
4346 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4347 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4348 Also set all relocateable section start addresses.
4350 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4352 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4353 Add new BSS_PLT variable for when .plt need not be contained in
4354 the file. Move _etext so that it is also after .fini, and provide
4355 both etext and _etext with a leading underscore. Mark the start
4358 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4360 * emultempl/elf32.em (struct orphan_save): New.
4361 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4362 hold_interp): Make them struct orphan_save.
4363 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4364 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4365 the end of the relevant section list. Also add associated section
4366 statements to the end of any previous orphan statements.
4367 * emultempl/armelf.em: Similarly.
4368 * emultempl/pe.em: Similarly.
4370 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4372 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4374 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4376 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4377 --enable-build-warnings option.
4378 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4379 * Makefile.in, configure: Re-generate.
4381 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4383 * po/ld.pot: Regenerate.
4385 * lexsup.c (help): Restore translated part of bug string.
4387 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4388 (DEP): Quote when passing vars to sub-make. Add warning message
4390 (DEP1): Rewrite for "gcc -MM".
4391 (CLEANFILES): Add DEP2.
4392 Update dependencies.
4393 * Makefile.in: Regenerate.
4395 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4397 * ld.h: #include "bin-bugs.h"
4398 * lexsup.c (help): Use REPORT_BUGS_TO.
4400 2000-03-27 Denis Chertykov <denisc@overta.ru>
4402 * configure.tgt (avr-*-*): New target support.
4403 * Makefile.am: Likewise.
4404 * scripttempl/elf32avr.sc: New script file.
4405 * emulparams/avr1200.sh: New file.
4406 * emulparams/avr23xx.sh: New file.
4407 * emulparams/avr4433.sh New file.
4408 * emulparams/avr44x4.sh New file.
4409 * emulparams/avr85xx.sh New file.
4410 * emulparams/avrmega103.sh New file.
4411 * emulparams/avrmega161.sh New file.
4412 * emulparams/avrmega603.sh New file.
4413 * Makefile.in: Regenerate.
4415 2000-03-09 Andreas Jaeger <aj@suse.de>
4417 * Makefile.am (check-DEJAGNU): Also unset LANG.
4418 * Makefile.in: Rebuild.
4420 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4422 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4425 2000-03-02 H.J. Lu <hjl@gnu.org>
4427 * emulparams/elf32mcore.sh: Include "getopt.h".
4429 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4431 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4433 2000-03-01 H.J. Lu <hjl@gnu.org>
4435 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4436 * emulparams/shpe.sh: Likewise.
4438 2000-03-01 Nick Clifton <nickc@cygnus.com>
4440 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4441 to unused parameters.
4443 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4444 functions only used by DLL code.
4445 (_place_orphan): Initialise 'dollar'.
4447 2000-03-01 H.J. Lu <hjl@gnu.org>
4449 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4450 indicate if the undefined symbol is a fatal error or not.
4451 Don't delete the output file if "fatal" is false.
4453 2000-02-29 H.J. Lu <hjl@gnu.org>
4455 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4456 Set LC_COLLATE and LC_ALL to null and export them. It is for
4457 sort which expects the C locale.
4458 Add $(LIBS) to all $(HOSTING_LIBS).
4459 * Makefile.in: Rebuild.
4461 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4463 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4464 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4465 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4466 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4467 find_potential_libraries.
4469 2000-02-28 Jim Blandy <jimb@redhat.com>
4471 * ldgram.y (exclude_name_list): Don't require a comma to separate
4472 list entries; the lexer considers commas to be valid part of a
4473 filename, so in something like `foo, bar' the comma is considered
4474 part of the first filename, `foo,'.
4475 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4477 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4479 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4480 host "i[3456]86-*-freebsdelf*".
4482 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4484 * scripttempl/i386go32.sc: Move misplaced semicolons.
4486 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4488 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4489 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4490 (eelf64hppa.c, ehppaelf.c): Remove targets.
4491 * Makefile.in: Rebuild.
4493 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4495 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4496 GNU/Linux/sparc, but keep the default as 32.
4498 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4499 it default if sparcv9 or sparc64.
4501 2000-02-24 Nick Clifton <nickc@cygnus.com>
4503 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4504 * Makefile.in: Regenerate.
4505 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4507 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4508 find_potential_libraries.
4509 * ldemul.c (ldemul_find_potential_libraries): New function.
4511 * ldfile.c (ldfile_open_file_search): Allow function to be
4513 (ldfile_open_file): Call ldemul_find_potential_libraries.
4514 * ldfile.h: Add prototype for ldfile_open_file_search.
4516 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4518 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4519 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4521 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4522 (gld_X_find_potential_libraries): New function. Search for
4523 libraries called "*.lib".
4525 * scripttempl/pe.sc: Add .pdata section.
4527 2000-02-23 Richard Henderson <rth@cygnus.com>
4529 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4530 Add and use memory regions.
4532 2000-02-23 Linas Vepstas (linas@linas.org)
4534 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4536 * Makefile.am: Add support for Linux/IBM 370.
4537 * configure.tgt: Likewise.
4539 * Makefile.in: Regenerate.
4541 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4543 * ldlang.c (print_input_section, print_data_statement,
4544 print_reloc_statement, print_padding_statement, insert_pad,
4545 size_input_section, lang_check_section_addresses,
4546 lang_size_sections, lang_do_assignments, lang_set_startof,
4547 lang_one_common): Change `opb' to unsigned.
4548 (lang_do_assignments): Also change `size' to unsigned.
4550 2000-02-16 Richard Henderson <rth@cygnus.com>
4552 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4554 2000-02-16 Timothy Wall <twall@cygnus.com>
4556 * mri.c (mri_draw_tree): Add default LMA region argument to call
4557 to lang_leave_output_section_statement.
4558 * ldlang.h: Update prototypes with LMA region arguments.
4559 * ldlang.c (lang_size_sections): Encapsulate region bounds
4560 checking in os_check_region call.
4561 (os_check_region): New function.
4562 (lang_output_section_statement_lookup): Initialize lma_region.
4563 (lang_leave_output_section_statement): Add LMA region argument.
4564 (lang_leave_overlay): Ditto.
4565 * ldgram.y: Handle LMA region syntax.
4566 * ld.texinfo (Output Section Description): Describe LMA region usage.
4567 * emultempl/armelf.em (gld$place_orphan): Add default value for
4568 lma region in call to lang_leave_output_section_statement.
4569 * emultempl/elf32.em (gld$place_orphan): Add default value for
4570 lma region in call to lang_leave_output_section_statement.
4571 * emultempl/pe.em (gld$place_orphan): Add default value for
4572 lma region in call to lang_leave_output_section_statement.
4575 2000-02-04 Timothy Wall <twall@redhat.com>
4577 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4578 octets when calculating section end addresses.
4580 2000-02-04 Timothy Wall <twall@redhat.com>
4582 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4584 2000-02-03 Timothy Wall <twall@redhat.com>
4586 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4588 * ldlang.c (print_input_section, print_data_statement,
4589 print_reloc_statement, print_padding_statement): Print target
4590 address values and section sizes as bytes, not octets.
4591 (insert_pad) Calculate padding size in octets, and adjust "dot"
4593 (size_input_section) Always adjust "dot" by bytes, not octets.
4594 (lang_check_section_addresses, lang_do_assignments) Adjust
4595 "dot" by bytes, not octets. Use the larger of the directive size
4596 or octets_per_byte for the number of octets actually allocated in
4598 (lang_set_startof) Make sure STARTOF returns a target address.
4599 (lang_one_common) Record size changes in octets.
4600 (lang_abs_symbol_at_end_of) Section end symbol's value is
4601 recorded in target bytes.
4602 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4603 to be clear about behavior when an octet is smaller than one byte.
4605 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4607 * ldcref.c (output_cref): Don't pass message strings to printf
4611 * ldmisc.c (vfinfo): Same here.
4614 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4616 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4617 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4618 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4619 Add missing NULL initialisers, and comments.
4621 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4623 2000-01-21 Nick Clifton <nickc@cygnus.com>
4625 * ldlang.c (lang_size_sections): Fix typo in comment.
4627 2000-01-18 H.J. Lu <hjl@gnu.org>
4629 * ldlang.c (lang_size_sections): Also update the current
4630 address of a region if the SEC_NEVER_LOAD bit is not set.
4632 2000-01-10 Philip Blundell <pb@futuretv.com>
4634 * configure.tgt (arm*-*-conix*): New target.
4636 2000-01-07 Nick Clifton <nickc@cygnus.com>
4638 * ld.texinfo (Options): Remind users to preceed linker command
4639 line switches with -Wl, (or whatever is appropriate) if it is
4640 being invoked by a comnpiler driver program.
4641 Fix description of the behaviour of the -n command line switch.
4643 2000-01-05 Catherine Moore <clm@cygnus.com>
4645 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4647 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4648 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4649 (exclude_name_list): New.
4650 ldlang.c (walk_wild_section): Support list of excluded files.
4651 (print_wild_statement): Likewise.
4652 (lang_add_wild): Likewise.
4653 * ldlang.h (lang_wild_statement_type): Likewise.
4654 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4656 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4658 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4659 (process_def_file): Use.
4660 (pe_dll_compat_implib): New variable.
4663 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4664 pe_dll_compat_implib.
4666 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4667 compat-implib options.
4668 (gld_${EMULATION_NAME}_list_options): List new options.
4669 (gld_${EMULATION_NAME}_parse_args): Handle.
4671 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4674 * deffilep.y (opt_name): Allow "." in name.
4676 For older changes see ChangeLog-9899
4682 version-control: never