1 2002-08-22 Adam Nemet <anemet@lnxw.com>
3 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
4 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
5 depending on the type of the function.
6 (arm_elf_convert_thumb_symbol_to_address): New function.
8 2002-08-22 Graeme Peterson <gp@qnx.com>
10 * Makefile.am: Add esh{l}elf_nto.o files.
11 * Makefile.in: Regenerate.
12 * configure.tgt: Add support for sh-**-nto* targets.
13 * emulparams/shelf_nto.sh: New file.
14 * emulparams/shlelf_nto.sh: New file.
16 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18 * ldlang.c (offsetof): Define if not defined.
20 2002-08-14 H.J. Lu <hjl@gnu.org>
22 * configure.tgt: Always enable 64bit emulations for 32bit
25 2002-08-13 Alan Modra <amodra@bigpond.net.au>
27 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
28 (MAXPAGESIZE): Set to 1.
30 * ld.h (ALIGN_N): Delete.
31 * ldexp.h (align_n): Declare.
32 * ldexp.c (align_n): New function.
33 (fold_binary): Use align_n instead of ALIGN_N.
34 (exp_fold_tree): Likewise.
35 * ldlang.c (lang_size_sections_1): Likewise.
36 (lang_one_common): Likewise.
37 * ld.texinfo (ALIGN): Remove power of 2 restriction.
39 2002-07-31 Graeme Peterson <gp@qnx.com>
41 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
42 * Makefile.am: Add eelf32{l}ppcnto.o files.
43 * Makefile.in: Regenerate.
44 * emulparams/elf32lppcnto.sh: New file.
45 * emulparams/elf32ppcnto.sh: New file.
47 2002-08-07 H.J. Lu <hjl@gnu.org>
49 * ld.texinfo: Document --no-undefined-version.
51 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
52 `script.' fields to 0.
54 * ldmain.c (main): Initialize the allow_undefined_version to
57 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
58 (ld_options): Add --no-undefined-version.
59 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
61 2002-08-07 Nick Clifton <nickc@redhat.com>
63 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
64 an interworking bfd if there are input bfds. (107501)
66 2002-08-06 Alan Modra <amodra@bigpond.net.au>
68 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
71 2002-08-01 Nick Clifton <nickc@redhat.com>
73 * emulparams/armelf.sh: Revert previous delta.
74 * scripttempl/elf.sc: Revert previous delta.
76 2002-07-31 H.J. Lu <hjl@gnu.org>
78 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
81 2002-07-31 H.J. Lu <hjl@gnu.org>
83 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
84 64bit BFD is selected.
86 2002-07-31 H.J. Lu <hjl@gnu.org>
88 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
89 if 64bit BFD is selected.
91 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
93 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
94 link_info.common_skip_ar_aymbols.
95 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
97 * ldmain.c (main): Initialize new field
98 link_info.common_skip_ar_aymbols.
100 2002-07-31 Adam Nemet <anemet@lnxw.com>
102 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
104 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
107 2002-07-31 Nick Clifton <nickc@redhat.com>
109 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
110 of the PDP-11 and 2.11BSD a.out support.
112 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
114 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
116 * Makefile.in: Regenerate.
117 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
118 n32 ABI emulations for these 64 bit targets.
119 * emulparams/elf32bmipn32.sh: Expand comment.
120 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
122 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
124 2002-07-30 Graeme Peterson <gp@qnx.com>
126 * configure.tgt: Add support for arm-*-nto target.
127 * Makefile.am: Add earmnto.o file.
128 * Makefile.in: Regenerate.
129 * NEWS: Mention port of ARM support to QNX.
130 * emulparams/armnto.sh: New file.
132 2002-07-30 Jakub Jelinek <jakub@redhat.com>
134 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
135 for relocatable link.
136 (lang_size_sections_1): Don't make .tbss zero size for relocatable
139 2002-07-26 Bernd Schmidt <bernds@redhat.com>
141 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
144 2002-07-25 Nick Clifton <nickc@redhat.com>
146 * po/sv.po: Updated Swedish translation.
147 * po/es.po: Updated Spanish translation.
148 * po/fr.po: Updated French translation.
150 2002-07-24 Nick Clifton <nickc@redhat.com>
152 * po/sv.po: Updated Swedish translation.
153 * po/es.po: Updated Spanish translation.
155 2002-07-23 Nick Clifton <nickc@redhat.com>
157 * po/fr.po: Updated French translation.
159 2002-07-20 Alan Modra <amodra@bigpond.net.au>
161 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
162 bomb on /DISCARD/ input section.
163 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
164 * emultempl/mmo.em (mmo_place_orphan): Likewise.
166 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
168 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
171 2002-07-16 Denis Chertykov <denisc@overta.ru>
172 Nick Clifton <nickc@redhat.com>
173 Frank Ch. Eigler <fche@redhat.com>
174 John Healy <jhealy@redhat.com>
176 * configure.tgt: Add support for ip2k-elf.
177 * Makefile.am: Add support for ip2k-elf.
178 * Makefile.in: Regenerate.
179 * emulparams/elf32ip2k.sh: New file.
180 * scripttempl/ip2k.sc: New file
181 * NEWS: Mention support for new port.
183 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
185 * NEWS: Add 'Changes in 2.13'.
187 2002-07-14 H.J. Lu <hjl@gnu.org>
189 * ld.texinfo: Document a .symver takes precedence over a
192 2002-07-12 Alan Modra <amodra@bigpond.net.au>
194 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
195 (COMMONPAGESIZE): Define.
197 2002-07-09 Alan Modra <amodra@bigpond.net.au>
199 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
201 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
203 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
204 powerpc-*-openbsd* and sparc64-*-openbsd*.
205 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
206 * Makefile.in: Regenerate.
207 * emulparams/hppaobsd.sh: New file.
209 2002-07-05 Alan Modra <amodra@bigpond.net.au>
211 * ldlang.c (print_wild_statement): Fix output formatting.
213 2002-07-04 Alan Modra <amodra@bigpond.net.au>
215 * ldlang.c: (strip_excluded_output_sections): New function.
216 (lang_process): Call it.
217 (lang_size_sections_1): Revert 2002-06-10 change.
219 2002-07-03 Alan Modra <amodra@bigpond.net.au>
221 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
223 * Makefile.in: Regenerate.
225 2002-07-02 Alan Modra <amodra@bigpond.net.au>
227 * ldfile.c (ldfile_try_open_bfd): Formatting.
229 * ldmisc.c (demangle): Move so that it doesn't intrude between
230 vfinfo comment and body. Add comment.
232 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
234 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
236 2002-07-01 Alan Modra <amodra@bigpond.net.au>
238 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
239 * ldlang.c (entry_sym): Likewise.
240 (ldlang_undef_chain_list_type): Likewise.
241 (lang_finish): Adjust references to entry_symbol.
242 (lang_add_entry): Likewise.
243 (lang_gc_sections): Use link_info.gc_sym_list.
244 (lang_process): Set link_info.gc_sym_list.
245 * ldlex.l: Include bfdlink.h.
246 * ldmain.c (main): Init link_info.gc_sym_list.
247 * emultempl/aix.em: Adjust references to entry_symbol.
248 * emultempl/armcoff.em: Likewise.
249 * emultempl/armelf.em: Likewise.
250 * emultempl/pe.em: Likewise.
251 * emultempl/ppc64elf.em (ppc_after_open): New function.
252 (LDEMUL_AFTER_OPEN): Define.
253 * emulparams/elf64ppc.sh: KEEP .opd sections.
255 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
257 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
258 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
259 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
260 (EEPROM_START_ADDR): Define.
261 (EEPROM_MEMORY): Define.
262 * emulparams/m68hc12elf.sh: Likewise.
263 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
264 section to put soft registers in .page0.
265 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
267 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
269 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
270 section. Add ${RELOCATING-0}.
272 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
274 * emulparams/shelf.sh (STACK_ADDR): Don't define.
275 (OTHER_SECTIONS): Define.
276 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
277 (OTHER_SECTIONS): Undef.
279 2002-06-26 Alan Modra <amodra@bigpond.net.au>
281 * ldmisc.c (demangle): Restore dots stripped from sym name.
283 2002-06-25 H.J. Lu <hjl@gnu.org>
285 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
286 * Makefile.in: Regenerated.
288 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
290 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
291 the size of attached object files, to allow make the object files
292 available via FTP or HTTP and to mention that the mail will be
293 sent to a mailing list.
295 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
297 * ld/configure.host (romp): Drop support.
299 2002-06-18 Chris Demetriou <cgd@broadcom.com>
301 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
302 section flags for SEC_DATA, rather than for SEC_CODE being unset.
304 2002-06-18 Chris Demetriou <cgd@broadcom.com>
306 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
307 format specifier used to print BFD name.
309 2002-06-18 Dave Brolley <brolley@redhat.com>
311 From Catherine Moore, Michael Meissner, Jim Blandy:
312 * emulparams/elf32frv.sh: New file.
313 * configure.tgt: Support frv-*-*.
314 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
315 (eelf32frv.c): New target.
317 2002-06-17 Tom Rix <trix@redhat.com>
319 * emultempl/elf32.em: gld*_get_script: Check for
320 GENERATE_COMBRELOC_SCRIPT.
321 * scripttempl/elfd10v.sc : Fix STACK and INSN.
322 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
324 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
326 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
328 2002-06-12 H.J. Lu <hjl@gnu.org>
330 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
331 false if xvec doesn't match.
333 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
335 * ldlang.c (lang_size_sections_1): Skip removed output sections.
337 2002-06-08 Alan Modra <amodra@bigpond.net.au>
339 * ldexp.c: Replace CONST with const.
340 * ldfile.c: Likewise.
341 * ldfile.h: Likewise.
344 * pe-dll.h: Likewise.
346 2002-06-07 Alan Modra <amodra@bigpond.net.au>
348 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
350 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
352 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
353 to -1 == implicit enable.
354 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
355 initialize link_info.pei386_auto_import to -1 == implicit
357 (gld_${EMULATION_NAME}_parse_args): When processing
358 --enable-auto-import and --disable-auto-import options, use
359 '1' and '0' instead of 'true' and 'false'.
360 (pe_find_data_imports): Only issue message about auto-import
361 when the feature is implicitly enabled. Downgrade message to
362 informational instead of warning.
364 2002-06-07 Alan Modra <amodra@bigpond.net.au>
366 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
368 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
370 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
371 HOSTING_CRT0 and HOSTING_LIBS.
373 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
375 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
377 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
379 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
380 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
382 2002-06-05 Alan Modra <amodra@bigpond.net.au>
384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
385 SEC_EXCLUDE sections when doing a relocatable link.
387 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
389 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
390 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
391 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
392 (eshlelf64_nbsd.c): New rules.
393 * Makefile.in: Regenerate.
394 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
395 (sh64-*-netbsd*): New targets.
396 * emulparams/shelf32_nbsd.sh: New file.
397 * emulparams/shelf64_nbsd.sh: New file.
398 * emulparams/shlelf32_nbsd.sh: New file.
399 * emulparams/shlelf64_nbsd.sh: New file.
401 2002-06-04 Alan Modra <amodra@bigpond.net.au>
403 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
405 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
407 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
408 C++ constructors/destructors, loosely based on the m68hc11 port.
410 2002-05-31 Alan Modra <amodra@bigpond.net.au>
412 * Makefile.in: Regenerate.
413 * aclocal.m4: Regenerate.
414 * config.in: Regenerate.
415 * configure: Regenerate.
417 2002-05-31 Graeme Peterson <gp@qnx.com>
419 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
420 (ei386nto.c): Add rule.
421 * Makefile.in: Regenerate.
422 * configure.tgt: Add i[3456]86-*-nto-qnx*.
423 * emulparams/i386nto.sh: New file.
425 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
427 * NEWS: Add entry for VAX ELF support.
429 2002-05-29 Matt Thomas <matt@3am-software.com>
430 Jason Thorpe <thorpej@wasabisystems.com>
432 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
434 (evaxnbsd.c): New rules.
435 * Makefile.in: Regenerate.
436 * configure.tgt (vax-*-netbsdelf*)
438 (vax-*-netbsd*): New targets.
439 * emulparams/elf32vax.sh: New file.
440 * emulparams/vaxnbsd.sh: New file.
442 2002-05-29 Adam Nemet <anemet@lnxw.com>
444 * emultempl/armelf.em (arm_elf_after_open): Don't determine
445 bfd_for_interwork, instead add glue sections to each input bfd.
446 (bfd_for_interwork): New global.
447 (arm_elf_set_bfd_for_interworking): New function.
448 (arm_elf_before_allocation): Use it.
450 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
452 * Makefile.am: Add DLX make target.
453 * configure.tgt: Add DLX configuration.
454 * Makefile.in: Regenerate.
455 * emulparams/elf32_dlx.sh: New file
456 * scripttempl/dlx.sc: New file
458 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
460 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
461 * Makefile.in: Regenerate.
462 * emulparams/elf_chaos.sh: Use elf_chaos script.
463 * scripttempl/elf_chaos.sc: New file.
465 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
467 * ldlang.c (lang_size_sections_1): Move check for conflicting load
468 addresses and regions from here...
469 (lang_get_regions): ...to this new function.
470 (lang_leave_output_section_statement): Use lang_get_regions.
471 (lang_leave_overlay): Likewise.
472 * mri.c (mri_draw_tree): Pass null as last argument to
473 lang_leave_output_section_statement.
474 * emultempl/elf32.em (gld*_place_orphan): Likewise.
475 * emultempl/mmo.em (mmo_place_orphan): Likewise.
476 * emultempl/pe.em (gld*_place_orphan): Likewise.
478 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
480 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
482 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
484 * ldemul.c: Fix formatting.
485 * ldfile.c: Likewise.
486 * pe-dll.c: Likewise.
487 * pe-dll.h: Likewise.
489 2002-05-25 Alan Modra <amodra@bigpond.net.au>
491 * ldlang.c (lang_process): Formatting, grammar.
493 * ldlex.l: Use #include "" instead of <> for local header files.
495 2002-05-24 TAMURA Kent <kent@netbsd.org>
497 * configure.tgt: Add a target for i386-netbsdpe.
499 2002-05-23 Jakub Jelinek <jakub@redhat.com>
501 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
502 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
503 output section if necessary. Handle .tbss.
504 (lang_size_sections): Clear _raw_size for .tbss section
505 (it allocates space in PT_TLS segment only).
506 * ldwrite.c (build_link_order): Build link order for .tbss too.
508 2002-05-23 Alan Modra <amodra@bigpond.net.au>
510 * configure.in: Correct spelling of AC_PREREQ.
512 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
514 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
516 (autofilter_objlist): Add crtbegin.o, crtend.o.
518 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
520 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
521 (longopts): Add new option --exclude-libs.
522 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
523 (gld_${EMULATION_NAME}_parse_args): Use it.
524 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
525 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
527 (pe_dll_add_excludes): Set excludes->type.
528 (auto_export): Add new variable libname and set to archive basename if
529 abfd. Use it when filtering default and user-specified libarary
530 excludes. Let string "ALL" mean all libs when filtering user-specified
532 * ld.texinfo: Document --exclude-libs.
534 2002-05-22 Alan Modra <amodra@bigpond.net.au>
536 * ldemul.c (ldemul_new_vers_pattern): New function.
537 * ldemul.h (ldemul_new_vers_pattern): Declare.
538 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
539 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
540 * emultempl/ppc64elf.em (dotsyms): New static var.
541 (gld${EMULATION_NAME}_new_vers_pattern): New function.
542 (LDEMUL_NEW_VERS_PATTERN): Define.
543 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
544 (PARSE_AND_LIST_LONGOPTS): Likewise.
545 (PARSE_AND_LIST_ARGS_CASES): Handle them.
546 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
548 * emultempl/armcoff.em: Likewise.
549 * emultempl/armelf_oabi.em: Likewise.
550 * emultempl/beos.em: Likewise.
551 * emultempl/elf32.em: Likewise.
552 * emultempl/generic.em: Likewise.
553 * emultempl/gld960.em: Likewise.
554 * emultempl/gld960c.em: Likewise.
555 * emultempl/linux.em: Likewise.
556 * emultempl/lnk960.em: Likewise.
557 * emultempl/m68kcoff.em: Likewise.
558 * emultempl/mipsecoff.em: Likewise.
559 * emultempl/pe.em: Likewise.
560 * emultempl/sunos.em: Likewise.
561 * emultempl/ticoff.em: Likewise.
562 * emultempl/vanilla.em: Likewise.
564 2002-05-22 Alan Modra <amodra@bigpond.net.au>
566 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
567 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
568 (LIB_SEARCH_DIRS): No need to use "tr".
569 (COMPILE_IN): Only set for native targets.
570 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
571 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
572 * configure.tgt (powerpc*): Set tdir_*.
573 (powerpcle*): Correct targ_extra_emuls.
574 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
575 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
577 2002-05-22 Alan Modra <amodra@bigpond.net.au>
579 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
580 calling lang_add_entry.
582 2002-05-21 H.J. Lu (hjl@gnu.org)
584 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
586 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
588 * ld.texinfo: Updated for --allow-multiple-definition and
591 * ldmain.c (main): Initialize the allow_multiple_definition
594 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
595 (ld_options): Add --allow-multiple-definition.
596 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
598 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
600 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
601 (earmelfb_nbsd.c): New rule.
602 * Makefile.in: Regenerate.
603 * configure.tgt (armeb-*-netbsdelf*): New target.
604 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
605 (arm-*-netbsd*): Likewise.
606 * emulparams/armelfb_nbsd.sh: New file.
608 2002-05-18 Tom Rix <trix@redhat.com>
610 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
613 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
615 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
616 * Makefile.in: Regenerate.
617 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
619 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
621 * emulparams/avr1.sh: New file.
622 * emulparams/avr2.sh: New file.
623 * emulparams/avr3.sh: New file.
624 * emulparams/avr4.sh: New file.
625 * emulparams/avr5.sh: New file.
626 * scripttempl/avr.sc: New file.
628 2002-05-15 Alan Modra <amodra@bigpond.net.au>
630 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
631 (lang_place_orphans): Abort if just_syms_flag.
633 2002-05-10 Tom Rix <trix@redhat.com>
635 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
636 architecture and machine information in the output bfd.
637 (gld*_before_parse): Remove old arch and machine code.
638 (choose_target): Rename to gld*_choose_target.
639 (rtld): Change type to int.
640 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
641 objects in XCOFF archives.
642 * ldfile.h: Update copyright date.
644 2002-05-10 Jakub Jelinek <jakub@redhat.com>
646 * ldmain.c (main): Enable -z combreloc by default.
648 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
650 * Makefile.am: Honour DESTDIR.
651 * Makefile.in: Regenerate.
653 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
655 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
656 (lang_enter_overlay): Remove the last two parameters.
657 (lang_leave_overlay): Take them here instead.
658 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
659 (section): Pass LMA and crossref flag to lang_leave_overlay rather
660 than lang_enter_overlay.
661 * ldlang.c (lang_memory_region_lookup): Return null for null names.
662 (lang_output_section_statement_lookup): Initialize update_dot_tree.
663 (lang_size_sections_1): Evaluate it.
664 (lang_leave_output_section_statement): Rework LMA lookup.
665 (overlay_lma, overlay_nocrossrefs): Remove.
666 (lang_enter_overlay): Remove LMA and crossref arguments.
667 (lang_enter_overlay_section): Don't set the LMA here.
668 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
669 assignment to the last section's update_dot_tree. Unconditionally
670 use the load and run-time regions specified in the OVERLAY statement.
671 Likewise the first section's LMA. Only set the other sections' LMAs
672 when no load region is given.
674 2002-05-06 Nick Clifton <nickc@redhat.com>
676 * po/sv.po: New translation.
678 2002-05-04 Alan Modra <amodra@bigpond.net.au>
680 * emultempl/hppaelf.em (build_section_lists): New function.
681 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
682 and build_section_lists.
684 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
686 * ld.h: Fix formatting.
688 * ldfile.c: Likewise.
689 * ldlang.c: Likewise.
690 * ldmain.c: Likewise.
691 * lexsup.c: Likewise.
692 * pe-dll.c: Likewise.
694 2002-05-02 Alan Modra <amodra@bigpond.net.au>
696 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
697 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
698 (build_section_lists): Do output_section tests here.
700 2002-04-30 Tom Rix <trix@redhat.com>
702 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
704 2002-05-01 Alan Modra <amodra@bigpond.net.au>
706 Long branch stubs, multiple stub sections.
707 * emultempl/ppc64elf.em: Include ldctor.h.
708 (stub_file): New var.
709 (group_size): New var.
710 (ppc_create_output_section_statements): New function.
711 (struct hook_stub_info): New.
712 (hook_in_stub): New function.
713 (ppc_add_stub_section): New function.
714 (ppc_layout_sections_again): New function.
715 (build_section_lists): New function.
716 (gld${EMULATION_NAME}_finish): Rewrite.
717 (real_func): New var.
718 (ppc_for_each_input_file_wrapper): New function.
719 (ppc_lang_for_each_input_file): New function.
720 (lang_for_each_input_file): Define.
721 (PARSE_AND_LIST_PROLOGUE): Define.
722 (PARSE_AND_LIST_LONGOPTS): Define.
723 (PARSE_AND_LIST_OPTIONS): Define.
724 (PARSE_AND_LIST_ARGS_CASES): Define.
725 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
727 2002-04-30 Tom Rix <trix@redhat.com>
729 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
730 -blibpath, -bnolibpath support.
732 2002-04-30 Mark Mitchell <mark@codesourcery.com>
734 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
735 (eelf32ppcwindiss.c): New target.
736 * Makefile.in: Regenerated.
737 * configure.tgt: Add support for powerpc-*-windiss.
738 * emulparams/elf32ppcwindiss.sh: New file.
740 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
742 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
743 * ldexp.c (exp_print_token): Add "infix_p" argument.
744 (exp_print_tree): Update accordingly.
746 2002-04-28 Alan Modra <amodra@bigpond.net.au>
748 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
749 * Makefile.in: Regenerate.
750 * mpw-elfmips.c: Delete.
751 * mpw-eppcmac.c: Delete.
753 * mpw-idtmips.c: Delete.
755 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
757 * emulparams/shelf32.sh (MACHINE): Now sh5.
759 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
761 * ldgram.y: Fix syntax warning.
763 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
765 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
766 to prevent "-n" from being taken as an abbreviation for
767 "--no-pipeline-knowledge".
769 2002-04-08 Alan Modra <amodra@bigpond.net.au>
771 * ldlang.c (lang_size_sections_1): Don't complain about
772 SEC_NEVER_LOAD sections having no memory region specified.
774 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
776 2002-04-07 matthew green <mrg@redhat.com>
778 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
780 2002-04-04 Alan Modra <amodra@bigpond.net.au>
782 * dep-in.sed: Cope with absolute paths.
783 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
785 * Makefile.in: Regenerate.
787 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
789 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
791 2002-04-03 Jakub Jelinek <jakub@redhat.com>
793 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
794 is smaller than maximum, round dot up to common page boundary.
796 2002-03-28 Alan Modra <amodra@bigpond.net.au>
798 * configure.host: Set up for generic hosts first, then tweak as
799 necessary in more specific targets.
800 (HOSTING_LIBS): Include libgcc_eh.a if found.
802 2002-03-23 Andreas Jaeger <aj@suse.de>
804 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
806 2002-03-21 Alan Modra <amodra@bigpond.net.au>
808 * Makefile.am: Run "make dep-am".
809 * Makefile.in: Regenerate.
811 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
813 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
815 2002-03-20 Alan Modra <amodra@bigpond.net.au>
817 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
818 add the symbol to the linker hash table immediately.
819 (lang_place_undefineds): Split symbol creation out..
820 (insert_undefined): ..to here.
822 2002-03-18 David O'Brien <obrien@FreeBSD.org>
824 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
825 the contents of the buffer returned from basename function will are
826 getting overwritten while still being used.
828 2002-03-18 Jan Hubicka <jh@suse.cz>
829 Andreas Jaeger <aj@suse.de>
830 Andreas Schwab <schwab@suse.de>
832 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
833 * elf_x86_64.sh (ARCH): Set to i386:x86-64
834 set libraries to default to lib64 paths.
836 2002-03-18 Tom Rix <trix@redhat.com>
838 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
839 * configure.tgt : Same.
840 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
841 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
842 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
843 emulation parameters for better -b32, -b64 support.
844 * emulparms/aixrs6.sh : Same.
845 * emulparms/ppcmacos.sh : Same.
846 * emultempl/aix.em (choose_target) : Use new emulation parameters
847 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
848 * Makefile.in : Regenerate.
850 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
852 * po/fr.po: Updated version.
854 2002-03-18 Alan Modra <amodra@bigpond.net.au>
856 * ldmain.c (main): Move .text readonly flag fudges from here..
857 * ldlang.c (lang_process): ..to here.
859 2002-03-14 Alan Modra <amodra@bigpond.net.au>
861 * ldlang.c (lang_check): Remove the word size check added in last
862 change. Treat emitrelocations case as for relocatable links.
864 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
866 * po/fr.po: Updated version.
868 2002-03-13 Alan Modra <amodra@bigpond.net.au>
870 * ldlang.c (lang_check): Do relocatable link checks first, so that
871 warn_mismatch can't override. Check compatible and word size too.
873 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
875 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
877 2002-03-05 Jakub Jelinek <jakub@redhat.com>
879 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
882 2002-03-04 H.J. Lu <hjl@gnu.org>
884 * scripttempl/elf.sc: Put .preinit_array, .init_array and
885 .fini_array in the data segment.
887 2002-03-04 Alan Modra <amodra@bigpond.net.au>
889 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
891 2002-03-01 David Mosberger <davidm@hpl.hp.com>
893 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
894 .init_array, and .fini_array.
896 2002-02-20 Andreas Schwab <schwab@suse.de>
898 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
899 .IA64_unwind* in a relocatable link.
901 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
903 * NEWS: Mark 2.12 branch.
905 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
907 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
908 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
910 2002-02-18 Tom Rix <trix@redhat.com>
912 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
913 (gld*_before_allocation): Same.
914 (gld*_create_output_section_statements): Generate
915 __rtinit if run time linking. Add librtl.a to the link.
916 (gld*_read_file): Clean.
918 2002-02-18 Alan Modra <amodra@bigpond.net.au>
920 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
922 2002-02-18 David O'Brien <obrien@FreeBSD.org>
924 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
925 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
926 and eelf64alpha_fbsd.
927 * Makefile.in: Regenerate.
928 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
929 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
930 use a FreeBSD-specific emulation rather than the psABI one.
931 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
932 for all FreeBSD ELF systems.
933 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
935 * emulparams/elf32ppc_fbsd.sh: Likewise.
936 * emulparams/elf64_ia64_fbsd.sh: Likewise.
937 * emulparams/elf64_sparc_fbsd.sh: Likewise.
938 * emulparams/elf64alpha_fbsd.sh: Likewise.
939 * emulparams/elf_i386_fbsd.sh: Likewise.
940 * emulparams/elf_x86_64_fbsd.sh: Likewise.
942 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
944 * po/tr.po: Updated version.
946 2002-02-18 Alan Modra <amodra@bigpond.net.au>
948 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
951 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
953 * emultempl/mmo.em (mmo_after_open): Don't call
954 _bfd_mmix_check_all_relocs when producing ELF output.
956 2002-02-15 Richard Henderson <rth@redhat.com>
958 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
959 definition. Emit a unop+nop pair.
961 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
963 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
964 for presence of .MMIX.reg_contents.linker_allocated before early
967 * NEWS: Mention support for MMIX.
969 2002-02-15 Alan Modra <amodra@bigpond.net.au>
971 Support arbitrary length fill patterns.
972 * ld.texinfo (Output Section Fill): Describe fill expressions.
973 (FILL): Refer to the above.
974 * ldexp.h (etree_value_type): Add "str" field.
975 (union etree_union): Add "str" to "value" struct.
976 (exp_bigintop): Declare.
977 (exp_get_fill): Declare.
978 * ldexp.c: Include "safe-ctype.h".
979 (exp_intop): Set value.str to NULL.
980 (exp_bigintop): New function.
981 (new_rel): Pass in "str", and set new.str from it.
982 (new_rel_from_section): Set new.str to NULL.
983 (fold_name): Adjust calls to new_rel.
984 (exp_fold_tree): Likewise.
985 (exp_get_fill): New function.
986 * ldgram.y (struct big_int bigint, fill_type *fill): New.
987 (INT): Returns a "bigint". Adjust all code handling INTs.
988 (fill_opt): Returns a "fill".
989 (fill_exp): Split out of fill_opt, use for FILL.
990 * ldlang.h (struct _fill_type): New.
991 (fill_type): Move typedef to ldexp.h.
992 (lang_output_section_statement_type): "fill" is now a pointer.
993 (lang_fill_statement_type): Likewise.
994 (lang_padding_statement_type): Likewise.
995 (lang_add_fill): Now takes a "fill_type *" param.
996 (lang_leave_output_section_statement): Likewise.
997 (lang_do_assignments): Likewise.
998 (lang_size_sections): Likewise.
999 (lang_leave_overlay_section): Likewise.
1000 (lang_leave_overlay): Likewise.
1001 * ldlang.c: Include ldgram.h after ldexp.h.
1002 (lang_output_section_statement_lookup): Adjust for fill_type change.
1003 (print_fill_statement): Likewise.
1004 (print_padding_statement): Likewise.
1005 (insert_pad): Now takes a "fill_type *" arg.
1006 (size_input_section): Likewise.
1007 (lang_size_sections_1): Likewise.
1008 (lang_size_sections): Likewise.
1009 (lang_do_assignments): Likewise.
1010 (lang_add_fill): Likewise.
1011 (lang_leave_output_section_statement): Likewise.
1012 (lang_leave_overlay_section): Likewise.
1013 (lang_leave_overlay): Likewise.
1014 Adjust all callers of the above function.
1015 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1016 starting with "0X" as well as "0x". Return bigint.str for hex
1017 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1018 Always use base 16 for numbers starting with "$".
1019 * ldmain.c: Include ldgram.h after ldexp.h.
1020 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1021 of bfd_fill_link_order.
1022 * pe-dll.c: Adjust lang_do_assignments calls.
1023 * emultempl/elf32.em: Likewise.
1024 * emultempl/hppaelf.em: Likewise.
1025 * emultempl/ppc64elf.em: Likewise.
1026 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1027 lang_add_assignment call.
1028 * emultempl/pe.em: Likewise.
1030 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1032 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1033 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1034 the pattern in question is not a regexp.
1035 * ldlang.c: Likewise.
1036 * ldlang.h: Likewise.
1037 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1039 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1041 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1042 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1043 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1044 * ldexp.c (exp_data_seg): New variable.
1045 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1046 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1047 (exp_fold_tree): Handle DATA_SEGMENT_END.
1048 Pass allocation_done when recursing instead of hardcoding
1049 lang_allocating_phase_enum.
1050 * ldexp.h (exp_data_seg): New.
1051 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1052 (lang_size_sections): New.
1053 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1054 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1055 if COMMONPAGESIZE is defined.
1056 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1057 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1058 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1059 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1060 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1063 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1065 * Makefile.in: Regenerate.
1067 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1069 * lexsup.c: Remove strtoul declaration.
1071 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1073 * ldmain.c: Add prototype for main ().
1074 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1075 * emultempl/lnk960.em (lnk960_choose_target): Function should
1078 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1080 * ldlang.c (entry_section): New initialised variable.
1081 (lang_finish): Use it.
1082 * ldlang.h (entry_section): Declare.
1083 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1084 entry_section to ".opd".
1086 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1088 * ld.texinfo (Options): Add back in -nostdlib documentation,
1089 which had been inadvertently removed.
1091 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1093 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1094 register section vma to a sane value after emitting error. Make
1095 fatal conditions cause program exit when emitting message.
1097 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1099 * configure.tgt: Add or32-*-rtems target.
1101 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1103 Contribute sh64-elf.
1104 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1105 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1106 in OTHER_RELOCATABLE_SECTIONS.
1107 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1108 * emulparams/shelf32.sh (STACK_ADDR): Define.
1109 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1110 (OTHER_SECTIONS): this. Removed stack settings.
1111 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1112 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1113 2001-03-12 DJ Delorie <dj@redhat.com>
1114 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1115 relaxing if any shmedia or mixed sections are found.
1116 2001-03-07 DJ Delorie <dj@redhat.com>
1117 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1118 einfo. Gracefully decline to output to non-elf formats.
1119 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1120 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1121 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1122 * emulparams/shelf32.sh: Ditto.
1123 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1124 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1126 2001-01-10 Ben Elliston <bje@redhat.com>
1127 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1128 non-portable shell constructs. From Hans-Peter Nilsson.
1129 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1130 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1131 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1132 dependencies to the shell script include chain.
1133 * Makefile.in: Regenerate.
1134 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1135 * emultempl/sh64elf.em: Update and tweak comments.
1136 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1137 make a .cranges section SEC_IN_MEMORY.
1138 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1139 * emultempl/sh64elf.em
1140 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1141 .cranges section found to be necessary; continue and set stored
1142 section contents flags for sections with non-mixed contents.
1143 Use a struct sh64_section_data container and sh64_elf_section_data
1144 to store contents-type flags.
1145 Remove unused update of "isec".
1146 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1147 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1148 access contents-type flags. Assert that the associated container
1149 is initialized. Use that container, not elf_gp_size, to hold size
1150 of linker-generated cranges contents.
1151 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1152 * emultempl/sh64elf.em
1153 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1154 there's already a .cranges section. When section flag difference
1155 is found, don't NULL-check cranges a second time. Tweak comments.
1156 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1157 merging, not max size, as size of ld-generated .cranges contents.
1158 Don't set ELF section flags in output section. When checking for
1159 needed .cranges descriptors, don't use a variable; compare
1160 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1162 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1163 * emultempl/sh64elf.em: New file.
1164 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1165 * Makefile.in: Regenerate.
1166 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1167 (OTHER_RELOCATING_SECTIONS): Ditto.
1168 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1169 * emulparams/shlelf32.sh: Stub out all settings except
1170 OUTPUT_FORMAT. Source shelf32.sh.
1171 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1172 OTHER_RELOCATING_SECTIONS.
1173 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1174 * emulparams/shlelf64.sh: Stub out all settings except
1175 OUTPUT_FORMAT. Source shelf64.sh.
1176 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1177 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1179 (DATA_START_SYMBOLS): Define, provide ___data.
1180 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1181 for consecutive .data section.
1182 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1183 section after .data section.
1184 * emulparams/shlelf64.sh: Ditto.
1185 * emulparams/shelf32.sh: Ditto.
1186 (ALIGNMENT): Define to 8.
1187 * emulparams/shelf32.sh: Ditto.
1188 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1189 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1190 built-in linker scripts.
1191 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1192 * emulparams/shlelf64.sh: New.
1193 * emulparams/shelf64.sh: New.
1194 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1196 * Makefile.am: Add support for shlelf64 and shelf64.
1197 * Makefile.in: Regenerate.
1198 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1199 * configure.tgt (sh64-*-elf*): Add shelf as default.
1200 Add shlelf to targ_extra_emuls.
1201 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1202 * emulparams/shelf32.sh: New file.
1203 * emulparams/shlelf32.sh: New file.
1204 * Makefile.am: Add support for shlelf32 and shelf32.
1205 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1206 * Makefile.in: Regenerate.
1208 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1210 * ldlang.c (lang_reset_memory_regions): Rename from
1211 reset_memory_regions. Change all callers. Make public.
1212 * ldlang.h (lang_reset_memory_regions): Prototype.
1213 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1214 lang_reset_memory_regions before lang_size_sections.
1215 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1216 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1218 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1220 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1221 arithmetic when checking for too many global registers.
1223 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1225 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1226 (ehppanbsd.c): New rule.
1227 * Makefile.in: Regenerate.
1228 * configure.tgt (hppa*-*-netbsd*): New target.
1229 * emulparams/hppalinux.sh: Add comment to check other files
1230 that source this file it is modified, and list which
1232 * emulparams/hppanbsd.sh: New file.
1234 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1236 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1239 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1241 Support on-demand global register allocation from
1242 R_MMIX_BASE_PLUS_OFFSET relocs.
1243 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1244 mmix_set_reg_section_vma. Call
1245 _bfd_mmix_finalize_linker_allocated_gregs.
1246 (mmix_before_allocation): New function.
1247 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1248 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1249 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1250 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1251 before .MMIX.reg_contents.
1252 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1253 (mmo_after_open): New function.
1254 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1255 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1256 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1258 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1260 * emulparams/or32.sh: New file.
1261 * emulparams/or32elf.sh: New file.
1262 * scripttempl/or32.sc: New file.
1263 * configure.tgt : Add support for or32.
1264 * configure: Regenerate
1265 * Makefile.am: Add support for or32.
1266 * Makefile.in: Regenerate.
1267 * NEWS: Mention support for or32.
1268 * po/ld.pot: Regenerate.
1270 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1271 Mitch Lichtenberg <mpl@broadcom.com>
1273 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1274 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1275 reloc creation (ld --embedded-relocs).
1277 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1279 * configure: Regenerated.
1281 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1283 * Makefile.am (install): Depend on install-info.
1284 * Makefile.in: Regenerate.
1286 2002-01-26 Christian Rose <menthos@menthos.com>
1288 * ldmain.c (main): Use full sentences to ease translation.
1290 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1292 * po/fr.po: Updated version.
1294 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1296 * po/es.po: Updated version.
1298 2002-01-25 Andreas Jaeger <aj@suse.de>
1300 * ldlex.l (yy_input): Correct error check.
1302 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1304 * ldmisc.c (demangle): Put back dots when string not demangled.
1306 2002-01-22 Richard Henderson <rth@redhat.com>
1308 * emulparams/elf64alpha.sh (NOP): Use unop.
1310 2002-01-21 Andreas Jaeger <aj@suse.de>
1312 * ldlex.l: Use fread instead of read.
1314 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1316 * configure.tgt (ia64-*-netbsd*): New target.
1318 2002-01-21 H.J. Lu <hjl@gnu.org>
1320 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1322 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1324 2002-01-18 Andreas Jaeger <aj@suse.de>
1326 * ldver.c (ldversion): Update year.
1328 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1330 * po/ld.pot: Regenerate.
1332 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1334 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1335 * Makefile.in: Regenerate.
1336 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1337 * emultempl/ppc64elf.em: New file.
1339 2002-01-15 DJ Delorie <dj@redhat.com>
1341 * scripttempl/pe.sc: Add support for constructor priorities.
1343 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1345 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1346 * emulparams/avr23xx.sh: Likewise.
1347 * emulparams/avr4433.sh: Likewise.
1348 * emulparams/avr44x4.sh: Likewise.
1349 * emulparams/avr85xx.sh: Likewise.
1350 * emulparams/avrmega103.sh: Likewise.
1351 * emulparams/avrmega161.sh: Likewise.
1352 * emulparams/avrmega603.sh: Likewise.
1353 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1355 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1357 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1358 archive is excluded.
1360 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1362 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1363 (eshelf_nbsd.c): New rule.
1364 (eshlelf_nbsd.c): New rule.
1365 * Makefile.in: Regenerate.
1366 * configure.tgt (sh*le-*-netbsdelf*): New target.
1367 (sh*-*-netbsdelf*): New target.
1368 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1369 * ld/emulparams/shelf_nbsd.sh: New emulation.
1370 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1372 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1374 * po/es.po: New file: Spanish translation.
1375 * configure.in (ALL_LINGUAS): Add es.
1376 * configure: Regenerate.
1378 2002-01-06 John Marshall <jmarshall@acm.org>
1380 * ld.texinfo: Note that --emit-relocs is currently only
1381 implemented for ELF.
1383 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1385 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1386 of bfd_section_list_remove and bfd_section_list_insert macros.
1387 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1388 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1390 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1392 * configure.tgt (x86_64-*-netbsd*): New target.
1394 2001-12-21 Tom Rix <trix@redhat.com>
1396 (gld*_create_output_section_statements): New function.
1397 For -binitfini support.
1398 * emultempl/aix.em (gld*_before_parse): Fix comment.
1399 * emultempl/aix.em (gld*_parse_args): Fix comment.
1401 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1403 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1405 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1407 * configure.tgt (arm-*-netbsdelf*): Add target.
1408 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1409 * emulparams/armelf_nbsd.sh: Added.
1410 * Makefile.am: Add rules for earmelf_nbsd.
1411 * Makefile.in: Regenerate.
1413 2001-12-19 Andreas Jaeger <aj@suse.de>,
1414 Susanne Oberhauser <froh@suse.de>
1416 * configure.host: Add rules for x86_64-*linux-gnu. Change
1417 s390x-linux entry to use gcc to report configuration, replace gcc
1418 with $CC in s390-linux
1420 2001-12-19 Andreas Jaeger <aj@suse.de>
1422 * ld.texinfo (VERSION): Fix markup.
1424 2001-12-18 matthew green <mrg@eterna.com.au>
1426 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1427 (m68kelfnbsd.c): New rule.
1428 * Makefile.in: Regenerate.
1429 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1430 (m68*-*-netbsd*4k*): .. this.
1431 (m68*-*-netbsdelf*): New target.
1432 (m68*-*-netbsd*): Also include ELF support.
1433 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1434 * emulparams/m68kelfnbsd.sh: New emulation.
1436 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1438 * ldgram.y (vers_node): Support anonymous version tags.
1439 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1440 tag is not defined together with non-anonymous versions.
1441 * ld.texinfo: Document it.
1443 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1445 * po/tr.po: New file: Turkish translation.
1446 * configure.in (ALL_LINGUAS): Add tr.
1447 * configure: Regenerate.
1449 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1451 * Makefile.am: Add rules for eelf64alpha_nbsd.
1452 * Makefile.in: Regenerate.
1453 * configure.tgt (alpha*-*-netbsd*): Set
1454 targ_emul to elf64alpha_nbsd.
1455 * emulparams/elf64alpha_nbsd.sh: Added.
1457 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1460 section_tail when fiddling with section list.
1461 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1462 broken into separate strings to make translation easier.
1463 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1464 fiddling with section list.
1465 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1467 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1469 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1471 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1473 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1475 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1477 * emultempl/elf32.em (finish): Supply output_bfd
1478 to bfd_elf*_discard_info.
1479 (OPTION_EH_FRAME_HDR): Define.
1480 (longopts): Add --eh-frame-hdr.
1481 (parse_args): Handle it.
1482 (list_options): Add --eh-frame-hdr to help.
1483 * emultempl/hppaelf.em (finish): Supply output_bfd
1484 to bfd_elf*_discard_info.
1485 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1487 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1489 * lexsup.c (parse_args): Don't pass shortopts to second call to
1490 getopt functions. Restore optind rather than decrementing before
1491 second call. Remove errind as it now duplicates last_optind.
1493 2001-12-11 Christopher Faylor <cgf@redhat.com>
1495 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1497 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1498 Richard Henderson <rth@redhat.com>
1500 * Makefile.am: Add support for xstormy16.
1501 * configure.tgt: Add support for xstormy16.
1502 * Makefile.in: Regenerate.
1503 * emulparams/elf32xstormy16.sh: New file.
1504 * scripttempl/xstormy16.sc: New file.
1506 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1508 * Makefile.in (LIB_PATH): Make configurable.
1509 (GENSCRIPTS): Set LIB_PATH in environment.
1510 * configure.in: Substitute LIB_PATH.
1511 * configure: Regenerate.
1512 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1513 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1515 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1517 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1518 describing the -N option so that it is easier to translate into
1521 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1523 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1524 statements describing a single option with a single, newline
1525 escaped fprintf. This allows better translation into other
1528 * ldmain.c (add_archive_element): Combine multiple strings
1529 into a single string to permit better translation into other
1532 2001-12-05 Tom Rix <trix@redhat.com>
1534 * Makefile.am: Remove eaixppc64.
1535 * Makefile.in: Regenerate.
1537 2001-12-04 Tom Rix <trix@redhat.com>
1539 * emultempl/aix.em (choose_target): Change default target to
1540 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1542 (gld*_read_file): Fix typo.
1543 (change_symbol_mode): Add prototype.
1546 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1547 * emulparams/aixrs6.sh : Same.
1548 * emulparams/ppcmacos.sh : Same.
1549 * emulparams/aixppc64.sh : Delete file.
1550 * emultempl/aix.em : Formatting changes.
1552 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1554 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1555 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1557 (OTHER_END_SYMBOLS): Fix formatting.
1558 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1559 (OTHER_END_SYMBOLS): Fix formatting.
1561 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1563 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1565 2001-12-02 Tom Rix <trix@redhat.com>
1567 * configure.tgt : Remove eaixppc64 emulations.
1568 * Makefile.in : Remove eaixppc64.c
1569 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1570 (ldemul_default_target): Same.
1571 * emultempl/gld960.em (gld960_choose_target): Same.
1572 * emultempl/gld960c.em (gld960_choose_target): Same.
1573 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1574 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1575 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1576 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1577 * emultempl/aix.em (choose_target): New function. Handle emulation of
1580 2001-11-27 H.J. Lu <hjl@gnu.org>
1582 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1583 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1584 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1585 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1586 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1587 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1588 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1589 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1591 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1594 (REL_SDATA): Likewise.
1595 (REL_SBSS): Likewise.
1596 (REL_SDATA2): Likewise.
1597 (REL_SBSS2): Likewise.
1598 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1601 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1603 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1605 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1607 2001-11-22 H.J. Lu <hjl@gnu.org>
1609 * Makefile.in: Regenerated with automake based on automake
1610 1.4-8 in RedHat 7.1.
1612 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1614 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1615 (config.status): Delete rule.
1616 Add extra dependencies to cover sourced emulparams files.
1617 * Makefile.in: Regenerate.
1619 * scripttempl/elf.sc: Order <section>, <section>.* and
1620 corresponding linkonce sections as seen in input files.
1621 Formatting fixes. Zero vma of all sections if not relocating.
1622 (STACK): Define and insert if STACK_ADDR defined.
1623 (OTHER_RELOCATING_SECTIONS): Delete.
1624 (OTHER_END_SYMBOLS): Define.
1625 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1626 (OTHER_READWRITE_SECTIONS): Likewise.
1627 (OTHER_GOT_SECTIONS): Likewise.
1628 (OTHER_SDATA_SECTIONS): Likewise.
1629 (OTHER_BSS_SECTIONS): Likewise.
1630 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1631 (OTHER_READWRITE_SECTIONS): Likewise.
1632 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1633 (OTHER_READWRITE_SECTIONS): Likewise
1635 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1636 (STACK_ADDR): Define.
1637 * emulparams/armelf_oabi.sh: As for armelf.sh.
1638 * emulparams/elf32mcore.sh: As for armelf.sh.
1639 * emulparams/h8300elf.sh: As for armelf.sh.
1640 * emulparams/mn10200.sh: As for armelf.sh.
1641 * emulparams/shelf.sh: As for armelf.sh.
1643 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1644 (OTHER_END_SYMBOLS): Define.
1645 * emulparams/m32relf.sh: As for elf32fr30.sh.
1646 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1647 * emulparams/h8300self.sh: As for elf32fr30.sh.
1649 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1650 defines with RELOCATING test.
1651 (OTHER_SDATA_SECTIONS): Likewise.
1652 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1653 (OTHER_END_SYMBOLS): ..this.
1654 * emulparams/crislinux.sh: As for criself.sh.
1656 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1658 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1659 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1660 normal and linkonce sections as seen in input files.
1661 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1662 (TEXT_DYNAMIC): Likewise.
1663 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1664 (OTHER_SDATA_SECTIONS): Likewise.
1665 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1666 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1667 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1668 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1669 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1670 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1671 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1672 sections as seen in input files.
1673 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1674 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1676 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1677 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1678 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1679 (OTHER_SECTIONS): Instead, use this..
1680 (OTHER_END_SYMBOLS): ..and this.
1682 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1683 * emulparams/elf32bsmip.sh: Likewise.
1684 * emulparams/elf32btsmip.sh: Likewise.
1685 * emulparams/elf32ebmip.sh: Likewise.
1686 * emulparams/elf32lmip.sh: Likewise.
1687 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1688 * emulparams/elf32lsmip.sh: Likewise.
1689 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1690 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1691 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1692 * emulparams/elf64btsmip.sh: Likewise.
1693 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1694 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1695 * emulparams/elf32ppclinux.sh: Likewise.
1696 * emulparams/elf32ppcsim.sh: Likewise.
1697 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1698 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1699 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1700 * emulparams/h8300self.sh: Likewise.
1701 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1702 * emulparams/sh.sh: Comment.
1703 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1704 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1705 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1707 2001-11-21 David Heine <dlheine@tensilica.com>
1708 Alan Modra <amodra@bigpond.net.au>
1710 * ldlang.c (map_input_to_output_sections): Replace "break"
1711 accidentally removed with 2001-08-03 change.
1712 (lang_gc_sections_1): Likewise.
1714 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1716 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1718 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1720 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1721 of false when calling lang_size_sections.
1722 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1724 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1726 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1727 function when LDEMUL_FINISH isn't set to the same name. Don't
1728 call ${LDEMUL_FINISH}.
1729 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1730 * emultempl/armelf.em (arm_elf_finish): Call
1731 gld${EMULATION_NAME}_finish.
1732 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1733 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1734 hppaelf_layout_sections_again if necessary.
1735 (need_laying_out): New var.
1736 (hppaelf_layaout_sections_again): Rename to
1737 hppaelf_layout_sections_again. Clear need_laying_out.
1738 (PARSE_AND_LIST_OPTIONS): Format text.
1740 2001-11-14 H.J. Lu <hjl@gnu.org>
1742 * emultempl/armelf.em (arm_elf_finish): Renamed from
1743 gld${EMULATION_NAME}_finish.
1744 (LDEMUL_FINISH): Set to arm_elf_finish.
1746 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1748 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1749 (struct ld_emulation_xfer_struct): Use it.
1751 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1753 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1754 additional symbols referenced by newer crt0.o files from HP.
1756 2001-11-12 Anthony Green <green@redhat.com>
1758 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1760 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1762 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1763 * Makefile.in: Regenerate.
1765 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1767 * ld.texinfo: Use @command for commands, @option for options.
1768 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1770 * Makefile.in: Rebuild.
1772 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1774 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1775 Add support for targets.
1777 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1779 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1780 * configure: Regernate.
1781 * po/fr.po: New file.
1782 * po/sv.po: New file.
1784 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1786 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1787 as little endian default and to support big endian.
1789 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1791 * ld.texinfo (Options): Document new option, -nostdlib.
1792 * lexsup.c (OPTION_NOSTDLIB): New definition.
1793 (ld_options): Add entry for "nostdlib".
1794 (parse_args): Handle OPTIONS_NOSTDLIB.
1795 * ldfile.c (ldfile_add_library_path): Don't add directories
1796 to the search path if they weren't specified on the command line
1797 and -nostdlib was specified.
1798 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1800 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1802 * lexsup.c (parse_args): Prevent infinite parsing loop when
1803 "-rpath.a" is specified on the command line.
1804 Replace calls to fprintf with calls to einfo.
1806 2001-10-31 John Marshall <jmarshall@acm.org>
1808 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1809 appear only once across all the linker scripts involved in a link
1810 invocation no longer applies. Make the documentation reflect
1813 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1815 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1817 (sh-*-linux*): Added targ_extra_libpath.
1819 2001-10-31 David Heine <dlheine@tensilica.com>
1821 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1822 for padding statements.
1824 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1826 * configure.tgt (mmix-*-*): New target.
1827 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1828 Add dependencies to match.
1829 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1830 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1831 scripttempl/mmo.sc: New files.
1832 * gen-doc.texi: @set MMIX.
1833 * ld.texinfo: Ditto.
1834 [MMIX] Add MMIX node.
1835 * Makefile.in: Regenerate.
1837 2001-10-29 Kazu Hirata <kazu@hxi.com>
1839 * ldlang.c: Fix a comment typo.
1841 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1843 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1844 entries, and match *-*-linux*.
1846 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1848 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1849 with ldlex_script, ldlex_popstate.
1850 (ifile_p1): Likewise.
1851 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1853 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1854 to 1. Don't BEGIN(SCRIPT).
1855 (lex_redirect): Similarly.
1856 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1858 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1860 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1861 __EH_FRAME_END__ and accept eh frames into data section.
1862 Add ctor and dtor sections.
1864 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1866 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1867 (auto-export): Fix indentation.
1869 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1871 * pe-dll.c (autofilter_objectlist): Add startup objects
1873 (auto-export): Constify char * p.
1874 Extract file basename and use strcmp rather than ststr
1877 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1879 * ldmain.c (get_emulation): Improve comment about the handling
1882 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1884 * po/POTFILES.in: Regenerate.
1886 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1888 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1889 -z nocopyreloc and -z nocombreloc usage strings.
1891 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1893 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1896 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1898 * scripttempl/armaout.sc: Place .bss section after end of aligned
1899 data section to match behaviour of aout code in constructrion of
1902 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1904 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1905 startup files for mingw32 dlls to list.
1907 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1909 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1911 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1913 * configure.tgt (targ): Add arm9e-*-elf.
1915 2001-10-05 H.J. Lu <hjl@gnu.org>
1917 * genscripts.sh: Fix a typo in the last change.
1919 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1921 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1922 -z nocombreloc in usage.
1924 2001-10-03 Jim Blandy <jimb@redhat.com>
1926 * genscripts.sh: Include a comment at the top of each generated
1927 script, explaining its purpose.
1929 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1931 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1932 * NEWS: Mention -z nocopyreloc.
1933 * ld.texinfo (Options): Describe nocopyreloc.
1935 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1937 * configure: Regenerate.
1939 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1941 * ldver.h (ld_program_version): Remove declaration.
1942 * lexsup.c (parse_args): Move printing of copyright message..
1943 * ldver.c (ldversion): .. to here.
1944 Use BFD_VERSION_STRING in place of BFD_VERSION.
1945 (ld_program_version): Remove.
1946 * Makefile.am (Makefile): Depend on bfd/configure.in.
1948 * Makefile.in: Regenerate.
1950 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1952 * Makefile.am: Update dependencies with "make dep-am".
1953 * Makefile.in: Regenerate.
1955 2001-09-29 John Reiser <jreiser@BitWagon.com>
1957 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1958 * lexsup.c: Add --no-define-common commandline option.
1959 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1960 * ldlex.l: Likewise.
1961 * ld.h: Add command_line.inhibit_common_definition.
1962 * ldmain.c (main): Initialize.
1963 * ld.texinfo: Document.
1965 2001-09-29 Alan Modra <amodra@bigpond.net.au>
1967 * ldlang.c (section_already_linked): Remove assignment to kept_section.
1969 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1971 * ldmisc.c (USE_STDARG): Remove.
1972 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1977 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1978 declarations. Update copyright.
1980 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1982 * pe-dll.c: Remove obsoleted declaration of
1983 pe_get_data_import_dll_name.
1984 (pe_create_import_fixup): Fix thinko.
1986 * ld.texinfo(enable-auto-import): Clarify the explanation.
1988 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1990 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1991 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1992 DLL_SUPPORT controlled code.
1994 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1996 * emultempl/pe.em(pe_data_import_dll): Make static.
1997 (pe_get_data_import_dll_name): New accessor function.
1998 * pe-dll.c(pe_create_import_fixup): call
1999 pe_get_data_import_dll_name() from pe.em, instead of
2000 directly accessing pe_data_import_dll variable from pe.em.
2002 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2004 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2005 (def_file_add_directive): Use ISSPACE instead of isspace.
2006 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2007 isdigit/isxdigit/isalpha/isalnum.
2008 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2009 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2010 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2011 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2013 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2014 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2016 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2017 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2018 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2019 (ctor_prio): Use ISDIGIT instead of isdigit.
2020 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2021 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2022 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2024 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2025 (stricpy): Use TOLOWER instead of isupper/tolower.
2026 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2027 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2028 (lex_warn_invalid): Use ISPRINT instead of isprint.
2029 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2030 (main): For gettext, also set the LC_CTYPE locate facet.
2031 (add_keepsyms_file): Use ISSPACE instead of isspace.
2032 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2033 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2034 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2035 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2036 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2037 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2038 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2039 (quoteput): Use ISSPACE instead of isspace.
2040 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2043 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2045 * deffilep.y (def_stash_module): Constify "name" param.
2047 * pe-dll.c: Replace CONST with const throughout.
2048 (quick_symbol): Constify "n1", "n2", "n3" params.
2049 (make_singleton_name_thunk): Constify "import" param. Make
2050 "buffer_len" a size_t.
2051 (make_import_fixup_entry): Constify "name", "fixup_name",
2052 "dll_symname" params.
2053 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2054 (pe_get32): Likewise.
2055 (pe_implied_import_dll): Likewise.
2057 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2058 (sort_by_section_name): Likewise.
2060 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2061 (make_import_fixup): Cast printf arg, rel->address to long rather
2063 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2065 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2067 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2068 defines BufferSize. Increase buffer size by one.
2070 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2072 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2074 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2076 * configure.tgt: Add arm-openbsd target.
2078 2001-09-12 H.J. Lu <hjl@gnu.org>
2080 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2082 (ALL_64_EMULATIONS): Here.
2083 * Makefile.in: Regenerated.
2085 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2087 * emultempl/pe.em(make_import_fixup): change signature to
2088 take asection as well as arelec; we need this for proper
2089 error reporting. Only call pe_create_import_fixup() if
2090 there is no attempt to add a constant addend to the reloc;
2091 otherwise, report error condition.
2092 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2093 since final argument is a pointer to make_import_fixup().
2094 Change call to cb() to match make_import_fixup() signature.
2095 (make_import_fixup_mark): make buffer_len unsigned.
2096 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2098 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2100 * ld.texinfo: add verbose documentation for auto-import
2101 direct-addressing workaround, to compliment the terse
2104 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2106 * scripttempl/v850.sc: Add gcc_except_table sections.
2108 2001-09-11 Jeffrey A Law (law@cygnus.com)
2110 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2111 * emulparams/h8300self.sh: Similarly.
2113 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2115 * ld.texinfo (Options, --stack): Correct default value for stack
2118 2001-09-05 Tom Rix <trix@redhat.com>
2120 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2122 2001-09-03 Andreas Jaeger <aj@suse.de>
2124 * emultempl/beos.em: Declare prototypes for comparions functions,
2127 2001-09-02 Andreas Jaeger <aj@suse.de>
2129 * emultempl/aix.em: Add missing prototype.
2130 * emultempl/lnk960.em: Likewise.
2131 * emultempl/vanilla.em: Likewise.
2132 * emultempl/armcoff.em: Likewise.
2133 * emultempl/armelf_oabi.em: Likewise.
2134 * emultempl/beos.em: Likewise.
2135 * emultempl/gld960c.em: Likewise.
2136 * emultempl/gld960.em: Likewise.
2138 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2139 for prototype declaration.
2141 2001-08-31 Eric Christopher <echristo@redhat.com>
2142 Jason Eckhardt <jle@redhat.com>
2144 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2146 2001-08-31 Andreas Jaeger <aj@suse.de>
2148 * emultempl/pe.em: Add missing prototypes.
2149 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2150 pe_find_data_imports.
2151 (pr_sym): Add unused attribute.
2153 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2155 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2156 default from coff to elf.
2158 2001-08-29 Jeff Law <law@redhat.com>
2160 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2162 * emulparams/h8300self.sh: Similarly.
2164 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2166 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2168 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2169 * configure.tgt (h8300-*-elf*): New case.
2170 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2171 * emulparams/h8300self.sh: New file.
2172 * Makefile.in: Regenerated.
2174 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2176 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2179 2001-08-27 Linus Nordberg <linus@swox.com>
2180 Alan Modra <amodra@bigpond.net.au>
2182 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2183 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2185 * Makefile.in: Regenerate.
2186 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2187 entries to correct alphabetical position.
2188 * emulparams/elf64ppc.sh: New.
2189 * emulparams/elf64lppc.sh: New.
2191 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2193 * ldmain.c (main): Declare BSIZE as static.
2195 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2197 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2198 into .rel.dyn resp. .rela.dyn if combreloc.
2199 (get_script): If .x linker script is equal to .xn, only put it
2200 once into the binary.
2201 Add .xc and .xsc scripts.
2202 (parse_args): Handle -z combreloc and -z nocombreloc.
2203 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2204 For .xc and .xsc scripts put all .rel* or .rela* input sections
2205 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2206 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2208 Strip trailing whitespace from script.
2209 Generate .xc and .xsc scripts if requested.
2210 * ldmain.c (main): Initialize link_info.combreloc and
2211 link_info.spare_dynamic_tags.
2212 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2213 (ld_options): Add --spare-dynamic-tags option.
2214 (parse_args): Likewise.
2215 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2216 * ldint.texinfo: Document .xc and .xsc linker scripts.
2217 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2219 2001-08-22 H.J. Lu <hjl@gnu.org>
2221 * emulparams/elf32fr30.sh: Add a newline.
2223 2001-08-21 Andreas Jaeger <aj@suse.de>
2225 * deffilep.y: Add missing prototypes.
2226 * pe-dll.c: Likewise.
2228 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2230 * ldlang.c (insert_pad): Fix typos in last patch.
2232 * ldlang.c: When traversing lang_statement_union_type lists,
2233 consistently use "header.next" rather than "next".
2234 * mpw-eppcmac.c: Likewise.
2235 * emultempl/beos.em: Likewise.
2236 * emultempl/hppaelf.em: Likewise.
2237 * emultempl/pe.em: Likewise.
2238 * ldlang.h (union lang_statement_union): Remove "next" field.
2240 * ldlang.c (insert_pad): Use offsetof macro.
2241 (lang_size_sections): Always neuter padding statements.
2242 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2244 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2245 passed to lang_size_sections.
2246 (pe_exe_fill_sections): Likewise.
2247 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2248 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2250 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2252 * emultempl/aix.em: Formatting fixes.
2254 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2256 * ldlang.c (insert_pad): Make use of an existing pad statement if
2257 available. Move code calculating alignment, adjusting section
2258 alignment power, and adjusting dot to ..
2259 (size_input_section): .. here. Remove unused relax param.
2260 (lang_size_sections): Change boolean `relax' param to boolean *.
2261 Adjust call to size_input_section. Make use of insert_pad to
2262 place pad after the assignment statement. If relaxing, zap
2264 (reset_memory_regions): Reset output_bfd section sizes too.
2265 (relax_again): Move to..
2266 (lang_process): ..here. Adjust call to lang_size_sections, and
2267 remove duplicated code.
2268 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2270 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2272 * ld.texinfo: Document that fill values now use the four least
2274 * emulparams/elf32fr30.sh (NOP): Update.
2275 * emulparams/elf32mcore.sh: Likewise.
2276 * emulparams/elf64_s390.sh: Likewise.
2277 * emulparams/elf_i386.sh: Likewise.
2278 * emulparams/elf_i386_be.sh: Likewise.
2279 * emulparams/elf_i386_chaos.sh: Likewise.
2280 * emulparams/elf_i386_ldso.sh: Likewise.
2281 * emulparams/elf_s390.sh: Likewise.
2282 * emulparams/elf_x86_64.sh: Likewise.
2283 * emulparams/i386moss.sh: Likewise.
2284 * emulparams/i386nw.sh: Likewise.
2285 * emulparams/m68kelf.sh: Likewise.
2286 * scripttempl/elf.sc: Update NOP comment.
2287 * scripttempl/elfi370.sc: Likewise.
2288 * scripttempl/elfm68hc11.sc: Likewise.
2289 * scripttempl/elfm68hc12.sc: Likewise.
2290 * scripttempl/nw.sc: Likewise.
2292 2001-08-15 Tom Rix <trix@redhat.com>
2294 * ldgram.y (saved_script_handle): Initialize to NULL.
2295 * ldmain.c (main): Change check on saved_script_handle.
2297 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2299 * emultempl/elf32.em: Formatting fixes.
2300 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2301 looking at sec->owner.
2302 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2303 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2304 unused code, and reorganize orphan section placement code.
2306 * ldlang.c (wild_doit): Rename to lang_add_section.
2307 * ldlang.h: Here too.
2308 * mpw-elfmips.c: And here.
2309 * emultempl/beos.em: And here.
2310 * emultempl/elf32.em: And here.
2311 * emultempl/hppaelf.em: And here.
2312 * emultempl/pe.em: And here.
2314 2001-08-13 Richard Henderson <rth@redhat.com>
2316 * emultempl/needrelax.em: New file.
2317 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2318 * Makefile.am (eelf64_ia64.c): Depend on it.
2319 * Makefile.in: Rebuild.
2321 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2323 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2324 output_section is set non-NULL.
2326 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2327 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2328 needlessly create an output_section_statement. Treat a correctly
2329 named output_section_statement with NULL bfd_section as compatible.
2331 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2333 * emultempl/generic.em: Support EXTRA_EM_FILE.
2334 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2335 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2336 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2337 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2338 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2339 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2340 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2341 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2342 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2343 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2345 2001-08-12 Richard Henderson <rth@redhat.com>
2347 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2348 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2349 scripttempl/v850.sc: Keep .jcr data.
2351 2001-08-12 H.J. Lu <hjl@gnu.org>
2352 Andrew Haley <aph@cambridge.redhat.com>
2353 Nick Clifton <nickc@redhat.com>
2355 * ldgram.y (had_script): Change name to saved_script_handle.
2356 Change type to file handle.
2357 * ld.h (had_script): Rename and retype.
2358 * ldfile.c (ldfile_open_command_file): Save the file handle
2359 used in saved_script_handle.
2360 * lexsup.c (parse_args): Do not allow -c option to alter
2361 saved_script_handle.
2362 * ldmain.c (main): Print out the linker script used if
2363 --verbose is given. Check saved_script_handle to obtain the
2364 external linker script used, or if NULL, dump the builtin
2366 * ld.texinfo: Document that --verbose now dumps the linker
2367 script used, regardless of whether it was an internal or an
2370 2001-08-10 Andreas Jaeger <aj@suse.de>
2372 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2374 * configure: Regenerate.
2376 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2378 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2380 * scripttempl/elf.sc: Move non-text .dynamic section before
2381 .plt/.got/.sdata* group.
2382 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2383 (OTHER_SDATA_SECTIONS): Add.
2384 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2386 * emulparams/crislinux.sh: Likewise.
2387 * emulparams/elf32b4300.sh: Likewise.
2388 * emulparams/elf32bmip.sh: Likewise.
2389 * emulparams/elf32bmipn32.sh: Likewise.
2390 * emulparams/elf32bsmip.sh: Likewise.
2391 * emulparams/elf32btsmip.sh: Likewise.
2392 * emulparams/elf32ebmip.sh: Likewise.
2393 * emulparams/elf32elmip.sh: Likewise.
2394 * emulparams/elf32l4300.sh: Likewise.
2395 * emulparams/elf32lmip.sh: Likewise.
2396 * emulparams/elf32lsmip.sh: Likewise.
2397 * emulparams/elf32ltsmip.sh: Likewise.
2398 * emulparams/elf64bmip.sh: Likewise.
2399 * emulparams/elf64btsmip.sh: Likewise.
2400 * emulparams/elf64ltsmip.sh: Likewise.
2402 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2404 * genscripts.sh: Source the emulparams script before each output
2405 script is generated so that variables like `RELOCATING' may affect
2406 variables defined in the emulparams script.
2408 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2410 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2413 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2414 ie. iterate over wild_statement.section_list.
2415 (gld${EMULATION_NAME}_place_orphan): Likewise.
2417 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2419 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2420 .fini[0-4] sections used by _exit
2421 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2422 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2423 * scripttempl/elfm68hc11.sc: Likewise.
2425 2001-08-03 H.J. Lu <hjl@gnu.org>
2427 * emultempl/beos.em (init): Add the missing initialization.
2429 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2431 * ld.texinfo (Input Section Basics): Clarify ordering of output
2433 * ldlang.c (callback_t): Add wildcard_list param.
2434 (walk_wild_section): Remove "section" param. Rewrite for
2435 lang_wild_statement_type change. Remove unique_section_p test.
2436 (walk_wild_file): Remove "section" param.
2437 (walk_wild): Remove "section" and "file" params.
2438 (lang_gc_wild): Likewise.
2439 (wild): Likewise. Modify for lang_wild_statement_type change.
2440 (wild_sort): Likewise. Add "sec" param.
2441 (gc_section_callback): Likewise.
2442 (output_section_callback): Likewise. Do unique_section_p test.
2443 (map_input_to_output_sections): Modify call to wild.
2444 (lang_gc_sections_1): Likewise.
2445 (print_wild_statement): Modify for lang_wild_statement_type
2447 (lang_add_wild): Replace filename, filenames_sorted param with
2448 filespec. Replace section_name, sections_sorted,
2449 exclude_filename_list with section_list.
2450 * ldlang.h (lang_add_wild): Here too.
2451 (lang_wild_statement_type): Replace section_name, sections_sorted,
2452 and exclude_filename_list with section_list.
2453 * ldgram.y (current_file): Delete.
2454 (%union): Add wildcard_list.
2455 (file_NAME_list): Set type to wildcard_list. Build a linked list
2456 rather than calling lang_add_wild for each entry.
2457 (input_section_spec_no_keep): Call lang_add_wild here instead.
2458 * ld.h (struct wildcard_list): Declare.
2459 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2461 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2463 * ldmain.c (main): initialize link_info.pei386_auto_import
2464 * pe-dll.c: new tables for auto-export filtering
2465 (auto_export): change API, pass abfd for contextual filtering.
2466 Loop thru tables of excluded symbols instead of comparing
2469 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2471 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2472 static variable current_sec (static struct sec *). Add
2473 forward declaration for add_bfd_to_link.
2474 (process_def_file): Don't export undefined symbols. Do not
2475 export symbols starting with "_imp__". Call auto_export()
2477 (pe_walk_relocs_of_symbol): New function.
2478 (generate_reloc): add optional extra debugging
2479 (pe_dll_generate_def_file): eliminate extraneous initial blank
2481 (make_one): enlarge symtab to make room for __nm__ symbols
2482 (DATA auto-import support).
2483 (make_singleton_name_thunk): New function.
2484 (make_import_fixup_mark): New function.
2485 (make_import_fixup_entry): New function.
2486 (pe_create_import_fixup): New function.
2487 (add_bfd_to_link): Specify that 'name' argument is a CONST
2489 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2490 declare new functions pe_walk_relocs_of_symbol and
2491 pe_create_import_fixup.
2492 * emultempl/pe.em: add new options --enable-auto-import,
2493 --disable-auto-import, and --enable-extra-pe-debug.
2494 (make_import_fixup): New function.
2495 (pe_find_data_imports): New function.
2496 (pr_sym): New function.
2497 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2498 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2501 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2503 * ld.texinfo: add additional documentation for
2504 --export-all-symbols. Document --out-implib,
2505 --enable-auto-image-base, --disable-auto-image-base,
2506 --dll-search-prefix, --enable-auto-import, and
2507 --disable-auto-import.
2508 * ldint.texinfo: Add detailed documentation on auto-import
2511 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2513 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2516 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2518 * Makefile.am: Update dependencies with "make dep-am".
2519 * Makefile.in: Regenerate
2521 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2523 * ldcref.c (check_section_sym_xref): New function.
2524 (check_nocrossrefs): Call it.
2525 (check_nocrossref): Interate over h->refs here instead of..
2526 (check_refs): ..here. Pass in the symbol name, section, and bfd
2527 rather than hash_entry pointers.
2528 (struct check_refs_info): Keep symbol name rather than hash entry.
2530 (check_reloc_refs): Tweak for above changes in check_refs_info.
2531 Only report references to section syms when symname is NULL to
2532 prevent duplicate messages for the same reloc.
2534 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2536 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2537 available. Do not print NULL trees.
2538 (exp_print_token): Print unknown tokens with values > 126 as
2539 decimal values not ASCII characters.
2541 * ldlang.c (lang_leave_overlay): If a region is specified assign
2542 it to all sections inside the overlay unless they have been
2543 assigned to the own, non-default, memory region.
2545 * README: Add header for consistency with other README files.
2547 2001-07-14 H.J. Lu <hjl@gnu.org>
2549 * emultempl/elf32.em (output_prev_sec_find): Never return
2550 bfd_abs_section_ptr, bfd_com_section_ptr nor
2551 bfd_und_section_ptr.
2553 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2555 * Makefile.am (em32relf.c): Change dependency from generic.em to
2557 * Makefile.in: Regenerate.
2559 2001-07-14 matthew green <mrg@eterna.com.au>
2561 * configure.tgt (i386-*-netbsdelf*): New target.
2562 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2564 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2566 * emultempl/elf32.em (output_prev_sec_find): New.
2567 (place_orphan): Use it.
2569 2001-07-11 H.J. Lu <hjl@gnu.org>
2571 * ldmain.c (main): Fix typos in the last change.
2573 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2575 * ldmain.c (main): Disallow -F and -f without -shared.
2577 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2579 * emultempl/pe.em (after_open): Check for the output_bfd not
2580 having any coff_data structure allocated to it.
2582 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2584 * emultempl/elf32.em: Do not assuming that contents of the buffer
2585 returned from basename function will remain unchanged accross other
2588 2001-07-03 H.J. Lu <hjl@gnu.org>
2590 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2591 2001-07-03. It creates dynamic entries even for static binaries.
2593 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2595 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2596 (DYNAMIC): Use it to reserve few dynamic entries for
2599 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2601 * emulparams/hppa64linux.sh: New file.
2602 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2603 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2604 (ehppa64linux.c): Add rule to make it.
2606 * Makefile.in: Regenerate.
2608 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2610 * ld.texinfo (Options, -r): Mention restrictions when using
2611 different object formats.
2613 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2615 * ldlang.c (lang_check): Emit fatal error if relocatable link
2616 between different object flavours with relocations in input.
2618 2001-06-19 H.J. Lu <hjl@gnu.org>
2620 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2621 (--version-script): Mention the language support.
2623 2001-06-19 H.J. Lu <hjl@gnu.org>
2625 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2627 2001-06-18 H.J. Lu <hjl@gnu.org>
2629 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2630 (diststuff): Add $(MANS).
2631 * Makefile.in: Regenerated.
2635 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2637 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2638 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2639 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2640 * ld.h (args_type): Remove member export_dynamic. All users
2641 changed to use struct bfd_link_info member.
2643 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2644 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2645 * Makefile.in: Regenerate.
2647 2001-06-18 H.J. Lu <hjl@gnu.org>
2649 * ldlang.c (init_os): Add the newline to the einfo call.
2650 (lang_check): Likewise.
2651 (lang_do_version_exports_section): Likewise.
2653 2001-06-15 H.J. Lu <hjl@gnu.org>
2655 * lexsup.c (parse_args); Save optind to report unrecognized
2658 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2660 * ldlang.c (lang_check): Emit fatal error if relocatable link
2661 between different object flavours.
2663 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2664 Set new link_info member export_dynamic.
2665 * ldmain.c (main): Initialize new link_info member export_dynamic.
2667 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2669 * ldlang.c (walk_wild): Only call walk_wild_file if
2670 lookup_name returns something.
2671 (lookup_name): If load_symbols fails, return NULL.
2672 (load_symbols): Change to a boolean function.
2673 (open_input_bfds): If load_symbols fails then do not make the
2676 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2678 * ldlang.c (record_bfd_errors): Remove.
2680 * emultempl/aix.em: Fix copyright dates.
2682 2001-06-07 Andreas Jaeger <aj@suse.de>
2684 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2685 (TEXT_START_ADDR): Likewise.
2687 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2689 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2691 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2693 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2695 2001-05-31 H.J. Lu <hjl@gnu.org>
2697 * ldlang.c (open_input_bfds): Don't change the bfd error
2698 handler whilst loading symbols.
2700 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2702 * configure.tgt: Remove i370-mvs architecture, it is not currently
2705 2001-05-25 H.J. Lu <hjl@gnu.org>
2707 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2708 like emulparams/aixppc.sh.
2710 2001-05-25 H.J. Lu <hjl@gnu.org>
2712 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2713 setting of output_filename after bfd_scan_arch.
2714 * emultempl/pe.em: Likewise.
2716 2001-05-25 H.J. Lu <hjl@gnu.org>
2718 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2719 like emulparams/aixppc.sh.
2721 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2722 instead of ${srcdir}/emultempl/stringify.sed.
2724 2001-05-25 Timothy Wall <twall@oculustech.com>
2726 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2729 2001-05-25 Alan Modra <amodra@one.net.au>
2731 * configure.host: Replace linuxoldld with linux*oldld.
2732 * configure.tgt: Likewise.
2734 2001-05-24 H.J. Lu <hjl@gnu.org>
2736 * emultempl/stringify.sed: Removed again.
2738 2001-05-24 H.J. Lu <hjl@gnu.org>
2740 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2741 (gld${EMULATION_NAME}_before_parse): Initialize
2742 ldfile_output_architecture, ldfile_output_machine and
2743 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2744 * emultempl/beos.em: Likewise.
2745 * emultempl/elf32.em: Likewise.
2746 * emultempl/linux.em: Likewise.
2747 * emultempl/mipsecoff.em: Likewise.
2748 * emultempl/pe.em: Likewise.
2749 * emultempl/sunos.em: Likewise.
2751 2001-05-24 Tom Rix <trix@redhat.com>
2753 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2754 udate import file format.
2755 (change_symbol_mode) New, same
2756 (is_syscall) New, same
2757 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2758 * emulparams/aixppc64.sh : same
2759 * emulparams/aixrs6.sh : same
2760 * emulparams/ppcmacos.sh : same
2761 * emultempl/aix.em : use strtoull to parse options
2762 * Makefile.am : add eaixppc64 emulation for xcoff64
2763 * Makefile.in : same
2764 * configure.tgt : same
2766 * scripttempl/aix.sc : default text section offset to 0x10000000
2767 default data section offset to 0x20000000
2768 add .sv3264 and .sv64 pseudo sections
2769 loader and debug sections use the currect section offset.
2771 * emultempl/aix.em : Add xcoff64 support
2772 Add -binitfini support
2773 (gld${EMULATION_NAME}_before_parse) -binitfini
2774 (gld${EMULATION_NAME}_parse_args) same
2775 (gld${EMULATION_NAME}_before_allocation) format change for special
2778 * emulparams/aixppc64.sh : New file for xcoff64 support
2780 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2782 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2783 variable to avoid non-portable shell construct.
2785 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2787 * ldmain.c (get_emulation): Add -mips5 command line argument.
2789 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2791 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2792 (ELF_INTERPRETER_NAME): Define it.
2793 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2795 * configure.tgt (targ_emul, targ_extra_emuls)
2796 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2797 as primary, elf_i386 as extra.
2798 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2799 (eelf_i386_ldso.c): New rule.
2800 * Makefile.in: Rebuilt.
2802 2001-05-22 Nick Clifton <nickc@redhat.com>
2804 * lexsup.c (ld_options): Allow -I to be an alias for
2805 --dynamic-linker. This is for Solaris compatability.
2806 * ld.texinfo: Document that -I can be used.
2809 2001-05-16 Alan Modra <amodra@one.net.au>
2811 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2812 whether an input section is the first one assigned to an output
2814 Assorted formatting fixes.
2816 2001-05-14 DJ Delorie <dj@delorie.com>
2818 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2819 * Makefile.in: Ditto.
2821 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2823 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2824 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2826 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2828 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2830 * ldlang.c (lang_process): Call bfd_merge_sections.
2832 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2834 * ldgram.y: Fix typo.
2836 2001-05-03 H.J. Lu <hjl@gnu.org>
2838 * emultempl/elf32.em: Include "libiberty.h".
2839 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2840 basename of the bfd filename.
2841 (gld${EMULATION_NAME}_stat_needed): Likewise.
2842 (gld${EMULATION_NAME}_try_needed): Likewise.
2843 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2845 2001-05-02 H.J. Lu <hjl@gnu.org>
2847 * emultempl/pe.em: Include <ctype.h>.
2849 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2851 * emulparams/elf32openrisc.sh: New file.
2853 * Makefile.am: Add OpenRISC target.
2854 * Makefile.in: Regenerated.
2856 * configure.tgt: Add openrisc-*-* mapping.
2858 2001-05-02 Nick Clifton <nickc@redhat.com>
2860 * emultempl/aix.em: Replace buystring with xstrdup.
2861 * emultempl/beos.em: Replace buystring with xstrdup.
2863 2001-05-02 H.J. Lu <hjl@gnu.org>
2865 * ldfile.c: Include "libiberty.h".
2866 * ldlex.l: Likewise.
2868 * ldmisc.c (buystring): Removed.
2869 * ldmisc.h: Likewise.
2871 * ldfile.c: Replace buystring with xstrdup.
2872 * ldlang.c: Likewise.
2873 * ldlex.l: Likewise.
2874 * ldmain.c: Likewise.
2875 * ldmisc.c: Likewise.
2876 * lexsup.c: Likewise.
2877 * mpw-eppcmac.c: Likewise.
2879 2001-04-30 Andreas Jaeger <aj@suse.de>
2881 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2883 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2885 * ldlang.c (load_symbols): Give emulation a chance
2886 to process unrecognized file before fatal error is
2887 reported, not after.
2889 2001-04-27 Sean McNeil <sean@mcneil.com>
2891 * configure.tgt: Add arm-vxworks target.
2892 * scripttempl/armcoff.sc: Support .text or .data as a section name
2896 2001-04-13 J.T. Conklin <jtc@redback.com>
2898 * ld.texinfo: Document --fatal-warnings.
2901 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2902 warnings have been turned into errors.
2903 * lexsup.c (OPTION_WARN_FATAL): Define.
2904 (ld_options): Entry for --fatal-warnings.
2905 (parse_args): Handle OPTION_WARN_FATAL.
2906 * ld.h (ld_config_type): Add fatal_warnings field.
2908 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2910 * ldmain.c (main): Default to discard_sec_merge.
2911 * lexsup.c (OPTION_DISCARD_NONE): Define.
2912 (ld_options): Add --discard-none.
2913 (parse_args): Handle OPTION_DISCARD_NONE.
2914 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2915 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2916 all its input sections match.
2918 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2920 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2921 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2922 (eelf32ltsmip.c): New target.
2923 (eelf64btsmip.c): Likewise.
2924 (eelf64ltsmip.c): Likewise.
2925 * Makefile.in: Regenerated.
2927 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2929 (mips*-*-linux-gnu*): Likewise.
2931 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2933 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2935 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2938 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2940 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2941 correct value of __Stext here.
2942 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2945 * emulparams/crislinux.sh: Remove FIXME.
2947 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2949 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2950 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2952 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2954 * configure.tgt (cris-*-*): Change default emulation to criself.
2955 (cris-*-*aout*): New rule.
2957 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2959 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2960 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2962 2001-03-26 Andreas Jaeger <aj@suse.de>
2964 * ld.texinfo (Overview): Fix syntax in texi code.
2966 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2968 * ld.texinfo: Put @c man indications to generate the ld man page.
2969 When generating man, define all the variables. Define SEEALSO
2970 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2971 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2972 (ld.1): Generate from ld.texinfo.
2973 * Makefile.in: Regenerate.
2975 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2977 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2978 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2980 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2982 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2983 is an absolute path look only for this file and not along the path.
2985 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2987 * emultempl/elf32.em (OPTION_GROUP): New macro.
2988 Add new option Bgroup to longopts.
2989 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2990 (gld*_list_options): Add -Bgroup and -z defs.
2991 * ld.1: Document -Bgroup and -z defs.
2992 * ld.texinfo: Likewise.
2994 2001-03-07 Michael Meissner <meissner@redhat.com>
2996 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2997 with sections created by -fdata-sections.
2998 (.dynbss,.bss): Ditto.
3000 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3002 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3003 after_allocation_default, not gld..._before_allocation.
3005 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3007 * configure.in (BFD_VERSION): New.
3008 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3009 * configure: Regenerate.
3010 * Makefile.am: Run "make dep-am"
3011 * Makefile.in: Regenerate.
3013 2001-02-26 Timothy Wall <twall@cygnus.com>
3015 * emulparams/elf64_aix.sh: Add additional read-only sections;
3016 uncomment lines which are now required.
3018 2001-02-26 H.J. Lu <hjl@gnu.org>
3020 * ldlang.c (open_input_bfds): Set the bfd error handler so
3021 that problems can be caught whilst loading symbols.
3022 (record_bfd_errors): New function: Report BFD errors and mark
3023 the executable output as being invalid.
3025 2001-02-22 Timothy Wall <twall@cygnus.com>
3027 * configure.host: Add configuration for ia64-*-aix*.
3028 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3029 Add dependencies for eelf64_aix.c.
3030 * Makefile.in: Regenerate.
3031 * configure.tgt: Add ia64-*-aix* mapping.
3032 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3033 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3036 2001-02-20 H.J. Lu <hjl@gnu.org>
3038 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3039 false if we found the file.
3041 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3043 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3044 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3046 2001-02-18 lars brinkhoff <lars@nocrew.org>
3048 * Makefile.am: Add PDP-11 target.
3049 * configure.tgt: Likewise.
3050 * emulparams/pdp11.sh: New file.
3052 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3054 * configure.host: Add a generic FreeBSD configuration entry such that
3055 all [modern] FreeBSD systems on all platforms will look the same.
3057 2001-02-14 H.J. Lu <hjl@gnu.org>
3059 * configure.tgt: Remove mention of earmelf_linux26.
3061 2001-02-13 Richard Henderson <rth@redhat.com>
3063 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3065 2001-02-13 H.J. Lu <hjl@gnu.org>
3067 * ldexp.h (node_type): Add etree_provided.
3068 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3069 type to etree_provided if defined by PROVIDE. Allow updating
3071 (exp_print_tree): Handle etree_provided.
3072 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3075 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3077 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3078 .IA_64.unwind.* pattern to unwind table section and
3079 .IA_64.unwind_info* pattern to unwind info section.
3081 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3083 * Makefile.am: Add linux target for S/390.
3084 * Makefile.in: Likewise.
3085 * configure.host: Likewise.
3086 * configure.tgt: Likewise.
3087 * emulparams/elf64_s390.sh: New file.
3088 * emulparams/elf_s390.sh: New file.
3090 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3092 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3094 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3096 2001-02-06 Philip Blundell <philb@gnu.org>
3098 * Makefile.am: Remove mention of earmelf_linux26.
3099 * Makefile.in: Regenerate.
3101 2001-02-04 Philip Blundell <philb@gnu.org>
3103 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3104 * emulparams/armelf_linux26.sh: Delete.
3105 * configure.tgt: Remove mention of armelf_linux26 emulation.
3107 2001-02-01 Nick Clifton <nickc@redhat.com>
3109 * ld.1: Replace occurances of -oformat with --oformat.
3111 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3113 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3114 load_base is specified.
3116 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3118 * emultempl/elf32.em: Correct spelling in comments and listed
3121 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3123 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3124 default for the first section of a group of overlay sections.
3126 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3128 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3129 * Makefile.in: Regenerate.
3130 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3131 Check for null tool_dir.
3133 2001-01-16 Jim Wilson <wilson@redhat.com>
3135 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3136 and IA_64.unwind.info.
3138 2001-01-16 H.J. Lu <hjl@gnu.org>
3140 * ldlang.c (lang_check): Merge the private data only if the
3141 input file has contents.
3143 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3145 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3147 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3148 enabling search for libmilli. On a relocatable link, make .text
3150 (LDEMUL_AFTER_PARSE): Define.
3151 (hppaelf_finish): Correct spelling of relocatable in comments.
3153 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3154 rummage through the script for sections on the unique list.
3155 Correct length of strncmp for ".note".
3156 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3158 * ldlang.c (unique_section_list): New var.
3159 (unique_section_p): New function.
3160 (walk_wild_section): Don't match sections on unique_section_list.
3161 (lang_add_unique): New function.
3162 Correct spelling of relocatable in comments.
3164 * ldlang.h (struct unique_sections): Declare.
3165 (unique_section_list): Declare.
3166 (unique_section_p): Declare.
3167 (lang_add_unique): Declare.
3169 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3170 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3172 * ld.texinfo (--unique): Update.
3174 2001-01-13 Nick Clifton <nickc@redhat.com>
3176 * lexsup.c (parse_args): Remove spurious white space.
3178 2001-01-12 Nick Clifton <nickc@redhat.com>
3180 * lexsup.c (parse_args): Update copyright date.
3182 2001-01-12 Philip Blundell <pb@futuretv.com>
3184 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3186 2001-01-10 Kazu Hirata <kazu@hxi.com>
3188 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3189 * scripttempl/h8300h.sc: Fix formatting.
3190 * scripttempl/h8300s.sc: Likewise.
3191 * scripttempl/h8500.sc: Likewise.
3192 * scripttempl/h8500b.sc: Likewise.
3193 * scripttempl/h8500c.sc: Likewise.
3194 * scripttempl/h8500m.sc: Likewise.
3195 * scripttempl/h8500s.sc: Likewise.
3197 2000-01-07 David O'Brien <obrien@BSDi.com>
3199 * emultempl/elf32.em: Only perform Linux ld hints processing when
3202 2001-01-07 Philip Blundell <philb@gnu.org>
3204 * ld.texinfo (Bug Reporting): Update email address for reports.
3206 2000-12-31 Nick Clifton <nickc@redhat.com>
3208 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3209 options by checking for a return value of '?' not -1.
3211 2000-12-28 Nick Clifton <nickc@redhat.com>
3213 * lexsup.c (struct ld_option): Add new enum value:
3215 (ld_options[]): Change -omagic, -output and -oformat options
3216 to be EXACTLY_TWO_DASHES.
3217 (OUTPUT_COUNT): Use ARRAY_SIZE.
3218 (parse_args): Change parameter 'argc' to unsigned.
3219 Place EXACTLY_TWO_DASHES options into new really_longopts
3221 If getopt_long_only fails, try calling getopt_long using the
3222 really_longopts array.
3223 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3226 * ldlex.h: Fix prototype of parse_args.
3228 * ld.texinfo: Document that long options starting with 'o'
3229 must be preceeded by two dashes. Change example of a single
3230 dashed long option from -oformat to -trace-symbol.
3232 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3234 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3235 (longopts[]): New --no-default-excludes option.
3236 (gld_${EMULATION_NAME}_list_options): Document.
3237 (gld_${EMULATION_NAME}_parse_args): Handle.
3239 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3241 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3242 whitespace, it breaks the K&R C preprocessor.
3244 2000-12-11 DJ Delorie <dj@redhat.com>
3246 * ld.texinfo: Add notes about --whole-archive and gcc.
3248 2000-11-18 Fred Fish <fnf@be.com>
3250 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3251 (ld_options): Entry for --allow-shlib-undefined.
3252 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3253 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3255 * ld.texinfo: Document new command line switch.
3257 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3259 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3260 .fixup is actually read/write.
3261 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3262 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3263 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3265 2000-12-11 Jan Hubicka <jh@suse.cz>
3267 * NEWS: Add note about x86_64 architecture.
3269 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3271 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3272 Set DWARF2 sections to a VMA of zero.
3274 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3276 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3278 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3279 (sparc*-*-rtems*): Switched from a.out to ELF.
3281 2000-11-30 Jan Hubicka <jh@suse.cz>
3283 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3284 (eelf_x86_64.c): New.
3285 * Makefile.in: Regenerate.
3286 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3287 * emulparams/elf_x86_64.sh: New.
3289 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3291 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3292 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3294 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3295 merging non-a.out sections into CONSTRUCTING.
3297 2000-11-28 Nick Clifton <nickc@redhat.com>
3299 * ld.1 (COPYING): Mention that the GNU Free Documentation
3300 License is present in the sources, but not the output, and
3301 also available from the GNU website.
3302 (GNU Free Documentation License): Comment out this section.
3304 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3306 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3309 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3311 * ld.1: Remove old date so it does not give the impression the manpage
3314 2000-11-24 Nick Clifton <nickc@redhat.com>
3316 * configure.tgt (xscale-coff): Add target.
3317 (xscale-elf): Add target.
3319 2000-11-24 Fred Fish <fnf@be.com>
3321 * ldmain.c (main): Remove redundant init of config.make_executable
3324 2000-11-15 Richard Henderson <rth@redhat.com>
3326 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3328 2000-11-14 Kazu Hirata <kazu@hxi.com>
3330 * scripttempl/h8300.sc: Fix formatting.
3331 * scripttempl/h8300h.sc: Likewise.
3332 * scripttempl/h8300s.sc: Likewise.
3334 2000-11-14 Denis Chertykov <denisc@overta.ru>
3336 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3338 2000-11-09 Philip Blundell <pb@futuretv.com>
3340 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3341 around orphan sections whose names can be represented in C.
3343 2000-11-07 Jim Wilson <wilson@redhat.com>
3345 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3346 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3348 2000-11-06 Nick Clifton <nickc@redhat.com>
3350 * ld.texinfo: Add GNU Free Documentation License.
3351 * ldint.texinfo: Add GNU Free Documentation License.
3352 * ld.1: Add GNU Free Documentation License.
3354 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3356 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3357 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3359 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3360 Move 2000-11-02 Makefile.in changes to this file.
3361 * Makefile.in: Regenerate.
3363 2000-11-03 Nick Clifton <nickc@redhat.com>
3365 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3366 constructors and destructors.
3367 * scripttempl/h8300h.sc: Ditto.
3368 * scripttempl/h8300s.sc: Ditto.
3369 * scripttempl/h8500.sc: Ditto.
3370 * scripttempl/h8500b.sc: Ditto.
3371 * scripttempl/h8500c.sc: Ditto.
3372 * scripttempl/h8500m.sc: Ditto.
3373 * scripttempl/h8500s.sc: Ditto.
3374 * scripttempl/v850.sc: Ditto.
3375 * scripttempl/w65.sc: Ditto.
3376 * scripttempl/z8000.sc: Ditto.
3378 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3380 * Makefile.in (e_i386_chaos.c): New rule.
3381 (ALL_EMULATIONS): Added e_i386_chaos.o.
3382 * emulparams/elf_i386_chaos.sh: New file.
3383 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3385 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3387 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3388 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3389 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3390 library path suffix.
3391 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3393 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3395 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3396 for consecutive sections.
3398 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3400 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3402 * ld.texinfo: Added notes about this new option.
3404 2000-10-16 Nick Clifton <nickc@redhat.com>
3406 * emultempl/pe.em (_after_open): Add tests of return values from
3407 bfd functions. Emit appropriate error messages if necessary.
3409 2000-10-13 Nick Clifton <nickc@redhat.com>
3411 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3412 local variables - they are not used, but leave in the call to
3413 bfd_canonicalize_symtab.
3414 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3415 pe_dll_search_prefix.
3417 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3419 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3420 (longopts): New --dll-search-prefix option.
3421 (gld_${EMULATION_NAME}_list_options): Document.
3422 (gld_${EMULATION_NAME}_parse_args): Handle.
3423 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3424 dynamically, search for a dll named '<prefix><basename>.dll'
3425 in preference to 'lib<basename>.dll' if --dll-search-prefix
3428 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3430 * ldlang.c (section_already_linked): Set kept_section instead of
3433 2000-10-10 Kazu Hirata <kazu@hxi.com>
3435 * deffile.h: Fix formatting.
3436 * lexsup.c: Likewise.
3439 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3441 * pe-dll.c (make_one): Do not generate code thunk for DATA
3443 (process_def_file): deduce DATA flag for auto-export sumbols.
3445 2000-10-09 Kazu Hirata <kazu@hxi.com>
3447 * ld.h: Fix formatting.
3448 * ldcref.c: Likewise.
3449 * ldctor.h: Likewise.
3450 * ldemul.c: Likewise.
3451 * ldemul.h: Likewise.
3452 * ldexp.c: Likewise.
3453 * ldexp.h: Likewise.
3454 * ldfile.c: Likewise.
3455 * ldfile.h: Likewise.
3456 * ldlang.c: Likewise.
3457 * ldlang.h: Likewise.
3458 * ldmain.c: Likewise.
3459 * pe-dll.c: Likewise.
3461 * pe-dll.c: Revert some formatting fixes.
3463 2000-10-08 Kazu Hirata <kazu@hxi.com>
3465 * pe-dll.c: Fix formatting.
3467 2000-10-05 Kazu Hirata <kazu@hxi.com>
3469 * ldlang.c: Fix formatting.
3471 2000-10-03 DJ Delorie <dj@redhat.com>
3473 * pe-dll.c (fill_edata): initialize entire block
3474 (make_one): fill in correct section.
3476 2000-10-03 Kazu Hirata <kazu@hxi.com>
3478 * ldexp.c: Fix formatting.
3480 2000-10-02 DJ Delorie <dj@redhat.com>
3482 * emultempl/pe.em (gld_*_after_open): detect case where there two
3483 import libraries for same dll; rename one to ensure proper link
3486 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3488 (generate_edata): fix typo
3490 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3492 * scripttempl/crisaout.sc (ENTRY): Now __start.
3493 (.text): Add default setting for __start.
3494 Remove CONSTRUCTORS handling.
3495 (/DISCARD/): Add .gnu.warning.*.
3496 * emulparams/crislinux.sh (ENTRY): Now __start.
3497 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3498 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3499 (ENTRY): Now __start.
3500 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3501 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3503 2000-09-29 Kazu Hirata <kazu@hxi.com>
3505 * deffile.h: Fix formatting.
3507 * ldcref.c: Likewise.
3508 * ldctor.c: Likewise.
3509 * ldctor.h: Likewise.
3510 * ldemul.c: Likewise.
3511 * ldemul.h: Likewise.
3512 * ldexp.c: Likewise.
3513 * ldexp.h: Likewise.
3514 * ldfile.c: Likewise.
3515 * ldfile.h: Likewise.
3516 * ldlang.c: Likewise.
3517 * ldlang.h: Likewise.
3518 * lexsup.c: Likewise.
3520 * pe-dll.c: Likewise.
3522 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3524 * pe-dll.c (process_def_file): Uninitialized data wasn't
3525 exported with --export-all-symbols switch.
3527 2000-09-28 DJ Delorie <dj@redhat.com>
3529 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3530 noname work properly.
3532 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3534 * ld.texinfo (HPPA ELF32): New section.
3536 * emultempl/hppaelf.em (group_size): New.
3537 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3538 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3539 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3540 options to prevent abbreviations matching.
3541 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3542 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3544 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3546 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3547 on the m68*-*-elf target. Make it support COFF input objects.
3549 2000-09-21 Kazu Hirata <kazu@hxi.com>
3551 * ldmain.c: Fix formatting.
3552 * ldmisc.c: Likewise.
3553 * ldver.c: Likewise.
3554 * ldwrite.c: Likewise.
3556 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3558 * ldwrite.c (clone_section): Silence gcc warnings.
3560 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3562 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3563 out of memory failure.
3565 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3566 (clone_section): Handle out of memory failures. Rename var to
3567 avoid c++ reserved word.
3569 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3571 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3572 stub_name param to stub_sec_name.
3573 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3575 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3577 * emultempl/m68kelf.em: New file.
3578 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3579 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3580 * Makefile.in: Regenerate.
3582 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3584 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3587 2000-09-13 Nick Clifton <nickc@redhat.com>
3589 * ldmain.c (multiple_definition): Disable relaxation if
3590 multiple symbol definitions are encountered - otherwise the
3591 linker could abort with an assertion failure.
3593 2000-09-10 Nick Clifton <nickc@redhat.com>
3595 * mri.c: Fix formatting.
3597 2000-09-07 H.J. Lu <hjl@gnu.org>
3599 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3600 * configure: Rebuild.
3602 2000-09-07 H.J. Lu <hjl@gnu.org>
3604 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3605 * Makefile.in: Rebuild.
3607 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3609 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3610 broken list handling. Create __start_SECNAME and __stop_SECNAME
3611 when no place-holder. Add some comments. Test both SEC_CODE and
3612 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3613 Handle case where no output section statement created.
3615 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3617 * configure.tgt (sh-*-linux*): Added.
3618 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3619 * Makefile.in: Rebuilt.
3620 * emulparams/shelf_linux.sh: New file.
3621 * emulparams/shlelf_linux.sh: New file.
3623 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3625 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3626 try shuffling sections when the orphan happens to be the place
3627 holder. Keep count of unique section names generated so we speed
3628 the search for a new name.
3630 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3632 * configure: Rebuilt with new libtool.m4.
3634 2000-09-05 Nick Clifton <nickc@redhat.com>
3636 * Makefile.in: Regenerate.
3637 * aclocal.m4: Regenerate.
3638 * configure: Regenerate.
3639 * config.in: Regenerate.
3640 * po/ld.pot: Regenerate.
3642 * ldint.texinfo: Remove CVS revision marker - it foils local
3645 * emultempl/ticoff.em: Remove extraneous comma.
3647 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3649 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3650 to stub section flags.
3651 (hppa_for_each_input_file_wrapper): New.
3652 (hppa_lang_for_each_input_file): New.
3653 (lang_for_each_input_file): Define to call above.
3654 (multi_subspace): New.
3655 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3656 (PARSE_AND_LIST_PROLOGUE): Define.
3657 (PARSE_AND_LIST_LONGOPTS): Define.
3658 (PARSE_AND_LIST_OPTIONS): Define.
3659 (PARSE_AND_LIST_ARGS_CASES): Define.
3660 (hppaelf_finish): Call elf32_hppa_set_gp.
3661 (hppaelf_set_output_arch): Remove.
3662 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3664 * emulparams/hppalinux.sh (ELFSIZE): Define.
3666 (OTHER_READONLY_SECTIONS): Define.
3668 (GENERATE_SHLIB_SCRIPT): Define.
3670 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3671 to const throughout. Change `void *' to `PTR' throughout.
3672 (lang_memory_default): Function is local to file, add `static'.
3674 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3675 (ehppalinux.c): Likewise.
3676 (earmelf.c): Likewise.
3677 (earmelf_linux.c): Likewise.
3678 (earmelf_linux26.c): Likewise.
3679 * Makefile.in: Regenerate.
3681 * ld.h (ld_config_type): Add unique_orphan_sections.
3682 * lexsup.c (OPTION_UNIQUE): Define.
3683 (ld_options): Add "--unique".
3684 (parse_args): Handle it.
3685 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3686 search for an existing output section if unique_orphan_sections is
3687 set. Make use of bfd_get_unique_section_name rather than
3688 duplicating code here.
3689 * ld.texinfo: Describe --unique.
3691 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3692 optional arg to split-by-file.
3693 (parse_args): Handle them.
3694 * ld.texinfo: Update description of these options.
3695 * ldwrite.c (clone_section): Pass in the section name. Replace
3696 local code with bfd_get_unique_section_name.
3697 (split_sections): Tidy code and comments. Use a list traversal
3698 more appropriate to the list construction. Handle cooked section
3699 sizes. Split when split_by_reloc reached rather than exceeded.
3700 Track section size and split when split_by_file reached. Fix
3701 link_order_tail (even though it's not used).
3702 (ldwrite): Modify condition for calling split_sections to suit
3703 changed split_by_reloc and split_by_file.
3704 * ldmain.c (main): Init config.split_by_reloc and
3705 config.split_by_file to -1.
3706 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3707 Change split_by_file to bfd_size_type.
3709 2000-09-02 Nick Clifton <nickc@redhat.com>
3711 * configure.in: Increase version number to 2.10.91.
3712 * NEWS: Mention new ability to support removal of duplicate DWARF2
3714 * configure: Regenerate.
3715 * aclocal.m4: Regenerate.
3716 * config.in: Regenerate.
3718 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3720 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3722 * scripttempl/elf32avr.sc: Ditto.
3723 * scripttempl/elfd10v.sc: Ditto.
3724 * scripttempl/elfd30v.sc: Ditto.
3725 * scripttempl/elfi370.sc: Ditto.
3726 * scripttempl/elfm68hc11.sc: Ditto.
3727 * scripttempl/elfm68hc12.sc: Ditto.
3728 * scripttempl/elfi386beos.sc: Ditto.
3729 * scripttempl/v850.sc: Ditto.
3731 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3733 * acinclude.m4: Include libtool and gettext macros from the
3735 * aclocal.m4, configure: Rebuilt.
3737 2000-08-25 Nick Clifton <nickc@redhat.com>
3739 * ldlang.c (open_output): When choosing the target for a
3740 particular endianness, do nothing if the target is not
3743 2000-08-25 H.J. Lu <hjl@gnu.org>
3745 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3746 check -rpath nor LD_RUN_PATH for cross link.
3747 * ld.texinfo: Document the change.
3749 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3751 * NEWS: Mention support for CRIS.
3753 2000-08-23 H.J. Lu <hjl@gnu.org>
3755 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3756 the current runpath list from bfd_elf_get_runpath_list ()
3759 2000-08-22 H.J. Lu <hjl@gnu.org>
3761 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3762 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3763 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3764 trace_file_tries is non-zero.
3765 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3766 if trace_file_tries is non-zero.
3768 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3771 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3773 * NEWS: Mention i860 support.
3775 2000-08-14 Andreas Schwab <schwab@suse.de>
3777 * scripttempl/elf.sc: Fix last change to use correct comment
3780 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3782 * scripttempl/elf.sc: Add a comment giving the correspondence
3783 between sections, per-datum sections, and linkonce sections. Make
3784 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3787 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3789 * emulparams/elf32_i860.sh: New file.
3790 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3791 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3792 (eelf32_i860.c): New rule.
3793 * Makefile.in: Regenerate.
3795 2000-08-10 Nick Clifton <nickc@cygnus.com>
3797 * emulparams/mipspe.sh (ENTRY): Add definition.
3799 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3801 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3804 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3806 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3807 the final size of .bss section.
3808 * scripttempl/elfm68hc12.sc: Likewise.
3810 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3812 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3813 gld${EMULATION_NAME}_parse_args for consistency. Combine
3814 lastoptind and prevoptind vars, and keep track of last optind.
3815 (gld_${EMULATION_NAME}_list_options): Rename to
3816 gld${EMULATION_NAME}_list_options.
3818 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3820 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3821 (i586-sco-sysv5uw7.1.0).
3823 2000-07-27 H.J. Lu <hjl@gnu.org>
3825 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3826 (PARSE_AND_LIST_PROLOGUE): New.
3827 (PARSE_AND_LIST_LONGOPTS): Likewise.
3828 (PARSE_AND_LIST_OPTIONS): Likewise.
3829 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3830 (PARSE_AND_LIST_EPILOGUE): Likewise.
3832 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3834 * emultempl/armelf.em: Elide functions common to elf32.em,
3835 ie. most of the file.
3836 (arm_elf_after_open): New. Do arm specific things then call
3837 gld${EMULATION_NAME}_after_open.
3838 (arm_elf_before_allocation): New. Call
3839 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3840 (PARSE_AND_LIST_PROLOGUE): Define.
3841 (PARSE_AND_LIST_SHORTOPTS): Define.
3842 (PARSE_AND_LIST_LONGOPTS): Define.
3843 (PARSE_AND_LIST_OPTIONS): Define.
3844 (PARSE_AND_LIST_ARGS_CASES): Define.
3845 (LDEMUL_AFTER_OPEN): Define.
3846 (LDEMUL_BEFORE_ALLOCATION): Define.
3847 (LDEMUL_BEFORE_PARSE): Define.
3848 (LDEMUL_FINISH): Define.
3850 * emultempl/hppaelf.em: Similarly zap most of this file.
3851 (hppaelf_add_stub_section): Prototype.
3852 (hppaelf_layaout_sections_again): Prototype.
3853 (hook_in_stub): Prototype.
3854 (LDEMUL_SET_OUTPUT_ARCH): Define.
3855 (LDEMUL_FINISH): Define.
3856 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3858 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3859 (EXTRA_EM_FILE): New.
3860 * emulparams/armelf_linux.sh: Likewise.
3861 * emulparams/armelf_linux26.sh: Likewise.
3862 * emulparams/hppalinux.sh: Likewise.
3863 * emulparams/hppaelf.sh: Likewise.
3866 * emultempl/elf32.em: Fix formatting.
3867 (EXTRA_EM_FILE): Source it.
3868 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3869 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3870 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3871 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3872 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3873 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3874 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3875 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3876 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3877 allow functions in this file to be overridden.
3878 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3880 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3882 * emultempl/elf32.em: Reorganize file.
3884 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3886 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3887 specific option to fit 64-bit executable in the lower
3888 31-bit address range. This is done by changing start
3889 address of .interp (the very first section of executable)
3890 and then setting EF_ALPHA_32BIT elf header flag.
3892 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3894 * emultempl/m68kcoff.em: New file.
3895 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3896 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3898 * Makefile.in: Regenerate.
3900 2000-07-20 H.J. Lu <hjl@gnu.org>
3902 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3903 and "disable-new-dtags" to stop getopt from treating -d/-e as
3904 abbreviations for these options.
3906 2000-07-20 H.J. Lu <hjl@gnu.org>
3908 * ld.texinfo: Add documentation for --disable-new-dtags and
3911 * ldmain.c (main): Initialize link_info.new_dtags to false.
3913 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3914 --disable-new-dtags and --enable-new-dtags.
3915 (gld_${EMULATION_NAME}_list_options): Likewise.
3917 2000-07-05 Kenneth Block <krblock@computer.org>
3919 * lexsup.c: Add optional style to demangle switch
3920 * ld.texinfo: Document optional style to demangle switch.
3922 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3924 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3926 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3927 Regenerate dependencies.
3928 * Makefile.in: Rebuild.
3929 * configure.tgt (cris-*-*): New target.
3930 * emulparams/crisaout.sh, emulparams/criself.sh,
3931 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3932 * po/POTFILES.in, po/ld.pot: Regenerate.
3934 2000-07-20 H.J. Lu <hjl@gnu.org>
3936 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3937 Print out ignored -z options.
3939 2000-07-19 H.J. Lu <hjl@gnu.org>
3941 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3942 (PARSE_AND_LIST_PROLOGUE): New.
3943 (PARSE_AND_LIST_LONGOPTS): Likewise.
3944 (PARSE_AND_LIST_OPTIONS): Likewise.
3945 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3947 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3949 * lexsup.c (ld_options): Comment out 'z'.
3950 (parse_args): Likewise.
3952 * emultempl/elf32.em: Include "elf/common.h".
3953 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3955 (gld_${EMULATION_NAME}_list_options): Likewise.
3957 * ld.texinfo: Add documentation for the recognized -z options.
3959 2000-07-19 H.J. Lu <hjl@gnu.org>
3961 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3962 bfd_elf_set_dt_needed_soname ().
3964 2000-07-18 DJ Delorie <dj@cygnus.com>
3966 * pe-dll.c (pe_dll_id_target): check object target name also
3968 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3970 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3971 ${INIT_END} if relocating.
3972 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3974 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3976 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3977 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3978 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3979 errors introduced by the old dynamic lib search order.
3981 2000-07-17 DJ Delorie <dj@cygnus.com>
3983 * pe-dll.c (process_def_file): auto-export data items also
3984 (pe_process_import_defs): also see if _imp_ form needed
3986 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3988 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3989 for dll import libraries
3991 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3993 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3994 gcc 2.95.2 and later.
3996 2000-07-11 Kazu Hirata <kazu@hxi.com>
3998 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4001 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4003 * ldemul.h (struct lang_input_statement_struct): Remove forward
4005 (struct search_dirs): Likewise.
4006 * ldfile.h (struct lang_input_statement_struct): Likewise.
4007 Protect file from multiple inclusion.
4008 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4009 declaration from macro to file scope.
4011 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4012 * ldgram.y: Likewise here.
4013 * ldlang.c: And here.
4014 * ldmain.c: And here.
4015 * mpw-elfmips.c: And here.
4016 * mpw-eppcmac.c: And here.
4017 * emultempl/aix.em: And here.
4018 * emultempl/armcoff.em: And here.
4019 * emultempl/armelf.em: And here.
4020 * emultempl/armelf_oabi.em: And here.
4021 * emultempl/beos.em: And here.
4022 * emultempl/elf32.em: And here.
4023 * emultempl/hppaelf.em: And here.
4024 * emultempl/linux.em: And here.
4025 * emultempl/lnk960.em: And here.
4026 * emultempl/pe.em: And here.
4027 * emultempl/sunos.em: And here.
4028 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4029 * mpw-idtmips.c: Ditto.
4030 * emultempl/generic.em: Ditto.
4031 * emultempl/gld960.em: Ditto.
4032 * emultempl/gld960c.em: Ditto.
4033 * emultempl/mipsecoff.em: Ditto.
4034 * emultempl/ticoff.em: Ditto.
4035 * emultempl/vanilla.em: Ditto.
4037 * pe-dll.c: Include ldfile.h
4038 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4040 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4041 arguments to bfd_elf32_size_dynamic_sections call.
4042 (gldelf32ebmip_place_orphan): Add missing arguments to
4043 lang_leave_output_section_statement call.
4045 2000-07-10 H.J. Lu <hjl@gnu.org>
4047 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4049 (strhash): Likewise.
4050 (compute_dll_image_base): Likewise.
4051 (pe_undef_found_sym): Likewise.
4052 (pe_undef_cdecl_match): Likewise.
4053 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4054 argument "arch" with ATTRIBUTE_UNUSED.
4056 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4058 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4060 From Ryan Bradetich <rbradetich@uswest.net>
4061 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4063 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4065 Changes to create multiple linker stubs, positioned immediately
4066 before the section where they are required.
4067 * emultempl/hppaelf.em: Include elf32-hppa.h.
4068 (stub_sec, file_chain): Delete.
4069 (hppaelf_create_output_section_statements): Don't make a stub
4071 (hook_stub_info): New struct.
4072 (hook_in_stub): New function.
4073 (hppaelf_add_stub_section): New function.
4074 (hppaelf_finish): Do nothing for relocateable links. Modify the
4075 call to elf32_hppa_size_stubs. Move code for updating section
4077 (hppaelf_layaout_sections_again): ..to here, a new function.
4079 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4080 broken list handling. Pass in a pointer to the list.
4081 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4083 (hppaelf_before_parse): Prototype.
4084 (hppaelf_set_output_arch): Prototype.
4085 (hppaelf_create_output_section_statements): Prototype.
4086 (hppaelf_delete_padding_statements): Prototype.
4087 (hppaelf_finish): Prototype.
4090 * emultempl/hppaelf.em: Include ctype.h.
4091 (struct orphan_save): New.
4092 (gld${EMULATION_NAME}_place_orphan): New.
4093 (output_rel_find): New.
4094 (hppaelf_get_script): Update from elf32.em.
4095 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4096 Change emulation_name field to "${EMULATION_NAME}". Add
4097 gld${EMULATION_NAME}_place_orphan.
4099 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4100 ehppalinux.o, sort it. Regenerate dependencies.
4101 (ehppalinux.c): Depend on hppaelf.em
4102 * Makefile.in: Regenerate.
4104 * configure.tgt: targ_emul=hppalinux for hppa*linux
4106 * emulparams/hppalinux.sh: New.
4107 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4109 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4111 * lexsup.c (parse_args): Copy section name.
4113 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4115 * emultempl/pe.em: institute the following search order for
4116 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4117 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4118 static lib (libfoo.a) if none of the above are found.
4120 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4122 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4123 (longopts): New --{enable,disable}-auto-image-base options.
4124 (gld_${EMULATION_NAME}_list_options): Document.
4125 (gld_${EMULATION_NAME}_parse): Handle.
4126 (strhash): New static function.
4127 (compute_dll_image_base): New static function.
4128 (gld_${EMULATION_NAME}_set_symbols): Use.
4130 2000-07-05 DJ Delorie <dj@redhat.com>
4134 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4136 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4137 * emulparams/elf32btsmip.sh: New file.
4138 * Makefile.am: Add traditional mips target.
4139 * Makefile.in: Rebuild.
4141 2000-07-01 H.J. Lu <hjl@gnu.org>
4143 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4144 automake to use YLWRAP.
4145 * Makefile.in: Rebuild.
4147 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4149 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4150 (CLEANFILES): Add DEPA.
4151 * Makefile.in: Regenerate.
4153 2000-06-30 Timothy Wall <twall@ppc>
4155 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4156 the page in the upper octet of the address.
4158 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4160 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4162 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4164 * NEWS: arm-elf does --gc-sections too.
4166 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4168 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4170 * Makefile.in: Regenerate.
4172 2000-06-21 H.J. Lu <hjl@gnu.org>
4174 * Makefile.am: Rebuild dependency.
4175 * Makefile.in: Rebuild.
4177 2000-06-20 H.J. Lu <hjl@gnu.org>
4179 * Makefile.am: Rebuild dependency.
4180 * Makefile.in: Rebuild.
4182 2000-06-20 Timothy Wall <twall@cygnus.com>
4184 * scripttempl/tic54xcoff.sc: New.
4185 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4186 * gen-doc.texi: Add flag for TI COFF.
4187 * ld.texinfo: Add documentation for TI COFF handling switches.
4188 * emultempl/ticoff.em: New. TI COFF handling.
4189 * configure.tgt: Add tic54x target.
4190 * Makefile.am: Add tic54x target.
4191 * Makefile.in: Ditto.
4193 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4195 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4196 checking for backslashes.
4198 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4200 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4202 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4204 * NEWS: Update list of targets supporting --gc-sections.
4206 * scripttempl/elf.sc: KEEP .eh_frame contents.
4207 * scripttempl/elfd30v.sc: Same here.
4209 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4211 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4213 * Makefile.in: Rebuild.
4214 * configure.tgt: Recognize m68hc12 and m68hc11.
4215 * scripttempl/elfm68hc12.sc: New file.
4216 * emulparams/m68hc12elfb: New emulation.
4217 * emulparams/m68hc12elf: New emulation.
4218 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4219 (includes a memory.x script to define the ROM and RAM banks).
4220 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4221 New configuration files for support of Motorola 68hc11
4223 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4225 * ldmain.c (main): Only change SEC_READONLY for final link.
4227 2000-06-13 H.J. Lu <hjl@gnu.org>
4229 * configure: Regenerate.
4231 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4233 * configure.in (VERSION): Update to show this is the CVS mainline.
4235 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4237 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4238 input objects to be ECOFF.
4239 (check_sections): einfo takes %B, not %P, to print a BFD name.
4241 2000-06-05 Michael Matz <matz@ifh.de>
4243 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4246 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4248 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4250 * emulparams/avr1200.sh (STACK): Define as 0.
4251 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4252 * emulparams/avr4433.sh (STACK): Likewise.
4253 * emulparams/avr44x4.sh (STACK): Likewise.
4254 * emulparams/avr85xx.sh (STACK): Likewise.
4255 * emulparams/avrmega103.sh (STACK): Likewise.
4256 * emulparams/avrmega161.sh (STACK): Likewise.
4257 * emulparams/avrmega603.sh (STACK): Likewise.
4258 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4259 (__stack): Define from ${STACK} for main().
4261 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4263 * Makefile.am: Update dependencies with "make dep-am"
4264 * Makefile.in: Regenerate.
4266 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4268 * ldmain.c: Include filenames.h.
4269 (set_scripts_dir): Support backslashes in program name.
4271 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4273 * ldmain.c (main): When deciding if ".text" section should be
4274 read-only, don't forget to reset SEC_READONLY because it
4275 could be already set.
4277 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4279 * ld.1: Add documentation for new command line option:
4280 --section-start <sectionname>=<sectionorg>
4281 This is a generic version of -Ttext etc. which accepts
4282 any section name as a parameter instead of just text/data/
4284 * ld.texinfo: More docs.
4286 * lexsup.c: (parse_args): Recognize new command line option.
4287 (ld_options): Add new option.
4289 2000-05-18 H.J. Lu <hjl@gnu.org>
4291 * lexsup.c (parse_args): `i' == `r', not `q'.
4293 2000-05-18 Jeffrey A Law (law@cygnus.com)
4295 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4297 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4298 Rick Gorton <gorton@scrugs.lkg.dec.com>
4300 Add support for '-q' == '--emit-relocs' switch.
4301 * ldmain.c (main): Default to false.
4302 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4303 * NEWS: Describe the emitrelocations switch.
4304 * ld.texinfo: Describe the emitrelocations switch.
4306 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4308 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4309 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4310 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4313 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4315 * lexsup.c (parse_args): Update the year in the copyright notice.
4317 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4319 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4320 Replace defines with those from intl/libgettext.h to quieten gcc
4323 2000-05-10 H.J. Lu <hjl@gnu.org>
4325 * ldlang.c (open_input_bfds): Don't load the same file within
4326 a group again if the whole archive has been loaded already.
4328 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4330 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4331 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4334 2000-05-01 Jim Wilson <wilson@cygnus.com>
4336 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4338 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4339 host "ia64-*-linux-gnu*".
4341 2000-04-29 Andreas Jaeger <aj@suse.de>
4343 * ld.h: Correctly check GCC version.
4345 2000-04-25 Jeffrey A Law (law@cygnus.com)
4347 * Makefile.am: Add PA64 support. Add missing dependencies for
4349 * Makefile.in: Rebuilt.
4350 * configure.tgt: Add PA64 support (currently disabled).
4352 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4354 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4355 (output_rel_find): New function.
4356 (hold_section, hold_use): Delete.
4357 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4358 hold_interp): Make local to place_orphan.
4359 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4360 rather than place_section to find possible previous use of orphan.
4361 Similarly find the place-holder output sections. Use returned
4362 value from lang_enter_output_section_statement rather than calling
4363 lang_output_section_statement_lookup.
4364 * emultempl/armelf.em: Same here.
4365 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4367 * ldlang.c (lang_enter_output_section_statement): Return output
4369 * ldlang.h (lang_enter_output_section_statement): Change
4372 * ldlang.h (lang_output_section_statement): Export it.
4373 * ldlang.c (lang_output_section_statement): Ditto.
4375 2000-04-24 Nick Clifton <nickc@cygnus.com>
4377 * ld.texinfo (Output Section Data): Add note that section data
4378 commands cannot appear outside of section directives.
4380 2000-04-2 Matthew Green <mrg@cygnus.com>
4382 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4384 2000-04-21 Richard Henderson <rth@cygnus.com>
4385 David Mosberger <davidm@hpl.hp.com>
4387 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4388 (eelf64_ia64.c): New rule.
4389 * Makefile.in: Rebuild.
4390 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4391 * emulparams/elf64_ia64.sh: New file.
4393 2000-04-21 Richard Henderson <rth@cygnus.com>
4395 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4397 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4399 * dep-in.sed: Match space at start of file name, not at end.
4401 2000-04-18 H.J. Lu <hjl@gnu.org>
4403 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4404 lang_leave_output_section_statement () after calling
4405 lang_enter_output_section_statement ().
4406 * emultempl/armelf.em: Likewise.
4408 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4410 * emultempl/elf32.em (struct orphan_save): Add section field.
4411 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4412 better order, and place first orphan section as we did before the
4413 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4414 Don't call make_bfd_section here, let wild_doit do the job for us.
4415 Don't build a statement list when we'll only throw it away.
4416 * emultempl/armelf.em: Ditto.
4417 * emultempl/pe.em: Similarly.
4419 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4421 * scripttempl/elfppc.sc: Remove.
4422 * emulparams/elf32ppc.sh: Use elf.sc.
4423 * emulparams/elf32lppc.sh: Use elf.sc.
4424 * emulparams/elf32ppclinux.sh: Use elf.sc.
4425 * emulparams/elf32ppcsim.sh: New file.
4426 * emulparams/elf32lppcsim.sh: New file.
4427 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4428 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4429 * Makefile.in: Regenerate.
4430 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4432 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4434 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4435 ~SEC_ALLOC sections too. Init start address of debug sections.
4436 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4437 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4438 Also set all relocateable section start addresses.
4440 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4442 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4443 Add new BSS_PLT variable for when .plt need not be contained in
4444 the file. Move _etext so that it is also after .fini, and provide
4445 both etext and _etext with a leading underscore. Mark the start
4448 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4450 * emultempl/elf32.em (struct orphan_save): New.
4451 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4452 hold_interp): Make them struct orphan_save.
4453 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4454 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4455 the end of the relevant section list. Also add associated section
4456 statements to the end of any previous orphan statements.
4457 * emultempl/armelf.em: Similarly.
4458 * emultempl/pe.em: Similarly.
4460 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4462 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4464 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4466 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4467 --enable-build-warnings option.
4468 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4469 * Makefile.in, configure: Re-generate.
4471 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4473 * po/ld.pot: Regenerate.
4475 * lexsup.c (help): Restore translated part of bug string.
4477 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4478 (DEP): Quote when passing vars to sub-make. Add warning message
4480 (DEP1): Rewrite for "gcc -MM".
4481 (CLEANFILES): Add DEP2.
4482 Update dependencies.
4483 * Makefile.in: Regenerate.
4485 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4487 * ld.h: #include "bin-bugs.h"
4488 * lexsup.c (help): Use REPORT_BUGS_TO.
4490 2000-03-27 Denis Chertykov <denisc@overta.ru>
4492 * configure.tgt (avr-*-*): New target support.
4493 * Makefile.am: Likewise.
4494 * scripttempl/elf32avr.sc: New script file.
4495 * emulparams/avr1200.sh: New file.
4496 * emulparams/avr23xx.sh: New file.
4497 * emulparams/avr4433.sh New file.
4498 * emulparams/avr44x4.sh New file.
4499 * emulparams/avr85xx.sh New file.
4500 * emulparams/avrmega103.sh New file.
4501 * emulparams/avrmega161.sh New file.
4502 * emulparams/avrmega603.sh New file.
4503 * Makefile.in: Regenerate.
4505 2000-03-09 Andreas Jaeger <aj@suse.de>
4507 * Makefile.am (check-DEJAGNU): Also unset LANG.
4508 * Makefile.in: Rebuild.
4510 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4512 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4515 2000-03-02 H.J. Lu <hjl@gnu.org>
4517 * emulparams/elf32mcore.sh: Include "getopt.h".
4519 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4521 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4523 2000-03-01 H.J. Lu <hjl@gnu.org>
4525 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4526 * emulparams/shpe.sh: Likewise.
4528 2000-03-01 Nick Clifton <nickc@cygnus.com>
4530 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4531 to unused parameters.
4533 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4534 functions only used by DLL code.
4535 (_place_orphan): Initialise 'dollar'.
4537 2000-03-01 H.J. Lu <hjl@gnu.org>
4539 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4540 indicate if the undefined symbol is a fatal error or not.
4541 Don't delete the output file if "fatal" is false.
4543 2000-02-29 H.J. Lu <hjl@gnu.org>
4545 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4546 Set LC_COLLATE and LC_ALL to null and export them. It is for
4547 sort which expects the C locale.
4548 Add $(LIBS) to all $(HOSTING_LIBS).
4549 * Makefile.in: Rebuild.
4551 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4553 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4554 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4555 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4556 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4557 find_potential_libraries.
4559 2000-02-28 Jim Blandy <jimb@redhat.com>
4561 * ldgram.y (exclude_name_list): Don't require a comma to separate
4562 list entries; the lexer considers commas to be valid part of a
4563 filename, so in something like `foo, bar' the comma is considered
4564 part of the first filename, `foo,'.
4565 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4567 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4569 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4570 host "i[3456]86-*-freebsdelf*".
4572 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4574 * scripttempl/i386go32.sc: Move misplaced semicolons.
4576 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4578 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4579 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4580 (eelf64hppa.c, ehppaelf.c): Remove targets.
4581 * Makefile.in: Rebuild.
4583 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4585 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4586 GNU/Linux/sparc, but keep the default as 32.
4588 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4589 it default if sparcv9 or sparc64.
4591 2000-02-24 Nick Clifton <nickc@cygnus.com>
4593 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4594 * Makefile.in: Regenerate.
4595 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4597 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4598 find_potential_libraries.
4599 * ldemul.c (ldemul_find_potential_libraries): New function.
4601 * ldfile.c (ldfile_open_file_search): Allow function to be
4603 (ldfile_open_file): Call ldemul_find_potential_libraries.
4604 * ldfile.h: Add prototype for ldfile_open_file_search.
4606 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4608 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4609 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4611 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4612 (gld_X_find_potential_libraries): New function. Search for
4613 libraries called "*.lib".
4615 * scripttempl/pe.sc: Add .pdata section.
4617 2000-02-23 Richard Henderson <rth@cygnus.com>
4619 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4620 Add and use memory regions.
4622 2000-02-23 Linas Vepstas (linas@linas.org)
4624 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4626 * Makefile.am: Add support for Linux/IBM 370.
4627 * configure.tgt: Likewise.
4629 * Makefile.in: Regenerate.
4631 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4633 * ldlang.c (print_input_section, print_data_statement,
4634 print_reloc_statement, print_padding_statement, insert_pad,
4635 size_input_section, lang_check_section_addresses,
4636 lang_size_sections, lang_do_assignments, lang_set_startof,
4637 lang_one_common): Change `opb' to unsigned.
4638 (lang_do_assignments): Also change `size' to unsigned.
4640 2000-02-16 Richard Henderson <rth@cygnus.com>
4642 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4644 2000-02-16 Timothy Wall <twall@cygnus.com>
4646 * mri.c (mri_draw_tree): Add default LMA region argument to call
4647 to lang_leave_output_section_statement.
4648 * ldlang.h: Update prototypes with LMA region arguments.
4649 * ldlang.c (lang_size_sections): Encapsulate region bounds
4650 checking in os_check_region call.
4651 (os_check_region): New function.
4652 (lang_output_section_statement_lookup): Initialize lma_region.
4653 (lang_leave_output_section_statement): Add LMA region argument.
4654 (lang_leave_overlay): Ditto.
4655 * ldgram.y: Handle LMA region syntax.
4656 * ld.texinfo (Output Section Description): Describe LMA region usage.
4657 * emultempl/armelf.em (gld$place_orphan): Add default value for
4658 lma region in call to lang_leave_output_section_statement.
4659 * emultempl/elf32.em (gld$place_orphan): Add default value for
4660 lma region in call to lang_leave_output_section_statement.
4661 * emultempl/pe.em (gld$place_orphan): Add default value for
4662 lma region in call to lang_leave_output_section_statement.
4665 2000-02-04 Timothy Wall <twall@redhat.com>
4667 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4668 octets when calculating section end addresses.
4670 2000-02-04 Timothy Wall <twall@redhat.com>
4672 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4674 2000-02-03 Timothy Wall <twall@redhat.com>
4676 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4678 * ldlang.c (print_input_section, print_data_statement,
4679 print_reloc_statement, print_padding_statement): Print target
4680 address values and section sizes as bytes, not octets.
4681 (insert_pad) Calculate padding size in octets, and adjust "dot"
4683 (size_input_section) Always adjust "dot" by bytes, not octets.
4684 (lang_check_section_addresses, lang_do_assignments) Adjust
4685 "dot" by bytes, not octets. Use the larger of the directive size
4686 or octets_per_byte for the number of octets actually allocated in
4688 (lang_set_startof) Make sure STARTOF returns a target address.
4689 (lang_one_common) Record size changes in octets.
4690 (lang_abs_symbol_at_end_of) Section end symbol's value is
4691 recorded in target bytes.
4692 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4693 to be clear about behavior when an octet is smaller than one byte.
4695 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4697 * ldcref.c (output_cref): Don't pass message strings to printf
4701 * ldmisc.c (vfinfo): Same here.
4704 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4706 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4707 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4708 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4709 Add missing NULL initialisers, and comments.
4711 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4713 2000-01-21 Nick Clifton <nickc@cygnus.com>
4715 * ldlang.c (lang_size_sections): Fix typo in comment.
4717 2000-01-18 H.J. Lu <hjl@gnu.org>
4719 * ldlang.c (lang_size_sections): Also update the current
4720 address of a region if the SEC_NEVER_LOAD bit is not set.
4722 2000-01-10 Philip Blundell <pb@futuretv.com>
4724 * configure.tgt (arm*-*-conix*): New target.
4726 2000-01-07 Nick Clifton <nickc@cygnus.com>
4728 * ld.texinfo (Options): Remind users to preceed linker command
4729 line switches with -Wl, (or whatever is appropriate) if it is
4730 being invoked by a comnpiler driver program.
4731 Fix description of the behaviour of the -n command line switch.
4733 2000-01-05 Catherine Moore <clm@cygnus.com>
4735 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4737 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4738 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4739 (exclude_name_list): New.
4740 ldlang.c (walk_wild_section): Support list of excluded files.
4741 (print_wild_statement): Likewise.
4742 (lang_add_wild): Likewise.
4743 * ldlang.h (lang_wild_statement_type): Likewise.
4744 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4746 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4748 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4749 (process_def_file): Use.
4750 (pe_dll_compat_implib): New variable.
4753 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4754 pe_dll_compat_implib.
4756 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4757 compat-implib options.
4758 (gld_${EMULATION_NAME}_list_options): List new options.
4759 (gld_${EMULATION_NAME}_parse_args): Handle.
4761 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4764 * deffilep.y (opt_name): Allow "." in name.
4766 For older changes see ChangeLog-9899
4772 version-control: never