1 Fri Sep 6 14:46:16 2002 Jeffrey A Law (law@redhat.com)
3 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
5 2002-09-02 Nick Clifton <nickc@redhat.com>
7 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
9 * emulparams/v850.sh (TEMPLATE_NAME): Define.
11 2002-08-30 Nick Clifton <nickc@redhat.com>
13 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
14 used. Change INSN to start at 0x01000000 and extend for
15 256K (ignoring holes). Start the STACK on a word aligned
17 (.rodata): Start it at the READONLY_START_ADDR.
19 2002-08-30 Alan Modra <amodra@bigpond.net.au>
21 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
23 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
25 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
26 added makefile targets for this file.
27 * Makefile.in: Regenerate.
28 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
29 * NEWS: Mention new port.
31 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
33 * emulparams/tic3xcoff.sh: New file.
34 * emulparams/tic4xcoff.sh: New file.
35 * scripttempl/tic3xcoff.sc: New file.
36 * scripttempl/tic4xcoff.sc: New file.
38 2002-08-28 Alan Modra <amodra@bigpond.net.au>
40 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
41 strtoul and strtoull with bfd_scan_vma.
42 (gld${EMULATION_NAME}_read_file): Likewise.
44 2002-08-28 Alan Modra <amodra@bigpond.net.au>
46 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
48 2002-08-27 Egor Duda <deo@logos-m.ru>
50 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
51 Add symbols for application to access them.
53 2002-08-27 Nick Clifton <nickc@redhat.com>
55 * emultempl/armelf.em: Revert this patch, it is not needed.
57 2002-08-22 Adam Nemet <anemet@lnxw.com>
59 2002-08-20 Dan Kegel <dank@kegel.com>
61 * configure.in: added --with-lib-path argument to ld's configure
63 * ld/NEWS: Document new switch.
64 * ld/README: Mention new switch.
65 * configure: Regenerate.
66 * Makefile.in: Regenerate.
69 2001-04-25 Christopher Faylor <cgf@cygnus.com>
71 * Makefile.in (LIB_PATH): Make configurable.
72 (GENSCRIPTS): Set LIB_PATH in environment.
73 * configure.in: Substitute LIB_PATH.
75 2002-08-22 Adam Nemet <anemet@lnxw.com>
77 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
78 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
79 depending on the type of the function.
80 (arm_elf_convert_thumb_symbol_to_address): New function.
82 2002-08-22 Graeme Peterson <gp@qnx.com>
84 * Makefile.am: Add esh{l}elf_nto.o files.
85 * Makefile.in: Regenerate.
86 * configure.tgt: Add support for sh-**-nto* targets.
87 * emulparams/shelf_nto.sh: New file.
88 * emulparams/shlelf_nto.sh: New file.
90 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
92 * ldlang.c (offsetof): Define if not defined.
94 2002-08-14 H.J. Lu <hjl@gnu.org>
96 * configure.tgt: Always enable 64bit emulations for 32bit
99 2002-08-13 Alan Modra <amodra@bigpond.net.au>
101 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
102 (MAXPAGESIZE): Set to 1.
104 * ld.h (ALIGN_N): Delete.
105 * ldexp.h (align_n): Declare.
106 * ldexp.c (align_n): New function.
107 (fold_binary): Use align_n instead of ALIGN_N.
108 (exp_fold_tree): Likewise.
109 * ldlang.c (lang_size_sections_1): Likewise.
110 (lang_one_common): Likewise.
111 * ld.texinfo (ALIGN): Remove power of 2 restriction.
113 2002-07-31 Graeme Peterson <gp@qnx.com>
115 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
116 * Makefile.am: Add eelf32{l}ppcnto.o files.
117 * Makefile.in: Regenerate.
118 * emulparams/elf32lppcnto.sh: New file.
119 * emulparams/elf32ppcnto.sh: New file.
121 2002-08-07 H.J. Lu <hjl@gnu.org>
123 * ld.texinfo: Document --no-undefined-version.
125 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
126 `script.' fields to 0.
128 * ldmain.c (main): Initialize the allow_undefined_version to
131 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
132 (ld_options): Add --no-undefined-version.
133 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
135 2002-08-07 Nick Clifton <nickc@redhat.com>
137 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
138 an interworking bfd if there are input bfds. (107501)
140 2002-08-06 Alan Modra <amodra@bigpond.net.au>
142 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
145 2002-08-01 Nick Clifton <nickc@redhat.com>
147 * emulparams/armelf.sh: Revert previous delta.
148 * scripttempl/elf.sc: Revert previous delta.
150 2002-07-31 H.J. Lu <hjl@gnu.org>
152 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
155 2002-07-31 H.J. Lu <hjl@gnu.org>
157 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
158 64bit BFD is selected.
160 2002-07-31 H.J. Lu <hjl@gnu.org>
162 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
163 if 64bit BFD is selected.
165 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
167 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
168 link_info.common_skip_ar_aymbols.
169 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
171 * ldmain.c (main): Initialize new field
172 link_info.common_skip_ar_aymbols.
174 2002-07-31 Adam Nemet <anemet@lnxw.com>
176 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
178 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
181 2002-07-31 Nick Clifton <nickc@redhat.com>
183 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
184 of the PDP-11 and 2.11BSD a.out support.
186 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
188 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
190 * Makefile.in: Regenerate.
191 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
192 n32 ABI emulations for these 64 bit targets.
193 * emulparams/elf32bmipn32.sh: Expand comment.
194 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
196 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
198 2002-07-30 Graeme Peterson <gp@qnx.com>
200 * configure.tgt: Add support for arm-*-nto target.
201 * Makefile.am: Add earmnto.o file.
202 * Makefile.in: Regenerate.
203 * NEWS: Mention port of ARM support to QNX.
204 * emulparams/armnto.sh: New file.
206 2002-07-30 Jakub Jelinek <jakub@redhat.com>
208 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
209 for relocatable link.
210 (lang_size_sections_1): Don't make .tbss zero size for relocatable
213 2002-07-26 Bernd Schmidt <bernds@redhat.com>
215 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
218 2002-07-25 Nick Clifton <nickc@redhat.com>
220 * po/sv.po: Updated Swedish translation.
221 * po/es.po: Updated Spanish translation.
222 * po/fr.po: Updated French translation.
224 2002-07-24 Nick Clifton <nickc@redhat.com>
226 * po/sv.po: Updated Swedish translation.
227 * po/es.po: Updated Spanish translation.
229 2002-07-23 Nick Clifton <nickc@redhat.com>
231 * po/fr.po: Updated French translation.
233 2002-07-20 Alan Modra <amodra@bigpond.net.au>
235 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
236 bomb on /DISCARD/ input section.
237 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
238 * emultempl/mmo.em (mmo_place_orphan): Likewise.
240 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
242 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
245 2002-07-16 Denis Chertykov <denisc@overta.ru>
246 Nick Clifton <nickc@redhat.com>
247 Frank Ch. Eigler <fche@redhat.com>
248 John Healy <jhealy@redhat.com>
250 * configure.tgt: Add support for ip2k-elf.
251 * Makefile.am: Add support for ip2k-elf.
252 * Makefile.in: Regenerate.
253 * emulparams/elf32ip2k.sh: New file.
254 * scripttempl/ip2k.sc: New file
255 * NEWS: Mention support for new port.
257 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
259 * NEWS: Add 'Changes in 2.13'.
261 2002-07-14 H.J. Lu <hjl@gnu.org>
263 * ld.texinfo: Document a .symver takes precedence over a
266 2002-07-12 Alan Modra <amodra@bigpond.net.au>
268 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
269 (COMMONPAGESIZE): Define.
271 2002-07-09 Alan Modra <amodra@bigpond.net.au>
273 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
275 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
277 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
278 powerpc-*-openbsd* and sparc64-*-openbsd*.
279 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
280 * Makefile.in: Regenerate.
281 * emulparams/hppaobsd.sh: New file.
283 2002-07-05 Alan Modra <amodra@bigpond.net.au>
285 * ldlang.c (print_wild_statement): Fix output formatting.
287 2002-07-04 Alan Modra <amodra@bigpond.net.au>
289 * ldlang.c: (strip_excluded_output_sections): New function.
290 (lang_process): Call it.
291 (lang_size_sections_1): Revert 2002-06-10 change.
293 2002-07-03 Alan Modra <amodra@bigpond.net.au>
295 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
297 * Makefile.in: Regenerate.
299 2002-07-02 Alan Modra <amodra@bigpond.net.au>
301 * ldfile.c (ldfile_try_open_bfd): Formatting.
303 * ldmisc.c (demangle): Move so that it doesn't intrude between
304 vfinfo comment and body. Add comment.
306 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
308 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
310 2002-07-01 Alan Modra <amodra@bigpond.net.au>
312 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
313 * ldlang.c (entry_sym): Likewise.
314 (ldlang_undef_chain_list_type): Likewise.
315 (lang_finish): Adjust references to entry_symbol.
316 (lang_add_entry): Likewise.
317 (lang_gc_sections): Use link_info.gc_sym_list.
318 (lang_process): Set link_info.gc_sym_list.
319 * ldlex.l: Include bfdlink.h.
320 * ldmain.c (main): Init link_info.gc_sym_list.
321 * emultempl/aix.em: Adjust references to entry_symbol.
322 * emultempl/armcoff.em: Likewise.
323 * emultempl/armelf.em: Likewise.
324 * emultempl/pe.em: Likewise.
325 * emultempl/ppc64elf.em (ppc_after_open): New function.
326 (LDEMUL_AFTER_OPEN): Define.
327 * emulparams/elf64ppc.sh: KEEP .opd sections.
329 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
331 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
332 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
333 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
334 (EEPROM_START_ADDR): Define.
335 (EEPROM_MEMORY): Define.
336 * emulparams/m68hc12elf.sh: Likewise.
337 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
338 section to put soft registers in .page0.
339 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
341 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
343 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
344 section. Add ${RELOCATING-0}.
346 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
348 * emulparams/shelf.sh (STACK_ADDR): Don't define.
349 (OTHER_SECTIONS): Define.
350 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
351 (OTHER_SECTIONS): Undef.
353 2002-06-26 Alan Modra <amodra@bigpond.net.au>
355 * ldmisc.c (demangle): Restore dots stripped from sym name.
357 2002-06-25 H.J. Lu <hjl@gnu.org>
359 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
360 * Makefile.in: Regenerated.
362 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
364 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
365 the size of attached object files, to allow make the object files
366 available via FTP or HTTP and to mention that the mail will be
367 sent to a mailing list.
369 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
371 * ld/configure.host (romp): Drop support.
373 2002-06-18 Chris Demetriou <cgd@broadcom.com>
375 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
376 section flags for SEC_DATA, rather than for SEC_CODE being unset.
378 2002-06-18 Chris Demetriou <cgd@broadcom.com>
380 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
381 format specifier used to print BFD name.
383 2002-06-18 Dave Brolley <brolley@redhat.com>
385 From Catherine Moore, Michael Meissner, Jim Blandy:
386 * emulparams/elf32frv.sh: New file.
387 * configure.tgt: Support frv-*-*.
388 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
389 (eelf32frv.c): New target.
391 2002-06-17 Tom Rix <trix@redhat.com>
393 * emultempl/elf32.em: gld*_get_script: Check for
394 GENERATE_COMBRELOC_SCRIPT.
395 * scripttempl/elfd10v.sc : Fix STACK and INSN.
396 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
398 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
400 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
402 2002-06-12 H.J. Lu <hjl@gnu.org>
404 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
405 false if xvec doesn't match.
407 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
409 * ldlang.c (lang_size_sections_1): Skip removed output sections.
411 2002-06-08 Alan Modra <amodra@bigpond.net.au>
413 * ldexp.c: Replace CONST with const.
414 * ldfile.c: Likewise.
415 * ldfile.h: Likewise.
418 * pe-dll.h: Likewise.
420 2002-06-07 Alan Modra <amodra@bigpond.net.au>
422 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
424 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
426 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
427 to -1 == implicit enable.
428 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
429 initialize link_info.pei386_auto_import to -1 == implicit
431 (gld_${EMULATION_NAME}_parse_args): When processing
432 --enable-auto-import and --disable-auto-import options, use
433 '1' and '0' instead of 'true' and 'false'.
434 (pe_find_data_imports): Only issue message about auto-import
435 when the feature is implicitly enabled. Downgrade message to
436 informational instead of warning.
438 2002-06-07 Alan Modra <amodra@bigpond.net.au>
440 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
442 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
444 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
445 HOSTING_CRT0 and HOSTING_LIBS.
447 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
449 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
451 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
453 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
454 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
456 2002-06-05 Alan Modra <amodra@bigpond.net.au>
458 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
459 SEC_EXCLUDE sections when doing a relocatable link.
461 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
463 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
464 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
465 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
466 (eshlelf64_nbsd.c): New rules.
467 * Makefile.in: Regenerate.
468 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
469 (sh64-*-netbsd*): New targets.
470 * emulparams/shelf32_nbsd.sh: New file.
471 * emulparams/shelf64_nbsd.sh: New file.
472 * emulparams/shlelf32_nbsd.sh: New file.
473 * emulparams/shlelf64_nbsd.sh: New file.
475 2002-06-04 Alan Modra <amodra@bigpond.net.au>
477 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
479 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
481 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
482 C++ constructors/destructors, loosely based on the m68hc11 port.
484 2002-05-31 Alan Modra <amodra@bigpond.net.au>
486 * Makefile.in: Regenerate.
487 * aclocal.m4: Regenerate.
488 * config.in: Regenerate.
489 * configure: Regenerate.
491 2002-05-31 Graeme Peterson <gp@qnx.com>
493 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
494 (ei386nto.c): Add rule.
495 * Makefile.in: Regenerate.
496 * configure.tgt: Add i[3456]86-*-nto-qnx*.
497 * emulparams/i386nto.sh: New file.
499 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
501 * NEWS: Add entry for VAX ELF support.
503 2002-05-29 Matt Thomas <matt@3am-software.com>
504 Jason Thorpe <thorpej@wasabisystems.com>
506 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
508 (evaxnbsd.c): New rules.
509 * Makefile.in: Regenerate.
510 * configure.tgt (vax-*-netbsdelf*)
512 (vax-*-netbsd*): New targets.
513 * emulparams/elf32vax.sh: New file.
514 * emulparams/vaxnbsd.sh: New file.
516 2002-05-29 Adam Nemet <anemet@lnxw.com>
518 * emultempl/armelf.em (arm_elf_after_open): Don't determine
519 bfd_for_interwork, instead add glue sections to each input bfd.
520 (bfd_for_interwork): New global.
521 (arm_elf_set_bfd_for_interworking): New function.
522 (arm_elf_before_allocation): Use it.
524 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
526 * Makefile.am: Add DLX make target.
527 * configure.tgt: Add DLX configuration.
528 * Makefile.in: Regenerate.
529 * emulparams/elf32_dlx.sh: New file
530 * scripttempl/dlx.sc: New file
532 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
534 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
535 * Makefile.in: Regenerate.
536 * emulparams/elf_chaos.sh: Use elf_chaos script.
537 * scripttempl/elf_chaos.sc: New file.
539 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
541 * ldlang.c (lang_size_sections_1): Move check for conflicting load
542 addresses and regions from here...
543 (lang_get_regions): ...to this new function.
544 (lang_leave_output_section_statement): Use lang_get_regions.
545 (lang_leave_overlay): Likewise.
546 * mri.c (mri_draw_tree): Pass null as last argument to
547 lang_leave_output_section_statement.
548 * emultempl/elf32.em (gld*_place_orphan): Likewise.
549 * emultempl/mmo.em (mmo_place_orphan): Likewise.
550 * emultempl/pe.em (gld*_place_orphan): Likewise.
552 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
554 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
556 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
558 * ldemul.c: Fix formatting.
559 * ldfile.c: Likewise.
560 * pe-dll.c: Likewise.
561 * pe-dll.h: Likewise.
563 2002-05-25 Alan Modra <amodra@bigpond.net.au>
565 * ldlang.c (lang_process): Formatting, grammar.
567 * ldlex.l: Use #include "" instead of <> for local header files.
569 2002-05-24 TAMURA Kent <kent@netbsd.org>
571 * configure.tgt: Add a target for i386-netbsdpe.
573 2002-05-23 Jakub Jelinek <jakub@redhat.com>
575 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
576 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
577 output section if necessary. Handle .tbss.
578 (lang_size_sections): Clear _raw_size for .tbss section
579 (it allocates space in PT_TLS segment only).
580 * ldwrite.c (build_link_order): Build link order for .tbss too.
582 2002-05-23 Alan Modra <amodra@bigpond.net.au>
584 * configure.in: Correct spelling of AC_PREREQ.
586 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
588 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
590 (autofilter_objlist): Add crtbegin.o, crtend.o.
592 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
594 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
595 (longopts): Add new option --exclude-libs.
596 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
597 (gld_${EMULATION_NAME}_parse_args): Use it.
598 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
599 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
601 (pe_dll_add_excludes): Set excludes->type.
602 (auto_export): Add new variable libname and set to archive basename if
603 abfd. Use it when filtering default and user-specified libarary
604 excludes. Let string "ALL" mean all libs when filtering user-specified
606 * ld.texinfo: Document --exclude-libs.
608 2002-05-22 Alan Modra <amodra@bigpond.net.au>
610 * ldemul.c (ldemul_new_vers_pattern): New function.
611 * ldemul.h (ldemul_new_vers_pattern): Declare.
612 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
613 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
614 * emultempl/ppc64elf.em (dotsyms): New static var.
615 (gld${EMULATION_NAME}_new_vers_pattern): New function.
616 (LDEMUL_NEW_VERS_PATTERN): Define.
617 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
618 (PARSE_AND_LIST_LONGOPTS): Likewise.
619 (PARSE_AND_LIST_ARGS_CASES): Handle them.
620 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
622 * emultempl/armcoff.em: Likewise.
623 * emultempl/armelf_oabi.em: Likewise.
624 * emultempl/beos.em: Likewise.
625 * emultempl/elf32.em: Likewise.
626 * emultempl/generic.em: Likewise.
627 * emultempl/gld960.em: Likewise.
628 * emultempl/gld960c.em: Likewise.
629 * emultempl/linux.em: Likewise.
630 * emultempl/lnk960.em: Likewise.
631 * emultempl/m68kcoff.em: Likewise.
632 * emultempl/mipsecoff.em: Likewise.
633 * emultempl/pe.em: Likewise.
634 * emultempl/sunos.em: Likewise.
635 * emultempl/ticoff.em: Likewise.
636 * emultempl/vanilla.em: Likewise.
638 2002-05-22 Alan Modra <amodra@bigpond.net.au>
640 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
641 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
642 (LIB_SEARCH_DIRS): No need to use "tr".
643 (COMPILE_IN): Only set for native targets.
644 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
645 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
646 * configure.tgt (powerpc*): Set tdir_*.
647 (powerpcle*): Correct targ_extra_emuls.
648 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
649 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
651 2002-05-22 Alan Modra <amodra@bigpond.net.au>
653 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
654 calling lang_add_entry.
656 2002-05-21 H.J. Lu (hjl@gnu.org)
658 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
660 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
662 * ld.texinfo: Updated for --allow-multiple-definition and
665 * ldmain.c (main): Initialize the allow_multiple_definition
668 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
669 (ld_options): Add --allow-multiple-definition.
670 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
672 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
674 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
675 (earmelfb_nbsd.c): New rule.
676 * Makefile.in: Regenerate.
677 * configure.tgt (armeb-*-netbsdelf*): New target.
678 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
679 (arm-*-netbsd*): Likewise.
680 * emulparams/armelfb_nbsd.sh: New file.
682 2002-05-18 Tom Rix <trix@redhat.com>
684 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
687 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
689 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
690 * Makefile.in: Regenerate.
691 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
693 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
695 * emulparams/avr1.sh: New file.
696 * emulparams/avr2.sh: New file.
697 * emulparams/avr3.sh: New file.
698 * emulparams/avr4.sh: New file.
699 * emulparams/avr5.sh: New file.
700 * scripttempl/avr.sc: New file.
702 2002-05-15 Alan Modra <amodra@bigpond.net.au>
704 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
705 (lang_place_orphans): Abort if just_syms_flag.
707 2002-05-10 Tom Rix <trix@redhat.com>
709 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
710 architecture and machine information in the output bfd.
711 (gld*_before_parse): Remove old arch and machine code.
712 (choose_target): Rename to gld*_choose_target.
713 (rtld): Change type to int.
714 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
715 objects in XCOFF archives.
716 * ldfile.h: Update copyright date.
718 2002-05-10 Jakub Jelinek <jakub@redhat.com>
720 * ldmain.c (main): Enable -z combreloc by default.
722 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
724 * Makefile.am: Honour DESTDIR.
725 * Makefile.in: Regenerate.
727 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
729 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
730 (lang_enter_overlay): Remove the last two parameters.
731 (lang_leave_overlay): Take them here instead.
732 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
733 (section): Pass LMA and crossref flag to lang_leave_overlay rather
734 than lang_enter_overlay.
735 * ldlang.c (lang_memory_region_lookup): Return null for null names.
736 (lang_output_section_statement_lookup): Initialize update_dot_tree.
737 (lang_size_sections_1): Evaluate it.
738 (lang_leave_output_section_statement): Rework LMA lookup.
739 (overlay_lma, overlay_nocrossrefs): Remove.
740 (lang_enter_overlay): Remove LMA and crossref arguments.
741 (lang_enter_overlay_section): Don't set the LMA here.
742 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
743 assignment to the last section's update_dot_tree. Unconditionally
744 use the load and run-time regions specified in the OVERLAY statement.
745 Likewise the first section's LMA. Only set the other sections' LMAs
746 when no load region is given.
748 2002-05-06 Nick Clifton <nickc@redhat.com>
750 * po/sv.po: New translation.
752 2002-05-04 Alan Modra <amodra@bigpond.net.au>
754 * emultempl/hppaelf.em (build_section_lists): New function.
755 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
756 and build_section_lists.
758 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
760 * ld.h: Fix formatting.
762 * ldfile.c: Likewise.
763 * ldlang.c: Likewise.
764 * ldmain.c: Likewise.
765 * lexsup.c: Likewise.
766 * pe-dll.c: Likewise.
768 2002-05-02 Alan Modra <amodra@bigpond.net.au>
770 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
771 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
772 (build_section_lists): Do output_section tests here.
774 2002-04-30 Tom Rix <trix@redhat.com>
776 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
778 2002-05-01 Alan Modra <amodra@bigpond.net.au>
780 Long branch stubs, multiple stub sections.
781 * emultempl/ppc64elf.em: Include ldctor.h.
782 (stub_file): New var.
783 (group_size): New var.
784 (ppc_create_output_section_statements): New function.
785 (struct hook_stub_info): New.
786 (hook_in_stub): New function.
787 (ppc_add_stub_section): New function.
788 (ppc_layout_sections_again): New function.
789 (build_section_lists): New function.
790 (gld${EMULATION_NAME}_finish): Rewrite.
791 (real_func): New var.
792 (ppc_for_each_input_file_wrapper): New function.
793 (ppc_lang_for_each_input_file): New function.
794 (lang_for_each_input_file): Define.
795 (PARSE_AND_LIST_PROLOGUE): Define.
796 (PARSE_AND_LIST_LONGOPTS): Define.
797 (PARSE_AND_LIST_OPTIONS): Define.
798 (PARSE_AND_LIST_ARGS_CASES): Define.
799 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
801 2002-04-30 Tom Rix <trix@redhat.com>
803 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
804 -blibpath, -bnolibpath support.
806 2002-04-30 Mark Mitchell <mark@codesourcery.com>
808 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
809 (eelf32ppcwindiss.c): New target.
810 * Makefile.in: Regenerated.
811 * configure.tgt: Add support for powerpc-*-windiss.
812 * emulparams/elf32ppcwindiss.sh: New file.
814 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
816 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
817 * ldexp.c (exp_print_token): Add "infix_p" argument.
818 (exp_print_tree): Update accordingly.
820 2002-04-28 Alan Modra <amodra@bigpond.net.au>
822 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
823 * Makefile.in: Regenerate.
824 * mpw-elfmips.c: Delete.
825 * mpw-eppcmac.c: Delete.
827 * mpw-idtmips.c: Delete.
829 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
831 * emulparams/shelf32.sh (MACHINE): Now sh5.
833 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
835 * ldgram.y: Fix syntax warning.
837 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
839 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
840 to prevent "-n" from being taken as an abbreviation for
841 "--no-pipeline-knowledge".
843 2002-04-08 Alan Modra <amodra@bigpond.net.au>
845 * ldlang.c (lang_size_sections_1): Don't complain about
846 SEC_NEVER_LOAD sections having no memory region specified.
848 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
850 2002-04-07 matthew green <mrg@redhat.com>
852 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
854 2002-04-04 Alan Modra <amodra@bigpond.net.au>
856 * dep-in.sed: Cope with absolute paths.
857 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
859 * Makefile.in: Regenerate.
861 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
863 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
865 2002-04-03 Jakub Jelinek <jakub@redhat.com>
867 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
868 is smaller than maximum, round dot up to common page boundary.
870 2002-03-28 Alan Modra <amodra@bigpond.net.au>
872 * configure.host: Set up for generic hosts first, then tweak as
873 necessary in more specific targets.
874 (HOSTING_LIBS): Include libgcc_eh.a if found.
876 2002-03-23 Andreas Jaeger <aj@suse.de>
878 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
880 2002-03-21 Alan Modra <amodra@bigpond.net.au>
882 * Makefile.am: Run "make dep-am".
883 * Makefile.in: Regenerate.
885 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
887 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
889 2002-03-20 Alan Modra <amodra@bigpond.net.au>
891 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
892 add the symbol to the linker hash table immediately.
893 (lang_place_undefineds): Split symbol creation out..
894 (insert_undefined): ..to here.
896 2002-03-18 David O'Brien <obrien@FreeBSD.org>
898 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
899 the contents of the buffer returned from basename function will are
900 getting overwritten while still being used.
902 2002-03-18 Jan Hubicka <jh@suse.cz>
903 Andreas Jaeger <aj@suse.de>
904 Andreas Schwab <schwab@suse.de>
906 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
907 * elf_x86_64.sh (ARCH): Set to i386:x86-64
908 set libraries to default to lib64 paths.
910 2002-03-18 Tom Rix <trix@redhat.com>
912 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
913 * configure.tgt : Same.
914 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
915 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
916 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
917 emulation parameters for better -b32, -b64 support.
918 * emulparms/aixrs6.sh : Same.
919 * emulparms/ppcmacos.sh : Same.
920 * emultempl/aix.em (choose_target) : Use new emulation parameters
921 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
922 * Makefile.in : Regenerate.
924 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
926 * po/fr.po: Updated version.
928 2002-03-18 Alan Modra <amodra@bigpond.net.au>
930 * ldmain.c (main): Move .text readonly flag fudges from here..
931 * ldlang.c (lang_process): ..to here.
933 2002-03-14 Alan Modra <amodra@bigpond.net.au>
935 * ldlang.c (lang_check): Remove the word size check added in last
936 change. Treat emitrelocations case as for relocatable links.
938 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
940 * po/fr.po: Updated version.
942 2002-03-13 Alan Modra <amodra@bigpond.net.au>
944 * ldlang.c (lang_check): Do relocatable link checks first, so that
945 warn_mismatch can't override. Check compatible and word size too.
947 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
949 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
951 2002-03-05 Jakub Jelinek <jakub@redhat.com>
953 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
956 2002-03-04 H.J. Lu <hjl@gnu.org>
958 * scripttempl/elf.sc: Put .preinit_array, .init_array and
959 .fini_array in the data segment.
961 2002-03-04 Alan Modra <amodra@bigpond.net.au>
963 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
965 2002-03-01 David Mosberger <davidm@hpl.hp.com>
967 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
968 .init_array, and .fini_array.
970 2002-02-20 Andreas Schwab <schwab@suse.de>
972 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
973 .IA64_unwind* in a relocatable link.
975 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
977 * NEWS: Mark 2.12 branch.
979 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
981 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
982 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
984 2002-02-18 Tom Rix <trix@redhat.com>
986 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
987 (gld*_before_allocation): Same.
988 (gld*_create_output_section_statements): Generate
989 __rtinit if run time linking. Add librtl.a to the link.
990 (gld*_read_file): Clean.
992 2002-02-18 Alan Modra <amodra@bigpond.net.au>
994 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
996 2002-02-18 David O'Brien <obrien@FreeBSD.org>
998 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
999 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1000 and eelf64alpha_fbsd.
1001 * Makefile.in: Regenerate.
1002 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1003 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1004 use a FreeBSD-specific emulation rather than the psABI one.
1005 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1006 for all FreeBSD ELF systems.
1007 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1009 * emulparams/elf32ppc_fbsd.sh: Likewise.
1010 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1011 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1012 * emulparams/elf64alpha_fbsd.sh: Likewise.
1013 * emulparams/elf_i386_fbsd.sh: Likewise.
1014 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1016 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1018 * po/tr.po: Updated version.
1020 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1022 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1025 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1027 * emultempl/mmo.em (mmo_after_open): Don't call
1028 _bfd_mmix_check_all_relocs when producing ELF output.
1030 2002-02-15 Richard Henderson <rth@redhat.com>
1032 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1033 definition. Emit a unop+nop pair.
1035 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1037 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1038 for presence of .MMIX.reg_contents.linker_allocated before early
1041 * NEWS: Mention support for MMIX.
1043 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1045 Support arbitrary length fill patterns.
1046 * ld.texinfo (Output Section Fill): Describe fill expressions.
1047 (FILL): Refer to the above.
1048 * ldexp.h (etree_value_type): Add "str" field.
1049 (union etree_union): Add "str" to "value" struct.
1050 (exp_bigintop): Declare.
1051 (exp_get_fill): Declare.
1052 * ldexp.c: Include "safe-ctype.h".
1053 (exp_intop): Set value.str to NULL.
1054 (exp_bigintop): New function.
1055 (new_rel): Pass in "str", and set new.str from it.
1056 (new_rel_from_section): Set new.str to NULL.
1057 (fold_name): Adjust calls to new_rel.
1058 (exp_fold_tree): Likewise.
1059 (exp_get_fill): New function.
1060 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1061 (INT): Returns a "bigint". Adjust all code handling INTs.
1062 (fill_opt): Returns a "fill".
1063 (fill_exp): Split out of fill_opt, use for FILL.
1064 * ldlang.h (struct _fill_type): New.
1065 (fill_type): Move typedef to ldexp.h.
1066 (lang_output_section_statement_type): "fill" is now a pointer.
1067 (lang_fill_statement_type): Likewise.
1068 (lang_padding_statement_type): Likewise.
1069 (lang_add_fill): Now takes a "fill_type *" param.
1070 (lang_leave_output_section_statement): Likewise.
1071 (lang_do_assignments): Likewise.
1072 (lang_size_sections): Likewise.
1073 (lang_leave_overlay_section): Likewise.
1074 (lang_leave_overlay): Likewise.
1075 * ldlang.c: Include ldgram.h after ldexp.h.
1076 (lang_output_section_statement_lookup): Adjust for fill_type change.
1077 (print_fill_statement): Likewise.
1078 (print_padding_statement): Likewise.
1079 (insert_pad): Now takes a "fill_type *" arg.
1080 (size_input_section): Likewise.
1081 (lang_size_sections_1): Likewise.
1082 (lang_size_sections): Likewise.
1083 (lang_do_assignments): Likewise.
1084 (lang_add_fill): Likewise.
1085 (lang_leave_output_section_statement): Likewise.
1086 (lang_leave_overlay_section): Likewise.
1087 (lang_leave_overlay): Likewise.
1088 Adjust all callers of the above function.
1089 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1090 starting with "0X" as well as "0x". Return bigint.str for hex
1091 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1092 Always use base 16 for numbers starting with "$".
1093 * ldmain.c: Include ldgram.h after ldexp.h.
1094 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1095 of bfd_fill_link_order.
1096 * pe-dll.c: Adjust lang_do_assignments calls.
1097 * emultempl/elf32.em: Likewise.
1098 * emultempl/hppaelf.em: Likewise.
1099 * emultempl/ppc64elf.em: Likewise.
1100 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1101 lang_add_assignment call.
1102 * emultempl/pe.em: Likewise.
1104 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1106 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1107 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1108 the pattern in question is not a regexp.
1109 * ldlang.c: Likewise.
1110 * ldlang.h: Likewise.
1111 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1113 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1115 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1116 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1117 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1118 * ldexp.c (exp_data_seg): New variable.
1119 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1120 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1121 (exp_fold_tree): Handle DATA_SEGMENT_END.
1122 Pass allocation_done when recursing instead of hardcoding
1123 lang_allocating_phase_enum.
1124 * ldexp.h (exp_data_seg): New.
1125 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1126 (lang_size_sections): New.
1127 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1128 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1129 if COMMONPAGESIZE is defined.
1130 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1131 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1132 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1133 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1134 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1137 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1139 * Makefile.in: Regenerate.
1141 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1143 * lexsup.c: Remove strtoul declaration.
1145 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1147 * ldmain.c: Add prototype for main ().
1148 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1149 * emultempl/lnk960.em (lnk960_choose_target): Function should
1152 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1154 * ldlang.c (entry_section): New initialised variable.
1155 (lang_finish): Use it.
1156 * ldlang.h (entry_section): Declare.
1157 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1158 entry_section to ".opd".
1160 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1162 * ld.texinfo (Options): Add back in -nostdlib documentation,
1163 which had been inadvertently removed.
1165 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1167 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1168 register section vma to a sane value after emitting error. Make
1169 fatal conditions cause program exit when emitting message.
1171 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1173 * configure.tgt: Add or32-*-rtems target.
1175 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1177 Contribute sh64-elf.
1178 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1179 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1180 in OTHER_RELOCATABLE_SECTIONS.
1181 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1182 * emulparams/shelf32.sh (STACK_ADDR): Define.
1183 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1184 (OTHER_SECTIONS): this. Removed stack settings.
1185 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1186 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1187 2001-03-12 DJ Delorie <dj@redhat.com>
1188 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1189 relaxing if any shmedia or mixed sections are found.
1190 2001-03-07 DJ Delorie <dj@redhat.com>
1191 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1192 einfo. Gracefully decline to output to non-elf formats.
1193 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1194 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1195 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1196 * emulparams/shelf32.sh: Ditto.
1197 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1198 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1200 2001-01-10 Ben Elliston <bje@redhat.com>
1201 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1202 non-portable shell constructs. From Hans-Peter Nilsson.
1203 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1204 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1205 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1206 dependencies to the shell script include chain.
1207 * Makefile.in: Regenerate.
1208 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1209 * emultempl/sh64elf.em: Update and tweak comments.
1210 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1211 make a .cranges section SEC_IN_MEMORY.
1212 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1213 * emultempl/sh64elf.em
1214 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1215 .cranges section found to be necessary; continue and set stored
1216 section contents flags for sections with non-mixed contents.
1217 Use a struct sh64_section_data container and sh64_elf_section_data
1218 to store contents-type flags.
1219 Remove unused update of "isec".
1220 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1221 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1222 access contents-type flags. Assert that the associated container
1223 is initialized. Use that container, not elf_gp_size, to hold size
1224 of linker-generated cranges contents.
1225 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1226 * emultempl/sh64elf.em
1227 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1228 there's already a .cranges section. When section flag difference
1229 is found, don't NULL-check cranges a second time. Tweak comments.
1230 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1231 merging, not max size, as size of ld-generated .cranges contents.
1232 Don't set ELF section flags in output section. When checking for
1233 needed .cranges descriptors, don't use a variable; compare
1234 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1236 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1237 * emultempl/sh64elf.em: New file.
1238 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1239 * Makefile.in: Regenerate.
1240 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1241 (OTHER_RELOCATING_SECTIONS): Ditto.
1242 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1243 * emulparams/shlelf32.sh: Stub out all settings except
1244 OUTPUT_FORMAT. Source shelf32.sh.
1245 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1246 OTHER_RELOCATING_SECTIONS.
1247 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1248 * emulparams/shlelf64.sh: Stub out all settings except
1249 OUTPUT_FORMAT. Source shelf64.sh.
1250 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1251 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1253 (DATA_START_SYMBOLS): Define, provide ___data.
1254 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1255 for consecutive .data section.
1256 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1257 section after .data section.
1258 * emulparams/shlelf64.sh: Ditto.
1259 * emulparams/shelf32.sh: Ditto.
1260 (ALIGNMENT): Define to 8.
1261 * emulparams/shelf32.sh: Ditto.
1262 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1263 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1264 built-in linker scripts.
1265 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1266 * emulparams/shlelf64.sh: New.
1267 * emulparams/shelf64.sh: New.
1268 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1270 * Makefile.am: Add support for shlelf64 and shelf64.
1271 * Makefile.in: Regenerate.
1272 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1273 * configure.tgt (sh64-*-elf*): Add shelf as default.
1274 Add shlelf to targ_extra_emuls.
1275 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1276 * emulparams/shelf32.sh: New file.
1277 * emulparams/shlelf32.sh: New file.
1278 * Makefile.am: Add support for shlelf32 and shelf32.
1279 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1280 * Makefile.in: Regenerate.
1282 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1284 * ldlang.c (lang_reset_memory_regions): Rename from
1285 reset_memory_regions. Change all callers. Make public.
1286 * ldlang.h (lang_reset_memory_regions): Prototype.
1287 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1288 lang_reset_memory_regions before lang_size_sections.
1289 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1290 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1292 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1294 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1295 arithmetic when checking for too many global registers.
1297 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1299 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1300 (ehppanbsd.c): New rule.
1301 * Makefile.in: Regenerate.
1302 * configure.tgt (hppa*-*-netbsd*): New target.
1303 * emulparams/hppalinux.sh: Add comment to check other files
1304 that source this file it is modified, and list which
1306 * emulparams/hppanbsd.sh: New file.
1308 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1310 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1313 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1315 Support on-demand global register allocation from
1316 R_MMIX_BASE_PLUS_OFFSET relocs.
1317 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1318 mmix_set_reg_section_vma. Call
1319 _bfd_mmix_finalize_linker_allocated_gregs.
1320 (mmix_before_allocation): New function.
1321 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1322 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1323 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1324 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1325 before .MMIX.reg_contents.
1326 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1327 (mmo_after_open): New function.
1328 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1329 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1330 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1332 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1334 * emulparams/or32.sh: New file.
1335 * emulparams/or32elf.sh: New file.
1336 * scripttempl/or32.sc: New file.
1337 * configure.tgt : Add support for or32.
1338 * configure: Regenerate
1339 * Makefile.am: Add support for or32.
1340 * Makefile.in: Regenerate.
1341 * NEWS: Mention support for or32.
1342 * po/ld.pot: Regenerate.
1344 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1345 Mitch Lichtenberg <mpl@broadcom.com>
1347 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1348 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1349 reloc creation (ld --embedded-relocs).
1351 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1353 * configure: Regenerated.
1355 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1357 * Makefile.am (install): Depend on install-info.
1358 * Makefile.in: Regenerate.
1360 2002-01-26 Christian Rose <menthos@menthos.com>
1362 * ldmain.c (main): Use full sentences to ease translation.
1364 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1366 * po/fr.po: Updated version.
1368 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1370 * po/es.po: Updated version.
1372 2002-01-25 Andreas Jaeger <aj@suse.de>
1374 * ldlex.l (yy_input): Correct error check.
1376 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1378 * ldmisc.c (demangle): Put back dots when string not demangled.
1380 2002-01-22 Richard Henderson <rth@redhat.com>
1382 * emulparams/elf64alpha.sh (NOP): Use unop.
1384 2002-01-21 Andreas Jaeger <aj@suse.de>
1386 * ldlex.l: Use fread instead of read.
1388 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1390 * configure.tgt (ia64-*-netbsd*): New target.
1392 2002-01-21 H.J. Lu <hjl@gnu.org>
1394 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1396 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1398 2002-01-18 Andreas Jaeger <aj@suse.de>
1400 * ldver.c (ldversion): Update year.
1402 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1404 * po/ld.pot: Regenerate.
1406 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1408 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1409 * Makefile.in: Regenerate.
1410 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1411 * emultempl/ppc64elf.em: New file.
1413 2002-01-15 DJ Delorie <dj@redhat.com>
1415 * scripttempl/pe.sc: Add support for constructor priorities.
1417 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1419 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1420 * emulparams/avr23xx.sh: Likewise.
1421 * emulparams/avr4433.sh: Likewise.
1422 * emulparams/avr44x4.sh: Likewise.
1423 * emulparams/avr85xx.sh: Likewise.
1424 * emulparams/avrmega103.sh: Likewise.
1425 * emulparams/avrmega161.sh: Likewise.
1426 * emulparams/avrmega603.sh: Likewise.
1427 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1429 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1431 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1432 archive is excluded.
1434 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1436 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1437 (eshelf_nbsd.c): New rule.
1438 (eshlelf_nbsd.c): New rule.
1439 * Makefile.in: Regenerate.
1440 * configure.tgt (sh*le-*-netbsdelf*): New target.
1441 (sh*-*-netbsdelf*): New target.
1442 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1443 * ld/emulparams/shelf_nbsd.sh: New emulation.
1444 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1446 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1448 * po/es.po: New file: Spanish translation.
1449 * configure.in (ALL_LINGUAS): Add es.
1450 * configure: Regenerate.
1452 2002-01-06 John Marshall <jmarshall@acm.org>
1454 * ld.texinfo: Note that --emit-relocs is currently only
1455 implemented for ELF.
1457 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1460 of bfd_section_list_remove and bfd_section_list_insert macros.
1461 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1462 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1464 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1466 * configure.tgt (x86_64-*-netbsd*): New target.
1468 2001-12-21 Tom Rix <trix@redhat.com>
1470 (gld*_create_output_section_statements): New function.
1471 For -binitfini support.
1472 * emultempl/aix.em (gld*_before_parse): Fix comment.
1473 * emultempl/aix.em (gld*_parse_args): Fix comment.
1475 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1477 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1479 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1481 * configure.tgt (arm-*-netbsdelf*): Add target.
1482 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1483 * emulparams/armelf_nbsd.sh: Added.
1484 * Makefile.am: Add rules for earmelf_nbsd.
1485 * Makefile.in: Regenerate.
1487 2001-12-19 Andreas Jaeger <aj@suse.de>,
1488 Susanne Oberhauser <froh@suse.de>
1490 * configure.host: Add rules for x86_64-*linux-gnu. Change
1491 s390x-linux entry to use gcc to report configuration, replace gcc
1492 with $CC in s390-linux
1494 2001-12-19 Andreas Jaeger <aj@suse.de>
1496 * ld.texinfo (VERSION): Fix markup.
1498 2001-12-18 matthew green <mrg@eterna.com.au>
1500 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1501 (m68kelfnbsd.c): New rule.
1502 * Makefile.in: Regenerate.
1503 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1504 (m68*-*-netbsd*4k*): .. this.
1505 (m68*-*-netbsdelf*): New target.
1506 (m68*-*-netbsd*): Also include ELF support.
1507 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1508 * emulparams/m68kelfnbsd.sh: New emulation.
1510 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1512 * ldgram.y (vers_node): Support anonymous version tags.
1513 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1514 tag is not defined together with non-anonymous versions.
1515 * ld.texinfo: Document it.
1517 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1519 * po/tr.po: New file: Turkish translation.
1520 * configure.in (ALL_LINGUAS): Add tr.
1521 * configure: Regenerate.
1523 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1525 * Makefile.am: Add rules for eelf64alpha_nbsd.
1526 * Makefile.in: Regenerate.
1527 * configure.tgt (alpha*-*-netbsd*): Set
1528 targ_emul to elf64alpha_nbsd.
1529 * emulparams/elf64alpha_nbsd.sh: Added.
1531 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1533 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1534 section_tail when fiddling with section list.
1535 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1536 broken into separate strings to make translation easier.
1537 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1538 fiddling with section list.
1539 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1541 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1543 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1545 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1547 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1549 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1551 * emultempl/elf32.em (finish): Supply output_bfd
1552 to bfd_elf*_discard_info.
1553 (OPTION_EH_FRAME_HDR): Define.
1554 (longopts): Add --eh-frame-hdr.
1555 (parse_args): Handle it.
1556 (list_options): Add --eh-frame-hdr to help.
1557 * emultempl/hppaelf.em (finish): Supply output_bfd
1558 to bfd_elf*_discard_info.
1559 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1561 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1563 * lexsup.c (parse_args): Don't pass shortopts to second call to
1564 getopt functions. Restore optind rather than decrementing before
1565 second call. Remove errind as it now duplicates last_optind.
1567 2001-12-11 Christopher Faylor <cgf@redhat.com>
1569 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1571 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1572 Richard Henderson <rth@redhat.com>
1574 * Makefile.am: Add support for xstormy16.
1575 * configure.tgt: Add support for xstormy16.
1576 * Makefile.in: Regenerate.
1577 * emulparams/elf32xstormy16.sh: New file.
1578 * scripttempl/xstormy16.sc: New file.
1580 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1582 * Makefile.in (LIB_PATH): Make configurable.
1583 (GENSCRIPTS): Set LIB_PATH in environment.
1584 * configure.in: Substitute LIB_PATH.
1585 * configure: Regenerate.
1586 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1587 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1589 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1591 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1592 describing the -N option so that it is easier to translate into
1595 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1597 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1598 statements describing a single option with a single, newline
1599 escaped fprintf. This allows better translation into other
1602 * ldmain.c (add_archive_element): Combine multiple strings
1603 into a single string to permit better translation into other
1606 2001-12-05 Tom Rix <trix@redhat.com>
1608 * Makefile.am: Remove eaixppc64.
1609 * Makefile.in: Regenerate.
1611 2001-12-04 Tom Rix <trix@redhat.com>
1613 * emultempl/aix.em (choose_target): Change default target to
1614 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1616 (gld*_read_file): Fix typo.
1617 (change_symbol_mode): Add prototype.
1620 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1621 * emulparams/aixrs6.sh : Same.
1622 * emulparams/ppcmacos.sh : Same.
1623 * emulparams/aixppc64.sh : Delete file.
1624 * emultempl/aix.em : Formatting changes.
1626 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1628 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1629 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1631 (OTHER_END_SYMBOLS): Fix formatting.
1632 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1633 (OTHER_END_SYMBOLS): Fix formatting.
1635 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1637 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1639 2001-12-02 Tom Rix <trix@redhat.com>
1641 * configure.tgt : Remove eaixppc64 emulations.
1642 * Makefile.in : Remove eaixppc64.c
1643 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1644 (ldemul_default_target): Same.
1645 * emultempl/gld960.em (gld960_choose_target): Same.
1646 * emultempl/gld960c.em (gld960_choose_target): Same.
1647 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1648 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1649 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1650 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1651 * emultempl/aix.em (choose_target): New function. Handle emulation of
1654 2001-11-27 H.J. Lu <hjl@gnu.org>
1656 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1657 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1658 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1659 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1660 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1661 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1662 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1663 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1665 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1668 (REL_SDATA): Likewise.
1669 (REL_SBSS): Likewise.
1670 (REL_SDATA2): Likewise.
1671 (REL_SBSS2): Likewise.
1672 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1675 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1677 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1679 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1681 2001-11-22 H.J. Lu <hjl@gnu.org>
1683 * Makefile.in: Regenerated with automake based on automake
1684 1.4-8 in RedHat 7.1.
1686 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1688 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1689 (config.status): Delete rule.
1690 Add extra dependencies to cover sourced emulparams files.
1691 * Makefile.in: Regenerate.
1693 * scripttempl/elf.sc: Order <section>, <section>.* and
1694 corresponding linkonce sections as seen in input files.
1695 Formatting fixes. Zero vma of all sections if not relocating.
1696 (STACK): Define and insert if STACK_ADDR defined.
1697 (OTHER_RELOCATING_SECTIONS): Delete.
1698 (OTHER_END_SYMBOLS): Define.
1699 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1700 (OTHER_READWRITE_SECTIONS): Likewise.
1701 (OTHER_GOT_SECTIONS): Likewise.
1702 (OTHER_SDATA_SECTIONS): Likewise.
1703 (OTHER_BSS_SECTIONS): Likewise.
1704 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1705 (OTHER_READWRITE_SECTIONS): Likewise.
1706 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1707 (OTHER_READWRITE_SECTIONS): Likewise
1709 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1710 (STACK_ADDR): Define.
1711 * emulparams/armelf_oabi.sh: As for armelf.sh.
1712 * emulparams/elf32mcore.sh: As for armelf.sh.
1713 * emulparams/h8300elf.sh: As for armelf.sh.
1714 * emulparams/mn10200.sh: As for armelf.sh.
1715 * emulparams/shelf.sh: As for armelf.sh.
1717 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1718 (OTHER_END_SYMBOLS): Define.
1719 * emulparams/m32relf.sh: As for elf32fr30.sh.
1720 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1721 * emulparams/h8300self.sh: As for elf32fr30.sh.
1723 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1724 defines with RELOCATING test.
1725 (OTHER_SDATA_SECTIONS): Likewise.
1726 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1727 (OTHER_END_SYMBOLS): ..this.
1728 * emulparams/crislinux.sh: As for criself.sh.
1730 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1732 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1733 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1734 normal and linkonce sections as seen in input files.
1735 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1736 (TEXT_DYNAMIC): Likewise.
1737 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1738 (OTHER_SDATA_SECTIONS): Likewise.
1739 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1740 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1741 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1742 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1743 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1744 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1745 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1746 sections as seen in input files.
1747 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1748 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1750 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1751 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1752 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1753 (OTHER_SECTIONS): Instead, use this..
1754 (OTHER_END_SYMBOLS): ..and this.
1756 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1757 * emulparams/elf32bsmip.sh: Likewise.
1758 * emulparams/elf32btsmip.sh: Likewise.
1759 * emulparams/elf32ebmip.sh: Likewise.
1760 * emulparams/elf32lmip.sh: Likewise.
1761 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1762 * emulparams/elf32lsmip.sh: Likewise.
1763 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1764 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1765 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1766 * emulparams/elf64btsmip.sh: Likewise.
1767 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1768 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1769 * emulparams/elf32ppclinux.sh: Likewise.
1770 * emulparams/elf32ppcsim.sh: Likewise.
1771 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1772 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1773 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1774 * emulparams/h8300self.sh: Likewise.
1775 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1776 * emulparams/sh.sh: Comment.
1777 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1778 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1779 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1781 2001-11-21 David Heine <dlheine@tensilica.com>
1782 Alan Modra <amodra@bigpond.net.au>
1784 * ldlang.c (map_input_to_output_sections): Replace "break"
1785 accidentally removed with 2001-08-03 change.
1786 (lang_gc_sections_1): Likewise.
1788 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1790 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1792 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1794 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1795 of false when calling lang_size_sections.
1796 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1798 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1800 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1801 function when LDEMUL_FINISH isn't set to the same name. Don't
1802 call ${LDEMUL_FINISH}.
1803 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1804 * emultempl/armelf.em (arm_elf_finish): Call
1805 gld${EMULATION_NAME}_finish.
1806 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1807 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1808 hppaelf_layout_sections_again if necessary.
1809 (need_laying_out): New var.
1810 (hppaelf_layaout_sections_again): Rename to
1811 hppaelf_layout_sections_again. Clear need_laying_out.
1812 (PARSE_AND_LIST_OPTIONS): Format text.
1814 2001-11-14 H.J. Lu <hjl@gnu.org>
1816 * emultempl/armelf.em (arm_elf_finish): Renamed from
1817 gld${EMULATION_NAME}_finish.
1818 (LDEMUL_FINISH): Set to arm_elf_finish.
1820 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1822 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1823 (struct ld_emulation_xfer_struct): Use it.
1825 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1827 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1828 additional symbols referenced by newer crt0.o files from HP.
1830 2001-11-12 Anthony Green <green@redhat.com>
1832 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1834 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1836 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1837 * Makefile.in: Regenerate.
1839 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1841 * ld.texinfo: Use @command for commands, @option for options.
1842 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1844 * Makefile.in: Rebuild.
1846 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1848 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1849 Add support for targets.
1851 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1853 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1854 * configure: Regernate.
1855 * po/fr.po: New file.
1856 * po/sv.po: New file.
1858 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1860 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1861 as little endian default and to support big endian.
1863 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1865 * ld.texinfo (Options): Document new option, -nostdlib.
1866 * lexsup.c (OPTION_NOSTDLIB): New definition.
1867 (ld_options): Add entry for "nostdlib".
1868 (parse_args): Handle OPTIONS_NOSTDLIB.
1869 * ldfile.c (ldfile_add_library_path): Don't add directories
1870 to the search path if they weren't specified on the command line
1871 and -nostdlib was specified.
1872 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1874 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1876 * lexsup.c (parse_args): Prevent infinite parsing loop when
1877 "-rpath.a" is specified on the command line.
1878 Replace calls to fprintf with calls to einfo.
1880 2001-10-31 John Marshall <jmarshall@acm.org>
1882 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1883 appear only once across all the linker scripts involved in a link
1884 invocation no longer applies. Make the documentation reflect
1887 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1889 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1891 (sh-*-linux*): Added targ_extra_libpath.
1893 2001-10-31 David Heine <dlheine@tensilica.com>
1895 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1896 for padding statements.
1898 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1900 * configure.tgt (mmix-*-*): New target.
1901 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1902 Add dependencies to match.
1903 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1904 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1905 scripttempl/mmo.sc: New files.
1906 * gen-doc.texi: @set MMIX.
1907 * ld.texinfo: Ditto.
1908 [MMIX] Add MMIX node.
1909 * Makefile.in: Regenerate.
1911 2001-10-29 Kazu Hirata <kazu@hxi.com>
1913 * ldlang.c: Fix a comment typo.
1915 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1917 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1918 entries, and match *-*-linux*.
1920 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1922 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1923 with ldlex_script, ldlex_popstate.
1924 (ifile_p1): Likewise.
1925 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1927 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1928 to 1. Don't BEGIN(SCRIPT).
1929 (lex_redirect): Similarly.
1930 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1932 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1934 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1935 __EH_FRAME_END__ and accept eh frames into data section.
1936 Add ctor and dtor sections.
1938 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1940 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1941 (auto-export): Fix indentation.
1943 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1945 * pe-dll.c (autofilter_objectlist): Add startup objects
1947 (auto-export): Constify char * p.
1948 Extract file basename and use strcmp rather than ststr
1951 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1953 * ldmain.c (get_emulation): Improve comment about the handling
1956 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1958 * po/POTFILES.in: Regenerate.
1960 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1962 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1963 -z nocopyreloc and -z nocombreloc usage strings.
1965 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1967 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1970 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1972 * scripttempl/armaout.sc: Place .bss section after end of aligned
1973 data section to match behaviour of aout code in constructrion of
1976 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1978 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1979 startup files for mingw32 dlls to list.
1981 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1983 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1985 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1987 * configure.tgt (targ): Add arm9e-*-elf.
1989 2001-10-05 H.J. Lu <hjl@gnu.org>
1991 * genscripts.sh: Fix a typo in the last change.
1993 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1995 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1996 -z nocombreloc in usage.
1998 2001-10-03 Jim Blandy <jimb@redhat.com>
2000 * genscripts.sh: Include a comment at the top of each generated
2001 script, explaining its purpose.
2003 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2005 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2006 * NEWS: Mention -z nocopyreloc.
2007 * ld.texinfo (Options): Describe nocopyreloc.
2009 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2011 * configure: Regenerate.
2013 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2015 * ldver.h (ld_program_version): Remove declaration.
2016 * lexsup.c (parse_args): Move printing of copyright message..
2017 * ldver.c (ldversion): .. to here.
2018 Use BFD_VERSION_STRING in place of BFD_VERSION.
2019 (ld_program_version): Remove.
2020 * Makefile.am (Makefile): Depend on bfd/configure.in.
2022 * Makefile.in: Regenerate.
2024 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2026 * Makefile.am: Update dependencies with "make dep-am".
2027 * Makefile.in: Regenerate.
2029 2001-09-29 John Reiser <jreiser@BitWagon.com>
2031 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2032 * lexsup.c: Add --no-define-common commandline option.
2033 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2034 * ldlex.l: Likewise.
2035 * ld.h: Add command_line.inhibit_common_definition.
2036 * ldmain.c (main): Initialize.
2037 * ld.texinfo: Document.
2039 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2041 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2043 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2045 * ldmisc.c (USE_STDARG): Remove.
2046 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2051 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2052 declarations. Update copyright.
2054 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2056 * pe-dll.c: Remove obsoleted declaration of
2057 pe_get_data_import_dll_name.
2058 (pe_create_import_fixup): Fix thinko.
2060 * ld.texinfo(enable-auto-import): Clarify the explanation.
2062 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2064 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2065 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2066 DLL_SUPPORT controlled code.
2068 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2070 * emultempl/pe.em(pe_data_import_dll): Make static.
2071 (pe_get_data_import_dll_name): New accessor function.
2072 * pe-dll.c(pe_create_import_fixup): call
2073 pe_get_data_import_dll_name() from pe.em, instead of
2074 directly accessing pe_data_import_dll variable from pe.em.
2076 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2078 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2079 (def_file_add_directive): Use ISSPACE instead of isspace.
2080 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2081 isdigit/isxdigit/isalpha/isalnum.
2082 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2083 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2084 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2085 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2087 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2088 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2090 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2091 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2092 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2093 (ctor_prio): Use ISDIGIT instead of isdigit.
2094 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2095 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2096 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2098 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2099 (stricpy): Use TOLOWER instead of isupper/tolower.
2100 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2101 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2102 (lex_warn_invalid): Use ISPRINT instead of isprint.
2103 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2104 (main): For gettext, also set the LC_CTYPE locate facet.
2105 (add_keepsyms_file): Use ISSPACE instead of isspace.
2106 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2107 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2108 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2109 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2110 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2111 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2112 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2113 (quoteput): Use ISSPACE instead of isspace.
2114 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2117 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2119 * deffilep.y (def_stash_module): Constify "name" param.
2121 * pe-dll.c: Replace CONST with const throughout.
2122 (quick_symbol): Constify "n1", "n2", "n3" params.
2123 (make_singleton_name_thunk): Constify "import" param. Make
2124 "buffer_len" a size_t.
2125 (make_import_fixup_entry): Constify "name", "fixup_name",
2126 "dll_symname" params.
2127 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2128 (pe_get32): Likewise.
2129 (pe_implied_import_dll): Likewise.
2131 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2132 (sort_by_section_name): Likewise.
2134 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2135 (make_import_fixup): Cast printf arg, rel->address to long rather
2137 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2139 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2141 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2142 defines BufferSize. Increase buffer size by one.
2144 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2146 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2148 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2150 * configure.tgt: Add arm-openbsd target.
2152 2001-09-12 H.J. Lu <hjl@gnu.org>
2154 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2156 (ALL_64_EMULATIONS): Here.
2157 * Makefile.in: Regenerated.
2159 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2161 * emultempl/pe.em(make_import_fixup): change signature to
2162 take asection as well as arelec; we need this for proper
2163 error reporting. Only call pe_create_import_fixup() if
2164 there is no attempt to add a constant addend to the reloc;
2165 otherwise, report error condition.
2166 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2167 since final argument is a pointer to make_import_fixup().
2168 Change call to cb() to match make_import_fixup() signature.
2169 (make_import_fixup_mark): make buffer_len unsigned.
2170 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2172 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2174 * ld.texinfo: add verbose documentation for auto-import
2175 direct-addressing workaround, to compliment the terse
2178 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2180 * scripttempl/v850.sc: Add gcc_except_table sections.
2182 2001-09-11 Jeffrey A Law (law@cygnus.com)
2184 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2185 * emulparams/h8300self.sh: Similarly.
2187 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2189 * ld.texinfo (Options, --stack): Correct default value for stack
2192 2001-09-05 Tom Rix <trix@redhat.com>
2194 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2196 2001-09-03 Andreas Jaeger <aj@suse.de>
2198 * emultempl/beos.em: Declare prototypes for comparions functions,
2201 2001-09-02 Andreas Jaeger <aj@suse.de>
2203 * emultempl/aix.em: Add missing prototype.
2204 * emultempl/lnk960.em: Likewise.
2205 * emultempl/vanilla.em: Likewise.
2206 * emultempl/armcoff.em: Likewise.
2207 * emultempl/armelf_oabi.em: Likewise.
2208 * emultempl/beos.em: Likewise.
2209 * emultempl/gld960c.em: Likewise.
2210 * emultempl/gld960.em: Likewise.
2212 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2213 for prototype declaration.
2215 2001-08-31 Eric Christopher <echristo@redhat.com>
2216 Jason Eckhardt <jle@redhat.com>
2218 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2220 2001-08-31 Andreas Jaeger <aj@suse.de>
2222 * emultempl/pe.em: Add missing prototypes.
2223 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2224 pe_find_data_imports.
2225 (pr_sym): Add unused attribute.
2227 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2229 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2230 default from coff to elf.
2232 2001-08-29 Jeff Law <law@redhat.com>
2234 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2236 * emulparams/h8300self.sh: Similarly.
2238 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2240 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2242 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2243 * configure.tgt (h8300-*-elf*): New case.
2244 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2245 * emulparams/h8300self.sh: New file.
2246 * Makefile.in: Regenerated.
2248 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2250 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2253 2001-08-27 Linus Nordberg <linus@swox.com>
2254 Alan Modra <amodra@bigpond.net.au>
2256 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2257 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2259 * Makefile.in: Regenerate.
2260 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2261 entries to correct alphabetical position.
2262 * emulparams/elf64ppc.sh: New.
2263 * emulparams/elf64lppc.sh: New.
2265 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2267 * ldmain.c (main): Declare BSIZE as static.
2269 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2271 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2272 into .rel.dyn resp. .rela.dyn if combreloc.
2273 (get_script): If .x linker script is equal to .xn, only put it
2274 once into the binary.
2275 Add .xc and .xsc scripts.
2276 (parse_args): Handle -z combreloc and -z nocombreloc.
2277 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2278 For .xc and .xsc scripts put all .rel* or .rela* input sections
2279 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2280 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2282 Strip trailing whitespace from script.
2283 Generate .xc and .xsc scripts if requested.
2284 * ldmain.c (main): Initialize link_info.combreloc and
2285 link_info.spare_dynamic_tags.
2286 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2287 (ld_options): Add --spare-dynamic-tags option.
2288 (parse_args): Likewise.
2289 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2290 * ldint.texinfo: Document .xc and .xsc linker scripts.
2291 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2293 2001-08-22 H.J. Lu <hjl@gnu.org>
2295 * emulparams/elf32fr30.sh: Add a newline.
2297 2001-08-21 Andreas Jaeger <aj@suse.de>
2299 * deffilep.y: Add missing prototypes.
2300 * pe-dll.c: Likewise.
2302 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2304 * ldlang.c (insert_pad): Fix typos in last patch.
2306 * ldlang.c: When traversing lang_statement_union_type lists,
2307 consistently use "header.next" rather than "next".
2308 * mpw-eppcmac.c: Likewise.
2309 * emultempl/beos.em: Likewise.
2310 * emultempl/hppaelf.em: Likewise.
2311 * emultempl/pe.em: Likewise.
2312 * ldlang.h (union lang_statement_union): Remove "next" field.
2314 * ldlang.c (insert_pad): Use offsetof macro.
2315 (lang_size_sections): Always neuter padding statements.
2316 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2318 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2319 passed to lang_size_sections.
2320 (pe_exe_fill_sections): Likewise.
2321 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2322 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2324 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2326 * emultempl/aix.em: Formatting fixes.
2328 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2330 * ldlang.c (insert_pad): Make use of an existing pad statement if
2331 available. Move code calculating alignment, adjusting section
2332 alignment power, and adjusting dot to ..
2333 (size_input_section): .. here. Remove unused relax param.
2334 (lang_size_sections): Change boolean `relax' param to boolean *.
2335 Adjust call to size_input_section. Make use of insert_pad to
2336 place pad after the assignment statement. If relaxing, zap
2338 (reset_memory_regions): Reset output_bfd section sizes too.
2339 (relax_again): Move to..
2340 (lang_process): ..here. Adjust call to lang_size_sections, and
2341 remove duplicated code.
2342 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2344 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2346 * ld.texinfo: Document that fill values now use the four least
2348 * emulparams/elf32fr30.sh (NOP): Update.
2349 * emulparams/elf32mcore.sh: Likewise.
2350 * emulparams/elf64_s390.sh: Likewise.
2351 * emulparams/elf_i386.sh: Likewise.
2352 * emulparams/elf_i386_be.sh: Likewise.
2353 * emulparams/elf_i386_chaos.sh: Likewise.
2354 * emulparams/elf_i386_ldso.sh: Likewise.
2355 * emulparams/elf_s390.sh: Likewise.
2356 * emulparams/elf_x86_64.sh: Likewise.
2357 * emulparams/i386moss.sh: Likewise.
2358 * emulparams/i386nw.sh: Likewise.
2359 * emulparams/m68kelf.sh: Likewise.
2360 * scripttempl/elf.sc: Update NOP comment.
2361 * scripttempl/elfi370.sc: Likewise.
2362 * scripttempl/elfm68hc11.sc: Likewise.
2363 * scripttempl/elfm68hc12.sc: Likewise.
2364 * scripttempl/nw.sc: Likewise.
2366 2001-08-15 Tom Rix <trix@redhat.com>
2368 * ldgram.y (saved_script_handle): Initialize to NULL.
2369 * ldmain.c (main): Change check on saved_script_handle.
2371 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2373 * emultempl/elf32.em: Formatting fixes.
2374 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2375 looking at sec->owner.
2376 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2377 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2378 unused code, and reorganize orphan section placement code.
2380 * ldlang.c (wild_doit): Rename to lang_add_section.
2381 * ldlang.h: Here too.
2382 * mpw-elfmips.c: And here.
2383 * emultempl/beos.em: And here.
2384 * emultempl/elf32.em: And here.
2385 * emultempl/hppaelf.em: And here.
2386 * emultempl/pe.em: And here.
2388 2001-08-13 Richard Henderson <rth@redhat.com>
2390 * emultempl/needrelax.em: New file.
2391 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2392 * Makefile.am (eelf64_ia64.c): Depend on it.
2393 * Makefile.in: Rebuild.
2395 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2397 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2398 output_section is set non-NULL.
2400 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2401 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2402 needlessly create an output_section_statement. Treat a correctly
2403 named output_section_statement with NULL bfd_section as compatible.
2405 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2407 * emultempl/generic.em: Support EXTRA_EM_FILE.
2408 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2409 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2410 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2411 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2412 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2413 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2414 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2415 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2416 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2417 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2419 2001-08-12 Richard Henderson <rth@redhat.com>
2421 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2422 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2423 scripttempl/v850.sc: Keep .jcr data.
2425 2001-08-12 H.J. Lu <hjl@gnu.org>
2426 Andrew Haley <aph@cambridge.redhat.com>
2427 Nick Clifton <nickc@redhat.com>
2429 * ldgram.y (had_script): Change name to saved_script_handle.
2430 Change type to file handle.
2431 * ld.h (had_script): Rename and retype.
2432 * ldfile.c (ldfile_open_command_file): Save the file handle
2433 used in saved_script_handle.
2434 * lexsup.c (parse_args): Do not allow -c option to alter
2435 saved_script_handle.
2436 * ldmain.c (main): Print out the linker script used if
2437 --verbose is given. Check saved_script_handle to obtain the
2438 external linker script used, or if NULL, dump the builtin
2440 * ld.texinfo: Document that --verbose now dumps the linker
2441 script used, regardless of whether it was an internal or an
2444 2001-08-10 Andreas Jaeger <aj@suse.de>
2446 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2448 * configure: Regenerate.
2450 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2452 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2454 * scripttempl/elf.sc: Move non-text .dynamic section before
2455 .plt/.got/.sdata* group.
2456 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2457 (OTHER_SDATA_SECTIONS): Add.
2458 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2460 * emulparams/crislinux.sh: Likewise.
2461 * emulparams/elf32b4300.sh: Likewise.
2462 * emulparams/elf32bmip.sh: Likewise.
2463 * emulparams/elf32bmipn32.sh: Likewise.
2464 * emulparams/elf32bsmip.sh: Likewise.
2465 * emulparams/elf32btsmip.sh: Likewise.
2466 * emulparams/elf32ebmip.sh: Likewise.
2467 * emulparams/elf32elmip.sh: Likewise.
2468 * emulparams/elf32l4300.sh: Likewise.
2469 * emulparams/elf32lmip.sh: Likewise.
2470 * emulparams/elf32lsmip.sh: Likewise.
2471 * emulparams/elf32ltsmip.sh: Likewise.
2472 * emulparams/elf64bmip.sh: Likewise.
2473 * emulparams/elf64btsmip.sh: Likewise.
2474 * emulparams/elf64ltsmip.sh: Likewise.
2476 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2478 * genscripts.sh: Source the emulparams script before each output
2479 script is generated so that variables like `RELOCATING' may affect
2480 variables defined in the emulparams script.
2482 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2484 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2487 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2488 ie. iterate over wild_statement.section_list.
2489 (gld${EMULATION_NAME}_place_orphan): Likewise.
2491 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2493 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2494 .fini[0-4] sections used by _exit
2495 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2496 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2497 * scripttempl/elfm68hc11.sc: Likewise.
2499 2001-08-03 H.J. Lu <hjl@gnu.org>
2501 * emultempl/beos.em (init): Add the missing initialization.
2503 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2505 * ld.texinfo (Input Section Basics): Clarify ordering of output
2507 * ldlang.c (callback_t): Add wildcard_list param.
2508 (walk_wild_section): Remove "section" param. Rewrite for
2509 lang_wild_statement_type change. Remove unique_section_p test.
2510 (walk_wild_file): Remove "section" param.
2511 (walk_wild): Remove "section" and "file" params.
2512 (lang_gc_wild): Likewise.
2513 (wild): Likewise. Modify for lang_wild_statement_type change.
2514 (wild_sort): Likewise. Add "sec" param.
2515 (gc_section_callback): Likewise.
2516 (output_section_callback): Likewise. Do unique_section_p test.
2517 (map_input_to_output_sections): Modify call to wild.
2518 (lang_gc_sections_1): Likewise.
2519 (print_wild_statement): Modify for lang_wild_statement_type
2521 (lang_add_wild): Replace filename, filenames_sorted param with
2522 filespec. Replace section_name, sections_sorted,
2523 exclude_filename_list with section_list.
2524 * ldlang.h (lang_add_wild): Here too.
2525 (lang_wild_statement_type): Replace section_name, sections_sorted,
2526 and exclude_filename_list with section_list.
2527 * ldgram.y (current_file): Delete.
2528 (%union): Add wildcard_list.
2529 (file_NAME_list): Set type to wildcard_list. Build a linked list
2530 rather than calling lang_add_wild for each entry.
2531 (input_section_spec_no_keep): Call lang_add_wild here instead.
2532 * ld.h (struct wildcard_list): Declare.
2533 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2535 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2537 * ldmain.c (main): initialize link_info.pei386_auto_import
2538 * pe-dll.c: new tables for auto-export filtering
2539 (auto_export): change API, pass abfd for contextual filtering.
2540 Loop thru tables of excluded symbols instead of comparing
2543 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2545 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2546 static variable current_sec (static struct sec *). Add
2547 forward declaration for add_bfd_to_link.
2548 (process_def_file): Don't export undefined symbols. Do not
2549 export symbols starting with "_imp__". Call auto_export()
2551 (pe_walk_relocs_of_symbol): New function.
2552 (generate_reloc): add optional extra debugging
2553 (pe_dll_generate_def_file): eliminate extraneous initial blank
2555 (make_one): enlarge symtab to make room for __nm__ symbols
2556 (DATA auto-import support).
2557 (make_singleton_name_thunk): New function.
2558 (make_import_fixup_mark): New function.
2559 (make_import_fixup_entry): New function.
2560 (pe_create_import_fixup): New function.
2561 (add_bfd_to_link): Specify that 'name' argument is a CONST
2563 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2564 declare new functions pe_walk_relocs_of_symbol and
2565 pe_create_import_fixup.
2566 * emultempl/pe.em: add new options --enable-auto-import,
2567 --disable-auto-import, and --enable-extra-pe-debug.
2568 (make_import_fixup): New function.
2569 (pe_find_data_imports): New function.
2570 (pr_sym): New function.
2571 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2572 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2575 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2577 * ld.texinfo: add additional documentation for
2578 --export-all-symbols. Document --out-implib,
2579 --enable-auto-image-base, --disable-auto-image-base,
2580 --dll-search-prefix, --enable-auto-import, and
2581 --disable-auto-import.
2582 * ldint.texinfo: Add detailed documentation on auto-import
2585 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2587 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2590 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2592 * Makefile.am: Update dependencies with "make dep-am".
2593 * Makefile.in: Regenerate
2595 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2597 * ldcref.c (check_section_sym_xref): New function.
2598 (check_nocrossrefs): Call it.
2599 (check_nocrossref): Interate over h->refs here instead of..
2600 (check_refs): ..here. Pass in the symbol name, section, and bfd
2601 rather than hash_entry pointers.
2602 (struct check_refs_info): Keep symbol name rather than hash entry.
2604 (check_reloc_refs): Tweak for above changes in check_refs_info.
2605 Only report references to section syms when symname is NULL to
2606 prevent duplicate messages for the same reloc.
2608 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2610 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2611 available. Do not print NULL trees.
2612 (exp_print_token): Print unknown tokens with values > 126 as
2613 decimal values not ASCII characters.
2615 * ldlang.c (lang_leave_overlay): If a region is specified assign
2616 it to all sections inside the overlay unless they have been
2617 assigned to the own, non-default, memory region.
2619 * README: Add header for consistency with other README files.
2621 2001-07-14 H.J. Lu <hjl@gnu.org>
2623 * emultempl/elf32.em (output_prev_sec_find): Never return
2624 bfd_abs_section_ptr, bfd_com_section_ptr nor
2625 bfd_und_section_ptr.
2627 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2629 * Makefile.am (em32relf.c): Change dependency from generic.em to
2631 * Makefile.in: Regenerate.
2633 2001-07-14 matthew green <mrg@eterna.com.au>
2635 * configure.tgt (i386-*-netbsdelf*): New target.
2636 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2638 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2640 * emultempl/elf32.em (output_prev_sec_find): New.
2641 (place_orphan): Use it.
2643 2001-07-11 H.J. Lu <hjl@gnu.org>
2645 * ldmain.c (main): Fix typos in the last change.
2647 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2649 * ldmain.c (main): Disallow -F and -f without -shared.
2651 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2653 * emultempl/pe.em (after_open): Check for the output_bfd not
2654 having any coff_data structure allocated to it.
2656 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2658 * emultempl/elf32.em: Do not assuming that contents of the buffer
2659 returned from basename function will remain unchanged accross other
2662 2001-07-03 H.J. Lu <hjl@gnu.org>
2664 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2665 2001-07-03. It creates dynamic entries even for static binaries.
2667 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2669 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2670 (DYNAMIC): Use it to reserve few dynamic entries for
2673 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2675 * emulparams/hppa64linux.sh: New file.
2676 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2677 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2678 (ehppa64linux.c): Add rule to make it.
2680 * Makefile.in: Regenerate.
2682 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2684 * ld.texinfo (Options, -r): Mention restrictions when using
2685 different object formats.
2687 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2689 * ldlang.c (lang_check): Emit fatal error if relocatable link
2690 between different object flavours with relocations in input.
2692 2001-06-19 H.J. Lu <hjl@gnu.org>
2694 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2695 (--version-script): Mention the language support.
2697 2001-06-19 H.J. Lu <hjl@gnu.org>
2699 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2701 2001-06-18 H.J. Lu <hjl@gnu.org>
2703 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2704 (diststuff): Add $(MANS).
2705 * Makefile.in: Regenerated.
2709 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2711 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2712 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2713 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2714 * ld.h (args_type): Remove member export_dynamic. All users
2715 changed to use struct bfd_link_info member.
2717 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2718 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2719 * Makefile.in: Regenerate.
2721 2001-06-18 H.J. Lu <hjl@gnu.org>
2723 * ldlang.c (init_os): Add the newline to the einfo call.
2724 (lang_check): Likewise.
2725 (lang_do_version_exports_section): Likewise.
2727 2001-06-15 H.J. Lu <hjl@gnu.org>
2729 * lexsup.c (parse_args); Save optind to report unrecognized
2732 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2734 * ldlang.c (lang_check): Emit fatal error if relocatable link
2735 between different object flavours.
2737 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2738 Set new link_info member export_dynamic.
2739 * ldmain.c (main): Initialize new link_info member export_dynamic.
2741 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2743 * ldlang.c (walk_wild): Only call walk_wild_file if
2744 lookup_name returns something.
2745 (lookup_name): If load_symbols fails, return NULL.
2746 (load_symbols): Change to a boolean function.
2747 (open_input_bfds): If load_symbols fails then do not make the
2750 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2752 * ldlang.c (record_bfd_errors): Remove.
2754 * emultempl/aix.em: Fix copyright dates.
2756 2001-06-07 Andreas Jaeger <aj@suse.de>
2758 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2759 (TEXT_START_ADDR): Likewise.
2761 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2763 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2765 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2767 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2769 2001-05-31 H.J. Lu <hjl@gnu.org>
2771 * ldlang.c (open_input_bfds): Don't change the bfd error
2772 handler whilst loading symbols.
2774 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2776 * configure.tgt: Remove i370-mvs architecture, it is not currently
2779 2001-05-25 H.J. Lu <hjl@gnu.org>
2781 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2782 like emulparams/aixppc.sh.
2784 2001-05-25 H.J. Lu <hjl@gnu.org>
2786 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2787 setting of output_filename after bfd_scan_arch.
2788 * emultempl/pe.em: Likewise.
2790 2001-05-25 H.J. Lu <hjl@gnu.org>
2792 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2793 like emulparams/aixppc.sh.
2795 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2796 instead of ${srcdir}/emultempl/stringify.sed.
2798 2001-05-25 Timothy Wall <twall@oculustech.com>
2800 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2803 2001-05-25 Alan Modra <amodra@one.net.au>
2805 * configure.host: Replace linuxoldld with linux*oldld.
2806 * configure.tgt: Likewise.
2808 2001-05-24 H.J. Lu <hjl@gnu.org>
2810 * emultempl/stringify.sed: Removed again.
2812 2001-05-24 H.J. Lu <hjl@gnu.org>
2814 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2815 (gld${EMULATION_NAME}_before_parse): Initialize
2816 ldfile_output_architecture, ldfile_output_machine and
2817 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2818 * emultempl/beos.em: Likewise.
2819 * emultempl/elf32.em: Likewise.
2820 * emultempl/linux.em: Likewise.
2821 * emultempl/mipsecoff.em: Likewise.
2822 * emultempl/pe.em: Likewise.
2823 * emultempl/sunos.em: Likewise.
2825 2001-05-24 Tom Rix <trix@redhat.com>
2827 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2828 udate import file format.
2829 (change_symbol_mode) New, same
2830 (is_syscall) New, same
2831 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2832 * emulparams/aixppc64.sh : same
2833 * emulparams/aixrs6.sh : same
2834 * emulparams/ppcmacos.sh : same
2835 * emultempl/aix.em : use strtoull to parse options
2836 * Makefile.am : add eaixppc64 emulation for xcoff64
2837 * Makefile.in : same
2838 * configure.tgt : same
2840 * scripttempl/aix.sc : default text section offset to 0x10000000
2841 default data section offset to 0x20000000
2842 add .sv3264 and .sv64 pseudo sections
2843 loader and debug sections use the currect section offset.
2845 * emultempl/aix.em : Add xcoff64 support
2846 Add -binitfini support
2847 (gld${EMULATION_NAME}_before_parse) -binitfini
2848 (gld${EMULATION_NAME}_parse_args) same
2849 (gld${EMULATION_NAME}_before_allocation) format change for special
2852 * emulparams/aixppc64.sh : New file for xcoff64 support
2854 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2856 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2857 variable to avoid non-portable shell construct.
2859 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2861 * ldmain.c (get_emulation): Add -mips5 command line argument.
2863 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2865 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2866 (ELF_INTERPRETER_NAME): Define it.
2867 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2869 * configure.tgt (targ_emul, targ_extra_emuls)
2870 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2871 as primary, elf_i386 as extra.
2872 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2873 (eelf_i386_ldso.c): New rule.
2874 * Makefile.in: Rebuilt.
2876 2001-05-22 Nick Clifton <nickc@redhat.com>
2878 * lexsup.c (ld_options): Allow -I to be an alias for
2879 --dynamic-linker. This is for Solaris compatability.
2880 * ld.texinfo: Document that -I can be used.
2883 2001-05-16 Alan Modra <amodra@one.net.au>
2885 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2886 whether an input section is the first one assigned to an output
2888 Assorted formatting fixes.
2890 2001-05-14 DJ Delorie <dj@delorie.com>
2892 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2893 * Makefile.in: Ditto.
2895 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2897 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2898 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2900 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2902 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2904 * ldlang.c (lang_process): Call bfd_merge_sections.
2906 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2908 * ldgram.y: Fix typo.
2910 2001-05-03 H.J. Lu <hjl@gnu.org>
2912 * emultempl/elf32.em: Include "libiberty.h".
2913 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2914 basename of the bfd filename.
2915 (gld${EMULATION_NAME}_stat_needed): Likewise.
2916 (gld${EMULATION_NAME}_try_needed): Likewise.
2917 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2919 2001-05-02 H.J. Lu <hjl@gnu.org>
2921 * emultempl/pe.em: Include <ctype.h>.
2923 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2925 * emulparams/elf32openrisc.sh: New file.
2927 * Makefile.am: Add OpenRISC target.
2928 * Makefile.in: Regenerated.
2930 * configure.tgt: Add openrisc-*-* mapping.
2932 2001-05-02 Nick Clifton <nickc@redhat.com>
2934 * emultempl/aix.em: Replace buystring with xstrdup.
2935 * emultempl/beos.em: Replace buystring with xstrdup.
2937 2001-05-02 H.J. Lu <hjl@gnu.org>
2939 * ldfile.c: Include "libiberty.h".
2940 * ldlex.l: Likewise.
2942 * ldmisc.c (buystring): Removed.
2943 * ldmisc.h: Likewise.
2945 * ldfile.c: Replace buystring with xstrdup.
2946 * ldlang.c: Likewise.
2947 * ldlex.l: Likewise.
2948 * ldmain.c: Likewise.
2949 * ldmisc.c: Likewise.
2950 * lexsup.c: Likewise.
2951 * mpw-eppcmac.c: Likewise.
2953 2001-04-30 Andreas Jaeger <aj@suse.de>
2955 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2957 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2959 * ldlang.c (load_symbols): Give emulation a chance
2960 to process unrecognized file before fatal error is
2961 reported, not after.
2963 2001-04-27 Sean McNeil <sean@mcneil.com>
2965 * configure.tgt: Add arm-vxworks target.
2966 * scripttempl/armcoff.sc: Support .text or .data as a section name
2970 2001-04-13 J.T. Conklin <jtc@redback.com>
2972 * ld.texinfo: Document --fatal-warnings.
2975 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2976 warnings have been turned into errors.
2977 * lexsup.c (OPTION_WARN_FATAL): Define.
2978 (ld_options): Entry for --fatal-warnings.
2979 (parse_args): Handle OPTION_WARN_FATAL.
2980 * ld.h (ld_config_type): Add fatal_warnings field.
2982 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2984 * ldmain.c (main): Default to discard_sec_merge.
2985 * lexsup.c (OPTION_DISCARD_NONE): Define.
2986 (ld_options): Add --discard-none.
2987 (parse_args): Handle OPTION_DISCARD_NONE.
2988 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2989 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2990 all its input sections match.
2992 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2994 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2995 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2996 (eelf32ltsmip.c): New target.
2997 (eelf64btsmip.c): Likewise.
2998 (eelf64ltsmip.c): Likewise.
2999 * Makefile.in: Regenerated.
3001 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3003 (mips*-*-linux-gnu*): Likewise.
3005 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3007 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3009 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3012 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3014 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3015 correct value of __Stext here.
3016 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3019 * emulparams/crislinux.sh: Remove FIXME.
3021 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3023 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3024 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3026 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3028 * configure.tgt (cris-*-*): Change default emulation to criself.
3029 (cris-*-*aout*): New rule.
3031 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3033 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3034 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3036 2001-03-26 Andreas Jaeger <aj@suse.de>
3038 * ld.texinfo (Overview): Fix syntax in texi code.
3040 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3042 * ld.texinfo: Put @c man indications to generate the ld man page.
3043 When generating man, define all the variables. Define SEEALSO
3044 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3045 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3046 (ld.1): Generate from ld.texinfo.
3047 * Makefile.in: Regenerate.
3049 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3051 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3052 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3054 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3056 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3057 is an absolute path look only for this file and not along the path.
3059 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3061 * emultempl/elf32.em (OPTION_GROUP): New macro.
3062 Add new option Bgroup to longopts.
3063 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3064 (gld*_list_options): Add -Bgroup and -z defs.
3065 * ld.1: Document -Bgroup and -z defs.
3066 * ld.texinfo: Likewise.
3068 2001-03-07 Michael Meissner <meissner@redhat.com>
3070 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3071 with sections created by -fdata-sections.
3072 (.dynbss,.bss): Ditto.
3074 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3076 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3077 after_allocation_default, not gld..._before_allocation.
3079 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3081 * configure.in (BFD_VERSION): New.
3082 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3083 * configure: Regenerate.
3084 * Makefile.am: Run "make dep-am"
3085 * Makefile.in: Regenerate.
3087 2001-02-26 Timothy Wall <twall@cygnus.com>
3089 * emulparams/elf64_aix.sh: Add additional read-only sections;
3090 uncomment lines which are now required.
3092 2001-02-26 H.J. Lu <hjl@gnu.org>
3094 * ldlang.c (open_input_bfds): Set the bfd error handler so
3095 that problems can be caught whilst loading symbols.
3096 (record_bfd_errors): New function: Report BFD errors and mark
3097 the executable output as being invalid.
3099 2001-02-22 Timothy Wall <twall@cygnus.com>
3101 * configure.host: Add configuration for ia64-*-aix*.
3102 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3103 Add dependencies for eelf64_aix.c.
3104 * Makefile.in: Regenerate.
3105 * configure.tgt: Add ia64-*-aix* mapping.
3106 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3107 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3110 2001-02-20 H.J. Lu <hjl@gnu.org>
3112 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3113 false if we found the file.
3115 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3117 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3118 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3120 2001-02-18 lars brinkhoff <lars@nocrew.org>
3122 * Makefile.am: Add PDP-11 target.
3123 * configure.tgt: Likewise.
3124 * emulparams/pdp11.sh: New file.
3126 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3128 * configure.host: Add a generic FreeBSD configuration entry such that
3129 all [modern] FreeBSD systems on all platforms will look the same.
3131 2001-02-14 H.J. Lu <hjl@gnu.org>
3133 * configure.tgt: Remove mention of earmelf_linux26.
3135 2001-02-13 Richard Henderson <rth@redhat.com>
3137 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3139 2001-02-13 H.J. Lu <hjl@gnu.org>
3141 * ldexp.h (node_type): Add etree_provided.
3142 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3143 type to etree_provided if defined by PROVIDE. Allow updating
3145 (exp_print_tree): Handle etree_provided.
3146 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3149 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3151 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3152 .IA_64.unwind.* pattern to unwind table section and
3153 .IA_64.unwind_info* pattern to unwind info section.
3155 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3157 * Makefile.am: Add linux target for S/390.
3158 * Makefile.in: Likewise.
3159 * configure.host: Likewise.
3160 * configure.tgt: Likewise.
3161 * emulparams/elf64_s390.sh: New file.
3162 * emulparams/elf_s390.sh: New file.
3164 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3166 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3168 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3170 2001-02-06 Philip Blundell <philb@gnu.org>
3172 * Makefile.am: Remove mention of earmelf_linux26.
3173 * Makefile.in: Regenerate.
3175 2001-02-04 Philip Blundell <philb@gnu.org>
3177 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3178 * emulparams/armelf_linux26.sh: Delete.
3179 * configure.tgt: Remove mention of armelf_linux26 emulation.
3181 2001-02-01 Nick Clifton <nickc@redhat.com>
3183 * ld.1: Replace occurances of -oformat with --oformat.
3185 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3187 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3188 load_base is specified.
3190 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3192 * emultempl/elf32.em: Correct spelling in comments and listed
3195 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3197 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3198 default for the first section of a group of overlay sections.
3200 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3202 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3203 * Makefile.in: Regenerate.
3204 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3205 Check for null tool_dir.
3207 2001-01-16 Jim Wilson <wilson@redhat.com>
3209 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3210 and IA_64.unwind.info.
3212 2001-01-16 H.J. Lu <hjl@gnu.org>
3214 * ldlang.c (lang_check): Merge the private data only if the
3215 input file has contents.
3217 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3219 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3221 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3222 enabling search for libmilli. On a relocatable link, make .text
3224 (LDEMUL_AFTER_PARSE): Define.
3225 (hppaelf_finish): Correct spelling of relocatable in comments.
3227 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3228 rummage through the script for sections on the unique list.
3229 Correct length of strncmp for ".note".
3230 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3232 * ldlang.c (unique_section_list): New var.
3233 (unique_section_p): New function.
3234 (walk_wild_section): Don't match sections on unique_section_list.
3235 (lang_add_unique): New function.
3236 Correct spelling of relocatable in comments.
3238 * ldlang.h (struct unique_sections): Declare.
3239 (unique_section_list): Declare.
3240 (unique_section_p): Declare.
3241 (lang_add_unique): Declare.
3243 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3244 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3246 * ld.texinfo (--unique): Update.
3248 2001-01-13 Nick Clifton <nickc@redhat.com>
3250 * lexsup.c (parse_args): Remove spurious white space.
3252 2001-01-12 Nick Clifton <nickc@redhat.com>
3254 * lexsup.c (parse_args): Update copyright date.
3256 2001-01-12 Philip Blundell <pb@futuretv.com>
3258 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3260 2001-01-10 Kazu Hirata <kazu@hxi.com>
3262 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3263 * scripttempl/h8300h.sc: Fix formatting.
3264 * scripttempl/h8300s.sc: Likewise.
3265 * scripttempl/h8500.sc: Likewise.
3266 * scripttempl/h8500b.sc: Likewise.
3267 * scripttempl/h8500c.sc: Likewise.
3268 * scripttempl/h8500m.sc: Likewise.
3269 * scripttempl/h8500s.sc: Likewise.
3271 2000-01-07 David O'Brien <obrien@BSDi.com>
3273 * emultempl/elf32.em: Only perform Linux ld hints processing when
3276 2001-01-07 Philip Blundell <philb@gnu.org>
3278 * ld.texinfo (Bug Reporting): Update email address for reports.
3280 2000-12-31 Nick Clifton <nickc@redhat.com>
3282 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3283 options by checking for a return value of '?' not -1.
3285 2000-12-28 Nick Clifton <nickc@redhat.com>
3287 * lexsup.c (struct ld_option): Add new enum value:
3289 (ld_options[]): Change -omagic, -output and -oformat options
3290 to be EXACTLY_TWO_DASHES.
3291 (OUTPUT_COUNT): Use ARRAY_SIZE.
3292 (parse_args): Change parameter 'argc' to unsigned.
3293 Place EXACTLY_TWO_DASHES options into new really_longopts
3295 If getopt_long_only fails, try calling getopt_long using the
3296 really_longopts array.
3297 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3300 * ldlex.h: Fix prototype of parse_args.
3302 * ld.texinfo: Document that long options starting with 'o'
3303 must be preceeded by two dashes. Change example of a single
3304 dashed long option from -oformat to -trace-symbol.
3306 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3308 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3309 (longopts[]): New --no-default-excludes option.
3310 (gld_${EMULATION_NAME}_list_options): Document.
3311 (gld_${EMULATION_NAME}_parse_args): Handle.
3313 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3315 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3316 whitespace, it breaks the K&R C preprocessor.
3318 2000-12-11 DJ Delorie <dj@redhat.com>
3320 * ld.texinfo: Add notes about --whole-archive and gcc.
3322 2000-11-18 Fred Fish <fnf@be.com>
3324 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3325 (ld_options): Entry for --allow-shlib-undefined.
3326 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3327 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3329 * ld.texinfo: Document new command line switch.
3331 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3333 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3334 .fixup is actually read/write.
3335 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3336 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3337 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3339 2000-12-11 Jan Hubicka <jh@suse.cz>
3341 * NEWS: Add note about x86_64 architecture.
3343 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3345 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3346 Set DWARF2 sections to a VMA of zero.
3348 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3350 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3352 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3353 (sparc*-*-rtems*): Switched from a.out to ELF.
3355 2000-11-30 Jan Hubicka <jh@suse.cz>
3357 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3358 (eelf_x86_64.c): New.
3359 * Makefile.in: Regenerate.
3360 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3361 * emulparams/elf_x86_64.sh: New.
3363 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3365 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3366 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3368 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3369 merging non-a.out sections into CONSTRUCTING.
3371 2000-11-28 Nick Clifton <nickc@redhat.com>
3373 * ld.1 (COPYING): Mention that the GNU Free Documentation
3374 License is present in the sources, but not the output, and
3375 also available from the GNU website.
3376 (GNU Free Documentation License): Comment out this section.
3378 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3380 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3383 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3385 * ld.1: Remove old date so it does not give the impression the manpage
3388 2000-11-24 Nick Clifton <nickc@redhat.com>
3390 * configure.tgt (xscale-coff): Add target.
3391 (xscale-elf): Add target.
3393 2000-11-24 Fred Fish <fnf@be.com>
3395 * ldmain.c (main): Remove redundant init of config.make_executable
3398 2000-11-15 Richard Henderson <rth@redhat.com>
3400 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3402 2000-11-14 Kazu Hirata <kazu@hxi.com>
3404 * scripttempl/h8300.sc: Fix formatting.
3405 * scripttempl/h8300h.sc: Likewise.
3406 * scripttempl/h8300s.sc: Likewise.
3408 2000-11-14 Denis Chertykov <denisc@overta.ru>
3410 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3412 2000-11-09 Philip Blundell <pb@futuretv.com>
3414 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3415 around orphan sections whose names can be represented in C.
3417 2000-11-07 Jim Wilson <wilson@redhat.com>
3419 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3420 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3422 2000-11-06 Nick Clifton <nickc@redhat.com>
3424 * ld.texinfo: Add GNU Free Documentation License.
3425 * ldint.texinfo: Add GNU Free Documentation License.
3426 * ld.1: Add GNU Free Documentation License.
3428 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3430 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3431 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3433 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3434 Move 2000-11-02 Makefile.in changes to this file.
3435 * Makefile.in: Regenerate.
3437 2000-11-03 Nick Clifton <nickc@redhat.com>
3439 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3440 constructors and destructors.
3441 * scripttempl/h8300h.sc: Ditto.
3442 * scripttempl/h8300s.sc: Ditto.
3443 * scripttempl/h8500.sc: Ditto.
3444 * scripttempl/h8500b.sc: Ditto.
3445 * scripttempl/h8500c.sc: Ditto.
3446 * scripttempl/h8500m.sc: Ditto.
3447 * scripttempl/h8500s.sc: Ditto.
3448 * scripttempl/v850.sc: Ditto.
3449 * scripttempl/w65.sc: Ditto.
3450 * scripttempl/z8000.sc: Ditto.
3452 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3454 * Makefile.in (e_i386_chaos.c): New rule.
3455 (ALL_EMULATIONS): Added e_i386_chaos.o.
3456 * emulparams/elf_i386_chaos.sh: New file.
3457 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3459 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3461 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3462 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3463 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3464 library path suffix.
3465 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3467 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3469 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3470 for consecutive sections.
3472 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3474 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3476 * ld.texinfo: Added notes about this new option.
3478 2000-10-16 Nick Clifton <nickc@redhat.com>
3480 * emultempl/pe.em (_after_open): Add tests of return values from
3481 bfd functions. Emit appropriate error messages if necessary.
3483 2000-10-13 Nick Clifton <nickc@redhat.com>
3485 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3486 local variables - they are not used, but leave in the call to
3487 bfd_canonicalize_symtab.
3488 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3489 pe_dll_search_prefix.
3491 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3493 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3494 (longopts): New --dll-search-prefix option.
3495 (gld_${EMULATION_NAME}_list_options): Document.
3496 (gld_${EMULATION_NAME}_parse_args): Handle.
3497 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3498 dynamically, search for a dll named '<prefix><basename>.dll'
3499 in preference to 'lib<basename>.dll' if --dll-search-prefix
3502 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3504 * ldlang.c (section_already_linked): Set kept_section instead of
3507 2000-10-10 Kazu Hirata <kazu@hxi.com>
3509 * deffile.h: Fix formatting.
3510 * lexsup.c: Likewise.
3513 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3515 * pe-dll.c (make_one): Do not generate code thunk for DATA
3517 (process_def_file): deduce DATA flag for auto-export sumbols.
3519 2000-10-09 Kazu Hirata <kazu@hxi.com>
3521 * ld.h: Fix formatting.
3522 * ldcref.c: Likewise.
3523 * ldctor.h: Likewise.
3524 * ldemul.c: Likewise.
3525 * ldemul.h: Likewise.
3526 * ldexp.c: Likewise.
3527 * ldexp.h: Likewise.
3528 * ldfile.c: Likewise.
3529 * ldfile.h: Likewise.
3530 * ldlang.c: Likewise.
3531 * ldlang.h: Likewise.
3532 * ldmain.c: Likewise.
3533 * pe-dll.c: Likewise.
3535 * pe-dll.c: Revert some formatting fixes.
3537 2000-10-08 Kazu Hirata <kazu@hxi.com>
3539 * pe-dll.c: Fix formatting.
3541 2000-10-05 Kazu Hirata <kazu@hxi.com>
3543 * ldlang.c: Fix formatting.
3545 2000-10-03 DJ Delorie <dj@redhat.com>
3547 * pe-dll.c (fill_edata): initialize entire block
3548 (make_one): fill in correct section.
3550 2000-10-03 Kazu Hirata <kazu@hxi.com>
3552 * ldexp.c: Fix formatting.
3554 2000-10-02 DJ Delorie <dj@redhat.com>
3556 * emultempl/pe.em (gld_*_after_open): detect case where there two
3557 import libraries for same dll; rename one to ensure proper link
3560 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3562 (generate_edata): fix typo
3564 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3566 * scripttempl/crisaout.sc (ENTRY): Now __start.
3567 (.text): Add default setting for __start.
3568 Remove CONSTRUCTORS handling.
3569 (/DISCARD/): Add .gnu.warning.*.
3570 * emulparams/crislinux.sh (ENTRY): Now __start.
3571 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3572 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3573 (ENTRY): Now __start.
3574 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3575 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3577 2000-09-29 Kazu Hirata <kazu@hxi.com>
3579 * deffile.h: Fix formatting.
3581 * ldcref.c: Likewise.
3582 * ldctor.c: Likewise.
3583 * ldctor.h: Likewise.
3584 * ldemul.c: Likewise.
3585 * ldemul.h: Likewise.
3586 * ldexp.c: Likewise.
3587 * ldexp.h: Likewise.
3588 * ldfile.c: Likewise.
3589 * ldfile.h: Likewise.
3590 * ldlang.c: Likewise.
3591 * ldlang.h: Likewise.
3592 * lexsup.c: Likewise.
3594 * pe-dll.c: Likewise.
3596 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3598 * pe-dll.c (process_def_file): Uninitialized data wasn't
3599 exported with --export-all-symbols switch.
3601 2000-09-28 DJ Delorie <dj@redhat.com>
3603 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3604 noname work properly.
3606 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3608 * ld.texinfo (HPPA ELF32): New section.
3610 * emultempl/hppaelf.em (group_size): New.
3611 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3612 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3613 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3614 options to prevent abbreviations matching.
3615 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3616 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3618 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3620 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3621 on the m68*-*-elf target. Make it support COFF input objects.
3623 2000-09-21 Kazu Hirata <kazu@hxi.com>
3625 * ldmain.c: Fix formatting.
3626 * ldmisc.c: Likewise.
3627 * ldver.c: Likewise.
3628 * ldwrite.c: Likewise.
3630 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3632 * ldwrite.c (clone_section): Silence gcc warnings.
3634 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3636 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3637 out of memory failure.
3639 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3640 (clone_section): Handle out of memory failures. Rename var to
3641 avoid c++ reserved word.
3643 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3645 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3646 stub_name param to stub_sec_name.
3647 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3649 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3651 * emultempl/m68kelf.em: New file.
3652 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3653 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3654 * Makefile.in: Regenerate.
3656 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3658 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3661 2000-09-13 Nick Clifton <nickc@redhat.com>
3663 * ldmain.c (multiple_definition): Disable relaxation if
3664 multiple symbol definitions are encountered - otherwise the
3665 linker could abort with an assertion failure.
3667 2000-09-10 Nick Clifton <nickc@redhat.com>
3669 * mri.c: Fix formatting.
3671 2000-09-07 H.J. Lu <hjl@gnu.org>
3673 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3674 * configure: Rebuild.
3676 2000-09-07 H.J. Lu <hjl@gnu.org>
3678 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3679 * Makefile.in: Rebuild.
3681 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3683 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3684 broken list handling. Create __start_SECNAME and __stop_SECNAME
3685 when no place-holder. Add some comments. Test both SEC_CODE and
3686 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3687 Handle case where no output section statement created.
3689 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3691 * configure.tgt (sh-*-linux*): Added.
3692 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3693 * Makefile.in: Rebuilt.
3694 * emulparams/shelf_linux.sh: New file.
3695 * emulparams/shlelf_linux.sh: New file.
3697 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3699 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3700 try shuffling sections when the orphan happens to be the place
3701 holder. Keep count of unique section names generated so we speed
3702 the search for a new name.
3704 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3706 * configure: Rebuilt with new libtool.m4.
3708 2000-09-05 Nick Clifton <nickc@redhat.com>
3710 * Makefile.in: Regenerate.
3711 * aclocal.m4: Regenerate.
3712 * configure: Regenerate.
3713 * config.in: Regenerate.
3714 * po/ld.pot: Regenerate.
3716 * ldint.texinfo: Remove CVS revision marker - it foils local
3719 * emultempl/ticoff.em: Remove extraneous comma.
3721 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3723 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3724 to stub section flags.
3725 (hppa_for_each_input_file_wrapper): New.
3726 (hppa_lang_for_each_input_file): New.
3727 (lang_for_each_input_file): Define to call above.
3728 (multi_subspace): New.
3729 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3730 (PARSE_AND_LIST_PROLOGUE): Define.
3731 (PARSE_AND_LIST_LONGOPTS): Define.
3732 (PARSE_AND_LIST_OPTIONS): Define.
3733 (PARSE_AND_LIST_ARGS_CASES): Define.
3734 (hppaelf_finish): Call elf32_hppa_set_gp.
3735 (hppaelf_set_output_arch): Remove.
3736 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3738 * emulparams/hppalinux.sh (ELFSIZE): Define.
3740 (OTHER_READONLY_SECTIONS): Define.
3742 (GENERATE_SHLIB_SCRIPT): Define.
3744 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3745 to const throughout. Change `void *' to `PTR' throughout.
3746 (lang_memory_default): Function is local to file, add `static'.
3748 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3749 (ehppalinux.c): Likewise.
3750 (earmelf.c): Likewise.
3751 (earmelf_linux.c): Likewise.
3752 (earmelf_linux26.c): Likewise.
3753 * Makefile.in: Regenerate.
3755 * ld.h (ld_config_type): Add unique_orphan_sections.
3756 * lexsup.c (OPTION_UNIQUE): Define.
3757 (ld_options): Add "--unique".
3758 (parse_args): Handle it.
3759 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3760 search for an existing output section if unique_orphan_sections is
3761 set. Make use of bfd_get_unique_section_name rather than
3762 duplicating code here.
3763 * ld.texinfo: Describe --unique.
3765 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3766 optional arg to split-by-file.
3767 (parse_args): Handle them.
3768 * ld.texinfo: Update description of these options.
3769 * ldwrite.c (clone_section): Pass in the section name. Replace
3770 local code with bfd_get_unique_section_name.
3771 (split_sections): Tidy code and comments. Use a list traversal
3772 more appropriate to the list construction. Handle cooked section
3773 sizes. Split when split_by_reloc reached rather than exceeded.
3774 Track section size and split when split_by_file reached. Fix
3775 link_order_tail (even though it's not used).
3776 (ldwrite): Modify condition for calling split_sections to suit
3777 changed split_by_reloc and split_by_file.
3778 * ldmain.c (main): Init config.split_by_reloc and
3779 config.split_by_file to -1.
3780 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3781 Change split_by_file to bfd_size_type.
3783 2000-09-02 Nick Clifton <nickc@redhat.com>
3785 * configure.in: Increase version number to 2.10.91.
3786 * NEWS: Mention new ability to support removal of duplicate DWARF2
3788 * configure: Regenerate.
3789 * aclocal.m4: Regenerate.
3790 * config.in: Regenerate.
3792 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3794 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3796 * scripttempl/elf32avr.sc: Ditto.
3797 * scripttempl/elfd10v.sc: Ditto.
3798 * scripttempl/elfd30v.sc: Ditto.
3799 * scripttempl/elfi370.sc: Ditto.
3800 * scripttempl/elfm68hc11.sc: Ditto.
3801 * scripttempl/elfm68hc12.sc: Ditto.
3802 * scripttempl/elfi386beos.sc: Ditto.
3803 * scripttempl/v850.sc: Ditto.
3805 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3807 * acinclude.m4: Include libtool and gettext macros from the
3809 * aclocal.m4, configure: Rebuilt.
3811 2000-08-25 Nick Clifton <nickc@redhat.com>
3813 * ldlang.c (open_output): When choosing the target for a
3814 particular endianness, do nothing if the target is not
3817 2000-08-25 H.J. Lu <hjl@gnu.org>
3819 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3820 check -rpath nor LD_RUN_PATH for cross link.
3821 * ld.texinfo: Document the change.
3823 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3825 * NEWS: Mention support for CRIS.
3827 2000-08-23 H.J. Lu <hjl@gnu.org>
3829 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3830 the current runpath list from bfd_elf_get_runpath_list ()
3833 2000-08-22 H.J. Lu <hjl@gnu.org>
3835 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3836 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3837 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3838 trace_file_tries is non-zero.
3839 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3840 if trace_file_tries is non-zero.
3842 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3845 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3847 * NEWS: Mention i860 support.
3849 2000-08-14 Andreas Schwab <schwab@suse.de>
3851 * scripttempl/elf.sc: Fix last change to use correct comment
3854 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3856 * scripttempl/elf.sc: Add a comment giving the correspondence
3857 between sections, per-datum sections, and linkonce sections. Make
3858 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3861 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3863 * emulparams/elf32_i860.sh: New file.
3864 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3865 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3866 (eelf32_i860.c): New rule.
3867 * Makefile.in: Regenerate.
3869 2000-08-10 Nick Clifton <nickc@cygnus.com>
3871 * emulparams/mipspe.sh (ENTRY): Add definition.
3873 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3875 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3878 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3880 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3881 the final size of .bss section.
3882 * scripttempl/elfm68hc12.sc: Likewise.
3884 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3886 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3887 gld${EMULATION_NAME}_parse_args for consistency. Combine
3888 lastoptind and prevoptind vars, and keep track of last optind.
3889 (gld_${EMULATION_NAME}_list_options): Rename to
3890 gld${EMULATION_NAME}_list_options.
3892 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3894 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3895 (i586-sco-sysv5uw7.1.0).
3897 2000-07-27 H.J. Lu <hjl@gnu.org>
3899 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3900 (PARSE_AND_LIST_PROLOGUE): New.
3901 (PARSE_AND_LIST_LONGOPTS): Likewise.
3902 (PARSE_AND_LIST_OPTIONS): Likewise.
3903 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3904 (PARSE_AND_LIST_EPILOGUE): Likewise.
3906 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3908 * emultempl/armelf.em: Elide functions common to elf32.em,
3909 ie. most of the file.
3910 (arm_elf_after_open): New. Do arm specific things then call
3911 gld${EMULATION_NAME}_after_open.
3912 (arm_elf_before_allocation): New. Call
3913 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3914 (PARSE_AND_LIST_PROLOGUE): Define.
3915 (PARSE_AND_LIST_SHORTOPTS): Define.
3916 (PARSE_AND_LIST_LONGOPTS): Define.
3917 (PARSE_AND_LIST_OPTIONS): Define.
3918 (PARSE_AND_LIST_ARGS_CASES): Define.
3919 (LDEMUL_AFTER_OPEN): Define.
3920 (LDEMUL_BEFORE_ALLOCATION): Define.
3921 (LDEMUL_BEFORE_PARSE): Define.
3922 (LDEMUL_FINISH): Define.
3924 * emultempl/hppaelf.em: Similarly zap most of this file.
3925 (hppaelf_add_stub_section): Prototype.
3926 (hppaelf_layaout_sections_again): Prototype.
3927 (hook_in_stub): Prototype.
3928 (LDEMUL_SET_OUTPUT_ARCH): Define.
3929 (LDEMUL_FINISH): Define.
3930 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3932 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3933 (EXTRA_EM_FILE): New.
3934 * emulparams/armelf_linux.sh: Likewise.
3935 * emulparams/armelf_linux26.sh: Likewise.
3936 * emulparams/hppalinux.sh: Likewise.
3937 * emulparams/hppaelf.sh: Likewise.
3940 * emultempl/elf32.em: Fix formatting.
3941 (EXTRA_EM_FILE): Source it.
3942 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3943 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3944 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3945 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3946 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3947 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3948 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3949 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3950 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3951 allow functions in this file to be overridden.
3952 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3954 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3956 * emultempl/elf32.em: Reorganize file.
3958 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3960 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3961 specific option to fit 64-bit executable in the lower
3962 31-bit address range. This is done by changing start
3963 address of .interp (the very first section of executable)
3964 and then setting EF_ALPHA_32BIT elf header flag.
3966 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3968 * emultempl/m68kcoff.em: New file.
3969 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3970 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3972 * Makefile.in: Regenerate.
3974 2000-07-20 H.J. Lu <hjl@gnu.org>
3976 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3977 and "disable-new-dtags" to stop getopt from treating -d/-e as
3978 abbreviations for these options.
3980 2000-07-20 H.J. Lu <hjl@gnu.org>
3982 * ld.texinfo: Add documentation for --disable-new-dtags and
3985 * ldmain.c (main): Initialize link_info.new_dtags to false.
3987 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3988 --disable-new-dtags and --enable-new-dtags.
3989 (gld_${EMULATION_NAME}_list_options): Likewise.
3991 2000-07-05 Kenneth Block <krblock@computer.org>
3993 * lexsup.c: Add optional style to demangle switch
3994 * ld.texinfo: Document optional style to demangle switch.
3996 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3998 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4000 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4001 Regenerate dependencies.
4002 * Makefile.in: Rebuild.
4003 * configure.tgt (cris-*-*): New target.
4004 * emulparams/crisaout.sh, emulparams/criself.sh,
4005 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4006 * po/POTFILES.in, po/ld.pot: Regenerate.
4008 2000-07-20 H.J. Lu <hjl@gnu.org>
4010 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4011 Print out ignored -z options.
4013 2000-07-19 H.J. Lu <hjl@gnu.org>
4015 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4016 (PARSE_AND_LIST_PROLOGUE): New.
4017 (PARSE_AND_LIST_LONGOPTS): Likewise.
4018 (PARSE_AND_LIST_OPTIONS): Likewise.
4019 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4021 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4023 * lexsup.c (ld_options): Comment out 'z'.
4024 (parse_args): Likewise.
4026 * emultempl/elf32.em: Include "elf/common.h".
4027 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4029 (gld_${EMULATION_NAME}_list_options): Likewise.
4031 * ld.texinfo: Add documentation for the recognized -z options.
4033 2000-07-19 H.J. Lu <hjl@gnu.org>
4035 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4036 bfd_elf_set_dt_needed_soname ().
4038 2000-07-18 DJ Delorie <dj@cygnus.com>
4040 * pe-dll.c (pe_dll_id_target): check object target name also
4042 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4044 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4045 ${INIT_END} if relocating.
4046 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4048 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4050 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4051 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4052 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4053 errors introduced by the old dynamic lib search order.
4055 2000-07-17 DJ Delorie <dj@cygnus.com>
4057 * pe-dll.c (process_def_file): auto-export data items also
4058 (pe_process_import_defs): also see if _imp_ form needed
4060 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4062 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4063 for dll import libraries
4065 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4067 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4068 gcc 2.95.2 and later.
4070 2000-07-11 Kazu Hirata <kazu@hxi.com>
4072 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4075 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4077 * ldemul.h (struct lang_input_statement_struct): Remove forward
4079 (struct search_dirs): Likewise.
4080 * ldfile.h (struct lang_input_statement_struct): Likewise.
4081 Protect file from multiple inclusion.
4082 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4083 declaration from macro to file scope.
4085 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4086 * ldgram.y: Likewise here.
4087 * ldlang.c: And here.
4088 * ldmain.c: And here.
4089 * mpw-elfmips.c: And here.
4090 * mpw-eppcmac.c: And here.
4091 * emultempl/aix.em: And here.
4092 * emultempl/armcoff.em: And here.
4093 * emultempl/armelf.em: And here.
4094 * emultempl/armelf_oabi.em: And here.
4095 * emultempl/beos.em: And here.
4096 * emultempl/elf32.em: And here.
4097 * emultempl/hppaelf.em: And here.
4098 * emultempl/linux.em: And here.
4099 * emultempl/lnk960.em: And here.
4100 * emultempl/pe.em: And here.
4101 * emultempl/sunos.em: And here.
4102 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4103 * mpw-idtmips.c: Ditto.
4104 * emultempl/generic.em: Ditto.
4105 * emultempl/gld960.em: Ditto.
4106 * emultempl/gld960c.em: Ditto.
4107 * emultempl/mipsecoff.em: Ditto.
4108 * emultempl/ticoff.em: Ditto.
4109 * emultempl/vanilla.em: Ditto.
4111 * pe-dll.c: Include ldfile.h
4112 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4114 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4115 arguments to bfd_elf32_size_dynamic_sections call.
4116 (gldelf32ebmip_place_orphan): Add missing arguments to
4117 lang_leave_output_section_statement call.
4119 2000-07-10 H.J. Lu <hjl@gnu.org>
4121 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4123 (strhash): Likewise.
4124 (compute_dll_image_base): Likewise.
4125 (pe_undef_found_sym): Likewise.
4126 (pe_undef_cdecl_match): Likewise.
4127 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4128 argument "arch" with ATTRIBUTE_UNUSED.
4130 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4132 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4134 From Ryan Bradetich <rbradetich@uswest.net>
4135 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4137 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4139 Changes to create multiple linker stubs, positioned immediately
4140 before the section where they are required.
4141 * emultempl/hppaelf.em: Include elf32-hppa.h.
4142 (stub_sec, file_chain): Delete.
4143 (hppaelf_create_output_section_statements): Don't make a stub
4145 (hook_stub_info): New struct.
4146 (hook_in_stub): New function.
4147 (hppaelf_add_stub_section): New function.
4148 (hppaelf_finish): Do nothing for relocateable links. Modify the
4149 call to elf32_hppa_size_stubs. Move code for updating section
4151 (hppaelf_layaout_sections_again): ..to here, a new function.
4153 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4154 broken list handling. Pass in a pointer to the list.
4155 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4157 (hppaelf_before_parse): Prototype.
4158 (hppaelf_set_output_arch): Prototype.
4159 (hppaelf_create_output_section_statements): Prototype.
4160 (hppaelf_delete_padding_statements): Prototype.
4161 (hppaelf_finish): Prototype.
4164 * emultempl/hppaelf.em: Include ctype.h.
4165 (struct orphan_save): New.
4166 (gld${EMULATION_NAME}_place_orphan): New.
4167 (output_rel_find): New.
4168 (hppaelf_get_script): Update from elf32.em.
4169 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4170 Change emulation_name field to "${EMULATION_NAME}". Add
4171 gld${EMULATION_NAME}_place_orphan.
4173 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4174 ehppalinux.o, sort it. Regenerate dependencies.
4175 (ehppalinux.c): Depend on hppaelf.em
4176 * Makefile.in: Regenerate.
4178 * configure.tgt: targ_emul=hppalinux for hppa*linux
4180 * emulparams/hppalinux.sh: New.
4181 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4183 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4185 * lexsup.c (parse_args): Copy section name.
4187 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4189 * emultempl/pe.em: institute the following search order for
4190 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4191 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4192 static lib (libfoo.a) if none of the above are found.
4194 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4196 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4197 (longopts): New --{enable,disable}-auto-image-base options.
4198 (gld_${EMULATION_NAME}_list_options): Document.
4199 (gld_${EMULATION_NAME}_parse): Handle.
4200 (strhash): New static function.
4201 (compute_dll_image_base): New static function.
4202 (gld_${EMULATION_NAME}_set_symbols): Use.
4204 2000-07-05 DJ Delorie <dj@redhat.com>
4208 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4210 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4211 * emulparams/elf32btsmip.sh: New file.
4212 * Makefile.am: Add traditional mips target.
4213 * Makefile.in: Rebuild.
4215 2000-07-01 H.J. Lu <hjl@gnu.org>
4217 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4218 automake to use YLWRAP.
4219 * Makefile.in: Rebuild.
4221 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4223 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4224 (CLEANFILES): Add DEPA.
4225 * Makefile.in: Regenerate.
4227 2000-06-30 Timothy Wall <twall@ppc>
4229 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4230 the page in the upper octet of the address.
4232 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4234 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4236 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4238 * NEWS: arm-elf does --gc-sections too.
4240 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4242 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4244 * Makefile.in: Regenerate.
4246 2000-06-21 H.J. Lu <hjl@gnu.org>
4248 * Makefile.am: Rebuild dependency.
4249 * Makefile.in: Rebuild.
4251 2000-06-20 H.J. Lu <hjl@gnu.org>
4253 * Makefile.am: Rebuild dependency.
4254 * Makefile.in: Rebuild.
4256 2000-06-20 Timothy Wall <twall@cygnus.com>
4258 * scripttempl/tic54xcoff.sc: New.
4259 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4260 * gen-doc.texi: Add flag for TI COFF.
4261 * ld.texinfo: Add documentation for TI COFF handling switches.
4262 * emultempl/ticoff.em: New. TI COFF handling.
4263 * configure.tgt: Add tic54x target.
4264 * Makefile.am: Add tic54x target.
4265 * Makefile.in: Ditto.
4267 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4269 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4270 checking for backslashes.
4272 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4274 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4276 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4278 * NEWS: Update list of targets supporting --gc-sections.
4280 * scripttempl/elf.sc: KEEP .eh_frame contents.
4281 * scripttempl/elfd30v.sc: Same here.
4283 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4285 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4287 * Makefile.in: Rebuild.
4288 * configure.tgt: Recognize m68hc12 and m68hc11.
4289 * scripttempl/elfm68hc12.sc: New file.
4290 * emulparams/m68hc12elfb: New emulation.
4291 * emulparams/m68hc12elf: New emulation.
4292 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4293 (includes a memory.x script to define the ROM and RAM banks).
4294 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4295 New configuration files for support of Motorola 68hc11
4297 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4299 * ldmain.c (main): Only change SEC_READONLY for final link.
4301 2000-06-13 H.J. Lu <hjl@gnu.org>
4303 * configure: Regenerate.
4305 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4307 * configure.in (VERSION): Update to show this is the CVS mainline.
4309 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4311 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4312 input objects to be ECOFF.
4313 (check_sections): einfo takes %B, not %P, to print a BFD name.
4315 2000-06-05 Michael Matz <matz@ifh.de>
4317 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4320 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4322 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4324 * emulparams/avr1200.sh (STACK): Define as 0.
4325 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4326 * emulparams/avr4433.sh (STACK): Likewise.
4327 * emulparams/avr44x4.sh (STACK): Likewise.
4328 * emulparams/avr85xx.sh (STACK): Likewise.
4329 * emulparams/avrmega103.sh (STACK): Likewise.
4330 * emulparams/avrmega161.sh (STACK): Likewise.
4331 * emulparams/avrmega603.sh (STACK): Likewise.
4332 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4333 (__stack): Define from ${STACK} for main().
4335 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4337 * Makefile.am: Update dependencies with "make dep-am"
4338 * Makefile.in: Regenerate.
4340 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4342 * ldmain.c: Include filenames.h.
4343 (set_scripts_dir): Support backslashes in program name.
4345 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4347 * ldmain.c (main): When deciding if ".text" section should be
4348 read-only, don't forget to reset SEC_READONLY because it
4349 could be already set.
4351 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4353 * ld.1: Add documentation for new command line option:
4354 --section-start <sectionname>=<sectionorg>
4355 This is a generic version of -Ttext etc. which accepts
4356 any section name as a parameter instead of just text/data/
4358 * ld.texinfo: More docs.
4360 * lexsup.c: (parse_args): Recognize new command line option.
4361 (ld_options): Add new option.
4363 2000-05-18 H.J. Lu <hjl@gnu.org>
4365 * lexsup.c (parse_args): `i' == `r', not `q'.
4367 2000-05-18 Jeffrey A Law (law@cygnus.com)
4369 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4371 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4372 Rick Gorton <gorton@scrugs.lkg.dec.com>
4374 Add support for '-q' == '--emit-relocs' switch.
4375 * ldmain.c (main): Default to false.
4376 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4377 * NEWS: Describe the emitrelocations switch.
4378 * ld.texinfo: Describe the emitrelocations switch.
4380 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4382 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4383 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4384 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4387 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4389 * lexsup.c (parse_args): Update the year in the copyright notice.
4391 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4393 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4394 Replace defines with those from intl/libgettext.h to quieten gcc
4397 2000-05-10 H.J. Lu <hjl@gnu.org>
4399 * ldlang.c (open_input_bfds): Don't load the same file within
4400 a group again if the whole archive has been loaded already.
4402 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4404 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4405 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4408 2000-05-01 Jim Wilson <wilson@cygnus.com>
4410 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4412 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4413 host "ia64-*-linux-gnu*".
4415 2000-04-29 Andreas Jaeger <aj@suse.de>
4417 * ld.h: Correctly check GCC version.
4419 2000-04-25 Jeffrey A Law (law@cygnus.com)
4421 * Makefile.am: Add PA64 support. Add missing dependencies for
4423 * Makefile.in: Rebuilt.
4424 * configure.tgt: Add PA64 support (currently disabled).
4426 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4428 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4429 (output_rel_find): New function.
4430 (hold_section, hold_use): Delete.
4431 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4432 hold_interp): Make local to place_orphan.
4433 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4434 rather than place_section to find possible previous use of orphan.
4435 Similarly find the place-holder output sections. Use returned
4436 value from lang_enter_output_section_statement rather than calling
4437 lang_output_section_statement_lookup.
4438 * emultempl/armelf.em: Same here.
4439 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4441 * ldlang.c (lang_enter_output_section_statement): Return output
4443 * ldlang.h (lang_enter_output_section_statement): Change
4446 * ldlang.h (lang_output_section_statement): Export it.
4447 * ldlang.c (lang_output_section_statement): Ditto.
4449 2000-04-24 Nick Clifton <nickc@cygnus.com>
4451 * ld.texinfo (Output Section Data): Add note that section data
4452 commands cannot appear outside of section directives.
4454 2000-04-2 Matthew Green <mrg@cygnus.com>
4456 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4458 2000-04-21 Richard Henderson <rth@cygnus.com>
4459 David Mosberger <davidm@hpl.hp.com>
4461 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4462 (eelf64_ia64.c): New rule.
4463 * Makefile.in: Rebuild.
4464 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4465 * emulparams/elf64_ia64.sh: New file.
4467 2000-04-21 Richard Henderson <rth@cygnus.com>
4469 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4471 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4473 * dep-in.sed: Match space at start of file name, not at end.
4475 2000-04-18 H.J. Lu <hjl@gnu.org>
4477 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4478 lang_leave_output_section_statement () after calling
4479 lang_enter_output_section_statement ().
4480 * emultempl/armelf.em: Likewise.
4482 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4484 * emultempl/elf32.em (struct orphan_save): Add section field.
4485 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4486 better order, and place first orphan section as we did before the
4487 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4488 Don't call make_bfd_section here, let wild_doit do the job for us.
4489 Don't build a statement list when we'll only throw it away.
4490 * emultempl/armelf.em: Ditto.
4491 * emultempl/pe.em: Similarly.
4493 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4495 * scripttempl/elfppc.sc: Remove.
4496 * emulparams/elf32ppc.sh: Use elf.sc.
4497 * emulparams/elf32lppc.sh: Use elf.sc.
4498 * emulparams/elf32ppclinux.sh: Use elf.sc.
4499 * emulparams/elf32ppcsim.sh: New file.
4500 * emulparams/elf32lppcsim.sh: New file.
4501 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4502 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4503 * Makefile.in: Regenerate.
4504 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4506 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4508 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4509 ~SEC_ALLOC sections too. Init start address of debug sections.
4510 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4511 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4512 Also set all relocateable section start addresses.
4514 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4516 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4517 Add new BSS_PLT variable for when .plt need not be contained in
4518 the file. Move _etext so that it is also after .fini, and provide
4519 both etext and _etext with a leading underscore. Mark the start
4522 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4524 * emultempl/elf32.em (struct orphan_save): New.
4525 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4526 hold_interp): Make them struct orphan_save.
4527 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4528 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4529 the end of the relevant section list. Also add associated section
4530 statements to the end of any previous orphan statements.
4531 * emultempl/armelf.em: Similarly.
4532 * emultempl/pe.em: Similarly.
4534 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4536 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4538 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4540 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4541 --enable-build-warnings option.
4542 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4543 * Makefile.in, configure: Re-generate.
4545 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4547 * po/ld.pot: Regenerate.
4549 * lexsup.c (help): Restore translated part of bug string.
4551 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4552 (DEP): Quote when passing vars to sub-make. Add warning message
4554 (DEP1): Rewrite for "gcc -MM".
4555 (CLEANFILES): Add DEP2.
4556 Update dependencies.
4557 * Makefile.in: Regenerate.
4559 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4561 * ld.h: #include "bin-bugs.h"
4562 * lexsup.c (help): Use REPORT_BUGS_TO.
4564 2000-03-27 Denis Chertykov <denisc@overta.ru>
4566 * configure.tgt (avr-*-*): New target support.
4567 * Makefile.am: Likewise.
4568 * scripttempl/elf32avr.sc: New script file.
4569 * emulparams/avr1200.sh: New file.
4570 * emulparams/avr23xx.sh: New file.
4571 * emulparams/avr4433.sh New file.
4572 * emulparams/avr44x4.sh New file.
4573 * emulparams/avr85xx.sh New file.
4574 * emulparams/avrmega103.sh New file.
4575 * emulparams/avrmega161.sh New file.
4576 * emulparams/avrmega603.sh New file.
4577 * Makefile.in: Regenerate.
4579 2000-03-09 Andreas Jaeger <aj@suse.de>
4581 * Makefile.am (check-DEJAGNU): Also unset LANG.
4582 * Makefile.in: Rebuild.
4584 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4586 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4589 2000-03-02 H.J. Lu <hjl@gnu.org>
4591 * emulparams/elf32mcore.sh: Include "getopt.h".
4593 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4595 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4597 2000-03-01 H.J. Lu <hjl@gnu.org>
4599 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4600 * emulparams/shpe.sh: Likewise.
4602 2000-03-01 Nick Clifton <nickc@cygnus.com>
4604 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4605 to unused parameters.
4607 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4608 functions only used by DLL code.
4609 (_place_orphan): Initialise 'dollar'.
4611 2000-03-01 H.J. Lu <hjl@gnu.org>
4613 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4614 indicate if the undefined symbol is a fatal error or not.
4615 Don't delete the output file if "fatal" is false.
4617 2000-02-29 H.J. Lu <hjl@gnu.org>
4619 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4620 Set LC_COLLATE and LC_ALL to null and export them. It is for
4621 sort which expects the C locale.
4622 Add $(LIBS) to all $(HOSTING_LIBS).
4623 * Makefile.in: Rebuild.
4625 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4627 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4628 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4629 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4630 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4631 find_potential_libraries.
4633 2000-02-28 Jim Blandy <jimb@redhat.com>
4635 * ldgram.y (exclude_name_list): Don't require a comma to separate
4636 list entries; the lexer considers commas to be valid part of a
4637 filename, so in something like `foo, bar' the comma is considered
4638 part of the first filename, `foo,'.
4639 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4641 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4643 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4644 host "i[3456]86-*-freebsdelf*".
4646 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4648 * scripttempl/i386go32.sc: Move misplaced semicolons.
4650 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4652 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4653 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4654 (eelf64hppa.c, ehppaelf.c): Remove targets.
4655 * Makefile.in: Rebuild.
4657 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4659 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4660 GNU/Linux/sparc, but keep the default as 32.
4662 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4663 it default if sparcv9 or sparc64.
4665 2000-02-24 Nick Clifton <nickc@cygnus.com>
4667 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4668 * Makefile.in: Regenerate.
4669 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4671 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4672 find_potential_libraries.
4673 * ldemul.c (ldemul_find_potential_libraries): New function.
4675 * ldfile.c (ldfile_open_file_search): Allow function to be
4677 (ldfile_open_file): Call ldemul_find_potential_libraries.
4678 * ldfile.h: Add prototype for ldfile_open_file_search.
4680 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4682 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4683 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4685 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4686 (gld_X_find_potential_libraries): New function. Search for
4687 libraries called "*.lib".
4689 * scripttempl/pe.sc: Add .pdata section.
4691 2000-02-23 Richard Henderson <rth@cygnus.com>
4693 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4694 Add and use memory regions.
4696 2000-02-23 Linas Vepstas (linas@linas.org)
4698 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4700 * Makefile.am: Add support for Linux/IBM 370.
4701 * configure.tgt: Likewise.
4703 * Makefile.in: Regenerate.
4705 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4707 * ldlang.c (print_input_section, print_data_statement,
4708 print_reloc_statement, print_padding_statement, insert_pad,
4709 size_input_section, lang_check_section_addresses,
4710 lang_size_sections, lang_do_assignments, lang_set_startof,
4711 lang_one_common): Change `opb' to unsigned.
4712 (lang_do_assignments): Also change `size' to unsigned.
4714 2000-02-16 Richard Henderson <rth@cygnus.com>
4716 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4718 2000-02-16 Timothy Wall <twall@cygnus.com>
4720 * mri.c (mri_draw_tree): Add default LMA region argument to call
4721 to lang_leave_output_section_statement.
4722 * ldlang.h: Update prototypes with LMA region arguments.
4723 * ldlang.c (lang_size_sections): Encapsulate region bounds
4724 checking in os_check_region call.
4725 (os_check_region): New function.
4726 (lang_output_section_statement_lookup): Initialize lma_region.
4727 (lang_leave_output_section_statement): Add LMA region argument.
4728 (lang_leave_overlay): Ditto.
4729 * ldgram.y: Handle LMA region syntax.
4730 * ld.texinfo (Output Section Description): Describe LMA region usage.
4731 * emultempl/armelf.em (gld$place_orphan): Add default value for
4732 lma region in call to lang_leave_output_section_statement.
4733 * emultempl/elf32.em (gld$place_orphan): Add default value for
4734 lma region in call to lang_leave_output_section_statement.
4735 * emultempl/pe.em (gld$place_orphan): Add default value for
4736 lma region in call to lang_leave_output_section_statement.
4739 2000-02-04 Timothy Wall <twall@redhat.com>
4741 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4742 octets when calculating section end addresses.
4744 2000-02-04 Timothy Wall <twall@redhat.com>
4746 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4748 2000-02-03 Timothy Wall <twall@redhat.com>
4750 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4752 * ldlang.c (print_input_section, print_data_statement,
4753 print_reloc_statement, print_padding_statement): Print target
4754 address values and section sizes as bytes, not octets.
4755 (insert_pad) Calculate padding size in octets, and adjust "dot"
4757 (size_input_section) Always adjust "dot" by bytes, not octets.
4758 (lang_check_section_addresses, lang_do_assignments) Adjust
4759 "dot" by bytes, not octets. Use the larger of the directive size
4760 or octets_per_byte for the number of octets actually allocated in
4762 (lang_set_startof) Make sure STARTOF returns a target address.
4763 (lang_one_common) Record size changes in octets.
4764 (lang_abs_symbol_at_end_of) Section end symbol's value is
4765 recorded in target bytes.
4766 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4767 to be clear about behavior when an octet is smaller than one byte.
4769 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4771 * ldcref.c (output_cref): Don't pass message strings to printf
4775 * ldmisc.c (vfinfo): Same here.
4778 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4780 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4781 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4782 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4783 Add missing NULL initialisers, and comments.
4785 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4787 2000-01-21 Nick Clifton <nickc@cygnus.com>
4789 * ldlang.c (lang_size_sections): Fix typo in comment.
4791 2000-01-18 H.J. Lu <hjl@gnu.org>
4793 * ldlang.c (lang_size_sections): Also update the current
4794 address of a region if the SEC_NEVER_LOAD bit is not set.
4796 2000-01-10 Philip Blundell <pb@futuretv.com>
4798 * configure.tgt (arm*-*-conix*): New target.
4800 2000-01-07 Nick Clifton <nickc@cygnus.com>
4802 * ld.texinfo (Options): Remind users to preceed linker command
4803 line switches with -Wl, (or whatever is appropriate) if it is
4804 being invoked by a comnpiler driver program.
4805 Fix description of the behaviour of the -n command line switch.
4807 2000-01-05 Catherine Moore <clm@cygnus.com>
4809 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4811 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4812 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4813 (exclude_name_list): New.
4814 ldlang.c (walk_wild_section): Support list of excluded files.
4815 (print_wild_statement): Likewise.
4816 (lang_add_wild): Likewise.
4817 * ldlang.h (lang_wild_statement_type): Likewise.
4818 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4820 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4822 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4823 (process_def_file): Use.
4824 (pe_dll_compat_implib): New variable.
4827 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4828 pe_dll_compat_implib.
4830 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4831 compat-implib options.
4832 (gld_${EMULATION_NAME}_list_options): List new options.
4833 (gld_${EMULATION_NAME}_parse_args): Handle.
4835 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4838 * deffilep.y (opt_name): Allow "." in name.
4840 For older changes see ChangeLog-9899
4846 version-control: never