1 2002-08-30 Alan Modra <amodra@bigpond.net.au>
3 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
5 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
7 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
8 added makefile targets for this file.
9 * Makefile.in: Regenerate.
10 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
11 * NEWS: Mention new port.
13 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15 * emulparams/tic3xcoff.sh: New file.
16 * emulparams/tic4xcoff.sh: New file.
17 * scripttempl/tic3xcoff.sc: New file.
18 * scripttempl/tic4xcoff.sc: New file.
20 2002-08-28 Alan Modra <amodra@bigpond.net.au>
22 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
23 strtoul and strtoull with bfd_scan_vma.
24 (gld${EMULATION_NAME}_read_file): Likewise.
26 2002-08-28 Alan Modra <amodra@bigpond.net.au>
28 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
30 2002-08-27 Egor Duda <deo@logos-m.ru>
32 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
33 Add symbols for application to access them.
35 2002-08-27 Nick Clifton <nickc@redhat.com>
37 * emultempl/armelf.em: Revert this patch, it is not needed.
39 2002-08-22 Adam Nemet <anemet@lnxw.com>
41 2002-08-20 Dan Kegel <dank@kegel.com>
43 * configure.in: added --with-lib-path argument to ld's configure
45 * ld/NEWS: Document new switch.
46 * ld/README: Mention new switch.
47 * configure: Regenerate.
48 * Makefile.in: Regenerate.
51 2001-04-25 Christopher Faylor <cgf@cygnus.com>
53 * Makefile.in (LIB_PATH): Make configurable.
54 (GENSCRIPTS): Set LIB_PATH in environment.
55 * configure.in: Substitute LIB_PATH.
57 2002-08-22 Adam Nemet <anemet@lnxw.com>
59 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
60 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
61 depending on the type of the function.
62 (arm_elf_convert_thumb_symbol_to_address): New function.
64 2002-08-22 Graeme Peterson <gp@qnx.com>
66 * Makefile.am: Add esh{l}elf_nto.o files.
67 * Makefile.in: Regenerate.
68 * configure.tgt: Add support for sh-**-nto* targets.
69 * emulparams/shelf_nto.sh: New file.
70 * emulparams/shlelf_nto.sh: New file.
72 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
74 * ldlang.c (offsetof): Define if not defined.
76 2002-08-14 H.J. Lu <hjl@gnu.org>
78 * configure.tgt: Always enable 64bit emulations for 32bit
81 2002-08-13 Alan Modra <amodra@bigpond.net.au>
83 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
84 (MAXPAGESIZE): Set to 1.
86 * ld.h (ALIGN_N): Delete.
87 * ldexp.h (align_n): Declare.
88 * ldexp.c (align_n): New function.
89 (fold_binary): Use align_n instead of ALIGN_N.
90 (exp_fold_tree): Likewise.
91 * ldlang.c (lang_size_sections_1): Likewise.
92 (lang_one_common): Likewise.
93 * ld.texinfo (ALIGN): Remove power of 2 restriction.
95 2002-07-31 Graeme Peterson <gp@qnx.com>
97 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
98 * Makefile.am: Add eelf32{l}ppcnto.o files.
99 * Makefile.in: Regenerate.
100 * emulparams/elf32lppcnto.sh: New file.
101 * emulparams/elf32ppcnto.sh: New file.
103 2002-08-07 H.J. Lu <hjl@gnu.org>
105 * ld.texinfo: Document --no-undefined-version.
107 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
108 `script.' fields to 0.
110 * ldmain.c (main): Initialize the allow_undefined_version to
113 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
114 (ld_options): Add --no-undefined-version.
115 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
117 2002-08-07 Nick Clifton <nickc@redhat.com>
119 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
120 an interworking bfd if there are input bfds. (107501)
122 2002-08-06 Alan Modra <amodra@bigpond.net.au>
124 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
127 2002-08-01 Nick Clifton <nickc@redhat.com>
129 * emulparams/armelf.sh: Revert previous delta.
130 * scripttempl/elf.sc: Revert previous delta.
132 2002-07-31 H.J. Lu <hjl@gnu.org>
134 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
137 2002-07-31 H.J. Lu <hjl@gnu.org>
139 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
140 64bit BFD is selected.
142 2002-07-31 H.J. Lu <hjl@gnu.org>
144 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
145 if 64bit BFD is selected.
147 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
149 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
150 link_info.common_skip_ar_aymbols.
151 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
153 * ldmain.c (main): Initialize new field
154 link_info.common_skip_ar_aymbols.
156 2002-07-31 Adam Nemet <anemet@lnxw.com>
158 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
160 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
163 2002-07-31 Nick Clifton <nickc@redhat.com>
165 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
166 of the PDP-11 and 2.11BSD a.out support.
168 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
170 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
172 * Makefile.in: Regenerate.
173 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
174 n32 ABI emulations for these 64 bit targets.
175 * emulparams/elf32bmipn32.sh: Expand comment.
176 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
178 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
180 2002-07-30 Graeme Peterson <gp@qnx.com>
182 * configure.tgt: Add support for arm-*-nto target.
183 * Makefile.am: Add earmnto.o file.
184 * Makefile.in: Regenerate.
185 * NEWS: Mention port of ARM support to QNX.
186 * emulparams/armnto.sh: New file.
188 2002-07-30 Jakub Jelinek <jakub@redhat.com>
190 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
191 for relocatable link.
192 (lang_size_sections_1): Don't make .tbss zero size for relocatable
195 2002-07-26 Bernd Schmidt <bernds@redhat.com>
197 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
200 2002-07-25 Nick Clifton <nickc@redhat.com>
202 * po/sv.po: Updated Swedish translation.
203 * po/es.po: Updated Spanish translation.
204 * po/fr.po: Updated French translation.
206 2002-07-24 Nick Clifton <nickc@redhat.com>
208 * po/sv.po: Updated Swedish translation.
209 * po/es.po: Updated Spanish translation.
211 2002-07-23 Nick Clifton <nickc@redhat.com>
213 * po/fr.po: Updated French translation.
215 2002-07-20 Alan Modra <amodra@bigpond.net.au>
217 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
218 bomb on /DISCARD/ input section.
219 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
220 * emultempl/mmo.em (mmo_place_orphan): Likewise.
222 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
224 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
227 2002-07-16 Denis Chertykov <denisc@overta.ru>
228 Nick Clifton <nickc@redhat.com>
229 Frank Ch. Eigler <fche@redhat.com>
230 John Healy <jhealy@redhat.com>
232 * configure.tgt: Add support for ip2k-elf.
233 * Makefile.am: Add support for ip2k-elf.
234 * Makefile.in: Regenerate.
235 * emulparams/elf32ip2k.sh: New file.
236 * scripttempl/ip2k.sc: New file
237 * NEWS: Mention support for new port.
239 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
241 * NEWS: Add 'Changes in 2.13'.
243 2002-07-14 H.J. Lu <hjl@gnu.org>
245 * ld.texinfo: Document a .symver takes precedence over a
248 2002-07-12 Alan Modra <amodra@bigpond.net.au>
250 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
251 (COMMONPAGESIZE): Define.
253 2002-07-09 Alan Modra <amodra@bigpond.net.au>
255 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
257 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
259 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
260 powerpc-*-openbsd* and sparc64-*-openbsd*.
261 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
262 * Makefile.in: Regenerate.
263 * emulparams/hppaobsd.sh: New file.
265 2002-07-05 Alan Modra <amodra@bigpond.net.au>
267 * ldlang.c (print_wild_statement): Fix output formatting.
269 2002-07-04 Alan Modra <amodra@bigpond.net.au>
271 * ldlang.c: (strip_excluded_output_sections): New function.
272 (lang_process): Call it.
273 (lang_size_sections_1): Revert 2002-06-10 change.
275 2002-07-03 Alan Modra <amodra@bigpond.net.au>
277 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
279 * Makefile.in: Regenerate.
281 2002-07-02 Alan Modra <amodra@bigpond.net.au>
283 * ldfile.c (ldfile_try_open_bfd): Formatting.
285 * ldmisc.c (demangle): Move so that it doesn't intrude between
286 vfinfo comment and body. Add comment.
288 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
290 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
292 2002-07-01 Alan Modra <amodra@bigpond.net.au>
294 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
295 * ldlang.c (entry_sym): Likewise.
296 (ldlang_undef_chain_list_type): Likewise.
297 (lang_finish): Adjust references to entry_symbol.
298 (lang_add_entry): Likewise.
299 (lang_gc_sections): Use link_info.gc_sym_list.
300 (lang_process): Set link_info.gc_sym_list.
301 * ldlex.l: Include bfdlink.h.
302 * ldmain.c (main): Init link_info.gc_sym_list.
303 * emultempl/aix.em: Adjust references to entry_symbol.
304 * emultempl/armcoff.em: Likewise.
305 * emultempl/armelf.em: Likewise.
306 * emultempl/pe.em: Likewise.
307 * emultempl/ppc64elf.em (ppc_after_open): New function.
308 (LDEMUL_AFTER_OPEN): Define.
309 * emulparams/elf64ppc.sh: KEEP .opd sections.
311 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
313 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
314 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
315 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
316 (EEPROM_START_ADDR): Define.
317 (EEPROM_MEMORY): Define.
318 * emulparams/m68hc12elf.sh: Likewise.
319 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
320 section to put soft registers in .page0.
321 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
323 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
325 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
326 section. Add ${RELOCATING-0}.
328 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
330 * emulparams/shelf.sh (STACK_ADDR): Don't define.
331 (OTHER_SECTIONS): Define.
332 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
333 (OTHER_SECTIONS): Undef.
335 2002-06-26 Alan Modra <amodra@bigpond.net.au>
337 * ldmisc.c (demangle): Restore dots stripped from sym name.
339 2002-06-25 H.J. Lu <hjl@gnu.org>
341 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
342 * Makefile.in: Regenerated.
344 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
346 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
347 the size of attached object files, to allow make the object files
348 available via FTP or HTTP and to mention that the mail will be
349 sent to a mailing list.
351 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
353 * ld/configure.host (romp): Drop support.
355 2002-06-18 Chris Demetriou <cgd@broadcom.com>
357 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
358 section flags for SEC_DATA, rather than for SEC_CODE being unset.
360 2002-06-18 Chris Demetriou <cgd@broadcom.com>
362 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
363 format specifier used to print BFD name.
365 2002-06-18 Dave Brolley <brolley@redhat.com>
367 From Catherine Moore, Michael Meissner, Jim Blandy:
368 * emulparams/elf32frv.sh: New file.
369 * configure.tgt: Support frv-*-*.
370 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
371 (eelf32frv.c): New target.
373 2002-06-17 Tom Rix <trix@redhat.com>
375 * emultempl/elf32.em: gld*_get_script: Check for
376 GENERATE_COMBRELOC_SCRIPT.
377 * scripttempl/elfd10v.sc : Fix STACK and INSN.
378 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
380 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
382 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
384 2002-06-12 H.J. Lu <hjl@gnu.org>
386 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
387 false if xvec doesn't match.
389 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
391 * ldlang.c (lang_size_sections_1): Skip removed output sections.
393 2002-06-08 Alan Modra <amodra@bigpond.net.au>
395 * ldexp.c: Replace CONST with const.
396 * ldfile.c: Likewise.
397 * ldfile.h: Likewise.
400 * pe-dll.h: Likewise.
402 2002-06-07 Alan Modra <amodra@bigpond.net.au>
404 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
406 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
408 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
409 to -1 == implicit enable.
410 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
411 initialize link_info.pei386_auto_import to -1 == implicit
413 (gld_${EMULATION_NAME}_parse_args): When processing
414 --enable-auto-import and --disable-auto-import options, use
415 '1' and '0' instead of 'true' and 'false'.
416 (pe_find_data_imports): Only issue message about auto-import
417 when the feature is implicitly enabled. Downgrade message to
418 informational instead of warning.
420 2002-06-07 Alan Modra <amodra@bigpond.net.au>
422 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
424 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
426 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
427 HOSTING_CRT0 and HOSTING_LIBS.
429 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
431 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
433 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
435 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
436 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
438 2002-06-05 Alan Modra <amodra@bigpond.net.au>
440 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
441 SEC_EXCLUDE sections when doing a relocatable link.
443 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
445 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
446 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
447 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
448 (eshlelf64_nbsd.c): New rules.
449 * Makefile.in: Regenerate.
450 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
451 (sh64-*-netbsd*): New targets.
452 * emulparams/shelf32_nbsd.sh: New file.
453 * emulparams/shelf64_nbsd.sh: New file.
454 * emulparams/shlelf32_nbsd.sh: New file.
455 * emulparams/shlelf64_nbsd.sh: New file.
457 2002-06-04 Alan Modra <amodra@bigpond.net.au>
459 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
461 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
463 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
464 C++ constructors/destructors, loosely based on the m68hc11 port.
466 2002-05-31 Alan Modra <amodra@bigpond.net.au>
468 * Makefile.in: Regenerate.
469 * aclocal.m4: Regenerate.
470 * config.in: Regenerate.
471 * configure: Regenerate.
473 2002-05-31 Graeme Peterson <gp@qnx.com>
475 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
476 (ei386nto.c): Add rule.
477 * Makefile.in: Regenerate.
478 * configure.tgt: Add i[3456]86-*-nto-qnx*.
479 * emulparams/i386nto.sh: New file.
481 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
483 * NEWS: Add entry for VAX ELF support.
485 2002-05-29 Matt Thomas <matt@3am-software.com>
486 Jason Thorpe <thorpej@wasabisystems.com>
488 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
490 (evaxnbsd.c): New rules.
491 * Makefile.in: Regenerate.
492 * configure.tgt (vax-*-netbsdelf*)
494 (vax-*-netbsd*): New targets.
495 * emulparams/elf32vax.sh: New file.
496 * emulparams/vaxnbsd.sh: New file.
498 2002-05-29 Adam Nemet <anemet@lnxw.com>
500 * emultempl/armelf.em (arm_elf_after_open): Don't determine
501 bfd_for_interwork, instead add glue sections to each input bfd.
502 (bfd_for_interwork): New global.
503 (arm_elf_set_bfd_for_interworking): New function.
504 (arm_elf_before_allocation): Use it.
506 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
508 * Makefile.am: Add DLX make target.
509 * configure.tgt: Add DLX configuration.
510 * Makefile.in: Regenerate.
511 * emulparams/elf32_dlx.sh: New file
512 * scripttempl/dlx.sc: New file
514 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
516 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
517 * Makefile.in: Regenerate.
518 * emulparams/elf_chaos.sh: Use elf_chaos script.
519 * scripttempl/elf_chaos.sc: New file.
521 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
523 * ldlang.c (lang_size_sections_1): Move check for conflicting load
524 addresses and regions from here...
525 (lang_get_regions): ...to this new function.
526 (lang_leave_output_section_statement): Use lang_get_regions.
527 (lang_leave_overlay): Likewise.
528 * mri.c (mri_draw_tree): Pass null as last argument to
529 lang_leave_output_section_statement.
530 * emultempl/elf32.em (gld*_place_orphan): Likewise.
531 * emultempl/mmo.em (mmo_place_orphan): Likewise.
532 * emultempl/pe.em (gld*_place_orphan): Likewise.
534 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
536 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
538 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
540 * ldemul.c: Fix formatting.
541 * ldfile.c: Likewise.
542 * pe-dll.c: Likewise.
543 * pe-dll.h: Likewise.
545 2002-05-25 Alan Modra <amodra@bigpond.net.au>
547 * ldlang.c (lang_process): Formatting, grammar.
549 * ldlex.l: Use #include "" instead of <> for local header files.
551 2002-05-24 TAMURA Kent <kent@netbsd.org>
553 * configure.tgt: Add a target for i386-netbsdpe.
555 2002-05-23 Jakub Jelinek <jakub@redhat.com>
557 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
558 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
559 output section if necessary. Handle .tbss.
560 (lang_size_sections): Clear _raw_size for .tbss section
561 (it allocates space in PT_TLS segment only).
562 * ldwrite.c (build_link_order): Build link order for .tbss too.
564 2002-05-23 Alan Modra <amodra@bigpond.net.au>
566 * configure.in: Correct spelling of AC_PREREQ.
568 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
570 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
572 (autofilter_objlist): Add crtbegin.o, crtend.o.
574 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
576 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
577 (longopts): Add new option --exclude-libs.
578 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
579 (gld_${EMULATION_NAME}_parse_args): Use it.
580 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
581 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
583 (pe_dll_add_excludes): Set excludes->type.
584 (auto_export): Add new variable libname and set to archive basename if
585 abfd. Use it when filtering default and user-specified libarary
586 excludes. Let string "ALL" mean all libs when filtering user-specified
588 * ld.texinfo: Document --exclude-libs.
590 2002-05-22 Alan Modra <amodra@bigpond.net.au>
592 * ldemul.c (ldemul_new_vers_pattern): New function.
593 * ldemul.h (ldemul_new_vers_pattern): Declare.
594 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
595 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
596 * emultempl/ppc64elf.em (dotsyms): New static var.
597 (gld${EMULATION_NAME}_new_vers_pattern): New function.
598 (LDEMUL_NEW_VERS_PATTERN): Define.
599 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
600 (PARSE_AND_LIST_LONGOPTS): Likewise.
601 (PARSE_AND_LIST_ARGS_CASES): Handle them.
602 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
604 * emultempl/armcoff.em: Likewise.
605 * emultempl/armelf_oabi.em: Likewise.
606 * emultempl/beos.em: Likewise.
607 * emultempl/elf32.em: Likewise.
608 * emultempl/generic.em: Likewise.
609 * emultempl/gld960.em: Likewise.
610 * emultempl/gld960c.em: Likewise.
611 * emultempl/linux.em: Likewise.
612 * emultempl/lnk960.em: Likewise.
613 * emultempl/m68kcoff.em: Likewise.
614 * emultempl/mipsecoff.em: Likewise.
615 * emultempl/pe.em: Likewise.
616 * emultempl/sunos.em: Likewise.
617 * emultempl/ticoff.em: Likewise.
618 * emultempl/vanilla.em: Likewise.
620 2002-05-22 Alan Modra <amodra@bigpond.net.au>
622 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
623 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
624 (LIB_SEARCH_DIRS): No need to use "tr".
625 (COMPILE_IN): Only set for native targets.
626 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
627 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
628 * configure.tgt (powerpc*): Set tdir_*.
629 (powerpcle*): Correct targ_extra_emuls.
630 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
631 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
633 2002-05-22 Alan Modra <amodra@bigpond.net.au>
635 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
636 calling lang_add_entry.
638 2002-05-21 H.J. Lu (hjl@gnu.org)
640 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
642 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
644 * ld.texinfo: Updated for --allow-multiple-definition and
647 * ldmain.c (main): Initialize the allow_multiple_definition
650 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
651 (ld_options): Add --allow-multiple-definition.
652 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
654 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
656 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
657 (earmelfb_nbsd.c): New rule.
658 * Makefile.in: Regenerate.
659 * configure.tgt (armeb-*-netbsdelf*): New target.
660 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
661 (arm-*-netbsd*): Likewise.
662 * emulparams/armelfb_nbsd.sh: New file.
664 2002-05-18 Tom Rix <trix@redhat.com>
666 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
669 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
671 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
672 * Makefile.in: Regenerate.
673 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
675 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
677 * emulparams/avr1.sh: New file.
678 * emulparams/avr2.sh: New file.
679 * emulparams/avr3.sh: New file.
680 * emulparams/avr4.sh: New file.
681 * emulparams/avr5.sh: New file.
682 * scripttempl/avr.sc: New file.
684 2002-05-15 Alan Modra <amodra@bigpond.net.au>
686 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
687 (lang_place_orphans): Abort if just_syms_flag.
689 2002-05-10 Tom Rix <trix@redhat.com>
691 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
692 architecture and machine information in the output bfd.
693 (gld*_before_parse): Remove old arch and machine code.
694 (choose_target): Rename to gld*_choose_target.
695 (rtld): Change type to int.
696 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
697 objects in XCOFF archives.
698 * ldfile.h: Update copyright date.
700 2002-05-10 Jakub Jelinek <jakub@redhat.com>
702 * ldmain.c (main): Enable -z combreloc by default.
704 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
706 * Makefile.am: Honour DESTDIR.
707 * Makefile.in: Regenerate.
709 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
711 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
712 (lang_enter_overlay): Remove the last two parameters.
713 (lang_leave_overlay): Take them here instead.
714 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
715 (section): Pass LMA and crossref flag to lang_leave_overlay rather
716 than lang_enter_overlay.
717 * ldlang.c (lang_memory_region_lookup): Return null for null names.
718 (lang_output_section_statement_lookup): Initialize update_dot_tree.
719 (lang_size_sections_1): Evaluate it.
720 (lang_leave_output_section_statement): Rework LMA lookup.
721 (overlay_lma, overlay_nocrossrefs): Remove.
722 (lang_enter_overlay): Remove LMA and crossref arguments.
723 (lang_enter_overlay_section): Don't set the LMA here.
724 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
725 assignment to the last section's update_dot_tree. Unconditionally
726 use the load and run-time regions specified in the OVERLAY statement.
727 Likewise the first section's LMA. Only set the other sections' LMAs
728 when no load region is given.
730 2002-05-06 Nick Clifton <nickc@redhat.com>
732 * po/sv.po: New translation.
734 2002-05-04 Alan Modra <amodra@bigpond.net.au>
736 * emultempl/hppaelf.em (build_section_lists): New function.
737 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
738 and build_section_lists.
740 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
742 * ld.h: Fix formatting.
744 * ldfile.c: Likewise.
745 * ldlang.c: Likewise.
746 * ldmain.c: Likewise.
747 * lexsup.c: Likewise.
748 * pe-dll.c: Likewise.
750 2002-05-02 Alan Modra <amodra@bigpond.net.au>
752 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
753 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
754 (build_section_lists): Do output_section tests here.
756 2002-04-30 Tom Rix <trix@redhat.com>
758 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
760 2002-05-01 Alan Modra <amodra@bigpond.net.au>
762 Long branch stubs, multiple stub sections.
763 * emultempl/ppc64elf.em: Include ldctor.h.
764 (stub_file): New var.
765 (group_size): New var.
766 (ppc_create_output_section_statements): New function.
767 (struct hook_stub_info): New.
768 (hook_in_stub): New function.
769 (ppc_add_stub_section): New function.
770 (ppc_layout_sections_again): New function.
771 (build_section_lists): New function.
772 (gld${EMULATION_NAME}_finish): Rewrite.
773 (real_func): New var.
774 (ppc_for_each_input_file_wrapper): New function.
775 (ppc_lang_for_each_input_file): New function.
776 (lang_for_each_input_file): Define.
777 (PARSE_AND_LIST_PROLOGUE): Define.
778 (PARSE_AND_LIST_LONGOPTS): Define.
779 (PARSE_AND_LIST_OPTIONS): Define.
780 (PARSE_AND_LIST_ARGS_CASES): Define.
781 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
783 2002-04-30 Tom Rix <trix@redhat.com>
785 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
786 -blibpath, -bnolibpath support.
788 2002-04-30 Mark Mitchell <mark@codesourcery.com>
790 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
791 (eelf32ppcwindiss.c): New target.
792 * Makefile.in: Regenerated.
793 * configure.tgt: Add support for powerpc-*-windiss.
794 * emulparams/elf32ppcwindiss.sh: New file.
796 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
798 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
799 * ldexp.c (exp_print_token): Add "infix_p" argument.
800 (exp_print_tree): Update accordingly.
802 2002-04-28 Alan Modra <amodra@bigpond.net.au>
804 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
805 * Makefile.in: Regenerate.
806 * mpw-elfmips.c: Delete.
807 * mpw-eppcmac.c: Delete.
809 * mpw-idtmips.c: Delete.
811 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
813 * emulparams/shelf32.sh (MACHINE): Now sh5.
815 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
817 * ldgram.y: Fix syntax warning.
819 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
821 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
822 to prevent "-n" from being taken as an abbreviation for
823 "--no-pipeline-knowledge".
825 2002-04-08 Alan Modra <amodra@bigpond.net.au>
827 * ldlang.c (lang_size_sections_1): Don't complain about
828 SEC_NEVER_LOAD sections having no memory region specified.
830 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
832 2002-04-07 matthew green <mrg@redhat.com>
834 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
836 2002-04-04 Alan Modra <amodra@bigpond.net.au>
838 * dep-in.sed: Cope with absolute paths.
839 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
841 * Makefile.in: Regenerate.
843 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
845 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
847 2002-04-03 Jakub Jelinek <jakub@redhat.com>
849 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
850 is smaller than maximum, round dot up to common page boundary.
852 2002-03-28 Alan Modra <amodra@bigpond.net.au>
854 * configure.host: Set up for generic hosts first, then tweak as
855 necessary in more specific targets.
856 (HOSTING_LIBS): Include libgcc_eh.a if found.
858 2002-03-23 Andreas Jaeger <aj@suse.de>
860 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
862 2002-03-21 Alan Modra <amodra@bigpond.net.au>
864 * Makefile.am: Run "make dep-am".
865 * Makefile.in: Regenerate.
867 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
869 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
871 2002-03-20 Alan Modra <amodra@bigpond.net.au>
873 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
874 add the symbol to the linker hash table immediately.
875 (lang_place_undefineds): Split symbol creation out..
876 (insert_undefined): ..to here.
878 2002-03-18 David O'Brien <obrien@FreeBSD.org>
880 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
881 the contents of the buffer returned from basename function will are
882 getting overwritten while still being used.
884 2002-03-18 Jan Hubicka <jh@suse.cz>
885 Andreas Jaeger <aj@suse.de>
886 Andreas Schwab <schwab@suse.de>
888 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
889 * elf_x86_64.sh (ARCH): Set to i386:x86-64
890 set libraries to default to lib64 paths.
892 2002-03-18 Tom Rix <trix@redhat.com>
894 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
895 * configure.tgt : Same.
896 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
897 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
898 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
899 emulation parameters for better -b32, -b64 support.
900 * emulparms/aixrs6.sh : Same.
901 * emulparms/ppcmacos.sh : Same.
902 * emultempl/aix.em (choose_target) : Use new emulation parameters
903 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
904 * Makefile.in : Regenerate.
906 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
908 * po/fr.po: Updated version.
910 2002-03-18 Alan Modra <amodra@bigpond.net.au>
912 * ldmain.c (main): Move .text readonly flag fudges from here..
913 * ldlang.c (lang_process): ..to here.
915 2002-03-14 Alan Modra <amodra@bigpond.net.au>
917 * ldlang.c (lang_check): Remove the word size check added in last
918 change. Treat emitrelocations case as for relocatable links.
920 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
922 * po/fr.po: Updated version.
924 2002-03-13 Alan Modra <amodra@bigpond.net.au>
926 * ldlang.c (lang_check): Do relocatable link checks first, so that
927 warn_mismatch can't override. Check compatible and word size too.
929 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
931 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
933 2002-03-05 Jakub Jelinek <jakub@redhat.com>
935 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
938 2002-03-04 H.J. Lu <hjl@gnu.org>
940 * scripttempl/elf.sc: Put .preinit_array, .init_array and
941 .fini_array in the data segment.
943 2002-03-04 Alan Modra <amodra@bigpond.net.au>
945 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
947 2002-03-01 David Mosberger <davidm@hpl.hp.com>
949 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
950 .init_array, and .fini_array.
952 2002-02-20 Andreas Schwab <schwab@suse.de>
954 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
955 .IA64_unwind* in a relocatable link.
957 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
959 * NEWS: Mark 2.12 branch.
961 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
963 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
964 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
966 2002-02-18 Tom Rix <trix@redhat.com>
968 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
969 (gld*_before_allocation): Same.
970 (gld*_create_output_section_statements): Generate
971 __rtinit if run time linking. Add librtl.a to the link.
972 (gld*_read_file): Clean.
974 2002-02-18 Alan Modra <amodra@bigpond.net.au>
976 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
978 2002-02-18 David O'Brien <obrien@FreeBSD.org>
980 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
981 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
982 and eelf64alpha_fbsd.
983 * Makefile.in: Regenerate.
984 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
985 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
986 use a FreeBSD-specific emulation rather than the psABI one.
987 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
988 for all FreeBSD ELF systems.
989 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
991 * emulparams/elf32ppc_fbsd.sh: Likewise.
992 * emulparams/elf64_ia64_fbsd.sh: Likewise.
993 * emulparams/elf64_sparc_fbsd.sh: Likewise.
994 * emulparams/elf64alpha_fbsd.sh: Likewise.
995 * emulparams/elf_i386_fbsd.sh: Likewise.
996 * emulparams/elf_x86_64_fbsd.sh: Likewise.
998 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1000 * po/tr.po: Updated version.
1002 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1004 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1007 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1009 * emultempl/mmo.em (mmo_after_open): Don't call
1010 _bfd_mmix_check_all_relocs when producing ELF output.
1012 2002-02-15 Richard Henderson <rth@redhat.com>
1014 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1015 definition. Emit a unop+nop pair.
1017 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1019 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1020 for presence of .MMIX.reg_contents.linker_allocated before early
1023 * NEWS: Mention support for MMIX.
1025 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1027 Support arbitrary length fill patterns.
1028 * ld.texinfo (Output Section Fill): Describe fill expressions.
1029 (FILL): Refer to the above.
1030 * ldexp.h (etree_value_type): Add "str" field.
1031 (union etree_union): Add "str" to "value" struct.
1032 (exp_bigintop): Declare.
1033 (exp_get_fill): Declare.
1034 * ldexp.c: Include "safe-ctype.h".
1035 (exp_intop): Set value.str to NULL.
1036 (exp_bigintop): New function.
1037 (new_rel): Pass in "str", and set new.str from it.
1038 (new_rel_from_section): Set new.str to NULL.
1039 (fold_name): Adjust calls to new_rel.
1040 (exp_fold_tree): Likewise.
1041 (exp_get_fill): New function.
1042 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1043 (INT): Returns a "bigint". Adjust all code handling INTs.
1044 (fill_opt): Returns a "fill".
1045 (fill_exp): Split out of fill_opt, use for FILL.
1046 * ldlang.h (struct _fill_type): New.
1047 (fill_type): Move typedef to ldexp.h.
1048 (lang_output_section_statement_type): "fill" is now a pointer.
1049 (lang_fill_statement_type): Likewise.
1050 (lang_padding_statement_type): Likewise.
1051 (lang_add_fill): Now takes a "fill_type *" param.
1052 (lang_leave_output_section_statement): Likewise.
1053 (lang_do_assignments): Likewise.
1054 (lang_size_sections): Likewise.
1055 (lang_leave_overlay_section): Likewise.
1056 (lang_leave_overlay): Likewise.
1057 * ldlang.c: Include ldgram.h after ldexp.h.
1058 (lang_output_section_statement_lookup): Adjust for fill_type change.
1059 (print_fill_statement): Likewise.
1060 (print_padding_statement): Likewise.
1061 (insert_pad): Now takes a "fill_type *" arg.
1062 (size_input_section): Likewise.
1063 (lang_size_sections_1): Likewise.
1064 (lang_size_sections): Likewise.
1065 (lang_do_assignments): Likewise.
1066 (lang_add_fill): Likewise.
1067 (lang_leave_output_section_statement): Likewise.
1068 (lang_leave_overlay_section): Likewise.
1069 (lang_leave_overlay): Likewise.
1070 Adjust all callers of the above function.
1071 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1072 starting with "0X" as well as "0x". Return bigint.str for hex
1073 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1074 Always use base 16 for numbers starting with "$".
1075 * ldmain.c: Include ldgram.h after ldexp.h.
1076 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1077 of bfd_fill_link_order.
1078 * pe-dll.c: Adjust lang_do_assignments calls.
1079 * emultempl/elf32.em: Likewise.
1080 * emultempl/hppaelf.em: Likewise.
1081 * emultempl/ppc64elf.em: Likewise.
1082 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1083 lang_add_assignment call.
1084 * emultempl/pe.em: Likewise.
1086 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1088 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1089 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1090 the pattern in question is not a regexp.
1091 * ldlang.c: Likewise.
1092 * ldlang.h: Likewise.
1093 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1095 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1097 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1098 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1099 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1100 * ldexp.c (exp_data_seg): New variable.
1101 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1102 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1103 (exp_fold_tree): Handle DATA_SEGMENT_END.
1104 Pass allocation_done when recursing instead of hardcoding
1105 lang_allocating_phase_enum.
1106 * ldexp.h (exp_data_seg): New.
1107 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1108 (lang_size_sections): New.
1109 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1110 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1111 if COMMONPAGESIZE is defined.
1112 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1113 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1114 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1115 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1116 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1119 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1121 * Makefile.in: Regenerate.
1123 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1125 * lexsup.c: Remove strtoul declaration.
1127 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1129 * ldmain.c: Add prototype for main ().
1130 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1131 * emultempl/lnk960.em (lnk960_choose_target): Function should
1134 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1136 * ldlang.c (entry_section): New initialised variable.
1137 (lang_finish): Use it.
1138 * ldlang.h (entry_section): Declare.
1139 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1140 entry_section to ".opd".
1142 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1144 * ld.texinfo (Options): Add back in -nostdlib documentation,
1145 which had been inadvertently removed.
1147 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1149 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1150 register section vma to a sane value after emitting error. Make
1151 fatal conditions cause program exit when emitting message.
1153 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1155 * configure.tgt: Add or32-*-rtems target.
1157 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1159 Contribute sh64-elf.
1160 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1161 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1162 in OTHER_RELOCATABLE_SECTIONS.
1163 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1164 * emulparams/shelf32.sh (STACK_ADDR): Define.
1165 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1166 (OTHER_SECTIONS): this. Removed stack settings.
1167 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1168 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1169 2001-03-12 DJ Delorie <dj@redhat.com>
1170 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1171 relaxing if any shmedia or mixed sections are found.
1172 2001-03-07 DJ Delorie <dj@redhat.com>
1173 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1174 einfo. Gracefully decline to output to non-elf formats.
1175 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1176 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1177 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1178 * emulparams/shelf32.sh: Ditto.
1179 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1180 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1182 2001-01-10 Ben Elliston <bje@redhat.com>
1183 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1184 non-portable shell constructs. From Hans-Peter Nilsson.
1185 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1186 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1187 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1188 dependencies to the shell script include chain.
1189 * Makefile.in: Regenerate.
1190 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1191 * emultempl/sh64elf.em: Update and tweak comments.
1192 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1193 make a .cranges section SEC_IN_MEMORY.
1194 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1195 * emultempl/sh64elf.em
1196 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1197 .cranges section found to be necessary; continue and set stored
1198 section contents flags for sections with non-mixed contents.
1199 Use a struct sh64_section_data container and sh64_elf_section_data
1200 to store contents-type flags.
1201 Remove unused update of "isec".
1202 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1203 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1204 access contents-type flags. Assert that the associated container
1205 is initialized. Use that container, not elf_gp_size, to hold size
1206 of linker-generated cranges contents.
1207 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1208 * emultempl/sh64elf.em
1209 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1210 there's already a .cranges section. When section flag difference
1211 is found, don't NULL-check cranges a second time. Tweak comments.
1212 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1213 merging, not max size, as size of ld-generated .cranges contents.
1214 Don't set ELF section flags in output section. When checking for
1215 needed .cranges descriptors, don't use a variable; compare
1216 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1218 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1219 * emultempl/sh64elf.em: New file.
1220 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1221 * Makefile.in: Regenerate.
1222 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1223 (OTHER_RELOCATING_SECTIONS): Ditto.
1224 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1225 * emulparams/shlelf32.sh: Stub out all settings except
1226 OUTPUT_FORMAT. Source shelf32.sh.
1227 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1228 OTHER_RELOCATING_SECTIONS.
1229 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1230 * emulparams/shlelf64.sh: Stub out all settings except
1231 OUTPUT_FORMAT. Source shelf64.sh.
1232 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1233 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1235 (DATA_START_SYMBOLS): Define, provide ___data.
1236 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1237 for consecutive .data section.
1238 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1239 section after .data section.
1240 * emulparams/shlelf64.sh: Ditto.
1241 * emulparams/shelf32.sh: Ditto.
1242 (ALIGNMENT): Define to 8.
1243 * emulparams/shelf32.sh: Ditto.
1244 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1245 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1246 built-in linker scripts.
1247 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1248 * emulparams/shlelf64.sh: New.
1249 * emulparams/shelf64.sh: New.
1250 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1252 * Makefile.am: Add support for shlelf64 and shelf64.
1253 * Makefile.in: Regenerate.
1254 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1255 * configure.tgt (sh64-*-elf*): Add shelf as default.
1256 Add shlelf to targ_extra_emuls.
1257 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1258 * emulparams/shelf32.sh: New file.
1259 * emulparams/shlelf32.sh: New file.
1260 * Makefile.am: Add support for shlelf32 and shelf32.
1261 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1262 * Makefile.in: Regenerate.
1264 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1266 * ldlang.c (lang_reset_memory_regions): Rename from
1267 reset_memory_regions. Change all callers. Make public.
1268 * ldlang.h (lang_reset_memory_regions): Prototype.
1269 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1270 lang_reset_memory_regions before lang_size_sections.
1271 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1272 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1274 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1276 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1277 arithmetic when checking for too many global registers.
1279 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1281 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1282 (ehppanbsd.c): New rule.
1283 * Makefile.in: Regenerate.
1284 * configure.tgt (hppa*-*-netbsd*): New target.
1285 * emulparams/hppalinux.sh: Add comment to check other files
1286 that source this file it is modified, and list which
1288 * emulparams/hppanbsd.sh: New file.
1290 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1292 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1295 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1297 Support on-demand global register allocation from
1298 R_MMIX_BASE_PLUS_OFFSET relocs.
1299 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1300 mmix_set_reg_section_vma. Call
1301 _bfd_mmix_finalize_linker_allocated_gregs.
1302 (mmix_before_allocation): New function.
1303 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1304 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1305 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1306 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1307 before .MMIX.reg_contents.
1308 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1309 (mmo_after_open): New function.
1310 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1311 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1312 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1314 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1316 * emulparams/or32.sh: New file.
1317 * emulparams/or32elf.sh: New file.
1318 * scripttempl/or32.sc: New file.
1319 * configure.tgt : Add support for or32.
1320 * configure: Regenerate
1321 * Makefile.am: Add support for or32.
1322 * Makefile.in: Regenerate.
1323 * NEWS: Mention support for or32.
1324 * po/ld.pot: Regenerate.
1326 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1327 Mitch Lichtenberg <mpl@broadcom.com>
1329 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1330 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1331 reloc creation (ld --embedded-relocs).
1333 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1335 * configure: Regenerated.
1337 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1339 * Makefile.am (install): Depend on install-info.
1340 * Makefile.in: Regenerate.
1342 2002-01-26 Christian Rose <menthos@menthos.com>
1344 * ldmain.c (main): Use full sentences to ease translation.
1346 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1348 * po/fr.po: Updated version.
1350 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1352 * po/es.po: Updated version.
1354 2002-01-25 Andreas Jaeger <aj@suse.de>
1356 * ldlex.l (yy_input): Correct error check.
1358 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1360 * ldmisc.c (demangle): Put back dots when string not demangled.
1362 2002-01-22 Richard Henderson <rth@redhat.com>
1364 * emulparams/elf64alpha.sh (NOP): Use unop.
1366 2002-01-21 Andreas Jaeger <aj@suse.de>
1368 * ldlex.l: Use fread instead of read.
1370 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1372 * configure.tgt (ia64-*-netbsd*): New target.
1374 2002-01-21 H.J. Lu <hjl@gnu.org>
1376 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1378 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1380 2002-01-18 Andreas Jaeger <aj@suse.de>
1382 * ldver.c (ldversion): Update year.
1384 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1386 * po/ld.pot: Regenerate.
1388 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1390 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1391 * Makefile.in: Regenerate.
1392 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1393 * emultempl/ppc64elf.em: New file.
1395 2002-01-15 DJ Delorie <dj@redhat.com>
1397 * scripttempl/pe.sc: Add support for constructor priorities.
1399 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1401 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1402 * emulparams/avr23xx.sh: Likewise.
1403 * emulparams/avr4433.sh: Likewise.
1404 * emulparams/avr44x4.sh: Likewise.
1405 * emulparams/avr85xx.sh: Likewise.
1406 * emulparams/avrmega103.sh: Likewise.
1407 * emulparams/avrmega161.sh: Likewise.
1408 * emulparams/avrmega603.sh: Likewise.
1409 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1411 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1413 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1414 archive is excluded.
1416 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1418 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1419 (eshelf_nbsd.c): New rule.
1420 (eshlelf_nbsd.c): New rule.
1421 * Makefile.in: Regenerate.
1422 * configure.tgt (sh*le-*-netbsdelf*): New target.
1423 (sh*-*-netbsdelf*): New target.
1424 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1425 * ld/emulparams/shelf_nbsd.sh: New emulation.
1426 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1428 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1430 * po/es.po: New file: Spanish translation.
1431 * configure.in (ALL_LINGUAS): Add es.
1432 * configure: Regenerate.
1434 2002-01-06 John Marshall <jmarshall@acm.org>
1436 * ld.texinfo: Note that --emit-relocs is currently only
1437 implemented for ELF.
1439 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1441 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1442 of bfd_section_list_remove and bfd_section_list_insert macros.
1443 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1444 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1446 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1448 * configure.tgt (x86_64-*-netbsd*): New target.
1450 2001-12-21 Tom Rix <trix@redhat.com>
1452 (gld*_create_output_section_statements): New function.
1453 For -binitfini support.
1454 * emultempl/aix.em (gld*_before_parse): Fix comment.
1455 * emultempl/aix.em (gld*_parse_args): Fix comment.
1457 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1459 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1461 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1463 * configure.tgt (arm-*-netbsdelf*): Add target.
1464 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1465 * emulparams/armelf_nbsd.sh: Added.
1466 * Makefile.am: Add rules for earmelf_nbsd.
1467 * Makefile.in: Regenerate.
1469 2001-12-19 Andreas Jaeger <aj@suse.de>,
1470 Susanne Oberhauser <froh@suse.de>
1472 * configure.host: Add rules for x86_64-*linux-gnu. Change
1473 s390x-linux entry to use gcc to report configuration, replace gcc
1474 with $CC in s390-linux
1476 2001-12-19 Andreas Jaeger <aj@suse.de>
1478 * ld.texinfo (VERSION): Fix markup.
1480 2001-12-18 matthew green <mrg@eterna.com.au>
1482 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1483 (m68kelfnbsd.c): New rule.
1484 * Makefile.in: Regenerate.
1485 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1486 (m68*-*-netbsd*4k*): .. this.
1487 (m68*-*-netbsdelf*): New target.
1488 (m68*-*-netbsd*): Also include ELF support.
1489 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1490 * emulparams/m68kelfnbsd.sh: New emulation.
1492 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1494 * ldgram.y (vers_node): Support anonymous version tags.
1495 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1496 tag is not defined together with non-anonymous versions.
1497 * ld.texinfo: Document it.
1499 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1501 * po/tr.po: New file: Turkish translation.
1502 * configure.in (ALL_LINGUAS): Add tr.
1503 * configure: Regenerate.
1505 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1507 * Makefile.am: Add rules for eelf64alpha_nbsd.
1508 * Makefile.in: Regenerate.
1509 * configure.tgt (alpha*-*-netbsd*): Set
1510 targ_emul to elf64alpha_nbsd.
1511 * emulparams/elf64alpha_nbsd.sh: Added.
1513 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1515 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1516 section_tail when fiddling with section list.
1517 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1518 broken into separate strings to make translation easier.
1519 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1520 fiddling with section list.
1521 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1523 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1525 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1527 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1529 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1531 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1533 * emultempl/elf32.em (finish): Supply output_bfd
1534 to bfd_elf*_discard_info.
1535 (OPTION_EH_FRAME_HDR): Define.
1536 (longopts): Add --eh-frame-hdr.
1537 (parse_args): Handle it.
1538 (list_options): Add --eh-frame-hdr to help.
1539 * emultempl/hppaelf.em (finish): Supply output_bfd
1540 to bfd_elf*_discard_info.
1541 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1543 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1545 * lexsup.c (parse_args): Don't pass shortopts to second call to
1546 getopt functions. Restore optind rather than decrementing before
1547 second call. Remove errind as it now duplicates last_optind.
1549 2001-12-11 Christopher Faylor <cgf@redhat.com>
1551 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1553 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1554 Richard Henderson <rth@redhat.com>
1556 * Makefile.am: Add support for xstormy16.
1557 * configure.tgt: Add support for xstormy16.
1558 * Makefile.in: Regenerate.
1559 * emulparams/elf32xstormy16.sh: New file.
1560 * scripttempl/xstormy16.sc: New file.
1562 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1564 * Makefile.in (LIB_PATH): Make configurable.
1565 (GENSCRIPTS): Set LIB_PATH in environment.
1566 * configure.in: Substitute LIB_PATH.
1567 * configure: Regenerate.
1568 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1569 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1571 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1573 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1574 describing the -N option so that it is easier to translate into
1577 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1579 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1580 statements describing a single option with a single, newline
1581 escaped fprintf. This allows better translation into other
1584 * ldmain.c (add_archive_element): Combine multiple strings
1585 into a single string to permit better translation into other
1588 2001-12-05 Tom Rix <trix@redhat.com>
1590 * Makefile.am: Remove eaixppc64.
1591 * Makefile.in: Regenerate.
1593 2001-12-04 Tom Rix <trix@redhat.com>
1595 * emultempl/aix.em (choose_target): Change default target to
1596 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1598 (gld*_read_file): Fix typo.
1599 (change_symbol_mode): Add prototype.
1602 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1603 * emulparams/aixrs6.sh : Same.
1604 * emulparams/ppcmacos.sh : Same.
1605 * emulparams/aixppc64.sh : Delete file.
1606 * emultempl/aix.em : Formatting changes.
1608 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1610 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1611 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1613 (OTHER_END_SYMBOLS): Fix formatting.
1614 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1615 (OTHER_END_SYMBOLS): Fix formatting.
1617 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1619 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1621 2001-12-02 Tom Rix <trix@redhat.com>
1623 * configure.tgt : Remove eaixppc64 emulations.
1624 * Makefile.in : Remove eaixppc64.c
1625 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1626 (ldemul_default_target): Same.
1627 * emultempl/gld960.em (gld960_choose_target): Same.
1628 * emultempl/gld960c.em (gld960_choose_target): Same.
1629 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1630 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1631 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1632 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1633 * emultempl/aix.em (choose_target): New function. Handle emulation of
1636 2001-11-27 H.J. Lu <hjl@gnu.org>
1638 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1639 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1640 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1641 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1642 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1643 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1644 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1645 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1647 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1650 (REL_SDATA): Likewise.
1651 (REL_SBSS): Likewise.
1652 (REL_SDATA2): Likewise.
1653 (REL_SBSS2): Likewise.
1654 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1657 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1659 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1661 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1663 2001-11-22 H.J. Lu <hjl@gnu.org>
1665 * Makefile.in: Regenerated with automake based on automake
1666 1.4-8 in RedHat 7.1.
1668 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1670 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1671 (config.status): Delete rule.
1672 Add extra dependencies to cover sourced emulparams files.
1673 * Makefile.in: Regenerate.
1675 * scripttempl/elf.sc: Order <section>, <section>.* and
1676 corresponding linkonce sections as seen in input files.
1677 Formatting fixes. Zero vma of all sections if not relocating.
1678 (STACK): Define and insert if STACK_ADDR defined.
1679 (OTHER_RELOCATING_SECTIONS): Delete.
1680 (OTHER_END_SYMBOLS): Define.
1681 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1682 (OTHER_READWRITE_SECTIONS): Likewise.
1683 (OTHER_GOT_SECTIONS): Likewise.
1684 (OTHER_SDATA_SECTIONS): Likewise.
1685 (OTHER_BSS_SECTIONS): Likewise.
1686 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1687 (OTHER_READWRITE_SECTIONS): Likewise.
1688 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1689 (OTHER_READWRITE_SECTIONS): Likewise
1691 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1692 (STACK_ADDR): Define.
1693 * emulparams/armelf_oabi.sh: As for armelf.sh.
1694 * emulparams/elf32mcore.sh: As for armelf.sh.
1695 * emulparams/h8300elf.sh: As for armelf.sh.
1696 * emulparams/mn10200.sh: As for armelf.sh.
1697 * emulparams/shelf.sh: As for armelf.sh.
1699 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1700 (OTHER_END_SYMBOLS): Define.
1701 * emulparams/m32relf.sh: As for elf32fr30.sh.
1702 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1703 * emulparams/h8300self.sh: As for elf32fr30.sh.
1705 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1706 defines with RELOCATING test.
1707 (OTHER_SDATA_SECTIONS): Likewise.
1708 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1709 (OTHER_END_SYMBOLS): ..this.
1710 * emulparams/crislinux.sh: As for criself.sh.
1712 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1714 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1715 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1716 normal and linkonce sections as seen in input files.
1717 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1718 (TEXT_DYNAMIC): Likewise.
1719 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1720 (OTHER_SDATA_SECTIONS): Likewise.
1721 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1722 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1723 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1724 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1725 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1726 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1727 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1728 sections as seen in input files.
1729 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1730 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1732 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1733 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1734 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1735 (OTHER_SECTIONS): Instead, use this..
1736 (OTHER_END_SYMBOLS): ..and this.
1738 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1739 * emulparams/elf32bsmip.sh: Likewise.
1740 * emulparams/elf32btsmip.sh: Likewise.
1741 * emulparams/elf32ebmip.sh: Likewise.
1742 * emulparams/elf32lmip.sh: Likewise.
1743 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1744 * emulparams/elf32lsmip.sh: Likewise.
1745 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1746 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1747 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1748 * emulparams/elf64btsmip.sh: Likewise.
1749 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1750 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1751 * emulparams/elf32ppclinux.sh: Likewise.
1752 * emulparams/elf32ppcsim.sh: Likewise.
1753 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1754 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1755 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1756 * emulparams/h8300self.sh: Likewise.
1757 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1758 * emulparams/sh.sh: Comment.
1759 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1760 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1761 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1763 2001-11-21 David Heine <dlheine@tensilica.com>
1764 Alan Modra <amodra@bigpond.net.au>
1766 * ldlang.c (map_input_to_output_sections): Replace "break"
1767 accidentally removed with 2001-08-03 change.
1768 (lang_gc_sections_1): Likewise.
1770 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1772 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1774 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1776 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1777 of false when calling lang_size_sections.
1778 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1780 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1782 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1783 function when LDEMUL_FINISH isn't set to the same name. Don't
1784 call ${LDEMUL_FINISH}.
1785 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1786 * emultempl/armelf.em (arm_elf_finish): Call
1787 gld${EMULATION_NAME}_finish.
1788 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1789 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1790 hppaelf_layout_sections_again if necessary.
1791 (need_laying_out): New var.
1792 (hppaelf_layaout_sections_again): Rename to
1793 hppaelf_layout_sections_again. Clear need_laying_out.
1794 (PARSE_AND_LIST_OPTIONS): Format text.
1796 2001-11-14 H.J. Lu <hjl@gnu.org>
1798 * emultempl/armelf.em (arm_elf_finish): Renamed from
1799 gld${EMULATION_NAME}_finish.
1800 (LDEMUL_FINISH): Set to arm_elf_finish.
1802 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1804 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1805 (struct ld_emulation_xfer_struct): Use it.
1807 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1809 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1810 additional symbols referenced by newer crt0.o files from HP.
1812 2001-11-12 Anthony Green <green@redhat.com>
1814 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1816 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1818 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1819 * Makefile.in: Regenerate.
1821 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1823 * ld.texinfo: Use @command for commands, @option for options.
1824 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1826 * Makefile.in: Rebuild.
1828 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1830 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1831 Add support for targets.
1833 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1835 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1836 * configure: Regernate.
1837 * po/fr.po: New file.
1838 * po/sv.po: New file.
1840 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1842 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1843 as little endian default and to support big endian.
1845 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1847 * ld.texinfo (Options): Document new option, -nostdlib.
1848 * lexsup.c (OPTION_NOSTDLIB): New definition.
1849 (ld_options): Add entry for "nostdlib".
1850 (parse_args): Handle OPTIONS_NOSTDLIB.
1851 * ldfile.c (ldfile_add_library_path): Don't add directories
1852 to the search path if they weren't specified on the command line
1853 and -nostdlib was specified.
1854 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1856 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1858 * lexsup.c (parse_args): Prevent infinite parsing loop when
1859 "-rpath.a" is specified on the command line.
1860 Replace calls to fprintf with calls to einfo.
1862 2001-10-31 John Marshall <jmarshall@acm.org>
1864 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1865 appear only once across all the linker scripts involved in a link
1866 invocation no longer applies. Make the documentation reflect
1869 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1871 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1873 (sh-*-linux*): Added targ_extra_libpath.
1875 2001-10-31 David Heine <dlheine@tensilica.com>
1877 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1878 for padding statements.
1880 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1882 * configure.tgt (mmix-*-*): New target.
1883 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1884 Add dependencies to match.
1885 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1886 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1887 scripttempl/mmo.sc: New files.
1888 * gen-doc.texi: @set MMIX.
1889 * ld.texinfo: Ditto.
1890 [MMIX] Add MMIX node.
1891 * Makefile.in: Regenerate.
1893 2001-10-29 Kazu Hirata <kazu@hxi.com>
1895 * ldlang.c: Fix a comment typo.
1897 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1899 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1900 entries, and match *-*-linux*.
1902 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1904 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1905 with ldlex_script, ldlex_popstate.
1906 (ifile_p1): Likewise.
1907 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1909 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1910 to 1. Don't BEGIN(SCRIPT).
1911 (lex_redirect): Similarly.
1912 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1914 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1916 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1917 __EH_FRAME_END__ and accept eh frames into data section.
1918 Add ctor and dtor sections.
1920 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1922 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1923 (auto-export): Fix indentation.
1925 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1927 * pe-dll.c (autofilter_objectlist): Add startup objects
1929 (auto-export): Constify char * p.
1930 Extract file basename and use strcmp rather than ststr
1933 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1935 * ldmain.c (get_emulation): Improve comment about the handling
1938 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1940 * po/POTFILES.in: Regenerate.
1942 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1944 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1945 -z nocopyreloc and -z nocombreloc usage strings.
1947 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1949 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1952 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1954 * scripttempl/armaout.sc: Place .bss section after end of aligned
1955 data section to match behaviour of aout code in constructrion of
1958 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1960 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1961 startup files for mingw32 dlls to list.
1963 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1965 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1967 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1969 * configure.tgt (targ): Add arm9e-*-elf.
1971 2001-10-05 H.J. Lu <hjl@gnu.org>
1973 * genscripts.sh: Fix a typo in the last change.
1975 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1977 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1978 -z nocombreloc in usage.
1980 2001-10-03 Jim Blandy <jimb@redhat.com>
1982 * genscripts.sh: Include a comment at the top of each generated
1983 script, explaining its purpose.
1985 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1987 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1988 * NEWS: Mention -z nocopyreloc.
1989 * ld.texinfo (Options): Describe nocopyreloc.
1991 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1993 * configure: Regenerate.
1995 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1997 * ldver.h (ld_program_version): Remove declaration.
1998 * lexsup.c (parse_args): Move printing of copyright message..
1999 * ldver.c (ldversion): .. to here.
2000 Use BFD_VERSION_STRING in place of BFD_VERSION.
2001 (ld_program_version): Remove.
2002 * Makefile.am (Makefile): Depend on bfd/configure.in.
2004 * Makefile.in: Regenerate.
2006 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2008 * Makefile.am: Update dependencies with "make dep-am".
2009 * Makefile.in: Regenerate.
2011 2001-09-29 John Reiser <jreiser@BitWagon.com>
2013 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2014 * lexsup.c: Add --no-define-common commandline option.
2015 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2016 * ldlex.l: Likewise.
2017 * ld.h: Add command_line.inhibit_common_definition.
2018 * ldmain.c (main): Initialize.
2019 * ld.texinfo: Document.
2021 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2023 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2025 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2027 * ldmisc.c (USE_STDARG): Remove.
2028 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2033 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2034 declarations. Update copyright.
2036 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2038 * pe-dll.c: Remove obsoleted declaration of
2039 pe_get_data_import_dll_name.
2040 (pe_create_import_fixup): Fix thinko.
2042 * ld.texinfo(enable-auto-import): Clarify the explanation.
2044 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2046 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2047 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2048 DLL_SUPPORT controlled code.
2050 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2052 * emultempl/pe.em(pe_data_import_dll): Make static.
2053 (pe_get_data_import_dll_name): New accessor function.
2054 * pe-dll.c(pe_create_import_fixup): call
2055 pe_get_data_import_dll_name() from pe.em, instead of
2056 directly accessing pe_data_import_dll variable from pe.em.
2058 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2060 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2061 (def_file_add_directive): Use ISSPACE instead of isspace.
2062 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2063 isdigit/isxdigit/isalpha/isalnum.
2064 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2065 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2066 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2067 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2069 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2070 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2072 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2073 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2074 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2075 (ctor_prio): Use ISDIGIT instead of isdigit.
2076 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2077 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2078 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2080 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2081 (stricpy): Use TOLOWER instead of isupper/tolower.
2082 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2083 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2084 (lex_warn_invalid): Use ISPRINT instead of isprint.
2085 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2086 (main): For gettext, also set the LC_CTYPE locate facet.
2087 (add_keepsyms_file): Use ISSPACE instead of isspace.
2088 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2089 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2090 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2091 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2092 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2093 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2094 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2095 (quoteput): Use ISSPACE instead of isspace.
2096 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2099 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2101 * deffilep.y (def_stash_module): Constify "name" param.
2103 * pe-dll.c: Replace CONST with const throughout.
2104 (quick_symbol): Constify "n1", "n2", "n3" params.
2105 (make_singleton_name_thunk): Constify "import" param. Make
2106 "buffer_len" a size_t.
2107 (make_import_fixup_entry): Constify "name", "fixup_name",
2108 "dll_symname" params.
2109 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2110 (pe_get32): Likewise.
2111 (pe_implied_import_dll): Likewise.
2113 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2114 (sort_by_section_name): Likewise.
2116 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2117 (make_import_fixup): Cast printf arg, rel->address to long rather
2119 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2121 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2123 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2124 defines BufferSize. Increase buffer size by one.
2126 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2128 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2130 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2132 * configure.tgt: Add arm-openbsd target.
2134 2001-09-12 H.J. Lu <hjl@gnu.org>
2136 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2138 (ALL_64_EMULATIONS): Here.
2139 * Makefile.in: Regenerated.
2141 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2143 * emultempl/pe.em(make_import_fixup): change signature to
2144 take asection as well as arelec; we need this for proper
2145 error reporting. Only call pe_create_import_fixup() if
2146 there is no attempt to add a constant addend to the reloc;
2147 otherwise, report error condition.
2148 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2149 since final argument is a pointer to make_import_fixup().
2150 Change call to cb() to match make_import_fixup() signature.
2151 (make_import_fixup_mark): make buffer_len unsigned.
2152 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2154 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2156 * ld.texinfo: add verbose documentation for auto-import
2157 direct-addressing workaround, to compliment the terse
2160 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2162 * scripttempl/v850.sc: Add gcc_except_table sections.
2164 2001-09-11 Jeffrey A Law (law@cygnus.com)
2166 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2167 * emulparams/h8300self.sh: Similarly.
2169 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2171 * ld.texinfo (Options, --stack): Correct default value for stack
2174 2001-09-05 Tom Rix <trix@redhat.com>
2176 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2178 2001-09-03 Andreas Jaeger <aj@suse.de>
2180 * emultempl/beos.em: Declare prototypes for comparions functions,
2183 2001-09-02 Andreas Jaeger <aj@suse.de>
2185 * emultempl/aix.em: Add missing prototype.
2186 * emultempl/lnk960.em: Likewise.
2187 * emultempl/vanilla.em: Likewise.
2188 * emultempl/armcoff.em: Likewise.
2189 * emultempl/armelf_oabi.em: Likewise.
2190 * emultempl/beos.em: Likewise.
2191 * emultempl/gld960c.em: Likewise.
2192 * emultempl/gld960.em: Likewise.
2194 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2195 for prototype declaration.
2197 2001-08-31 Eric Christopher <echristo@redhat.com>
2198 Jason Eckhardt <jle@redhat.com>
2200 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2202 2001-08-31 Andreas Jaeger <aj@suse.de>
2204 * emultempl/pe.em: Add missing prototypes.
2205 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2206 pe_find_data_imports.
2207 (pr_sym): Add unused attribute.
2209 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2211 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2212 default from coff to elf.
2214 2001-08-29 Jeff Law <law@redhat.com>
2216 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2218 * emulparams/h8300self.sh: Similarly.
2220 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2222 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2224 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2225 * configure.tgt (h8300-*-elf*): New case.
2226 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2227 * emulparams/h8300self.sh: New file.
2228 * Makefile.in: Regenerated.
2230 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2232 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2235 2001-08-27 Linus Nordberg <linus@swox.com>
2236 Alan Modra <amodra@bigpond.net.au>
2238 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2239 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2241 * Makefile.in: Regenerate.
2242 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2243 entries to correct alphabetical position.
2244 * emulparams/elf64ppc.sh: New.
2245 * emulparams/elf64lppc.sh: New.
2247 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2249 * ldmain.c (main): Declare BSIZE as static.
2251 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2253 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2254 into .rel.dyn resp. .rela.dyn if combreloc.
2255 (get_script): If .x linker script is equal to .xn, only put it
2256 once into the binary.
2257 Add .xc and .xsc scripts.
2258 (parse_args): Handle -z combreloc and -z nocombreloc.
2259 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2260 For .xc and .xsc scripts put all .rel* or .rela* input sections
2261 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2262 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2264 Strip trailing whitespace from script.
2265 Generate .xc and .xsc scripts if requested.
2266 * ldmain.c (main): Initialize link_info.combreloc and
2267 link_info.spare_dynamic_tags.
2268 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2269 (ld_options): Add --spare-dynamic-tags option.
2270 (parse_args): Likewise.
2271 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2272 * ldint.texinfo: Document .xc and .xsc linker scripts.
2273 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2275 2001-08-22 H.J. Lu <hjl@gnu.org>
2277 * emulparams/elf32fr30.sh: Add a newline.
2279 2001-08-21 Andreas Jaeger <aj@suse.de>
2281 * deffilep.y: Add missing prototypes.
2282 * pe-dll.c: Likewise.
2284 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2286 * ldlang.c (insert_pad): Fix typos in last patch.
2288 * ldlang.c: When traversing lang_statement_union_type lists,
2289 consistently use "header.next" rather than "next".
2290 * mpw-eppcmac.c: Likewise.
2291 * emultempl/beos.em: Likewise.
2292 * emultempl/hppaelf.em: Likewise.
2293 * emultempl/pe.em: Likewise.
2294 * ldlang.h (union lang_statement_union): Remove "next" field.
2296 * ldlang.c (insert_pad): Use offsetof macro.
2297 (lang_size_sections): Always neuter padding statements.
2298 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2300 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2301 passed to lang_size_sections.
2302 (pe_exe_fill_sections): Likewise.
2303 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2304 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2306 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2308 * emultempl/aix.em: Formatting fixes.
2310 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2312 * ldlang.c (insert_pad): Make use of an existing pad statement if
2313 available. Move code calculating alignment, adjusting section
2314 alignment power, and adjusting dot to ..
2315 (size_input_section): .. here. Remove unused relax param.
2316 (lang_size_sections): Change boolean `relax' param to boolean *.
2317 Adjust call to size_input_section. Make use of insert_pad to
2318 place pad after the assignment statement. If relaxing, zap
2320 (reset_memory_regions): Reset output_bfd section sizes too.
2321 (relax_again): Move to..
2322 (lang_process): ..here. Adjust call to lang_size_sections, and
2323 remove duplicated code.
2324 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2326 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2328 * ld.texinfo: Document that fill values now use the four least
2330 * emulparams/elf32fr30.sh (NOP): Update.
2331 * emulparams/elf32mcore.sh: Likewise.
2332 * emulparams/elf64_s390.sh: Likewise.
2333 * emulparams/elf_i386.sh: Likewise.
2334 * emulparams/elf_i386_be.sh: Likewise.
2335 * emulparams/elf_i386_chaos.sh: Likewise.
2336 * emulparams/elf_i386_ldso.sh: Likewise.
2337 * emulparams/elf_s390.sh: Likewise.
2338 * emulparams/elf_x86_64.sh: Likewise.
2339 * emulparams/i386moss.sh: Likewise.
2340 * emulparams/i386nw.sh: Likewise.
2341 * emulparams/m68kelf.sh: Likewise.
2342 * scripttempl/elf.sc: Update NOP comment.
2343 * scripttempl/elfi370.sc: Likewise.
2344 * scripttempl/elfm68hc11.sc: Likewise.
2345 * scripttempl/elfm68hc12.sc: Likewise.
2346 * scripttempl/nw.sc: Likewise.
2348 2001-08-15 Tom Rix <trix@redhat.com>
2350 * ldgram.y (saved_script_handle): Initialize to NULL.
2351 * ldmain.c (main): Change check on saved_script_handle.
2353 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2355 * emultempl/elf32.em: Formatting fixes.
2356 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2357 looking at sec->owner.
2358 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2359 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2360 unused code, and reorganize orphan section placement code.
2362 * ldlang.c (wild_doit): Rename to lang_add_section.
2363 * ldlang.h: Here too.
2364 * mpw-elfmips.c: And here.
2365 * emultempl/beos.em: And here.
2366 * emultempl/elf32.em: And here.
2367 * emultempl/hppaelf.em: And here.
2368 * emultempl/pe.em: And here.
2370 2001-08-13 Richard Henderson <rth@redhat.com>
2372 * emultempl/needrelax.em: New file.
2373 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2374 * Makefile.am (eelf64_ia64.c): Depend on it.
2375 * Makefile.in: Rebuild.
2377 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2379 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2380 output_section is set non-NULL.
2382 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2383 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2384 needlessly create an output_section_statement. Treat a correctly
2385 named output_section_statement with NULL bfd_section as compatible.
2387 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2389 * emultempl/generic.em: Support EXTRA_EM_FILE.
2390 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2391 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2392 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2393 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2394 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2395 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2396 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2397 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2398 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2399 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2401 2001-08-12 Richard Henderson <rth@redhat.com>
2403 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2404 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2405 scripttempl/v850.sc: Keep .jcr data.
2407 2001-08-12 H.J. Lu <hjl@gnu.org>
2408 Andrew Haley <aph@cambridge.redhat.com>
2409 Nick Clifton <nickc@redhat.com>
2411 * ldgram.y (had_script): Change name to saved_script_handle.
2412 Change type to file handle.
2413 * ld.h (had_script): Rename and retype.
2414 * ldfile.c (ldfile_open_command_file): Save the file handle
2415 used in saved_script_handle.
2416 * lexsup.c (parse_args): Do not allow -c option to alter
2417 saved_script_handle.
2418 * ldmain.c (main): Print out the linker script used if
2419 --verbose is given. Check saved_script_handle to obtain the
2420 external linker script used, or if NULL, dump the builtin
2422 * ld.texinfo: Document that --verbose now dumps the linker
2423 script used, regardless of whether it was an internal or an
2426 2001-08-10 Andreas Jaeger <aj@suse.de>
2428 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2430 * configure: Regenerate.
2432 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2434 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2436 * scripttempl/elf.sc: Move non-text .dynamic section before
2437 .plt/.got/.sdata* group.
2438 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2439 (OTHER_SDATA_SECTIONS): Add.
2440 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2442 * emulparams/crislinux.sh: Likewise.
2443 * emulparams/elf32b4300.sh: Likewise.
2444 * emulparams/elf32bmip.sh: Likewise.
2445 * emulparams/elf32bmipn32.sh: Likewise.
2446 * emulparams/elf32bsmip.sh: Likewise.
2447 * emulparams/elf32btsmip.sh: Likewise.
2448 * emulparams/elf32ebmip.sh: Likewise.
2449 * emulparams/elf32elmip.sh: Likewise.
2450 * emulparams/elf32l4300.sh: Likewise.
2451 * emulparams/elf32lmip.sh: Likewise.
2452 * emulparams/elf32lsmip.sh: Likewise.
2453 * emulparams/elf32ltsmip.sh: Likewise.
2454 * emulparams/elf64bmip.sh: Likewise.
2455 * emulparams/elf64btsmip.sh: Likewise.
2456 * emulparams/elf64ltsmip.sh: Likewise.
2458 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2460 * genscripts.sh: Source the emulparams script before each output
2461 script is generated so that variables like `RELOCATING' may affect
2462 variables defined in the emulparams script.
2464 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2466 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2469 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2470 ie. iterate over wild_statement.section_list.
2471 (gld${EMULATION_NAME}_place_orphan): Likewise.
2473 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2475 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2476 .fini[0-4] sections used by _exit
2477 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2478 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2479 * scripttempl/elfm68hc11.sc: Likewise.
2481 2001-08-03 H.J. Lu <hjl@gnu.org>
2483 * emultempl/beos.em (init): Add the missing initialization.
2485 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2487 * ld.texinfo (Input Section Basics): Clarify ordering of output
2489 * ldlang.c (callback_t): Add wildcard_list param.
2490 (walk_wild_section): Remove "section" param. Rewrite for
2491 lang_wild_statement_type change. Remove unique_section_p test.
2492 (walk_wild_file): Remove "section" param.
2493 (walk_wild): Remove "section" and "file" params.
2494 (lang_gc_wild): Likewise.
2495 (wild): Likewise. Modify for lang_wild_statement_type change.
2496 (wild_sort): Likewise. Add "sec" param.
2497 (gc_section_callback): Likewise.
2498 (output_section_callback): Likewise. Do unique_section_p test.
2499 (map_input_to_output_sections): Modify call to wild.
2500 (lang_gc_sections_1): Likewise.
2501 (print_wild_statement): Modify for lang_wild_statement_type
2503 (lang_add_wild): Replace filename, filenames_sorted param with
2504 filespec. Replace section_name, sections_sorted,
2505 exclude_filename_list with section_list.
2506 * ldlang.h (lang_add_wild): Here too.
2507 (lang_wild_statement_type): Replace section_name, sections_sorted,
2508 and exclude_filename_list with section_list.
2509 * ldgram.y (current_file): Delete.
2510 (%union): Add wildcard_list.
2511 (file_NAME_list): Set type to wildcard_list. Build a linked list
2512 rather than calling lang_add_wild for each entry.
2513 (input_section_spec_no_keep): Call lang_add_wild here instead.
2514 * ld.h (struct wildcard_list): Declare.
2515 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2517 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2519 * ldmain.c (main): initialize link_info.pei386_auto_import
2520 * pe-dll.c: new tables for auto-export filtering
2521 (auto_export): change API, pass abfd for contextual filtering.
2522 Loop thru tables of excluded symbols instead of comparing
2525 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2527 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2528 static variable current_sec (static struct sec *). Add
2529 forward declaration for add_bfd_to_link.
2530 (process_def_file): Don't export undefined symbols. Do not
2531 export symbols starting with "_imp__". Call auto_export()
2533 (pe_walk_relocs_of_symbol): New function.
2534 (generate_reloc): add optional extra debugging
2535 (pe_dll_generate_def_file): eliminate extraneous initial blank
2537 (make_one): enlarge symtab to make room for __nm__ symbols
2538 (DATA auto-import support).
2539 (make_singleton_name_thunk): New function.
2540 (make_import_fixup_mark): New function.
2541 (make_import_fixup_entry): New function.
2542 (pe_create_import_fixup): New function.
2543 (add_bfd_to_link): Specify that 'name' argument is a CONST
2545 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2546 declare new functions pe_walk_relocs_of_symbol and
2547 pe_create_import_fixup.
2548 * emultempl/pe.em: add new options --enable-auto-import,
2549 --disable-auto-import, and --enable-extra-pe-debug.
2550 (make_import_fixup): New function.
2551 (pe_find_data_imports): New function.
2552 (pr_sym): New function.
2553 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2554 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2557 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2559 * ld.texinfo: add additional documentation for
2560 --export-all-symbols. Document --out-implib,
2561 --enable-auto-image-base, --disable-auto-image-base,
2562 --dll-search-prefix, --enable-auto-import, and
2563 --disable-auto-import.
2564 * ldint.texinfo: Add detailed documentation on auto-import
2567 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2569 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2572 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2574 * Makefile.am: Update dependencies with "make dep-am".
2575 * Makefile.in: Regenerate
2577 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2579 * ldcref.c (check_section_sym_xref): New function.
2580 (check_nocrossrefs): Call it.
2581 (check_nocrossref): Interate over h->refs here instead of..
2582 (check_refs): ..here. Pass in the symbol name, section, and bfd
2583 rather than hash_entry pointers.
2584 (struct check_refs_info): Keep symbol name rather than hash entry.
2586 (check_reloc_refs): Tweak for above changes in check_refs_info.
2587 Only report references to section syms when symname is NULL to
2588 prevent duplicate messages for the same reloc.
2590 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2592 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2593 available. Do not print NULL trees.
2594 (exp_print_token): Print unknown tokens with values > 126 as
2595 decimal values not ASCII characters.
2597 * ldlang.c (lang_leave_overlay): If a region is specified assign
2598 it to all sections inside the overlay unless they have been
2599 assigned to the own, non-default, memory region.
2601 * README: Add header for consistency with other README files.
2603 2001-07-14 H.J. Lu <hjl@gnu.org>
2605 * emultempl/elf32.em (output_prev_sec_find): Never return
2606 bfd_abs_section_ptr, bfd_com_section_ptr nor
2607 bfd_und_section_ptr.
2609 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2611 * Makefile.am (em32relf.c): Change dependency from generic.em to
2613 * Makefile.in: Regenerate.
2615 2001-07-14 matthew green <mrg@eterna.com.au>
2617 * configure.tgt (i386-*-netbsdelf*): New target.
2618 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2620 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2622 * emultempl/elf32.em (output_prev_sec_find): New.
2623 (place_orphan): Use it.
2625 2001-07-11 H.J. Lu <hjl@gnu.org>
2627 * ldmain.c (main): Fix typos in the last change.
2629 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2631 * ldmain.c (main): Disallow -F and -f without -shared.
2633 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2635 * emultempl/pe.em (after_open): Check for the output_bfd not
2636 having any coff_data structure allocated to it.
2638 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2640 * emultempl/elf32.em: Do not assuming that contents of the buffer
2641 returned from basename function will remain unchanged accross other
2644 2001-07-03 H.J. Lu <hjl@gnu.org>
2646 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2647 2001-07-03. It creates dynamic entries even for static binaries.
2649 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2651 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2652 (DYNAMIC): Use it to reserve few dynamic entries for
2655 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2657 * emulparams/hppa64linux.sh: New file.
2658 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2659 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2660 (ehppa64linux.c): Add rule to make it.
2662 * Makefile.in: Regenerate.
2664 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2666 * ld.texinfo (Options, -r): Mention restrictions when using
2667 different object formats.
2669 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2671 * ldlang.c (lang_check): Emit fatal error if relocatable link
2672 between different object flavours with relocations in input.
2674 2001-06-19 H.J. Lu <hjl@gnu.org>
2676 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2677 (--version-script): Mention the language support.
2679 2001-06-19 H.J. Lu <hjl@gnu.org>
2681 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2683 2001-06-18 H.J. Lu <hjl@gnu.org>
2685 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2686 (diststuff): Add $(MANS).
2687 * Makefile.in: Regenerated.
2691 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2693 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2694 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2695 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2696 * ld.h (args_type): Remove member export_dynamic. All users
2697 changed to use struct bfd_link_info member.
2699 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2700 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2701 * Makefile.in: Regenerate.
2703 2001-06-18 H.J. Lu <hjl@gnu.org>
2705 * ldlang.c (init_os): Add the newline to the einfo call.
2706 (lang_check): Likewise.
2707 (lang_do_version_exports_section): Likewise.
2709 2001-06-15 H.J. Lu <hjl@gnu.org>
2711 * lexsup.c (parse_args); Save optind to report unrecognized
2714 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2716 * ldlang.c (lang_check): Emit fatal error if relocatable link
2717 between different object flavours.
2719 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2720 Set new link_info member export_dynamic.
2721 * ldmain.c (main): Initialize new link_info member export_dynamic.
2723 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2725 * ldlang.c (walk_wild): Only call walk_wild_file if
2726 lookup_name returns something.
2727 (lookup_name): If load_symbols fails, return NULL.
2728 (load_symbols): Change to a boolean function.
2729 (open_input_bfds): If load_symbols fails then do not make the
2732 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2734 * ldlang.c (record_bfd_errors): Remove.
2736 * emultempl/aix.em: Fix copyright dates.
2738 2001-06-07 Andreas Jaeger <aj@suse.de>
2740 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2741 (TEXT_START_ADDR): Likewise.
2743 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2745 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2747 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2749 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2751 2001-05-31 H.J. Lu <hjl@gnu.org>
2753 * ldlang.c (open_input_bfds): Don't change the bfd error
2754 handler whilst loading symbols.
2756 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2758 * configure.tgt: Remove i370-mvs architecture, it is not currently
2761 2001-05-25 H.J. Lu <hjl@gnu.org>
2763 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2764 like emulparams/aixppc.sh.
2766 2001-05-25 H.J. Lu <hjl@gnu.org>
2768 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2769 setting of output_filename after bfd_scan_arch.
2770 * emultempl/pe.em: Likewise.
2772 2001-05-25 H.J. Lu <hjl@gnu.org>
2774 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2775 like emulparams/aixppc.sh.
2777 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2778 instead of ${srcdir}/emultempl/stringify.sed.
2780 2001-05-25 Timothy Wall <twall@oculustech.com>
2782 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2785 2001-05-25 Alan Modra <amodra@one.net.au>
2787 * configure.host: Replace linuxoldld with linux*oldld.
2788 * configure.tgt: Likewise.
2790 2001-05-24 H.J. Lu <hjl@gnu.org>
2792 * emultempl/stringify.sed: Removed again.
2794 2001-05-24 H.J. Lu <hjl@gnu.org>
2796 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2797 (gld${EMULATION_NAME}_before_parse): Initialize
2798 ldfile_output_architecture, ldfile_output_machine and
2799 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2800 * emultempl/beos.em: Likewise.
2801 * emultempl/elf32.em: Likewise.
2802 * emultempl/linux.em: Likewise.
2803 * emultempl/mipsecoff.em: Likewise.
2804 * emultempl/pe.em: Likewise.
2805 * emultempl/sunos.em: Likewise.
2807 2001-05-24 Tom Rix <trix@redhat.com>
2809 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2810 udate import file format.
2811 (change_symbol_mode) New, same
2812 (is_syscall) New, same
2813 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2814 * emulparams/aixppc64.sh : same
2815 * emulparams/aixrs6.sh : same
2816 * emulparams/ppcmacos.sh : same
2817 * emultempl/aix.em : use strtoull to parse options
2818 * Makefile.am : add eaixppc64 emulation for xcoff64
2819 * Makefile.in : same
2820 * configure.tgt : same
2822 * scripttempl/aix.sc : default text section offset to 0x10000000
2823 default data section offset to 0x20000000
2824 add .sv3264 and .sv64 pseudo sections
2825 loader and debug sections use the currect section offset.
2827 * emultempl/aix.em : Add xcoff64 support
2828 Add -binitfini support
2829 (gld${EMULATION_NAME}_before_parse) -binitfini
2830 (gld${EMULATION_NAME}_parse_args) same
2831 (gld${EMULATION_NAME}_before_allocation) format change for special
2834 * emulparams/aixppc64.sh : New file for xcoff64 support
2836 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2838 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2839 variable to avoid non-portable shell construct.
2841 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2843 * ldmain.c (get_emulation): Add -mips5 command line argument.
2845 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2847 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2848 (ELF_INTERPRETER_NAME): Define it.
2849 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2851 * configure.tgt (targ_emul, targ_extra_emuls)
2852 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2853 as primary, elf_i386 as extra.
2854 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2855 (eelf_i386_ldso.c): New rule.
2856 * Makefile.in: Rebuilt.
2858 2001-05-22 Nick Clifton <nickc@redhat.com>
2860 * lexsup.c (ld_options): Allow -I to be an alias for
2861 --dynamic-linker. This is for Solaris compatability.
2862 * ld.texinfo: Document that -I can be used.
2865 2001-05-16 Alan Modra <amodra@one.net.au>
2867 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2868 whether an input section is the first one assigned to an output
2870 Assorted formatting fixes.
2872 2001-05-14 DJ Delorie <dj@delorie.com>
2874 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2875 * Makefile.in: Ditto.
2877 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2879 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2880 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2882 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2884 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2886 * ldlang.c (lang_process): Call bfd_merge_sections.
2888 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2890 * ldgram.y: Fix typo.
2892 2001-05-03 H.J. Lu <hjl@gnu.org>
2894 * emultempl/elf32.em: Include "libiberty.h".
2895 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2896 basename of the bfd filename.
2897 (gld${EMULATION_NAME}_stat_needed): Likewise.
2898 (gld${EMULATION_NAME}_try_needed): Likewise.
2899 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2901 2001-05-02 H.J. Lu <hjl@gnu.org>
2903 * emultempl/pe.em: Include <ctype.h>.
2905 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2907 * emulparams/elf32openrisc.sh: New file.
2909 * Makefile.am: Add OpenRISC target.
2910 * Makefile.in: Regenerated.
2912 * configure.tgt: Add openrisc-*-* mapping.
2914 2001-05-02 Nick Clifton <nickc@redhat.com>
2916 * emultempl/aix.em: Replace buystring with xstrdup.
2917 * emultempl/beos.em: Replace buystring with xstrdup.
2919 2001-05-02 H.J. Lu <hjl@gnu.org>
2921 * ldfile.c: Include "libiberty.h".
2922 * ldlex.l: Likewise.
2924 * ldmisc.c (buystring): Removed.
2925 * ldmisc.h: Likewise.
2927 * ldfile.c: Replace buystring with xstrdup.
2928 * ldlang.c: Likewise.
2929 * ldlex.l: Likewise.
2930 * ldmain.c: Likewise.
2931 * ldmisc.c: Likewise.
2932 * lexsup.c: Likewise.
2933 * mpw-eppcmac.c: Likewise.
2935 2001-04-30 Andreas Jaeger <aj@suse.de>
2937 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2939 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2941 * ldlang.c (load_symbols): Give emulation a chance
2942 to process unrecognized file before fatal error is
2943 reported, not after.
2945 2001-04-27 Sean McNeil <sean@mcneil.com>
2947 * configure.tgt: Add arm-vxworks target.
2948 * scripttempl/armcoff.sc: Support .text or .data as a section name
2952 2001-04-13 J.T. Conklin <jtc@redback.com>
2954 * ld.texinfo: Document --fatal-warnings.
2957 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2958 warnings have been turned into errors.
2959 * lexsup.c (OPTION_WARN_FATAL): Define.
2960 (ld_options): Entry for --fatal-warnings.
2961 (parse_args): Handle OPTION_WARN_FATAL.
2962 * ld.h (ld_config_type): Add fatal_warnings field.
2964 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2966 * ldmain.c (main): Default to discard_sec_merge.
2967 * lexsup.c (OPTION_DISCARD_NONE): Define.
2968 (ld_options): Add --discard-none.
2969 (parse_args): Handle OPTION_DISCARD_NONE.
2970 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2971 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2972 all its input sections match.
2974 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2976 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2977 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2978 (eelf32ltsmip.c): New target.
2979 (eelf64btsmip.c): Likewise.
2980 (eelf64ltsmip.c): Likewise.
2981 * Makefile.in: Regenerated.
2983 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2985 (mips*-*-linux-gnu*): Likewise.
2987 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2989 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2991 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2994 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2996 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2997 correct value of __Stext here.
2998 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3001 * emulparams/crislinux.sh: Remove FIXME.
3003 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3005 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3006 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3008 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3010 * configure.tgt (cris-*-*): Change default emulation to criself.
3011 (cris-*-*aout*): New rule.
3013 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3015 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3016 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3018 2001-03-26 Andreas Jaeger <aj@suse.de>
3020 * ld.texinfo (Overview): Fix syntax in texi code.
3022 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3024 * ld.texinfo: Put @c man indications to generate the ld man page.
3025 When generating man, define all the variables. Define SEEALSO
3026 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3027 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3028 (ld.1): Generate from ld.texinfo.
3029 * Makefile.in: Regenerate.
3031 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3033 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3034 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3036 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3038 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3039 is an absolute path look only for this file and not along the path.
3041 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3043 * emultempl/elf32.em (OPTION_GROUP): New macro.
3044 Add new option Bgroup to longopts.
3045 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3046 (gld*_list_options): Add -Bgroup and -z defs.
3047 * ld.1: Document -Bgroup and -z defs.
3048 * ld.texinfo: Likewise.
3050 2001-03-07 Michael Meissner <meissner@redhat.com>
3052 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3053 with sections created by -fdata-sections.
3054 (.dynbss,.bss): Ditto.
3056 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3058 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3059 after_allocation_default, not gld..._before_allocation.
3061 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3063 * configure.in (BFD_VERSION): New.
3064 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3065 * configure: Regenerate.
3066 * Makefile.am: Run "make dep-am"
3067 * Makefile.in: Regenerate.
3069 2001-02-26 Timothy Wall <twall@cygnus.com>
3071 * emulparams/elf64_aix.sh: Add additional read-only sections;
3072 uncomment lines which are now required.
3074 2001-02-26 H.J. Lu <hjl@gnu.org>
3076 * ldlang.c (open_input_bfds): Set the bfd error handler so
3077 that problems can be caught whilst loading symbols.
3078 (record_bfd_errors): New function: Report BFD errors and mark
3079 the executable output as being invalid.
3081 2001-02-22 Timothy Wall <twall@cygnus.com>
3083 * configure.host: Add configuration for ia64-*-aix*.
3084 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3085 Add dependencies for eelf64_aix.c.
3086 * Makefile.in: Regenerate.
3087 * configure.tgt: Add ia64-*-aix* mapping.
3088 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3089 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3092 2001-02-20 H.J. Lu <hjl@gnu.org>
3094 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3095 false if we found the file.
3097 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3099 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3100 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3102 2001-02-18 lars brinkhoff <lars@nocrew.org>
3104 * Makefile.am: Add PDP-11 target.
3105 * configure.tgt: Likewise.
3106 * emulparams/pdp11.sh: New file.
3108 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3110 * configure.host: Add a generic FreeBSD configuration entry such that
3111 all [modern] FreeBSD systems on all platforms will look the same.
3113 2001-02-14 H.J. Lu <hjl@gnu.org>
3115 * configure.tgt: Remove mention of earmelf_linux26.
3117 2001-02-13 Richard Henderson <rth@redhat.com>
3119 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3121 2001-02-13 H.J. Lu <hjl@gnu.org>
3123 * ldexp.h (node_type): Add etree_provided.
3124 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3125 type to etree_provided if defined by PROVIDE. Allow updating
3127 (exp_print_tree): Handle etree_provided.
3128 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3131 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3133 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3134 .IA_64.unwind.* pattern to unwind table section and
3135 .IA_64.unwind_info* pattern to unwind info section.
3137 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3139 * Makefile.am: Add linux target for S/390.
3140 * Makefile.in: Likewise.
3141 * configure.host: Likewise.
3142 * configure.tgt: Likewise.
3143 * emulparams/elf64_s390.sh: New file.
3144 * emulparams/elf_s390.sh: New file.
3146 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3148 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3150 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3152 2001-02-06 Philip Blundell <philb@gnu.org>
3154 * Makefile.am: Remove mention of earmelf_linux26.
3155 * Makefile.in: Regenerate.
3157 2001-02-04 Philip Blundell <philb@gnu.org>
3159 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3160 * emulparams/armelf_linux26.sh: Delete.
3161 * configure.tgt: Remove mention of armelf_linux26 emulation.
3163 2001-02-01 Nick Clifton <nickc@redhat.com>
3165 * ld.1: Replace occurances of -oformat with --oformat.
3167 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3169 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3170 load_base is specified.
3172 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3174 * emultempl/elf32.em: Correct spelling in comments and listed
3177 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3179 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3180 default for the first section of a group of overlay sections.
3182 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3184 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3185 * Makefile.in: Regenerate.
3186 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3187 Check for null tool_dir.
3189 2001-01-16 Jim Wilson <wilson@redhat.com>
3191 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3192 and IA_64.unwind.info.
3194 2001-01-16 H.J. Lu <hjl@gnu.org>
3196 * ldlang.c (lang_check): Merge the private data only if the
3197 input file has contents.
3199 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3201 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3203 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3204 enabling search for libmilli. On a relocatable link, make .text
3206 (LDEMUL_AFTER_PARSE): Define.
3207 (hppaelf_finish): Correct spelling of relocatable in comments.
3209 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3210 rummage through the script for sections on the unique list.
3211 Correct length of strncmp for ".note".
3212 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3214 * ldlang.c (unique_section_list): New var.
3215 (unique_section_p): New function.
3216 (walk_wild_section): Don't match sections on unique_section_list.
3217 (lang_add_unique): New function.
3218 Correct spelling of relocatable in comments.
3220 * ldlang.h (struct unique_sections): Declare.
3221 (unique_section_list): Declare.
3222 (unique_section_p): Declare.
3223 (lang_add_unique): Declare.
3225 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3226 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3228 * ld.texinfo (--unique): Update.
3230 2001-01-13 Nick Clifton <nickc@redhat.com>
3232 * lexsup.c (parse_args): Remove spurious white space.
3234 2001-01-12 Nick Clifton <nickc@redhat.com>
3236 * lexsup.c (parse_args): Update copyright date.
3238 2001-01-12 Philip Blundell <pb@futuretv.com>
3240 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3242 2001-01-10 Kazu Hirata <kazu@hxi.com>
3244 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3245 * scripttempl/h8300h.sc: Fix formatting.
3246 * scripttempl/h8300s.sc: Likewise.
3247 * scripttempl/h8500.sc: Likewise.
3248 * scripttempl/h8500b.sc: Likewise.
3249 * scripttempl/h8500c.sc: Likewise.
3250 * scripttempl/h8500m.sc: Likewise.
3251 * scripttempl/h8500s.sc: Likewise.
3253 2000-01-07 David O'Brien <obrien@BSDi.com>
3255 * emultempl/elf32.em: Only perform Linux ld hints processing when
3258 2001-01-07 Philip Blundell <philb@gnu.org>
3260 * ld.texinfo (Bug Reporting): Update email address for reports.
3262 2000-12-31 Nick Clifton <nickc@redhat.com>
3264 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3265 options by checking for a return value of '?' not -1.
3267 2000-12-28 Nick Clifton <nickc@redhat.com>
3269 * lexsup.c (struct ld_option): Add new enum value:
3271 (ld_options[]): Change -omagic, -output and -oformat options
3272 to be EXACTLY_TWO_DASHES.
3273 (OUTPUT_COUNT): Use ARRAY_SIZE.
3274 (parse_args): Change parameter 'argc' to unsigned.
3275 Place EXACTLY_TWO_DASHES options into new really_longopts
3277 If getopt_long_only fails, try calling getopt_long using the
3278 really_longopts array.
3279 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3282 * ldlex.h: Fix prototype of parse_args.
3284 * ld.texinfo: Document that long options starting with 'o'
3285 must be preceeded by two dashes. Change example of a single
3286 dashed long option from -oformat to -trace-symbol.
3288 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3290 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3291 (longopts[]): New --no-default-excludes option.
3292 (gld_${EMULATION_NAME}_list_options): Document.
3293 (gld_${EMULATION_NAME}_parse_args): Handle.
3295 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3297 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3298 whitespace, it breaks the K&R C preprocessor.
3300 2000-12-11 DJ Delorie <dj@redhat.com>
3302 * ld.texinfo: Add notes about --whole-archive and gcc.
3304 2000-11-18 Fred Fish <fnf@be.com>
3306 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3307 (ld_options): Entry for --allow-shlib-undefined.
3308 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3309 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3311 * ld.texinfo: Document new command line switch.
3313 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3315 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3316 .fixup is actually read/write.
3317 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3318 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3319 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3321 2000-12-11 Jan Hubicka <jh@suse.cz>
3323 * NEWS: Add note about x86_64 architecture.
3325 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3327 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3328 Set DWARF2 sections to a VMA of zero.
3330 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3332 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3334 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3335 (sparc*-*-rtems*): Switched from a.out to ELF.
3337 2000-11-30 Jan Hubicka <jh@suse.cz>
3339 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3340 (eelf_x86_64.c): New.
3341 * Makefile.in: Regenerate.
3342 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3343 * emulparams/elf_x86_64.sh: New.
3345 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3347 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3348 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3350 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3351 merging non-a.out sections into CONSTRUCTING.
3353 2000-11-28 Nick Clifton <nickc@redhat.com>
3355 * ld.1 (COPYING): Mention that the GNU Free Documentation
3356 License is present in the sources, but not the output, and
3357 also available from the GNU website.
3358 (GNU Free Documentation License): Comment out this section.
3360 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3362 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3365 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3367 * ld.1: Remove old date so it does not give the impression the manpage
3370 2000-11-24 Nick Clifton <nickc@redhat.com>
3372 * configure.tgt (xscale-coff): Add target.
3373 (xscale-elf): Add target.
3375 2000-11-24 Fred Fish <fnf@be.com>
3377 * ldmain.c (main): Remove redundant init of config.make_executable
3380 2000-11-15 Richard Henderson <rth@redhat.com>
3382 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3384 2000-11-14 Kazu Hirata <kazu@hxi.com>
3386 * scripttempl/h8300.sc: Fix formatting.
3387 * scripttempl/h8300h.sc: Likewise.
3388 * scripttempl/h8300s.sc: Likewise.
3390 2000-11-14 Denis Chertykov <denisc@overta.ru>
3392 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3394 2000-11-09 Philip Blundell <pb@futuretv.com>
3396 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3397 around orphan sections whose names can be represented in C.
3399 2000-11-07 Jim Wilson <wilson@redhat.com>
3401 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3402 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3404 2000-11-06 Nick Clifton <nickc@redhat.com>
3406 * ld.texinfo: Add GNU Free Documentation License.
3407 * ldint.texinfo: Add GNU Free Documentation License.
3408 * ld.1: Add GNU Free Documentation License.
3410 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3412 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3413 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3415 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3416 Move 2000-11-02 Makefile.in changes to this file.
3417 * Makefile.in: Regenerate.
3419 2000-11-03 Nick Clifton <nickc@redhat.com>
3421 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3422 constructors and destructors.
3423 * scripttempl/h8300h.sc: Ditto.
3424 * scripttempl/h8300s.sc: Ditto.
3425 * scripttempl/h8500.sc: Ditto.
3426 * scripttempl/h8500b.sc: Ditto.
3427 * scripttempl/h8500c.sc: Ditto.
3428 * scripttempl/h8500m.sc: Ditto.
3429 * scripttempl/h8500s.sc: Ditto.
3430 * scripttempl/v850.sc: Ditto.
3431 * scripttempl/w65.sc: Ditto.
3432 * scripttempl/z8000.sc: Ditto.
3434 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3436 * Makefile.in (e_i386_chaos.c): New rule.
3437 (ALL_EMULATIONS): Added e_i386_chaos.o.
3438 * emulparams/elf_i386_chaos.sh: New file.
3439 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3441 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3443 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3444 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3445 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3446 library path suffix.
3447 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3449 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3451 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3452 for consecutive sections.
3454 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3456 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3458 * ld.texinfo: Added notes about this new option.
3460 2000-10-16 Nick Clifton <nickc@redhat.com>
3462 * emultempl/pe.em (_after_open): Add tests of return values from
3463 bfd functions. Emit appropriate error messages if necessary.
3465 2000-10-13 Nick Clifton <nickc@redhat.com>
3467 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3468 local variables - they are not used, but leave in the call to
3469 bfd_canonicalize_symtab.
3470 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3471 pe_dll_search_prefix.
3473 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3475 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3476 (longopts): New --dll-search-prefix option.
3477 (gld_${EMULATION_NAME}_list_options): Document.
3478 (gld_${EMULATION_NAME}_parse_args): Handle.
3479 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3480 dynamically, search for a dll named '<prefix><basename>.dll'
3481 in preference to 'lib<basename>.dll' if --dll-search-prefix
3484 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3486 * ldlang.c (section_already_linked): Set kept_section instead of
3489 2000-10-10 Kazu Hirata <kazu@hxi.com>
3491 * deffile.h: Fix formatting.
3492 * lexsup.c: Likewise.
3495 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3497 * pe-dll.c (make_one): Do not generate code thunk for DATA
3499 (process_def_file): deduce DATA flag for auto-export sumbols.
3501 2000-10-09 Kazu Hirata <kazu@hxi.com>
3503 * ld.h: Fix formatting.
3504 * ldcref.c: Likewise.
3505 * ldctor.h: Likewise.
3506 * ldemul.c: Likewise.
3507 * ldemul.h: Likewise.
3508 * ldexp.c: Likewise.
3509 * ldexp.h: Likewise.
3510 * ldfile.c: Likewise.
3511 * ldfile.h: Likewise.
3512 * ldlang.c: Likewise.
3513 * ldlang.h: Likewise.
3514 * ldmain.c: Likewise.
3515 * pe-dll.c: Likewise.
3517 * pe-dll.c: Revert some formatting fixes.
3519 2000-10-08 Kazu Hirata <kazu@hxi.com>
3521 * pe-dll.c: Fix formatting.
3523 2000-10-05 Kazu Hirata <kazu@hxi.com>
3525 * ldlang.c: Fix formatting.
3527 2000-10-03 DJ Delorie <dj@redhat.com>
3529 * pe-dll.c (fill_edata): initialize entire block
3530 (make_one): fill in correct section.
3532 2000-10-03 Kazu Hirata <kazu@hxi.com>
3534 * ldexp.c: Fix formatting.
3536 2000-10-02 DJ Delorie <dj@redhat.com>
3538 * emultempl/pe.em (gld_*_after_open): detect case where there two
3539 import libraries for same dll; rename one to ensure proper link
3542 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3544 (generate_edata): fix typo
3546 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3548 * scripttempl/crisaout.sc (ENTRY): Now __start.
3549 (.text): Add default setting for __start.
3550 Remove CONSTRUCTORS handling.
3551 (/DISCARD/): Add .gnu.warning.*.
3552 * emulparams/crislinux.sh (ENTRY): Now __start.
3553 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3554 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3555 (ENTRY): Now __start.
3556 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3557 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3559 2000-09-29 Kazu Hirata <kazu@hxi.com>
3561 * deffile.h: Fix formatting.
3563 * ldcref.c: Likewise.
3564 * ldctor.c: Likewise.
3565 * ldctor.h: Likewise.
3566 * ldemul.c: Likewise.
3567 * ldemul.h: Likewise.
3568 * ldexp.c: Likewise.
3569 * ldexp.h: Likewise.
3570 * ldfile.c: Likewise.
3571 * ldfile.h: Likewise.
3572 * ldlang.c: Likewise.
3573 * ldlang.h: Likewise.
3574 * lexsup.c: Likewise.
3576 * pe-dll.c: Likewise.
3578 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3580 * pe-dll.c (process_def_file): Uninitialized data wasn't
3581 exported with --export-all-symbols switch.
3583 2000-09-28 DJ Delorie <dj@redhat.com>
3585 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3586 noname work properly.
3588 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3590 * ld.texinfo (HPPA ELF32): New section.
3592 * emultempl/hppaelf.em (group_size): New.
3593 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3594 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3595 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3596 options to prevent abbreviations matching.
3597 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3598 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3600 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3602 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3603 on the m68*-*-elf target. Make it support COFF input objects.
3605 2000-09-21 Kazu Hirata <kazu@hxi.com>
3607 * ldmain.c: Fix formatting.
3608 * ldmisc.c: Likewise.
3609 * ldver.c: Likewise.
3610 * ldwrite.c: Likewise.
3612 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3614 * ldwrite.c (clone_section): Silence gcc warnings.
3616 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3618 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3619 out of memory failure.
3621 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3622 (clone_section): Handle out of memory failures. Rename var to
3623 avoid c++ reserved word.
3625 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3627 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3628 stub_name param to stub_sec_name.
3629 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3631 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3633 * emultempl/m68kelf.em: New file.
3634 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3635 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3636 * Makefile.in: Regenerate.
3638 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3640 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3643 2000-09-13 Nick Clifton <nickc@redhat.com>
3645 * ldmain.c (multiple_definition): Disable relaxation if
3646 multiple symbol definitions are encountered - otherwise the
3647 linker could abort with an assertion failure.
3649 2000-09-10 Nick Clifton <nickc@redhat.com>
3651 * mri.c: Fix formatting.
3653 2000-09-07 H.J. Lu <hjl@gnu.org>
3655 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3656 * configure: Rebuild.
3658 2000-09-07 H.J. Lu <hjl@gnu.org>
3660 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3661 * Makefile.in: Rebuild.
3663 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3665 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3666 broken list handling. Create __start_SECNAME and __stop_SECNAME
3667 when no place-holder. Add some comments. Test both SEC_CODE and
3668 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3669 Handle case where no output section statement created.
3671 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3673 * configure.tgt (sh-*-linux*): Added.
3674 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3675 * Makefile.in: Rebuilt.
3676 * emulparams/shelf_linux.sh: New file.
3677 * emulparams/shlelf_linux.sh: New file.
3679 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3681 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3682 try shuffling sections when the orphan happens to be the place
3683 holder. Keep count of unique section names generated so we speed
3684 the search for a new name.
3686 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3688 * configure: Rebuilt with new libtool.m4.
3690 2000-09-05 Nick Clifton <nickc@redhat.com>
3692 * Makefile.in: Regenerate.
3693 * aclocal.m4: Regenerate.
3694 * configure: Regenerate.
3695 * config.in: Regenerate.
3696 * po/ld.pot: Regenerate.
3698 * ldint.texinfo: Remove CVS revision marker - it foils local
3701 * emultempl/ticoff.em: Remove extraneous comma.
3703 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3705 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3706 to stub section flags.
3707 (hppa_for_each_input_file_wrapper): New.
3708 (hppa_lang_for_each_input_file): New.
3709 (lang_for_each_input_file): Define to call above.
3710 (multi_subspace): New.
3711 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3712 (PARSE_AND_LIST_PROLOGUE): Define.
3713 (PARSE_AND_LIST_LONGOPTS): Define.
3714 (PARSE_AND_LIST_OPTIONS): Define.
3715 (PARSE_AND_LIST_ARGS_CASES): Define.
3716 (hppaelf_finish): Call elf32_hppa_set_gp.
3717 (hppaelf_set_output_arch): Remove.
3718 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3720 * emulparams/hppalinux.sh (ELFSIZE): Define.
3722 (OTHER_READONLY_SECTIONS): Define.
3724 (GENERATE_SHLIB_SCRIPT): Define.
3726 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3727 to const throughout. Change `void *' to `PTR' throughout.
3728 (lang_memory_default): Function is local to file, add `static'.
3730 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3731 (ehppalinux.c): Likewise.
3732 (earmelf.c): Likewise.
3733 (earmelf_linux.c): Likewise.
3734 (earmelf_linux26.c): Likewise.
3735 * Makefile.in: Regenerate.
3737 * ld.h (ld_config_type): Add unique_orphan_sections.
3738 * lexsup.c (OPTION_UNIQUE): Define.
3739 (ld_options): Add "--unique".
3740 (parse_args): Handle it.
3741 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3742 search for an existing output section if unique_orphan_sections is
3743 set. Make use of bfd_get_unique_section_name rather than
3744 duplicating code here.
3745 * ld.texinfo: Describe --unique.
3747 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3748 optional arg to split-by-file.
3749 (parse_args): Handle them.
3750 * ld.texinfo: Update description of these options.
3751 * ldwrite.c (clone_section): Pass in the section name. Replace
3752 local code with bfd_get_unique_section_name.
3753 (split_sections): Tidy code and comments. Use a list traversal
3754 more appropriate to the list construction. Handle cooked section
3755 sizes. Split when split_by_reloc reached rather than exceeded.
3756 Track section size and split when split_by_file reached. Fix
3757 link_order_tail (even though it's not used).
3758 (ldwrite): Modify condition for calling split_sections to suit
3759 changed split_by_reloc and split_by_file.
3760 * ldmain.c (main): Init config.split_by_reloc and
3761 config.split_by_file to -1.
3762 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3763 Change split_by_file to bfd_size_type.
3765 2000-09-02 Nick Clifton <nickc@redhat.com>
3767 * configure.in: Increase version number to 2.10.91.
3768 * NEWS: Mention new ability to support removal of duplicate DWARF2
3770 * configure: Regenerate.
3771 * aclocal.m4: Regenerate.
3772 * config.in: Regenerate.
3774 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3776 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3778 * scripttempl/elf32avr.sc: Ditto.
3779 * scripttempl/elfd10v.sc: Ditto.
3780 * scripttempl/elfd30v.sc: Ditto.
3781 * scripttempl/elfi370.sc: Ditto.
3782 * scripttempl/elfm68hc11.sc: Ditto.
3783 * scripttempl/elfm68hc12.sc: Ditto.
3784 * scripttempl/elfi386beos.sc: Ditto.
3785 * scripttempl/v850.sc: Ditto.
3787 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3789 * acinclude.m4: Include libtool and gettext macros from the
3791 * aclocal.m4, configure: Rebuilt.
3793 2000-08-25 Nick Clifton <nickc@redhat.com>
3795 * ldlang.c (open_output): When choosing the target for a
3796 particular endianness, do nothing if the target is not
3799 2000-08-25 H.J. Lu <hjl@gnu.org>
3801 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3802 check -rpath nor LD_RUN_PATH for cross link.
3803 * ld.texinfo: Document the change.
3805 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3807 * NEWS: Mention support for CRIS.
3809 2000-08-23 H.J. Lu <hjl@gnu.org>
3811 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3812 the current runpath list from bfd_elf_get_runpath_list ()
3815 2000-08-22 H.J. Lu <hjl@gnu.org>
3817 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3818 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3819 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3820 trace_file_tries is non-zero.
3821 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3822 if trace_file_tries is non-zero.
3824 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3827 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3829 * NEWS: Mention i860 support.
3831 2000-08-14 Andreas Schwab <schwab@suse.de>
3833 * scripttempl/elf.sc: Fix last change to use correct comment
3836 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3838 * scripttempl/elf.sc: Add a comment giving the correspondence
3839 between sections, per-datum sections, and linkonce sections. Make
3840 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3843 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3845 * emulparams/elf32_i860.sh: New file.
3846 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3847 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3848 (eelf32_i860.c): New rule.
3849 * Makefile.in: Regenerate.
3851 2000-08-10 Nick Clifton <nickc@cygnus.com>
3853 * emulparams/mipspe.sh (ENTRY): Add definition.
3855 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3857 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3860 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3862 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3863 the final size of .bss section.
3864 * scripttempl/elfm68hc12.sc: Likewise.
3866 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3868 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3869 gld${EMULATION_NAME}_parse_args for consistency. Combine
3870 lastoptind and prevoptind vars, and keep track of last optind.
3871 (gld_${EMULATION_NAME}_list_options): Rename to
3872 gld${EMULATION_NAME}_list_options.
3874 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3876 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3877 (i586-sco-sysv5uw7.1.0).
3879 2000-07-27 H.J. Lu <hjl@gnu.org>
3881 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3882 (PARSE_AND_LIST_PROLOGUE): New.
3883 (PARSE_AND_LIST_LONGOPTS): Likewise.
3884 (PARSE_AND_LIST_OPTIONS): Likewise.
3885 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3886 (PARSE_AND_LIST_EPILOGUE): Likewise.
3888 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3890 * emultempl/armelf.em: Elide functions common to elf32.em,
3891 ie. most of the file.
3892 (arm_elf_after_open): New. Do arm specific things then call
3893 gld${EMULATION_NAME}_after_open.
3894 (arm_elf_before_allocation): New. Call
3895 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3896 (PARSE_AND_LIST_PROLOGUE): Define.
3897 (PARSE_AND_LIST_SHORTOPTS): Define.
3898 (PARSE_AND_LIST_LONGOPTS): Define.
3899 (PARSE_AND_LIST_OPTIONS): Define.
3900 (PARSE_AND_LIST_ARGS_CASES): Define.
3901 (LDEMUL_AFTER_OPEN): Define.
3902 (LDEMUL_BEFORE_ALLOCATION): Define.
3903 (LDEMUL_BEFORE_PARSE): Define.
3904 (LDEMUL_FINISH): Define.
3906 * emultempl/hppaelf.em: Similarly zap most of this file.
3907 (hppaelf_add_stub_section): Prototype.
3908 (hppaelf_layaout_sections_again): Prototype.
3909 (hook_in_stub): Prototype.
3910 (LDEMUL_SET_OUTPUT_ARCH): Define.
3911 (LDEMUL_FINISH): Define.
3912 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3914 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3915 (EXTRA_EM_FILE): New.
3916 * emulparams/armelf_linux.sh: Likewise.
3917 * emulparams/armelf_linux26.sh: Likewise.
3918 * emulparams/hppalinux.sh: Likewise.
3919 * emulparams/hppaelf.sh: Likewise.
3922 * emultempl/elf32.em: Fix formatting.
3923 (EXTRA_EM_FILE): Source it.
3924 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3925 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3926 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3927 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3928 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3929 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3930 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3931 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3932 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3933 allow functions in this file to be overridden.
3934 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3936 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3938 * emultempl/elf32.em: Reorganize file.
3940 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3942 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3943 specific option to fit 64-bit executable in the lower
3944 31-bit address range. This is done by changing start
3945 address of .interp (the very first section of executable)
3946 and then setting EF_ALPHA_32BIT elf header flag.
3948 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3950 * emultempl/m68kcoff.em: New file.
3951 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3952 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3954 * Makefile.in: Regenerate.
3956 2000-07-20 H.J. Lu <hjl@gnu.org>
3958 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3959 and "disable-new-dtags" to stop getopt from treating -d/-e as
3960 abbreviations for these options.
3962 2000-07-20 H.J. Lu <hjl@gnu.org>
3964 * ld.texinfo: Add documentation for --disable-new-dtags and
3967 * ldmain.c (main): Initialize link_info.new_dtags to false.
3969 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3970 --disable-new-dtags and --enable-new-dtags.
3971 (gld_${EMULATION_NAME}_list_options): Likewise.
3973 2000-07-05 Kenneth Block <krblock@computer.org>
3975 * lexsup.c: Add optional style to demangle switch
3976 * ld.texinfo: Document optional style to demangle switch.
3978 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3980 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3982 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3983 Regenerate dependencies.
3984 * Makefile.in: Rebuild.
3985 * configure.tgt (cris-*-*): New target.
3986 * emulparams/crisaout.sh, emulparams/criself.sh,
3987 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3988 * po/POTFILES.in, po/ld.pot: Regenerate.
3990 2000-07-20 H.J. Lu <hjl@gnu.org>
3992 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3993 Print out ignored -z options.
3995 2000-07-19 H.J. Lu <hjl@gnu.org>
3997 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3998 (PARSE_AND_LIST_PROLOGUE): New.
3999 (PARSE_AND_LIST_LONGOPTS): Likewise.
4000 (PARSE_AND_LIST_OPTIONS): Likewise.
4001 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4003 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4005 * lexsup.c (ld_options): Comment out 'z'.
4006 (parse_args): Likewise.
4008 * emultempl/elf32.em: Include "elf/common.h".
4009 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4011 (gld_${EMULATION_NAME}_list_options): Likewise.
4013 * ld.texinfo: Add documentation for the recognized -z options.
4015 2000-07-19 H.J. Lu <hjl@gnu.org>
4017 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4018 bfd_elf_set_dt_needed_soname ().
4020 2000-07-18 DJ Delorie <dj@cygnus.com>
4022 * pe-dll.c (pe_dll_id_target): check object target name also
4024 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4026 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4027 ${INIT_END} if relocating.
4028 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4030 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4032 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4033 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4034 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4035 errors introduced by the old dynamic lib search order.
4037 2000-07-17 DJ Delorie <dj@cygnus.com>
4039 * pe-dll.c (process_def_file): auto-export data items also
4040 (pe_process_import_defs): also see if _imp_ form needed
4042 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4044 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4045 for dll import libraries
4047 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4049 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4050 gcc 2.95.2 and later.
4052 2000-07-11 Kazu Hirata <kazu@hxi.com>
4054 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4057 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4059 * ldemul.h (struct lang_input_statement_struct): Remove forward
4061 (struct search_dirs): Likewise.
4062 * ldfile.h (struct lang_input_statement_struct): Likewise.
4063 Protect file from multiple inclusion.
4064 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4065 declaration from macro to file scope.
4067 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4068 * ldgram.y: Likewise here.
4069 * ldlang.c: And here.
4070 * ldmain.c: And here.
4071 * mpw-elfmips.c: And here.
4072 * mpw-eppcmac.c: And here.
4073 * emultempl/aix.em: And here.
4074 * emultempl/armcoff.em: And here.
4075 * emultempl/armelf.em: And here.
4076 * emultempl/armelf_oabi.em: And here.
4077 * emultempl/beos.em: And here.
4078 * emultempl/elf32.em: And here.
4079 * emultempl/hppaelf.em: And here.
4080 * emultempl/linux.em: And here.
4081 * emultempl/lnk960.em: And here.
4082 * emultempl/pe.em: And here.
4083 * emultempl/sunos.em: And here.
4084 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4085 * mpw-idtmips.c: Ditto.
4086 * emultempl/generic.em: Ditto.
4087 * emultempl/gld960.em: Ditto.
4088 * emultempl/gld960c.em: Ditto.
4089 * emultempl/mipsecoff.em: Ditto.
4090 * emultempl/ticoff.em: Ditto.
4091 * emultempl/vanilla.em: Ditto.
4093 * pe-dll.c: Include ldfile.h
4094 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4096 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4097 arguments to bfd_elf32_size_dynamic_sections call.
4098 (gldelf32ebmip_place_orphan): Add missing arguments to
4099 lang_leave_output_section_statement call.
4101 2000-07-10 H.J. Lu <hjl@gnu.org>
4103 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4105 (strhash): Likewise.
4106 (compute_dll_image_base): Likewise.
4107 (pe_undef_found_sym): Likewise.
4108 (pe_undef_cdecl_match): Likewise.
4109 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4110 argument "arch" with ATTRIBUTE_UNUSED.
4112 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4114 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4116 From Ryan Bradetich <rbradetich@uswest.net>
4117 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4119 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4121 Changes to create multiple linker stubs, positioned immediately
4122 before the section where they are required.
4123 * emultempl/hppaelf.em: Include elf32-hppa.h.
4124 (stub_sec, file_chain): Delete.
4125 (hppaelf_create_output_section_statements): Don't make a stub
4127 (hook_stub_info): New struct.
4128 (hook_in_stub): New function.
4129 (hppaelf_add_stub_section): New function.
4130 (hppaelf_finish): Do nothing for relocateable links. Modify the
4131 call to elf32_hppa_size_stubs. Move code for updating section
4133 (hppaelf_layaout_sections_again): ..to here, a new function.
4135 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4136 broken list handling. Pass in a pointer to the list.
4137 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4139 (hppaelf_before_parse): Prototype.
4140 (hppaelf_set_output_arch): Prototype.
4141 (hppaelf_create_output_section_statements): Prototype.
4142 (hppaelf_delete_padding_statements): Prototype.
4143 (hppaelf_finish): Prototype.
4146 * emultempl/hppaelf.em: Include ctype.h.
4147 (struct orphan_save): New.
4148 (gld${EMULATION_NAME}_place_orphan): New.
4149 (output_rel_find): New.
4150 (hppaelf_get_script): Update from elf32.em.
4151 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4152 Change emulation_name field to "${EMULATION_NAME}". Add
4153 gld${EMULATION_NAME}_place_orphan.
4155 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4156 ehppalinux.o, sort it. Regenerate dependencies.
4157 (ehppalinux.c): Depend on hppaelf.em
4158 * Makefile.in: Regenerate.
4160 * configure.tgt: targ_emul=hppalinux for hppa*linux
4162 * emulparams/hppalinux.sh: New.
4163 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4165 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4167 * lexsup.c (parse_args): Copy section name.
4169 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4171 * emultempl/pe.em: institute the following search order for
4172 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4173 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4174 static lib (libfoo.a) if none of the above are found.
4176 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4178 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4179 (longopts): New --{enable,disable}-auto-image-base options.
4180 (gld_${EMULATION_NAME}_list_options): Document.
4181 (gld_${EMULATION_NAME}_parse): Handle.
4182 (strhash): New static function.
4183 (compute_dll_image_base): New static function.
4184 (gld_${EMULATION_NAME}_set_symbols): Use.
4186 2000-07-05 DJ Delorie <dj@redhat.com>
4190 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4192 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4193 * emulparams/elf32btsmip.sh: New file.
4194 * Makefile.am: Add traditional mips target.
4195 * Makefile.in: Rebuild.
4197 2000-07-01 H.J. Lu <hjl@gnu.org>
4199 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4200 automake to use YLWRAP.
4201 * Makefile.in: Rebuild.
4203 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4205 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4206 (CLEANFILES): Add DEPA.
4207 * Makefile.in: Regenerate.
4209 2000-06-30 Timothy Wall <twall@ppc>
4211 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4212 the page in the upper octet of the address.
4214 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4216 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4218 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4220 * NEWS: arm-elf does --gc-sections too.
4222 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4224 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4226 * Makefile.in: Regenerate.
4228 2000-06-21 H.J. Lu <hjl@gnu.org>
4230 * Makefile.am: Rebuild dependency.
4231 * Makefile.in: Rebuild.
4233 2000-06-20 H.J. Lu <hjl@gnu.org>
4235 * Makefile.am: Rebuild dependency.
4236 * Makefile.in: Rebuild.
4238 2000-06-20 Timothy Wall <twall@cygnus.com>
4240 * scripttempl/tic54xcoff.sc: New.
4241 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4242 * gen-doc.texi: Add flag for TI COFF.
4243 * ld.texinfo: Add documentation for TI COFF handling switches.
4244 * emultempl/ticoff.em: New. TI COFF handling.
4245 * configure.tgt: Add tic54x target.
4246 * Makefile.am: Add tic54x target.
4247 * Makefile.in: Ditto.
4249 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4251 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4252 checking for backslashes.
4254 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4256 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4258 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4260 * NEWS: Update list of targets supporting --gc-sections.
4262 * scripttempl/elf.sc: KEEP .eh_frame contents.
4263 * scripttempl/elfd30v.sc: Same here.
4265 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4267 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4269 * Makefile.in: Rebuild.
4270 * configure.tgt: Recognize m68hc12 and m68hc11.
4271 * scripttempl/elfm68hc12.sc: New file.
4272 * emulparams/m68hc12elfb: New emulation.
4273 * emulparams/m68hc12elf: New emulation.
4274 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4275 (includes a memory.x script to define the ROM and RAM banks).
4276 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4277 New configuration files for support of Motorola 68hc11
4279 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4281 * ldmain.c (main): Only change SEC_READONLY for final link.
4283 2000-06-13 H.J. Lu <hjl@gnu.org>
4285 * configure: Regenerate.
4287 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4289 * configure.in (VERSION): Update to show this is the CVS mainline.
4291 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4293 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4294 input objects to be ECOFF.
4295 (check_sections): einfo takes %B, not %P, to print a BFD name.
4297 2000-06-05 Michael Matz <matz@ifh.de>
4299 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4302 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4304 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4306 * emulparams/avr1200.sh (STACK): Define as 0.
4307 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4308 * emulparams/avr4433.sh (STACK): Likewise.
4309 * emulparams/avr44x4.sh (STACK): Likewise.
4310 * emulparams/avr85xx.sh (STACK): Likewise.
4311 * emulparams/avrmega103.sh (STACK): Likewise.
4312 * emulparams/avrmega161.sh (STACK): Likewise.
4313 * emulparams/avrmega603.sh (STACK): Likewise.
4314 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4315 (__stack): Define from ${STACK} for main().
4317 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4319 * Makefile.am: Update dependencies with "make dep-am"
4320 * Makefile.in: Regenerate.
4322 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4324 * ldmain.c: Include filenames.h.
4325 (set_scripts_dir): Support backslashes in program name.
4327 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4329 * ldmain.c (main): When deciding if ".text" section should be
4330 read-only, don't forget to reset SEC_READONLY because it
4331 could be already set.
4333 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4335 * ld.1: Add documentation for new command line option:
4336 --section-start <sectionname>=<sectionorg>
4337 This is a generic version of -Ttext etc. which accepts
4338 any section name as a parameter instead of just text/data/
4340 * ld.texinfo: More docs.
4342 * lexsup.c: (parse_args): Recognize new command line option.
4343 (ld_options): Add new option.
4345 2000-05-18 H.J. Lu <hjl@gnu.org>
4347 * lexsup.c (parse_args): `i' == `r', not `q'.
4349 2000-05-18 Jeffrey A Law (law@cygnus.com)
4351 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4353 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4354 Rick Gorton <gorton@scrugs.lkg.dec.com>
4356 Add support for '-q' == '--emit-relocs' switch.
4357 * ldmain.c (main): Default to false.
4358 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4359 * NEWS: Describe the emitrelocations switch.
4360 * ld.texinfo: Describe the emitrelocations switch.
4362 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4364 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4365 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4366 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4369 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4371 * lexsup.c (parse_args): Update the year in the copyright notice.
4373 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4375 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4376 Replace defines with those from intl/libgettext.h to quieten gcc
4379 2000-05-10 H.J. Lu <hjl@gnu.org>
4381 * ldlang.c (open_input_bfds): Don't load the same file within
4382 a group again if the whole archive has been loaded already.
4384 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4386 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4387 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4390 2000-05-01 Jim Wilson <wilson@cygnus.com>
4392 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4394 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4395 host "ia64-*-linux-gnu*".
4397 2000-04-29 Andreas Jaeger <aj@suse.de>
4399 * ld.h: Correctly check GCC version.
4401 2000-04-25 Jeffrey A Law (law@cygnus.com)
4403 * Makefile.am: Add PA64 support. Add missing dependencies for
4405 * Makefile.in: Rebuilt.
4406 * configure.tgt: Add PA64 support (currently disabled).
4408 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4410 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4411 (output_rel_find): New function.
4412 (hold_section, hold_use): Delete.
4413 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4414 hold_interp): Make local to place_orphan.
4415 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4416 rather than place_section to find possible previous use of orphan.
4417 Similarly find the place-holder output sections. Use returned
4418 value from lang_enter_output_section_statement rather than calling
4419 lang_output_section_statement_lookup.
4420 * emultempl/armelf.em: Same here.
4421 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4423 * ldlang.c (lang_enter_output_section_statement): Return output
4425 * ldlang.h (lang_enter_output_section_statement): Change
4428 * ldlang.h (lang_output_section_statement): Export it.
4429 * ldlang.c (lang_output_section_statement): Ditto.
4431 2000-04-24 Nick Clifton <nickc@cygnus.com>
4433 * ld.texinfo (Output Section Data): Add note that section data
4434 commands cannot appear outside of section directives.
4436 2000-04-2 Matthew Green <mrg@cygnus.com>
4438 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4440 2000-04-21 Richard Henderson <rth@cygnus.com>
4441 David Mosberger <davidm@hpl.hp.com>
4443 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4444 (eelf64_ia64.c): New rule.
4445 * Makefile.in: Rebuild.
4446 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4447 * emulparams/elf64_ia64.sh: New file.
4449 2000-04-21 Richard Henderson <rth@cygnus.com>
4451 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4453 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4455 * dep-in.sed: Match space at start of file name, not at end.
4457 2000-04-18 H.J. Lu <hjl@gnu.org>
4459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4460 lang_leave_output_section_statement () after calling
4461 lang_enter_output_section_statement ().
4462 * emultempl/armelf.em: Likewise.
4464 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4466 * emultempl/elf32.em (struct orphan_save): Add section field.
4467 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4468 better order, and place first orphan section as we did before the
4469 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4470 Don't call make_bfd_section here, let wild_doit do the job for us.
4471 Don't build a statement list when we'll only throw it away.
4472 * emultempl/armelf.em: Ditto.
4473 * emultempl/pe.em: Similarly.
4475 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4477 * scripttempl/elfppc.sc: Remove.
4478 * emulparams/elf32ppc.sh: Use elf.sc.
4479 * emulparams/elf32lppc.sh: Use elf.sc.
4480 * emulparams/elf32ppclinux.sh: Use elf.sc.
4481 * emulparams/elf32ppcsim.sh: New file.
4482 * emulparams/elf32lppcsim.sh: New file.
4483 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4484 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4485 * Makefile.in: Regenerate.
4486 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4488 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4490 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4491 ~SEC_ALLOC sections too. Init start address of debug sections.
4492 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4493 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4494 Also set all relocateable section start addresses.
4496 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4498 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4499 Add new BSS_PLT variable for when .plt need not be contained in
4500 the file. Move _etext so that it is also after .fini, and provide
4501 both etext and _etext with a leading underscore. Mark the start
4504 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4506 * emultempl/elf32.em (struct orphan_save): New.
4507 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4508 hold_interp): Make them struct orphan_save.
4509 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4510 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4511 the end of the relevant section list. Also add associated section
4512 statements to the end of any previous orphan statements.
4513 * emultempl/armelf.em: Similarly.
4514 * emultempl/pe.em: Similarly.
4516 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4518 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4520 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4522 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4523 --enable-build-warnings option.
4524 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4525 * Makefile.in, configure: Re-generate.
4527 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4529 * po/ld.pot: Regenerate.
4531 * lexsup.c (help): Restore translated part of bug string.
4533 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4534 (DEP): Quote when passing vars to sub-make. Add warning message
4536 (DEP1): Rewrite for "gcc -MM".
4537 (CLEANFILES): Add DEP2.
4538 Update dependencies.
4539 * Makefile.in: Regenerate.
4541 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4543 * ld.h: #include "bin-bugs.h"
4544 * lexsup.c (help): Use REPORT_BUGS_TO.
4546 2000-03-27 Denis Chertykov <denisc@overta.ru>
4548 * configure.tgt (avr-*-*): New target support.
4549 * Makefile.am: Likewise.
4550 * scripttempl/elf32avr.sc: New script file.
4551 * emulparams/avr1200.sh: New file.
4552 * emulparams/avr23xx.sh: New file.
4553 * emulparams/avr4433.sh New file.
4554 * emulparams/avr44x4.sh New file.
4555 * emulparams/avr85xx.sh New file.
4556 * emulparams/avrmega103.sh New file.
4557 * emulparams/avrmega161.sh New file.
4558 * emulparams/avrmega603.sh New file.
4559 * Makefile.in: Regenerate.
4561 2000-03-09 Andreas Jaeger <aj@suse.de>
4563 * Makefile.am (check-DEJAGNU): Also unset LANG.
4564 * Makefile.in: Rebuild.
4566 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4568 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4571 2000-03-02 H.J. Lu <hjl@gnu.org>
4573 * emulparams/elf32mcore.sh: Include "getopt.h".
4575 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4577 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4579 2000-03-01 H.J. Lu <hjl@gnu.org>
4581 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4582 * emulparams/shpe.sh: Likewise.
4584 2000-03-01 Nick Clifton <nickc@cygnus.com>
4586 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4587 to unused parameters.
4589 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4590 functions only used by DLL code.
4591 (_place_orphan): Initialise 'dollar'.
4593 2000-03-01 H.J. Lu <hjl@gnu.org>
4595 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4596 indicate if the undefined symbol is a fatal error or not.
4597 Don't delete the output file if "fatal" is false.
4599 2000-02-29 H.J. Lu <hjl@gnu.org>
4601 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4602 Set LC_COLLATE and LC_ALL to null and export them. It is for
4603 sort which expects the C locale.
4604 Add $(LIBS) to all $(HOSTING_LIBS).
4605 * Makefile.in: Rebuild.
4607 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4609 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4610 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4611 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4612 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4613 find_potential_libraries.
4615 2000-02-28 Jim Blandy <jimb@redhat.com>
4617 * ldgram.y (exclude_name_list): Don't require a comma to separate
4618 list entries; the lexer considers commas to be valid part of a
4619 filename, so in something like `foo, bar' the comma is considered
4620 part of the first filename, `foo,'.
4621 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4623 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4625 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4626 host "i[3456]86-*-freebsdelf*".
4628 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4630 * scripttempl/i386go32.sc: Move misplaced semicolons.
4632 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4634 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4635 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4636 (eelf64hppa.c, ehppaelf.c): Remove targets.
4637 * Makefile.in: Rebuild.
4639 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4641 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4642 GNU/Linux/sparc, but keep the default as 32.
4644 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4645 it default if sparcv9 or sparc64.
4647 2000-02-24 Nick Clifton <nickc@cygnus.com>
4649 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4650 * Makefile.in: Regenerate.
4651 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4653 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4654 find_potential_libraries.
4655 * ldemul.c (ldemul_find_potential_libraries): New function.
4657 * ldfile.c (ldfile_open_file_search): Allow function to be
4659 (ldfile_open_file): Call ldemul_find_potential_libraries.
4660 * ldfile.h: Add prototype for ldfile_open_file_search.
4662 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4664 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4665 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4667 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4668 (gld_X_find_potential_libraries): New function. Search for
4669 libraries called "*.lib".
4671 * scripttempl/pe.sc: Add .pdata section.
4673 2000-02-23 Richard Henderson <rth@cygnus.com>
4675 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4676 Add and use memory regions.
4678 2000-02-23 Linas Vepstas (linas@linas.org)
4680 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4682 * Makefile.am: Add support for Linux/IBM 370.
4683 * configure.tgt: Likewise.
4685 * Makefile.in: Regenerate.
4687 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4689 * ldlang.c (print_input_section, print_data_statement,
4690 print_reloc_statement, print_padding_statement, insert_pad,
4691 size_input_section, lang_check_section_addresses,
4692 lang_size_sections, lang_do_assignments, lang_set_startof,
4693 lang_one_common): Change `opb' to unsigned.
4694 (lang_do_assignments): Also change `size' to unsigned.
4696 2000-02-16 Richard Henderson <rth@cygnus.com>
4698 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4700 2000-02-16 Timothy Wall <twall@cygnus.com>
4702 * mri.c (mri_draw_tree): Add default LMA region argument to call
4703 to lang_leave_output_section_statement.
4704 * ldlang.h: Update prototypes with LMA region arguments.
4705 * ldlang.c (lang_size_sections): Encapsulate region bounds
4706 checking in os_check_region call.
4707 (os_check_region): New function.
4708 (lang_output_section_statement_lookup): Initialize lma_region.
4709 (lang_leave_output_section_statement): Add LMA region argument.
4710 (lang_leave_overlay): Ditto.
4711 * ldgram.y: Handle LMA region syntax.
4712 * ld.texinfo (Output Section Description): Describe LMA region usage.
4713 * emultempl/armelf.em (gld$place_orphan): Add default value for
4714 lma region in call to lang_leave_output_section_statement.
4715 * emultempl/elf32.em (gld$place_orphan): Add default value for
4716 lma region in call to lang_leave_output_section_statement.
4717 * emultempl/pe.em (gld$place_orphan): Add default value for
4718 lma region in call to lang_leave_output_section_statement.
4721 2000-02-04 Timothy Wall <twall@redhat.com>
4723 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4724 octets when calculating section end addresses.
4726 2000-02-04 Timothy Wall <twall@redhat.com>
4728 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4730 2000-02-03 Timothy Wall <twall@redhat.com>
4732 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4734 * ldlang.c (print_input_section, print_data_statement,
4735 print_reloc_statement, print_padding_statement): Print target
4736 address values and section sizes as bytes, not octets.
4737 (insert_pad) Calculate padding size in octets, and adjust "dot"
4739 (size_input_section) Always adjust "dot" by bytes, not octets.
4740 (lang_check_section_addresses, lang_do_assignments) Adjust
4741 "dot" by bytes, not octets. Use the larger of the directive size
4742 or octets_per_byte for the number of octets actually allocated in
4744 (lang_set_startof) Make sure STARTOF returns a target address.
4745 (lang_one_common) Record size changes in octets.
4746 (lang_abs_symbol_at_end_of) Section end symbol's value is
4747 recorded in target bytes.
4748 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4749 to be clear about behavior when an octet is smaller than one byte.
4751 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4753 * ldcref.c (output_cref): Don't pass message strings to printf
4757 * ldmisc.c (vfinfo): Same here.
4760 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4762 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4763 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4764 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4765 Add missing NULL initialisers, and comments.
4767 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4769 2000-01-21 Nick Clifton <nickc@cygnus.com>
4771 * ldlang.c (lang_size_sections): Fix typo in comment.
4773 2000-01-18 H.J. Lu <hjl@gnu.org>
4775 * ldlang.c (lang_size_sections): Also update the current
4776 address of a region if the SEC_NEVER_LOAD bit is not set.
4778 2000-01-10 Philip Blundell <pb@futuretv.com>
4780 * configure.tgt (arm*-*-conix*): New target.
4782 2000-01-07 Nick Clifton <nickc@cygnus.com>
4784 * ld.texinfo (Options): Remind users to preceed linker command
4785 line switches with -Wl, (or whatever is appropriate) if it is
4786 being invoked by a comnpiler driver program.
4787 Fix description of the behaviour of the -n command line switch.
4789 2000-01-05 Catherine Moore <clm@cygnus.com>
4791 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4793 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4794 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4795 (exclude_name_list): New.
4796 ldlang.c (walk_wild_section): Support list of excluded files.
4797 (print_wild_statement): Likewise.
4798 (lang_add_wild): Likewise.
4799 * ldlang.h (lang_wild_statement_type): Likewise.
4800 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4802 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4804 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4805 (process_def_file): Use.
4806 (pe_dll_compat_implib): New variable.
4809 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4810 pe_dll_compat_implib.
4812 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4813 compat-implib options.
4814 (gld_${EMULATION_NAME}_list_options): List new options.
4815 (gld_${EMULATION_NAME}_parse_args): Handle.
4817 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4820 * deffilep.y (opt_name): Allow "." in name.
4822 For older changes see ChangeLog-9899
4828 version-control: never