1 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
4 strtoul and strtoull with bfd_scan_vma.
5 (gld${EMULATION_NAME}_read_file): Likewise.
7 2002-08-28 Alan Modra <amodra@bigpond.net.au>
9 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
11 2002-08-27 Egor Duda <deo@logos-m.ru>
13 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
14 Add symbols for application to access them.
16 2002-08-27 Nick Clifton <nickc@redhat.com>
18 * emultempl/armelf.em: Revert this patch, it is not needed.
20 2002-08-22 Adam Nemet <anemet@lnxw.com>
22 2002-08-20 Dan Kegel <dank@kegel.com>
24 * configure.in: added --with-lib-path argument to ld's configure
26 * ld/NEWS: Document new switch.
27 * ld/README: Mention new switch.
28 * configure: Regenerate.
29 * Makefile.in: Regenerate.
32 2001-04-25 Christopher Faylor <cgf@cygnus.com>
34 * Makefile.in (LIB_PATH): Make configurable.
35 (GENSCRIPTS): Set LIB_PATH in environment.
36 * configure.in: Substitute LIB_PATH.
38 2002-08-22 Adam Nemet <anemet@lnxw.com>
40 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
41 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
42 depending on the type of the function.
43 (arm_elf_convert_thumb_symbol_to_address): New function.
45 2002-08-22 Graeme Peterson <gp@qnx.com>
47 * Makefile.am: Add esh{l}elf_nto.o files.
48 * Makefile.in: Regenerate.
49 * configure.tgt: Add support for sh-**-nto* targets.
50 * emulparams/shelf_nto.sh: New file.
51 * emulparams/shlelf_nto.sh: New file.
53 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
55 * ldlang.c (offsetof): Define if not defined.
57 2002-08-14 H.J. Lu <hjl@gnu.org>
59 * configure.tgt: Always enable 64bit emulations for 32bit
62 2002-08-13 Alan Modra <amodra@bigpond.net.au>
64 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
65 (MAXPAGESIZE): Set to 1.
67 * ld.h (ALIGN_N): Delete.
68 * ldexp.h (align_n): Declare.
69 * ldexp.c (align_n): New function.
70 (fold_binary): Use align_n instead of ALIGN_N.
71 (exp_fold_tree): Likewise.
72 * ldlang.c (lang_size_sections_1): Likewise.
73 (lang_one_common): Likewise.
74 * ld.texinfo (ALIGN): Remove power of 2 restriction.
76 2002-07-31 Graeme Peterson <gp@qnx.com>
78 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
79 * Makefile.am: Add eelf32{l}ppcnto.o files.
80 * Makefile.in: Regenerate.
81 * emulparams/elf32lppcnto.sh: New file.
82 * emulparams/elf32ppcnto.sh: New file.
84 2002-08-07 H.J. Lu <hjl@gnu.org>
86 * ld.texinfo: Document --no-undefined-version.
88 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
89 `script.' fields to 0.
91 * ldmain.c (main): Initialize the allow_undefined_version to
94 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
95 (ld_options): Add --no-undefined-version.
96 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
98 2002-08-07 Nick Clifton <nickc@redhat.com>
100 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
101 an interworking bfd if there are input bfds. (107501)
103 2002-08-06 Alan Modra <amodra@bigpond.net.au>
105 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
108 2002-08-01 Nick Clifton <nickc@redhat.com>
110 * emulparams/armelf.sh: Revert previous delta.
111 * scripttempl/elf.sc: Revert previous delta.
113 2002-07-31 H.J. Lu <hjl@gnu.org>
115 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
118 2002-07-31 H.J. Lu <hjl@gnu.org>
120 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
121 64bit BFD is selected.
123 2002-07-31 H.J. Lu <hjl@gnu.org>
125 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
126 if 64bit BFD is selected.
128 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
130 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
131 link_info.common_skip_ar_aymbols.
132 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
134 * ldmain.c (main): Initialize new field
135 link_info.common_skip_ar_aymbols.
137 2002-07-31 Adam Nemet <anemet@lnxw.com>
139 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
141 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
144 2002-07-31 Nick Clifton <nickc@redhat.com>
146 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
147 of the PDP-11 and 2.11BSD a.out support.
149 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
151 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
153 * Makefile.in: Regenerate.
154 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
155 n32 ABI emulations for these 64 bit targets.
156 * emulparams/elf32bmipn32.sh: Expand comment.
157 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
159 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
161 2002-07-30 Graeme Peterson <gp@qnx.com>
163 * configure.tgt: Add support for arm-*-nto target.
164 * Makefile.am: Add earmnto.o file.
165 * Makefile.in: Regenerate.
166 * NEWS: Mention port of ARM support to QNX.
167 * emulparams/armnto.sh: New file.
169 2002-07-30 Jakub Jelinek <jakub@redhat.com>
171 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
172 for relocatable link.
173 (lang_size_sections_1): Don't make .tbss zero size for relocatable
176 2002-07-26 Bernd Schmidt <bernds@redhat.com>
178 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
181 2002-07-25 Nick Clifton <nickc@redhat.com>
183 * po/sv.po: Updated Swedish translation.
184 * po/es.po: Updated Spanish translation.
185 * po/fr.po: Updated French translation.
187 2002-07-24 Nick Clifton <nickc@redhat.com>
189 * po/sv.po: Updated Swedish translation.
190 * po/es.po: Updated Spanish translation.
192 2002-07-23 Nick Clifton <nickc@redhat.com>
194 * po/fr.po: Updated French translation.
196 2002-07-20 Alan Modra <amodra@bigpond.net.au>
198 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
199 bomb on /DISCARD/ input section.
200 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
201 * emultempl/mmo.em (mmo_place_orphan): Likewise.
203 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
205 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
208 2002-07-16 Denis Chertykov <denisc@overta.ru>
209 Nick Clifton <nickc@redhat.com>
210 Frank Ch. Eigler <fche@redhat.com>
211 John Healy <jhealy@redhat.com>
213 * configure.tgt: Add support for ip2k-elf.
214 * Makefile.am: Add support for ip2k-elf.
215 * Makefile.in: Regenerate.
216 * emulparams/elf32ip2k.sh: New file.
217 * scripttempl/ip2k.sc: New file
218 * NEWS: Mention support for new port.
220 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
222 * NEWS: Add 'Changes in 2.13'.
224 2002-07-14 H.J. Lu <hjl@gnu.org>
226 * ld.texinfo: Document a .symver takes precedence over a
229 2002-07-12 Alan Modra <amodra@bigpond.net.au>
231 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
232 (COMMONPAGESIZE): Define.
234 2002-07-09 Alan Modra <amodra@bigpond.net.au>
236 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
238 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
240 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
241 powerpc-*-openbsd* and sparc64-*-openbsd*.
242 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
243 * Makefile.in: Regenerate.
244 * emulparams/hppaobsd.sh: New file.
246 2002-07-05 Alan Modra <amodra@bigpond.net.au>
248 * ldlang.c (print_wild_statement): Fix output formatting.
250 2002-07-04 Alan Modra <amodra@bigpond.net.au>
252 * ldlang.c: (strip_excluded_output_sections): New function.
253 (lang_process): Call it.
254 (lang_size_sections_1): Revert 2002-06-10 change.
256 2002-07-03 Alan Modra <amodra@bigpond.net.au>
258 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
260 * Makefile.in: Regenerate.
262 2002-07-02 Alan Modra <amodra@bigpond.net.au>
264 * ldfile.c (ldfile_try_open_bfd): Formatting.
266 * ldmisc.c (demangle): Move so that it doesn't intrude between
267 vfinfo comment and body. Add comment.
269 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
271 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
273 2002-07-01 Alan Modra <amodra@bigpond.net.au>
275 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
276 * ldlang.c (entry_sym): Likewise.
277 (ldlang_undef_chain_list_type): Likewise.
278 (lang_finish): Adjust references to entry_symbol.
279 (lang_add_entry): Likewise.
280 (lang_gc_sections): Use link_info.gc_sym_list.
281 (lang_process): Set link_info.gc_sym_list.
282 * ldlex.l: Include bfdlink.h.
283 * ldmain.c (main): Init link_info.gc_sym_list.
284 * emultempl/aix.em: Adjust references to entry_symbol.
285 * emultempl/armcoff.em: Likewise.
286 * emultempl/armelf.em: Likewise.
287 * emultempl/pe.em: Likewise.
288 * emultempl/ppc64elf.em (ppc_after_open): New function.
289 (LDEMUL_AFTER_OPEN): Define.
290 * emulparams/elf64ppc.sh: KEEP .opd sections.
292 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
294 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
295 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
296 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
297 (EEPROM_START_ADDR): Define.
298 (EEPROM_MEMORY): Define.
299 * emulparams/m68hc12elf.sh: Likewise.
300 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
301 section to put soft registers in .page0.
302 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
304 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
306 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
307 section. Add ${RELOCATING-0}.
309 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
311 * emulparams/shelf.sh (STACK_ADDR): Don't define.
312 (OTHER_SECTIONS): Define.
313 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
314 (OTHER_SECTIONS): Undef.
316 2002-06-26 Alan Modra <amodra@bigpond.net.au>
318 * ldmisc.c (demangle): Restore dots stripped from sym name.
320 2002-06-25 H.J. Lu <hjl@gnu.org>
322 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
323 * Makefile.in: Regenerated.
325 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
327 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
328 the size of attached object files, to allow make the object files
329 available via FTP or HTTP and to mention that the mail will be
330 sent to a mailing list.
332 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
334 * ld/configure.host (romp): Drop support.
336 2002-06-18 Chris Demetriou <cgd@broadcom.com>
338 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
339 section flags for SEC_DATA, rather than for SEC_CODE being unset.
341 2002-06-18 Chris Demetriou <cgd@broadcom.com>
343 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
344 format specifier used to print BFD name.
346 2002-06-18 Dave Brolley <brolley@redhat.com>
348 From Catherine Moore, Michael Meissner, Jim Blandy:
349 * emulparams/elf32frv.sh: New file.
350 * configure.tgt: Support frv-*-*.
351 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
352 (eelf32frv.c): New target.
354 2002-06-17 Tom Rix <trix@redhat.com>
356 * emultempl/elf32.em: gld*_get_script: Check for
357 GENERATE_COMBRELOC_SCRIPT.
358 * scripttempl/elfd10v.sc : Fix STACK and INSN.
359 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
361 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
363 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
365 2002-06-12 H.J. Lu <hjl@gnu.org>
367 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
368 false if xvec doesn't match.
370 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
372 * ldlang.c (lang_size_sections_1): Skip removed output sections.
374 2002-06-08 Alan Modra <amodra@bigpond.net.au>
376 * ldexp.c: Replace CONST with const.
377 * ldfile.c: Likewise.
378 * ldfile.h: Likewise.
381 * pe-dll.h: Likewise.
383 2002-06-07 Alan Modra <amodra@bigpond.net.au>
385 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
387 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
389 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
390 to -1 == implicit enable.
391 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
392 initialize link_info.pei386_auto_import to -1 == implicit
394 (gld_${EMULATION_NAME}_parse_args): When processing
395 --enable-auto-import and --disable-auto-import options, use
396 '1' and '0' instead of 'true' and 'false'.
397 (pe_find_data_imports): Only issue message about auto-import
398 when the feature is implicitly enabled. Downgrade message to
399 informational instead of warning.
401 2002-06-07 Alan Modra <amodra@bigpond.net.au>
403 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
405 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
407 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
408 HOSTING_CRT0 and HOSTING_LIBS.
410 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
412 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
414 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
416 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
417 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
419 2002-06-05 Alan Modra <amodra@bigpond.net.au>
421 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
422 SEC_EXCLUDE sections when doing a relocatable link.
424 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
426 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
427 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
428 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
429 (eshlelf64_nbsd.c): New rules.
430 * Makefile.in: Regenerate.
431 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
432 (sh64-*-netbsd*): New targets.
433 * emulparams/shelf32_nbsd.sh: New file.
434 * emulparams/shelf64_nbsd.sh: New file.
435 * emulparams/shlelf32_nbsd.sh: New file.
436 * emulparams/shlelf64_nbsd.sh: New file.
438 2002-06-04 Alan Modra <amodra@bigpond.net.au>
440 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
442 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
444 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
445 C++ constructors/destructors, loosely based on the m68hc11 port.
447 2002-05-31 Alan Modra <amodra@bigpond.net.au>
449 * Makefile.in: Regenerate.
450 * aclocal.m4: Regenerate.
451 * config.in: Regenerate.
452 * configure: Regenerate.
454 2002-05-31 Graeme Peterson <gp@qnx.com>
456 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
457 (ei386nto.c): Add rule.
458 * Makefile.in: Regenerate.
459 * configure.tgt: Add i[3456]86-*-nto-qnx*.
460 * emulparams/i386nto.sh: New file.
462 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
464 * NEWS: Add entry for VAX ELF support.
466 2002-05-29 Matt Thomas <matt@3am-software.com>
467 Jason Thorpe <thorpej@wasabisystems.com>
469 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
471 (evaxnbsd.c): New rules.
472 * Makefile.in: Regenerate.
473 * configure.tgt (vax-*-netbsdelf*)
475 (vax-*-netbsd*): New targets.
476 * emulparams/elf32vax.sh: New file.
477 * emulparams/vaxnbsd.sh: New file.
479 2002-05-29 Adam Nemet <anemet@lnxw.com>
481 * emultempl/armelf.em (arm_elf_after_open): Don't determine
482 bfd_for_interwork, instead add glue sections to each input bfd.
483 (bfd_for_interwork): New global.
484 (arm_elf_set_bfd_for_interworking): New function.
485 (arm_elf_before_allocation): Use it.
487 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
489 * Makefile.am: Add DLX make target.
490 * configure.tgt: Add DLX configuration.
491 * Makefile.in: Regenerate.
492 * emulparams/elf32_dlx.sh: New file
493 * scripttempl/dlx.sc: New file
495 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
497 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
498 * Makefile.in: Regenerate.
499 * emulparams/elf_chaos.sh: Use elf_chaos script.
500 * scripttempl/elf_chaos.sc: New file.
502 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
504 * ldlang.c (lang_size_sections_1): Move check for conflicting load
505 addresses and regions from here...
506 (lang_get_regions): ...to this new function.
507 (lang_leave_output_section_statement): Use lang_get_regions.
508 (lang_leave_overlay): Likewise.
509 * mri.c (mri_draw_tree): Pass null as last argument to
510 lang_leave_output_section_statement.
511 * emultempl/elf32.em (gld*_place_orphan): Likewise.
512 * emultempl/mmo.em (mmo_place_orphan): Likewise.
513 * emultempl/pe.em (gld*_place_orphan): Likewise.
515 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
517 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
519 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
521 * ldemul.c: Fix formatting.
522 * ldfile.c: Likewise.
523 * pe-dll.c: Likewise.
524 * pe-dll.h: Likewise.
526 2002-05-25 Alan Modra <amodra@bigpond.net.au>
528 * ldlang.c (lang_process): Formatting, grammar.
530 * ldlex.l: Use #include "" instead of <> for local header files.
532 2002-05-24 TAMURA Kent <kent@netbsd.org>
534 * configure.tgt: Add a target for i386-netbsdpe.
536 2002-05-23 Jakub Jelinek <jakub@redhat.com>
538 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
539 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
540 output section if necessary. Handle .tbss.
541 (lang_size_sections): Clear _raw_size for .tbss section
542 (it allocates space in PT_TLS segment only).
543 * ldwrite.c (build_link_order): Build link order for .tbss too.
545 2002-05-23 Alan Modra <amodra@bigpond.net.au>
547 * configure.in: Correct spelling of AC_PREREQ.
549 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
551 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
553 (autofilter_objlist): Add crtbegin.o, crtend.o.
555 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
557 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
558 (longopts): Add new option --exclude-libs.
559 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
560 (gld_${EMULATION_NAME}_parse_args): Use it.
561 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
562 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
564 (pe_dll_add_excludes): Set excludes->type.
565 (auto_export): Add new variable libname and set to archive basename if
566 abfd. Use it when filtering default and user-specified libarary
567 excludes. Let string "ALL" mean all libs when filtering user-specified
569 * ld.texinfo: Document --exclude-libs.
571 2002-05-22 Alan Modra <amodra@bigpond.net.au>
573 * ldemul.c (ldemul_new_vers_pattern): New function.
574 * ldemul.h (ldemul_new_vers_pattern): Declare.
575 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
576 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
577 * emultempl/ppc64elf.em (dotsyms): New static var.
578 (gld${EMULATION_NAME}_new_vers_pattern): New function.
579 (LDEMUL_NEW_VERS_PATTERN): Define.
580 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
581 (PARSE_AND_LIST_LONGOPTS): Likewise.
582 (PARSE_AND_LIST_ARGS_CASES): Handle them.
583 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
585 * emultempl/armcoff.em: Likewise.
586 * emultempl/armelf_oabi.em: Likewise.
587 * emultempl/beos.em: Likewise.
588 * emultempl/elf32.em: Likewise.
589 * emultempl/generic.em: Likewise.
590 * emultempl/gld960.em: Likewise.
591 * emultempl/gld960c.em: Likewise.
592 * emultempl/linux.em: Likewise.
593 * emultempl/lnk960.em: Likewise.
594 * emultempl/m68kcoff.em: Likewise.
595 * emultempl/mipsecoff.em: Likewise.
596 * emultempl/pe.em: Likewise.
597 * emultempl/sunos.em: Likewise.
598 * emultempl/ticoff.em: Likewise.
599 * emultempl/vanilla.em: Likewise.
601 2002-05-22 Alan Modra <amodra@bigpond.net.au>
603 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
604 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
605 (LIB_SEARCH_DIRS): No need to use "tr".
606 (COMPILE_IN): Only set for native targets.
607 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
608 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
609 * configure.tgt (powerpc*): Set tdir_*.
610 (powerpcle*): Correct targ_extra_emuls.
611 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
612 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
614 2002-05-22 Alan Modra <amodra@bigpond.net.au>
616 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
617 calling lang_add_entry.
619 2002-05-21 H.J. Lu (hjl@gnu.org)
621 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
623 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
625 * ld.texinfo: Updated for --allow-multiple-definition and
628 * ldmain.c (main): Initialize the allow_multiple_definition
631 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
632 (ld_options): Add --allow-multiple-definition.
633 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
635 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
637 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
638 (earmelfb_nbsd.c): New rule.
639 * Makefile.in: Regenerate.
640 * configure.tgt (armeb-*-netbsdelf*): New target.
641 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
642 (arm-*-netbsd*): Likewise.
643 * emulparams/armelfb_nbsd.sh: New file.
645 2002-05-18 Tom Rix <trix@redhat.com>
647 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
650 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
652 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
653 * Makefile.in: Regenerate.
654 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
656 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
658 * emulparams/avr1.sh: New file.
659 * emulparams/avr2.sh: New file.
660 * emulparams/avr3.sh: New file.
661 * emulparams/avr4.sh: New file.
662 * emulparams/avr5.sh: New file.
663 * scripttempl/avr.sc: New file.
665 2002-05-15 Alan Modra <amodra@bigpond.net.au>
667 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
668 (lang_place_orphans): Abort if just_syms_flag.
670 2002-05-10 Tom Rix <trix@redhat.com>
672 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
673 architecture and machine information in the output bfd.
674 (gld*_before_parse): Remove old arch and machine code.
675 (choose_target): Rename to gld*_choose_target.
676 (rtld): Change type to int.
677 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
678 objects in XCOFF archives.
679 * ldfile.h: Update copyright date.
681 2002-05-10 Jakub Jelinek <jakub@redhat.com>
683 * ldmain.c (main): Enable -z combreloc by default.
685 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
687 * Makefile.am: Honour DESTDIR.
688 * Makefile.in: Regenerate.
690 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
692 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
693 (lang_enter_overlay): Remove the last two parameters.
694 (lang_leave_overlay): Take them here instead.
695 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
696 (section): Pass LMA and crossref flag to lang_leave_overlay rather
697 than lang_enter_overlay.
698 * ldlang.c (lang_memory_region_lookup): Return null for null names.
699 (lang_output_section_statement_lookup): Initialize update_dot_tree.
700 (lang_size_sections_1): Evaluate it.
701 (lang_leave_output_section_statement): Rework LMA lookup.
702 (overlay_lma, overlay_nocrossrefs): Remove.
703 (lang_enter_overlay): Remove LMA and crossref arguments.
704 (lang_enter_overlay_section): Don't set the LMA here.
705 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
706 assignment to the last section's update_dot_tree. Unconditionally
707 use the load and run-time regions specified in the OVERLAY statement.
708 Likewise the first section's LMA. Only set the other sections' LMAs
709 when no load region is given.
711 2002-05-06 Nick Clifton <nickc@redhat.com>
713 * po/sv.po: New translation.
715 2002-05-04 Alan Modra <amodra@bigpond.net.au>
717 * emultempl/hppaelf.em (build_section_lists): New function.
718 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
719 and build_section_lists.
721 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
723 * ld.h: Fix formatting.
725 * ldfile.c: Likewise.
726 * ldlang.c: Likewise.
727 * ldmain.c: Likewise.
728 * lexsup.c: Likewise.
729 * pe-dll.c: Likewise.
731 2002-05-02 Alan Modra <amodra@bigpond.net.au>
733 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
734 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
735 (build_section_lists): Do output_section tests here.
737 2002-04-30 Tom Rix <trix@redhat.com>
739 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
741 2002-05-01 Alan Modra <amodra@bigpond.net.au>
743 Long branch stubs, multiple stub sections.
744 * emultempl/ppc64elf.em: Include ldctor.h.
745 (stub_file): New var.
746 (group_size): New var.
747 (ppc_create_output_section_statements): New function.
748 (struct hook_stub_info): New.
749 (hook_in_stub): New function.
750 (ppc_add_stub_section): New function.
751 (ppc_layout_sections_again): New function.
752 (build_section_lists): New function.
753 (gld${EMULATION_NAME}_finish): Rewrite.
754 (real_func): New var.
755 (ppc_for_each_input_file_wrapper): New function.
756 (ppc_lang_for_each_input_file): New function.
757 (lang_for_each_input_file): Define.
758 (PARSE_AND_LIST_PROLOGUE): Define.
759 (PARSE_AND_LIST_LONGOPTS): Define.
760 (PARSE_AND_LIST_OPTIONS): Define.
761 (PARSE_AND_LIST_ARGS_CASES): Define.
762 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
764 2002-04-30 Tom Rix <trix@redhat.com>
766 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
767 -blibpath, -bnolibpath support.
769 2002-04-30 Mark Mitchell <mark@codesourcery.com>
771 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
772 (eelf32ppcwindiss.c): New target.
773 * Makefile.in: Regenerated.
774 * configure.tgt: Add support for powerpc-*-windiss.
775 * emulparams/elf32ppcwindiss.sh: New file.
777 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
779 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
780 * ldexp.c (exp_print_token): Add "infix_p" argument.
781 (exp_print_tree): Update accordingly.
783 2002-04-28 Alan Modra <amodra@bigpond.net.au>
785 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
786 * Makefile.in: Regenerate.
787 * mpw-elfmips.c: Delete.
788 * mpw-eppcmac.c: Delete.
790 * mpw-idtmips.c: Delete.
792 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
794 * emulparams/shelf32.sh (MACHINE): Now sh5.
796 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
798 * ldgram.y: Fix syntax warning.
800 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
802 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
803 to prevent "-n" from being taken as an abbreviation for
804 "--no-pipeline-knowledge".
806 2002-04-08 Alan Modra <amodra@bigpond.net.au>
808 * ldlang.c (lang_size_sections_1): Don't complain about
809 SEC_NEVER_LOAD sections having no memory region specified.
811 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
813 2002-04-07 matthew green <mrg@redhat.com>
815 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
817 2002-04-04 Alan Modra <amodra@bigpond.net.au>
819 * dep-in.sed: Cope with absolute paths.
820 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
822 * Makefile.in: Regenerate.
824 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
826 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
828 2002-04-03 Jakub Jelinek <jakub@redhat.com>
830 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
831 is smaller than maximum, round dot up to common page boundary.
833 2002-03-28 Alan Modra <amodra@bigpond.net.au>
835 * configure.host: Set up for generic hosts first, then tweak as
836 necessary in more specific targets.
837 (HOSTING_LIBS): Include libgcc_eh.a if found.
839 2002-03-23 Andreas Jaeger <aj@suse.de>
841 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
843 2002-03-21 Alan Modra <amodra@bigpond.net.au>
845 * Makefile.am: Run "make dep-am".
846 * Makefile.in: Regenerate.
848 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
850 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
852 2002-03-20 Alan Modra <amodra@bigpond.net.au>
854 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
855 add the symbol to the linker hash table immediately.
856 (lang_place_undefineds): Split symbol creation out..
857 (insert_undefined): ..to here.
859 2002-03-18 David O'Brien <obrien@FreeBSD.org>
861 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
862 the contents of the buffer returned from basename function will are
863 getting overwritten while still being used.
865 2002-03-18 Jan Hubicka <jh@suse.cz>
866 Andreas Jaeger <aj@suse.de>
867 Andreas Schwab <schwab@suse.de>
869 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
870 * elf_x86_64.sh (ARCH): Set to i386:x86-64
871 set libraries to default to lib64 paths.
873 2002-03-18 Tom Rix <trix@redhat.com>
875 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
876 * configure.tgt : Same.
877 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
878 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
879 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
880 emulation parameters for better -b32, -b64 support.
881 * emulparms/aixrs6.sh : Same.
882 * emulparms/ppcmacos.sh : Same.
883 * emultempl/aix.em (choose_target) : Use new emulation parameters
884 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
885 * Makefile.in : Regenerate.
887 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
889 * po/fr.po: Updated version.
891 2002-03-18 Alan Modra <amodra@bigpond.net.au>
893 * ldmain.c (main): Move .text readonly flag fudges from here..
894 * ldlang.c (lang_process): ..to here.
896 2002-03-14 Alan Modra <amodra@bigpond.net.au>
898 * ldlang.c (lang_check): Remove the word size check added in last
899 change. Treat emitrelocations case as for relocatable links.
901 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
903 * po/fr.po: Updated version.
905 2002-03-13 Alan Modra <amodra@bigpond.net.au>
907 * ldlang.c (lang_check): Do relocatable link checks first, so that
908 warn_mismatch can't override. Check compatible and word size too.
910 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
912 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
914 2002-03-05 Jakub Jelinek <jakub@redhat.com>
916 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
919 2002-03-04 H.J. Lu <hjl@gnu.org>
921 * scripttempl/elf.sc: Put .preinit_array, .init_array and
922 .fini_array in the data segment.
924 2002-03-04 Alan Modra <amodra@bigpond.net.au>
926 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
928 2002-03-01 David Mosberger <davidm@hpl.hp.com>
930 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
931 .init_array, and .fini_array.
933 2002-02-20 Andreas Schwab <schwab@suse.de>
935 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
936 .IA64_unwind* in a relocatable link.
938 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
940 * NEWS: Mark 2.12 branch.
942 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
944 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
945 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
947 2002-02-18 Tom Rix <trix@redhat.com>
949 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
950 (gld*_before_allocation): Same.
951 (gld*_create_output_section_statements): Generate
952 __rtinit if run time linking. Add librtl.a to the link.
953 (gld*_read_file): Clean.
955 2002-02-18 Alan Modra <amodra@bigpond.net.au>
957 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
959 2002-02-18 David O'Brien <obrien@FreeBSD.org>
961 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
962 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
963 and eelf64alpha_fbsd.
964 * Makefile.in: Regenerate.
965 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
966 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
967 use a FreeBSD-specific emulation rather than the psABI one.
968 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
969 for all FreeBSD ELF systems.
970 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
972 * emulparams/elf32ppc_fbsd.sh: Likewise.
973 * emulparams/elf64_ia64_fbsd.sh: Likewise.
974 * emulparams/elf64_sparc_fbsd.sh: Likewise.
975 * emulparams/elf64alpha_fbsd.sh: Likewise.
976 * emulparams/elf_i386_fbsd.sh: Likewise.
977 * emulparams/elf_x86_64_fbsd.sh: Likewise.
979 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
981 * po/tr.po: Updated version.
983 2002-02-18 Alan Modra <amodra@bigpond.net.au>
985 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
988 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
990 * emultempl/mmo.em (mmo_after_open): Don't call
991 _bfd_mmix_check_all_relocs when producing ELF output.
993 2002-02-15 Richard Henderson <rth@redhat.com>
995 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
996 definition. Emit a unop+nop pair.
998 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1000 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1001 for presence of .MMIX.reg_contents.linker_allocated before early
1004 * NEWS: Mention support for MMIX.
1006 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1008 Support arbitrary length fill patterns.
1009 * ld.texinfo (Output Section Fill): Describe fill expressions.
1010 (FILL): Refer to the above.
1011 * ldexp.h (etree_value_type): Add "str" field.
1012 (union etree_union): Add "str" to "value" struct.
1013 (exp_bigintop): Declare.
1014 (exp_get_fill): Declare.
1015 * ldexp.c: Include "safe-ctype.h".
1016 (exp_intop): Set value.str to NULL.
1017 (exp_bigintop): New function.
1018 (new_rel): Pass in "str", and set new.str from it.
1019 (new_rel_from_section): Set new.str to NULL.
1020 (fold_name): Adjust calls to new_rel.
1021 (exp_fold_tree): Likewise.
1022 (exp_get_fill): New function.
1023 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1024 (INT): Returns a "bigint". Adjust all code handling INTs.
1025 (fill_opt): Returns a "fill".
1026 (fill_exp): Split out of fill_opt, use for FILL.
1027 * ldlang.h (struct _fill_type): New.
1028 (fill_type): Move typedef to ldexp.h.
1029 (lang_output_section_statement_type): "fill" is now a pointer.
1030 (lang_fill_statement_type): Likewise.
1031 (lang_padding_statement_type): Likewise.
1032 (lang_add_fill): Now takes a "fill_type *" param.
1033 (lang_leave_output_section_statement): Likewise.
1034 (lang_do_assignments): Likewise.
1035 (lang_size_sections): Likewise.
1036 (lang_leave_overlay_section): Likewise.
1037 (lang_leave_overlay): Likewise.
1038 * ldlang.c: Include ldgram.h after ldexp.h.
1039 (lang_output_section_statement_lookup): Adjust for fill_type change.
1040 (print_fill_statement): Likewise.
1041 (print_padding_statement): Likewise.
1042 (insert_pad): Now takes a "fill_type *" arg.
1043 (size_input_section): Likewise.
1044 (lang_size_sections_1): Likewise.
1045 (lang_size_sections): Likewise.
1046 (lang_do_assignments): Likewise.
1047 (lang_add_fill): Likewise.
1048 (lang_leave_output_section_statement): Likewise.
1049 (lang_leave_overlay_section): Likewise.
1050 (lang_leave_overlay): Likewise.
1051 Adjust all callers of the above function.
1052 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1053 starting with "0X" as well as "0x". Return bigint.str for hex
1054 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1055 Always use base 16 for numbers starting with "$".
1056 * ldmain.c: Include ldgram.h after ldexp.h.
1057 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1058 of bfd_fill_link_order.
1059 * pe-dll.c: Adjust lang_do_assignments calls.
1060 * emultempl/elf32.em: Likewise.
1061 * emultempl/hppaelf.em: Likewise.
1062 * emultempl/ppc64elf.em: Likewise.
1063 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1064 lang_add_assignment call.
1065 * emultempl/pe.em: Likewise.
1067 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1069 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1070 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1071 the pattern in question is not a regexp.
1072 * ldlang.c: Likewise.
1073 * ldlang.h: Likewise.
1074 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1076 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1078 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1079 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1080 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1081 * ldexp.c (exp_data_seg): New variable.
1082 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1083 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1084 (exp_fold_tree): Handle DATA_SEGMENT_END.
1085 Pass allocation_done when recursing instead of hardcoding
1086 lang_allocating_phase_enum.
1087 * ldexp.h (exp_data_seg): New.
1088 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1089 (lang_size_sections): New.
1090 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1091 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1092 if COMMONPAGESIZE is defined.
1093 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1094 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1095 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1096 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1097 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1100 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1102 * Makefile.in: Regenerate.
1104 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1106 * lexsup.c: Remove strtoul declaration.
1108 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1110 * ldmain.c: Add prototype for main ().
1111 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1112 * emultempl/lnk960.em (lnk960_choose_target): Function should
1115 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1117 * ldlang.c (entry_section): New initialised variable.
1118 (lang_finish): Use it.
1119 * ldlang.h (entry_section): Declare.
1120 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1121 entry_section to ".opd".
1123 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1125 * ld.texinfo (Options): Add back in -nostdlib documentation,
1126 which had been inadvertently removed.
1128 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1130 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1131 register section vma to a sane value after emitting error. Make
1132 fatal conditions cause program exit when emitting message.
1134 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1136 * configure.tgt: Add or32-*-rtems target.
1138 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1140 Contribute sh64-elf.
1141 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1142 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1143 in OTHER_RELOCATABLE_SECTIONS.
1144 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1145 * emulparams/shelf32.sh (STACK_ADDR): Define.
1146 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1147 (OTHER_SECTIONS): this. Removed stack settings.
1148 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1149 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1150 2001-03-12 DJ Delorie <dj@redhat.com>
1151 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1152 relaxing if any shmedia or mixed sections are found.
1153 2001-03-07 DJ Delorie <dj@redhat.com>
1154 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1155 einfo. Gracefully decline to output to non-elf formats.
1156 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1157 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1158 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1159 * emulparams/shelf32.sh: Ditto.
1160 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1161 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1163 2001-01-10 Ben Elliston <bje@redhat.com>
1164 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1165 non-portable shell constructs. From Hans-Peter Nilsson.
1166 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1167 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1168 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1169 dependencies to the shell script include chain.
1170 * Makefile.in: Regenerate.
1171 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1172 * emultempl/sh64elf.em: Update and tweak comments.
1173 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1174 make a .cranges section SEC_IN_MEMORY.
1175 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1176 * emultempl/sh64elf.em
1177 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1178 .cranges section found to be necessary; continue and set stored
1179 section contents flags for sections with non-mixed contents.
1180 Use a struct sh64_section_data container and sh64_elf_section_data
1181 to store contents-type flags.
1182 Remove unused update of "isec".
1183 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1184 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1185 access contents-type flags. Assert that the associated container
1186 is initialized. Use that container, not elf_gp_size, to hold size
1187 of linker-generated cranges contents.
1188 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1189 * emultempl/sh64elf.em
1190 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1191 there's already a .cranges section. When section flag difference
1192 is found, don't NULL-check cranges a second time. Tweak comments.
1193 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1194 merging, not max size, as size of ld-generated .cranges contents.
1195 Don't set ELF section flags in output section. When checking for
1196 needed .cranges descriptors, don't use a variable; compare
1197 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1199 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1200 * emultempl/sh64elf.em: New file.
1201 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1202 * Makefile.in: Regenerate.
1203 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1204 (OTHER_RELOCATING_SECTIONS): Ditto.
1205 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1206 * emulparams/shlelf32.sh: Stub out all settings except
1207 OUTPUT_FORMAT. Source shelf32.sh.
1208 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1209 OTHER_RELOCATING_SECTIONS.
1210 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1211 * emulparams/shlelf64.sh: Stub out all settings except
1212 OUTPUT_FORMAT. Source shelf64.sh.
1213 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1214 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1216 (DATA_START_SYMBOLS): Define, provide ___data.
1217 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1218 for consecutive .data section.
1219 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1220 section after .data section.
1221 * emulparams/shlelf64.sh: Ditto.
1222 * emulparams/shelf32.sh: Ditto.
1223 (ALIGNMENT): Define to 8.
1224 * emulparams/shelf32.sh: Ditto.
1225 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1226 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1227 built-in linker scripts.
1228 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1229 * emulparams/shlelf64.sh: New.
1230 * emulparams/shelf64.sh: New.
1231 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1233 * Makefile.am: Add support for shlelf64 and shelf64.
1234 * Makefile.in: Regenerate.
1235 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1236 * configure.tgt (sh64-*-elf*): Add shelf as default.
1237 Add shlelf to targ_extra_emuls.
1238 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1239 * emulparams/shelf32.sh: New file.
1240 * emulparams/shlelf32.sh: New file.
1241 * Makefile.am: Add support for shlelf32 and shelf32.
1242 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1243 * Makefile.in: Regenerate.
1245 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1247 * ldlang.c (lang_reset_memory_regions): Rename from
1248 reset_memory_regions. Change all callers. Make public.
1249 * ldlang.h (lang_reset_memory_regions): Prototype.
1250 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1251 lang_reset_memory_regions before lang_size_sections.
1252 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1253 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1255 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1257 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1258 arithmetic when checking for too many global registers.
1260 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1262 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1263 (ehppanbsd.c): New rule.
1264 * Makefile.in: Regenerate.
1265 * configure.tgt (hppa*-*-netbsd*): New target.
1266 * emulparams/hppalinux.sh: Add comment to check other files
1267 that source this file it is modified, and list which
1269 * emulparams/hppanbsd.sh: New file.
1271 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1273 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1276 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1278 Support on-demand global register allocation from
1279 R_MMIX_BASE_PLUS_OFFSET relocs.
1280 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1281 mmix_set_reg_section_vma. Call
1282 _bfd_mmix_finalize_linker_allocated_gregs.
1283 (mmix_before_allocation): New function.
1284 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1285 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1286 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1287 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1288 before .MMIX.reg_contents.
1289 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1290 (mmo_after_open): New function.
1291 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1292 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1293 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1295 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1297 * emulparams/or32.sh: New file.
1298 * emulparams/or32elf.sh: New file.
1299 * scripttempl/or32.sc: New file.
1300 * configure.tgt : Add support for or32.
1301 * configure: Regenerate
1302 * Makefile.am: Add support for or32.
1303 * Makefile.in: Regenerate.
1304 * NEWS: Mention support for or32.
1305 * po/ld.pot: Regenerate.
1307 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1308 Mitch Lichtenberg <mpl@broadcom.com>
1310 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1311 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1312 reloc creation (ld --embedded-relocs).
1314 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1316 * configure: Regenerated.
1318 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1320 * Makefile.am (install): Depend on install-info.
1321 * Makefile.in: Regenerate.
1323 2002-01-26 Christian Rose <menthos@menthos.com>
1325 * ldmain.c (main): Use full sentences to ease translation.
1327 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1329 * po/fr.po: Updated version.
1331 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1333 * po/es.po: Updated version.
1335 2002-01-25 Andreas Jaeger <aj@suse.de>
1337 * ldlex.l (yy_input): Correct error check.
1339 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1341 * ldmisc.c (demangle): Put back dots when string not demangled.
1343 2002-01-22 Richard Henderson <rth@redhat.com>
1345 * emulparams/elf64alpha.sh (NOP): Use unop.
1347 2002-01-21 Andreas Jaeger <aj@suse.de>
1349 * ldlex.l: Use fread instead of read.
1351 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1353 * configure.tgt (ia64-*-netbsd*): New target.
1355 2002-01-21 H.J. Lu <hjl@gnu.org>
1357 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1359 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1361 2002-01-18 Andreas Jaeger <aj@suse.de>
1363 * ldver.c (ldversion): Update year.
1365 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1367 * po/ld.pot: Regenerate.
1369 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1371 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1372 * Makefile.in: Regenerate.
1373 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1374 * emultempl/ppc64elf.em: New file.
1376 2002-01-15 DJ Delorie <dj@redhat.com>
1378 * scripttempl/pe.sc: Add support for constructor priorities.
1380 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1382 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1383 * emulparams/avr23xx.sh: Likewise.
1384 * emulparams/avr4433.sh: Likewise.
1385 * emulparams/avr44x4.sh: Likewise.
1386 * emulparams/avr85xx.sh: Likewise.
1387 * emulparams/avrmega103.sh: Likewise.
1388 * emulparams/avrmega161.sh: Likewise.
1389 * emulparams/avrmega603.sh: Likewise.
1390 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1392 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1394 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1395 archive is excluded.
1397 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1399 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1400 (eshelf_nbsd.c): New rule.
1401 (eshlelf_nbsd.c): New rule.
1402 * Makefile.in: Regenerate.
1403 * configure.tgt (sh*le-*-netbsdelf*): New target.
1404 (sh*-*-netbsdelf*): New target.
1405 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1406 * ld/emulparams/shelf_nbsd.sh: New emulation.
1407 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1409 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1411 * po/es.po: New file: Spanish translation.
1412 * configure.in (ALL_LINGUAS): Add es.
1413 * configure: Regenerate.
1415 2002-01-06 John Marshall <jmarshall@acm.org>
1417 * ld.texinfo: Note that --emit-relocs is currently only
1418 implemented for ELF.
1420 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1422 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1423 of bfd_section_list_remove and bfd_section_list_insert macros.
1424 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1425 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1427 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1429 * configure.tgt (x86_64-*-netbsd*): New target.
1431 2001-12-21 Tom Rix <trix@redhat.com>
1433 (gld*_create_output_section_statements): New function.
1434 For -binitfini support.
1435 * emultempl/aix.em (gld*_before_parse): Fix comment.
1436 * emultempl/aix.em (gld*_parse_args): Fix comment.
1438 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1440 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1442 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1444 * configure.tgt (arm-*-netbsdelf*): Add target.
1445 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1446 * emulparams/armelf_nbsd.sh: Added.
1447 * Makefile.am: Add rules for earmelf_nbsd.
1448 * Makefile.in: Regenerate.
1450 2001-12-19 Andreas Jaeger <aj@suse.de>,
1451 Susanne Oberhauser <froh@suse.de>
1453 * configure.host: Add rules for x86_64-*linux-gnu. Change
1454 s390x-linux entry to use gcc to report configuration, replace gcc
1455 with $CC in s390-linux
1457 2001-12-19 Andreas Jaeger <aj@suse.de>
1459 * ld.texinfo (VERSION): Fix markup.
1461 2001-12-18 matthew green <mrg@eterna.com.au>
1463 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1464 (m68kelfnbsd.c): New rule.
1465 * Makefile.in: Regenerate.
1466 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1467 (m68*-*-netbsd*4k*): .. this.
1468 (m68*-*-netbsdelf*): New target.
1469 (m68*-*-netbsd*): Also include ELF support.
1470 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1471 * emulparams/m68kelfnbsd.sh: New emulation.
1473 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1475 * ldgram.y (vers_node): Support anonymous version tags.
1476 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1477 tag is not defined together with non-anonymous versions.
1478 * ld.texinfo: Document it.
1480 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1482 * po/tr.po: New file: Turkish translation.
1483 * configure.in (ALL_LINGUAS): Add tr.
1484 * configure: Regenerate.
1486 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1488 * Makefile.am: Add rules for eelf64alpha_nbsd.
1489 * Makefile.in: Regenerate.
1490 * configure.tgt (alpha*-*-netbsd*): Set
1491 targ_emul to elf64alpha_nbsd.
1492 * emulparams/elf64alpha_nbsd.sh: Added.
1494 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1496 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1497 section_tail when fiddling with section list.
1498 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1499 broken into separate strings to make translation easier.
1500 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1501 fiddling with section list.
1502 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1504 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1506 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1508 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1510 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1512 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1514 * emultempl/elf32.em (finish): Supply output_bfd
1515 to bfd_elf*_discard_info.
1516 (OPTION_EH_FRAME_HDR): Define.
1517 (longopts): Add --eh-frame-hdr.
1518 (parse_args): Handle it.
1519 (list_options): Add --eh-frame-hdr to help.
1520 * emultempl/hppaelf.em (finish): Supply output_bfd
1521 to bfd_elf*_discard_info.
1522 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1524 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1526 * lexsup.c (parse_args): Don't pass shortopts to second call to
1527 getopt functions. Restore optind rather than decrementing before
1528 second call. Remove errind as it now duplicates last_optind.
1530 2001-12-11 Christopher Faylor <cgf@redhat.com>
1532 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1534 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1535 Richard Henderson <rth@redhat.com>
1537 * Makefile.am: Add support for xstormy16.
1538 * configure.tgt: Add support for xstormy16.
1539 * Makefile.in: Regenerate.
1540 * emulparams/elf32xstormy16.sh: New file.
1541 * scripttempl/xstormy16.sc: New file.
1543 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1545 * Makefile.in (LIB_PATH): Make configurable.
1546 (GENSCRIPTS): Set LIB_PATH in environment.
1547 * configure.in: Substitute LIB_PATH.
1548 * configure: Regenerate.
1549 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1550 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1552 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1554 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1555 describing the -N option so that it is easier to translate into
1558 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1560 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1561 statements describing a single option with a single, newline
1562 escaped fprintf. This allows better translation into other
1565 * ldmain.c (add_archive_element): Combine multiple strings
1566 into a single string to permit better translation into other
1569 2001-12-05 Tom Rix <trix@redhat.com>
1571 * Makefile.am: Remove eaixppc64.
1572 * Makefile.in: Regenerate.
1574 2001-12-04 Tom Rix <trix@redhat.com>
1576 * emultempl/aix.em (choose_target): Change default target to
1577 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1579 (gld*_read_file): Fix typo.
1580 (change_symbol_mode): Add prototype.
1583 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1584 * emulparams/aixrs6.sh : Same.
1585 * emulparams/ppcmacos.sh : Same.
1586 * emulparams/aixppc64.sh : Delete file.
1587 * emultempl/aix.em : Formatting changes.
1589 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1591 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1592 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1594 (OTHER_END_SYMBOLS): Fix formatting.
1595 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1596 (OTHER_END_SYMBOLS): Fix formatting.
1598 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1600 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1602 2001-12-02 Tom Rix <trix@redhat.com>
1604 * configure.tgt : Remove eaixppc64 emulations.
1605 * Makefile.in : Remove eaixppc64.c
1606 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1607 (ldemul_default_target): Same.
1608 * emultempl/gld960.em (gld960_choose_target): Same.
1609 * emultempl/gld960c.em (gld960_choose_target): Same.
1610 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1611 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1612 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1613 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1614 * emultempl/aix.em (choose_target): New function. Handle emulation of
1617 2001-11-27 H.J. Lu <hjl@gnu.org>
1619 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1620 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1621 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1622 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1623 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1624 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1625 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1626 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1628 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1631 (REL_SDATA): Likewise.
1632 (REL_SBSS): Likewise.
1633 (REL_SDATA2): Likewise.
1634 (REL_SBSS2): Likewise.
1635 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1638 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1640 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1642 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1644 2001-11-22 H.J. Lu <hjl@gnu.org>
1646 * Makefile.in: Regenerated with automake based on automake
1647 1.4-8 in RedHat 7.1.
1649 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1651 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1652 (config.status): Delete rule.
1653 Add extra dependencies to cover sourced emulparams files.
1654 * Makefile.in: Regenerate.
1656 * scripttempl/elf.sc: Order <section>, <section>.* and
1657 corresponding linkonce sections as seen in input files.
1658 Formatting fixes. Zero vma of all sections if not relocating.
1659 (STACK): Define and insert if STACK_ADDR defined.
1660 (OTHER_RELOCATING_SECTIONS): Delete.
1661 (OTHER_END_SYMBOLS): Define.
1662 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1663 (OTHER_READWRITE_SECTIONS): Likewise.
1664 (OTHER_GOT_SECTIONS): Likewise.
1665 (OTHER_SDATA_SECTIONS): Likewise.
1666 (OTHER_BSS_SECTIONS): Likewise.
1667 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1668 (OTHER_READWRITE_SECTIONS): Likewise.
1669 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1670 (OTHER_READWRITE_SECTIONS): Likewise
1672 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1673 (STACK_ADDR): Define.
1674 * emulparams/armelf_oabi.sh: As for armelf.sh.
1675 * emulparams/elf32mcore.sh: As for armelf.sh.
1676 * emulparams/h8300elf.sh: As for armelf.sh.
1677 * emulparams/mn10200.sh: As for armelf.sh.
1678 * emulparams/shelf.sh: As for armelf.sh.
1680 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1681 (OTHER_END_SYMBOLS): Define.
1682 * emulparams/m32relf.sh: As for elf32fr30.sh.
1683 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1684 * emulparams/h8300self.sh: As for elf32fr30.sh.
1686 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1687 defines with RELOCATING test.
1688 (OTHER_SDATA_SECTIONS): Likewise.
1689 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1690 (OTHER_END_SYMBOLS): ..this.
1691 * emulparams/crislinux.sh: As for criself.sh.
1693 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1695 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1696 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1697 normal and linkonce sections as seen in input files.
1698 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1699 (TEXT_DYNAMIC): Likewise.
1700 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1701 (OTHER_SDATA_SECTIONS): Likewise.
1702 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1703 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1704 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1705 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1706 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1707 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1708 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1709 sections as seen in input files.
1710 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1711 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1713 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1714 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1715 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1716 (OTHER_SECTIONS): Instead, use this..
1717 (OTHER_END_SYMBOLS): ..and this.
1719 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1720 * emulparams/elf32bsmip.sh: Likewise.
1721 * emulparams/elf32btsmip.sh: Likewise.
1722 * emulparams/elf32ebmip.sh: Likewise.
1723 * emulparams/elf32lmip.sh: Likewise.
1724 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1725 * emulparams/elf32lsmip.sh: Likewise.
1726 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1727 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1728 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1729 * emulparams/elf64btsmip.sh: Likewise.
1730 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1731 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1732 * emulparams/elf32ppclinux.sh: Likewise.
1733 * emulparams/elf32ppcsim.sh: Likewise.
1734 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1735 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1736 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1737 * emulparams/h8300self.sh: Likewise.
1738 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1739 * emulparams/sh.sh: Comment.
1740 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1741 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1742 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1744 2001-11-21 David Heine <dlheine@tensilica.com>
1745 Alan Modra <amodra@bigpond.net.au>
1747 * ldlang.c (map_input_to_output_sections): Replace "break"
1748 accidentally removed with 2001-08-03 change.
1749 (lang_gc_sections_1): Likewise.
1751 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1753 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1755 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1757 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1758 of false when calling lang_size_sections.
1759 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1761 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1763 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1764 function when LDEMUL_FINISH isn't set to the same name. Don't
1765 call ${LDEMUL_FINISH}.
1766 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1767 * emultempl/armelf.em (arm_elf_finish): Call
1768 gld${EMULATION_NAME}_finish.
1769 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1770 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1771 hppaelf_layout_sections_again if necessary.
1772 (need_laying_out): New var.
1773 (hppaelf_layaout_sections_again): Rename to
1774 hppaelf_layout_sections_again. Clear need_laying_out.
1775 (PARSE_AND_LIST_OPTIONS): Format text.
1777 2001-11-14 H.J. Lu <hjl@gnu.org>
1779 * emultempl/armelf.em (arm_elf_finish): Renamed from
1780 gld${EMULATION_NAME}_finish.
1781 (LDEMUL_FINISH): Set to arm_elf_finish.
1783 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1785 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1786 (struct ld_emulation_xfer_struct): Use it.
1788 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1790 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1791 additional symbols referenced by newer crt0.o files from HP.
1793 2001-11-12 Anthony Green <green@redhat.com>
1795 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1797 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1799 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1800 * Makefile.in: Regenerate.
1802 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1804 * ld.texinfo: Use @command for commands, @option for options.
1805 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1807 * Makefile.in: Rebuild.
1809 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1811 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1812 Add support for targets.
1814 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1816 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1817 * configure: Regernate.
1818 * po/fr.po: New file.
1819 * po/sv.po: New file.
1821 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1823 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1824 as little endian default and to support big endian.
1826 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1828 * ld.texinfo (Options): Document new option, -nostdlib.
1829 * lexsup.c (OPTION_NOSTDLIB): New definition.
1830 (ld_options): Add entry for "nostdlib".
1831 (parse_args): Handle OPTIONS_NOSTDLIB.
1832 * ldfile.c (ldfile_add_library_path): Don't add directories
1833 to the search path if they weren't specified on the command line
1834 and -nostdlib was specified.
1835 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1837 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1839 * lexsup.c (parse_args): Prevent infinite parsing loop when
1840 "-rpath.a" is specified on the command line.
1841 Replace calls to fprintf with calls to einfo.
1843 2001-10-31 John Marshall <jmarshall@acm.org>
1845 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1846 appear only once across all the linker scripts involved in a link
1847 invocation no longer applies. Make the documentation reflect
1850 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1852 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1854 (sh-*-linux*): Added targ_extra_libpath.
1856 2001-10-31 David Heine <dlheine@tensilica.com>
1858 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1859 for padding statements.
1861 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1863 * configure.tgt (mmix-*-*): New target.
1864 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1865 Add dependencies to match.
1866 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1867 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1868 scripttempl/mmo.sc: New files.
1869 * gen-doc.texi: @set MMIX.
1870 * ld.texinfo: Ditto.
1871 [MMIX] Add MMIX node.
1872 * Makefile.in: Regenerate.
1874 2001-10-29 Kazu Hirata <kazu@hxi.com>
1876 * ldlang.c: Fix a comment typo.
1878 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1880 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1881 entries, and match *-*-linux*.
1883 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1885 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1886 with ldlex_script, ldlex_popstate.
1887 (ifile_p1): Likewise.
1888 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1890 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1891 to 1. Don't BEGIN(SCRIPT).
1892 (lex_redirect): Similarly.
1893 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1895 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1897 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1898 __EH_FRAME_END__ and accept eh frames into data section.
1899 Add ctor and dtor sections.
1901 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1903 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1904 (auto-export): Fix indentation.
1906 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1908 * pe-dll.c (autofilter_objectlist): Add startup objects
1910 (auto-export): Constify char * p.
1911 Extract file basename and use strcmp rather than ststr
1914 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1916 * ldmain.c (get_emulation): Improve comment about the handling
1919 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1921 * po/POTFILES.in: Regenerate.
1923 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1925 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1926 -z nocopyreloc and -z nocombreloc usage strings.
1928 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1930 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1933 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1935 * scripttempl/armaout.sc: Place .bss section after end of aligned
1936 data section to match behaviour of aout code in constructrion of
1939 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1941 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1942 startup files for mingw32 dlls to list.
1944 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1946 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1948 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1950 * configure.tgt (targ): Add arm9e-*-elf.
1952 2001-10-05 H.J. Lu <hjl@gnu.org>
1954 * genscripts.sh: Fix a typo in the last change.
1956 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1958 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1959 -z nocombreloc in usage.
1961 2001-10-03 Jim Blandy <jimb@redhat.com>
1963 * genscripts.sh: Include a comment at the top of each generated
1964 script, explaining its purpose.
1966 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1968 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1969 * NEWS: Mention -z nocopyreloc.
1970 * ld.texinfo (Options): Describe nocopyreloc.
1972 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1974 * configure: Regenerate.
1976 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1978 * ldver.h (ld_program_version): Remove declaration.
1979 * lexsup.c (parse_args): Move printing of copyright message..
1980 * ldver.c (ldversion): .. to here.
1981 Use BFD_VERSION_STRING in place of BFD_VERSION.
1982 (ld_program_version): Remove.
1983 * Makefile.am (Makefile): Depend on bfd/configure.in.
1985 * Makefile.in: Regenerate.
1987 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1989 * Makefile.am: Update dependencies with "make dep-am".
1990 * Makefile.in: Regenerate.
1992 2001-09-29 John Reiser <jreiser@BitWagon.com>
1994 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1995 * lexsup.c: Add --no-define-common commandline option.
1996 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1997 * ldlex.l: Likewise.
1998 * ld.h: Add command_line.inhibit_common_definition.
1999 * ldmain.c (main): Initialize.
2000 * ld.texinfo: Document.
2002 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2004 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2006 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2008 * ldmisc.c (USE_STDARG): Remove.
2009 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2014 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2015 declarations. Update copyright.
2017 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2019 * pe-dll.c: Remove obsoleted declaration of
2020 pe_get_data_import_dll_name.
2021 (pe_create_import_fixup): Fix thinko.
2023 * ld.texinfo(enable-auto-import): Clarify the explanation.
2025 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2027 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2028 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2029 DLL_SUPPORT controlled code.
2031 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2033 * emultempl/pe.em(pe_data_import_dll): Make static.
2034 (pe_get_data_import_dll_name): New accessor function.
2035 * pe-dll.c(pe_create_import_fixup): call
2036 pe_get_data_import_dll_name() from pe.em, instead of
2037 directly accessing pe_data_import_dll variable from pe.em.
2039 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2041 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2042 (def_file_add_directive): Use ISSPACE instead of isspace.
2043 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2044 isdigit/isxdigit/isalpha/isalnum.
2045 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2046 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2047 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2048 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2050 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2051 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2053 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2054 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2055 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2056 (ctor_prio): Use ISDIGIT instead of isdigit.
2057 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2058 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2059 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2061 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2062 (stricpy): Use TOLOWER instead of isupper/tolower.
2063 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2064 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2065 (lex_warn_invalid): Use ISPRINT instead of isprint.
2066 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2067 (main): For gettext, also set the LC_CTYPE locate facet.
2068 (add_keepsyms_file): Use ISSPACE instead of isspace.
2069 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2070 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2071 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2072 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2073 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2074 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2075 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2076 (quoteput): Use ISSPACE instead of isspace.
2077 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2080 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2082 * deffilep.y (def_stash_module): Constify "name" param.
2084 * pe-dll.c: Replace CONST with const throughout.
2085 (quick_symbol): Constify "n1", "n2", "n3" params.
2086 (make_singleton_name_thunk): Constify "import" param. Make
2087 "buffer_len" a size_t.
2088 (make_import_fixup_entry): Constify "name", "fixup_name",
2089 "dll_symname" params.
2090 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2091 (pe_get32): Likewise.
2092 (pe_implied_import_dll): Likewise.
2094 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2095 (sort_by_section_name): Likewise.
2097 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2098 (make_import_fixup): Cast printf arg, rel->address to long rather
2100 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2102 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2104 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2105 defines BufferSize. Increase buffer size by one.
2107 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2109 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2111 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2113 * configure.tgt: Add arm-openbsd target.
2115 2001-09-12 H.J. Lu <hjl@gnu.org>
2117 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2119 (ALL_64_EMULATIONS): Here.
2120 * Makefile.in: Regenerated.
2122 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2124 * emultempl/pe.em(make_import_fixup): change signature to
2125 take asection as well as arelec; we need this for proper
2126 error reporting. Only call pe_create_import_fixup() if
2127 there is no attempt to add a constant addend to the reloc;
2128 otherwise, report error condition.
2129 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2130 since final argument is a pointer to make_import_fixup().
2131 Change call to cb() to match make_import_fixup() signature.
2132 (make_import_fixup_mark): make buffer_len unsigned.
2133 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2135 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2137 * ld.texinfo: add verbose documentation for auto-import
2138 direct-addressing workaround, to compliment the terse
2141 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2143 * scripttempl/v850.sc: Add gcc_except_table sections.
2145 2001-09-11 Jeffrey A Law (law@cygnus.com)
2147 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2148 * emulparams/h8300self.sh: Similarly.
2150 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2152 * ld.texinfo (Options, --stack): Correct default value for stack
2155 2001-09-05 Tom Rix <trix@redhat.com>
2157 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2159 2001-09-03 Andreas Jaeger <aj@suse.de>
2161 * emultempl/beos.em: Declare prototypes for comparions functions,
2164 2001-09-02 Andreas Jaeger <aj@suse.de>
2166 * emultempl/aix.em: Add missing prototype.
2167 * emultempl/lnk960.em: Likewise.
2168 * emultempl/vanilla.em: Likewise.
2169 * emultempl/armcoff.em: Likewise.
2170 * emultempl/armelf_oabi.em: Likewise.
2171 * emultempl/beos.em: Likewise.
2172 * emultempl/gld960c.em: Likewise.
2173 * emultempl/gld960.em: Likewise.
2175 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2176 for prototype declaration.
2178 2001-08-31 Eric Christopher <echristo@redhat.com>
2179 Jason Eckhardt <jle@redhat.com>
2181 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2183 2001-08-31 Andreas Jaeger <aj@suse.de>
2185 * emultempl/pe.em: Add missing prototypes.
2186 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2187 pe_find_data_imports.
2188 (pr_sym): Add unused attribute.
2190 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2192 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2193 default from coff to elf.
2195 2001-08-29 Jeff Law <law@redhat.com>
2197 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2199 * emulparams/h8300self.sh: Similarly.
2201 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2203 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2205 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2206 * configure.tgt (h8300-*-elf*): New case.
2207 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2208 * emulparams/h8300self.sh: New file.
2209 * Makefile.in: Regenerated.
2211 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2213 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2216 2001-08-27 Linus Nordberg <linus@swox.com>
2217 Alan Modra <amodra@bigpond.net.au>
2219 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2220 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2222 * Makefile.in: Regenerate.
2223 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2224 entries to correct alphabetical position.
2225 * emulparams/elf64ppc.sh: New.
2226 * emulparams/elf64lppc.sh: New.
2228 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2230 * ldmain.c (main): Declare BSIZE as static.
2232 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2234 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2235 into .rel.dyn resp. .rela.dyn if combreloc.
2236 (get_script): If .x linker script is equal to .xn, only put it
2237 once into the binary.
2238 Add .xc and .xsc scripts.
2239 (parse_args): Handle -z combreloc and -z nocombreloc.
2240 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2241 For .xc and .xsc scripts put all .rel* or .rela* input sections
2242 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2243 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2245 Strip trailing whitespace from script.
2246 Generate .xc and .xsc scripts if requested.
2247 * ldmain.c (main): Initialize link_info.combreloc and
2248 link_info.spare_dynamic_tags.
2249 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2250 (ld_options): Add --spare-dynamic-tags option.
2251 (parse_args): Likewise.
2252 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2253 * ldint.texinfo: Document .xc and .xsc linker scripts.
2254 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2256 2001-08-22 H.J. Lu <hjl@gnu.org>
2258 * emulparams/elf32fr30.sh: Add a newline.
2260 2001-08-21 Andreas Jaeger <aj@suse.de>
2262 * deffilep.y: Add missing prototypes.
2263 * pe-dll.c: Likewise.
2265 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2267 * ldlang.c (insert_pad): Fix typos in last patch.
2269 * ldlang.c: When traversing lang_statement_union_type lists,
2270 consistently use "header.next" rather than "next".
2271 * mpw-eppcmac.c: Likewise.
2272 * emultempl/beos.em: Likewise.
2273 * emultempl/hppaelf.em: Likewise.
2274 * emultempl/pe.em: Likewise.
2275 * ldlang.h (union lang_statement_union): Remove "next" field.
2277 * ldlang.c (insert_pad): Use offsetof macro.
2278 (lang_size_sections): Always neuter padding statements.
2279 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2281 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2282 passed to lang_size_sections.
2283 (pe_exe_fill_sections): Likewise.
2284 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2285 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2287 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2289 * emultempl/aix.em: Formatting fixes.
2291 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2293 * ldlang.c (insert_pad): Make use of an existing pad statement if
2294 available. Move code calculating alignment, adjusting section
2295 alignment power, and adjusting dot to ..
2296 (size_input_section): .. here. Remove unused relax param.
2297 (lang_size_sections): Change boolean `relax' param to boolean *.
2298 Adjust call to size_input_section. Make use of insert_pad to
2299 place pad after the assignment statement. If relaxing, zap
2301 (reset_memory_regions): Reset output_bfd section sizes too.
2302 (relax_again): Move to..
2303 (lang_process): ..here. Adjust call to lang_size_sections, and
2304 remove duplicated code.
2305 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2307 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2309 * ld.texinfo: Document that fill values now use the four least
2311 * emulparams/elf32fr30.sh (NOP): Update.
2312 * emulparams/elf32mcore.sh: Likewise.
2313 * emulparams/elf64_s390.sh: Likewise.
2314 * emulparams/elf_i386.sh: Likewise.
2315 * emulparams/elf_i386_be.sh: Likewise.
2316 * emulparams/elf_i386_chaos.sh: Likewise.
2317 * emulparams/elf_i386_ldso.sh: Likewise.
2318 * emulparams/elf_s390.sh: Likewise.
2319 * emulparams/elf_x86_64.sh: Likewise.
2320 * emulparams/i386moss.sh: Likewise.
2321 * emulparams/i386nw.sh: Likewise.
2322 * emulparams/m68kelf.sh: Likewise.
2323 * scripttempl/elf.sc: Update NOP comment.
2324 * scripttempl/elfi370.sc: Likewise.
2325 * scripttempl/elfm68hc11.sc: Likewise.
2326 * scripttempl/elfm68hc12.sc: Likewise.
2327 * scripttempl/nw.sc: Likewise.
2329 2001-08-15 Tom Rix <trix@redhat.com>
2331 * ldgram.y (saved_script_handle): Initialize to NULL.
2332 * ldmain.c (main): Change check on saved_script_handle.
2334 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2336 * emultempl/elf32.em: Formatting fixes.
2337 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2338 looking at sec->owner.
2339 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2340 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2341 unused code, and reorganize orphan section placement code.
2343 * ldlang.c (wild_doit): Rename to lang_add_section.
2344 * ldlang.h: Here too.
2345 * mpw-elfmips.c: And here.
2346 * emultempl/beos.em: And here.
2347 * emultempl/elf32.em: And here.
2348 * emultempl/hppaelf.em: And here.
2349 * emultempl/pe.em: And here.
2351 2001-08-13 Richard Henderson <rth@redhat.com>
2353 * emultempl/needrelax.em: New file.
2354 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2355 * Makefile.am (eelf64_ia64.c): Depend on it.
2356 * Makefile.in: Rebuild.
2358 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2360 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2361 output_section is set non-NULL.
2363 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2364 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2365 needlessly create an output_section_statement. Treat a correctly
2366 named output_section_statement with NULL bfd_section as compatible.
2368 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2370 * emultempl/generic.em: Support EXTRA_EM_FILE.
2371 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2372 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2373 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2374 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2375 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2376 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2377 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2378 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2379 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2380 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2382 2001-08-12 Richard Henderson <rth@redhat.com>
2384 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2385 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2386 scripttempl/v850.sc: Keep .jcr data.
2388 2001-08-12 H.J. Lu <hjl@gnu.org>
2389 Andrew Haley <aph@cambridge.redhat.com>
2390 Nick Clifton <nickc@redhat.com>
2392 * ldgram.y (had_script): Change name to saved_script_handle.
2393 Change type to file handle.
2394 * ld.h (had_script): Rename and retype.
2395 * ldfile.c (ldfile_open_command_file): Save the file handle
2396 used in saved_script_handle.
2397 * lexsup.c (parse_args): Do not allow -c option to alter
2398 saved_script_handle.
2399 * ldmain.c (main): Print out the linker script used if
2400 --verbose is given. Check saved_script_handle to obtain the
2401 external linker script used, or if NULL, dump the builtin
2403 * ld.texinfo: Document that --verbose now dumps the linker
2404 script used, regardless of whether it was an internal or an
2407 2001-08-10 Andreas Jaeger <aj@suse.de>
2409 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2411 * configure: Regenerate.
2413 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2415 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2417 * scripttempl/elf.sc: Move non-text .dynamic section before
2418 .plt/.got/.sdata* group.
2419 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2420 (OTHER_SDATA_SECTIONS): Add.
2421 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2423 * emulparams/crislinux.sh: Likewise.
2424 * emulparams/elf32b4300.sh: Likewise.
2425 * emulparams/elf32bmip.sh: Likewise.
2426 * emulparams/elf32bmipn32.sh: Likewise.
2427 * emulparams/elf32bsmip.sh: Likewise.
2428 * emulparams/elf32btsmip.sh: Likewise.
2429 * emulparams/elf32ebmip.sh: Likewise.
2430 * emulparams/elf32elmip.sh: Likewise.
2431 * emulparams/elf32l4300.sh: Likewise.
2432 * emulparams/elf32lmip.sh: Likewise.
2433 * emulparams/elf32lsmip.sh: Likewise.
2434 * emulparams/elf32ltsmip.sh: Likewise.
2435 * emulparams/elf64bmip.sh: Likewise.
2436 * emulparams/elf64btsmip.sh: Likewise.
2437 * emulparams/elf64ltsmip.sh: Likewise.
2439 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2441 * genscripts.sh: Source the emulparams script before each output
2442 script is generated so that variables like `RELOCATING' may affect
2443 variables defined in the emulparams script.
2445 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2447 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2450 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2451 ie. iterate over wild_statement.section_list.
2452 (gld${EMULATION_NAME}_place_orphan): Likewise.
2454 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2456 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2457 .fini[0-4] sections used by _exit
2458 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2459 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2460 * scripttempl/elfm68hc11.sc: Likewise.
2462 2001-08-03 H.J. Lu <hjl@gnu.org>
2464 * emultempl/beos.em (init): Add the missing initialization.
2466 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2468 * ld.texinfo (Input Section Basics): Clarify ordering of output
2470 * ldlang.c (callback_t): Add wildcard_list param.
2471 (walk_wild_section): Remove "section" param. Rewrite for
2472 lang_wild_statement_type change. Remove unique_section_p test.
2473 (walk_wild_file): Remove "section" param.
2474 (walk_wild): Remove "section" and "file" params.
2475 (lang_gc_wild): Likewise.
2476 (wild): Likewise. Modify for lang_wild_statement_type change.
2477 (wild_sort): Likewise. Add "sec" param.
2478 (gc_section_callback): Likewise.
2479 (output_section_callback): Likewise. Do unique_section_p test.
2480 (map_input_to_output_sections): Modify call to wild.
2481 (lang_gc_sections_1): Likewise.
2482 (print_wild_statement): Modify for lang_wild_statement_type
2484 (lang_add_wild): Replace filename, filenames_sorted param with
2485 filespec. Replace section_name, sections_sorted,
2486 exclude_filename_list with section_list.
2487 * ldlang.h (lang_add_wild): Here too.
2488 (lang_wild_statement_type): Replace section_name, sections_sorted,
2489 and exclude_filename_list with section_list.
2490 * ldgram.y (current_file): Delete.
2491 (%union): Add wildcard_list.
2492 (file_NAME_list): Set type to wildcard_list. Build a linked list
2493 rather than calling lang_add_wild for each entry.
2494 (input_section_spec_no_keep): Call lang_add_wild here instead.
2495 * ld.h (struct wildcard_list): Declare.
2496 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2498 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2500 * ldmain.c (main): initialize link_info.pei386_auto_import
2501 * pe-dll.c: new tables for auto-export filtering
2502 (auto_export): change API, pass abfd for contextual filtering.
2503 Loop thru tables of excluded symbols instead of comparing
2506 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2508 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2509 static variable current_sec (static struct sec *). Add
2510 forward declaration for add_bfd_to_link.
2511 (process_def_file): Don't export undefined symbols. Do not
2512 export symbols starting with "_imp__". Call auto_export()
2514 (pe_walk_relocs_of_symbol): New function.
2515 (generate_reloc): add optional extra debugging
2516 (pe_dll_generate_def_file): eliminate extraneous initial blank
2518 (make_one): enlarge symtab to make room for __nm__ symbols
2519 (DATA auto-import support).
2520 (make_singleton_name_thunk): New function.
2521 (make_import_fixup_mark): New function.
2522 (make_import_fixup_entry): New function.
2523 (pe_create_import_fixup): New function.
2524 (add_bfd_to_link): Specify that 'name' argument is a CONST
2526 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2527 declare new functions pe_walk_relocs_of_symbol and
2528 pe_create_import_fixup.
2529 * emultempl/pe.em: add new options --enable-auto-import,
2530 --disable-auto-import, and --enable-extra-pe-debug.
2531 (make_import_fixup): New function.
2532 (pe_find_data_imports): New function.
2533 (pr_sym): New function.
2534 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2535 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2538 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2540 * ld.texinfo: add additional documentation for
2541 --export-all-symbols. Document --out-implib,
2542 --enable-auto-image-base, --disable-auto-image-base,
2543 --dll-search-prefix, --enable-auto-import, and
2544 --disable-auto-import.
2545 * ldint.texinfo: Add detailed documentation on auto-import
2548 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2550 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2553 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2555 * Makefile.am: Update dependencies with "make dep-am".
2556 * Makefile.in: Regenerate
2558 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2560 * ldcref.c (check_section_sym_xref): New function.
2561 (check_nocrossrefs): Call it.
2562 (check_nocrossref): Interate over h->refs here instead of..
2563 (check_refs): ..here. Pass in the symbol name, section, and bfd
2564 rather than hash_entry pointers.
2565 (struct check_refs_info): Keep symbol name rather than hash entry.
2567 (check_reloc_refs): Tweak for above changes in check_refs_info.
2568 Only report references to section syms when symname is NULL to
2569 prevent duplicate messages for the same reloc.
2571 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2573 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2574 available. Do not print NULL trees.
2575 (exp_print_token): Print unknown tokens with values > 126 as
2576 decimal values not ASCII characters.
2578 * ldlang.c (lang_leave_overlay): If a region is specified assign
2579 it to all sections inside the overlay unless they have been
2580 assigned to the own, non-default, memory region.
2582 * README: Add header for consistency with other README files.
2584 2001-07-14 H.J. Lu <hjl@gnu.org>
2586 * emultempl/elf32.em (output_prev_sec_find): Never return
2587 bfd_abs_section_ptr, bfd_com_section_ptr nor
2588 bfd_und_section_ptr.
2590 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2592 * Makefile.am (em32relf.c): Change dependency from generic.em to
2594 * Makefile.in: Regenerate.
2596 2001-07-14 matthew green <mrg@eterna.com.au>
2598 * configure.tgt (i386-*-netbsdelf*): New target.
2599 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2601 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2603 * emultempl/elf32.em (output_prev_sec_find): New.
2604 (place_orphan): Use it.
2606 2001-07-11 H.J. Lu <hjl@gnu.org>
2608 * ldmain.c (main): Fix typos in the last change.
2610 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2612 * ldmain.c (main): Disallow -F and -f without -shared.
2614 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2616 * emultempl/pe.em (after_open): Check for the output_bfd not
2617 having any coff_data structure allocated to it.
2619 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2621 * emultempl/elf32.em: Do not assuming that contents of the buffer
2622 returned from basename function will remain unchanged accross other
2625 2001-07-03 H.J. Lu <hjl@gnu.org>
2627 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2628 2001-07-03. It creates dynamic entries even for static binaries.
2630 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2632 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2633 (DYNAMIC): Use it to reserve few dynamic entries for
2636 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2638 * emulparams/hppa64linux.sh: New file.
2639 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2640 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2641 (ehppa64linux.c): Add rule to make it.
2643 * Makefile.in: Regenerate.
2645 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2647 * ld.texinfo (Options, -r): Mention restrictions when using
2648 different object formats.
2650 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2652 * ldlang.c (lang_check): Emit fatal error if relocatable link
2653 between different object flavours with relocations in input.
2655 2001-06-19 H.J. Lu <hjl@gnu.org>
2657 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2658 (--version-script): Mention the language support.
2660 2001-06-19 H.J. Lu <hjl@gnu.org>
2662 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2664 2001-06-18 H.J. Lu <hjl@gnu.org>
2666 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2667 (diststuff): Add $(MANS).
2668 * Makefile.in: Regenerated.
2672 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2674 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2675 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2676 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2677 * ld.h (args_type): Remove member export_dynamic. All users
2678 changed to use struct bfd_link_info member.
2680 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2681 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2682 * Makefile.in: Regenerate.
2684 2001-06-18 H.J. Lu <hjl@gnu.org>
2686 * ldlang.c (init_os): Add the newline to the einfo call.
2687 (lang_check): Likewise.
2688 (lang_do_version_exports_section): Likewise.
2690 2001-06-15 H.J. Lu <hjl@gnu.org>
2692 * lexsup.c (parse_args); Save optind to report unrecognized
2695 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2697 * ldlang.c (lang_check): Emit fatal error if relocatable link
2698 between different object flavours.
2700 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2701 Set new link_info member export_dynamic.
2702 * ldmain.c (main): Initialize new link_info member export_dynamic.
2704 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2706 * ldlang.c (walk_wild): Only call walk_wild_file if
2707 lookup_name returns something.
2708 (lookup_name): If load_symbols fails, return NULL.
2709 (load_symbols): Change to a boolean function.
2710 (open_input_bfds): If load_symbols fails then do not make the
2713 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2715 * ldlang.c (record_bfd_errors): Remove.
2717 * emultempl/aix.em: Fix copyright dates.
2719 2001-06-07 Andreas Jaeger <aj@suse.de>
2721 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2722 (TEXT_START_ADDR): Likewise.
2724 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2726 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2728 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2730 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2732 2001-05-31 H.J. Lu <hjl@gnu.org>
2734 * ldlang.c (open_input_bfds): Don't change the bfd error
2735 handler whilst loading symbols.
2737 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2739 * configure.tgt: Remove i370-mvs architecture, it is not currently
2742 2001-05-25 H.J. Lu <hjl@gnu.org>
2744 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2745 like emulparams/aixppc.sh.
2747 2001-05-25 H.J. Lu <hjl@gnu.org>
2749 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2750 setting of output_filename after bfd_scan_arch.
2751 * emultempl/pe.em: Likewise.
2753 2001-05-25 H.J. Lu <hjl@gnu.org>
2755 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2756 like emulparams/aixppc.sh.
2758 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2759 instead of ${srcdir}/emultempl/stringify.sed.
2761 2001-05-25 Timothy Wall <twall@oculustech.com>
2763 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2766 2001-05-25 Alan Modra <amodra@one.net.au>
2768 * configure.host: Replace linuxoldld with linux*oldld.
2769 * configure.tgt: Likewise.
2771 2001-05-24 H.J. Lu <hjl@gnu.org>
2773 * emultempl/stringify.sed: Removed again.
2775 2001-05-24 H.J. Lu <hjl@gnu.org>
2777 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2778 (gld${EMULATION_NAME}_before_parse): Initialize
2779 ldfile_output_architecture, ldfile_output_machine and
2780 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2781 * emultempl/beos.em: Likewise.
2782 * emultempl/elf32.em: Likewise.
2783 * emultempl/linux.em: Likewise.
2784 * emultempl/mipsecoff.em: Likewise.
2785 * emultempl/pe.em: Likewise.
2786 * emultempl/sunos.em: Likewise.
2788 2001-05-24 Tom Rix <trix@redhat.com>
2790 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2791 udate import file format.
2792 (change_symbol_mode) New, same
2793 (is_syscall) New, same
2794 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2795 * emulparams/aixppc64.sh : same
2796 * emulparams/aixrs6.sh : same
2797 * emulparams/ppcmacos.sh : same
2798 * emultempl/aix.em : use strtoull to parse options
2799 * Makefile.am : add eaixppc64 emulation for xcoff64
2800 * Makefile.in : same
2801 * configure.tgt : same
2803 * scripttempl/aix.sc : default text section offset to 0x10000000
2804 default data section offset to 0x20000000
2805 add .sv3264 and .sv64 pseudo sections
2806 loader and debug sections use the currect section offset.
2808 * emultempl/aix.em : Add xcoff64 support
2809 Add -binitfini support
2810 (gld${EMULATION_NAME}_before_parse) -binitfini
2811 (gld${EMULATION_NAME}_parse_args) same
2812 (gld${EMULATION_NAME}_before_allocation) format change for special
2815 * emulparams/aixppc64.sh : New file for xcoff64 support
2817 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2819 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2820 variable to avoid non-portable shell construct.
2822 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2824 * ldmain.c (get_emulation): Add -mips5 command line argument.
2826 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2828 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2829 (ELF_INTERPRETER_NAME): Define it.
2830 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2832 * configure.tgt (targ_emul, targ_extra_emuls)
2833 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2834 as primary, elf_i386 as extra.
2835 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2836 (eelf_i386_ldso.c): New rule.
2837 * Makefile.in: Rebuilt.
2839 2001-05-22 Nick Clifton <nickc@redhat.com>
2841 * lexsup.c (ld_options): Allow -I to be an alias for
2842 --dynamic-linker. This is for Solaris compatability.
2843 * ld.texinfo: Document that -I can be used.
2846 2001-05-16 Alan Modra <amodra@one.net.au>
2848 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2849 whether an input section is the first one assigned to an output
2851 Assorted formatting fixes.
2853 2001-05-14 DJ Delorie <dj@delorie.com>
2855 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2856 * Makefile.in: Ditto.
2858 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2860 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2861 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2863 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2865 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2867 * ldlang.c (lang_process): Call bfd_merge_sections.
2869 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2871 * ldgram.y: Fix typo.
2873 2001-05-03 H.J. Lu <hjl@gnu.org>
2875 * emultempl/elf32.em: Include "libiberty.h".
2876 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2877 basename of the bfd filename.
2878 (gld${EMULATION_NAME}_stat_needed): Likewise.
2879 (gld${EMULATION_NAME}_try_needed): Likewise.
2880 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2882 2001-05-02 H.J. Lu <hjl@gnu.org>
2884 * emultempl/pe.em: Include <ctype.h>.
2886 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2888 * emulparams/elf32openrisc.sh: New file.
2890 * Makefile.am: Add OpenRISC target.
2891 * Makefile.in: Regenerated.
2893 * configure.tgt: Add openrisc-*-* mapping.
2895 2001-05-02 Nick Clifton <nickc@redhat.com>
2897 * emultempl/aix.em: Replace buystring with xstrdup.
2898 * emultempl/beos.em: Replace buystring with xstrdup.
2900 2001-05-02 H.J. Lu <hjl@gnu.org>
2902 * ldfile.c: Include "libiberty.h".
2903 * ldlex.l: Likewise.
2905 * ldmisc.c (buystring): Removed.
2906 * ldmisc.h: Likewise.
2908 * ldfile.c: Replace buystring with xstrdup.
2909 * ldlang.c: Likewise.
2910 * ldlex.l: Likewise.
2911 * ldmain.c: Likewise.
2912 * ldmisc.c: Likewise.
2913 * lexsup.c: Likewise.
2914 * mpw-eppcmac.c: Likewise.
2916 2001-04-30 Andreas Jaeger <aj@suse.de>
2918 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2920 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2922 * ldlang.c (load_symbols): Give emulation a chance
2923 to process unrecognized file before fatal error is
2924 reported, not after.
2926 2001-04-27 Sean McNeil <sean@mcneil.com>
2928 * configure.tgt: Add arm-vxworks target.
2929 * scripttempl/armcoff.sc: Support .text or .data as a section name
2933 2001-04-13 J.T. Conklin <jtc@redback.com>
2935 * ld.texinfo: Document --fatal-warnings.
2938 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2939 warnings have been turned into errors.
2940 * lexsup.c (OPTION_WARN_FATAL): Define.
2941 (ld_options): Entry for --fatal-warnings.
2942 (parse_args): Handle OPTION_WARN_FATAL.
2943 * ld.h (ld_config_type): Add fatal_warnings field.
2945 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2947 * ldmain.c (main): Default to discard_sec_merge.
2948 * lexsup.c (OPTION_DISCARD_NONE): Define.
2949 (ld_options): Add --discard-none.
2950 (parse_args): Handle OPTION_DISCARD_NONE.
2951 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2952 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2953 all its input sections match.
2955 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2957 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2958 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2959 (eelf32ltsmip.c): New target.
2960 (eelf64btsmip.c): Likewise.
2961 (eelf64ltsmip.c): Likewise.
2962 * Makefile.in: Regenerated.
2964 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2966 (mips*-*-linux-gnu*): Likewise.
2968 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2970 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2972 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2975 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2977 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2978 correct value of __Stext here.
2979 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2982 * emulparams/crislinux.sh: Remove FIXME.
2984 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2986 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2987 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2989 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2991 * configure.tgt (cris-*-*): Change default emulation to criself.
2992 (cris-*-*aout*): New rule.
2994 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2996 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2997 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2999 2001-03-26 Andreas Jaeger <aj@suse.de>
3001 * ld.texinfo (Overview): Fix syntax in texi code.
3003 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3005 * ld.texinfo: Put @c man indications to generate the ld man page.
3006 When generating man, define all the variables. Define SEEALSO
3007 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3008 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3009 (ld.1): Generate from ld.texinfo.
3010 * Makefile.in: Regenerate.
3012 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3014 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3015 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3017 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3019 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3020 is an absolute path look only for this file and not along the path.
3022 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3024 * emultempl/elf32.em (OPTION_GROUP): New macro.
3025 Add new option Bgroup to longopts.
3026 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3027 (gld*_list_options): Add -Bgroup and -z defs.
3028 * ld.1: Document -Bgroup and -z defs.
3029 * ld.texinfo: Likewise.
3031 2001-03-07 Michael Meissner <meissner@redhat.com>
3033 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3034 with sections created by -fdata-sections.
3035 (.dynbss,.bss): Ditto.
3037 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3039 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3040 after_allocation_default, not gld..._before_allocation.
3042 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3044 * configure.in (BFD_VERSION): New.
3045 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3046 * configure: Regenerate.
3047 * Makefile.am: Run "make dep-am"
3048 * Makefile.in: Regenerate.
3050 2001-02-26 Timothy Wall <twall@cygnus.com>
3052 * emulparams/elf64_aix.sh: Add additional read-only sections;
3053 uncomment lines which are now required.
3055 2001-02-26 H.J. Lu <hjl@gnu.org>
3057 * ldlang.c (open_input_bfds): Set the bfd error handler so
3058 that problems can be caught whilst loading symbols.
3059 (record_bfd_errors): New function: Report BFD errors and mark
3060 the executable output as being invalid.
3062 2001-02-22 Timothy Wall <twall@cygnus.com>
3064 * configure.host: Add configuration for ia64-*-aix*.
3065 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3066 Add dependencies for eelf64_aix.c.
3067 * Makefile.in: Regenerate.
3068 * configure.tgt: Add ia64-*-aix* mapping.
3069 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3070 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3073 2001-02-20 H.J. Lu <hjl@gnu.org>
3075 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3076 false if we found the file.
3078 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3080 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3081 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3083 2001-02-18 lars brinkhoff <lars@nocrew.org>
3085 * Makefile.am: Add PDP-11 target.
3086 * configure.tgt: Likewise.
3087 * emulparams/pdp11.sh: New file.
3089 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3091 * configure.host: Add a generic FreeBSD configuration entry such that
3092 all [modern] FreeBSD systems on all platforms will look the same.
3094 2001-02-14 H.J. Lu <hjl@gnu.org>
3096 * configure.tgt: Remove mention of earmelf_linux26.
3098 2001-02-13 Richard Henderson <rth@redhat.com>
3100 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3102 2001-02-13 H.J. Lu <hjl@gnu.org>
3104 * ldexp.h (node_type): Add etree_provided.
3105 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3106 type to etree_provided if defined by PROVIDE. Allow updating
3108 (exp_print_tree): Handle etree_provided.
3109 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3112 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3114 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3115 .IA_64.unwind.* pattern to unwind table section and
3116 .IA_64.unwind_info* pattern to unwind info section.
3118 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3120 * Makefile.am: Add linux target for S/390.
3121 * Makefile.in: Likewise.
3122 * configure.host: Likewise.
3123 * configure.tgt: Likewise.
3124 * emulparams/elf64_s390.sh: New file.
3125 * emulparams/elf_s390.sh: New file.
3127 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3129 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3131 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3133 2001-02-06 Philip Blundell <philb@gnu.org>
3135 * Makefile.am: Remove mention of earmelf_linux26.
3136 * Makefile.in: Regenerate.
3138 2001-02-04 Philip Blundell <philb@gnu.org>
3140 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3141 * emulparams/armelf_linux26.sh: Delete.
3142 * configure.tgt: Remove mention of armelf_linux26 emulation.
3144 2001-02-01 Nick Clifton <nickc@redhat.com>
3146 * ld.1: Replace occurances of -oformat with --oformat.
3148 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3150 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3151 load_base is specified.
3153 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3155 * emultempl/elf32.em: Correct spelling in comments and listed
3158 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3160 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3161 default for the first section of a group of overlay sections.
3163 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3165 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3166 * Makefile.in: Regenerate.
3167 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3168 Check for null tool_dir.
3170 2001-01-16 Jim Wilson <wilson@redhat.com>
3172 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3173 and IA_64.unwind.info.
3175 2001-01-16 H.J. Lu <hjl@gnu.org>
3177 * ldlang.c (lang_check): Merge the private data only if the
3178 input file has contents.
3180 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3182 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3184 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3185 enabling search for libmilli. On a relocatable link, make .text
3187 (LDEMUL_AFTER_PARSE): Define.
3188 (hppaelf_finish): Correct spelling of relocatable in comments.
3190 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3191 rummage through the script for sections on the unique list.
3192 Correct length of strncmp for ".note".
3193 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3195 * ldlang.c (unique_section_list): New var.
3196 (unique_section_p): New function.
3197 (walk_wild_section): Don't match sections on unique_section_list.
3198 (lang_add_unique): New function.
3199 Correct spelling of relocatable in comments.
3201 * ldlang.h (struct unique_sections): Declare.
3202 (unique_section_list): Declare.
3203 (unique_section_p): Declare.
3204 (lang_add_unique): Declare.
3206 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3207 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3209 * ld.texinfo (--unique): Update.
3211 2001-01-13 Nick Clifton <nickc@redhat.com>
3213 * lexsup.c (parse_args): Remove spurious white space.
3215 2001-01-12 Nick Clifton <nickc@redhat.com>
3217 * lexsup.c (parse_args): Update copyright date.
3219 2001-01-12 Philip Blundell <pb@futuretv.com>
3221 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3223 2001-01-10 Kazu Hirata <kazu@hxi.com>
3225 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3226 * scripttempl/h8300h.sc: Fix formatting.
3227 * scripttempl/h8300s.sc: Likewise.
3228 * scripttempl/h8500.sc: Likewise.
3229 * scripttempl/h8500b.sc: Likewise.
3230 * scripttempl/h8500c.sc: Likewise.
3231 * scripttempl/h8500m.sc: Likewise.
3232 * scripttempl/h8500s.sc: Likewise.
3234 2000-01-07 David O'Brien <obrien@BSDi.com>
3236 * emultempl/elf32.em: Only perform Linux ld hints processing when
3239 2001-01-07 Philip Blundell <philb@gnu.org>
3241 * ld.texinfo (Bug Reporting): Update email address for reports.
3243 2000-12-31 Nick Clifton <nickc@redhat.com>
3245 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3246 options by checking for a return value of '?' not -1.
3248 2000-12-28 Nick Clifton <nickc@redhat.com>
3250 * lexsup.c (struct ld_option): Add new enum value:
3252 (ld_options[]): Change -omagic, -output and -oformat options
3253 to be EXACTLY_TWO_DASHES.
3254 (OUTPUT_COUNT): Use ARRAY_SIZE.
3255 (parse_args): Change parameter 'argc' to unsigned.
3256 Place EXACTLY_TWO_DASHES options into new really_longopts
3258 If getopt_long_only fails, try calling getopt_long using the
3259 really_longopts array.
3260 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3263 * ldlex.h: Fix prototype of parse_args.
3265 * ld.texinfo: Document that long options starting with 'o'
3266 must be preceeded by two dashes. Change example of a single
3267 dashed long option from -oformat to -trace-symbol.
3269 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3271 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3272 (longopts[]): New --no-default-excludes option.
3273 (gld_${EMULATION_NAME}_list_options): Document.
3274 (gld_${EMULATION_NAME}_parse_args): Handle.
3276 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3278 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3279 whitespace, it breaks the K&R C preprocessor.
3281 2000-12-11 DJ Delorie <dj@redhat.com>
3283 * ld.texinfo: Add notes about --whole-archive and gcc.
3285 2000-11-18 Fred Fish <fnf@be.com>
3287 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3288 (ld_options): Entry for --allow-shlib-undefined.
3289 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3290 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3292 * ld.texinfo: Document new command line switch.
3294 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3296 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3297 .fixup is actually read/write.
3298 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3299 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3300 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3302 2000-12-11 Jan Hubicka <jh@suse.cz>
3304 * NEWS: Add note about x86_64 architecture.
3306 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3308 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3309 Set DWARF2 sections to a VMA of zero.
3311 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3313 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3315 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3316 (sparc*-*-rtems*): Switched from a.out to ELF.
3318 2000-11-30 Jan Hubicka <jh@suse.cz>
3320 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3321 (eelf_x86_64.c): New.
3322 * Makefile.in: Regenerate.
3323 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3324 * emulparams/elf_x86_64.sh: New.
3326 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3328 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3329 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3331 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3332 merging non-a.out sections into CONSTRUCTING.
3334 2000-11-28 Nick Clifton <nickc@redhat.com>
3336 * ld.1 (COPYING): Mention that the GNU Free Documentation
3337 License is present in the sources, but not the output, and
3338 also available from the GNU website.
3339 (GNU Free Documentation License): Comment out this section.
3341 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3343 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3346 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3348 * ld.1: Remove old date so it does not give the impression the manpage
3351 2000-11-24 Nick Clifton <nickc@redhat.com>
3353 * configure.tgt (xscale-coff): Add target.
3354 (xscale-elf): Add target.
3356 2000-11-24 Fred Fish <fnf@be.com>
3358 * ldmain.c (main): Remove redundant init of config.make_executable
3361 2000-11-15 Richard Henderson <rth@redhat.com>
3363 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3365 2000-11-14 Kazu Hirata <kazu@hxi.com>
3367 * scripttempl/h8300.sc: Fix formatting.
3368 * scripttempl/h8300h.sc: Likewise.
3369 * scripttempl/h8300s.sc: Likewise.
3371 2000-11-14 Denis Chertykov <denisc@overta.ru>
3373 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3375 2000-11-09 Philip Blundell <pb@futuretv.com>
3377 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3378 around orphan sections whose names can be represented in C.
3380 2000-11-07 Jim Wilson <wilson@redhat.com>
3382 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3383 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3385 2000-11-06 Nick Clifton <nickc@redhat.com>
3387 * ld.texinfo: Add GNU Free Documentation License.
3388 * ldint.texinfo: Add GNU Free Documentation License.
3389 * ld.1: Add GNU Free Documentation License.
3391 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3393 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3394 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3396 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3397 Move 2000-11-02 Makefile.in changes to this file.
3398 * Makefile.in: Regenerate.
3400 2000-11-03 Nick Clifton <nickc@redhat.com>
3402 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3403 constructors and destructors.
3404 * scripttempl/h8300h.sc: Ditto.
3405 * scripttempl/h8300s.sc: Ditto.
3406 * scripttempl/h8500.sc: Ditto.
3407 * scripttempl/h8500b.sc: Ditto.
3408 * scripttempl/h8500c.sc: Ditto.
3409 * scripttempl/h8500m.sc: Ditto.
3410 * scripttempl/h8500s.sc: Ditto.
3411 * scripttempl/v850.sc: Ditto.
3412 * scripttempl/w65.sc: Ditto.
3413 * scripttempl/z8000.sc: Ditto.
3415 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3417 * Makefile.in (e_i386_chaos.c): New rule.
3418 (ALL_EMULATIONS): Added e_i386_chaos.o.
3419 * emulparams/elf_i386_chaos.sh: New file.
3420 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3422 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3424 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3425 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3426 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3427 library path suffix.
3428 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3430 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3432 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3433 for consecutive sections.
3435 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3437 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3439 * ld.texinfo: Added notes about this new option.
3441 2000-10-16 Nick Clifton <nickc@redhat.com>
3443 * emultempl/pe.em (_after_open): Add tests of return values from
3444 bfd functions. Emit appropriate error messages if necessary.
3446 2000-10-13 Nick Clifton <nickc@redhat.com>
3448 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3449 local variables - they are not used, but leave in the call to
3450 bfd_canonicalize_symtab.
3451 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3452 pe_dll_search_prefix.
3454 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3456 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3457 (longopts): New --dll-search-prefix option.
3458 (gld_${EMULATION_NAME}_list_options): Document.
3459 (gld_${EMULATION_NAME}_parse_args): Handle.
3460 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3461 dynamically, search for a dll named '<prefix><basename>.dll'
3462 in preference to 'lib<basename>.dll' if --dll-search-prefix
3465 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3467 * ldlang.c (section_already_linked): Set kept_section instead of
3470 2000-10-10 Kazu Hirata <kazu@hxi.com>
3472 * deffile.h: Fix formatting.
3473 * lexsup.c: Likewise.
3476 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3478 * pe-dll.c (make_one): Do not generate code thunk for DATA
3480 (process_def_file): deduce DATA flag for auto-export sumbols.
3482 2000-10-09 Kazu Hirata <kazu@hxi.com>
3484 * ld.h: Fix formatting.
3485 * ldcref.c: Likewise.
3486 * ldctor.h: Likewise.
3487 * ldemul.c: Likewise.
3488 * ldemul.h: Likewise.
3489 * ldexp.c: Likewise.
3490 * ldexp.h: Likewise.
3491 * ldfile.c: Likewise.
3492 * ldfile.h: Likewise.
3493 * ldlang.c: Likewise.
3494 * ldlang.h: Likewise.
3495 * ldmain.c: Likewise.
3496 * pe-dll.c: Likewise.
3498 * pe-dll.c: Revert some formatting fixes.
3500 2000-10-08 Kazu Hirata <kazu@hxi.com>
3502 * pe-dll.c: Fix formatting.
3504 2000-10-05 Kazu Hirata <kazu@hxi.com>
3506 * ldlang.c: Fix formatting.
3508 2000-10-03 DJ Delorie <dj@redhat.com>
3510 * pe-dll.c (fill_edata): initialize entire block
3511 (make_one): fill in correct section.
3513 2000-10-03 Kazu Hirata <kazu@hxi.com>
3515 * ldexp.c: Fix formatting.
3517 2000-10-02 DJ Delorie <dj@redhat.com>
3519 * emultempl/pe.em (gld_*_after_open): detect case where there two
3520 import libraries for same dll; rename one to ensure proper link
3523 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3525 (generate_edata): fix typo
3527 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3529 * scripttempl/crisaout.sc (ENTRY): Now __start.
3530 (.text): Add default setting for __start.
3531 Remove CONSTRUCTORS handling.
3532 (/DISCARD/): Add .gnu.warning.*.
3533 * emulparams/crislinux.sh (ENTRY): Now __start.
3534 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3535 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3536 (ENTRY): Now __start.
3537 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3538 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3540 2000-09-29 Kazu Hirata <kazu@hxi.com>
3542 * deffile.h: Fix formatting.
3544 * ldcref.c: Likewise.
3545 * ldctor.c: Likewise.
3546 * ldctor.h: Likewise.
3547 * ldemul.c: Likewise.
3548 * ldemul.h: Likewise.
3549 * ldexp.c: Likewise.
3550 * ldexp.h: Likewise.
3551 * ldfile.c: Likewise.
3552 * ldfile.h: Likewise.
3553 * ldlang.c: Likewise.
3554 * ldlang.h: Likewise.
3555 * lexsup.c: Likewise.
3557 * pe-dll.c: Likewise.
3559 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3561 * pe-dll.c (process_def_file): Uninitialized data wasn't
3562 exported with --export-all-symbols switch.
3564 2000-09-28 DJ Delorie <dj@redhat.com>
3566 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3567 noname work properly.
3569 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3571 * ld.texinfo (HPPA ELF32): New section.
3573 * emultempl/hppaelf.em (group_size): New.
3574 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3575 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3576 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3577 options to prevent abbreviations matching.
3578 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3579 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3581 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3583 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3584 on the m68*-*-elf target. Make it support COFF input objects.
3586 2000-09-21 Kazu Hirata <kazu@hxi.com>
3588 * ldmain.c: Fix formatting.
3589 * ldmisc.c: Likewise.
3590 * ldver.c: Likewise.
3591 * ldwrite.c: Likewise.
3593 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3595 * ldwrite.c (clone_section): Silence gcc warnings.
3597 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3599 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3600 out of memory failure.
3602 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3603 (clone_section): Handle out of memory failures. Rename var to
3604 avoid c++ reserved word.
3606 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3608 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3609 stub_name param to stub_sec_name.
3610 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3612 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3614 * emultempl/m68kelf.em: New file.
3615 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3616 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3617 * Makefile.in: Regenerate.
3619 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3621 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3624 2000-09-13 Nick Clifton <nickc@redhat.com>
3626 * ldmain.c (multiple_definition): Disable relaxation if
3627 multiple symbol definitions are encountered - otherwise the
3628 linker could abort with an assertion failure.
3630 2000-09-10 Nick Clifton <nickc@redhat.com>
3632 * mri.c: Fix formatting.
3634 2000-09-07 H.J. Lu <hjl@gnu.org>
3636 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3637 * configure: Rebuild.
3639 2000-09-07 H.J. Lu <hjl@gnu.org>
3641 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3642 * Makefile.in: Rebuild.
3644 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3646 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3647 broken list handling. Create __start_SECNAME and __stop_SECNAME
3648 when no place-holder. Add some comments. Test both SEC_CODE and
3649 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3650 Handle case where no output section statement created.
3652 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3654 * configure.tgt (sh-*-linux*): Added.
3655 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3656 * Makefile.in: Rebuilt.
3657 * emulparams/shelf_linux.sh: New file.
3658 * emulparams/shlelf_linux.sh: New file.
3660 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3662 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3663 try shuffling sections when the orphan happens to be the place
3664 holder. Keep count of unique section names generated so we speed
3665 the search for a new name.
3667 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3669 * configure: Rebuilt with new libtool.m4.
3671 2000-09-05 Nick Clifton <nickc@redhat.com>
3673 * Makefile.in: Regenerate.
3674 * aclocal.m4: Regenerate.
3675 * configure: Regenerate.
3676 * config.in: Regenerate.
3677 * po/ld.pot: Regenerate.
3679 * ldint.texinfo: Remove CVS revision marker - it foils local
3682 * emultempl/ticoff.em: Remove extraneous comma.
3684 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3686 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3687 to stub section flags.
3688 (hppa_for_each_input_file_wrapper): New.
3689 (hppa_lang_for_each_input_file): New.
3690 (lang_for_each_input_file): Define to call above.
3691 (multi_subspace): New.
3692 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3693 (PARSE_AND_LIST_PROLOGUE): Define.
3694 (PARSE_AND_LIST_LONGOPTS): Define.
3695 (PARSE_AND_LIST_OPTIONS): Define.
3696 (PARSE_AND_LIST_ARGS_CASES): Define.
3697 (hppaelf_finish): Call elf32_hppa_set_gp.
3698 (hppaelf_set_output_arch): Remove.
3699 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3701 * emulparams/hppalinux.sh (ELFSIZE): Define.
3703 (OTHER_READONLY_SECTIONS): Define.
3705 (GENERATE_SHLIB_SCRIPT): Define.
3707 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3708 to const throughout. Change `void *' to `PTR' throughout.
3709 (lang_memory_default): Function is local to file, add `static'.
3711 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3712 (ehppalinux.c): Likewise.
3713 (earmelf.c): Likewise.
3714 (earmelf_linux.c): Likewise.
3715 (earmelf_linux26.c): Likewise.
3716 * Makefile.in: Regenerate.
3718 * ld.h (ld_config_type): Add unique_orphan_sections.
3719 * lexsup.c (OPTION_UNIQUE): Define.
3720 (ld_options): Add "--unique".
3721 (parse_args): Handle it.
3722 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3723 search for an existing output section if unique_orphan_sections is
3724 set. Make use of bfd_get_unique_section_name rather than
3725 duplicating code here.
3726 * ld.texinfo: Describe --unique.
3728 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3729 optional arg to split-by-file.
3730 (parse_args): Handle them.
3731 * ld.texinfo: Update description of these options.
3732 * ldwrite.c (clone_section): Pass in the section name. Replace
3733 local code with bfd_get_unique_section_name.
3734 (split_sections): Tidy code and comments. Use a list traversal
3735 more appropriate to the list construction. Handle cooked section
3736 sizes. Split when split_by_reloc reached rather than exceeded.
3737 Track section size and split when split_by_file reached. Fix
3738 link_order_tail (even though it's not used).
3739 (ldwrite): Modify condition for calling split_sections to suit
3740 changed split_by_reloc and split_by_file.
3741 * ldmain.c (main): Init config.split_by_reloc and
3742 config.split_by_file to -1.
3743 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3744 Change split_by_file to bfd_size_type.
3746 2000-09-02 Nick Clifton <nickc@redhat.com>
3748 * configure.in: Increase version number to 2.10.91.
3749 * NEWS: Mention new ability to support removal of duplicate DWARF2
3751 * configure: Regenerate.
3752 * aclocal.m4: Regenerate.
3753 * config.in: Regenerate.
3755 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3757 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3759 * scripttempl/elf32avr.sc: Ditto.
3760 * scripttempl/elfd10v.sc: Ditto.
3761 * scripttempl/elfd30v.sc: Ditto.
3762 * scripttempl/elfi370.sc: Ditto.
3763 * scripttempl/elfm68hc11.sc: Ditto.
3764 * scripttempl/elfm68hc12.sc: Ditto.
3765 * scripttempl/elfi386beos.sc: Ditto.
3766 * scripttempl/v850.sc: Ditto.
3768 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3770 * acinclude.m4: Include libtool and gettext macros from the
3772 * aclocal.m4, configure: Rebuilt.
3774 2000-08-25 Nick Clifton <nickc@redhat.com>
3776 * ldlang.c (open_output): When choosing the target for a
3777 particular endianness, do nothing if the target is not
3780 2000-08-25 H.J. Lu <hjl@gnu.org>
3782 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3783 check -rpath nor LD_RUN_PATH for cross link.
3784 * ld.texinfo: Document the change.
3786 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3788 * NEWS: Mention support for CRIS.
3790 2000-08-23 H.J. Lu <hjl@gnu.org>
3792 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3793 the current runpath list from bfd_elf_get_runpath_list ()
3796 2000-08-22 H.J. Lu <hjl@gnu.org>
3798 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3799 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3800 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3801 trace_file_tries is non-zero.
3802 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3803 if trace_file_tries is non-zero.
3805 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3808 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3810 * NEWS: Mention i860 support.
3812 2000-08-14 Andreas Schwab <schwab@suse.de>
3814 * scripttempl/elf.sc: Fix last change to use correct comment
3817 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3819 * scripttempl/elf.sc: Add a comment giving the correspondence
3820 between sections, per-datum sections, and linkonce sections. Make
3821 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3824 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3826 * emulparams/elf32_i860.sh: New file.
3827 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3828 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3829 (eelf32_i860.c): New rule.
3830 * Makefile.in: Regenerate.
3832 2000-08-10 Nick Clifton <nickc@cygnus.com>
3834 * emulparams/mipspe.sh (ENTRY): Add definition.
3836 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3838 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3841 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3843 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3844 the final size of .bss section.
3845 * scripttempl/elfm68hc12.sc: Likewise.
3847 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3849 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3850 gld${EMULATION_NAME}_parse_args for consistency. Combine
3851 lastoptind and prevoptind vars, and keep track of last optind.
3852 (gld_${EMULATION_NAME}_list_options): Rename to
3853 gld${EMULATION_NAME}_list_options.
3855 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3857 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3858 (i586-sco-sysv5uw7.1.0).
3860 2000-07-27 H.J. Lu <hjl@gnu.org>
3862 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3863 (PARSE_AND_LIST_PROLOGUE): New.
3864 (PARSE_AND_LIST_LONGOPTS): Likewise.
3865 (PARSE_AND_LIST_OPTIONS): Likewise.
3866 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3867 (PARSE_AND_LIST_EPILOGUE): Likewise.
3869 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3871 * emultempl/armelf.em: Elide functions common to elf32.em,
3872 ie. most of the file.
3873 (arm_elf_after_open): New. Do arm specific things then call
3874 gld${EMULATION_NAME}_after_open.
3875 (arm_elf_before_allocation): New. Call
3876 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3877 (PARSE_AND_LIST_PROLOGUE): Define.
3878 (PARSE_AND_LIST_SHORTOPTS): Define.
3879 (PARSE_AND_LIST_LONGOPTS): Define.
3880 (PARSE_AND_LIST_OPTIONS): Define.
3881 (PARSE_AND_LIST_ARGS_CASES): Define.
3882 (LDEMUL_AFTER_OPEN): Define.
3883 (LDEMUL_BEFORE_ALLOCATION): Define.
3884 (LDEMUL_BEFORE_PARSE): Define.
3885 (LDEMUL_FINISH): Define.
3887 * emultempl/hppaelf.em: Similarly zap most of this file.
3888 (hppaelf_add_stub_section): Prototype.
3889 (hppaelf_layaout_sections_again): Prototype.
3890 (hook_in_stub): Prototype.
3891 (LDEMUL_SET_OUTPUT_ARCH): Define.
3892 (LDEMUL_FINISH): Define.
3893 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3895 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3896 (EXTRA_EM_FILE): New.
3897 * emulparams/armelf_linux.sh: Likewise.
3898 * emulparams/armelf_linux26.sh: Likewise.
3899 * emulparams/hppalinux.sh: Likewise.
3900 * emulparams/hppaelf.sh: Likewise.
3903 * emultempl/elf32.em: Fix formatting.
3904 (EXTRA_EM_FILE): Source it.
3905 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3906 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3907 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3908 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3909 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3910 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3911 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3912 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3913 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3914 allow functions in this file to be overridden.
3915 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3917 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3919 * emultempl/elf32.em: Reorganize file.
3921 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3923 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3924 specific option to fit 64-bit executable in the lower
3925 31-bit address range. This is done by changing start
3926 address of .interp (the very first section of executable)
3927 and then setting EF_ALPHA_32BIT elf header flag.
3929 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3931 * emultempl/m68kcoff.em: New file.
3932 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3933 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3935 * Makefile.in: Regenerate.
3937 2000-07-20 H.J. Lu <hjl@gnu.org>
3939 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3940 and "disable-new-dtags" to stop getopt from treating -d/-e as
3941 abbreviations for these options.
3943 2000-07-20 H.J. Lu <hjl@gnu.org>
3945 * ld.texinfo: Add documentation for --disable-new-dtags and
3948 * ldmain.c (main): Initialize link_info.new_dtags to false.
3950 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3951 --disable-new-dtags and --enable-new-dtags.
3952 (gld_${EMULATION_NAME}_list_options): Likewise.
3954 2000-07-05 Kenneth Block <krblock@computer.org>
3956 * lexsup.c: Add optional style to demangle switch
3957 * ld.texinfo: Document optional style to demangle switch.
3959 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3961 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3963 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3964 Regenerate dependencies.
3965 * Makefile.in: Rebuild.
3966 * configure.tgt (cris-*-*): New target.
3967 * emulparams/crisaout.sh, emulparams/criself.sh,
3968 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3969 * po/POTFILES.in, po/ld.pot: Regenerate.
3971 2000-07-20 H.J. Lu <hjl@gnu.org>
3973 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3974 Print out ignored -z options.
3976 2000-07-19 H.J. Lu <hjl@gnu.org>
3978 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3979 (PARSE_AND_LIST_PROLOGUE): New.
3980 (PARSE_AND_LIST_LONGOPTS): Likewise.
3981 (PARSE_AND_LIST_OPTIONS): Likewise.
3982 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3984 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3986 * lexsup.c (ld_options): Comment out 'z'.
3987 (parse_args): Likewise.
3989 * emultempl/elf32.em: Include "elf/common.h".
3990 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3992 (gld_${EMULATION_NAME}_list_options): Likewise.
3994 * ld.texinfo: Add documentation for the recognized -z options.
3996 2000-07-19 H.J. Lu <hjl@gnu.org>
3998 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3999 bfd_elf_set_dt_needed_soname ().
4001 2000-07-18 DJ Delorie <dj@cygnus.com>
4003 * pe-dll.c (pe_dll_id_target): check object target name also
4005 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4007 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4008 ${INIT_END} if relocating.
4009 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4011 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4013 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4014 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4015 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4016 errors introduced by the old dynamic lib search order.
4018 2000-07-17 DJ Delorie <dj@cygnus.com>
4020 * pe-dll.c (process_def_file): auto-export data items also
4021 (pe_process_import_defs): also see if _imp_ form needed
4023 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4025 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4026 for dll import libraries
4028 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4030 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4031 gcc 2.95.2 and later.
4033 2000-07-11 Kazu Hirata <kazu@hxi.com>
4035 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4038 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4040 * ldemul.h (struct lang_input_statement_struct): Remove forward
4042 (struct search_dirs): Likewise.
4043 * ldfile.h (struct lang_input_statement_struct): Likewise.
4044 Protect file from multiple inclusion.
4045 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4046 declaration from macro to file scope.
4048 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4049 * ldgram.y: Likewise here.
4050 * ldlang.c: And here.
4051 * ldmain.c: And here.
4052 * mpw-elfmips.c: And here.
4053 * mpw-eppcmac.c: And here.
4054 * emultempl/aix.em: And here.
4055 * emultempl/armcoff.em: And here.
4056 * emultempl/armelf.em: And here.
4057 * emultempl/armelf_oabi.em: And here.
4058 * emultempl/beos.em: And here.
4059 * emultempl/elf32.em: And here.
4060 * emultempl/hppaelf.em: And here.
4061 * emultempl/linux.em: And here.
4062 * emultempl/lnk960.em: And here.
4063 * emultempl/pe.em: And here.
4064 * emultempl/sunos.em: And here.
4065 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4066 * mpw-idtmips.c: Ditto.
4067 * emultempl/generic.em: Ditto.
4068 * emultempl/gld960.em: Ditto.
4069 * emultempl/gld960c.em: Ditto.
4070 * emultempl/mipsecoff.em: Ditto.
4071 * emultempl/ticoff.em: Ditto.
4072 * emultempl/vanilla.em: Ditto.
4074 * pe-dll.c: Include ldfile.h
4075 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4077 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4078 arguments to bfd_elf32_size_dynamic_sections call.
4079 (gldelf32ebmip_place_orphan): Add missing arguments to
4080 lang_leave_output_section_statement call.
4082 2000-07-10 H.J. Lu <hjl@gnu.org>
4084 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4086 (strhash): Likewise.
4087 (compute_dll_image_base): Likewise.
4088 (pe_undef_found_sym): Likewise.
4089 (pe_undef_cdecl_match): Likewise.
4090 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4091 argument "arch" with ATTRIBUTE_UNUSED.
4093 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4095 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4097 From Ryan Bradetich <rbradetich@uswest.net>
4098 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4100 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4102 Changes to create multiple linker stubs, positioned immediately
4103 before the section where they are required.
4104 * emultempl/hppaelf.em: Include elf32-hppa.h.
4105 (stub_sec, file_chain): Delete.
4106 (hppaelf_create_output_section_statements): Don't make a stub
4108 (hook_stub_info): New struct.
4109 (hook_in_stub): New function.
4110 (hppaelf_add_stub_section): New function.
4111 (hppaelf_finish): Do nothing for relocateable links. Modify the
4112 call to elf32_hppa_size_stubs. Move code for updating section
4114 (hppaelf_layaout_sections_again): ..to here, a new function.
4116 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4117 broken list handling. Pass in a pointer to the list.
4118 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4120 (hppaelf_before_parse): Prototype.
4121 (hppaelf_set_output_arch): Prototype.
4122 (hppaelf_create_output_section_statements): Prototype.
4123 (hppaelf_delete_padding_statements): Prototype.
4124 (hppaelf_finish): Prototype.
4127 * emultempl/hppaelf.em: Include ctype.h.
4128 (struct orphan_save): New.
4129 (gld${EMULATION_NAME}_place_orphan): New.
4130 (output_rel_find): New.
4131 (hppaelf_get_script): Update from elf32.em.
4132 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4133 Change emulation_name field to "${EMULATION_NAME}". Add
4134 gld${EMULATION_NAME}_place_orphan.
4136 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4137 ehppalinux.o, sort it. Regenerate dependencies.
4138 (ehppalinux.c): Depend on hppaelf.em
4139 * Makefile.in: Regenerate.
4141 * configure.tgt: targ_emul=hppalinux for hppa*linux
4143 * emulparams/hppalinux.sh: New.
4144 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4146 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4148 * lexsup.c (parse_args): Copy section name.
4150 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4152 * emultempl/pe.em: institute the following search order for
4153 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4154 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4155 static lib (libfoo.a) if none of the above are found.
4157 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4159 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4160 (longopts): New --{enable,disable}-auto-image-base options.
4161 (gld_${EMULATION_NAME}_list_options): Document.
4162 (gld_${EMULATION_NAME}_parse): Handle.
4163 (strhash): New static function.
4164 (compute_dll_image_base): New static function.
4165 (gld_${EMULATION_NAME}_set_symbols): Use.
4167 2000-07-05 DJ Delorie <dj@redhat.com>
4171 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4173 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4174 * emulparams/elf32btsmip.sh: New file.
4175 * Makefile.am: Add traditional mips target.
4176 * Makefile.in: Rebuild.
4178 2000-07-01 H.J. Lu <hjl@gnu.org>
4180 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4181 automake to use YLWRAP.
4182 * Makefile.in: Rebuild.
4184 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4186 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4187 (CLEANFILES): Add DEPA.
4188 * Makefile.in: Regenerate.
4190 2000-06-30 Timothy Wall <twall@ppc>
4192 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4193 the page in the upper octet of the address.
4195 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4197 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4199 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4201 * NEWS: arm-elf does --gc-sections too.
4203 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4205 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4207 * Makefile.in: Regenerate.
4209 2000-06-21 H.J. Lu <hjl@gnu.org>
4211 * Makefile.am: Rebuild dependency.
4212 * Makefile.in: Rebuild.
4214 2000-06-20 H.J. Lu <hjl@gnu.org>
4216 * Makefile.am: Rebuild dependency.
4217 * Makefile.in: Rebuild.
4219 2000-06-20 Timothy Wall <twall@cygnus.com>
4221 * scripttempl/tic54xcoff.sc: New.
4222 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4223 * gen-doc.texi: Add flag for TI COFF.
4224 * ld.texinfo: Add documentation for TI COFF handling switches.
4225 * emultempl/ticoff.em: New. TI COFF handling.
4226 * configure.tgt: Add tic54x target.
4227 * Makefile.am: Add tic54x target.
4228 * Makefile.in: Ditto.
4230 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4232 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4233 checking for backslashes.
4235 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4237 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4239 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4241 * NEWS: Update list of targets supporting --gc-sections.
4243 * scripttempl/elf.sc: KEEP .eh_frame contents.
4244 * scripttempl/elfd30v.sc: Same here.
4246 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4248 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4250 * Makefile.in: Rebuild.
4251 * configure.tgt: Recognize m68hc12 and m68hc11.
4252 * scripttempl/elfm68hc12.sc: New file.
4253 * emulparams/m68hc12elfb: New emulation.
4254 * emulparams/m68hc12elf: New emulation.
4255 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4256 (includes a memory.x script to define the ROM and RAM banks).
4257 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4258 New configuration files for support of Motorola 68hc11
4260 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4262 * ldmain.c (main): Only change SEC_READONLY for final link.
4264 2000-06-13 H.J. Lu <hjl@gnu.org>
4266 * configure: Regenerate.
4268 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4270 * configure.in (VERSION): Update to show this is the CVS mainline.
4272 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4274 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4275 input objects to be ECOFF.
4276 (check_sections): einfo takes %B, not %P, to print a BFD name.
4278 2000-06-05 Michael Matz <matz@ifh.de>
4280 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4283 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4285 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4287 * emulparams/avr1200.sh (STACK): Define as 0.
4288 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4289 * emulparams/avr4433.sh (STACK): Likewise.
4290 * emulparams/avr44x4.sh (STACK): Likewise.
4291 * emulparams/avr85xx.sh (STACK): Likewise.
4292 * emulparams/avrmega103.sh (STACK): Likewise.
4293 * emulparams/avrmega161.sh (STACK): Likewise.
4294 * emulparams/avrmega603.sh (STACK): Likewise.
4295 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4296 (__stack): Define from ${STACK} for main().
4298 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4300 * Makefile.am: Update dependencies with "make dep-am"
4301 * Makefile.in: Regenerate.
4303 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4305 * ldmain.c: Include filenames.h.
4306 (set_scripts_dir): Support backslashes in program name.
4308 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4310 * ldmain.c (main): When deciding if ".text" section should be
4311 read-only, don't forget to reset SEC_READONLY because it
4312 could be already set.
4314 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4316 * ld.1: Add documentation for new command line option:
4317 --section-start <sectionname>=<sectionorg>
4318 This is a generic version of -Ttext etc. which accepts
4319 any section name as a parameter instead of just text/data/
4321 * ld.texinfo: More docs.
4323 * lexsup.c: (parse_args): Recognize new command line option.
4324 (ld_options): Add new option.
4326 2000-05-18 H.J. Lu <hjl@gnu.org>
4328 * lexsup.c (parse_args): `i' == `r', not `q'.
4330 2000-05-18 Jeffrey A Law (law@cygnus.com)
4332 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4334 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4335 Rick Gorton <gorton@scrugs.lkg.dec.com>
4337 Add support for '-q' == '--emit-relocs' switch.
4338 * ldmain.c (main): Default to false.
4339 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4340 * NEWS: Describe the emitrelocations switch.
4341 * ld.texinfo: Describe the emitrelocations switch.
4343 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4345 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4346 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4347 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4350 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4352 * lexsup.c (parse_args): Update the year in the copyright notice.
4354 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4356 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4357 Replace defines with those from intl/libgettext.h to quieten gcc
4360 2000-05-10 H.J. Lu <hjl@gnu.org>
4362 * ldlang.c (open_input_bfds): Don't load the same file within
4363 a group again if the whole archive has been loaded already.
4365 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4367 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4368 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4371 2000-05-01 Jim Wilson <wilson@cygnus.com>
4373 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4375 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4376 host "ia64-*-linux-gnu*".
4378 2000-04-29 Andreas Jaeger <aj@suse.de>
4380 * ld.h: Correctly check GCC version.
4382 2000-04-25 Jeffrey A Law (law@cygnus.com)
4384 * Makefile.am: Add PA64 support. Add missing dependencies for
4386 * Makefile.in: Rebuilt.
4387 * configure.tgt: Add PA64 support (currently disabled).
4389 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4391 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4392 (output_rel_find): New function.
4393 (hold_section, hold_use): Delete.
4394 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4395 hold_interp): Make local to place_orphan.
4396 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4397 rather than place_section to find possible previous use of orphan.
4398 Similarly find the place-holder output sections. Use returned
4399 value from lang_enter_output_section_statement rather than calling
4400 lang_output_section_statement_lookup.
4401 * emultempl/armelf.em: Same here.
4402 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4404 * ldlang.c (lang_enter_output_section_statement): Return output
4406 * ldlang.h (lang_enter_output_section_statement): Change
4409 * ldlang.h (lang_output_section_statement): Export it.
4410 * ldlang.c (lang_output_section_statement): Ditto.
4412 2000-04-24 Nick Clifton <nickc@cygnus.com>
4414 * ld.texinfo (Output Section Data): Add note that section data
4415 commands cannot appear outside of section directives.
4417 2000-04-2 Matthew Green <mrg@cygnus.com>
4419 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4421 2000-04-21 Richard Henderson <rth@cygnus.com>
4422 David Mosberger <davidm@hpl.hp.com>
4424 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4425 (eelf64_ia64.c): New rule.
4426 * Makefile.in: Rebuild.
4427 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4428 * emulparams/elf64_ia64.sh: New file.
4430 2000-04-21 Richard Henderson <rth@cygnus.com>
4432 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4434 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4436 * dep-in.sed: Match space at start of file name, not at end.
4438 2000-04-18 H.J. Lu <hjl@gnu.org>
4440 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4441 lang_leave_output_section_statement () after calling
4442 lang_enter_output_section_statement ().
4443 * emultempl/armelf.em: Likewise.
4445 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4447 * emultempl/elf32.em (struct orphan_save): Add section field.
4448 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4449 better order, and place first orphan section as we did before the
4450 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4451 Don't call make_bfd_section here, let wild_doit do the job for us.
4452 Don't build a statement list when we'll only throw it away.
4453 * emultempl/armelf.em: Ditto.
4454 * emultempl/pe.em: Similarly.
4456 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4458 * scripttempl/elfppc.sc: Remove.
4459 * emulparams/elf32ppc.sh: Use elf.sc.
4460 * emulparams/elf32lppc.sh: Use elf.sc.
4461 * emulparams/elf32ppclinux.sh: Use elf.sc.
4462 * emulparams/elf32ppcsim.sh: New file.
4463 * emulparams/elf32lppcsim.sh: New file.
4464 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4465 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4466 * Makefile.in: Regenerate.
4467 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4469 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4471 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4472 ~SEC_ALLOC sections too. Init start address of debug sections.
4473 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4474 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4475 Also set all relocateable section start addresses.
4477 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4479 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4480 Add new BSS_PLT variable for when .plt need not be contained in
4481 the file. Move _etext so that it is also after .fini, and provide
4482 both etext and _etext with a leading underscore. Mark the start
4485 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4487 * emultempl/elf32.em (struct orphan_save): New.
4488 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4489 hold_interp): Make them struct orphan_save.
4490 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4491 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4492 the end of the relevant section list. Also add associated section
4493 statements to the end of any previous orphan statements.
4494 * emultempl/armelf.em: Similarly.
4495 * emultempl/pe.em: Similarly.
4497 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4499 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4501 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4503 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4504 --enable-build-warnings option.
4505 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4506 * Makefile.in, configure: Re-generate.
4508 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4510 * po/ld.pot: Regenerate.
4512 * lexsup.c (help): Restore translated part of bug string.
4514 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4515 (DEP): Quote when passing vars to sub-make. Add warning message
4517 (DEP1): Rewrite for "gcc -MM".
4518 (CLEANFILES): Add DEP2.
4519 Update dependencies.
4520 * Makefile.in: Regenerate.
4522 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4524 * ld.h: #include "bin-bugs.h"
4525 * lexsup.c (help): Use REPORT_BUGS_TO.
4527 2000-03-27 Denis Chertykov <denisc@overta.ru>
4529 * configure.tgt (avr-*-*): New target support.
4530 * Makefile.am: Likewise.
4531 * scripttempl/elf32avr.sc: New script file.
4532 * emulparams/avr1200.sh: New file.
4533 * emulparams/avr23xx.sh: New file.
4534 * emulparams/avr4433.sh New file.
4535 * emulparams/avr44x4.sh New file.
4536 * emulparams/avr85xx.sh New file.
4537 * emulparams/avrmega103.sh New file.
4538 * emulparams/avrmega161.sh New file.
4539 * emulparams/avrmega603.sh New file.
4540 * Makefile.in: Regenerate.
4542 2000-03-09 Andreas Jaeger <aj@suse.de>
4544 * Makefile.am (check-DEJAGNU): Also unset LANG.
4545 * Makefile.in: Rebuild.
4547 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4549 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4552 2000-03-02 H.J. Lu <hjl@gnu.org>
4554 * emulparams/elf32mcore.sh: Include "getopt.h".
4556 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4558 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4560 2000-03-01 H.J. Lu <hjl@gnu.org>
4562 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4563 * emulparams/shpe.sh: Likewise.
4565 2000-03-01 Nick Clifton <nickc@cygnus.com>
4567 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4568 to unused parameters.
4570 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4571 functions only used by DLL code.
4572 (_place_orphan): Initialise 'dollar'.
4574 2000-03-01 H.J. Lu <hjl@gnu.org>
4576 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4577 indicate if the undefined symbol is a fatal error or not.
4578 Don't delete the output file if "fatal" is false.
4580 2000-02-29 H.J. Lu <hjl@gnu.org>
4582 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4583 Set LC_COLLATE and LC_ALL to null and export them. It is for
4584 sort which expects the C locale.
4585 Add $(LIBS) to all $(HOSTING_LIBS).
4586 * Makefile.in: Rebuild.
4588 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4590 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4591 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4592 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4593 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4594 find_potential_libraries.
4596 2000-02-28 Jim Blandy <jimb@redhat.com>
4598 * ldgram.y (exclude_name_list): Don't require a comma to separate
4599 list entries; the lexer considers commas to be valid part of a
4600 filename, so in something like `foo, bar' the comma is considered
4601 part of the first filename, `foo,'.
4602 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4604 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4606 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4607 host "i[3456]86-*-freebsdelf*".
4609 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4611 * scripttempl/i386go32.sc: Move misplaced semicolons.
4613 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4615 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4616 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4617 (eelf64hppa.c, ehppaelf.c): Remove targets.
4618 * Makefile.in: Rebuild.
4620 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4622 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4623 GNU/Linux/sparc, but keep the default as 32.
4625 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4626 it default if sparcv9 or sparc64.
4628 2000-02-24 Nick Clifton <nickc@cygnus.com>
4630 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4631 * Makefile.in: Regenerate.
4632 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4634 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4635 find_potential_libraries.
4636 * ldemul.c (ldemul_find_potential_libraries): New function.
4638 * ldfile.c (ldfile_open_file_search): Allow function to be
4640 (ldfile_open_file): Call ldemul_find_potential_libraries.
4641 * ldfile.h: Add prototype for ldfile_open_file_search.
4643 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4645 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4646 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4648 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4649 (gld_X_find_potential_libraries): New function. Search for
4650 libraries called "*.lib".
4652 * scripttempl/pe.sc: Add .pdata section.
4654 2000-02-23 Richard Henderson <rth@cygnus.com>
4656 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4657 Add and use memory regions.
4659 2000-02-23 Linas Vepstas (linas@linas.org)
4661 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4663 * Makefile.am: Add support for Linux/IBM 370.
4664 * configure.tgt: Likewise.
4666 * Makefile.in: Regenerate.
4668 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4670 * ldlang.c (print_input_section, print_data_statement,
4671 print_reloc_statement, print_padding_statement, insert_pad,
4672 size_input_section, lang_check_section_addresses,
4673 lang_size_sections, lang_do_assignments, lang_set_startof,
4674 lang_one_common): Change `opb' to unsigned.
4675 (lang_do_assignments): Also change `size' to unsigned.
4677 2000-02-16 Richard Henderson <rth@cygnus.com>
4679 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4681 2000-02-16 Timothy Wall <twall@cygnus.com>
4683 * mri.c (mri_draw_tree): Add default LMA region argument to call
4684 to lang_leave_output_section_statement.
4685 * ldlang.h: Update prototypes with LMA region arguments.
4686 * ldlang.c (lang_size_sections): Encapsulate region bounds
4687 checking in os_check_region call.
4688 (os_check_region): New function.
4689 (lang_output_section_statement_lookup): Initialize lma_region.
4690 (lang_leave_output_section_statement): Add LMA region argument.
4691 (lang_leave_overlay): Ditto.
4692 * ldgram.y: Handle LMA region syntax.
4693 * ld.texinfo (Output Section Description): Describe LMA region usage.
4694 * emultempl/armelf.em (gld$place_orphan): Add default value for
4695 lma region in call to lang_leave_output_section_statement.
4696 * emultempl/elf32.em (gld$place_orphan): Add default value for
4697 lma region in call to lang_leave_output_section_statement.
4698 * emultempl/pe.em (gld$place_orphan): Add default value for
4699 lma region in call to lang_leave_output_section_statement.
4702 2000-02-04 Timothy Wall <twall@redhat.com>
4704 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4705 octets when calculating section end addresses.
4707 2000-02-04 Timothy Wall <twall@redhat.com>
4709 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4711 2000-02-03 Timothy Wall <twall@redhat.com>
4713 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4715 * ldlang.c (print_input_section, print_data_statement,
4716 print_reloc_statement, print_padding_statement): Print target
4717 address values and section sizes as bytes, not octets.
4718 (insert_pad) Calculate padding size in octets, and adjust "dot"
4720 (size_input_section) Always adjust "dot" by bytes, not octets.
4721 (lang_check_section_addresses, lang_do_assignments) Adjust
4722 "dot" by bytes, not octets. Use the larger of the directive size
4723 or octets_per_byte for the number of octets actually allocated in
4725 (lang_set_startof) Make sure STARTOF returns a target address.
4726 (lang_one_common) Record size changes in octets.
4727 (lang_abs_symbol_at_end_of) Section end symbol's value is
4728 recorded in target bytes.
4729 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4730 to be clear about behavior when an octet is smaller than one byte.
4732 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4734 * ldcref.c (output_cref): Don't pass message strings to printf
4738 * ldmisc.c (vfinfo): Same here.
4741 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4743 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4744 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4745 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4746 Add missing NULL initialisers, and comments.
4748 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4750 2000-01-21 Nick Clifton <nickc@cygnus.com>
4752 * ldlang.c (lang_size_sections): Fix typo in comment.
4754 2000-01-18 H.J. Lu <hjl@gnu.org>
4756 * ldlang.c (lang_size_sections): Also update the current
4757 address of a region if the SEC_NEVER_LOAD bit is not set.
4759 2000-01-10 Philip Blundell <pb@futuretv.com>
4761 * configure.tgt (arm*-*-conix*): New target.
4763 2000-01-07 Nick Clifton <nickc@cygnus.com>
4765 * ld.texinfo (Options): Remind users to preceed linker command
4766 line switches with -Wl, (or whatever is appropriate) if it is
4767 being invoked by a comnpiler driver program.
4768 Fix description of the behaviour of the -n command line switch.
4770 2000-01-05 Catherine Moore <clm@cygnus.com>
4772 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4774 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4775 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4776 (exclude_name_list): New.
4777 ldlang.c (walk_wild_section): Support list of excluded files.
4778 (print_wild_statement): Likewise.
4779 (lang_add_wild): Likewise.
4780 * ldlang.h (lang_wild_statement_type): Likewise.
4781 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4783 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4785 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4786 (process_def_file): Use.
4787 (pe_dll_compat_implib): New variable.
4790 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4791 pe_dll_compat_implib.
4793 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4794 compat-implib options.
4795 (gld_${EMULATION_NAME}_list_options): List new options.
4796 (gld_${EMULATION_NAME}_parse_args): Handle.
4798 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4801 * deffilep.y (opt_name): Allow "." in name.
4803 For older changes see ChangeLog-9899
4809 version-control: never