1 2002-10-02 Alan Modra <amodra@bigpond.net.au>
3 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
5 2002-09-30 Alan Modra <amodra@bigpond.net.au>
7 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
8 * scripttempl/elfm68hc11.sc: Likewise.
9 * scripttempl/elfm68hc12.sc: Likewise.
11 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
12 reloc sections just before .rel.plt/.rela.plt.
13 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
14 Only put loadable reloc sections in hold_rel.
16 2002-09-29 H.J. Lu <hjl@gnu.org>
18 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
20 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
22 From "Anita Kulkarni" <AnitaK@kpit.com>
23 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
26 2002-09-25 Alan Modra <amodra@bigpond.net.au>
28 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
30 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
31 SEGMENT_SIZE alignment.
32 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
33 (SEGMENT_SIZE): Define.
35 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
36 (fold_binary): Correct abs - non-abs case.
37 (fold_trinary): New. Split out from exp_fold_tree.
39 2002-09-24 Alan Modra <amodra@bigpond.net.au>
41 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
42 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
43 for start of .data, instead align up to 256M boundary.
44 * scripttempl/aix.sc: Likewise.
46 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
48 * scripttempl/i386go32.sc: Handle bss unique sections.
50 2002-09-21 Alan Modra <amodra@bigpond.net.au>
52 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
54 2002-09-17 Stan Cox <scox@redhat.com>
56 * emulparams/elf32bmipn32-defs.sh: New file.
57 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
58 * emulparams/elf32btsmipn32.sh: Likewise.
59 * emulparams/elf64bmip.sh: Likewise.
60 * emulparams/elf64btsmip.sh: Likewise.
62 2002-09-16 Bruno Haible <bruno@clisp.org>
64 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
66 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
69 2002-09-11 Nick Clifton <nickc@redhat.com>
71 * NEWS: New TI port supports both C4x and C3x series of DSPs.
73 * po/tr.po: Updated Turkish translation.
75 2002-09-06 Jeffrey A Law (law@redhat.com)
77 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
79 2002-09-02 Nick Clifton <nickc@redhat.com>
81 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
83 * emulparams/v850.sh (TEMPLATE_NAME): Define.
85 2002-08-30 Nick Clifton <nickc@redhat.com>
87 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
88 used. Change INSN to start at 0x01000000 and extend for
89 256K (ignoring holes). Start the STACK on a word aligned
91 (.rodata): Start it at the READONLY_START_ADDR.
93 2002-08-30 Alan Modra <amodra@bigpond.net.au>
95 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
97 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
99 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
100 added makefile targets for this file.
101 * Makefile.in: Regenerate.
102 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
103 * NEWS: Mention new port.
105 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
107 * emulparams/tic3xcoff.sh: New file.
108 * emulparams/tic4xcoff.sh: New file.
109 * scripttempl/tic3xcoff.sc: New file.
110 * scripttempl/tic4xcoff.sc: New file.
112 2002-08-28 Alan Modra <amodra@bigpond.net.au>
114 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
115 strtoul and strtoull with bfd_scan_vma.
116 (gld${EMULATION_NAME}_read_file): Likewise.
118 2002-08-28 Alan Modra <amodra@bigpond.net.au>
120 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
122 2002-08-27 Egor Duda <deo@logos-m.ru>
124 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
125 Add symbols for application to access them.
127 2002-08-27 Nick Clifton <nickc@redhat.com>
129 * emultempl/armelf.em: Revert this patch, it is not needed.
131 2002-08-22 Adam Nemet <anemet@lnxw.com>
133 2002-08-20 Dan Kegel <dank@kegel.com>
135 * configure.in: added --with-lib-path argument to ld's configure
137 * ld/NEWS: Document new switch.
138 * ld/README: Mention new switch.
139 * configure: Regenerate.
140 * Makefile.in: Regenerate.
143 2001-04-25 Christopher Faylor <cgf@cygnus.com>
145 * Makefile.in (LIB_PATH): Make configurable.
146 (GENSCRIPTS): Set LIB_PATH in environment.
147 * configure.in: Substitute LIB_PATH.
149 2002-08-22 Adam Nemet <anemet@lnxw.com>
151 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
152 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
153 depending on the type of the function.
154 (arm_elf_convert_thumb_symbol_to_address): New function.
156 2002-08-22 Graeme Peterson <gp@qnx.com>
158 * Makefile.am: Add esh{l}elf_nto.o files.
159 * Makefile.in: Regenerate.
160 * configure.tgt: Add support for sh-**-nto* targets.
161 * emulparams/shelf_nto.sh: New file.
162 * emulparams/shlelf_nto.sh: New file.
164 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
166 * ldlang.c (offsetof): Define if not defined.
168 2002-08-14 H.J. Lu <hjl@gnu.org>
170 * configure.tgt: Always enable 64bit emulations for 32bit
173 2002-08-13 Alan Modra <amodra@bigpond.net.au>
175 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
176 (MAXPAGESIZE): Set to 1.
178 * ld.h (ALIGN_N): Delete.
179 * ldexp.h (align_n): Declare.
180 * ldexp.c (align_n): New function.
181 (fold_binary): Use align_n instead of ALIGN_N.
182 (exp_fold_tree): Likewise.
183 * ldlang.c (lang_size_sections_1): Likewise.
184 (lang_one_common): Likewise.
185 * ld.texinfo (ALIGN): Remove power of 2 restriction.
187 2002-07-31 Graeme Peterson <gp@qnx.com>
189 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
190 * Makefile.am: Add eelf32{l}ppcnto.o files.
191 * Makefile.in: Regenerate.
192 * emulparams/elf32lppcnto.sh: New file.
193 * emulparams/elf32ppcnto.sh: New file.
195 2002-08-07 H.J. Lu <hjl@gnu.org>
197 * ld.texinfo: Document --no-undefined-version.
199 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
200 `script.' fields to 0.
202 * ldmain.c (main): Initialize the allow_undefined_version to
205 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
206 (ld_options): Add --no-undefined-version.
207 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
209 2002-08-07 Nick Clifton <nickc@redhat.com>
211 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
212 an interworking bfd if there are input bfds. (107501)
214 2002-08-06 Alan Modra <amodra@bigpond.net.au>
216 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
219 2002-08-01 Nick Clifton <nickc@redhat.com>
221 * emulparams/armelf.sh: Revert previous delta.
222 * scripttempl/elf.sc: Revert previous delta.
224 2002-07-31 H.J. Lu <hjl@gnu.org>
226 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
229 2002-07-31 H.J. Lu <hjl@gnu.org>
231 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
232 64bit BFD is selected.
234 2002-07-31 H.J. Lu <hjl@gnu.org>
236 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
237 if 64bit BFD is selected.
239 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
241 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
242 link_info.common_skip_ar_aymbols.
243 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
245 * ldmain.c (main): Initialize new field
246 link_info.common_skip_ar_aymbols.
248 2002-07-31 Adam Nemet <anemet@lnxw.com>
250 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
252 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
255 2002-07-31 Nick Clifton <nickc@redhat.com>
257 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
258 of the PDP-11 and 2.11BSD a.out support.
260 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
264 * Makefile.in: Regenerate.
265 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
266 n32 ABI emulations for these 64 bit targets.
267 * emulparams/elf32bmipn32.sh: Expand comment.
268 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
270 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
272 2002-07-30 Graeme Peterson <gp@qnx.com>
274 * configure.tgt: Add support for arm-*-nto target.
275 * Makefile.am: Add earmnto.o file.
276 * Makefile.in: Regenerate.
277 * NEWS: Mention port of ARM support to QNX.
278 * emulparams/armnto.sh: New file.
280 2002-07-30 Jakub Jelinek <jakub@redhat.com>
282 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
283 for relocatable link.
284 (lang_size_sections_1): Don't make .tbss zero size for relocatable
287 2002-07-26 Bernd Schmidt <bernds@redhat.com>
289 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
292 2002-07-25 Nick Clifton <nickc@redhat.com>
294 * po/sv.po: Updated Swedish translation.
295 * po/es.po: Updated Spanish translation.
296 * po/fr.po: Updated French translation.
298 2002-07-24 Nick Clifton <nickc@redhat.com>
300 * po/sv.po: Updated Swedish translation.
301 * po/es.po: Updated Spanish translation.
303 2002-07-23 Nick Clifton <nickc@redhat.com>
305 * po/fr.po: Updated French translation.
307 2002-07-20 Alan Modra <amodra@bigpond.net.au>
309 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
310 bomb on /DISCARD/ input section.
311 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
312 * emultempl/mmo.em (mmo_place_orphan): Likewise.
314 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
316 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
319 2002-07-16 Denis Chertykov <denisc@overta.ru>
320 Nick Clifton <nickc@redhat.com>
321 Frank Ch. Eigler <fche@redhat.com>
322 John Healy <jhealy@redhat.com>
324 * configure.tgt: Add support for ip2k-elf.
325 * Makefile.am: Add support for ip2k-elf.
326 * Makefile.in: Regenerate.
327 * emulparams/elf32ip2k.sh: New file.
328 * scripttempl/ip2k.sc: New file
329 * NEWS: Mention support for new port.
331 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
333 * NEWS: Add 'Changes in 2.13'.
335 2002-07-14 H.J. Lu <hjl@gnu.org>
337 * ld.texinfo: Document a .symver takes precedence over a
340 2002-07-12 Alan Modra <amodra@bigpond.net.au>
342 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
343 (COMMONPAGESIZE): Define.
345 2002-07-09 Alan Modra <amodra@bigpond.net.au>
347 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
349 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
351 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
352 powerpc-*-openbsd* and sparc64-*-openbsd*.
353 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
354 * Makefile.in: Regenerate.
355 * emulparams/hppaobsd.sh: New file.
357 2002-07-05 Alan Modra <amodra@bigpond.net.au>
359 * ldlang.c (print_wild_statement): Fix output formatting.
361 2002-07-04 Alan Modra <amodra@bigpond.net.au>
363 * ldlang.c: (strip_excluded_output_sections): New function.
364 (lang_process): Call it.
365 (lang_size_sections_1): Revert 2002-06-10 change.
367 2002-07-03 Alan Modra <amodra@bigpond.net.au>
369 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
371 * Makefile.in: Regenerate.
373 2002-07-02 Alan Modra <amodra@bigpond.net.au>
375 * ldfile.c (ldfile_try_open_bfd): Formatting.
377 * ldmisc.c (demangle): Move so that it doesn't intrude between
378 vfinfo comment and body. Add comment.
380 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
382 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
384 2002-07-01 Alan Modra <amodra@bigpond.net.au>
386 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
387 * ldlang.c (entry_sym): Likewise.
388 (ldlang_undef_chain_list_type): Likewise.
389 (lang_finish): Adjust references to entry_symbol.
390 (lang_add_entry): Likewise.
391 (lang_gc_sections): Use link_info.gc_sym_list.
392 (lang_process): Set link_info.gc_sym_list.
393 * ldlex.l: Include bfdlink.h.
394 * ldmain.c (main): Init link_info.gc_sym_list.
395 * emultempl/aix.em: Adjust references to entry_symbol.
396 * emultempl/armcoff.em: Likewise.
397 * emultempl/armelf.em: Likewise.
398 * emultempl/pe.em: Likewise.
399 * emultempl/ppc64elf.em (ppc_after_open): New function.
400 (LDEMUL_AFTER_OPEN): Define.
401 * emulparams/elf64ppc.sh: KEEP .opd sections.
403 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
405 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
406 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
407 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
408 (EEPROM_START_ADDR): Define.
409 (EEPROM_MEMORY): Define.
410 * emulparams/m68hc12elf.sh: Likewise.
411 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
412 section to put soft registers in .page0.
413 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
415 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
417 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
418 section. Add ${RELOCATING-0}.
420 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
422 * emulparams/shelf.sh (STACK_ADDR): Don't define.
423 (OTHER_SECTIONS): Define.
424 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
425 (OTHER_SECTIONS): Undef.
427 2002-06-26 Alan Modra <amodra@bigpond.net.au>
429 * ldmisc.c (demangle): Restore dots stripped from sym name.
431 2002-06-25 H.J. Lu <hjl@gnu.org>
433 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
434 * Makefile.in: Regenerated.
436 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
438 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
439 the size of attached object files, to allow make the object files
440 available via FTP or HTTP and to mention that the mail will be
441 sent to a mailing list.
443 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
445 * ld/configure.host (romp): Drop support.
447 2002-06-18 Chris Demetriou <cgd@broadcom.com>
449 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
450 section flags for SEC_DATA, rather than for SEC_CODE being unset.
452 2002-06-18 Chris Demetriou <cgd@broadcom.com>
454 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
455 format specifier used to print BFD name.
457 2002-06-18 Dave Brolley <brolley@redhat.com>
459 From Catherine Moore, Michael Meissner, Jim Blandy:
460 * emulparams/elf32frv.sh: New file.
461 * configure.tgt: Support frv-*-*.
462 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
463 (eelf32frv.c): New target.
465 2002-06-17 Tom Rix <trix@redhat.com>
467 * emultempl/elf32.em: gld*_get_script: Check for
468 GENERATE_COMBRELOC_SCRIPT.
469 * scripttempl/elfd10v.sc : Fix STACK and INSN.
470 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
472 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
474 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
476 2002-06-12 H.J. Lu <hjl@gnu.org>
478 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
479 false if xvec doesn't match.
481 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
483 * ldlang.c (lang_size_sections_1): Skip removed output sections.
485 2002-06-08 Alan Modra <amodra@bigpond.net.au>
487 * ldexp.c: Replace CONST with const.
488 * ldfile.c: Likewise.
489 * ldfile.h: Likewise.
492 * pe-dll.h: Likewise.
494 2002-06-07 Alan Modra <amodra@bigpond.net.au>
496 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
498 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
500 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
501 to -1 == implicit enable.
502 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
503 initialize link_info.pei386_auto_import to -1 == implicit
505 (gld_${EMULATION_NAME}_parse_args): When processing
506 --enable-auto-import and --disable-auto-import options, use
507 '1' and '0' instead of 'true' and 'false'.
508 (pe_find_data_imports): Only issue message about auto-import
509 when the feature is implicitly enabled. Downgrade message to
510 informational instead of warning.
512 2002-06-07 Alan Modra <amodra@bigpond.net.au>
514 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
516 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
518 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
519 HOSTING_CRT0 and HOSTING_LIBS.
521 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
523 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
525 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
527 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
528 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
530 2002-06-05 Alan Modra <amodra@bigpond.net.au>
532 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
533 SEC_EXCLUDE sections when doing a relocatable link.
535 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
537 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
538 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
539 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
540 (eshlelf64_nbsd.c): New rules.
541 * Makefile.in: Regenerate.
542 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
543 (sh64-*-netbsd*): New targets.
544 * emulparams/shelf32_nbsd.sh: New file.
545 * emulparams/shelf64_nbsd.sh: New file.
546 * emulparams/shlelf32_nbsd.sh: New file.
547 * emulparams/shlelf64_nbsd.sh: New file.
549 2002-06-04 Alan Modra <amodra@bigpond.net.au>
551 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
553 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
555 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
556 C++ constructors/destructors, loosely based on the m68hc11 port.
558 2002-05-31 Alan Modra <amodra@bigpond.net.au>
560 * Makefile.in: Regenerate.
561 * aclocal.m4: Regenerate.
562 * config.in: Regenerate.
563 * configure: Regenerate.
565 2002-05-31 Graeme Peterson <gp@qnx.com>
567 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
568 (ei386nto.c): Add rule.
569 * Makefile.in: Regenerate.
570 * configure.tgt: Add i[3456]86-*-nto-qnx*.
571 * emulparams/i386nto.sh: New file.
573 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
575 * NEWS: Add entry for VAX ELF support.
577 2002-05-29 Matt Thomas <matt@3am-software.com>
578 Jason Thorpe <thorpej@wasabisystems.com>
580 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
582 (evaxnbsd.c): New rules.
583 * Makefile.in: Regenerate.
584 * configure.tgt (vax-*-netbsdelf*)
586 (vax-*-netbsd*): New targets.
587 * emulparams/elf32vax.sh: New file.
588 * emulparams/vaxnbsd.sh: New file.
590 2002-05-29 Adam Nemet <anemet@lnxw.com>
592 * emultempl/armelf.em (arm_elf_after_open): Don't determine
593 bfd_for_interwork, instead add glue sections to each input bfd.
594 (bfd_for_interwork): New global.
595 (arm_elf_set_bfd_for_interworking): New function.
596 (arm_elf_before_allocation): Use it.
598 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
600 * Makefile.am: Add DLX make target.
601 * configure.tgt: Add DLX configuration.
602 * Makefile.in: Regenerate.
603 * emulparams/elf32_dlx.sh: New file
604 * scripttempl/dlx.sc: New file
606 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
608 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
609 * Makefile.in: Regenerate.
610 * emulparams/elf_chaos.sh: Use elf_chaos script.
611 * scripttempl/elf_chaos.sc: New file.
613 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
615 * ldlang.c (lang_size_sections_1): Move check for conflicting load
616 addresses and regions from here...
617 (lang_get_regions): ...to this new function.
618 (lang_leave_output_section_statement): Use lang_get_regions.
619 (lang_leave_overlay): Likewise.
620 * mri.c (mri_draw_tree): Pass null as last argument to
621 lang_leave_output_section_statement.
622 * emultempl/elf32.em (gld*_place_orphan): Likewise.
623 * emultempl/mmo.em (mmo_place_orphan): Likewise.
624 * emultempl/pe.em (gld*_place_orphan): Likewise.
626 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
628 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
630 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
632 * ldemul.c: Fix formatting.
633 * ldfile.c: Likewise.
634 * pe-dll.c: Likewise.
635 * pe-dll.h: Likewise.
637 2002-05-25 Alan Modra <amodra@bigpond.net.au>
639 * ldlang.c (lang_process): Formatting, grammar.
641 * ldlex.l: Use #include "" instead of <> for local header files.
643 2002-05-24 TAMURA Kent <kent@netbsd.org>
645 * configure.tgt: Add a target for i386-netbsdpe.
647 2002-05-23 Jakub Jelinek <jakub@redhat.com>
649 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
650 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
651 output section if necessary. Handle .tbss.
652 (lang_size_sections): Clear _raw_size for .tbss section
653 (it allocates space in PT_TLS segment only).
654 * ldwrite.c (build_link_order): Build link order for .tbss too.
656 2002-05-23 Alan Modra <amodra@bigpond.net.au>
658 * configure.in: Correct spelling of AC_PREREQ.
660 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
662 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
664 (autofilter_objlist): Add crtbegin.o, crtend.o.
666 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
668 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
669 (longopts): Add new option --exclude-libs.
670 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
671 (gld_${EMULATION_NAME}_parse_args): Use it.
672 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
673 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
675 (pe_dll_add_excludes): Set excludes->type.
676 (auto_export): Add new variable libname and set to archive basename if
677 abfd. Use it when filtering default and user-specified libarary
678 excludes. Let string "ALL" mean all libs when filtering user-specified
680 * ld.texinfo: Document --exclude-libs.
682 2002-05-22 Alan Modra <amodra@bigpond.net.au>
684 * ldemul.c (ldemul_new_vers_pattern): New function.
685 * ldemul.h (ldemul_new_vers_pattern): Declare.
686 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
687 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
688 * emultempl/ppc64elf.em (dotsyms): New static var.
689 (gld${EMULATION_NAME}_new_vers_pattern): New function.
690 (LDEMUL_NEW_VERS_PATTERN): Define.
691 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
692 (PARSE_AND_LIST_LONGOPTS): Likewise.
693 (PARSE_AND_LIST_ARGS_CASES): Handle them.
694 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
696 * emultempl/armcoff.em: Likewise.
697 * emultempl/armelf_oabi.em: Likewise.
698 * emultempl/beos.em: Likewise.
699 * emultempl/elf32.em: Likewise.
700 * emultempl/generic.em: Likewise.
701 * emultempl/gld960.em: Likewise.
702 * emultempl/gld960c.em: Likewise.
703 * emultempl/linux.em: Likewise.
704 * emultempl/lnk960.em: Likewise.
705 * emultempl/m68kcoff.em: Likewise.
706 * emultempl/mipsecoff.em: Likewise.
707 * emultempl/pe.em: Likewise.
708 * emultempl/sunos.em: Likewise.
709 * emultempl/ticoff.em: Likewise.
710 * emultempl/vanilla.em: Likewise.
712 2002-05-22 Alan Modra <amodra@bigpond.net.au>
714 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
715 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
716 (LIB_SEARCH_DIRS): No need to use "tr".
717 (COMPILE_IN): Only set for native targets.
718 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
719 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
720 * configure.tgt (powerpc*): Set tdir_*.
721 (powerpcle*): Correct targ_extra_emuls.
722 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
723 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
725 2002-05-22 Alan Modra <amodra@bigpond.net.au>
727 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
728 calling lang_add_entry.
730 2002-05-21 H.J. Lu (hjl@gnu.org)
732 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
734 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
736 * ld.texinfo: Updated for --allow-multiple-definition and
739 * ldmain.c (main): Initialize the allow_multiple_definition
742 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
743 (ld_options): Add --allow-multiple-definition.
744 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
746 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
748 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
749 (earmelfb_nbsd.c): New rule.
750 * Makefile.in: Regenerate.
751 * configure.tgt (armeb-*-netbsdelf*): New target.
752 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
753 (arm-*-netbsd*): Likewise.
754 * emulparams/armelfb_nbsd.sh: New file.
756 2002-05-18 Tom Rix <trix@redhat.com>
758 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
761 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
763 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
764 * Makefile.in: Regenerate.
765 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
767 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
769 * emulparams/avr1.sh: New file.
770 * emulparams/avr2.sh: New file.
771 * emulparams/avr3.sh: New file.
772 * emulparams/avr4.sh: New file.
773 * emulparams/avr5.sh: New file.
774 * scripttempl/avr.sc: New file.
776 2002-05-15 Alan Modra <amodra@bigpond.net.au>
778 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
779 (lang_place_orphans): Abort if just_syms_flag.
781 2002-05-10 Tom Rix <trix@redhat.com>
783 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
784 architecture and machine information in the output bfd.
785 (gld*_before_parse): Remove old arch and machine code.
786 (choose_target): Rename to gld*_choose_target.
787 (rtld): Change type to int.
788 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
789 objects in XCOFF archives.
790 * ldfile.h: Update copyright date.
792 2002-05-10 Jakub Jelinek <jakub@redhat.com>
794 * ldmain.c (main): Enable -z combreloc by default.
796 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
798 * Makefile.am: Honour DESTDIR.
799 * Makefile.in: Regenerate.
801 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
803 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
804 (lang_enter_overlay): Remove the last two parameters.
805 (lang_leave_overlay): Take them here instead.
806 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
807 (section): Pass LMA and crossref flag to lang_leave_overlay rather
808 than lang_enter_overlay.
809 * ldlang.c (lang_memory_region_lookup): Return null for null names.
810 (lang_output_section_statement_lookup): Initialize update_dot_tree.
811 (lang_size_sections_1): Evaluate it.
812 (lang_leave_output_section_statement): Rework LMA lookup.
813 (overlay_lma, overlay_nocrossrefs): Remove.
814 (lang_enter_overlay): Remove LMA and crossref arguments.
815 (lang_enter_overlay_section): Don't set the LMA here.
816 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
817 assignment to the last section's update_dot_tree. Unconditionally
818 use the load and run-time regions specified in the OVERLAY statement.
819 Likewise the first section's LMA. Only set the other sections' LMAs
820 when no load region is given.
822 2002-05-06 Nick Clifton <nickc@redhat.com>
824 * po/sv.po: New translation.
826 2002-05-04 Alan Modra <amodra@bigpond.net.au>
828 * emultempl/hppaelf.em (build_section_lists): New function.
829 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
830 and build_section_lists.
832 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
834 * ld.h: Fix formatting.
836 * ldfile.c: Likewise.
837 * ldlang.c: Likewise.
838 * ldmain.c: Likewise.
839 * lexsup.c: Likewise.
840 * pe-dll.c: Likewise.
842 2002-05-02 Alan Modra <amodra@bigpond.net.au>
844 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
845 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
846 (build_section_lists): Do output_section tests here.
848 2002-04-30 Tom Rix <trix@redhat.com>
850 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
852 2002-05-01 Alan Modra <amodra@bigpond.net.au>
854 Long branch stubs, multiple stub sections.
855 * emultempl/ppc64elf.em: Include ldctor.h.
856 (stub_file): New var.
857 (group_size): New var.
858 (ppc_create_output_section_statements): New function.
859 (struct hook_stub_info): New.
860 (hook_in_stub): New function.
861 (ppc_add_stub_section): New function.
862 (ppc_layout_sections_again): New function.
863 (build_section_lists): New function.
864 (gld${EMULATION_NAME}_finish): Rewrite.
865 (real_func): New var.
866 (ppc_for_each_input_file_wrapper): New function.
867 (ppc_lang_for_each_input_file): New function.
868 (lang_for_each_input_file): Define.
869 (PARSE_AND_LIST_PROLOGUE): Define.
870 (PARSE_AND_LIST_LONGOPTS): Define.
871 (PARSE_AND_LIST_OPTIONS): Define.
872 (PARSE_AND_LIST_ARGS_CASES): Define.
873 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
875 2002-04-30 Tom Rix <trix@redhat.com>
877 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
878 -blibpath, -bnolibpath support.
880 2002-04-30 Mark Mitchell <mark@codesourcery.com>
882 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
883 (eelf32ppcwindiss.c): New target.
884 * Makefile.in: Regenerated.
885 * configure.tgt: Add support for powerpc-*-windiss.
886 * emulparams/elf32ppcwindiss.sh: New file.
888 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
890 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
891 * ldexp.c (exp_print_token): Add "infix_p" argument.
892 (exp_print_tree): Update accordingly.
894 2002-04-28 Alan Modra <amodra@bigpond.net.au>
896 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
897 * Makefile.in: Regenerate.
898 * mpw-elfmips.c: Delete.
899 * mpw-eppcmac.c: Delete.
901 * mpw-idtmips.c: Delete.
903 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
905 * emulparams/shelf32.sh (MACHINE): Now sh5.
907 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
909 * ldgram.y: Fix syntax warning.
911 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
913 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
914 to prevent "-n" from being taken as an abbreviation for
915 "--no-pipeline-knowledge".
917 2002-04-08 Alan Modra <amodra@bigpond.net.au>
919 * ldlang.c (lang_size_sections_1): Don't complain about
920 SEC_NEVER_LOAD sections having no memory region specified.
922 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
924 2002-04-07 matthew green <mrg@redhat.com>
926 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
928 2002-04-04 Alan Modra <amodra@bigpond.net.au>
930 * dep-in.sed: Cope with absolute paths.
931 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
933 * Makefile.in: Regenerate.
935 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
937 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
939 2002-04-03 Jakub Jelinek <jakub@redhat.com>
941 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
942 is smaller than maximum, round dot up to common page boundary.
944 2002-03-28 Alan Modra <amodra@bigpond.net.au>
946 * configure.host: Set up for generic hosts first, then tweak as
947 necessary in more specific targets.
948 (HOSTING_LIBS): Include libgcc_eh.a if found.
950 2002-03-23 Andreas Jaeger <aj@suse.de>
952 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
954 2002-03-21 Alan Modra <amodra@bigpond.net.au>
956 * Makefile.am: Run "make dep-am".
957 * Makefile.in: Regenerate.
959 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
961 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
963 2002-03-20 Alan Modra <amodra@bigpond.net.au>
965 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
966 add the symbol to the linker hash table immediately.
967 (lang_place_undefineds): Split symbol creation out..
968 (insert_undefined): ..to here.
970 2002-03-18 David O'Brien <obrien@FreeBSD.org>
972 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
973 the contents of the buffer returned from basename function will are
974 getting overwritten while still being used.
976 2002-03-18 Jan Hubicka <jh@suse.cz>
977 Andreas Jaeger <aj@suse.de>
978 Andreas Schwab <schwab@suse.de>
980 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
981 * elf_x86_64.sh (ARCH): Set to i386:x86-64
982 set libraries to default to lib64 paths.
984 2002-03-18 Tom Rix <trix@redhat.com>
986 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
987 * configure.tgt : Same.
988 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
989 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
990 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
991 emulation parameters for better -b32, -b64 support.
992 * emulparms/aixrs6.sh : Same.
993 * emulparms/ppcmacos.sh : Same.
994 * emultempl/aix.em (choose_target) : Use new emulation parameters
995 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
996 * Makefile.in : Regenerate.
998 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1000 * po/fr.po: Updated version.
1002 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1004 * ldmain.c (main): Move .text readonly flag fudges from here..
1005 * ldlang.c (lang_process): ..to here.
1007 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1009 * ldlang.c (lang_check): Remove the word size check added in last
1010 change. Treat emitrelocations case as for relocatable links.
1012 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1014 * po/fr.po: Updated version.
1016 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1018 * ldlang.c (lang_check): Do relocatable link checks first, so that
1019 warn_mismatch can't override. Check compatible and word size too.
1021 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1023 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1025 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1027 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1030 2002-03-04 H.J. Lu <hjl@gnu.org>
1032 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1033 .fini_array in the data segment.
1035 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1037 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1039 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1041 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1042 .init_array, and .fini_array.
1044 2002-02-20 Andreas Schwab <schwab@suse.de>
1046 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1047 .IA64_unwind* in a relocatable link.
1049 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1051 * NEWS: Mark 2.12 branch.
1053 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1055 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1056 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1058 2002-02-18 Tom Rix <trix@redhat.com>
1060 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1061 (gld*_before_allocation): Same.
1062 (gld*_create_output_section_statements): Generate
1063 __rtinit if run time linking. Add librtl.a to the link.
1064 (gld*_read_file): Clean.
1066 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1068 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1070 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1072 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1073 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1074 and eelf64alpha_fbsd.
1075 * Makefile.in: Regenerate.
1076 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1077 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1078 use a FreeBSD-specific emulation rather than the psABI one.
1079 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1080 for all FreeBSD ELF systems.
1081 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1083 * emulparams/elf32ppc_fbsd.sh: Likewise.
1084 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1085 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1086 * emulparams/elf64alpha_fbsd.sh: Likewise.
1087 * emulparams/elf_i386_fbsd.sh: Likewise.
1088 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1090 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1092 * po/tr.po: Updated version.
1094 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1096 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1099 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1101 * emultempl/mmo.em (mmo_after_open): Don't call
1102 _bfd_mmix_check_all_relocs when producing ELF output.
1104 2002-02-15 Richard Henderson <rth@redhat.com>
1106 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1107 definition. Emit a unop+nop pair.
1109 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1111 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1112 for presence of .MMIX.reg_contents.linker_allocated before early
1115 * NEWS: Mention support for MMIX.
1117 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1119 Support arbitrary length fill patterns.
1120 * ld.texinfo (Output Section Fill): Describe fill expressions.
1121 (FILL): Refer to the above.
1122 * ldexp.h (etree_value_type): Add "str" field.
1123 (union etree_union): Add "str" to "value" struct.
1124 (exp_bigintop): Declare.
1125 (exp_get_fill): Declare.
1126 * ldexp.c: Include "safe-ctype.h".
1127 (exp_intop): Set value.str to NULL.
1128 (exp_bigintop): New function.
1129 (new_rel): Pass in "str", and set new.str from it.
1130 (new_rel_from_section): Set new.str to NULL.
1131 (fold_name): Adjust calls to new_rel.
1132 (exp_fold_tree): Likewise.
1133 (exp_get_fill): New function.
1134 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1135 (INT): Returns a "bigint". Adjust all code handling INTs.
1136 (fill_opt): Returns a "fill".
1137 (fill_exp): Split out of fill_opt, use for FILL.
1138 * ldlang.h (struct _fill_type): New.
1139 (fill_type): Move typedef to ldexp.h.
1140 (lang_output_section_statement_type): "fill" is now a pointer.
1141 (lang_fill_statement_type): Likewise.
1142 (lang_padding_statement_type): Likewise.
1143 (lang_add_fill): Now takes a "fill_type *" param.
1144 (lang_leave_output_section_statement): Likewise.
1145 (lang_do_assignments): Likewise.
1146 (lang_size_sections): Likewise.
1147 (lang_leave_overlay_section): Likewise.
1148 (lang_leave_overlay): Likewise.
1149 * ldlang.c: Include ldgram.h after ldexp.h.
1150 (lang_output_section_statement_lookup): Adjust for fill_type change.
1151 (print_fill_statement): Likewise.
1152 (print_padding_statement): Likewise.
1153 (insert_pad): Now takes a "fill_type *" arg.
1154 (size_input_section): Likewise.
1155 (lang_size_sections_1): Likewise.
1156 (lang_size_sections): Likewise.
1157 (lang_do_assignments): Likewise.
1158 (lang_add_fill): Likewise.
1159 (lang_leave_output_section_statement): Likewise.
1160 (lang_leave_overlay_section): Likewise.
1161 (lang_leave_overlay): Likewise.
1162 Adjust all callers of the above function.
1163 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1164 starting with "0X" as well as "0x". Return bigint.str for hex
1165 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1166 Always use base 16 for numbers starting with "$".
1167 * ldmain.c: Include ldgram.h after ldexp.h.
1168 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1169 of bfd_fill_link_order.
1170 * pe-dll.c: Adjust lang_do_assignments calls.
1171 * emultempl/elf32.em: Likewise.
1172 * emultempl/hppaelf.em: Likewise.
1173 * emultempl/ppc64elf.em: Likewise.
1174 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1175 lang_add_assignment call.
1176 * emultempl/pe.em: Likewise.
1178 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1180 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1181 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1182 the pattern in question is not a regexp.
1183 * ldlang.c: Likewise.
1184 * ldlang.h: Likewise.
1185 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1187 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1189 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1190 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1191 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1192 * ldexp.c (exp_data_seg): New variable.
1193 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1194 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1195 (exp_fold_tree): Handle DATA_SEGMENT_END.
1196 Pass allocation_done when recursing instead of hardcoding
1197 lang_allocating_phase_enum.
1198 * ldexp.h (exp_data_seg): New.
1199 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1200 (lang_size_sections): New.
1201 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1202 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1203 if COMMONPAGESIZE is defined.
1204 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1205 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1206 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1207 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1208 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1211 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1213 * Makefile.in: Regenerate.
1215 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1217 * lexsup.c: Remove strtoul declaration.
1219 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1221 * ldmain.c: Add prototype for main ().
1222 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1223 * emultempl/lnk960.em (lnk960_choose_target): Function should
1226 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1228 * ldlang.c (entry_section): New initialised variable.
1229 (lang_finish): Use it.
1230 * ldlang.h (entry_section): Declare.
1231 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1232 entry_section to ".opd".
1234 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1236 * ld.texinfo (Options): Add back in -nostdlib documentation,
1237 which had been inadvertently removed.
1239 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1241 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1242 register section vma to a sane value after emitting error. Make
1243 fatal conditions cause program exit when emitting message.
1245 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1247 * configure.tgt: Add or32-*-rtems target.
1249 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1251 Contribute sh64-elf.
1252 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1253 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1254 in OTHER_RELOCATABLE_SECTIONS.
1255 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1256 * emulparams/shelf32.sh (STACK_ADDR): Define.
1257 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1258 (OTHER_SECTIONS): this. Removed stack settings.
1259 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1260 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1261 2001-03-12 DJ Delorie <dj@redhat.com>
1262 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1263 relaxing if any shmedia or mixed sections are found.
1264 2001-03-07 DJ Delorie <dj@redhat.com>
1265 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1266 einfo. Gracefully decline to output to non-elf formats.
1267 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1268 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1269 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1270 * emulparams/shelf32.sh: Ditto.
1271 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1272 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1274 2001-01-10 Ben Elliston <bje@redhat.com>
1275 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1276 non-portable shell constructs. From Hans-Peter Nilsson.
1277 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1278 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1279 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1280 dependencies to the shell script include chain.
1281 * Makefile.in: Regenerate.
1282 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1283 * emultempl/sh64elf.em: Update and tweak comments.
1284 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1285 make a .cranges section SEC_IN_MEMORY.
1286 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1287 * emultempl/sh64elf.em
1288 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1289 .cranges section found to be necessary; continue and set stored
1290 section contents flags for sections with non-mixed contents.
1291 Use a struct sh64_section_data container and sh64_elf_section_data
1292 to store contents-type flags.
1293 Remove unused update of "isec".
1294 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1295 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1296 access contents-type flags. Assert that the associated container
1297 is initialized. Use that container, not elf_gp_size, to hold size
1298 of linker-generated cranges contents.
1299 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1300 * emultempl/sh64elf.em
1301 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1302 there's already a .cranges section. When section flag difference
1303 is found, don't NULL-check cranges a second time. Tweak comments.
1304 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1305 merging, not max size, as size of ld-generated .cranges contents.
1306 Don't set ELF section flags in output section. When checking for
1307 needed .cranges descriptors, don't use a variable; compare
1308 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1310 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1311 * emultempl/sh64elf.em: New file.
1312 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1313 * Makefile.in: Regenerate.
1314 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1315 (OTHER_RELOCATING_SECTIONS): Ditto.
1316 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1317 * emulparams/shlelf32.sh: Stub out all settings except
1318 OUTPUT_FORMAT. Source shelf32.sh.
1319 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1320 OTHER_RELOCATING_SECTIONS.
1321 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1322 * emulparams/shlelf64.sh: Stub out all settings except
1323 OUTPUT_FORMAT. Source shelf64.sh.
1324 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1325 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1327 (DATA_START_SYMBOLS): Define, provide ___data.
1328 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1329 for consecutive .data section.
1330 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1331 section after .data section.
1332 * emulparams/shlelf64.sh: Ditto.
1333 * emulparams/shelf32.sh: Ditto.
1334 (ALIGNMENT): Define to 8.
1335 * emulparams/shelf32.sh: Ditto.
1336 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1337 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1338 built-in linker scripts.
1339 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1340 * emulparams/shlelf64.sh: New.
1341 * emulparams/shelf64.sh: New.
1342 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1344 * Makefile.am: Add support for shlelf64 and shelf64.
1345 * Makefile.in: Regenerate.
1346 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1347 * configure.tgt (sh64-*-elf*): Add shelf as default.
1348 Add shlelf to targ_extra_emuls.
1349 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1350 * emulparams/shelf32.sh: New file.
1351 * emulparams/shlelf32.sh: New file.
1352 * Makefile.am: Add support for shlelf32 and shelf32.
1353 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1354 * Makefile.in: Regenerate.
1356 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1358 * ldlang.c (lang_reset_memory_regions): Rename from
1359 reset_memory_regions. Change all callers. Make public.
1360 * ldlang.h (lang_reset_memory_regions): Prototype.
1361 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1362 lang_reset_memory_regions before lang_size_sections.
1363 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1364 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1366 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1368 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1369 arithmetic when checking for too many global registers.
1371 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1373 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1374 (ehppanbsd.c): New rule.
1375 * Makefile.in: Regenerate.
1376 * configure.tgt (hppa*-*-netbsd*): New target.
1377 * emulparams/hppalinux.sh: Add comment to check other files
1378 that source this file it is modified, and list which
1380 * emulparams/hppanbsd.sh: New file.
1382 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1384 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1387 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1389 Support on-demand global register allocation from
1390 R_MMIX_BASE_PLUS_OFFSET relocs.
1391 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1392 mmix_set_reg_section_vma. Call
1393 _bfd_mmix_finalize_linker_allocated_gregs.
1394 (mmix_before_allocation): New function.
1395 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1396 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1397 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1398 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1399 before .MMIX.reg_contents.
1400 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1401 (mmo_after_open): New function.
1402 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1403 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1404 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1406 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1408 * emulparams/or32.sh: New file.
1409 * emulparams/or32elf.sh: New file.
1410 * scripttempl/or32.sc: New file.
1411 * configure.tgt : Add support for or32.
1412 * configure: Regenerate
1413 * Makefile.am: Add support for or32.
1414 * Makefile.in: Regenerate.
1415 * NEWS: Mention support for or32.
1416 * po/ld.pot: Regenerate.
1418 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1419 Mitch Lichtenberg <mpl@broadcom.com>
1421 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1422 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1423 reloc creation (ld --embedded-relocs).
1425 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1427 * configure: Regenerated.
1429 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1431 * Makefile.am (install): Depend on install-info.
1432 * Makefile.in: Regenerate.
1434 2002-01-26 Christian Rose <menthos@menthos.com>
1436 * ldmain.c (main): Use full sentences to ease translation.
1438 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1440 * po/fr.po: Updated version.
1442 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1444 * po/es.po: Updated version.
1446 2002-01-25 Andreas Jaeger <aj@suse.de>
1448 * ldlex.l (yy_input): Correct error check.
1450 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1452 * ldmisc.c (demangle): Put back dots when string not demangled.
1454 2002-01-22 Richard Henderson <rth@redhat.com>
1456 * emulparams/elf64alpha.sh (NOP): Use unop.
1458 2002-01-21 Andreas Jaeger <aj@suse.de>
1460 * ldlex.l: Use fread instead of read.
1462 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1464 * configure.tgt (ia64-*-netbsd*): New target.
1466 2002-01-21 H.J. Lu <hjl@gnu.org>
1468 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1470 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1472 2002-01-18 Andreas Jaeger <aj@suse.de>
1474 * ldver.c (ldversion): Update year.
1476 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1478 * po/ld.pot: Regenerate.
1480 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1482 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1483 * Makefile.in: Regenerate.
1484 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1485 * emultempl/ppc64elf.em: New file.
1487 2002-01-15 DJ Delorie <dj@redhat.com>
1489 * scripttempl/pe.sc: Add support for constructor priorities.
1491 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1493 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1494 * emulparams/avr23xx.sh: Likewise.
1495 * emulparams/avr4433.sh: Likewise.
1496 * emulparams/avr44x4.sh: Likewise.
1497 * emulparams/avr85xx.sh: Likewise.
1498 * emulparams/avrmega103.sh: Likewise.
1499 * emulparams/avrmega161.sh: Likewise.
1500 * emulparams/avrmega603.sh: Likewise.
1501 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1503 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1505 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1506 archive is excluded.
1508 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1510 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1511 (eshelf_nbsd.c): New rule.
1512 (eshlelf_nbsd.c): New rule.
1513 * Makefile.in: Regenerate.
1514 * configure.tgt (sh*le-*-netbsdelf*): New target.
1515 (sh*-*-netbsdelf*): New target.
1516 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1517 * ld/emulparams/shelf_nbsd.sh: New emulation.
1518 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1520 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1522 * po/es.po: New file: Spanish translation.
1523 * configure.in (ALL_LINGUAS): Add es.
1524 * configure: Regenerate.
1526 2002-01-06 John Marshall <jmarshall@acm.org>
1528 * ld.texinfo: Note that --emit-relocs is currently only
1529 implemented for ELF.
1531 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1533 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1534 of bfd_section_list_remove and bfd_section_list_insert macros.
1535 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1536 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1538 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1540 * configure.tgt (x86_64-*-netbsd*): New target.
1542 2001-12-21 Tom Rix <trix@redhat.com>
1544 (gld*_create_output_section_statements): New function.
1545 For -binitfini support.
1546 * emultempl/aix.em (gld*_before_parse): Fix comment.
1547 * emultempl/aix.em (gld*_parse_args): Fix comment.
1549 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1551 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1553 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1555 * configure.tgt (arm-*-netbsdelf*): Add target.
1556 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1557 * emulparams/armelf_nbsd.sh: Added.
1558 * Makefile.am: Add rules for earmelf_nbsd.
1559 * Makefile.in: Regenerate.
1561 2001-12-19 Andreas Jaeger <aj@suse.de>,
1562 Susanne Oberhauser <froh@suse.de>
1564 * configure.host: Add rules for x86_64-*linux-gnu. Change
1565 s390x-linux entry to use gcc to report configuration, replace gcc
1566 with $CC in s390-linux
1568 2001-12-19 Andreas Jaeger <aj@suse.de>
1570 * ld.texinfo (VERSION): Fix markup.
1572 2001-12-18 matthew green <mrg@eterna.com.au>
1574 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1575 (m68kelfnbsd.c): New rule.
1576 * Makefile.in: Regenerate.
1577 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1578 (m68*-*-netbsd*4k*): .. this.
1579 (m68*-*-netbsdelf*): New target.
1580 (m68*-*-netbsd*): Also include ELF support.
1581 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1582 * emulparams/m68kelfnbsd.sh: New emulation.
1584 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1586 * ldgram.y (vers_node): Support anonymous version tags.
1587 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1588 tag is not defined together with non-anonymous versions.
1589 * ld.texinfo: Document it.
1591 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1593 * po/tr.po: New file: Turkish translation.
1594 * configure.in (ALL_LINGUAS): Add tr.
1595 * configure: Regenerate.
1597 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1599 * Makefile.am: Add rules for eelf64alpha_nbsd.
1600 * Makefile.in: Regenerate.
1601 * configure.tgt (alpha*-*-netbsd*): Set
1602 targ_emul to elf64alpha_nbsd.
1603 * emulparams/elf64alpha_nbsd.sh: Added.
1605 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1607 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1608 section_tail when fiddling with section list.
1609 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1610 broken into separate strings to make translation easier.
1611 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1612 fiddling with section list.
1613 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1615 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1617 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1619 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1621 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1623 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1625 * emultempl/elf32.em (finish): Supply output_bfd
1626 to bfd_elf*_discard_info.
1627 (OPTION_EH_FRAME_HDR): Define.
1628 (longopts): Add --eh-frame-hdr.
1629 (parse_args): Handle it.
1630 (list_options): Add --eh-frame-hdr to help.
1631 * emultempl/hppaelf.em (finish): Supply output_bfd
1632 to bfd_elf*_discard_info.
1633 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1635 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1637 * lexsup.c (parse_args): Don't pass shortopts to second call to
1638 getopt functions. Restore optind rather than decrementing before
1639 second call. Remove errind as it now duplicates last_optind.
1641 2001-12-11 Christopher Faylor <cgf@redhat.com>
1643 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1645 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1646 Richard Henderson <rth@redhat.com>
1648 * Makefile.am: Add support for xstormy16.
1649 * configure.tgt: Add support for xstormy16.
1650 * Makefile.in: Regenerate.
1651 * emulparams/elf32xstormy16.sh: New file.
1652 * scripttempl/xstormy16.sc: New file.
1654 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1656 * Makefile.in (LIB_PATH): Make configurable.
1657 (GENSCRIPTS): Set LIB_PATH in environment.
1658 * configure.in: Substitute LIB_PATH.
1659 * configure: Regenerate.
1660 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1661 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1663 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1665 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1666 describing the -N option so that it is easier to translate into
1669 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1671 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1672 statements describing a single option with a single, newline
1673 escaped fprintf. This allows better translation into other
1676 * ldmain.c (add_archive_element): Combine multiple strings
1677 into a single string to permit better translation into other
1680 2001-12-05 Tom Rix <trix@redhat.com>
1682 * Makefile.am: Remove eaixppc64.
1683 * Makefile.in: Regenerate.
1685 2001-12-04 Tom Rix <trix@redhat.com>
1687 * emultempl/aix.em (choose_target): Change default target to
1688 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1690 (gld*_read_file): Fix typo.
1691 (change_symbol_mode): Add prototype.
1694 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1695 * emulparams/aixrs6.sh : Same.
1696 * emulparams/ppcmacos.sh : Same.
1697 * emulparams/aixppc64.sh : Delete file.
1698 * emultempl/aix.em : Formatting changes.
1700 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1702 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1703 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1705 (OTHER_END_SYMBOLS): Fix formatting.
1706 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1707 (OTHER_END_SYMBOLS): Fix formatting.
1709 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1711 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1713 2001-12-02 Tom Rix <trix@redhat.com>
1715 * configure.tgt : Remove eaixppc64 emulations.
1716 * Makefile.in : Remove eaixppc64.c
1717 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1718 (ldemul_default_target): Same.
1719 * emultempl/gld960.em (gld960_choose_target): Same.
1720 * emultempl/gld960c.em (gld960_choose_target): Same.
1721 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1722 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1723 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1724 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1725 * emultempl/aix.em (choose_target): New function. Handle emulation of
1728 2001-11-27 H.J. Lu <hjl@gnu.org>
1730 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1731 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1732 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1733 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1734 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1735 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1736 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1737 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1739 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1742 (REL_SDATA): Likewise.
1743 (REL_SBSS): Likewise.
1744 (REL_SDATA2): Likewise.
1745 (REL_SBSS2): Likewise.
1746 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1749 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1751 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1753 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1755 2001-11-22 H.J. Lu <hjl@gnu.org>
1757 * Makefile.in: Regenerated with automake based on automake
1758 1.4-8 in RedHat 7.1.
1760 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1762 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1763 (config.status): Delete rule.
1764 Add extra dependencies to cover sourced emulparams files.
1765 * Makefile.in: Regenerate.
1767 * scripttempl/elf.sc: Order <section>, <section>.* and
1768 corresponding linkonce sections as seen in input files.
1769 Formatting fixes. Zero vma of all sections if not relocating.
1770 (STACK): Define and insert if STACK_ADDR defined.
1771 (OTHER_RELOCATING_SECTIONS): Delete.
1772 (OTHER_END_SYMBOLS): Define.
1773 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1774 (OTHER_READWRITE_SECTIONS): Likewise.
1775 (OTHER_GOT_SECTIONS): Likewise.
1776 (OTHER_SDATA_SECTIONS): Likewise.
1777 (OTHER_BSS_SECTIONS): Likewise.
1778 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1779 (OTHER_READWRITE_SECTIONS): Likewise.
1780 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1781 (OTHER_READWRITE_SECTIONS): Likewise
1783 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1784 (STACK_ADDR): Define.
1785 * emulparams/armelf_oabi.sh: As for armelf.sh.
1786 * emulparams/elf32mcore.sh: As for armelf.sh.
1787 * emulparams/h8300elf.sh: As for armelf.sh.
1788 * emulparams/mn10200.sh: As for armelf.sh.
1789 * emulparams/shelf.sh: As for armelf.sh.
1791 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1792 (OTHER_END_SYMBOLS): Define.
1793 * emulparams/m32relf.sh: As for elf32fr30.sh.
1794 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1795 * emulparams/h8300self.sh: As for elf32fr30.sh.
1797 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1798 defines with RELOCATING test.
1799 (OTHER_SDATA_SECTIONS): Likewise.
1800 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1801 (OTHER_END_SYMBOLS): ..this.
1802 * emulparams/crislinux.sh: As for criself.sh.
1804 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1806 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1807 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1808 normal and linkonce sections as seen in input files.
1809 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1810 (TEXT_DYNAMIC): Likewise.
1811 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1812 (OTHER_SDATA_SECTIONS): Likewise.
1813 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1814 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1815 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1816 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1817 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1818 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1819 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1820 sections as seen in input files.
1821 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1822 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1824 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1825 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1826 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1827 (OTHER_SECTIONS): Instead, use this..
1828 (OTHER_END_SYMBOLS): ..and this.
1830 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1831 * emulparams/elf32bsmip.sh: Likewise.
1832 * emulparams/elf32btsmip.sh: Likewise.
1833 * emulparams/elf32ebmip.sh: Likewise.
1834 * emulparams/elf32lmip.sh: Likewise.
1835 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1836 * emulparams/elf32lsmip.sh: Likewise.
1837 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1838 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1839 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1840 * emulparams/elf64btsmip.sh: Likewise.
1841 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1842 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1843 * emulparams/elf32ppclinux.sh: Likewise.
1844 * emulparams/elf32ppcsim.sh: Likewise.
1845 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1846 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1847 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1848 * emulparams/h8300self.sh: Likewise.
1849 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1850 * emulparams/sh.sh: Comment.
1851 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1852 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1853 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1855 2001-11-21 David Heine <dlheine@tensilica.com>
1856 Alan Modra <amodra@bigpond.net.au>
1858 * ldlang.c (map_input_to_output_sections): Replace "break"
1859 accidentally removed with 2001-08-03 change.
1860 (lang_gc_sections_1): Likewise.
1862 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1864 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1866 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1868 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1869 of false when calling lang_size_sections.
1870 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1872 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1874 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1875 function when LDEMUL_FINISH isn't set to the same name. Don't
1876 call ${LDEMUL_FINISH}.
1877 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1878 * emultempl/armelf.em (arm_elf_finish): Call
1879 gld${EMULATION_NAME}_finish.
1880 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1881 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1882 hppaelf_layout_sections_again if necessary.
1883 (need_laying_out): New var.
1884 (hppaelf_layaout_sections_again): Rename to
1885 hppaelf_layout_sections_again. Clear need_laying_out.
1886 (PARSE_AND_LIST_OPTIONS): Format text.
1888 2001-11-14 H.J. Lu <hjl@gnu.org>
1890 * emultempl/armelf.em (arm_elf_finish): Renamed from
1891 gld${EMULATION_NAME}_finish.
1892 (LDEMUL_FINISH): Set to arm_elf_finish.
1894 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1896 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1897 (struct ld_emulation_xfer_struct): Use it.
1899 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1901 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1902 additional symbols referenced by newer crt0.o files from HP.
1904 2001-11-12 Anthony Green <green@redhat.com>
1906 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1908 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1910 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1911 * Makefile.in: Regenerate.
1913 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1915 * ld.texinfo: Use @command for commands, @option for options.
1916 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1918 * Makefile.in: Rebuild.
1920 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1922 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1923 Add support for targets.
1925 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1927 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1928 * configure: Regernate.
1929 * po/fr.po: New file.
1930 * po/sv.po: New file.
1932 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1934 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1935 as little endian default and to support big endian.
1937 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1939 * ld.texinfo (Options): Document new option, -nostdlib.
1940 * lexsup.c (OPTION_NOSTDLIB): New definition.
1941 (ld_options): Add entry for "nostdlib".
1942 (parse_args): Handle OPTIONS_NOSTDLIB.
1943 * ldfile.c (ldfile_add_library_path): Don't add directories
1944 to the search path if they weren't specified on the command line
1945 and -nostdlib was specified.
1946 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1948 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1950 * lexsup.c (parse_args): Prevent infinite parsing loop when
1951 "-rpath.a" is specified on the command line.
1952 Replace calls to fprintf with calls to einfo.
1954 2001-10-31 John Marshall <jmarshall@acm.org>
1956 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1957 appear only once across all the linker scripts involved in a link
1958 invocation no longer applies. Make the documentation reflect
1961 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1963 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1965 (sh-*-linux*): Added targ_extra_libpath.
1967 2001-10-31 David Heine <dlheine@tensilica.com>
1969 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1970 for padding statements.
1972 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1974 * configure.tgt (mmix-*-*): New target.
1975 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1976 Add dependencies to match.
1977 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1978 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1979 scripttempl/mmo.sc: New files.
1980 * gen-doc.texi: @set MMIX.
1981 * ld.texinfo: Ditto.
1982 [MMIX] Add MMIX node.
1983 * Makefile.in: Regenerate.
1985 2001-10-29 Kazu Hirata <kazu@hxi.com>
1987 * ldlang.c: Fix a comment typo.
1989 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1991 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1992 entries, and match *-*-linux*.
1994 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1996 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1997 with ldlex_script, ldlex_popstate.
1998 (ifile_p1): Likewise.
1999 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2001 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2002 to 1. Don't BEGIN(SCRIPT).
2003 (lex_redirect): Similarly.
2004 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2006 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2008 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2009 __EH_FRAME_END__ and accept eh frames into data section.
2010 Add ctor and dtor sections.
2012 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2014 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2015 (auto-export): Fix indentation.
2017 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2019 * pe-dll.c (autofilter_objectlist): Add startup objects
2021 (auto-export): Constify char * p.
2022 Extract file basename and use strcmp rather than ststr
2025 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2027 * ldmain.c (get_emulation): Improve comment about the handling
2030 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2032 * po/POTFILES.in: Regenerate.
2034 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2036 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2037 -z nocopyreloc and -z nocombreloc usage strings.
2039 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2041 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2044 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2046 * scripttempl/armaout.sc: Place .bss section after end of aligned
2047 data section to match behaviour of aout code in constructrion of
2050 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2052 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2053 startup files for mingw32 dlls to list.
2055 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2057 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2059 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2061 * configure.tgt (targ): Add arm9e-*-elf.
2063 2001-10-05 H.J. Lu <hjl@gnu.org>
2065 * genscripts.sh: Fix a typo in the last change.
2067 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2069 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2070 -z nocombreloc in usage.
2072 2001-10-03 Jim Blandy <jimb@redhat.com>
2074 * genscripts.sh: Include a comment at the top of each generated
2075 script, explaining its purpose.
2077 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2079 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2080 * NEWS: Mention -z nocopyreloc.
2081 * ld.texinfo (Options): Describe nocopyreloc.
2083 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2085 * configure: Regenerate.
2087 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2089 * ldver.h (ld_program_version): Remove declaration.
2090 * lexsup.c (parse_args): Move printing of copyright message..
2091 * ldver.c (ldversion): .. to here.
2092 Use BFD_VERSION_STRING in place of BFD_VERSION.
2093 (ld_program_version): Remove.
2094 * Makefile.am (Makefile): Depend on bfd/configure.in.
2096 * Makefile.in: Regenerate.
2098 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2100 * Makefile.am: Update dependencies with "make dep-am".
2101 * Makefile.in: Regenerate.
2103 2001-09-29 John Reiser <jreiser@BitWagon.com>
2105 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2106 * lexsup.c: Add --no-define-common commandline option.
2107 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2108 * ldlex.l: Likewise.
2109 * ld.h: Add command_line.inhibit_common_definition.
2110 * ldmain.c (main): Initialize.
2111 * ld.texinfo: Document.
2113 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2115 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2117 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2119 * ldmisc.c (USE_STDARG): Remove.
2120 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2125 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2126 declarations. Update copyright.
2128 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2130 * pe-dll.c: Remove obsoleted declaration of
2131 pe_get_data_import_dll_name.
2132 (pe_create_import_fixup): Fix thinko.
2134 * ld.texinfo(enable-auto-import): Clarify the explanation.
2136 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2138 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2139 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2140 DLL_SUPPORT controlled code.
2142 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2144 * emultempl/pe.em(pe_data_import_dll): Make static.
2145 (pe_get_data_import_dll_name): New accessor function.
2146 * pe-dll.c(pe_create_import_fixup): call
2147 pe_get_data_import_dll_name() from pe.em, instead of
2148 directly accessing pe_data_import_dll variable from pe.em.
2150 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2152 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2153 (def_file_add_directive): Use ISSPACE instead of isspace.
2154 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2155 isdigit/isxdigit/isalpha/isalnum.
2156 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2157 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2158 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2159 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2161 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2162 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2164 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2165 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2166 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2167 (ctor_prio): Use ISDIGIT instead of isdigit.
2168 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2169 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2170 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2172 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2173 (stricpy): Use TOLOWER instead of isupper/tolower.
2174 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2175 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2176 (lex_warn_invalid): Use ISPRINT instead of isprint.
2177 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2178 (main): For gettext, also set the LC_CTYPE locate facet.
2179 (add_keepsyms_file): Use ISSPACE instead of isspace.
2180 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2181 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2182 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2183 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2184 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2185 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2186 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2187 (quoteput): Use ISSPACE instead of isspace.
2188 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2191 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2193 * deffilep.y (def_stash_module): Constify "name" param.
2195 * pe-dll.c: Replace CONST with const throughout.
2196 (quick_symbol): Constify "n1", "n2", "n3" params.
2197 (make_singleton_name_thunk): Constify "import" param. Make
2198 "buffer_len" a size_t.
2199 (make_import_fixup_entry): Constify "name", "fixup_name",
2200 "dll_symname" params.
2201 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2202 (pe_get32): Likewise.
2203 (pe_implied_import_dll): Likewise.
2205 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2206 (sort_by_section_name): Likewise.
2208 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2209 (make_import_fixup): Cast printf arg, rel->address to long rather
2211 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2213 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2215 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2216 defines BufferSize. Increase buffer size by one.
2218 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2220 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2222 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2224 * configure.tgt: Add arm-openbsd target.
2226 2001-09-12 H.J. Lu <hjl@gnu.org>
2228 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2230 (ALL_64_EMULATIONS): Here.
2231 * Makefile.in: Regenerated.
2233 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2235 * emultempl/pe.em(make_import_fixup): change signature to
2236 take asection as well as arelec; we need this for proper
2237 error reporting. Only call pe_create_import_fixup() if
2238 there is no attempt to add a constant addend to the reloc;
2239 otherwise, report error condition.
2240 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2241 since final argument is a pointer to make_import_fixup().
2242 Change call to cb() to match make_import_fixup() signature.
2243 (make_import_fixup_mark): make buffer_len unsigned.
2244 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2246 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2248 * ld.texinfo: add verbose documentation for auto-import
2249 direct-addressing workaround, to compliment the terse
2252 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2254 * scripttempl/v850.sc: Add gcc_except_table sections.
2256 2001-09-11 Jeffrey A Law (law@cygnus.com)
2258 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2259 * emulparams/h8300self.sh: Similarly.
2261 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2263 * ld.texinfo (Options, --stack): Correct default value for stack
2266 2001-09-05 Tom Rix <trix@redhat.com>
2268 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2270 2001-09-03 Andreas Jaeger <aj@suse.de>
2272 * emultempl/beos.em: Declare prototypes for comparions functions,
2275 2001-09-02 Andreas Jaeger <aj@suse.de>
2277 * emultempl/aix.em: Add missing prototype.
2278 * emultempl/lnk960.em: Likewise.
2279 * emultempl/vanilla.em: Likewise.
2280 * emultempl/armcoff.em: Likewise.
2281 * emultempl/armelf_oabi.em: Likewise.
2282 * emultempl/beos.em: Likewise.
2283 * emultempl/gld960c.em: Likewise.
2284 * emultempl/gld960.em: Likewise.
2286 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2287 for prototype declaration.
2289 2001-08-31 Eric Christopher <echristo@redhat.com>
2290 Jason Eckhardt <jle@redhat.com>
2292 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2294 2001-08-31 Andreas Jaeger <aj@suse.de>
2296 * emultempl/pe.em: Add missing prototypes.
2297 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2298 pe_find_data_imports.
2299 (pr_sym): Add unused attribute.
2301 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2303 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2304 default from coff to elf.
2306 2001-08-29 Jeff Law <law@redhat.com>
2308 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2310 * emulparams/h8300self.sh: Similarly.
2312 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2314 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2316 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2317 * configure.tgt (h8300-*-elf*): New case.
2318 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2319 * emulparams/h8300self.sh: New file.
2320 * Makefile.in: Regenerated.
2322 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2324 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2327 2001-08-27 Linus Nordberg <linus@swox.com>
2328 Alan Modra <amodra@bigpond.net.au>
2330 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2331 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2333 * Makefile.in: Regenerate.
2334 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2335 entries to correct alphabetical position.
2336 * emulparams/elf64ppc.sh: New.
2337 * emulparams/elf64lppc.sh: New.
2339 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2341 * ldmain.c (main): Declare BSIZE as static.
2343 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2345 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2346 into .rel.dyn resp. .rela.dyn if combreloc.
2347 (get_script): If .x linker script is equal to .xn, only put it
2348 once into the binary.
2349 Add .xc and .xsc scripts.
2350 (parse_args): Handle -z combreloc and -z nocombreloc.
2351 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2352 For .xc and .xsc scripts put all .rel* or .rela* input sections
2353 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2354 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2356 Strip trailing whitespace from script.
2357 Generate .xc and .xsc scripts if requested.
2358 * ldmain.c (main): Initialize link_info.combreloc and
2359 link_info.spare_dynamic_tags.
2360 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2361 (ld_options): Add --spare-dynamic-tags option.
2362 (parse_args): Likewise.
2363 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2364 * ldint.texinfo: Document .xc and .xsc linker scripts.
2365 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2367 2001-08-22 H.J. Lu <hjl@gnu.org>
2369 * emulparams/elf32fr30.sh: Add a newline.
2371 2001-08-21 Andreas Jaeger <aj@suse.de>
2373 * deffilep.y: Add missing prototypes.
2374 * pe-dll.c: Likewise.
2376 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2378 * ldlang.c (insert_pad): Fix typos in last patch.
2380 * ldlang.c: When traversing lang_statement_union_type lists,
2381 consistently use "header.next" rather than "next".
2382 * mpw-eppcmac.c: Likewise.
2383 * emultempl/beos.em: Likewise.
2384 * emultempl/hppaelf.em: Likewise.
2385 * emultempl/pe.em: Likewise.
2386 * ldlang.h (union lang_statement_union): Remove "next" field.
2388 * ldlang.c (insert_pad): Use offsetof macro.
2389 (lang_size_sections): Always neuter padding statements.
2390 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2392 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2393 passed to lang_size_sections.
2394 (pe_exe_fill_sections): Likewise.
2395 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2396 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2398 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2400 * emultempl/aix.em: Formatting fixes.
2402 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2404 * ldlang.c (insert_pad): Make use of an existing pad statement if
2405 available. Move code calculating alignment, adjusting section
2406 alignment power, and adjusting dot to ..
2407 (size_input_section): .. here. Remove unused relax param.
2408 (lang_size_sections): Change boolean `relax' param to boolean *.
2409 Adjust call to size_input_section. Make use of insert_pad to
2410 place pad after the assignment statement. If relaxing, zap
2412 (reset_memory_regions): Reset output_bfd section sizes too.
2413 (relax_again): Move to..
2414 (lang_process): ..here. Adjust call to lang_size_sections, and
2415 remove duplicated code.
2416 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2418 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2420 * ld.texinfo: Document that fill values now use the four least
2422 * emulparams/elf32fr30.sh (NOP): Update.
2423 * emulparams/elf32mcore.sh: Likewise.
2424 * emulparams/elf64_s390.sh: Likewise.
2425 * emulparams/elf_i386.sh: Likewise.
2426 * emulparams/elf_i386_be.sh: Likewise.
2427 * emulparams/elf_i386_chaos.sh: Likewise.
2428 * emulparams/elf_i386_ldso.sh: Likewise.
2429 * emulparams/elf_s390.sh: Likewise.
2430 * emulparams/elf_x86_64.sh: Likewise.
2431 * emulparams/i386moss.sh: Likewise.
2432 * emulparams/i386nw.sh: Likewise.
2433 * emulparams/m68kelf.sh: Likewise.
2434 * scripttempl/elf.sc: Update NOP comment.
2435 * scripttempl/elfi370.sc: Likewise.
2436 * scripttempl/elfm68hc11.sc: Likewise.
2437 * scripttempl/elfm68hc12.sc: Likewise.
2438 * scripttempl/nw.sc: Likewise.
2440 2001-08-15 Tom Rix <trix@redhat.com>
2442 * ldgram.y (saved_script_handle): Initialize to NULL.
2443 * ldmain.c (main): Change check on saved_script_handle.
2445 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2447 * emultempl/elf32.em: Formatting fixes.
2448 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2449 looking at sec->owner.
2450 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2451 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2452 unused code, and reorganize orphan section placement code.
2454 * ldlang.c (wild_doit): Rename to lang_add_section.
2455 * ldlang.h: Here too.
2456 * mpw-elfmips.c: And here.
2457 * emultempl/beos.em: And here.
2458 * emultempl/elf32.em: And here.
2459 * emultempl/hppaelf.em: And here.
2460 * emultempl/pe.em: And here.
2462 2001-08-13 Richard Henderson <rth@redhat.com>
2464 * emultempl/needrelax.em: New file.
2465 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2466 * Makefile.am (eelf64_ia64.c): Depend on it.
2467 * Makefile.in: Rebuild.
2469 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2471 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2472 output_section is set non-NULL.
2474 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2475 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2476 needlessly create an output_section_statement. Treat a correctly
2477 named output_section_statement with NULL bfd_section as compatible.
2479 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2481 * emultempl/generic.em: Support EXTRA_EM_FILE.
2482 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2483 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2484 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2485 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2486 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2487 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2488 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2489 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2490 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2491 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2493 2001-08-12 Richard Henderson <rth@redhat.com>
2495 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2496 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2497 scripttempl/v850.sc: Keep .jcr data.
2499 2001-08-12 H.J. Lu <hjl@gnu.org>
2500 Andrew Haley <aph@cambridge.redhat.com>
2501 Nick Clifton <nickc@redhat.com>
2503 * ldgram.y (had_script): Change name to saved_script_handle.
2504 Change type to file handle.
2505 * ld.h (had_script): Rename and retype.
2506 * ldfile.c (ldfile_open_command_file): Save the file handle
2507 used in saved_script_handle.
2508 * lexsup.c (parse_args): Do not allow -c option to alter
2509 saved_script_handle.
2510 * ldmain.c (main): Print out the linker script used if
2511 --verbose is given. Check saved_script_handle to obtain the
2512 external linker script used, or if NULL, dump the builtin
2514 * ld.texinfo: Document that --verbose now dumps the linker
2515 script used, regardless of whether it was an internal or an
2518 2001-08-10 Andreas Jaeger <aj@suse.de>
2520 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2522 * configure: Regenerate.
2524 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2526 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2528 * scripttempl/elf.sc: Move non-text .dynamic section before
2529 .plt/.got/.sdata* group.
2530 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2531 (OTHER_SDATA_SECTIONS): Add.
2532 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2534 * emulparams/crislinux.sh: Likewise.
2535 * emulparams/elf32b4300.sh: Likewise.
2536 * emulparams/elf32bmip.sh: Likewise.
2537 * emulparams/elf32bmipn32.sh: Likewise.
2538 * emulparams/elf32bsmip.sh: Likewise.
2539 * emulparams/elf32btsmip.sh: Likewise.
2540 * emulparams/elf32ebmip.sh: Likewise.
2541 * emulparams/elf32elmip.sh: Likewise.
2542 * emulparams/elf32l4300.sh: Likewise.
2543 * emulparams/elf32lmip.sh: Likewise.
2544 * emulparams/elf32lsmip.sh: Likewise.
2545 * emulparams/elf32ltsmip.sh: Likewise.
2546 * emulparams/elf64bmip.sh: Likewise.
2547 * emulparams/elf64btsmip.sh: Likewise.
2548 * emulparams/elf64ltsmip.sh: Likewise.
2550 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2552 * genscripts.sh: Source the emulparams script before each output
2553 script is generated so that variables like `RELOCATING' may affect
2554 variables defined in the emulparams script.
2556 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2558 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2561 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2562 ie. iterate over wild_statement.section_list.
2563 (gld${EMULATION_NAME}_place_orphan): Likewise.
2565 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2567 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2568 .fini[0-4] sections used by _exit
2569 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2570 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2571 * scripttempl/elfm68hc11.sc: Likewise.
2573 2001-08-03 H.J. Lu <hjl@gnu.org>
2575 * emultempl/beos.em (init): Add the missing initialization.
2577 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2579 * ld.texinfo (Input Section Basics): Clarify ordering of output
2581 * ldlang.c (callback_t): Add wildcard_list param.
2582 (walk_wild_section): Remove "section" param. Rewrite for
2583 lang_wild_statement_type change. Remove unique_section_p test.
2584 (walk_wild_file): Remove "section" param.
2585 (walk_wild): Remove "section" and "file" params.
2586 (lang_gc_wild): Likewise.
2587 (wild): Likewise. Modify for lang_wild_statement_type change.
2588 (wild_sort): Likewise. Add "sec" param.
2589 (gc_section_callback): Likewise.
2590 (output_section_callback): Likewise. Do unique_section_p test.
2591 (map_input_to_output_sections): Modify call to wild.
2592 (lang_gc_sections_1): Likewise.
2593 (print_wild_statement): Modify for lang_wild_statement_type
2595 (lang_add_wild): Replace filename, filenames_sorted param with
2596 filespec. Replace section_name, sections_sorted,
2597 exclude_filename_list with section_list.
2598 * ldlang.h (lang_add_wild): Here too.
2599 (lang_wild_statement_type): Replace section_name, sections_sorted,
2600 and exclude_filename_list with section_list.
2601 * ldgram.y (current_file): Delete.
2602 (%union): Add wildcard_list.
2603 (file_NAME_list): Set type to wildcard_list. Build a linked list
2604 rather than calling lang_add_wild for each entry.
2605 (input_section_spec_no_keep): Call lang_add_wild here instead.
2606 * ld.h (struct wildcard_list): Declare.
2607 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2609 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2611 * ldmain.c (main): initialize link_info.pei386_auto_import
2612 * pe-dll.c: new tables for auto-export filtering
2613 (auto_export): change API, pass abfd for contextual filtering.
2614 Loop thru tables of excluded symbols instead of comparing
2617 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2619 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2620 static variable current_sec (static struct sec *). Add
2621 forward declaration for add_bfd_to_link.
2622 (process_def_file): Don't export undefined symbols. Do not
2623 export symbols starting with "_imp__". Call auto_export()
2625 (pe_walk_relocs_of_symbol): New function.
2626 (generate_reloc): add optional extra debugging
2627 (pe_dll_generate_def_file): eliminate extraneous initial blank
2629 (make_one): enlarge symtab to make room for __nm__ symbols
2630 (DATA auto-import support).
2631 (make_singleton_name_thunk): New function.
2632 (make_import_fixup_mark): New function.
2633 (make_import_fixup_entry): New function.
2634 (pe_create_import_fixup): New function.
2635 (add_bfd_to_link): Specify that 'name' argument is a CONST
2637 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2638 declare new functions pe_walk_relocs_of_symbol and
2639 pe_create_import_fixup.
2640 * emultempl/pe.em: add new options --enable-auto-import,
2641 --disable-auto-import, and --enable-extra-pe-debug.
2642 (make_import_fixup): New function.
2643 (pe_find_data_imports): New function.
2644 (pr_sym): New function.
2645 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2646 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2649 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2651 * ld.texinfo: add additional documentation for
2652 --export-all-symbols. Document --out-implib,
2653 --enable-auto-image-base, --disable-auto-image-base,
2654 --dll-search-prefix, --enable-auto-import, and
2655 --disable-auto-import.
2656 * ldint.texinfo: Add detailed documentation on auto-import
2659 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2661 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2664 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2666 * Makefile.am: Update dependencies with "make dep-am".
2667 * Makefile.in: Regenerate
2669 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2671 * ldcref.c (check_section_sym_xref): New function.
2672 (check_nocrossrefs): Call it.
2673 (check_nocrossref): Interate over h->refs here instead of..
2674 (check_refs): ..here. Pass in the symbol name, section, and bfd
2675 rather than hash_entry pointers.
2676 (struct check_refs_info): Keep symbol name rather than hash entry.
2678 (check_reloc_refs): Tweak for above changes in check_refs_info.
2679 Only report references to section syms when symname is NULL to
2680 prevent duplicate messages for the same reloc.
2682 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2684 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2685 available. Do not print NULL trees.
2686 (exp_print_token): Print unknown tokens with values > 126 as
2687 decimal values not ASCII characters.
2689 * ldlang.c (lang_leave_overlay): If a region is specified assign
2690 it to all sections inside the overlay unless they have been
2691 assigned to the own, non-default, memory region.
2693 * README: Add header for consistency with other README files.
2695 2001-07-14 H.J. Lu <hjl@gnu.org>
2697 * emultempl/elf32.em (output_prev_sec_find): Never return
2698 bfd_abs_section_ptr, bfd_com_section_ptr nor
2699 bfd_und_section_ptr.
2701 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2703 * Makefile.am (em32relf.c): Change dependency from generic.em to
2705 * Makefile.in: Regenerate.
2707 2001-07-14 matthew green <mrg@eterna.com.au>
2709 * configure.tgt (i386-*-netbsdelf*): New target.
2710 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2712 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2714 * emultempl/elf32.em (output_prev_sec_find): New.
2715 (place_orphan): Use it.
2717 2001-07-11 H.J. Lu <hjl@gnu.org>
2719 * ldmain.c (main): Fix typos in the last change.
2721 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2723 * ldmain.c (main): Disallow -F and -f without -shared.
2725 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2727 * emultempl/pe.em (after_open): Check for the output_bfd not
2728 having any coff_data structure allocated to it.
2730 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2732 * emultempl/elf32.em: Do not assuming that contents of the buffer
2733 returned from basename function will remain unchanged accross other
2736 2001-07-03 H.J. Lu <hjl@gnu.org>
2738 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2739 2001-07-03. It creates dynamic entries even for static binaries.
2741 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2743 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2744 (DYNAMIC): Use it to reserve few dynamic entries for
2747 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2749 * emulparams/hppa64linux.sh: New file.
2750 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2751 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2752 (ehppa64linux.c): Add rule to make it.
2754 * Makefile.in: Regenerate.
2756 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2758 * ld.texinfo (Options, -r): Mention restrictions when using
2759 different object formats.
2761 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2763 * ldlang.c (lang_check): Emit fatal error if relocatable link
2764 between different object flavours with relocations in input.
2766 2001-06-19 H.J. Lu <hjl@gnu.org>
2768 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2769 (--version-script): Mention the language support.
2771 2001-06-19 H.J. Lu <hjl@gnu.org>
2773 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2775 2001-06-18 H.J. Lu <hjl@gnu.org>
2777 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2778 (diststuff): Add $(MANS).
2779 * Makefile.in: Regenerated.
2783 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2785 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2786 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2787 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2788 * ld.h (args_type): Remove member export_dynamic. All users
2789 changed to use struct bfd_link_info member.
2791 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2792 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2793 * Makefile.in: Regenerate.
2795 2001-06-18 H.J. Lu <hjl@gnu.org>
2797 * ldlang.c (init_os): Add the newline to the einfo call.
2798 (lang_check): Likewise.
2799 (lang_do_version_exports_section): Likewise.
2801 2001-06-15 H.J. Lu <hjl@gnu.org>
2803 * lexsup.c (parse_args); Save optind to report unrecognized
2806 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2808 * ldlang.c (lang_check): Emit fatal error if relocatable link
2809 between different object flavours.
2811 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2812 Set new link_info member export_dynamic.
2813 * ldmain.c (main): Initialize new link_info member export_dynamic.
2815 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2817 * ldlang.c (walk_wild): Only call walk_wild_file if
2818 lookup_name returns something.
2819 (lookup_name): If load_symbols fails, return NULL.
2820 (load_symbols): Change to a boolean function.
2821 (open_input_bfds): If load_symbols fails then do not make the
2824 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2826 * ldlang.c (record_bfd_errors): Remove.
2828 * emultempl/aix.em: Fix copyright dates.
2830 2001-06-07 Andreas Jaeger <aj@suse.de>
2832 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2833 (TEXT_START_ADDR): Likewise.
2835 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2837 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2839 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2841 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2843 2001-05-31 H.J. Lu <hjl@gnu.org>
2845 * ldlang.c (open_input_bfds): Don't change the bfd error
2846 handler whilst loading symbols.
2848 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2850 * configure.tgt: Remove i370-mvs architecture, it is not currently
2853 2001-05-25 H.J. Lu <hjl@gnu.org>
2855 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2856 like emulparams/aixppc.sh.
2858 2001-05-25 H.J. Lu <hjl@gnu.org>
2860 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2861 setting of output_filename after bfd_scan_arch.
2862 * emultempl/pe.em: Likewise.
2864 2001-05-25 H.J. Lu <hjl@gnu.org>
2866 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2867 like emulparams/aixppc.sh.
2869 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2870 instead of ${srcdir}/emultempl/stringify.sed.
2872 2001-05-25 Timothy Wall <twall@oculustech.com>
2874 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2877 2001-05-25 Alan Modra <amodra@one.net.au>
2879 * configure.host: Replace linuxoldld with linux*oldld.
2880 * configure.tgt: Likewise.
2882 2001-05-24 H.J. Lu <hjl@gnu.org>
2884 * emultempl/stringify.sed: Removed again.
2886 2001-05-24 H.J. Lu <hjl@gnu.org>
2888 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2889 (gld${EMULATION_NAME}_before_parse): Initialize
2890 ldfile_output_architecture, ldfile_output_machine and
2891 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2892 * emultempl/beos.em: Likewise.
2893 * emultempl/elf32.em: Likewise.
2894 * emultempl/linux.em: Likewise.
2895 * emultempl/mipsecoff.em: Likewise.
2896 * emultempl/pe.em: Likewise.
2897 * emultempl/sunos.em: Likewise.
2899 2001-05-24 Tom Rix <trix@redhat.com>
2901 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2902 udate import file format.
2903 (change_symbol_mode) New, same
2904 (is_syscall) New, same
2905 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2906 * emulparams/aixppc64.sh : same
2907 * emulparams/aixrs6.sh : same
2908 * emulparams/ppcmacos.sh : same
2909 * emultempl/aix.em : use strtoull to parse options
2910 * Makefile.am : add eaixppc64 emulation for xcoff64
2911 * Makefile.in : same
2912 * configure.tgt : same
2914 * scripttempl/aix.sc : default text section offset to 0x10000000
2915 default data section offset to 0x20000000
2916 add .sv3264 and .sv64 pseudo sections
2917 loader and debug sections use the currect section offset.
2919 * emultempl/aix.em : Add xcoff64 support
2920 Add -binitfini support
2921 (gld${EMULATION_NAME}_before_parse) -binitfini
2922 (gld${EMULATION_NAME}_parse_args) same
2923 (gld${EMULATION_NAME}_before_allocation) format change for special
2926 * emulparams/aixppc64.sh : New file for xcoff64 support
2928 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2930 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2931 variable to avoid non-portable shell construct.
2933 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2935 * ldmain.c (get_emulation): Add -mips5 command line argument.
2937 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2939 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2940 (ELF_INTERPRETER_NAME): Define it.
2941 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2943 * configure.tgt (targ_emul, targ_extra_emuls)
2944 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2945 as primary, elf_i386 as extra.
2946 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2947 (eelf_i386_ldso.c): New rule.
2948 * Makefile.in: Rebuilt.
2950 2001-05-22 Nick Clifton <nickc@redhat.com>
2952 * lexsup.c (ld_options): Allow -I to be an alias for
2953 --dynamic-linker. This is for Solaris compatability.
2954 * ld.texinfo: Document that -I can be used.
2957 2001-05-16 Alan Modra <amodra@one.net.au>
2959 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2960 whether an input section is the first one assigned to an output
2962 Assorted formatting fixes.
2964 2001-05-14 DJ Delorie <dj@delorie.com>
2966 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2967 * Makefile.in: Ditto.
2969 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2971 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2972 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2974 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2976 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2978 * ldlang.c (lang_process): Call bfd_merge_sections.
2980 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2982 * ldgram.y: Fix typo.
2984 2001-05-03 H.J. Lu <hjl@gnu.org>
2986 * emultempl/elf32.em: Include "libiberty.h".
2987 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2988 basename of the bfd filename.
2989 (gld${EMULATION_NAME}_stat_needed): Likewise.
2990 (gld${EMULATION_NAME}_try_needed): Likewise.
2991 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2993 2001-05-02 H.J. Lu <hjl@gnu.org>
2995 * emultempl/pe.em: Include <ctype.h>.
2997 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2999 * emulparams/elf32openrisc.sh: New file.
3001 * Makefile.am: Add OpenRISC target.
3002 * Makefile.in: Regenerated.
3004 * configure.tgt: Add openrisc-*-* mapping.
3006 2001-05-02 Nick Clifton <nickc@redhat.com>
3008 * emultempl/aix.em: Replace buystring with xstrdup.
3009 * emultempl/beos.em: Replace buystring with xstrdup.
3011 2001-05-02 H.J. Lu <hjl@gnu.org>
3013 * ldfile.c: Include "libiberty.h".
3014 * ldlex.l: Likewise.
3016 * ldmisc.c (buystring): Removed.
3017 * ldmisc.h: Likewise.
3019 * ldfile.c: Replace buystring with xstrdup.
3020 * ldlang.c: Likewise.
3021 * ldlex.l: Likewise.
3022 * ldmain.c: Likewise.
3023 * ldmisc.c: Likewise.
3024 * lexsup.c: Likewise.
3025 * mpw-eppcmac.c: Likewise.
3027 2001-04-30 Andreas Jaeger <aj@suse.de>
3029 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3031 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3033 * ldlang.c (load_symbols): Give emulation a chance
3034 to process unrecognized file before fatal error is
3035 reported, not after.
3037 2001-04-27 Sean McNeil <sean@mcneil.com>
3039 * configure.tgt: Add arm-vxworks target.
3040 * scripttempl/armcoff.sc: Support .text or .data as a section name
3044 2001-04-13 J.T. Conklin <jtc@redback.com>
3046 * ld.texinfo: Document --fatal-warnings.
3049 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3050 warnings have been turned into errors.
3051 * lexsup.c (OPTION_WARN_FATAL): Define.
3052 (ld_options): Entry for --fatal-warnings.
3053 (parse_args): Handle OPTION_WARN_FATAL.
3054 * ld.h (ld_config_type): Add fatal_warnings field.
3056 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3058 * ldmain.c (main): Default to discard_sec_merge.
3059 * lexsup.c (OPTION_DISCARD_NONE): Define.
3060 (ld_options): Add --discard-none.
3061 (parse_args): Handle OPTION_DISCARD_NONE.
3062 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3063 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3064 all its input sections match.
3066 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3068 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3069 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3070 (eelf32ltsmip.c): New target.
3071 (eelf64btsmip.c): Likewise.
3072 (eelf64ltsmip.c): Likewise.
3073 * Makefile.in: Regenerated.
3075 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3077 (mips*-*-linux-gnu*): Likewise.
3079 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3081 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3083 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3086 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3088 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3089 correct value of __Stext here.
3090 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3093 * emulparams/crislinux.sh: Remove FIXME.
3095 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3097 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3098 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3100 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3102 * configure.tgt (cris-*-*): Change default emulation to criself.
3103 (cris-*-*aout*): New rule.
3105 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3107 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3108 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3110 2001-03-26 Andreas Jaeger <aj@suse.de>
3112 * ld.texinfo (Overview): Fix syntax in texi code.
3114 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3116 * ld.texinfo: Put @c man indications to generate the ld man page.
3117 When generating man, define all the variables. Define SEEALSO
3118 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3119 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3120 (ld.1): Generate from ld.texinfo.
3121 * Makefile.in: Regenerate.
3123 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3125 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3126 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3128 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3130 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3131 is an absolute path look only for this file and not along the path.
3133 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3135 * emultempl/elf32.em (OPTION_GROUP): New macro.
3136 Add new option Bgroup to longopts.
3137 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3138 (gld*_list_options): Add -Bgroup and -z defs.
3139 * ld.1: Document -Bgroup and -z defs.
3140 * ld.texinfo: Likewise.
3142 2001-03-07 Michael Meissner <meissner@redhat.com>
3144 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3145 with sections created by -fdata-sections.
3146 (.dynbss,.bss): Ditto.
3148 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3150 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3151 after_allocation_default, not gld..._before_allocation.
3153 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3155 * configure.in (BFD_VERSION): New.
3156 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3157 * configure: Regenerate.
3158 * Makefile.am: Run "make dep-am"
3159 * Makefile.in: Regenerate.
3161 2001-02-26 Timothy Wall <twall@cygnus.com>
3163 * emulparams/elf64_aix.sh: Add additional read-only sections;
3164 uncomment lines which are now required.
3166 2001-02-26 H.J. Lu <hjl@gnu.org>
3168 * ldlang.c (open_input_bfds): Set the bfd error handler so
3169 that problems can be caught whilst loading symbols.
3170 (record_bfd_errors): New function: Report BFD errors and mark
3171 the executable output as being invalid.
3173 2001-02-22 Timothy Wall <twall@cygnus.com>
3175 * configure.host: Add configuration for ia64-*-aix*.
3176 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3177 Add dependencies for eelf64_aix.c.
3178 * Makefile.in: Regenerate.
3179 * configure.tgt: Add ia64-*-aix* mapping.
3180 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3181 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
3184 2001-02-20 H.J. Lu <hjl@gnu.org>
3186 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3187 false if we found the file.
3189 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3191 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3192 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3194 2001-02-18 lars brinkhoff <lars@nocrew.org>
3196 * Makefile.am: Add PDP-11 target.
3197 * configure.tgt: Likewise.
3198 * emulparams/pdp11.sh: New file.
3200 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3202 * configure.host: Add a generic FreeBSD configuration entry such that
3203 all [modern] FreeBSD systems on all platforms will look the same.
3205 2001-02-14 H.J. Lu <hjl@gnu.org>
3207 * configure.tgt: Remove mention of earmelf_linux26.
3209 2001-02-13 Richard Henderson <rth@redhat.com>
3211 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3213 2001-02-13 H.J. Lu <hjl@gnu.org>
3215 * ldexp.h (node_type): Add etree_provided.
3216 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3217 type to etree_provided if defined by PROVIDE. Allow updating
3219 (exp_print_tree): Handle etree_provided.
3220 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3223 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3225 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3226 .IA_64.unwind.* pattern to unwind table section and
3227 .IA_64.unwind_info* pattern to unwind info section.
3229 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3231 * Makefile.am: Add linux target for S/390.
3232 * Makefile.in: Likewise.
3233 * configure.host: Likewise.
3234 * configure.tgt: Likewise.
3235 * emulparams/elf64_s390.sh: New file.
3236 * emulparams/elf_s390.sh: New file.
3238 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3240 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3242 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3244 2001-02-06 Philip Blundell <philb@gnu.org>
3246 * Makefile.am: Remove mention of earmelf_linux26.
3247 * Makefile.in: Regenerate.
3249 2001-02-04 Philip Blundell <philb@gnu.org>
3251 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3252 * emulparams/armelf_linux26.sh: Delete.
3253 * configure.tgt: Remove mention of armelf_linux26 emulation.
3255 2001-02-01 Nick Clifton <nickc@redhat.com>
3257 * ld.1: Replace occurances of -oformat with --oformat.
3259 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3261 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3262 load_base is specified.
3264 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3266 * emultempl/elf32.em: Correct spelling in comments and listed
3269 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3271 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3272 default for the first section of a group of overlay sections.
3274 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3276 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3277 * Makefile.in: Regenerate.
3278 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3279 Check for null tool_dir.
3281 2001-01-16 Jim Wilson <wilson@redhat.com>
3283 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3284 and IA_64.unwind.info.
3286 2001-01-16 H.J. Lu <hjl@gnu.org>
3288 * ldlang.c (lang_check): Merge the private data only if the
3289 input file has contents.
3291 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3293 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3295 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3296 enabling search for libmilli. On a relocatable link, make .text
3298 (LDEMUL_AFTER_PARSE): Define.
3299 (hppaelf_finish): Correct spelling of relocatable in comments.
3301 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3302 rummage through the script for sections on the unique list.
3303 Correct length of strncmp for ".note".
3304 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3306 * ldlang.c (unique_section_list): New var.
3307 (unique_section_p): New function.
3308 (walk_wild_section): Don't match sections on unique_section_list.
3309 (lang_add_unique): New function.
3310 Correct spelling of relocatable in comments.
3312 * ldlang.h (struct unique_sections): Declare.
3313 (unique_section_list): Declare.
3314 (unique_section_p): Declare.
3315 (lang_add_unique): Declare.
3317 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3318 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3320 * ld.texinfo (--unique): Update.
3322 2001-01-13 Nick Clifton <nickc@redhat.com>
3324 * lexsup.c (parse_args): Remove spurious white space.
3326 2001-01-12 Nick Clifton <nickc@redhat.com>
3328 * lexsup.c (parse_args): Update copyright date.
3330 2001-01-12 Philip Blundell <pb@futuretv.com>
3332 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3334 2001-01-10 Kazu Hirata <kazu@hxi.com>
3336 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3337 * scripttempl/h8300h.sc: Fix formatting.
3338 * scripttempl/h8300s.sc: Likewise.
3339 * scripttempl/h8500.sc: Likewise.
3340 * scripttempl/h8500b.sc: Likewise.
3341 * scripttempl/h8500c.sc: Likewise.
3342 * scripttempl/h8500m.sc: Likewise.
3343 * scripttempl/h8500s.sc: Likewise.
3345 2000-01-07 David O'Brien <obrien@BSDi.com>
3347 * emultempl/elf32.em: Only perform Linux ld hints processing when
3350 2001-01-07 Philip Blundell <philb@gnu.org>
3352 * ld.texinfo (Bug Reporting): Update email address for reports.
3354 2000-12-31 Nick Clifton <nickc@redhat.com>
3356 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3357 options by checking for a return value of '?' not -1.
3359 2000-12-28 Nick Clifton <nickc@redhat.com>
3361 * lexsup.c (struct ld_option): Add new enum value:
3363 (ld_options[]): Change -omagic, -output and -oformat options
3364 to be EXACTLY_TWO_DASHES.
3365 (OUTPUT_COUNT): Use ARRAY_SIZE.
3366 (parse_args): Change parameter 'argc' to unsigned.
3367 Place EXACTLY_TWO_DASHES options into new really_longopts
3369 If getopt_long_only fails, try calling getopt_long using the
3370 really_longopts array.
3371 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3374 * ldlex.h: Fix prototype of parse_args.
3376 * ld.texinfo: Document that long options starting with 'o'
3377 must be preceeded by two dashes. Change example of a single
3378 dashed long option from -oformat to -trace-symbol.
3380 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3382 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3383 (longopts[]): New --no-default-excludes option.
3384 (gld_${EMULATION_NAME}_list_options): Document.
3385 (gld_${EMULATION_NAME}_parse_args): Handle.
3387 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3389 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3390 whitespace, it breaks the K&R C preprocessor.
3392 2000-12-11 DJ Delorie <dj@redhat.com>
3394 * ld.texinfo: Add notes about --whole-archive and gcc.
3396 2000-11-18 Fred Fish <fnf@be.com>
3398 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3399 (ld_options): Entry for --allow-shlib-undefined.
3400 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3401 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3403 * ld.texinfo: Document new command line switch.
3405 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3407 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3408 .fixup is actually read/write.
3409 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3410 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3411 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3413 2000-12-11 Jan Hubicka <jh@suse.cz>
3415 * NEWS: Add note about x86_64 architecture.
3417 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3419 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3420 Set DWARF2 sections to a VMA of zero.
3422 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3424 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3426 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3427 (sparc*-*-rtems*): Switched from a.out to ELF.
3429 2000-11-30 Jan Hubicka <jh@suse.cz>
3431 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3432 (eelf_x86_64.c): New.
3433 * Makefile.in: Regenerate.
3434 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3435 * emulparams/elf_x86_64.sh: New.
3437 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3439 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3440 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3442 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3443 merging non-a.out sections into CONSTRUCTING.
3445 2000-11-28 Nick Clifton <nickc@redhat.com>
3447 * ld.1 (COPYING): Mention that the GNU Free Documentation
3448 License is present in the sources, but not the output, and
3449 also available from the GNU website.
3450 (GNU Free Documentation License): Comment out this section.
3452 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3454 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3457 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3459 * ld.1: Remove old date so it does not give the impression the manpage
3462 2000-11-24 Nick Clifton <nickc@redhat.com>
3464 * configure.tgt (xscale-coff): Add target.
3465 (xscale-elf): Add target.
3467 2000-11-24 Fred Fish <fnf@be.com>
3469 * ldmain.c (main): Remove redundant init of config.make_executable
3472 2000-11-15 Richard Henderson <rth@redhat.com>
3474 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3476 2000-11-14 Kazu Hirata <kazu@hxi.com>
3478 * scripttempl/h8300.sc: Fix formatting.
3479 * scripttempl/h8300h.sc: Likewise.
3480 * scripttempl/h8300s.sc: Likewise.
3482 2000-11-14 Denis Chertykov <denisc@overta.ru>
3484 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3486 2000-11-09 Philip Blundell <pb@futuretv.com>
3488 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3489 around orphan sections whose names can be represented in C.
3491 2000-11-07 Jim Wilson <wilson@redhat.com>
3493 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3494 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3496 2000-11-06 Nick Clifton <nickc@redhat.com>
3498 * ld.texinfo: Add GNU Free Documentation License.
3499 * ldint.texinfo: Add GNU Free Documentation License.
3500 * ld.1: Add GNU Free Documentation License.
3502 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3504 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3505 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3507 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3508 Move 2000-11-02 Makefile.in changes to this file.
3509 * Makefile.in: Regenerate.
3511 2000-11-03 Nick Clifton <nickc@redhat.com>
3513 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3514 constructors and destructors.
3515 * scripttempl/h8300h.sc: Ditto.
3516 * scripttempl/h8300s.sc: Ditto.
3517 * scripttempl/h8500.sc: Ditto.
3518 * scripttempl/h8500b.sc: Ditto.
3519 * scripttempl/h8500c.sc: Ditto.
3520 * scripttempl/h8500m.sc: Ditto.
3521 * scripttempl/h8500s.sc: Ditto.
3522 * scripttempl/v850.sc: Ditto.
3523 * scripttempl/w65.sc: Ditto.
3524 * scripttempl/z8000.sc: Ditto.
3526 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3528 * Makefile.in (e_i386_chaos.c): New rule.
3529 (ALL_EMULATIONS): Added e_i386_chaos.o.
3530 * emulparams/elf_i386_chaos.sh: New file.
3531 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3533 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3535 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3536 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3537 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3538 library path suffix.
3539 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3541 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3543 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3544 for consecutive sections.
3546 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3548 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3550 * ld.texinfo: Added notes about this new option.
3552 2000-10-16 Nick Clifton <nickc@redhat.com>
3554 * emultempl/pe.em (_after_open): Add tests of return values from
3555 bfd functions. Emit appropriate error messages if necessary.
3557 2000-10-13 Nick Clifton <nickc@redhat.com>
3559 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3560 local variables - they are not used, but leave in the call to
3561 bfd_canonicalize_symtab.
3562 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3563 pe_dll_search_prefix.
3565 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3567 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3568 (longopts): New --dll-search-prefix option.
3569 (gld_${EMULATION_NAME}_list_options): Document.
3570 (gld_${EMULATION_NAME}_parse_args): Handle.
3571 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3572 dynamically, search for a dll named '<prefix><basename>.dll'
3573 in preference to 'lib<basename>.dll' if --dll-search-prefix
3576 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3578 * ldlang.c (section_already_linked): Set kept_section instead of
3581 2000-10-10 Kazu Hirata <kazu@hxi.com>
3583 * deffile.h: Fix formatting.
3584 * lexsup.c: Likewise.
3587 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3589 * pe-dll.c (make_one): Do not generate code thunk for DATA
3591 (process_def_file): deduce DATA flag for auto-export sumbols.
3593 2000-10-09 Kazu Hirata <kazu@hxi.com>
3595 * ld.h: Fix formatting.
3596 * ldcref.c: Likewise.
3597 * ldctor.h: Likewise.
3598 * ldemul.c: Likewise.
3599 * ldemul.h: Likewise.
3600 * ldexp.c: Likewise.
3601 * ldexp.h: Likewise.
3602 * ldfile.c: Likewise.
3603 * ldfile.h: Likewise.
3604 * ldlang.c: Likewise.
3605 * ldlang.h: Likewise.
3606 * ldmain.c: Likewise.
3607 * pe-dll.c: Likewise.
3609 * pe-dll.c: Revert some formatting fixes.
3611 2000-10-08 Kazu Hirata <kazu@hxi.com>
3613 * pe-dll.c: Fix formatting.
3615 2000-10-05 Kazu Hirata <kazu@hxi.com>
3617 * ldlang.c: Fix formatting.
3619 2000-10-03 DJ Delorie <dj@redhat.com>
3621 * pe-dll.c (fill_edata): initialize entire block
3622 (make_one): fill in correct section.
3624 2000-10-03 Kazu Hirata <kazu@hxi.com>
3626 * ldexp.c: Fix formatting.
3628 2000-10-02 DJ Delorie <dj@redhat.com>
3630 * emultempl/pe.em (gld_*_after_open): detect case where there two
3631 import libraries for same dll; rename one to ensure proper link
3634 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3636 (generate_edata): fix typo
3638 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3640 * scripttempl/crisaout.sc (ENTRY): Now __start.
3641 (.text): Add default setting for __start.
3642 Remove CONSTRUCTORS handling.
3643 (/DISCARD/): Add .gnu.warning.*.
3644 * emulparams/crislinux.sh (ENTRY): Now __start.
3645 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3646 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3647 (ENTRY): Now __start.
3648 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3649 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3651 2000-09-29 Kazu Hirata <kazu@hxi.com>
3653 * deffile.h: Fix formatting.
3655 * ldcref.c: Likewise.
3656 * ldctor.c: Likewise.
3657 * ldctor.h: Likewise.
3658 * ldemul.c: Likewise.
3659 * ldemul.h: Likewise.
3660 * ldexp.c: Likewise.
3661 * ldexp.h: Likewise.
3662 * ldfile.c: Likewise.
3663 * ldfile.h: Likewise.
3664 * ldlang.c: Likewise.
3665 * ldlang.h: Likewise.
3666 * lexsup.c: Likewise.
3668 * pe-dll.c: Likewise.
3670 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3672 * pe-dll.c (process_def_file): Uninitialized data wasn't
3673 exported with --export-all-symbols switch.
3675 2000-09-28 DJ Delorie <dj@redhat.com>
3677 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3678 noname work properly.
3680 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3682 * ld.texinfo (HPPA ELF32): New section.
3684 * emultempl/hppaelf.em (group_size): New.
3685 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3686 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3687 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3688 options to prevent abbreviations matching.
3689 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3690 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3692 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3694 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3695 on the m68*-*-elf target. Make it support COFF input objects.
3697 2000-09-21 Kazu Hirata <kazu@hxi.com>
3699 * ldmain.c: Fix formatting.
3700 * ldmisc.c: Likewise.
3701 * ldver.c: Likewise.
3702 * ldwrite.c: Likewise.
3704 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3706 * ldwrite.c (clone_section): Silence gcc warnings.
3708 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3710 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3711 out of memory failure.
3713 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3714 (clone_section): Handle out of memory failures. Rename var to
3715 avoid c++ reserved word.
3717 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3719 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3720 stub_name param to stub_sec_name.
3721 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3723 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3725 * emultempl/m68kelf.em: New file.
3726 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3727 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3728 * Makefile.in: Regenerate.
3730 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3732 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3735 2000-09-13 Nick Clifton <nickc@redhat.com>
3737 * ldmain.c (multiple_definition): Disable relaxation if
3738 multiple symbol definitions are encountered - otherwise the
3739 linker could abort with an assertion failure.
3741 2000-09-10 Nick Clifton <nickc@redhat.com>
3743 * mri.c: Fix formatting.
3745 2000-09-07 H.J. Lu <hjl@gnu.org>
3747 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3748 * configure: Rebuild.
3750 2000-09-07 H.J. Lu <hjl@gnu.org>
3752 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3753 * Makefile.in: Rebuild.
3755 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3757 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3758 broken list handling. Create __start_SECNAME and __stop_SECNAME
3759 when no place-holder. Add some comments. Test both SEC_CODE and
3760 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3761 Handle case where no output section statement created.
3763 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3765 * configure.tgt (sh-*-linux*): Added.
3766 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3767 * Makefile.in: Rebuilt.
3768 * emulparams/shelf_linux.sh: New file.
3769 * emulparams/shlelf_linux.sh: New file.
3771 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3773 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3774 try shuffling sections when the orphan happens to be the place
3775 holder. Keep count of unique section names generated so we speed
3776 the search for a new name.
3778 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3780 * configure: Rebuilt with new libtool.m4.
3782 2000-09-05 Nick Clifton <nickc@redhat.com>
3784 * Makefile.in: Regenerate.
3785 * aclocal.m4: Regenerate.
3786 * configure: Regenerate.
3787 * config.in: Regenerate.
3788 * po/ld.pot: Regenerate.
3790 * ldint.texinfo: Remove CVS revision marker - it foils local
3793 * emultempl/ticoff.em: Remove extraneous comma.
3795 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3797 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3798 to stub section flags.
3799 (hppa_for_each_input_file_wrapper): New.
3800 (hppa_lang_for_each_input_file): New.
3801 (lang_for_each_input_file): Define to call above.
3802 (multi_subspace): New.
3803 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3804 (PARSE_AND_LIST_PROLOGUE): Define.
3805 (PARSE_AND_LIST_LONGOPTS): Define.
3806 (PARSE_AND_LIST_OPTIONS): Define.
3807 (PARSE_AND_LIST_ARGS_CASES): Define.
3808 (hppaelf_finish): Call elf32_hppa_set_gp.
3809 (hppaelf_set_output_arch): Remove.
3810 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3812 * emulparams/hppalinux.sh (ELFSIZE): Define.
3814 (OTHER_READONLY_SECTIONS): Define.
3816 (GENERATE_SHLIB_SCRIPT): Define.
3818 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3819 to const throughout. Change `void *' to `PTR' throughout.
3820 (lang_memory_default): Function is local to file, add `static'.
3822 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3823 (ehppalinux.c): Likewise.
3824 (earmelf.c): Likewise.
3825 (earmelf_linux.c): Likewise.
3826 (earmelf_linux26.c): Likewise.
3827 * Makefile.in: Regenerate.
3829 * ld.h (ld_config_type): Add unique_orphan_sections.
3830 * lexsup.c (OPTION_UNIQUE): Define.
3831 (ld_options): Add "--unique".
3832 (parse_args): Handle it.
3833 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3834 search for an existing output section if unique_orphan_sections is
3835 set. Make use of bfd_get_unique_section_name rather than
3836 duplicating code here.
3837 * ld.texinfo: Describe --unique.
3839 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3840 optional arg to split-by-file.
3841 (parse_args): Handle them.
3842 * ld.texinfo: Update description of these options.
3843 * ldwrite.c (clone_section): Pass in the section name. Replace
3844 local code with bfd_get_unique_section_name.
3845 (split_sections): Tidy code and comments. Use a list traversal
3846 more appropriate to the list construction. Handle cooked section
3847 sizes. Split when split_by_reloc reached rather than exceeded.
3848 Track section size and split when split_by_file reached. Fix
3849 link_order_tail (even though it's not used).
3850 (ldwrite): Modify condition for calling split_sections to suit
3851 changed split_by_reloc and split_by_file.
3852 * ldmain.c (main): Init config.split_by_reloc and
3853 config.split_by_file to -1.
3854 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3855 Change split_by_file to bfd_size_type.
3857 2000-09-02 Nick Clifton <nickc@redhat.com>
3859 * configure.in: Increase version number to 2.10.91.
3860 * NEWS: Mention new ability to support removal of duplicate DWARF2
3862 * configure: Regenerate.
3863 * aclocal.m4: Regenerate.
3864 * config.in: Regenerate.
3866 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3868 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3870 * scripttempl/elf32avr.sc: Ditto.
3871 * scripttempl/elfd10v.sc: Ditto.
3872 * scripttempl/elfd30v.sc: Ditto.
3873 * scripttempl/elfi370.sc: Ditto.
3874 * scripttempl/elfm68hc11.sc: Ditto.
3875 * scripttempl/elfm68hc12.sc: Ditto.
3876 * scripttempl/elfi386beos.sc: Ditto.
3877 * scripttempl/v850.sc: Ditto.
3879 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3881 * acinclude.m4: Include libtool and gettext macros from the
3883 * aclocal.m4, configure: Rebuilt.
3885 2000-08-25 Nick Clifton <nickc@redhat.com>
3887 * ldlang.c (open_output): When choosing the target for a
3888 particular endianness, do nothing if the target is not
3891 2000-08-25 H.J. Lu <hjl@gnu.org>
3893 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3894 check -rpath nor LD_RUN_PATH for cross link.
3895 * ld.texinfo: Document the change.
3897 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3899 * NEWS: Mention support for CRIS.
3901 2000-08-23 H.J. Lu <hjl@gnu.org>
3903 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3904 the current runpath list from bfd_elf_get_runpath_list ()
3907 2000-08-22 H.J. Lu <hjl@gnu.org>
3909 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3910 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3911 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3912 trace_file_tries is non-zero.
3913 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3914 if trace_file_tries is non-zero.
3916 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3919 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3921 * NEWS: Mention i860 support.
3923 2000-08-14 Andreas Schwab <schwab@suse.de>
3925 * scripttempl/elf.sc: Fix last change to use correct comment
3928 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3930 * scripttempl/elf.sc: Add a comment giving the correspondence
3931 between sections, per-datum sections, and linkonce sections. Make
3932 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3935 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3937 * emulparams/elf32_i860.sh: New file.
3938 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3939 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3940 (eelf32_i860.c): New rule.
3941 * Makefile.in: Regenerate.
3943 2000-08-10 Nick Clifton <nickc@cygnus.com>
3945 * emulparams/mipspe.sh (ENTRY): Add definition.
3947 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3949 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3952 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3954 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3955 the final size of .bss section.
3956 * scripttempl/elfm68hc12.sc: Likewise.
3958 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3960 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3961 gld${EMULATION_NAME}_parse_args for consistency. Combine
3962 lastoptind and prevoptind vars, and keep track of last optind.
3963 (gld_${EMULATION_NAME}_list_options): Rename to
3964 gld${EMULATION_NAME}_list_options.
3966 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3968 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3969 (i586-sco-sysv5uw7.1.0).
3971 2000-07-27 H.J. Lu <hjl@gnu.org>
3973 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3974 (PARSE_AND_LIST_PROLOGUE): New.
3975 (PARSE_AND_LIST_LONGOPTS): Likewise.
3976 (PARSE_AND_LIST_OPTIONS): Likewise.
3977 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3978 (PARSE_AND_LIST_EPILOGUE): Likewise.
3980 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3982 * emultempl/armelf.em: Elide functions common to elf32.em,
3983 ie. most of the file.
3984 (arm_elf_after_open): New. Do arm specific things then call
3985 gld${EMULATION_NAME}_after_open.
3986 (arm_elf_before_allocation): New. Call
3987 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3988 (PARSE_AND_LIST_PROLOGUE): Define.
3989 (PARSE_AND_LIST_SHORTOPTS): Define.
3990 (PARSE_AND_LIST_LONGOPTS): Define.
3991 (PARSE_AND_LIST_OPTIONS): Define.
3992 (PARSE_AND_LIST_ARGS_CASES): Define.
3993 (LDEMUL_AFTER_OPEN): Define.
3994 (LDEMUL_BEFORE_ALLOCATION): Define.
3995 (LDEMUL_BEFORE_PARSE): Define.
3996 (LDEMUL_FINISH): Define.
3998 * emultempl/hppaelf.em: Similarly zap most of this file.
3999 (hppaelf_add_stub_section): Prototype.
4000 (hppaelf_layaout_sections_again): Prototype.
4001 (hook_in_stub): Prototype.
4002 (LDEMUL_SET_OUTPUT_ARCH): Define.
4003 (LDEMUL_FINISH): Define.
4004 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4006 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4007 (EXTRA_EM_FILE): New.
4008 * emulparams/armelf_linux.sh: Likewise.
4009 * emulparams/armelf_linux26.sh: Likewise.
4010 * emulparams/hppalinux.sh: Likewise.
4011 * emulparams/hppaelf.sh: Likewise.
4014 * emultempl/elf32.em: Fix formatting.
4015 (EXTRA_EM_FILE): Source it.
4016 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4017 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4018 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4019 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4020 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4021 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4022 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4023 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4024 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4025 allow functions in this file to be overridden.
4026 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4028 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4030 * emultempl/elf32.em: Reorganize file.
4032 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4034 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4035 specific option to fit 64-bit executable in the lower
4036 31-bit address range. This is done by changing start
4037 address of .interp (the very first section of executable)
4038 and then setting EF_ALPHA_32BIT elf header flag.
4040 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4042 * emultempl/m68kcoff.em: New file.
4043 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4044 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4046 * Makefile.in: Regenerate.
4048 2000-07-20 H.J. Lu <hjl@gnu.org>
4050 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4051 and "disable-new-dtags" to stop getopt from treating -d/-e as
4052 abbreviations for these options.
4054 2000-07-20 H.J. Lu <hjl@gnu.org>
4056 * ld.texinfo: Add documentation for --disable-new-dtags and
4059 * ldmain.c (main): Initialize link_info.new_dtags to false.
4061 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4062 --disable-new-dtags and --enable-new-dtags.
4063 (gld_${EMULATION_NAME}_list_options): Likewise.
4065 2000-07-05 Kenneth Block <krblock@computer.org>
4067 * lexsup.c: Add optional style to demangle switch
4068 * ld.texinfo: Document optional style to demangle switch.
4070 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4072 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4074 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4075 Regenerate dependencies.
4076 * Makefile.in: Rebuild.
4077 * configure.tgt (cris-*-*): New target.
4078 * emulparams/crisaout.sh, emulparams/criself.sh,
4079 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4080 * po/POTFILES.in, po/ld.pot: Regenerate.
4082 2000-07-20 H.J. Lu <hjl@gnu.org>
4084 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4085 Print out ignored -z options.
4087 2000-07-19 H.J. Lu <hjl@gnu.org>
4089 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4090 (PARSE_AND_LIST_PROLOGUE): New.
4091 (PARSE_AND_LIST_LONGOPTS): Likewise.
4092 (PARSE_AND_LIST_OPTIONS): Likewise.
4093 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4095 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4097 * lexsup.c (ld_options): Comment out 'z'.
4098 (parse_args): Likewise.
4100 * emultempl/elf32.em: Include "elf/common.h".
4101 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4103 (gld_${EMULATION_NAME}_list_options): Likewise.
4105 * ld.texinfo: Add documentation for the recognized -z options.
4107 2000-07-19 H.J. Lu <hjl@gnu.org>
4109 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4110 bfd_elf_set_dt_needed_soname ().
4112 2000-07-18 DJ Delorie <dj@cygnus.com>
4114 * pe-dll.c (pe_dll_id_target): check object target name also
4116 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4118 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4119 ${INIT_END} if relocating.
4120 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4122 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4124 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4125 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4126 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4127 errors introduced by the old dynamic lib search order.
4129 2000-07-17 DJ Delorie <dj@cygnus.com>
4131 * pe-dll.c (process_def_file): auto-export data items also
4132 (pe_process_import_defs): also see if _imp_ form needed
4134 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4136 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4137 for dll import libraries
4139 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4141 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4142 gcc 2.95.2 and later.
4144 2000-07-11 Kazu Hirata <kazu@hxi.com>
4146 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4149 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4151 * ldemul.h (struct lang_input_statement_struct): Remove forward
4153 (struct search_dirs): Likewise.
4154 * ldfile.h (struct lang_input_statement_struct): Likewise.
4155 Protect file from multiple inclusion.
4156 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4157 declaration from macro to file scope.
4159 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4160 * ldgram.y: Likewise here.
4161 * ldlang.c: And here.
4162 * ldmain.c: And here.
4163 * mpw-elfmips.c: And here.
4164 * mpw-eppcmac.c: And here.
4165 * emultempl/aix.em: And here.
4166 * emultempl/armcoff.em: And here.
4167 * emultempl/armelf.em: And here.
4168 * emultempl/armelf_oabi.em: And here.
4169 * emultempl/beos.em: And here.
4170 * emultempl/elf32.em: And here.
4171 * emultempl/hppaelf.em: And here.
4172 * emultempl/linux.em: And here.
4173 * emultempl/lnk960.em: And here.
4174 * emultempl/pe.em: And here.
4175 * emultempl/sunos.em: And here.
4176 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4177 * mpw-idtmips.c: Ditto.
4178 * emultempl/generic.em: Ditto.
4179 * emultempl/gld960.em: Ditto.
4180 * emultempl/gld960c.em: Ditto.
4181 * emultempl/mipsecoff.em: Ditto.
4182 * emultempl/ticoff.em: Ditto.
4183 * emultempl/vanilla.em: Ditto.
4185 * pe-dll.c: Include ldfile.h
4186 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4188 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4189 arguments to bfd_elf32_size_dynamic_sections call.
4190 (gldelf32ebmip_place_orphan): Add missing arguments to
4191 lang_leave_output_section_statement call.
4193 2000-07-10 H.J. Lu <hjl@gnu.org>
4195 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4197 (strhash): Likewise.
4198 (compute_dll_image_base): Likewise.
4199 (pe_undef_found_sym): Likewise.
4200 (pe_undef_cdecl_match): Likewise.
4201 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4202 argument "arch" with ATTRIBUTE_UNUSED.
4204 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4206 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4208 From Ryan Bradetich <rbradetich@uswest.net>
4209 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4211 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4213 Changes to create multiple linker stubs, positioned immediately
4214 before the section where they are required.
4215 * emultempl/hppaelf.em: Include elf32-hppa.h.
4216 (stub_sec, file_chain): Delete.
4217 (hppaelf_create_output_section_statements): Don't make a stub
4219 (hook_stub_info): New struct.
4220 (hook_in_stub): New function.
4221 (hppaelf_add_stub_section): New function.
4222 (hppaelf_finish): Do nothing for relocateable links. Modify the
4223 call to elf32_hppa_size_stubs. Move code for updating section
4225 (hppaelf_layaout_sections_again): ..to here, a new function.
4227 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4228 broken list handling. Pass in a pointer to the list.
4229 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4231 (hppaelf_before_parse): Prototype.
4232 (hppaelf_set_output_arch): Prototype.
4233 (hppaelf_create_output_section_statements): Prototype.
4234 (hppaelf_delete_padding_statements): Prototype.
4235 (hppaelf_finish): Prototype.
4238 * emultempl/hppaelf.em: Include ctype.h.
4239 (struct orphan_save): New.
4240 (gld${EMULATION_NAME}_place_orphan): New.
4241 (output_rel_find): New.
4242 (hppaelf_get_script): Update from elf32.em.
4243 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4244 Change emulation_name field to "${EMULATION_NAME}". Add
4245 gld${EMULATION_NAME}_place_orphan.
4247 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4248 ehppalinux.o, sort it. Regenerate dependencies.
4249 (ehppalinux.c): Depend on hppaelf.em
4250 * Makefile.in: Regenerate.
4252 * configure.tgt: targ_emul=hppalinux for hppa*linux
4254 * emulparams/hppalinux.sh: New.
4255 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4257 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4259 * lexsup.c (parse_args): Copy section name.
4261 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4263 * emultempl/pe.em: institute the following search order for
4264 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4265 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4266 static lib (libfoo.a) if none of the above are found.
4268 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4270 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4271 (longopts): New --{enable,disable}-auto-image-base options.
4272 (gld_${EMULATION_NAME}_list_options): Document.
4273 (gld_${EMULATION_NAME}_parse): Handle.
4274 (strhash): New static function.
4275 (compute_dll_image_base): New static function.
4276 (gld_${EMULATION_NAME}_set_symbols): Use.
4278 2000-07-05 DJ Delorie <dj@redhat.com>
4282 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4284 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4285 * emulparams/elf32btsmip.sh: New file.
4286 * Makefile.am: Add traditional mips target.
4287 * Makefile.in: Rebuild.
4289 2000-07-01 H.J. Lu <hjl@gnu.org>
4291 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4292 automake to use YLWRAP.
4293 * Makefile.in: Rebuild.
4295 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4297 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4298 (CLEANFILES): Add DEPA.
4299 * Makefile.in: Regenerate.
4301 2000-06-30 Timothy Wall <twall@ppc>
4303 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4304 the page in the upper octet of the address.
4306 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4308 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4310 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4312 * NEWS: arm-elf does --gc-sections too.
4314 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4316 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4318 * Makefile.in: Regenerate.
4320 2000-06-21 H.J. Lu <hjl@gnu.org>
4322 * Makefile.am: Rebuild dependency.
4323 * Makefile.in: Rebuild.
4325 2000-06-20 H.J. Lu <hjl@gnu.org>
4327 * Makefile.am: Rebuild dependency.
4328 * Makefile.in: Rebuild.
4330 2000-06-20 Timothy Wall <twall@cygnus.com>
4332 * scripttempl/tic54xcoff.sc: New.
4333 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4334 * gen-doc.texi: Add flag for TI COFF.
4335 * ld.texinfo: Add documentation for TI COFF handling switches.
4336 * emultempl/ticoff.em: New. TI COFF handling.
4337 * configure.tgt: Add tic54x target.
4338 * Makefile.am: Add tic54x target.
4339 * Makefile.in: Ditto.
4341 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4343 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4344 checking for backslashes.
4346 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4348 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4350 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4352 * NEWS: Update list of targets supporting --gc-sections.
4354 * scripttempl/elf.sc: KEEP .eh_frame contents.
4355 * scripttempl/elfd30v.sc: Same here.
4357 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4359 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4361 * Makefile.in: Rebuild.
4362 * configure.tgt: Recognize m68hc12 and m68hc11.
4363 * scripttempl/elfm68hc12.sc: New file.
4364 * emulparams/m68hc12elfb: New emulation.
4365 * emulparams/m68hc12elf: New emulation.
4366 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4367 (includes a memory.x script to define the ROM and RAM banks).
4368 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4369 New configuration files for support of Motorola 68hc11
4371 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4373 * ldmain.c (main): Only change SEC_READONLY for final link.
4375 2000-06-13 H.J. Lu <hjl@gnu.org>
4377 * configure: Regenerate.
4379 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4381 * configure.in (VERSION): Update to show this is the CVS mainline.
4383 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4385 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4386 input objects to be ECOFF.
4387 (check_sections): einfo takes %B, not %P, to print a BFD name.
4389 2000-06-05 Michael Matz <matz@ifh.de>
4391 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4394 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4396 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4398 * emulparams/avr1200.sh (STACK): Define as 0.
4399 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4400 * emulparams/avr4433.sh (STACK): Likewise.
4401 * emulparams/avr44x4.sh (STACK): Likewise.
4402 * emulparams/avr85xx.sh (STACK): Likewise.
4403 * emulparams/avrmega103.sh (STACK): Likewise.
4404 * emulparams/avrmega161.sh (STACK): Likewise.
4405 * emulparams/avrmega603.sh (STACK): Likewise.
4406 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4407 (__stack): Define from ${STACK} for main().
4409 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4411 * Makefile.am: Update dependencies with "make dep-am"
4412 * Makefile.in: Regenerate.
4414 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4416 * ldmain.c: Include filenames.h.
4417 (set_scripts_dir): Support backslashes in program name.
4419 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4421 * ldmain.c (main): When deciding if ".text" section should be
4422 read-only, don't forget to reset SEC_READONLY because it
4423 could be already set.
4425 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4427 * ld.1: Add documentation for new command line option:
4428 --section-start <sectionname>=<sectionorg>
4429 This is a generic version of -Ttext etc. which accepts
4430 any section name as a parameter instead of just text/data/
4432 * ld.texinfo: More docs.
4434 * lexsup.c: (parse_args): Recognize new command line option.
4435 (ld_options): Add new option.
4437 2000-05-18 H.J. Lu <hjl@gnu.org>
4439 * lexsup.c (parse_args): `i' == `r', not `q'.
4441 2000-05-18 Jeffrey A Law (law@cygnus.com)
4443 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4445 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4446 Rick Gorton <gorton@scrugs.lkg.dec.com>
4448 Add support for '-q' == '--emit-relocs' switch.
4449 * ldmain.c (main): Default to false.
4450 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4451 * NEWS: Describe the emitrelocations switch.
4452 * ld.texinfo: Describe the emitrelocations switch.
4454 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4456 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4457 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4458 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4461 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4463 * lexsup.c (parse_args): Update the year in the copyright notice.
4465 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4467 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4468 Replace defines with those from intl/libgettext.h to quieten gcc
4471 2000-05-10 H.J. Lu <hjl@gnu.org>
4473 * ldlang.c (open_input_bfds): Don't load the same file within
4474 a group again if the whole archive has been loaded already.
4476 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4478 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4479 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4482 2000-05-01 Jim Wilson <wilson@cygnus.com>
4484 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4486 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4487 host "ia64-*-linux-gnu*".
4489 2000-04-29 Andreas Jaeger <aj@suse.de>
4491 * ld.h: Correctly check GCC version.
4493 2000-04-25 Jeffrey A Law (law@cygnus.com)
4495 * Makefile.am: Add PA64 support. Add missing dependencies for
4497 * Makefile.in: Rebuilt.
4498 * configure.tgt: Add PA64 support (currently disabled).
4500 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4502 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4503 (output_rel_find): New function.
4504 (hold_section, hold_use): Delete.
4505 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4506 hold_interp): Make local to place_orphan.
4507 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4508 rather than place_section to find possible previous use of orphan.
4509 Similarly find the place-holder output sections. Use returned
4510 value from lang_enter_output_section_statement rather than calling
4511 lang_output_section_statement_lookup.
4512 * emultempl/armelf.em: Same here.
4513 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4515 * ldlang.c (lang_enter_output_section_statement): Return output
4517 * ldlang.h (lang_enter_output_section_statement): Change
4520 * ldlang.h (lang_output_section_statement): Export it.
4521 * ldlang.c (lang_output_section_statement): Ditto.
4523 2000-04-24 Nick Clifton <nickc@cygnus.com>
4525 * ld.texinfo (Output Section Data): Add note that section data
4526 commands cannot appear outside of section directives.
4528 2000-04-2 Matthew Green <mrg@cygnus.com>
4530 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4532 2000-04-21 Richard Henderson <rth@cygnus.com>
4533 David Mosberger <davidm@hpl.hp.com>
4535 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4536 (eelf64_ia64.c): New rule.
4537 * Makefile.in: Rebuild.
4538 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4539 * emulparams/elf64_ia64.sh: New file.
4541 2000-04-21 Richard Henderson <rth@cygnus.com>
4543 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4545 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4547 * dep-in.sed: Match space at start of file name, not at end.
4549 2000-04-18 H.J. Lu <hjl@gnu.org>
4551 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4552 lang_leave_output_section_statement () after calling
4553 lang_enter_output_section_statement ().
4554 * emultempl/armelf.em: Likewise.
4556 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4558 * emultempl/elf32.em (struct orphan_save): Add section field.
4559 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4560 better order, and place first orphan section as we did before the
4561 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4562 Don't call make_bfd_section here, let wild_doit do the job for us.
4563 Don't build a statement list when we'll only throw it away.
4564 * emultempl/armelf.em: Ditto.
4565 * emultempl/pe.em: Similarly.
4567 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4569 * scripttempl/elfppc.sc: Remove.
4570 * emulparams/elf32ppc.sh: Use elf.sc.
4571 * emulparams/elf32lppc.sh: Use elf.sc.
4572 * emulparams/elf32ppclinux.sh: Use elf.sc.
4573 * emulparams/elf32ppcsim.sh: New file.
4574 * emulparams/elf32lppcsim.sh: New file.
4575 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4576 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4577 * Makefile.in: Regenerate.
4578 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4580 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4582 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4583 ~SEC_ALLOC sections too. Init start address of debug sections.
4584 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4585 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4586 Also set all relocateable section start addresses.
4588 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4590 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4591 Add new BSS_PLT variable for when .plt need not be contained in
4592 the file. Move _etext so that it is also after .fini, and provide
4593 both etext and _etext with a leading underscore. Mark the start
4596 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4598 * emultempl/elf32.em (struct orphan_save): New.
4599 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4600 hold_interp): Make them struct orphan_save.
4601 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4602 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4603 the end of the relevant section list. Also add associated section
4604 statements to the end of any previous orphan statements.
4605 * emultempl/armelf.em: Similarly.
4606 * emultempl/pe.em: Similarly.
4608 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4610 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4612 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4614 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4615 --enable-build-warnings option.
4616 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4617 * Makefile.in, configure: Re-generate.
4619 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4621 * po/ld.pot: Regenerate.
4623 * lexsup.c (help): Restore translated part of bug string.
4625 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4626 (DEP): Quote when passing vars to sub-make. Add warning message
4628 (DEP1): Rewrite for "gcc -MM".
4629 (CLEANFILES): Add DEP2.
4630 Update dependencies.
4631 * Makefile.in: Regenerate.
4633 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4635 * ld.h: #include "bin-bugs.h"
4636 * lexsup.c (help): Use REPORT_BUGS_TO.
4638 2000-03-27 Denis Chertykov <denisc@overta.ru>
4640 * configure.tgt (avr-*-*): New target support.
4641 * Makefile.am: Likewise.
4642 * scripttempl/elf32avr.sc: New script file.
4643 * emulparams/avr1200.sh: New file.
4644 * emulparams/avr23xx.sh: New file.
4645 * emulparams/avr4433.sh New file.
4646 * emulparams/avr44x4.sh New file.
4647 * emulparams/avr85xx.sh New file.
4648 * emulparams/avrmega103.sh New file.
4649 * emulparams/avrmega161.sh New file.
4650 * emulparams/avrmega603.sh New file.
4651 * Makefile.in: Regenerate.
4653 2000-03-09 Andreas Jaeger <aj@suse.de>
4655 * Makefile.am (check-DEJAGNU): Also unset LANG.
4656 * Makefile.in: Rebuild.
4658 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4660 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4663 2000-03-02 H.J. Lu <hjl@gnu.org>
4665 * emulparams/elf32mcore.sh: Include "getopt.h".
4667 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4669 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4671 2000-03-01 H.J. Lu <hjl@gnu.org>
4673 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4674 * emulparams/shpe.sh: Likewise.
4676 2000-03-01 Nick Clifton <nickc@cygnus.com>
4678 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4679 to unused parameters.
4681 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4682 functions only used by DLL code.
4683 (_place_orphan): Initialise 'dollar'.
4685 2000-03-01 H.J. Lu <hjl@gnu.org>
4687 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4688 indicate if the undefined symbol is a fatal error or not.
4689 Don't delete the output file if "fatal" is false.
4691 2000-02-29 H.J. Lu <hjl@gnu.org>
4693 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4694 Set LC_COLLATE and LC_ALL to null and export them. It is for
4695 sort which expects the C locale.
4696 Add $(LIBS) to all $(HOSTING_LIBS).
4697 * Makefile.in: Rebuild.
4699 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4701 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4702 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4703 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4704 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4705 find_potential_libraries.
4707 2000-02-28 Jim Blandy <jimb@redhat.com>
4709 * ldgram.y (exclude_name_list): Don't require a comma to separate
4710 list entries; the lexer considers commas to be valid part of a
4711 filename, so in something like `foo, bar' the comma is considered
4712 part of the first filename, `foo,'.
4713 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4715 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4717 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4718 host "i[3456]86-*-freebsdelf*".
4720 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4722 * scripttempl/i386go32.sc: Move misplaced semicolons.
4724 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4726 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4727 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4728 (eelf64hppa.c, ehppaelf.c): Remove targets.
4729 * Makefile.in: Rebuild.
4731 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4733 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4734 GNU/Linux/sparc, but keep the default as 32.
4736 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4737 it default if sparcv9 or sparc64.
4739 2000-02-24 Nick Clifton <nickc@cygnus.com>
4741 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4742 * Makefile.in: Regenerate.
4743 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4745 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4746 find_potential_libraries.
4747 * ldemul.c (ldemul_find_potential_libraries): New function.
4749 * ldfile.c (ldfile_open_file_search): Allow function to be
4751 (ldfile_open_file): Call ldemul_find_potential_libraries.
4752 * ldfile.h: Add prototype for ldfile_open_file_search.
4754 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4756 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4757 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4759 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4760 (gld_X_find_potential_libraries): New function. Search for
4761 libraries called "*.lib".
4763 * scripttempl/pe.sc: Add .pdata section.
4765 2000-02-23 Richard Henderson <rth@cygnus.com>
4767 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4768 Add and use memory regions.
4770 2000-02-23 Linas Vepstas (linas@linas.org)
4772 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4774 * Makefile.am: Add support for Linux/IBM 370.
4775 * configure.tgt: Likewise.
4777 * Makefile.in: Regenerate.
4779 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4781 * ldlang.c (print_input_section, print_data_statement,
4782 print_reloc_statement, print_padding_statement, insert_pad,
4783 size_input_section, lang_check_section_addresses,
4784 lang_size_sections, lang_do_assignments, lang_set_startof,
4785 lang_one_common): Change `opb' to unsigned.
4786 (lang_do_assignments): Also change `size' to unsigned.
4788 2000-02-16 Richard Henderson <rth@cygnus.com>
4790 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4792 2000-02-16 Timothy Wall <twall@cygnus.com>
4794 * mri.c (mri_draw_tree): Add default LMA region argument to call
4795 to lang_leave_output_section_statement.
4796 * ldlang.h: Update prototypes with LMA region arguments.
4797 * ldlang.c (lang_size_sections): Encapsulate region bounds
4798 checking in os_check_region call.
4799 (os_check_region): New function.
4800 (lang_output_section_statement_lookup): Initialize lma_region.
4801 (lang_leave_output_section_statement): Add LMA region argument.
4802 (lang_leave_overlay): Ditto.
4803 * ldgram.y: Handle LMA region syntax.
4804 * ld.texinfo (Output Section Description): Describe LMA region usage.
4805 * emultempl/armelf.em (gld$place_orphan): Add default value for
4806 lma region in call to lang_leave_output_section_statement.
4807 * emultempl/elf32.em (gld$place_orphan): Add default value for
4808 lma region in call to lang_leave_output_section_statement.
4809 * emultempl/pe.em (gld$place_orphan): Add default value for
4810 lma region in call to lang_leave_output_section_statement.
4813 2000-02-04 Timothy Wall <twall@redhat.com>
4815 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4816 octets when calculating section end addresses.
4818 2000-02-04 Timothy Wall <twall@redhat.com>
4820 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4822 2000-02-03 Timothy Wall <twall@redhat.com>
4824 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4826 * ldlang.c (print_input_section, print_data_statement,
4827 print_reloc_statement, print_padding_statement): Print target
4828 address values and section sizes as bytes, not octets.
4829 (insert_pad) Calculate padding size in octets, and adjust "dot"
4831 (size_input_section) Always adjust "dot" by bytes, not octets.
4832 (lang_check_section_addresses, lang_do_assignments) Adjust
4833 "dot" by bytes, not octets. Use the larger of the directive size
4834 or octets_per_byte for the number of octets actually allocated in
4836 (lang_set_startof) Make sure STARTOF returns a target address.
4837 (lang_one_common) Record size changes in octets.
4838 (lang_abs_symbol_at_end_of) Section end symbol's value is
4839 recorded in target bytes.
4840 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4841 to be clear about behavior when an octet is smaller than one byte.
4843 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4845 * ldcref.c (output_cref): Don't pass message strings to printf
4849 * ldmisc.c (vfinfo): Same here.
4852 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4854 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4855 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4856 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4857 Add missing NULL initialisers, and comments.
4859 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4861 2000-01-21 Nick Clifton <nickc@cygnus.com>
4863 * ldlang.c (lang_size_sections): Fix typo in comment.
4865 2000-01-18 H.J. Lu <hjl@gnu.org>
4867 * ldlang.c (lang_size_sections): Also update the current
4868 address of a region if the SEC_NEVER_LOAD bit is not set.
4870 2000-01-10 Philip Blundell <pb@futuretv.com>
4872 * configure.tgt (arm*-*-conix*): New target.
4874 2000-01-07 Nick Clifton <nickc@cygnus.com>
4876 * ld.texinfo (Options): Remind users to preceed linker command
4877 line switches with -Wl, (or whatever is appropriate) if it is
4878 being invoked by a comnpiler driver program.
4879 Fix description of the behaviour of the -n command line switch.
4881 2000-01-05 Catherine Moore <clm@cygnus.com>
4883 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4885 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4886 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4887 (exclude_name_list): New.
4888 ldlang.c (walk_wild_section): Support list of excluded files.
4889 (print_wild_statement): Likewise.
4890 (lang_add_wild): Likewise.
4891 * ldlang.h (lang_wild_statement_type): Likewise.
4892 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4894 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4896 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4897 (process_def_file): Use.
4898 (pe_dll_compat_implib): New variable.
4901 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4902 pe_dll_compat_implib.
4904 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4905 compat-implib options.
4906 (gld_${EMULATION_NAME}_list_options): List new options.
4907 (gld_${EMULATION_NAME}_parse_args): Handle.
4909 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4912 * deffilep.y (opt_name): Allow "." in name.
4914 For older changes see ChangeLog-9899
4920 version-control: never