1 2003-08-21 Nick Clifton <nickc@redhat.com>
3 * po/tr.po: Updated Turkish translation.
5 2003-08-20 Nick Clifton <nickc@redhat.com>
7 * ldmain.c: Initialise the new fields in bfd_link_info to
9 * lexsup.c (enum option_values): New enum. Use this to
10 replace the handed coded values for the long switch options.
11 (ld_options): Add 'unresolved-symbols',
12 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
13 (parse_args): Handle the new switches. Set the values of
14 unresolved_symbols_in_objects and
15 unresolved_symbols_in_shared_libs appropriately. If they were
16 not initialised by the command line, install default values.
17 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
18 -z defs to use the new fields in bfd_link_info.
19 * ld.texinfo: Document the new switches.
20 * NEWS: Mention this feature.
22 2003-08-15 Dmitry Diky <diwil@mail.ru>
24 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
25 calls genscripts_extra.sh.
26 Rearrange all msp430 depends using this script.
27 * Makefile.in: Regenerate.
28 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
29 that the script to be run to generate the emulations can be passed
30 as an optional parameter instead of being computed from the
32 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
33 definitions into one file.
34 * emulparams/msp430x*.sh: Removed.
36 2003-08-15 Nick Clifton <nickc@redhat.com>
38 * ld.texinfo (Options): Put keywords for the -z option into a
39 table. Add more text describing what the -z now option does.
41 2003-08-14 Alan Modra <amodra@bigpond.net.au>
43 * dep-in.sed: Remove libintl.h.
44 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
45 * Makefile.in: Regenerate.
47 2003-08-13 Alan Modra <amodra@bigpond.net.au>
49 * genscripts.sh (libpath.exp): Only generate for first emulation.
50 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
51 already present or when LIB_PATH is set to ":".
53 2003-08-12 Ian Lance Taylor <ian@airs.com>
55 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
56 to `error'. If only a warning, put warning in the reported
57 string. Consistently set failure flag when not a warning.
59 2003-08-08 Dmitry Diky <diwil@mail.ru>
61 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
63 * Makefile.in: Regenerate.
64 * configure.tgt: Add extra emulations.
65 * emulparams/msp430xE423.sh: New file.
66 * emulparams/msp430xE427.sh: New file.
67 * emulparams/msp430xW425.sh: New file.
68 * emulparams/msp430xE425.sh: New file.
69 * emulparams/msp430xW423.sh: New file.
70 * emulparams/msp430xW427.sh: New file.
72 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
74 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
75 Change second (cmdline) arg to lang_add_entry to FALSE.
76 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
78 2003-08-05 Christian Groessler <chris@groessler.org>
79 Jason Eckhardt <jle@rice.edu>
81 * configure.tgt: Recognize new target i860-*-coff.
82 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
83 (ecoff_i860.c): New rule.
84 * emulparams/coff_i860.sh: New file.
85 * scripttempl/i860coff.sc: New file.
86 * Makefile.in: Regenerate.
88 2003-08-04 Nick Clifton <nickc@redhat.com>
90 * emultempl/elf32.em (before_allocation): Prepend "warning: "
91 to messages produced for .gnu.warning.SYMBOL sections.
93 2003-08-04 Alan Modra <amodra@bigpond.net.au>
95 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
96 .rel.dyn before other reloc sections. Don't stop looking for reloc
97 sections on finding one that isn't allocated. Match .rel even when
98 placing .rela and vice versa, when setting last_rel and
99 last_rel_alloc for the first time. If no reloc sections in script,
100 prefer allocated section over non-alloc.
101 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
103 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
105 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
106 section for shared library.
107 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
108 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
110 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
112 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
113 * scripttempl/elfm68hc11.sc: Likewise.
115 2003-07-28 Alan Modra <amodra@bigpond.net.au>
117 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
119 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
121 2003-07-27 Alan Modra <amodra@bigpond.net.au>
123 * ld.texinfo: Typo fixes. Document SUBALIGN.
124 * ldgram.y (opt_subalign): Add.
125 * ldlex.l (SUBALIGN): Recognize.
126 * ldlang.c (overlay_subalign): New var.
127 (lang_enter_overlay): Add subalign param.
128 (lang_enter_overlay_section): Pass overlay_subalign to
129 lang_enter_output_section_statement.
130 * ldlang.h (lang_enter_overlay): Update.
132 2003-07-24 Nick Clifton <nickc@redhat.com>
134 * po/fr.po: Updated French translation.
136 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
138 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
139 account .tramp sections;
140 * scripttempl/elfm68hc12.sc: Likewise.
142 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
144 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
146 2003-07-17 Nick Clifton <nickc@redhat.com>
148 * po/es.po: New Spanish translation.
150 2003-07-11 Alan Modra <amodra@bigpond.net.au>
152 * po/ld.pot: Regenerate.
154 2003-07-10 Bob Wilson <bob.wilson@acm.org>
156 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
157 with new .got.loc section.
158 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
159 non-relocating links.
160 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
161 sections separate for non-relocating links; likewise for .xt.insn.
163 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
165 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
166 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
167 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
168 * configure.host (am33_2.0-*-linux*): Added.
169 * configure.tgt (am33_2.0-*-linux*): Likewise.
170 * emulparams/elf32am33lin.sh: New.
171 * Makefile.am (eelf32am33lin.c): New rule.
172 * Makefile.in: Rebuilt.
174 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
176 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
177 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
178 (GENERATE_SHLIB_SCRIPT): Likewise.
180 2003-07-10 Alan Modra <amodra@bigpond.net.au>
182 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
184 * emultempl/ppc64elf.em (stub_added): New static var.
185 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
186 (ppc_add_stub_section): Set stub_added.
187 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
188 ppc64_elf_size_stubs call and test for stubs.
189 * scripttempl/elf.sc (GOT): Define and use.
191 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
193 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
194 Allow second call from ldemul_finish.
196 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
198 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
199 (OTHER_SECTIONS): Include .stack.
200 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
202 2003-07-02 Jakub Jelinek <jakub@redhat.com>
204 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
206 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
207 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
210 2003-06-28 Alan Modra <amodra@bigpond.net.au>
212 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
213 Replace PTR with void *. Formatting.
214 * ldcref.c: Likewise.
215 * ldctor.c: Likewise.
216 * ldctor.h: Likewise.
217 * ldemul.h: Likewise.
220 * ldfile.c: Likewise.
221 * ldfile.h: Likewise.
222 * ldlang.c: Likewise.
223 * ldlang.h: Likewise.
226 * ldmain.c: Likewise.
227 * ldmain.h: Likewise.
228 * ldmisc.c: Likewise.
229 * ldmisc.h: Likewise.
231 * ldwrite.c: Likewise.
232 * ldwrite.h: Likewise.
233 * lexsup.c: Likewise.
236 * pe-dll.c: Likewise.
237 * pe-dll.h: Likewise.
238 * deffilep.y: Likewise.
239 * deffile.h: Likewise. Don't include ansidecl.h.
240 * emulparams/elf32mcore.sh: Remove unnecessary cast.
241 * emultempl/m68kcoff.em: Likewise.
242 * emultempl/m68kelf.em: Likewise.
243 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
244 * sysdep.h: Don't include ansidecl.h.
245 * Makefile.am: Run "make dep-am".
246 * Makefile.in: Regenerate.
248 2003-06-27 Nick Clifton <nickc@redhat.com>
250 * deffilep.y (def_file_add_directive): Cope with NUL seperated
251 directives. Fix reporting of unparseable directives.
252 (def_error): Check for a NULL def_filename.
254 2003-06-27 Alan Modra <amodra@bigpond.net.au>
256 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
257 and casts. Replace PTR with void *. Formatting.
258 * emultempl/alphaelf.em: Likewise.
259 * emultempl/armcoff.em: Likewise.
260 * emultempl/armelf.em: Likewise.
261 * emultempl/armelf_oabi.em: Likewise.
262 * emultempl/beos.em: Likewise.
263 * emultempl/elf32.em: Likewise.
264 * emultempl/generic.em: Likewise.
265 * emultempl/gld960.em: Likewise.
266 * emultempl/gld960c.em: Likewise.
267 * emultempl/hppaelf.em: Likewise.
268 * emultempl/linux.em: Likewise.
269 * emultempl/lnk960.em: Likewise.
270 * emultempl/m68hc1xelf.em: Likewise.
271 * emultempl/m68kcoff.em: Likewise.
272 * emultempl/m68kelf.em: Likewise.
273 * emultempl/mipsecoff.em: Likewise.
274 * emultempl/mipself.em: Likewise.
275 * emultempl/mmix-elfnmmo.em: Likewise.
276 * emultempl/mmixelf.em: Likewise.
277 * emultempl/mmo.em: Likewise.
278 * emultempl/needrelax.em: Likewise.
279 * emultempl/netbsd.em: Likewise.
280 * emultempl/pe.em: Likewise.
281 * emultempl/sh64elf.em: Likewise.
282 * emultempl/sunos.em: Likewise.
283 * emultempl/ticoff.em: Likewise.
284 * emultempl/vanilla.em: Likewise.
285 * emultempl/xtensaelf.em: Likewise.
286 * Makefile.am: Correct dependencies.
287 * Makefile.in: Regenerate.
289 2003-06-25 Alan Modra <amodra@bigpond.net.au>
291 * ld.texinfo: Correct spelling of "relocatable".
292 * ldctor.c: Likewise.
294 * ldfile.c: Likewise.
295 * ldint.texinfo: Likewise.
296 * ldlang.c: Likewise.
297 * ldmain.c: Likewise.
298 * ldwrite.c: Likewise.
299 * lexsup.c: Likewise.
300 * emultempl/aix.em: Likewise.
301 * emultempl/alphaelf.em: Likewise.
302 * emultempl/armcoff.em: Likewise.
303 * emultempl/armelf_oabi.em: Likewise.
304 * emultempl/beos.em: Likewise.
305 * emultempl/elf32.em: Likewise.
306 * emultempl/generic.em: Likewise.
307 * emultempl/gld960.em: Likewise.
308 * emultempl/gld960c.em: Likewise.
309 * emultempl/hppaelf.em: Likewise.
310 * emultempl/linux.em: Likewise.
311 * emultempl/lnk960.em: Likewise.
312 * emultempl/m68hc1xelf.em: Likewise.
313 * emultempl/m68kcoff.em: Likewise.
314 * emultempl/m68kelf.em: Likewise.
315 * emultempl/mipsecoff.em: Likewise.
316 * emultempl/mipself.em: Likewise.
317 * emultempl/mmix-elfnmmo.em: Likewise.
318 * emultempl/mmo.em: Likewise.
319 * emultempl/needrelax.em: Likewise.
320 * emultempl/pe.em: Likewise.
321 * emultempl/ppc64elf.em: Likewise.
322 * emultempl/sh64elf.em: Likewise.
323 * emultempl/sunos.em: Likewise.
324 * emultempl/ticoff.em: Likewise.
325 * emultempl/xtensaelf.em: Likewise.
327 2003-06-24 Alan Modra <amodra@bigpond.net.au>
329 * emultempl/ppc32elf.em: Convert to C90.
331 2003-06-20 Alan Modra <amodra@bigpond.net.au>
333 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
334 unnecessary prototypes and casts.
336 2003-06-19 Alan Modra <amodra@bigpond.net.au>
338 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
339 statistics from ppc64_elf_build_stubs.
341 2003-06-19 Alan Modra <amodra@bigpond.net.au>
343 * emultempl/ppc64elf.em (build_section_lists): Check return status
344 from ppc64_elf_next_input_section.
346 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
348 * ldlang.c (section_already_linked): Put back assignment of
351 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
353 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
356 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
358 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
359 if not produced by gcc.
361 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
363 * configure.tgt: Add specific case for cris-*-linux-gnu*
364 with crislinux emulation only.
366 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
368 * configure.tgt: Add i386-netbsd-gnu target.
370 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
372 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
373 to $targ_extra_libpath.
375 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
377 * po/Make-in (DESTDIR): New.
378 (install-data-yes): Support $(DESTDIR).
379 (uninstall): Likewise.
381 2003-06-10 Doug Evans <dje@sebabeach.org>
383 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
384 * Makefile.in: Regenerate.
386 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
388 * configure.tgt (h8300*): Add h8300sxn emulations.
389 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
390 (eh8300sxn.c, eh8300sxnelf.c): New rules.
391 * Makefile.in: Regenerate.
392 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
393 * scripttempl/h8300sxn.sc: New file.
395 2003-06-10 Alan Modra <amodra@bigpond.net.au>
397 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
398 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
400 2003-06-08 Alan Modra <amodra@bigpond.net.au>
402 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
403 (build_toc_list): New function.
404 (gld${EMULATION_NAME}_finish): Call build_toc_list and
405 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
406 (OPTION_STUBSYMS): Define.
407 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
408 (PARSE_AND_LIST_OPTIONS): Document.
409 (PARSE_AND_LIST_ARGS_CASES): Handle.
411 2003-06-05 Roland McGrath <roland@redhat.com>
413 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
414 extra \t in -z noexecstack line.
416 2003-05-23 Jakub Jelinek <jakub@redhat.com>
418 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
419 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
420 -z execstack and -z noexecstack.
421 (gld${EMULATION_NAME}_list_options): Likewise.
422 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
424 2003-06-03 Michael Snyder <msnyder@redhat.com>
425 and Bernd Schmidt <bernds@redhat.com>
426 and Alexandre Oliva <aoliva@redhat.com>
428 * Makefile.am: Add new emulations for h8300sx.
429 * Makefile.in: Regenerate.
430 * configure.tgt: Add new emulations.
431 * emulparams/h8300sx.sh: New emulation.
432 * emulparams/h8300sxelf.sh: Ditto.
433 * scripttempl/h8300sx.sc: Ditto.
435 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
437 * ldmisc.c: Include "bfdlink.h".
438 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
439 and -LD_DEFINITION_IN_DISCARDED_SECTION.
441 * Makefile.am: Rebuild dependency.
442 * Makefile.in: Regenerated.
444 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
446 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
447 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
449 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
451 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
452 sorted alphabetically, instead of exported_symbols, which is
455 2003-05-30 Ulrich Drepper <drepper@redhat.com>
456 Jakub Jelinek <jakub@redhat.com>
458 * lexsup.c (OPTION_PIE): Define.
459 (ld_options): Add -pie and --pic-executable options.
460 (parse_args): Handle OPTION_PIE.
461 * ldmain.c (main): Initialize link_info.pie and
462 link_info.executable.
463 * genscripts.sh: Generate PIE scripts.
464 * ld.texinfo: Document -pie and --pic-executable options.
465 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
466 (gld${EMULATION_NAME}_place_orphan): Likewise.
467 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
468 * scripttempl/elf.sc: In PIE scripts set . the same way as in
470 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
471 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
472 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
473 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
474 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
475 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
476 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
477 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
478 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
479 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
480 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
482 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
484 * genscripts.sh: Create tmpdir/libpath.exp.
486 2003-05-30 Nick Clifton <nickc@redhat.com>
488 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
489 with a test for a NULL bfd_for_interworking.
491 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
493 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
494 correctly for more recent versions of NetBSD.
495 (alpha*-*-netbsd*): Remove.
496 (i[3-7]86-*-netbsd*): Remove.
498 2003-05-29 Nick Clifton <nickc@redhat.com>
500 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
502 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
504 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
505 trap on pointer crops.
507 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
509 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
510 as well as shle-...-netbsdelf.
512 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
514 * configure.host: Accept i[3-7]86 variants.
515 * configure.tgt: Likewise.
517 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
519 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
521 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
523 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
524 (earmelfb.c, earmelfb_linux.c): New rules.
525 * Makefile.in: Regenerated.
526 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
527 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
529 2003-05-09 Nick Clifton <nickc@redhat.com>
531 * ldlang.c (lang_size_sections_1): Default to generating a
532 fatal error message if a loadable section is not allocated
533 to a memory region when regions are defined.
535 2003-05-09 Alan Modra <amodra@bigpond.net.au>
537 * Makefile.am (em68hc11elf.c): Correct dependencies.
538 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
539 * Makefile.in: Regenerate.
540 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
541 bfd_elf_record_link_assignment name.
543 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
545 * ldmain.h (overflow_cutoff_limit): Declare.
546 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
547 (reloc_overflow): Limit error messages based on it.
548 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
551 2003-05-05 Alan Modra <amodra@bigpond.net.au>
553 * ldlex.l: Accept C style comments in version scripts.
555 2003-04-28 H.J. Lu <hjl@gnu.org>
557 * ldlang.c (lang_process): Add the relax finalize pass.
559 * ldmain.c (main): Initialize link_info.relax_finalizing to
562 2003-04-24 Roland McGrath <roland@redhat.com>
564 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
565 If a name string is unknown, give an error rather than crashing later.
567 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
569 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
570 eh8300hnelf.o, eh8300snelf.o and respective rules.
571 * Makefile.in: Regenerate.
572 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
573 * emulparams/h8300hn.sh: New
574 * emulparams/h8300sn.sh: New
575 * emulparams/h8300hnelf.sh: New
576 * emulparams/h8300snelf.sh: New
577 * scripttempl/h8300hn.sc: new
578 * scripttempl/h8300sn.sc: new
580 2003-04-23 H.J. Lu <hjl@gnu.org>
582 * ldmain.c (link_callbacks): Initialize error_handler.
584 * ldmisc.c (error_handler): New function.
586 * ldmisc.h (error_handler): New prototype.
588 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
590 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
591 * emulparams/m68hc11elfb.sh: Likewise.
592 * emulparams/m68hc12elf.sh: Likewise.
593 * emulparams/m68hc12elfb.sh: Likewise.
595 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
597 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
599 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
601 (LDEMUL_FINISH): Override to generate the trampolines after gc and
603 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
604 stub file for trampolines.
605 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
606 --no-trampoline and --bank-window to control the memory bank window.
608 2003-04-18 H.J. Lu <hjl@gnu.org>
610 * ldfile.c (ldfile_add_library_path): Remove the unused
613 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
615 * scripttempl/xstormy16.sc (__data, __rdata): New.
617 2003-04-16 Nick Clifton <nickc@redhat.com>
619 * scripttempl/xstormy16.sc: Add .jcr section mapping.
621 2003-04-15 H.J. Lu <hjl@gnu.org>
623 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
625 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
627 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
629 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
630 * ld.texinfo: Likewise.
632 2003-04-14 Alan Modra <amodra@bigpond.net.au>
634 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
635 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
636 other variants of crtbegin.o, crtend.o.
638 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
639 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
640 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
641 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
642 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
643 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
644 * scripttempl/mmo.sc (ctors, dtors): Likewise.
645 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
647 2003-04-09 Dmitry Diky <diwil@mail.ru>
649 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
650 sections to respect C++ constructor/destructor. Add ctors/dtors
651 start/stop definitions.
652 * scripttempl/elf32msp430_3.sc: Likewise.
654 2003-04-06 Nick Clifton <nickc@redhat.com>
656 * ld.texinfo (Options): Add a reminder of the target specific
657 nature to the description of the i386 PE specific options, for
658 readers who have not read all the way through the manual.
660 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
662 * configure.tgt: Fixed bug in list of targ_extra_emuls.
663 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
664 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
665 * emulparams/tic3xcoff_onchip.sh: Ditto
666 * emulparams/tic4xcoff.sh: Ditto
667 * scripttempl/tic4xcoff.sc: Ditto
669 2003-04-03 Nick Clifton <nickc@redhat.com>
671 * NEWS: Mention support for Xtensa architecture.
673 2003-04-02 Nick Clifton <nickc@redhat.com>
675 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
677 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
679 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
680 Don't call pe_dll_build_section() if link_info.relocateable.
681 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
682 if link_info.relocateable.
684 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
686 * pe-dll.c (process_def_file): Don't create an export
687 section if there are no exports and we're building an exe
688 (pe_dll_build_sections): Ditto
689 (pe_dll_fill_sections): Conditionalize setting
690 abfd->dll true on info->shared
691 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
692 If i386pe or armpe, call pe_dll_build_section()
693 for both exe's and dll's, not just dll's.
694 (gld_${EMULATION_NAME}_finish): For all targets except
695 shpe and mipspe, call pe_dll_fill_sections() for both
696 exe's and dll's, not just dll's.
698 2003-04-02 Bob Wilson <bob.wilson@acm.org>
700 * emulparams/xtensa-config.sh: Remove comment indicating that this is
703 2003-04-01 Bob Wilson <bob.wilson@acm.org>
705 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
706 (eelf32xtensa.c): New target.
707 * Makefile.in: Regenerate.
708 * configure.tgt: Handle xtensa-*-*.
709 * gen-doc.texi: Set XTENSA variable.
710 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
711 * emulparams/elf32xtensa.sh: New file.
712 * emulparams/xtensa-config.sh: Likewise.
713 * emultempl/xtensaelf.em: Likewise.
714 * scripttempl/elfxtensa.sc: Likewise.
716 2003-04-01 Jakub Jelinek <jakub@redhat.com>
718 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
719 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
720 if --enable-64-bit-bfd.
722 2003-04-01 Nick Clifton <nickc@redhat.com>
724 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
726 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
727 name of note section.
729 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
731 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
734 2003-03-31 David Heine <dlheine@suif.stanford.edu>
736 * ldfile.c (ldfile_add_library_path): Always allocate space for
738 * ldlang.c (lang_register_vers_node): Free the node if it cannot
740 * ldmain.c (set_scripts_dir): Always free the constructed
742 (add_keepsyms_file): Fix memory leak.
743 * ldmisc.c (vfinfo): Likewise.
744 * lexsup.c (parse_args): Likewise.
746 2003-03-25 Stan Cox <scox@redhat.com>
747 Nick Clifton <nickc@redhat.com>
749 Contribute support for Intel's iWMMXt chip - an ARM variant:
751 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
752 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
753 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
756 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
758 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
759 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
760 (main): Initialize them.
761 * ldfile.c: Include pathnames.h.
762 (is_sysrooted_pathname): New.
763 (ldfile_add_library_path): Use it.
764 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
765 search_dirs if given an absolute pathname.
766 (ldfile_open_file): Issue error message for sysrooted
768 * Makefile.am: Updated dependencies.
769 * Makefile.in: Rebuild.
771 2003-03-24 Daniel Néri <dne@mayonnaise.net>
773 * ld.texinfo: Rename all occurances of C54X to TIC54X.
775 2003-03-19 Andreas Schwab <schwab@suse.de>
777 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
780 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
782 * deffilep.y (opt_base): If no number given, set to default
785 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
787 * deffilep.y (def_import): Use default extension of "dll"
788 if no extension provided in parsed IMPORT definition.
790 * deffilep.y (def_lex): Revert 2003-03-12 change.
791 (dot_name): New id type and rule.
792 (expline): Use instead of ID.
793 (opt_equal_name): Likewise.
795 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
797 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
799 2003-03-07 Christopher Faylor <cgf@redhat.com>
801 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
802 apparent accidental removal on 2003-01-06.
804 2003-03-04 Dmitry Diky <diwil@mail.ru>
806 * Makefile.am: Add new devices x1122 x1132 emulation
807 * configure.tgt: Likewise.
808 * Makefile.in: Regenerate.
809 * emulparams/msp430x1122.sh: New file.
810 * emulparams/msp430x1132.sh: New file.
812 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
814 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
817 * ldfile.h (struct search_dirs): Added sysrooted field.
818 * ldlang.h (struct lang_input_statement_struct): Likewise.
819 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
820 (ldfile_open_file_search): Look for sysrooted filename starting
821 with / in ld_sysroot instead of in the current directory. Clear
822 sysrooted flag if it's found in the current directory. Set it
823 from the search directory's sysrooted flag where it is found
825 * ldlang.c (ldlang_sysrooted_script): New static variable.
826 (new_afile): Mark search_file_enums as sysrooted if
827 ldlang_sysrooted_script.
828 (load_symbols): Set ldlang_sysrooted_script according to the
829 script's sysrooted field while processing it.
830 * ld.texinfo: Document INPUT behavior in sysroot.
832 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
834 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
836 2003-03-03 Alan Modra <amodra@bigpond.net.au>
838 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
839 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
840 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
841 PARSE_AND_LIST_EPILOGUE): Don't define.
842 * emultempl/alphaelf.em: New file.
844 2003-03-01 Alan Modra <amodra@bigpond.net.au>
846 * ldemul.c: Include getopt.h.
847 * emultempl/elf32.em: Include getopt.h earlier.
848 * emultempl/ticoff.em: Likewise.
850 2003-02-28 Alan Modra <amodra@bigpond.net.au>
852 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
853 support when scripts read from files.
855 2003-02-28 Alan Modra <amodra@bigpond.net.au>
857 * ldemul.c (ldemul_parse_args): Return FALSE by default.
858 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
861 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
862 (ldemul_parse_args): Return bfd_boolean. Formatting.
863 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
864 (ldemul_parse_args): Adjust.
865 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
866 Return bfd_boolean from parse_args.
867 * lexsup.c (parse_args): Malloc shortopts, longopts and
868 really_longopts. Call ldemul_add_options and ldemul_handle_option.
869 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
870 gld${EMULATION_NAME}_parse_args.
871 (gld${EMULATION_NAME}_handle_option): Likewise.
872 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
873 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
874 * emultempl/beos.em: Likewise.
875 * emultempl/pe.em: Likewise.
876 * emultempl/ticoff.em: Likewise.
877 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
878 (gld${EMULATION_NAME}_add_sysroot): Prototype.
879 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
881 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
882 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
883 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
884 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
886 * emultempl/generic.em: Likewise.
887 * emultempl/gld960.em: Likewise.
888 * emultempl/gld960c.em: Likewise.
889 * emultempl/linux.em: Likewise.
890 * emultempl/lnk960.em: Likewise.
891 * emultempl/m68kcoff.em: Likewise.
892 * emultempl/mipsecoff.em: Likewise.
893 * emultempl/sunos.em: Likewise.
894 * emultempl/vanilla.em: Likewise.
895 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
897 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
899 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
900 memory allocation error.
902 * Makefile.am (ldmain.o): Define TOOLBINDIR.
903 * Makefile.in: Rebuilt.
904 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
906 2003-02-21 Bob Wilson <bob.wilson@acm.org>
908 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
909 call os_region_check when it is set.
910 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
911 lang_size_sections_1.
912 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
913 only for the last call, not on every relaxation iteration.
914 * ldlang.h (lang_size_sections): Update prototype.
915 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
916 to lang_size_sections.
917 (pe_exe_fill_sections): Likewise.
918 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
919 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
920 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
921 (ppc_layout_sections_again): Likewise.
923 2003-02-21 Bob Wilson <bob.wilson@acm.org>
925 * gen-doc.texi: Set ARM and HPPA variables.
926 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
927 title capitalization more consistent. Add missing menu entries for
928 machine-specific sections and conditionalize them consistently.
929 Conditionalize text that is irrelevant when SingleFormat is set.
930 Add @group divisions to improve page breaks in long examples.
931 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
932 is correct. Remove "FIXME" comment about not using
933 @raisesections/@lowersections. Use @raisesections/@lowersections
934 consistently for machine-specific sections. Change to be more polite
935 about poor bug reports. Replace FDL appendix with include of fdl.texi.
936 Move WIN32 node to match its order in the menus.
937 * fdl.texi: New file.
939 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
941 * configure.in (TARGET_SYSTEM_ROOT): Set default to
942 ${exec_prefix}/${target_alias}/sys-root. Match explicit
943 '${exec_prefix}' (in addition to the expansion thereof) as
945 * configure: Rebuilt.
947 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
949 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
951 2003-02-20 Harri Porten <porten@kde.org>
953 * ldgram.y (vers_defns): Allow optional trailing semicolon in
956 2003-02-18 Alan Modra <amodra@bigpond.net.au>
958 * emultempl/ppc32elf.em: New file.
959 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
960 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
961 (eelf32lppcnto.c): Likewise.
962 (eelf32lppcsim.c): Likewise.
963 (eelf32ppcnto.c): Likewise.
964 (eelf32ppc.c): Likewise.
965 (eelf32ppc_fbsd.c): Likewise.
966 (eelf32ppcsim.c): Likewise.
967 (eelf32ppclinux.c): Likewise.
968 * Makefile.in: Regenerate.
970 2003-02-18 Alan Modra <amodra@bigpond.net.au>
972 * ld.texinfo: Remove spaces between @samp and opening brace.
974 2003-02-18 Alan Modra <amodra@bigpond.net.au>
976 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
978 (ppc_before_allocation): Don't do optimizations if wrong hash table.
979 (gld${EMULATION_NAME}_finish): Ditto.
981 2003-02-17 Nick Clifton <nickc@redhat.com>
983 * ldmain.c (main) Default allow_shlib_undefined to true.
984 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
985 (parse_args): Parse the new switch.
986 * ld.texinfo: Document new switch and default behaviour of
987 allowing undefined symbols in shared libraries.
989 2003-02-11 Dmitry Diky <diwil@mail.ru>
991 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
992 * scripttempl/elf32msp430_3.sc: Likewise.
994 2003-02-11 Uwe Stieber <uwe@wwws.de>
996 * configure.tgt: Add support for kaOS as cross build target
999 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1001 * hppaelf.em (group_size): Change default back to 1.
1003 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1005 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1007 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1009 * hppaelf.em (group_size): Change default to -1.
1011 2003-02-07 Nick Clifton <nickc@redhat.com>
1013 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1015 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1016 no-pipeline-knowledge. This will prevent the getopt package from
1017 thinking that there are any shorter abbreviations for
1018 --no-pipeline-knowledge.
1020 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1022 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1023 which already have it. Avoid duplicates.
1025 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1027 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1028 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1029 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1031 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1033 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1034 call ppc64_elf_tls_optimize.
1036 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1038 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1039 outside of GNU/Linux conditional.
1041 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1043 * deffilep.y (def_get_module): New function: locate an already
1045 * deffile.h (def_get_module): New prototype.
1046 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1047 a dll multiple times.
1049 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1051 * emultempl/sh64elf.em: Include elf32-sh64.h.
1052 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1053 sh64_elf_section_data.
1054 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1056 2003-01-23 Wu Yongwei <adah@netstd.com>
1058 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1059 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1060 cross-80th-column-margin "an" to the next line.
1062 2003-01-21 Nick Clifton <nickc@redhat.com>
1064 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1065 * emulparams/tic3xcoff_onchip.sh: ...this.
1066 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1067 * Makefile.in: Regenerate.
1069 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1071 * configure.tgt: Handle i[3456]86-*-aros*
1073 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1075 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1076 * Makefile.in: Regenerate
1077 * configure.tgt: Added extra target emulations
1078 * emulparams/tic3xcoff.sh: Remove old settings
1079 * emulparams/tic4xcoff.sh: Ditto
1080 * emulparams/tic3xcoff-onchip.sh: Added new
1081 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1082 * scripttempl/tic3xcoff.sc: Remove
1084 2003-01-17 Andreas Jaeger <aj@suse.de>
1086 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1089 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1091 * Makefile.in: Regenerate.
1093 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1095 * ld.texinfo (node WIN32): Some clarifications
1096 and formatting fixups.
1098 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1100 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1101 order, and handle (ignore) -mips32r2.
1103 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1105 * ldmain.c (main): Make sure ld_sysroot is initialized.
1107 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1109 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1111 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1112 (GENSCRIPTS): Add @use_sysroot@.
1113 * Makefile.in: Regenerated.
1114 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1115 * configure.tgt: ... here. Use ${target} instead of ${host}
1116 for NATIVE_LIB_DIRS.
1117 * configure.in: Add --with-sysroot.
1118 * configure: Regenerated.
1119 * genscripts.sh: Accept use_sysroot option. Set new variables
1120 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1121 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1122 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1123 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1124 (ld_sysroot): New variable.
1125 (main): Initialize ld_sysroot.
1126 * ldmain.h (ld_sysroot): New extern.
1127 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1128 searching $EMULATION_LIBPATH.
1129 (gld${EMULATION_NAME}_add_sysroot): New function.
1130 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1131 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1132 environment variables if $NATIVE.
1133 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1134 * NEWS: Mention --with-sysroot.
1136 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1137 instead of setting LIB_PATH.
1138 * emulparams/elf32ppc.sh: Likewise.
1139 * emulparams/elf64_s390.sh: Likewise.
1140 * emulparams/elf64_sparc.sh: Likewise.
1141 * emulparams/elf64ppc.sh: Likewise.
1142 * emulparams/elf_x86_64.sh: Likewise.
1144 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1145 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1147 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1149 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1151 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1153 * Makefile.am (ldmain.o): Pass BINDIR.
1154 * Makefile.in: Regenerated.
1155 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1158 2003-01-02 Ben Elliston <bje@redhat.com>
1160 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1161 (eelf32iq2000.c): New target.
1162 * Makefile.in: Regenerate.
1163 * configure.tgt: Handle iq2000-*-elf.
1164 * emulparams/elf32iq10.sh: New file.
1165 * emulparams/elf32iq2000.sh: New file.
1166 * scripttempl/iq2000.sc: New file.
1168 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1170 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1171 and _pei386_runtime_relocator to the exclude list.
1173 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1175 * ldfile.c: Fix comment typos.
1176 * ldlang.c: Likewise.
1178 * pe-dll.c: Likewise.
1180 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1182 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1183 * Makefile.am (ld.1): Depend on configdoc.texi
1185 * Makefile.in: Regenerated.
1187 2002-12-24 Dmitry Diky <diwil@mail.ru>
1189 * Makefile.am: Add msp430 target.
1190 * configure.tgt: Likewise.
1191 * Makefile.in: Regenerate.
1192 * emulparams/msp430x???.sh: New files. Linker script parameters
1193 for various msp430 configurations.
1194 * gen-doc.texi: Enable msp430 documenation.
1195 * ld.texinfo: Document msp430 sections.
1196 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1197 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1199 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1200 Charles Wilson <cwilson@ece.gatech.edu>
1202 * config.in (HAVE_REALPATH): New entry.
1203 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1205 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1207 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1210 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1212 * ldmain.c (main): Init "strip_discarded".
1213 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1214 (OPTION_NO_STRIP_DISCARDED): Define.
1215 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1216 (parse_args): Handle them.
1218 2002-12-23 Nick Clifton <nickc@redhat.com>
1220 * ld.h (struct args_type): Add new field
1221 'accept_unknown_input_architecture'.
1222 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1224 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1225 bfd_arch_get_compatible.
1226 * ldfile.c (ldfile_try_open_bfd): Likewise.
1227 * lexsup.c (ld_options): Add new command line switch
1228 --accept-unknown-input-architecture and its inverse.
1229 (parse_args): Handle --accept-unknown-input-architecture.
1230 * ld.texinfo: Document new linker option.
1231 * NEWS: Mention new linker option.
1233 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1235 * ldmain.c (main): Re-order link_info initialization. Init all
1238 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1240 * ld.texinfo: Clarify and extend the documentation
1241 in the Machine Dependent, WIN32 section.
1243 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1245 * ld.texinfo: Add win32 machine depending section.
1246 * gen-doc.texi: Enable win32 machine depending section.
1248 * configure.host: Add win32 library search path.
1250 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1252 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1253 import when auto-import is disabled.
1255 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1257 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1258 account for trailing '\0'.
1260 2002-12-17 Nick Clifton <nickc@redhat.com>
1262 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1263 so that it is not confused with -c.
1265 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1266 Charles Wilson <cwilson@ece.gatech.edu>
1268 * configure.in: Add check for realpath function.
1269 * configure: Regenerate.
1270 * config.in: Regenerate.
1271 * aclocal.m4: Regenerate.
1272 * deffile.h: Add .data field to def_file_import
1274 * pe-dll.c (pe_proces_import_defs): Use .data field of
1275 def_file_import structure to initialize flag_data field of
1276 def_file_export structure.
1277 (pe_implied_import_dll): New variables exp_funcbase and
1278 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1279 not filename (which may be a symlink). Scan the sections and
1280 initialize [data|bss]_[start|end]. When scanning the export
1281 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1282 that it is in the .bss or .data sections as data.
1283 * sysdep.h: Include limits.h and sys/param.h, and define
1284 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1285 exists, NULL otherwise.
1286 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1287 pe_process_import_defs before pe_find_data_imports, so that
1288 auto-import will check the virtual implib as well as "real"
1290 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1291 symlinks to their target; check that the target's extension is
1292 .dll before calling pe_implied_import_dll(), not the filename
1293 itself (which may be a symlink).
1295 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1297 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1298 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1301 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1303 * ldlang.h: Formatting.
1305 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1307 * ldlang.c (init_os): Ensure sections mentioned in load_base
1310 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1312 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1313 load_base for orphans that follow a section with load_base set.
1315 2002-12-01 H.J. Lu <hjl@gnu.org>
1317 * ld.texinfo: Remove the extra `;' in sample version script.
1319 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1321 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1323 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1324 * Makefile.in: Regenerate.
1326 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1327 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1328 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1329 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1330 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1331 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1332 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1333 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1334 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1335 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1336 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1337 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1338 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1340 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1342 * configure.host: Fix generic FreeBSD configuration entry.
1344 2002-11-27 H.J. Lu <hjl@gnu.org>
1346 * ld.texinfo: Add the missing `;' to sample version scripts.
1348 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1350 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1352 2002-11-14 Egor Duda <deo@logos-m.ru>
1354 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1355 assignment which has no effect.
1356 * pe-dll.h (pe_create_import_fixup): Change prototype.
1357 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1358 (pe_create_runtime_relocator_reference): Ditto.
1359 (pe_create_import_fixup): Handle relocations with non-zero addends.
1360 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1361 --disable-runtime-pseudo-reloc.
1362 (make_import_fixup): Handle relocations with non-zero addends. Create
1363 an external reference to _pei386_runtime_relocator symbol if at least
1364 one pseudo reloc was created.
1365 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1366 --disable-runtime-pseudo-reloc options.
1368 2002-11-12 Earl Chew <earl_chew@agilent.com>
1370 * ldlang.c (lang_add_section): Discard debugging sections that have
1371 been marked SEC_EXCLUDE.
1373 2002-11-12 Nick Clifton <nickc@redhat.com>
1375 * configure.in (ALL_LINGUAS): Add da.
1376 * configure: Regenerate.
1377 * po/da.po: New Danish translation.
1379 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1381 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1382 (LDEMUL_BEFORE_ALLOCATION): Define.
1383 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1385 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1387 2002-11-11 Christopher Faylor <cgf@redhat.com>
1389 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1392 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1394 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1395 of restricted auto-export libs.
1397 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1399 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1400 creative library naming instances like, e.g., libstdc++-2.a.
1402 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1404 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1405 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1407 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1409 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1410 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1411 (make_one): Don't prefix decorated fastcall symbols with '_'.
1412 (pe_process_import_defs): Likewise.
1413 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1414 symbols to cdecl names or vise-versa.
1416 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1418 * pe-dll.c (process_def_file): Handle fastcall symbols when
1419 generating undecorated aliases. Don't prefix decorated fastcall
1421 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1424 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1426 * emultempl/aix.em: Use include <> for generated headers.
1427 * emultempl/beos.em: Likewise.
1428 * emultempl/elf32.em: Likewise.
1429 * emultempl/pe.em: Likewise.
1430 * ldctor.c: Likewise.
1431 * ldexp.c: Likewise.
1432 * ldfile.c: Likewise.
1433 * ldlang.c: Likewise.
1434 * ldlex.c: Likewise.
1435 * ldlex.l: Likewise.
1436 * ldmain.c: Likewise.
1437 * ldmisc.c: Likewise.
1438 * ldwrite.c: Likewise.
1439 * lexsup.c: Likewise.
1441 * pe-dll.c: Likewise.
1443 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1445 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1446 sections into .rel{,a}.dyn.
1448 2002-10-23 Nick Clifton <nickc@redhat.com>
1450 * lexsup.c (OPTION_NO_OMAGIC): Define.
1451 (ld_options): Add "no-omagic" option.
1452 (parse_args): Parse --no-omagic.
1453 * ld.texinfo: Document --no-omagic.
1454 * NEWS: Mention new option.
1456 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1458 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1459 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1461 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1463 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1464 emulation name. Set LIB_PATH only for native tools, and
1465 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1466 .../lib variants, not instead of them. Mostly copied from...
1467 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1468 * emulparams/elf64bmip-defs.sh: Backed out.
1469 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1470 * emulparams/elf64btsmip.sh: Likewise.
1471 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1472 TEXT_DYNAMIC): Removed.
1474 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1476 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1477 (GENERATE_SHLIB_SCRIPT): Set to yes.
1478 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1479 * emulparams/elf32bmipn32.sh: here.
1480 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1481 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1482 * emulparams/elf64bmip-defs.sh: New file. Extend
1483 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1484 * emulparams/elf64bmip.sh: Bring in definitions from
1486 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1488 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1489 * emulparams/elf64btsmip.sh: Bring in definitions from
1491 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1492 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1494 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1496 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1497 (s390-*-linux*): Add elf64_s390 emulation if want64.
1498 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1499 genscript.sh changes.
1500 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1501 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1503 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1505 * ldlang.c (load_symbols): Revert last change.
1507 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1509 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1511 (lang_reasonable_defaults): Don't compare against false.
1512 (size_input_section): Likewise.
1513 (lang_size_sections_1): Likewise.
1514 (lang_do_assignments): Likewise.
1515 (lang_add_output): Likewise.
1517 * Makefile.am: Run "make dep-am".
1518 * Makefile.in: Regenerate.
1519 * ldver.c: #include "bfdver.h".
1521 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1523 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1525 * scripttempl/elfm68hc12.sc: Likewise.
1527 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1529 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1531 * ldgram.y (memory_spec): Provide empty action.
1532 (section <NAME>): Likewise.
1534 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1536 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1537 they have OUTPUT_FORMAT not matching actual output format.
1538 * ldlang.c (lang_get_output_target): New function.
1539 (open_output): Use it.
1540 * ldlang.h (lang_get_output_target): New prototype.
1542 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1544 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1545 when orphan is .rel, .rela when orphan is .rela.
1546 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1547 first. Remove outsecname var.
1549 2002-10-09 Richard Shann <richard.shann@superh.com>
1550 Stephen Clarke <stephen.clarke@superh.com>
1552 * Makefile.am: Add eshelf32_linux.o and
1553 eshlelf32_linux.o, new emulations for sh64 Linux.
1554 * Makefile.in: Regenerate.
1555 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1556 * emulparams/shelf32_linux.sh: New file.
1557 * emulparams/shlelf32_linux.sh: New file.
1559 2002-10-08 H.J. Lu <hjl@gnu.org>
1561 * ldlang.c (lang_file_exist): Removed.
1562 (new_afile): Revert the last change.
1563 * ldlang.h (lang_file_exist): Removed.
1564 * lexsup.c (parse_args): Revert the last change.
1566 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1568 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1569 auto-import symbols.
1570 (make_one): Create _nm_<symbol> for data only.
1572 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1574 * ldlang.c (lang_file_exist): New function.
1575 (new_afile): Abort if the filename to be added matches the linker
1577 * ldlang.h: Add prototype for lang_file_exist.
1578 * lexsup.c (parse_args): Abort if the output filename matches
1579 one of the input filenames.
1581 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1583 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1585 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1587 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1588 * scripttempl/elfm68hc11.sc: Likewise.
1589 * scripttempl/elfm68hc12.sc: Likewise.
1591 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1592 reloc sections just before .rel.plt/.rela.plt.
1593 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1594 Only put loadable reloc sections in hold_rel.
1596 2002-09-29 H.J. Lu <hjl@gnu.org>
1598 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1600 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1602 From "Anita Kulkarni" <AnitaK@kpit.com>
1603 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1606 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1608 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1610 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1611 SEGMENT_SIZE alignment.
1612 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1613 (SEGMENT_SIZE): Define.
1615 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1616 (fold_binary): Correct abs - non-abs case.
1617 (fold_trinary): New. Split out from exp_fold_tree.
1619 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1621 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1622 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1623 for start of .data, instead align up to 256M boundary.
1624 * scripttempl/aix.sc: Likewise.
1626 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1628 * scripttempl/i386go32.sc: Handle bss unique sections.
1630 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1632 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1634 2002-09-17 Stan Cox <scox@redhat.com>
1636 * emulparams/elf32bmipn32-defs.sh: New file.
1637 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1638 * emulparams/elf32btsmipn32.sh: Likewise.
1639 * emulparams/elf64bmip.sh: Likewise.
1640 * emulparams/elf64btsmip.sh: Likewise.
1642 2002-09-16 Bruno Haible <bruno@clisp.org>
1644 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1646 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1647 elf64-alpha-freebsd.
1649 2002-09-11 Nick Clifton <nickc@redhat.com>
1651 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1653 * po/tr.po: Updated Turkish translation.
1655 2002-09-06 Jeffrey A Law (law@redhat.com)
1657 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1659 2002-09-02 Nick Clifton <nickc@redhat.com>
1661 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1663 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1665 2002-08-30 Nick Clifton <nickc@redhat.com>
1667 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1668 used. Change INSN to start at 0x01000000 and extend for
1669 256K (ignoring holes). Start the STACK on a word aligned
1671 (.rodata): Start it at the READONLY_START_ADDR.
1673 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1675 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1677 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1679 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1680 added makefile targets for this file.
1681 * Makefile.in: Regenerate.
1682 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1683 * NEWS: Mention new port.
1685 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1687 * emulparams/tic3xcoff.sh: New file.
1688 * emulparams/tic4xcoff.sh: New file.
1689 * scripttempl/tic3xcoff.sc: New file.
1690 * scripttempl/tic4xcoff.sc: New file.
1692 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1694 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1695 strtoul and strtoull with bfd_scan_vma.
1696 (gld${EMULATION_NAME}_read_file): Likewise.
1698 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1700 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1702 2002-08-27 Egor Duda <deo@logos-m.ru>
1704 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1705 Add symbols for application to access them.
1707 2002-08-27 Nick Clifton <nickc@redhat.com>
1709 * emultempl/armelf.em: Revert this patch, it is not needed.
1711 2002-08-22 Adam Nemet <anemet@lnxw.com>
1713 2002-08-20 Dan Kegel <dank@kegel.com>
1715 * configure.in: added --with-lib-path argument to ld's configure
1717 * NEWS: Document new switch.
1718 * README: Mention new switch.
1719 * configure: Regenerate.
1720 * Makefile.in: Regenerate.
1722 Based on this patch:
1723 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1725 * Makefile.in (LIB_PATH): Make configurable.
1726 (GENSCRIPTS): Set LIB_PATH in environment.
1727 * configure.in: Substitute LIB_PATH.
1729 2002-08-22 Adam Nemet <anemet@lnxw.com>
1731 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1732 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1733 depending on the type of the function.
1734 (arm_elf_convert_thumb_symbol_to_address): New function.
1736 2002-08-22 Graeme Peterson <gp@qnx.com>
1738 * Makefile.am: Add esh{l}elf_nto.o files.
1739 * Makefile.in: Regenerate.
1740 * configure.tgt: Add support for sh-**-nto* targets.
1741 * emulparams/shelf_nto.sh: New file.
1742 * emulparams/shlelf_nto.sh: New file.
1744 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1746 * ldlang.c (offsetof): Define if not defined.
1748 2002-08-14 H.J. Lu <hjl@gnu.org>
1750 * configure.tgt: Always enable 64bit emulations for 32bit
1753 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1755 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1756 (MAXPAGESIZE): Set to 1.
1758 * ld.h (ALIGN_N): Delete.
1759 * ldexp.h (align_n): Declare.
1760 * ldexp.c (align_n): New function.
1761 (fold_binary): Use align_n instead of ALIGN_N.
1762 (exp_fold_tree): Likewise.
1763 * ldlang.c (lang_size_sections_1): Likewise.
1764 (lang_one_common): Likewise.
1765 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1767 2002-07-31 Graeme Peterson <gp@qnx.com>
1769 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1770 * Makefile.am: Add eelf32{l}ppcnto.o files.
1771 * Makefile.in: Regenerate.
1772 * emulparams/elf32lppcnto.sh: New file.
1773 * emulparams/elf32ppcnto.sh: New file.
1775 2002-08-07 H.J. Lu <hjl@gnu.org>
1777 * ld.texinfo: Document --no-undefined-version.
1779 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1780 `script.' fields to 0.
1782 * ldmain.c (main): Initialize the allow_undefined_version to
1785 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1786 (ld_options): Add --no-undefined-version.
1787 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1789 2002-08-07 Nick Clifton <nickc@redhat.com>
1791 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1792 an interworking bfd if there are input bfds. (107501)
1794 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1796 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1799 2002-08-01 Nick Clifton <nickc@redhat.com>
1801 * emulparams/armelf.sh: Revert previous delta.
1802 * scripttempl/elf.sc: Revert previous delta.
1804 2002-07-31 H.J. Lu <hjl@gnu.org>
1806 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1807 --enable-64-bit-bfd.
1809 2002-07-31 H.J. Lu <hjl@gnu.org>
1811 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1812 64bit BFD is selected.
1814 2002-07-31 H.J. Lu <hjl@gnu.org>
1816 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1817 if 64bit BFD is selected.
1819 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1821 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1822 link_info.common_skip_ar_aymbols.
1823 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1825 * ldmain.c (main): Initialize new field
1826 link_info.common_skip_ar_aymbols.
1828 2002-07-31 Adam Nemet <anemet@lnxw.com>
1830 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1832 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1835 2002-07-31 Nick Clifton <nickc@redhat.com>
1837 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1838 of the PDP-11 and 2.11BSD a.out support.
1840 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1842 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1843 for n32 ABI support.
1844 * Makefile.in: Regenerate.
1845 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1846 n32 ABI emulations for these 64 bit targets.
1847 * emulparams/elf32bmipn32.sh: Expand comment.
1848 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1850 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1852 2002-07-30 Graeme Peterson <gp@qnx.com>
1854 * configure.tgt: Add support for arm-*-nto target.
1855 * Makefile.am: Add earmnto.o file.
1856 * Makefile.in: Regenerate.
1857 * NEWS: Mention port of ARM support to QNX.
1858 * emulparams/armnto.sh: New file.
1860 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1862 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1863 for relocatable link.
1864 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1867 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1869 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1872 2002-07-25 Nick Clifton <nickc@redhat.com>
1874 * po/sv.po: Updated Swedish translation.
1875 * po/es.po: Updated Spanish translation.
1876 * po/fr.po: Updated French translation.
1878 2002-07-24 Nick Clifton <nickc@redhat.com>
1880 * po/sv.po: Updated Swedish translation.
1881 * po/es.po: Updated Spanish translation.
1883 2002-07-23 Nick Clifton <nickc@redhat.com>
1885 * po/fr.po: Updated French translation.
1887 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1889 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1890 bomb on /DISCARD/ input section.
1891 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1892 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1894 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1896 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1899 2002-07-16 Denis Chertykov <denisc@overta.ru>
1900 Nick Clifton <nickc@redhat.com>
1901 Frank Ch. Eigler <fche@redhat.com>
1902 John Healy <jhealy@redhat.com>
1904 * configure.tgt: Add support for ip2k-elf.
1905 * Makefile.am: Add support for ip2k-elf.
1906 * Makefile.in: Regenerate.
1907 * emulparams/elf32ip2k.sh: New file.
1908 * scripttempl/ip2k.sc: New file
1909 * NEWS: Mention support for new port.
1911 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1913 * NEWS: Add 'Changes in 2.13'.
1915 2002-07-14 H.J. Lu <hjl@gnu.org>
1917 * ld.texinfo: Document a .symver takes precedence over a
1920 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1922 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1923 (COMMONPAGESIZE): Define.
1925 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1927 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1929 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1931 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1932 powerpc-*-openbsd* and sparc64-*-openbsd*.
1933 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1934 * Makefile.in: Regenerate.
1935 * emulparams/hppaobsd.sh: New file.
1937 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1939 * ldlang.c (print_wild_statement): Fix output formatting.
1941 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1943 * ldlang.c: (strip_excluded_output_sections): New function.
1944 (lang_process): Call it.
1945 (lang_size_sections_1): Revert 2002-06-10 change.
1947 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1949 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1951 * Makefile.in: Regenerate.
1953 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1955 * ldfile.c (ldfile_try_open_bfd): Formatting.
1957 * ldmisc.c (demangle): Move so that it doesn't intrude between
1958 vfinfo comment and body. Add comment.
1960 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1962 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1964 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1966 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1967 * ldlang.c (entry_sym): Likewise.
1968 (ldlang_undef_chain_list_type): Likewise.
1969 (lang_finish): Adjust references to entry_symbol.
1970 (lang_add_entry): Likewise.
1971 (lang_gc_sections): Use link_info.gc_sym_list.
1972 (lang_process): Set link_info.gc_sym_list.
1973 * ldlex.l: Include bfdlink.h.
1974 * ldmain.c (main): Init link_info.gc_sym_list.
1975 * emultempl/aix.em: Adjust references to entry_symbol.
1976 * emultempl/armcoff.em: Likewise.
1977 * emultempl/armelf.em: Likewise.
1978 * emultempl/pe.em: Likewise.
1979 * emultempl/ppc64elf.em (ppc_after_open): New function.
1980 (LDEMUL_AFTER_OPEN): Define.
1981 * emulparams/elf64ppc.sh: KEEP .opd sections.
1983 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1985 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1986 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1987 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1988 (EEPROM_START_ADDR): Define.
1989 (EEPROM_MEMORY): Define.
1990 * emulparams/m68hc12elf.sh: Likewise.
1991 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1992 section to put soft registers in .page0.
1993 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1995 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1997 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1998 section. Add ${RELOCATING-0}.
2000 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2002 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2003 (OTHER_SECTIONS): Define.
2004 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2005 (OTHER_SECTIONS): Undef.
2007 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2009 * ldmisc.c (demangle): Restore dots stripped from sym name.
2011 2002-06-25 H.J. Lu <hjl@gnu.org>
2013 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2014 * Makefile.in: Regenerated.
2016 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2018 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2019 the size of attached object files, to allow make the object files
2020 available via FTP or HTTP and to mention that the mail will be
2021 sent to a mailing list.
2023 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2025 * configure.host (romp): Drop support.
2027 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2029 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2030 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2032 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2034 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2035 format specifier used to print BFD name.
2037 2002-06-18 Dave Brolley <brolley@redhat.com>
2039 From Catherine Moore, Michael Meissner, Jim Blandy:
2040 * emulparams/elf32frv.sh: New file.
2041 * configure.tgt: Support frv-*-*.
2042 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2043 (eelf32frv.c): New target.
2045 2002-06-17 Tom Rix <trix@redhat.com>
2047 * emultempl/elf32.em: gld*_get_script: Check for
2048 GENERATE_COMBRELOC_SCRIPT.
2049 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2050 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2052 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2054 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2056 2002-06-12 H.J. Lu <hjl@gnu.org>
2058 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2059 false if xvec doesn't match.
2061 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2063 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2065 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2067 * ldexp.c: Replace CONST with const.
2068 * ldfile.c: Likewise.
2069 * ldfile.h: Likewise.
2070 * ldlex.l: Likewise.
2072 * pe-dll.h: Likewise.
2074 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2076 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2078 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2080 * ldmain.c (main): initialize link_info.pei386_auto_import
2081 to -1 == implicit enable.
2082 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2083 initialize link_info.pei386_auto_import to -1 == implicit
2085 (gld_${EMULATION_NAME}_parse_args): When processing
2086 --enable-auto-import and --disable-auto-import options, use
2087 '1' and '0' instead of 'true' and 'false'.
2088 (pe_find_data_imports): Only issue message about auto-import
2089 when the feature is implicitly enabled. Downgrade message to
2090 informational instead of warning.
2092 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2094 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2096 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2098 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2099 HOSTING_CRT0 and HOSTING_LIBS.
2101 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2103 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2105 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2107 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2108 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2110 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2112 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2113 SEC_EXCLUDE sections when doing a relocatable link.
2115 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2117 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2118 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2119 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2120 (eshlelf64_nbsd.c): New rules.
2121 * Makefile.in: Regenerate.
2122 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2123 (sh64-*-netbsd*): New targets.
2124 * emulparams/shelf32_nbsd.sh: New file.
2125 * emulparams/shelf64_nbsd.sh: New file.
2126 * emulparams/shlelf32_nbsd.sh: New file.
2127 * emulparams/shlelf64_nbsd.sh: New file.
2129 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2131 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2133 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2135 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2136 C++ constructors/destructors, loosely based on the m68hc11 port.
2138 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2140 * Makefile.in: Regenerate.
2141 * aclocal.m4: Regenerate.
2142 * config.in: Regenerate.
2143 * configure: Regenerate.
2145 2002-05-31 Graeme Peterson <gp@qnx.com>
2147 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2148 (ei386nto.c): Add rule.
2149 * Makefile.in: Regenerate.
2150 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2151 * emulparams/i386nto.sh: New file.
2153 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2155 * NEWS: Add entry for VAX ELF support.
2157 2002-05-29 Matt Thomas <matt@3am-software.com>
2158 Jason Thorpe <thorpej@wasabisystems.com>
2160 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2162 (evaxnbsd.c): New rules.
2163 * Makefile.in: Regenerate.
2164 * configure.tgt (vax-*-netbsdelf*)
2166 (vax-*-netbsd*): New targets.
2167 * emulparams/elf32vax.sh: New file.
2168 * emulparams/vaxnbsd.sh: New file.
2170 2002-05-29 Adam Nemet <anemet@lnxw.com>
2172 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2173 bfd_for_interwork, instead add glue sections to each input bfd.
2174 (bfd_for_interwork): New global.
2175 (arm_elf_set_bfd_for_interworking): New function.
2176 (arm_elf_before_allocation): Use it.
2178 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2180 * Makefile.am: Add DLX make target.
2181 * configure.tgt: Add DLX configuration.
2182 * Makefile.in: Regenerate.
2183 * emulparams/elf32_dlx.sh: New file
2184 * scripttempl/dlx.sc: New file
2186 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2188 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2189 * Makefile.in: Regenerate.
2190 * emulparams/elf_chaos.sh: Use elf_chaos script.
2191 * scripttempl/elf_chaos.sc: New file.
2193 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2195 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2196 addresses and regions from here...
2197 (lang_get_regions): ...to this new function.
2198 (lang_leave_output_section_statement): Use lang_get_regions.
2199 (lang_leave_overlay): Likewise.
2200 * mri.c (mri_draw_tree): Pass null as last argument to
2201 lang_leave_output_section_statement.
2202 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2203 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2204 * emultempl/pe.em (gld*_place_orphan): Likewise.
2206 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2208 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2210 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2212 * ldemul.c: Fix formatting.
2213 * ldfile.c: Likewise.
2214 * pe-dll.c: Likewise.
2215 * pe-dll.h: Likewise.
2217 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2219 * ldlang.c (lang_process): Formatting, grammar.
2221 * ldlex.l: Use #include "" instead of <> for local header files.
2223 2002-05-24 TAMURA Kent <kent@netbsd.org>
2225 * configure.tgt: Add a target for i386-netbsdpe.
2227 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2229 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2230 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2231 output section if necessary. Handle .tbss.
2232 (lang_size_sections): Clear _raw_size for .tbss section
2233 (it allocates space in PT_TLS segment only).
2234 * ldwrite.c (build_link_order): Build link order for .tbss too.
2236 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2238 * configure.in: Correct spelling of AC_PREREQ.
2240 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2242 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2244 (autofilter_objlist): Add crtbegin.o, crtend.o.
2246 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2248 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2249 (longopts): Add new option --exclude-libs.
2250 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2251 (gld_${EMULATION_NAME}_parse_args): Use it.
2252 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2253 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2254 from whole archives.
2255 (pe_dll_add_excludes): Set excludes->type.
2256 (auto_export): Add new variable libname and set to archive basename if
2257 abfd. Use it when filtering default and user-specified libarary
2258 excludes. Let string "ALL" mean all libs when filtering user-specified
2260 * ld.texinfo: Document --exclude-libs.
2262 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2264 * ldemul.c (ldemul_new_vers_pattern): New function.
2265 * ldemul.h (ldemul_new_vers_pattern): Declare.
2266 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2267 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2268 * emultempl/ppc64elf.em (dotsyms): New static var.
2269 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2270 (LDEMUL_NEW_VERS_PATTERN): Define.
2271 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2272 (PARSE_AND_LIST_LONGOPTS): Likewise.
2273 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2274 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2276 * emultempl/armcoff.em: Likewise.
2277 * emultempl/armelf_oabi.em: Likewise.
2278 * emultempl/beos.em: Likewise.
2279 * emultempl/elf32.em: Likewise.
2280 * emultempl/generic.em: Likewise.
2281 * emultempl/gld960.em: Likewise.
2282 * emultempl/gld960c.em: Likewise.
2283 * emultempl/linux.em: Likewise.
2284 * emultempl/lnk960.em: Likewise.
2285 * emultempl/m68kcoff.em: Likewise.
2286 * emultempl/mipsecoff.em: Likewise.
2287 * emultempl/pe.em: Likewise.
2288 * emultempl/sunos.em: Likewise.
2289 * emultempl/ticoff.em: Likewise.
2290 * emultempl/vanilla.em: Likewise.
2292 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2294 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2295 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2296 (LIB_SEARCH_DIRS): No need to use "tr".
2297 (COMPILE_IN): Only set for native targets.
2298 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2299 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2300 * configure.tgt (powerpc*): Set tdir_*.
2301 (powerpcle*): Correct targ_extra_emuls.
2302 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2303 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2305 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2307 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2308 calling lang_add_entry.
2310 2002-05-21 H.J. Lu (hjl@gnu.org)
2312 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2314 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2316 * ld.texinfo: Updated for --allow-multiple-definition and
2319 * ldmain.c (main): Initialize the allow_multiple_definition
2322 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2323 (ld_options): Add --allow-multiple-definition.
2324 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2326 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2328 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2329 (earmelfb_nbsd.c): New rule.
2330 * Makefile.in: Regenerate.
2331 * configure.tgt (armeb-*-netbsdelf*): New target.
2332 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2333 (arm-*-netbsd*): Likewise.
2334 * emulparams/armelfb_nbsd.sh: New file.
2336 2002-05-18 Tom Rix <trix@redhat.com>
2338 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2341 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2343 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2344 * Makefile.in: Regenerate.
2345 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2347 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2349 * emulparams/avr1.sh: New file.
2350 * emulparams/avr2.sh: New file.
2351 * emulparams/avr3.sh: New file.
2352 * emulparams/avr4.sh: New file.
2353 * emulparams/avr5.sh: New file.
2354 * scripttempl/avr.sc: New file.
2356 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2358 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2359 (lang_place_orphans): Abort if just_syms_flag.
2361 2002-05-10 Tom Rix <trix@redhat.com>
2363 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2364 architecture and machine information in the output bfd.
2365 (gld*_before_parse): Remove old arch and machine code.
2366 (choose_target): Rename to gld*_choose_target.
2367 (rtld): Change type to int.
2368 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2369 objects in XCOFF archives.
2370 * ldfile.h: Update copyright date.
2372 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2374 * ldmain.c (main): Enable -z combreloc by default.
2376 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2378 * Makefile.am: Honour DESTDIR.
2379 * Makefile.in: Regenerate.
2381 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2383 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2384 (lang_enter_overlay): Remove the last two parameters.
2385 (lang_leave_overlay): Take them here instead.
2386 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2387 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2388 than lang_enter_overlay.
2389 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2390 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2391 (lang_size_sections_1): Evaluate it.
2392 (lang_leave_output_section_statement): Rework LMA lookup.
2393 (overlay_lma, overlay_nocrossrefs): Remove.
2394 (lang_enter_overlay): Remove LMA and crossref arguments.
2395 (lang_enter_overlay_section): Don't set the LMA here.
2396 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2397 assignment to the last section's update_dot_tree. Unconditionally
2398 use the load and run-time regions specified in the OVERLAY statement.
2399 Likewise the first section's LMA. Only set the other sections' LMAs
2400 when no load region is given.
2402 2002-05-06 Nick Clifton <nickc@redhat.com>
2404 * po/sv.po: New translation.
2406 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2408 * emultempl/hppaelf.em (build_section_lists): New function.
2409 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2410 and build_section_lists.
2412 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2414 * ld.h: Fix formatting.
2415 * ldexp.c: Likewise.
2416 * ldfile.c: Likewise.
2417 * ldlang.c: Likewise.
2418 * ldmain.c: Likewise.
2419 * lexsup.c: Likewise.
2420 * pe-dll.c: Likewise.
2422 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2424 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2425 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2426 (build_section_lists): Do output_section tests here.
2428 2002-04-30 Tom Rix <trix@redhat.com>
2430 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2432 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2434 Long branch stubs, multiple stub sections.
2435 * emultempl/ppc64elf.em: Include ldctor.h.
2436 (stub_file): New var.
2437 (group_size): New var.
2438 (ppc_create_output_section_statements): New function.
2439 (struct hook_stub_info): New.
2440 (hook_in_stub): New function.
2441 (ppc_add_stub_section): New function.
2442 (ppc_layout_sections_again): New function.
2443 (build_section_lists): New function.
2444 (gld${EMULATION_NAME}_finish): Rewrite.
2445 (real_func): New var.
2446 (ppc_for_each_input_file_wrapper): New function.
2447 (ppc_lang_for_each_input_file): New function.
2448 (lang_for_each_input_file): Define.
2449 (PARSE_AND_LIST_PROLOGUE): Define.
2450 (PARSE_AND_LIST_LONGOPTS): Define.
2451 (PARSE_AND_LIST_OPTIONS): Define.
2452 (PARSE_AND_LIST_ARGS_CASES): Define.
2453 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2455 2002-04-30 Tom Rix <trix@redhat.com>
2457 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2458 -blibpath, -bnolibpath support.
2460 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2462 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2463 (eelf32ppcwindiss.c): New target.
2464 * Makefile.in: Regenerated.
2465 * configure.tgt: Add support for powerpc-*-windiss.
2466 * emulparams/elf32ppcwindiss.sh: New file.
2468 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2470 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2471 * ldexp.c (exp_print_token): Add "infix_p" argument.
2472 (exp_print_tree): Update accordingly.
2474 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2476 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2477 * Makefile.in: Regenerate.
2478 * mpw-elfmips.c: Delete.
2479 * mpw-eppcmac.c: Delete.
2480 * mpw-esh.c: Delete.
2481 * mpw-idtmips.c: Delete.
2483 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2485 * emulparams/shelf32.sh (MACHINE): Now sh5.
2487 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2489 * ldgram.y: Fix syntax warning.
2491 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2493 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2494 to prevent "-n" from being taken as an abbreviation for
2495 "--no-pipeline-knowledge".
2497 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2499 * ldlang.c (lang_size_sections_1): Don't complain about
2500 SEC_NEVER_LOAD sections having no memory region specified.
2502 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2504 2002-04-07 matthew green <mrg@redhat.com>
2506 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2508 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2510 * dep-in.sed: Cope with absolute paths.
2511 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2513 * Makefile.in: Regenerate.
2515 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2517 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2519 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2521 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2522 is smaller than maximum, round dot up to common page boundary.
2524 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2526 * configure.host: Set up for generic hosts first, then tweak as
2527 necessary in more specific targets.
2528 (HOSTING_LIBS): Include libgcc_eh.a if found.
2530 2002-03-23 Andreas Jaeger <aj@suse.de>
2532 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2534 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2536 * Makefile.am: Run "make dep-am".
2537 * Makefile.in: Regenerate.
2539 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2541 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2543 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2545 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2546 add the symbol to the linker hash table immediately.
2547 (lang_place_undefineds): Split symbol creation out..
2548 (insert_undefined): ..to here.
2550 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2552 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2553 the contents of the buffer returned from basename function will are
2554 getting overwritten while still being used.
2556 2002-03-18 Jan Hubicka <jh@suse.cz>
2557 Andreas Jaeger <aj@suse.de>
2558 Andreas Schwab <schwab@suse.de>
2560 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2561 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2562 set libraries to default to lib64 paths.
2564 2002-03-18 Tom Rix <trix@redhat.com>
2566 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2567 * configure.tgt : Same.
2568 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2569 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2570 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2571 emulation parameters for better -b32, -b64 support.
2572 * emulparms/aixrs6.sh : Same.
2573 * emulparms/ppcmacos.sh : Same.
2574 * emultempl/aix.em (choose_target) : Use new emulation parameters
2575 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2576 * Makefile.in : Regenerate.
2578 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2580 * po/fr.po: Updated version.
2582 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2584 * ldmain.c (main): Move .text readonly flag fudges from here..
2585 * ldlang.c (lang_process): ..to here.
2587 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2589 * ldlang.c (lang_check): Remove the word size check added in last
2590 change. Treat emitrelocations case as for relocatable links.
2592 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2594 * po/fr.po: Updated version.
2596 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2598 * ldlang.c (lang_check): Do relocatable link checks first, so that
2599 warn_mismatch can't override. Check compatible and word size too.
2601 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2603 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2605 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2607 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2610 2002-03-04 H.J. Lu <hjl@gnu.org>
2612 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2613 .fini_array in the data segment.
2615 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2617 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2619 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2621 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2622 .init_array, and .fini_array.
2624 2002-02-20 Andreas Schwab <schwab@suse.de>
2626 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2627 .IA64_unwind* in a relocatable link.
2629 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2631 * NEWS: Mark 2.12 branch.
2633 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2635 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2636 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2638 2002-02-18 Tom Rix <trix@redhat.com>
2640 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2641 (gld*_before_allocation): Same.
2642 (gld*_create_output_section_statements): Generate
2643 __rtinit if run time linking. Add librtl.a to the link.
2644 (gld*_read_file): Clean.
2646 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2648 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2650 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2652 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2653 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2654 and eelf64alpha_fbsd.
2655 * Makefile.in: Regenerate.
2656 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2657 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2658 use a FreeBSD-specific emulation rather than the psABI one.
2659 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2660 for all FreeBSD ELF systems.
2661 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2663 * emulparams/elf32ppc_fbsd.sh: Likewise.
2664 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2665 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2666 * emulparams/elf64alpha_fbsd.sh: Likewise.
2667 * emulparams/elf_i386_fbsd.sh: Likewise.
2668 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2670 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2672 * po/tr.po: Updated version.
2674 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2676 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2679 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2681 * emultempl/mmo.em (mmo_after_open): Don't call
2682 _bfd_mmix_check_all_relocs when producing ELF output.
2684 2002-02-15 Richard Henderson <rth@redhat.com>
2686 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2687 definition. Emit a unop+nop pair.
2689 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2691 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2692 for presence of .MMIX.reg_contents.linker_allocated before early
2695 * NEWS: Mention support for MMIX.
2697 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2699 Support arbitrary length fill patterns.
2700 * ld.texinfo (Output Section Fill): Describe fill expressions.
2701 (FILL): Refer to the above.
2702 * ldexp.h (etree_value_type): Add "str" field.
2703 (union etree_union): Add "str" to "value" struct.
2704 (exp_bigintop): Declare.
2705 (exp_get_fill): Declare.
2706 * ldexp.c: Include "safe-ctype.h".
2707 (exp_intop): Set value.str to NULL.
2708 (exp_bigintop): New function.
2709 (new_rel): Pass in "str", and set new.str from it.
2710 (new_rel_from_section): Set new.str to NULL.
2711 (fold_name): Adjust calls to new_rel.
2712 (exp_fold_tree): Likewise.
2713 (exp_get_fill): New function.
2714 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2715 (INT): Returns a "bigint". Adjust all code handling INTs.
2716 (fill_opt): Returns a "fill".
2717 (fill_exp): Split out of fill_opt, use for FILL.
2718 * ldlang.h (struct _fill_type): New.
2719 (fill_type): Move typedef to ldexp.h.
2720 (lang_output_section_statement_type): "fill" is now a pointer.
2721 (lang_fill_statement_type): Likewise.
2722 (lang_padding_statement_type): Likewise.
2723 (lang_add_fill): Now takes a "fill_type *" param.
2724 (lang_leave_output_section_statement): Likewise.
2725 (lang_do_assignments): Likewise.
2726 (lang_size_sections): Likewise.
2727 (lang_leave_overlay_section): Likewise.
2728 (lang_leave_overlay): Likewise.
2729 * ldlang.c: Include ldgram.h after ldexp.h.
2730 (lang_output_section_statement_lookup): Adjust for fill_type change.
2731 (print_fill_statement): Likewise.
2732 (print_padding_statement): Likewise.
2733 (insert_pad): Now takes a "fill_type *" arg.
2734 (size_input_section): Likewise.
2735 (lang_size_sections_1): Likewise.
2736 (lang_size_sections): Likewise.
2737 (lang_do_assignments): Likewise.
2738 (lang_add_fill): Likewise.
2739 (lang_leave_output_section_statement): Likewise.
2740 (lang_leave_overlay_section): Likewise.
2741 (lang_leave_overlay): Likewise.
2742 Adjust all callers of the above function.
2743 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2744 starting with "0X" as well as "0x". Return bigint.str for hex
2745 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2746 Always use base 16 for numbers starting with "$".
2747 * ldmain.c: Include ldgram.h after ldexp.h.
2748 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2749 of bfd_fill_link_order.
2750 * pe-dll.c: Adjust lang_do_assignments calls.
2751 * emultempl/elf32.em: Likewise.
2752 * emultempl/hppaelf.em: Likewise.
2753 * emultempl/ppc64elf.em: Likewise.
2754 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2755 lang_add_assignment call.
2756 * emultempl/pe.em: Likewise.
2758 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2760 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2761 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2762 the pattern in question is not a regexp.
2763 * ldlang.c: Likewise.
2764 * ldlang.h: Likewise.
2765 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2767 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2769 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2770 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2771 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2772 * ldexp.c (exp_data_seg): New variable.
2773 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2774 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2775 (exp_fold_tree): Handle DATA_SEGMENT_END.
2776 Pass allocation_done when recursing instead of hardcoding
2777 lang_allocating_phase_enum.
2778 * ldexp.h (exp_data_seg): New.
2779 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2780 (lang_size_sections): New.
2781 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2782 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2783 if COMMONPAGESIZE is defined.
2784 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2785 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2786 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2787 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2788 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2791 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2793 * Makefile.in: Regenerate.
2795 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2797 * lexsup.c: Remove strtoul declaration.
2799 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2801 * ldmain.c: Add prototype for main ().
2802 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2803 * emultempl/lnk960.em (lnk960_choose_target): Function should
2806 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2808 * ldlang.c (entry_section): New initialised variable.
2809 (lang_finish): Use it.
2810 * ldlang.h (entry_section): Declare.
2811 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2812 entry_section to ".opd".
2814 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2816 * ld.texinfo (Options): Add back in -nostdlib documentation,
2817 which had been inadvertently removed.
2819 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2821 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2822 register section vma to a sane value after emitting error. Make
2823 fatal conditions cause program exit when emitting message.
2825 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2827 * configure.tgt: Add or32-*-rtems target.
2829 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2831 Contribute sh64-elf.
2832 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2833 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2834 in OTHER_RELOCATABLE_SECTIONS.
2835 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2836 * emulparams/shelf32.sh (STACK_ADDR): Define.
2837 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2838 (OTHER_SECTIONS): this. Removed stack settings.
2839 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2840 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2841 2001-03-12 DJ Delorie <dj@redhat.com>
2842 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2843 relaxing if any shmedia or mixed sections are found.
2844 2001-03-07 DJ Delorie <dj@redhat.com>
2845 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2846 einfo. Gracefully decline to output to non-elf formats.
2847 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2848 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2849 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2850 * emulparams/shelf32.sh: Ditto.
2851 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2852 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2854 2001-01-10 Ben Elliston <bje@redhat.com>
2855 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2856 non-portable shell constructs. From Hans-Peter Nilsson.
2857 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2858 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2859 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2860 dependencies to the shell script include chain.
2861 * Makefile.in: Regenerate.
2862 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2863 * emultempl/sh64elf.em: Update and tweak comments.
2864 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2865 make a .cranges section SEC_IN_MEMORY.
2866 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2867 * emultempl/sh64elf.em
2868 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2869 .cranges section found to be necessary; continue and set stored
2870 section contents flags for sections with non-mixed contents.
2871 Use a struct sh64_section_data container and sh64_elf_section_data
2872 to store contents-type flags.
2873 Remove unused update of "isec".
2874 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2875 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2876 access contents-type flags. Assert that the associated container
2877 is initialized. Use that container, not elf_gp_size, to hold size
2878 of linker-generated cranges contents.
2879 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2880 * emultempl/sh64elf.em
2881 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2882 there's already a .cranges section. When section flag difference
2883 is found, don't NULL-check cranges a second time. Tweak comments.
2884 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2885 merging, not max size, as size of ld-generated .cranges contents.
2886 Don't set ELF section flags in output section. When checking for
2887 needed .cranges descriptors, don't use a variable; compare
2888 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2890 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2891 * emultempl/sh64elf.em: New file.
2892 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2893 * Makefile.in: Regenerate.
2894 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2895 (OTHER_RELOCATING_SECTIONS): Ditto.
2896 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2897 * emulparams/shlelf32.sh: Stub out all settings except
2898 OUTPUT_FORMAT. Source shelf32.sh.
2899 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2900 OTHER_RELOCATING_SECTIONS.
2901 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2902 * emulparams/shlelf64.sh: Stub out all settings except
2903 OUTPUT_FORMAT. Source shelf64.sh.
2904 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2905 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2907 (DATA_START_SYMBOLS): Define, provide ___data.
2908 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2909 for consecutive .data section.
2910 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2911 section after .data section.
2912 * emulparams/shlelf64.sh: Ditto.
2913 * emulparams/shelf32.sh: Ditto.
2914 (ALIGNMENT): Define to 8.
2915 * emulparams/shelf32.sh: Ditto.
2916 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2917 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2918 built-in linker scripts.
2919 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2920 * emulparams/shlelf64.sh: New.
2921 * emulparams/shelf64.sh: New.
2922 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2924 * Makefile.am: Add support for shlelf64 and shelf64.
2925 * Makefile.in: Regenerate.
2926 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2927 * configure.tgt (sh64-*-elf*): Add shelf as default.
2928 Add shlelf to targ_extra_emuls.
2929 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2930 * emulparams/shelf32.sh: New file.
2931 * emulparams/shlelf32.sh: New file.
2932 * Makefile.am: Add support for shlelf32 and shelf32.
2933 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2934 * Makefile.in: Regenerate.
2936 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2938 * ldlang.c (lang_reset_memory_regions): Rename from
2939 reset_memory_regions. Change all callers. Make public.
2940 * ldlang.h (lang_reset_memory_regions): Prototype.
2941 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2942 lang_reset_memory_regions before lang_size_sections.
2943 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2944 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2946 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2948 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2949 arithmetic when checking for too many global registers.
2951 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2953 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2954 (ehppanbsd.c): New rule.
2955 * Makefile.in: Regenerate.
2956 * configure.tgt (hppa*-*-netbsd*): New target.
2957 * emulparams/hppalinux.sh: Add comment to check other files
2958 that source this file it is modified, and list which
2960 * emulparams/hppanbsd.sh: New file.
2962 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2964 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2967 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2969 Support on-demand global register allocation from
2970 R_MMIX_BASE_PLUS_OFFSET relocs.
2971 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2972 mmix_set_reg_section_vma. Call
2973 _bfd_mmix_finalize_linker_allocated_gregs.
2974 (mmix_before_allocation): New function.
2975 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2976 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2977 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2978 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2979 before .MMIX.reg_contents.
2980 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2981 (mmo_after_open): New function.
2982 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2983 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2984 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2986 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2988 * emulparams/or32.sh: New file.
2989 * emulparams/or32elf.sh: New file.
2990 * scripttempl/or32.sc: New file.
2991 * configure.tgt : Add support for or32.
2992 * configure: Regenerate
2993 * Makefile.am: Add support for or32.
2994 * Makefile.in: Regenerate.
2995 * NEWS: Mention support for or32.
2996 * po/ld.pot: Regenerate.
2998 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2999 Mitch Lichtenberg <mpl@broadcom.com>
3001 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3002 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3003 reloc creation (ld --embedded-relocs).
3005 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3007 * configure: Regenerated.
3009 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3011 * Makefile.am (install): Depend on install-info.
3012 * Makefile.in: Regenerate.
3014 2002-01-26 Christian Rose <menthos@menthos.com>
3016 * ldmain.c (main): Use full sentences to ease translation.
3018 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3020 * po/fr.po: Updated version.
3022 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3024 * po/es.po: Updated version.
3026 2002-01-25 Andreas Jaeger <aj@suse.de>
3028 * ldlex.l (yy_input): Correct error check.
3030 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3032 * ldmisc.c (demangle): Put back dots when string not demangled.
3034 2002-01-22 Richard Henderson <rth@redhat.com>
3036 * emulparams/elf64alpha.sh (NOP): Use unop.
3038 2002-01-21 Andreas Jaeger <aj@suse.de>
3040 * ldlex.l: Use fread instead of read.
3042 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3044 * configure.tgt (ia64-*-netbsd*): New target.
3046 2002-01-21 H.J. Lu <hjl@gnu.org>
3048 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3050 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3052 2002-01-18 Andreas Jaeger <aj@suse.de>
3054 * ldver.c (ldversion): Update year.
3056 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3058 * po/ld.pot: Regenerate.
3060 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3062 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3063 * Makefile.in: Regenerate.
3064 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3065 * emultempl/ppc64elf.em: New file.
3067 2002-01-15 DJ Delorie <dj@redhat.com>
3069 * scripttempl/pe.sc: Add support for constructor priorities.
3071 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3073 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3074 * emulparams/avr23xx.sh: Likewise.
3075 * emulparams/avr4433.sh: Likewise.
3076 * emulparams/avr44x4.sh: Likewise.
3077 * emulparams/avr85xx.sh: Likewise.
3078 * emulparams/avrmega103.sh: Likewise.
3079 * emulparams/avrmega161.sh: Likewise.
3080 * emulparams/avrmega603.sh: Likewise.
3081 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3083 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3085 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3086 archive is excluded.
3088 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3090 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3091 (eshelf_nbsd.c): New rule.
3092 (eshlelf_nbsd.c): New rule.
3093 * Makefile.in: Regenerate.
3094 * configure.tgt (sh*le-*-netbsdelf*): New target.
3095 (sh*-*-netbsdelf*): New target.
3096 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3097 * emulparams/shelf_nbsd.sh: New emulation.
3098 * emulparams/shlelf_nbsd.sh: New emulation.
3100 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3102 * po/es.po: New file: Spanish translation.
3103 * configure.in (ALL_LINGUAS): Add es.
3104 * configure: Regenerate.
3106 2002-01-06 John Marshall <jmarshall@acm.org>
3108 * ld.texinfo: Note that --emit-relocs is currently only
3109 implemented for ELF.
3111 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3113 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3114 of bfd_section_list_remove and bfd_section_list_insert macros.
3115 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3116 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3118 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3120 * configure.tgt (x86_64-*-netbsd*): New target.
3122 2001-12-21 Tom Rix <trix@redhat.com>
3124 (gld*_create_output_section_statements): New function.
3125 For -binitfini support.
3126 * emultempl/aix.em (gld*_before_parse): Fix comment.
3127 * emultempl/aix.em (gld*_parse_args): Fix comment.
3129 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3131 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3133 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3135 * configure.tgt (arm-*-netbsdelf*): Add target.
3136 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3137 * emulparams/armelf_nbsd.sh: Added.
3138 * Makefile.am: Add rules for earmelf_nbsd.
3139 * Makefile.in: Regenerate.
3141 2001-12-19 Andreas Jaeger <aj@suse.de>,
3142 Susanne Oberhauser <froh@suse.de>
3144 * configure.host: Add rules for x86_64-*linux-gnu. Change
3145 s390x-linux entry to use gcc to report configuration, replace gcc
3146 with $CC in s390-linux
3148 2001-12-19 Andreas Jaeger <aj@suse.de>
3150 * ld.texinfo (VERSION): Fix markup.
3152 2001-12-18 matthew green <mrg@eterna.com.au>
3154 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3155 (m68kelfnbsd.c): New rule.
3156 * Makefile.in: Regenerate.
3157 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3158 (m68*-*-netbsd*4k*): .. this.
3159 (m68*-*-netbsdelf*): New target.
3160 (m68*-*-netbsd*): Also include ELF support.
3161 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3162 * emulparams/m68kelfnbsd.sh: New emulation.
3164 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3166 * ldgram.y (vers_node): Support anonymous version tags.
3167 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3168 tag is not defined together with non-anonymous versions.
3169 * ld.texinfo: Document it.
3171 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3173 * po/tr.po: New file: Turkish translation.
3174 * configure.in (ALL_LINGUAS): Add tr.
3175 * configure: Regenerate.
3177 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3179 * Makefile.am: Add rules for eelf64alpha_nbsd.
3180 * Makefile.in: Regenerate.
3181 * configure.tgt (alpha*-*-netbsd*): Set
3182 targ_emul to elf64alpha_nbsd.
3183 * emulparams/elf64alpha_nbsd.sh: Added.
3185 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3187 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3188 section_tail when fiddling with section list.
3189 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3190 broken into separate strings to make translation easier.
3191 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3192 fiddling with section list.
3193 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3195 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3197 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3199 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3201 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3203 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3205 * emultempl/elf32.em (finish): Supply output_bfd
3206 to bfd_elf*_discard_info.
3207 (OPTION_EH_FRAME_HDR): Define.
3208 (longopts): Add --eh-frame-hdr.
3209 (parse_args): Handle it.
3210 (list_options): Add --eh-frame-hdr to help.
3211 * emultempl/hppaelf.em (finish): Supply output_bfd
3212 to bfd_elf*_discard_info.
3213 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3215 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3217 * lexsup.c (parse_args): Don't pass shortopts to second call to
3218 getopt functions. Restore optind rather than decrementing before
3219 second call. Remove errind as it now duplicates last_optind.
3221 2001-12-11 Christopher Faylor <cgf@redhat.com>
3223 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3225 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3226 Richard Henderson <rth@redhat.com>
3228 * Makefile.am: Add support for xstormy16.
3229 * configure.tgt: Add support for xstormy16.
3230 * Makefile.in: Regenerate.
3231 * emulparams/elf32xstormy16.sh: New file.
3232 * scripttempl/xstormy16.sc: New file.
3234 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3236 * Makefile.in (LIB_PATH): Make configurable.
3237 (GENSCRIPTS): Set LIB_PATH in environment.
3238 * configure.in: Substitute LIB_PATH.
3239 * configure: Regenerate.
3240 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3241 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3243 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3245 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3246 describing the -N option so that it is easier to translate into
3249 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3251 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3252 statements describing a single option with a single, newline
3253 escaped fprintf. This allows better translation into other
3256 * ldmain.c (add_archive_element): Combine multiple strings
3257 into a single string to permit better translation into other
3260 2001-12-05 Tom Rix <trix@redhat.com>
3262 * Makefile.am: Remove eaixppc64.
3263 * Makefile.in: Regenerate.
3265 2001-12-04 Tom Rix <trix@redhat.com>
3267 * emultempl/aix.em (choose_target): Change default target to
3268 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3270 (gld*_read_file): Fix typo.
3271 (change_symbol_mode): Add prototype.
3274 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3275 * emulparams/aixrs6.sh : Same.
3276 * emulparams/ppcmacos.sh : Same.
3277 * emulparams/aixppc64.sh : Delete file.
3278 * emultempl/aix.em : Formatting changes.
3280 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3282 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3283 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3285 (OTHER_END_SYMBOLS): Fix formatting.
3286 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3287 (OTHER_END_SYMBOLS): Fix formatting.
3289 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3291 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3293 2001-12-02 Tom Rix <trix@redhat.com>
3295 * configure.tgt : Remove eaixppc64 emulations.
3296 * Makefile.in : Remove eaixppc64.c
3297 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3298 (ldemul_default_target): Same.
3299 * emultempl/gld960.em (gld960_choose_target): Same.
3300 * emultempl/gld960c.em (gld960_choose_target): Same.
3301 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3302 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3303 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3304 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3305 * emultempl/aix.em (choose_target): New function. Handle emulation of
3308 2001-11-27 H.J. Lu <hjl@gnu.org>
3310 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3311 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3312 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3313 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3314 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3315 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3316 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3317 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3319 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3322 (REL_SDATA): Likewise.
3323 (REL_SBSS): Likewise.
3324 (REL_SDATA2): Likewise.
3325 (REL_SBSS2): Likewise.
3326 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3329 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3331 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3333 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3335 2001-11-22 H.J. Lu <hjl@gnu.org>
3337 * Makefile.in: Regenerated with automake based on automake
3338 1.4-8 in RedHat 7.1.
3340 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3342 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3343 (config.status): Delete rule.
3344 Add extra dependencies to cover sourced emulparams files.
3345 * Makefile.in: Regenerate.
3347 * scripttempl/elf.sc: Order <section>, <section>.* and
3348 corresponding linkonce sections as seen in input files.
3349 Formatting fixes. Zero vma of all sections if not relocating.
3350 (STACK): Define and insert if STACK_ADDR defined.
3351 (OTHER_RELOCATING_SECTIONS): Delete.
3352 (OTHER_END_SYMBOLS): Define.
3353 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3354 (OTHER_READWRITE_SECTIONS): Likewise.
3355 (OTHER_GOT_SECTIONS): Likewise.
3356 (OTHER_SDATA_SECTIONS): Likewise.
3357 (OTHER_BSS_SECTIONS): Likewise.
3358 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3359 (OTHER_READWRITE_SECTIONS): Likewise.
3360 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3361 (OTHER_READWRITE_SECTIONS): Likewise.
3363 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3364 (STACK_ADDR): Define.
3365 * emulparams/armelf_oabi.sh: As for armelf.sh.
3366 * emulparams/elf32mcore.sh: As for armelf.sh.
3367 * emulparams/h8300elf.sh: As for armelf.sh.
3368 * emulparams/mn10200.sh: As for armelf.sh.
3369 * emulparams/shelf.sh: As for armelf.sh.
3371 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3372 (OTHER_END_SYMBOLS): Define.
3373 * emulparams/m32relf.sh: As for elf32fr30.sh.
3374 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3375 * emulparams/h8300self.sh: As for elf32fr30.sh.
3377 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3378 defines with RELOCATING test.
3379 (OTHER_SDATA_SECTIONS): Likewise.
3380 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3381 (OTHER_END_SYMBOLS): ..this.
3382 * emulparams/crislinux.sh: As for criself.sh.
3384 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3386 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3387 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3388 normal and linkonce sections as seen in input files.
3389 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3390 (TEXT_DYNAMIC): Likewise.
3391 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3392 (OTHER_SDATA_SECTIONS): Likewise.
3393 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3394 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3395 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3396 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3397 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3398 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3399 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3400 sections as seen in input files.
3401 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3402 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3404 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3405 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3406 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3407 (OTHER_SECTIONS): Instead, use this..
3408 (OTHER_END_SYMBOLS): ..and this.
3410 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3411 * emulparams/elf32bsmip.sh: Likewise.
3412 * emulparams/elf32btsmip.sh: Likewise.
3413 * emulparams/elf32ebmip.sh: Likewise.
3414 * emulparams/elf32lmip.sh: Likewise.
3415 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3416 * emulparams/elf32lsmip.sh: Likewise.
3417 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3418 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3419 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3420 * emulparams/elf64btsmip.sh: Likewise.
3421 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3422 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3423 * emulparams/elf32ppclinux.sh: Likewise.
3424 * emulparams/elf32ppcsim.sh: Likewise.
3425 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3426 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3427 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3428 * emulparams/h8300self.sh: Likewise.
3429 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3430 * emulparams/sh.sh: Comment.
3431 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3432 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3433 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3435 2001-11-21 David Heine <dlheine@tensilica.com>
3436 Alan Modra <amodra@bigpond.net.au>
3438 * ldlang.c (map_input_to_output_sections): Replace "break"
3439 accidentally removed with 2001-08-03 change.
3440 (lang_gc_sections_1): Likewise.
3442 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3444 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3446 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3448 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3449 of false when calling lang_size_sections.
3450 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3452 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3454 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3455 function when LDEMUL_FINISH isn't set to the same name. Don't
3456 call ${LDEMUL_FINISH}.
3457 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3458 * emultempl/armelf.em (arm_elf_finish): Call
3459 gld${EMULATION_NAME}_finish.
3460 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3461 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3462 hppaelf_layout_sections_again if necessary.
3463 (need_laying_out): New var.
3464 (hppaelf_layaout_sections_again): Rename to
3465 hppaelf_layout_sections_again. Clear need_laying_out.
3466 (PARSE_AND_LIST_OPTIONS): Format text.
3468 2001-11-14 H.J. Lu <hjl@gnu.org>
3470 * emultempl/armelf.em (arm_elf_finish): Renamed from
3471 gld${EMULATION_NAME}_finish.
3472 (LDEMUL_FINISH): Set to arm_elf_finish.
3474 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3476 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3477 (struct ld_emulation_xfer_struct): Use it.
3479 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3481 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3482 additional symbols referenced by newer crt0.o files from HP.
3484 2001-11-12 Anthony Green <green@redhat.com>
3486 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3488 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3490 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3491 * Makefile.in: Regenerate.
3493 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3495 * ld.texinfo: Use @command for commands, @option for options.
3496 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3498 * Makefile.in: Rebuild.
3500 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3502 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3503 Add support for targets.
3505 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3507 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3508 * configure: Regernate.
3509 * po/fr.po: New file.
3510 * po/sv.po: New file.
3512 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3514 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3515 as little endian default and to support big endian.
3517 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3519 * ld.texinfo (Options): Document new option, -nostdlib.
3520 * lexsup.c (OPTION_NOSTDLIB): New definition.
3521 (ld_options): Add entry for "nostdlib".
3522 (parse_args): Handle OPTIONS_NOSTDLIB.
3523 * ldfile.c (ldfile_add_library_path): Don't add directories
3524 to the search path if they weren't specified on the command line
3525 and -nostdlib was specified.
3526 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3528 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3530 * lexsup.c (parse_args): Prevent infinite parsing loop when
3531 "-rpath.a" is specified on the command line.
3532 Replace calls to fprintf with calls to einfo.
3534 2001-10-31 John Marshall <jmarshall@acm.org>
3536 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3537 appear only once across all the linker scripts involved in a link
3538 invocation no longer applies. Make the documentation reflect
3541 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3543 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3545 (sh-*-linux*): Added targ_extra_libpath.
3547 2001-10-31 David Heine <dlheine@tensilica.com>
3549 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3550 for padding statements.
3552 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3554 * configure.tgt (mmix-*-*): New target.
3555 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3556 Add dependencies to match.
3557 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3558 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3559 scripttempl/mmo.sc: New files.
3560 * gen-doc.texi: @set MMIX.
3561 * ld.texinfo: Ditto.
3562 [MMIX] Add MMIX node.
3563 * Makefile.in: Regenerate.
3565 2001-10-29 Kazu Hirata <kazu@hxi.com>
3567 * ldlang.c: Fix a comment typo.
3569 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3571 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3572 entries, and match *-*-linux*.
3574 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3576 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3577 with ldlex_script, ldlex_popstate.
3578 (ifile_p1): Likewise.
3579 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3581 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3582 to 1. Don't BEGIN(SCRIPT).
3583 (lex_redirect): Similarly.
3584 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3586 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3588 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3589 __EH_FRAME_END__ and accept eh frames into data section.
3590 Add ctor and dtor sections.
3592 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3594 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3595 (auto-export): Fix indentation.
3597 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3599 * pe-dll.c (autofilter_objectlist): Add startup objects
3601 (auto-export): Constify char * p.
3602 Extract file basename and use strcmp rather than ststr
3605 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3607 * ldmain.c (get_emulation): Improve comment about the handling
3610 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3612 * po/POTFILES.in: Regenerate.
3614 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3616 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3617 -z nocopyreloc and -z nocombreloc usage strings.
3619 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3621 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3624 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3626 * scripttempl/armaout.sc: Place .bss section after end of aligned
3627 data section to match behaviour of aout code in constructrion of
3630 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3632 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3633 startup files for mingw32 dlls to list.
3635 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3637 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3639 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3641 * configure.tgt (targ): Add arm9e-*-elf.
3643 2001-10-05 H.J. Lu <hjl@gnu.org>
3645 * genscripts.sh: Fix a typo in the last change.
3647 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3649 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3650 -z nocombreloc in usage.
3652 2001-10-03 Jim Blandy <jimb@redhat.com>
3654 * genscripts.sh: Include a comment at the top of each generated
3655 script, explaining its purpose.
3657 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3659 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3660 * NEWS: Mention -z nocopyreloc.
3661 * ld.texinfo (Options): Describe nocopyreloc.
3663 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3665 * configure: Regenerate.
3667 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3669 * ldver.h (ld_program_version): Remove declaration.
3670 * lexsup.c (parse_args): Move printing of copyright message..
3671 * ldver.c (ldversion): .. to here.
3672 Use BFD_VERSION_STRING in place of BFD_VERSION.
3673 (ld_program_version): Remove.
3674 * Makefile.am (Makefile): Depend on bfd/configure.in.
3676 * Makefile.in: Regenerate.
3678 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3680 * Makefile.am: Update dependencies with "make dep-am".
3681 * Makefile.in: Regenerate.
3683 2001-09-29 John Reiser <jreiser@BitWagon.com>
3685 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3686 * lexsup.c: Add --no-define-common commandline option.
3687 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3688 * ldlex.l: Likewise.
3689 * ld.h: Add command_line.inhibit_common_definition.
3690 * ldmain.c (main): Initialize.
3691 * ld.texinfo: Document.
3693 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3695 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3697 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3699 * ldmisc.c (USE_STDARG): Remove.
3700 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3705 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3706 declarations. Update copyright.
3708 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3710 * pe-dll.c: Remove obsoleted declaration of
3711 pe_get_data_import_dll_name.
3712 (pe_create_import_fixup): Fix thinko.
3714 * ld.texinfo(enable-auto-import): Clarify the explanation.
3716 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3718 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3719 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3720 DLL_SUPPORT controlled code.
3722 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3724 * emultempl/pe.em(pe_data_import_dll): Make static.
3725 (pe_get_data_import_dll_name): New accessor function.
3726 * pe-dll.c(pe_create_import_fixup): call
3727 pe_get_data_import_dll_name() from pe.em, instead of
3728 directly accessing pe_data_import_dll variable from pe.em.
3730 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3732 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3733 (def_file_add_directive): Use ISSPACE instead of isspace.
3734 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3735 isdigit/isxdigit/isalpha/isalnum.
3736 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3737 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3738 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3739 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3741 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3742 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3744 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3745 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3746 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3747 (ctor_prio): Use ISDIGIT instead of isdigit.
3748 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3749 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3750 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3752 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3753 (stricpy): Use TOLOWER instead of isupper/tolower.
3754 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3755 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3756 (lex_warn_invalid): Use ISPRINT instead of isprint.
3757 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3758 (main): For gettext, also set the LC_CTYPE locate facet.
3759 (add_keepsyms_file): Use ISSPACE instead of isspace.
3760 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3761 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3762 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3763 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3764 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3765 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3766 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3767 (quoteput): Use ISSPACE instead of isspace.
3768 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3771 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3773 * deffilep.y (def_stash_module): Constify "name" param.
3775 * pe-dll.c: Replace CONST with const throughout.
3776 (quick_symbol): Constify "n1", "n2", "n3" params.
3777 (make_singleton_name_thunk): Constify "import" param. Make
3778 "buffer_len" a size_t.
3779 (make_import_fixup_entry): Constify "name", "fixup_name",
3780 "dll_symname" params.
3781 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3782 (pe_get32): Likewise.
3783 (pe_implied_import_dll): Likewise.
3785 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3786 (sort_by_section_name): Likewise.
3788 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3789 (make_import_fixup): Cast printf arg, rel->address to long rather
3791 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3793 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3795 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3796 defines BufferSize. Increase buffer size by one.
3798 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3800 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3802 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3804 * configure.tgt: Add arm-openbsd target.
3806 2001-09-12 H.J. Lu <hjl@gnu.org>
3808 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3810 (ALL_64_EMULATIONS): Here.
3811 * Makefile.in: Regenerated.
3813 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3815 * emultempl/pe.em(make_import_fixup): change signature to
3816 take asection as well as arelec; we need this for proper
3817 error reporting. Only call pe_create_import_fixup() if
3818 there is no attempt to add a constant addend to the reloc;
3819 otherwise, report error condition.
3820 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3821 since final argument is a pointer to make_import_fixup().
3822 Change call to cb() to match make_import_fixup() signature.
3823 (make_import_fixup_mark): make buffer_len unsigned.
3824 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3826 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3828 * ld.texinfo: add verbose documentation for auto-import
3829 direct-addressing workaround, to compliment the terse
3832 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3834 * scripttempl/v850.sc: Add gcc_except_table sections.
3836 2001-09-11 Jeffrey A Law (law@cygnus.com)
3838 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3839 * emulparams/h8300self.sh: Similarly.
3841 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3843 * ld.texinfo (Options, --stack): Correct default value for stack
3846 2001-09-05 Tom Rix <trix@redhat.com>
3848 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3850 2001-09-03 Andreas Jaeger <aj@suse.de>
3852 * emultempl/beos.em: Declare prototypes for comparions functions,
3855 2001-09-02 Andreas Jaeger <aj@suse.de>
3857 * emultempl/aix.em: Add missing prototype.
3858 * emultempl/lnk960.em: Likewise.
3859 * emultempl/vanilla.em: Likewise.
3860 * emultempl/armcoff.em: Likewise.
3861 * emultempl/armelf_oabi.em: Likewise.
3862 * emultempl/beos.em: Likewise.
3863 * emultempl/gld960c.em: Likewise.
3864 * emultempl/gld960.em: Likewise.
3866 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3867 for prototype declaration.
3869 2001-08-31 Eric Christopher <echristo@redhat.com>
3870 Jason Eckhardt <jle@redhat.com>
3872 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3874 2001-08-31 Andreas Jaeger <aj@suse.de>
3876 * emultempl/pe.em: Add missing prototypes.
3877 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3878 pe_find_data_imports.
3879 (pr_sym): Add unused attribute.
3881 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3883 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3884 default from coff to elf.
3886 2001-08-29 Jeff Law <law@redhat.com>
3888 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3890 * emulparams/h8300self.sh: Similarly.
3892 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3894 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3896 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3897 * configure.tgt (h8300-*-elf*): New case.
3898 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3899 * emulparams/h8300self.sh: New file.
3900 * Makefile.in: Regenerated.
3902 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3904 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3907 2001-08-27 Linus Nordberg <linus@swox.com>
3908 Alan Modra <amodra@bigpond.net.au>
3910 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3911 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3913 * Makefile.in: Regenerate.
3914 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3915 entries to correct alphabetical position.
3916 * emulparams/elf64ppc.sh: New.
3917 * emulparams/elf64lppc.sh: New.
3919 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3921 * ldmain.c (main): Declare BSIZE as static.
3923 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3925 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3926 into .rel.dyn resp. .rela.dyn if combreloc.
3927 (get_script): If .x linker script is equal to .xn, only put it
3928 once into the binary.
3929 Add .xc and .xsc scripts.
3930 (parse_args): Handle -z combreloc and -z nocombreloc.
3931 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3932 For .xc and .xsc scripts put all .rel* or .rela* input sections
3933 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3934 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3936 Strip trailing whitespace from script.
3937 Generate .xc and .xsc scripts if requested.
3938 * ldmain.c (main): Initialize link_info.combreloc and
3939 link_info.spare_dynamic_tags.
3940 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3941 (ld_options): Add --spare-dynamic-tags option.
3942 (parse_args): Likewise.
3943 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3944 * ldint.texinfo: Document .xc and .xsc linker scripts.
3945 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3947 2001-08-22 H.J. Lu <hjl@gnu.org>
3949 * emulparams/elf32fr30.sh: Add a newline.
3951 2001-08-21 Andreas Jaeger <aj@suse.de>
3953 * deffilep.y: Add missing prototypes.
3954 * pe-dll.c: Likewise.
3956 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3958 * ldlang.c (insert_pad): Fix typos in last patch.
3960 * ldlang.c: When traversing lang_statement_union_type lists,
3961 consistently use "header.next" rather than "next".
3962 * mpw-eppcmac.c: Likewise.
3963 * emultempl/beos.em: Likewise.
3964 * emultempl/hppaelf.em: Likewise.
3965 * emultempl/pe.em: Likewise.
3966 * ldlang.h (union lang_statement_union): Remove "next" field.
3968 * ldlang.c (insert_pad): Use offsetof macro.
3969 (lang_size_sections): Always neuter padding statements.
3970 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3972 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3973 passed to lang_size_sections.
3974 (pe_exe_fill_sections): Likewise.
3975 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3976 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3978 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3980 * emultempl/aix.em: Formatting fixes.
3982 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3984 * ldlang.c (insert_pad): Make use of an existing pad statement if
3985 available. Move code calculating alignment, adjusting section
3986 alignment power, and adjusting dot to ..
3987 (size_input_section): .. here. Remove unused relax param.
3988 (lang_size_sections): Change boolean `relax' param to boolean *.
3989 Adjust call to size_input_section. Make use of insert_pad to
3990 place pad after the assignment statement. If relaxing, zap
3992 (reset_memory_regions): Reset output_bfd section sizes too.
3993 (relax_again): Move to..
3994 (lang_process): ..here. Adjust call to lang_size_sections, and
3995 remove duplicated code.
3996 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3998 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4000 * ld.texinfo: Document that fill values now use the four least
4002 * emulparams/elf32fr30.sh (NOP): Update.
4003 * emulparams/elf32mcore.sh: Likewise.
4004 * emulparams/elf64_s390.sh: Likewise.
4005 * emulparams/elf_i386.sh: Likewise.
4006 * emulparams/elf_i386_be.sh: Likewise.
4007 * emulparams/elf_i386_chaos.sh: Likewise.
4008 * emulparams/elf_i386_ldso.sh: Likewise.
4009 * emulparams/elf_s390.sh: Likewise.
4010 * emulparams/elf_x86_64.sh: Likewise.
4011 * emulparams/i386moss.sh: Likewise.
4012 * emulparams/i386nw.sh: Likewise.
4013 * emulparams/m68kelf.sh: Likewise.
4014 * scripttempl/elf.sc: Update NOP comment.
4015 * scripttempl/elfi370.sc: Likewise.
4016 * scripttempl/elfm68hc11.sc: Likewise.
4017 * scripttempl/elfm68hc12.sc: Likewise.
4018 * scripttempl/nw.sc: Likewise.
4020 2001-08-15 Tom Rix <trix@redhat.com>
4022 * ldgram.y (saved_script_handle): Initialize to NULL.
4023 * ldmain.c (main): Change check on saved_script_handle.
4025 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4027 * emultempl/elf32.em: Formatting fixes.
4028 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4029 looking at sec->owner.
4030 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4031 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4032 unused code, and reorganize orphan section placement code.
4034 * ldlang.c (wild_doit): Rename to lang_add_section.
4035 * ldlang.h: Here too.
4036 * mpw-elfmips.c: And here.
4037 * emultempl/beos.em: And here.
4038 * emultempl/elf32.em: And here.
4039 * emultempl/hppaelf.em: And here.
4040 * emultempl/pe.em: And here.
4042 2001-08-13 Richard Henderson <rth@redhat.com>
4044 * emultempl/needrelax.em: New file.
4045 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4046 * Makefile.am (eelf64_ia64.c): Depend on it.
4047 * Makefile.in: Rebuild.
4049 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4051 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4052 output_section is set non-NULL.
4054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4055 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4056 needlessly create an output_section_statement. Treat a correctly
4057 named output_section_statement with NULL bfd_section as compatible.
4059 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4061 * emultempl/generic.em: Support EXTRA_EM_FILE.
4062 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4063 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4064 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4065 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4066 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4067 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4068 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4069 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4070 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4071 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4073 2001-08-12 Richard Henderson <rth@redhat.com>
4075 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4076 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4077 scripttempl/v850.sc: Keep .jcr data.
4079 2001-08-12 H.J. Lu <hjl@gnu.org>
4080 Andrew Haley <aph@cambridge.redhat.com>
4081 Nick Clifton <nickc@redhat.com>
4083 * ldgram.y (had_script): Change name to saved_script_handle.
4084 Change type to file handle.
4085 * ld.h (had_script): Rename and retype.
4086 * ldfile.c (ldfile_open_command_file): Save the file handle
4087 used in saved_script_handle.
4088 * lexsup.c (parse_args): Do not allow -c option to alter
4089 saved_script_handle.
4090 * ldmain.c (main): Print out the linker script used if
4091 --verbose is given. Check saved_script_handle to obtain the
4092 external linker script used, or if NULL, dump the builtin
4094 * ld.texinfo: Document that --verbose now dumps the linker
4095 script used, regardless of whether it was an internal or an
4098 2001-08-10 Andreas Jaeger <aj@suse.de>
4100 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4102 * configure: Regenerate.
4104 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4106 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4108 * scripttempl/elf.sc: Move non-text .dynamic section before
4109 .plt/.got/.sdata* group.
4110 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4111 (OTHER_SDATA_SECTIONS): Add.
4112 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4114 * emulparams/crislinux.sh: Likewise.
4115 * emulparams/elf32b4300.sh: Likewise.
4116 * emulparams/elf32bmip.sh: Likewise.
4117 * emulparams/elf32bmipn32.sh: Likewise.
4118 * emulparams/elf32bsmip.sh: Likewise.
4119 * emulparams/elf32btsmip.sh: Likewise.
4120 * emulparams/elf32ebmip.sh: Likewise.
4121 * emulparams/elf32elmip.sh: Likewise.
4122 * emulparams/elf32l4300.sh: Likewise.
4123 * emulparams/elf32lmip.sh: Likewise.
4124 * emulparams/elf32lsmip.sh: Likewise.
4125 * emulparams/elf32ltsmip.sh: Likewise.
4126 * emulparams/elf64bmip.sh: Likewise.
4127 * emulparams/elf64btsmip.sh: Likewise.
4128 * emulparams/elf64ltsmip.sh: Likewise.
4130 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4132 * genscripts.sh: Source the emulparams script before each output
4133 script is generated so that variables like `RELOCATING' may affect
4134 variables defined in the emulparams script.
4136 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4138 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4141 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4142 ie. iterate over wild_statement.section_list.
4143 (gld${EMULATION_NAME}_place_orphan): Likewise.
4145 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4147 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4148 .fini[0-4] sections used by _exit
4149 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4150 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4151 * scripttempl/elfm68hc11.sc: Likewise.
4153 2001-08-03 H.J. Lu <hjl@gnu.org>
4155 * emultempl/beos.em (init): Add the missing initialization.
4157 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4159 * ld.texinfo (Input Section Basics): Clarify ordering of output
4161 * ldlang.c (callback_t): Add wildcard_list param.
4162 (walk_wild_section): Remove "section" param. Rewrite for
4163 lang_wild_statement_type change. Remove unique_section_p test.
4164 (walk_wild_file): Remove "section" param.
4165 (walk_wild): Remove "section" and "file" params.
4166 (lang_gc_wild): Likewise.
4167 (wild): Likewise. Modify for lang_wild_statement_type change.
4168 (wild_sort): Likewise. Add "sec" param.
4169 (gc_section_callback): Likewise.
4170 (output_section_callback): Likewise. Do unique_section_p test.
4171 (map_input_to_output_sections): Modify call to wild.
4172 (lang_gc_sections_1): Likewise.
4173 (print_wild_statement): Modify for lang_wild_statement_type
4175 (lang_add_wild): Replace filename, filenames_sorted param with
4176 filespec. Replace section_name, sections_sorted,
4177 exclude_filename_list with section_list.
4178 * ldlang.h (lang_add_wild): Here too.
4179 (lang_wild_statement_type): Replace section_name, sections_sorted,
4180 and exclude_filename_list with section_list.
4181 * ldgram.y (current_file): Delete.
4182 (%union): Add wildcard_list.
4183 (file_NAME_list): Set type to wildcard_list. Build a linked list
4184 rather than calling lang_add_wild for each entry.
4185 (input_section_spec_no_keep): Call lang_add_wild here instead.
4186 * ld.h (struct wildcard_list): Declare.
4187 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4189 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4191 * ldmain.c (main): initialize link_info.pei386_auto_import
4192 * pe-dll.c: new tables for auto-export filtering
4193 (auto_export): change API, pass abfd for contextual filtering.
4194 Loop thru tables of excluded symbols instead of comparing
4197 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4199 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4200 static variable current_sec (static struct sec *). Add
4201 forward declaration for add_bfd_to_link.
4202 (process_def_file): Don't export undefined symbols. Do not
4203 export symbols starting with "_imp__". Call auto_export()
4205 (pe_walk_relocs_of_symbol): New function.
4206 (generate_reloc): add optional extra debugging
4207 (pe_dll_generate_def_file): eliminate extraneous initial blank
4209 (make_one): enlarge symtab to make room for __nm__ symbols
4210 (DATA auto-import support).
4211 (make_singleton_name_thunk): New function.
4212 (make_import_fixup_mark): New function.
4213 (make_import_fixup_entry): New function.
4214 (pe_create_import_fixup): New function.
4215 (add_bfd_to_link): Specify that 'name' argument is a CONST
4217 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4218 declare new functions pe_walk_relocs_of_symbol and
4219 pe_create_import_fixup.
4220 * emultempl/pe.em: add new options --enable-auto-import,
4221 --disable-auto-import, and --enable-extra-pe-debug.
4222 (make_import_fixup): New function.
4223 (pe_find_data_imports): New function.
4224 (pr_sym): New function.
4225 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4226 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4229 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4231 * ld.texinfo: add additional documentation for
4232 --export-all-symbols. Document --out-implib,
4233 --enable-auto-image-base, --disable-auto-image-base,
4234 --dll-search-prefix, --enable-auto-import, and
4235 --disable-auto-import.
4236 * ldint.texinfo: Add detailed documentation on auto-import
4239 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4241 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4244 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4246 * Makefile.am: Update dependencies with "make dep-am".
4247 * Makefile.in: Regenerate
4249 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4251 * ldcref.c (check_section_sym_xref): New function.
4252 (check_nocrossrefs): Call it.
4253 (check_nocrossref): Interate over h->refs here instead of..
4254 (check_refs): ..here. Pass in the symbol name, section, and bfd
4255 rather than hash_entry pointers.
4256 (struct check_refs_info): Keep symbol name rather than hash entry.
4258 (check_reloc_refs): Tweak for above changes in check_refs_info.
4259 Only report references to section syms when symname is NULL to
4260 prevent duplicate messages for the same reloc.
4262 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4264 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4265 available. Do not print NULL trees.
4266 (exp_print_token): Print unknown tokens with values > 126 as
4267 decimal values not ASCII characters.
4269 * ldlang.c (lang_leave_overlay): If a region is specified assign
4270 it to all sections inside the overlay unless they have been
4271 assigned to the own, non-default, memory region.
4273 * README: Add header for consistency with other README files.
4275 2001-07-14 H.J. Lu <hjl@gnu.org>
4277 * emultempl/elf32.em (output_prev_sec_find): Never return
4278 bfd_abs_section_ptr, bfd_com_section_ptr nor
4279 bfd_und_section_ptr.
4281 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4283 * Makefile.am (em32relf.c): Change dependency from generic.em to
4285 * Makefile.in: Regenerate.
4287 2001-07-14 matthew green <mrg@eterna.com.au>
4289 * configure.tgt (i386-*-netbsdelf*): New target.
4290 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4292 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4294 * emultempl/elf32.em (output_prev_sec_find): New.
4295 (place_orphan): Use it.
4297 2001-07-11 H.J. Lu <hjl@gnu.org>
4299 * ldmain.c (main): Fix typos in the last change.
4301 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4303 * ldmain.c (main): Disallow -F and -f without -shared.
4305 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4307 * emultempl/pe.em (after_open): Check for the output_bfd not
4308 having any coff_data structure allocated to it.
4310 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4312 * emultempl/elf32.em: Do not assuming that contents of the buffer
4313 returned from basename function will remain unchanged accross other
4316 2001-07-03 H.J. Lu <hjl@gnu.org>
4318 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4319 2001-07-03. It creates dynamic entries even for static binaries.
4321 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4323 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4324 (DYNAMIC): Use it to reserve few dynamic entries for
4327 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4329 * emulparams/hppa64linux.sh: New file.
4330 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4331 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4332 (ehppa64linux.c): Add rule to make it.
4334 * Makefile.in: Regenerate.
4336 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4338 * ld.texinfo (Options, -r): Mention restrictions when using
4339 different object formats.
4341 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4343 * ldlang.c (lang_check): Emit fatal error if relocatable link
4344 between different object flavours with relocations in input.
4346 2001-06-19 H.J. Lu <hjl@gnu.org>
4348 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4349 (--version-script): Mention the language support.
4351 2001-06-19 H.J. Lu <hjl@gnu.org>
4353 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4355 2001-06-18 H.J. Lu <hjl@gnu.org>
4357 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4358 (diststuff): Add $(MANS).
4359 * Makefile.in: Regenerated.
4363 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4365 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4366 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4367 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4368 * ld.h (args_type): Remove member export_dynamic. All users
4369 changed to use struct bfd_link_info member.
4371 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4372 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4373 * Makefile.in: Regenerate.
4375 2001-06-18 H.J. Lu <hjl@gnu.org>
4377 * ldlang.c (init_os): Add the newline to the einfo call.
4378 (lang_check): Likewise.
4379 (lang_do_version_exports_section): Likewise.
4381 2001-06-15 H.J. Lu <hjl@gnu.org>
4383 * lexsup.c (parse_args); Save optind to report unrecognized
4386 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4388 * ldlang.c (lang_check): Emit fatal error if relocatable link
4389 between different object flavours.
4391 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4392 Set new link_info member export_dynamic.
4393 * ldmain.c (main): Initialize new link_info member export_dynamic.
4395 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4397 * ldlang.c (walk_wild): Only call walk_wild_file if
4398 lookup_name returns something.
4399 (lookup_name): If load_symbols fails, return NULL.
4400 (load_symbols): Change to a boolean function.
4401 (open_input_bfds): If load_symbols fails then do not make the
4404 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4406 * ldlang.c (record_bfd_errors): Remove.
4408 * emultempl/aix.em: Fix copyright dates.
4410 2001-06-07 Andreas Jaeger <aj@suse.de>
4412 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4413 (TEXT_START_ADDR): Likewise.
4415 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4417 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4419 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4421 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4423 2001-05-31 H.J. Lu <hjl@gnu.org>
4425 * ldlang.c (open_input_bfds): Don't change the bfd error
4426 handler whilst loading symbols.
4428 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4430 * configure.tgt: Remove i370-mvs architecture, it is not currently
4433 2001-05-25 H.J. Lu <hjl@gnu.org>
4435 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4436 like emulparams/aixppc.sh.
4438 2001-05-25 H.J. Lu <hjl@gnu.org>
4440 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4441 setting of output_filename after bfd_scan_arch.
4442 * emultempl/pe.em: Likewise.
4444 2001-05-25 H.J. Lu <hjl@gnu.org>
4446 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4447 like emulparams/aixppc.sh.
4449 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4450 instead of ${srcdir}/emultempl/stringify.sed.
4452 2001-05-25 Timothy Wall <twall@oculustech.com>
4454 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4457 2001-05-25 Alan Modra <amodra@one.net.au>
4459 * configure.host: Replace linuxoldld with linux*oldld.
4460 * configure.tgt: Likewise.
4462 2001-05-24 H.J. Lu <hjl@gnu.org>
4464 * emultempl/stringify.sed: Removed again.
4466 2001-05-24 H.J. Lu <hjl@gnu.org>
4468 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4469 (gld${EMULATION_NAME}_before_parse): Initialize
4470 ldfile_output_architecture, ldfile_output_machine and
4471 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4472 * emultempl/beos.em: Likewise.
4473 * emultempl/elf32.em: Likewise.
4474 * emultempl/linux.em: Likewise.
4475 * emultempl/mipsecoff.em: Likewise.
4476 * emultempl/pe.em: Likewise.
4477 * emultempl/sunos.em: Likewise.
4479 2001-05-24 Tom Rix <trix@redhat.com>
4481 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4482 udate import file format.
4483 (change_symbol_mode) New, same
4484 (is_syscall) New, same
4485 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4486 * emulparams/aixppc64.sh : same
4487 * emulparams/aixrs6.sh : same
4488 * emulparams/ppcmacos.sh : same
4489 * emultempl/aix.em : use strtoull to parse options
4490 * Makefile.am : add eaixppc64 emulation for xcoff64
4491 * Makefile.in : same
4492 * configure.tgt : same
4494 * scripttempl/aix.sc : default text section offset to 0x10000000
4495 default data section offset to 0x20000000
4496 add .sv3264 and .sv64 pseudo sections
4497 loader and debug sections use the currect section offset.
4499 * emultempl/aix.em : Add xcoff64 support
4500 Add -binitfini support
4501 (gld${EMULATION_NAME}_before_parse) -binitfini
4502 (gld${EMULATION_NAME}_parse_args) same
4503 (gld${EMULATION_NAME}_before_allocation) format change for special
4506 * emulparams/aixppc64.sh : New file for xcoff64 support
4508 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4510 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4511 variable to avoid non-portable shell construct.
4513 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4515 * ldmain.c (get_emulation): Add -mips5 command line argument.
4517 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4519 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4520 (ELF_INTERPRETER_NAME): Define it.
4521 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4523 * configure.tgt (targ_emul, targ_extra_emuls)
4524 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4525 as primary, elf_i386 as extra.
4526 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4527 (eelf_i386_ldso.c): New rule.
4528 * Makefile.in: Rebuilt.
4530 2001-05-22 Nick Clifton <nickc@redhat.com>
4532 * lexsup.c (ld_options): Allow -I to be an alias for
4533 --dynamic-linker. This is for Solaris compatability.
4534 * ld.texinfo: Document that -I can be used.
4537 2001-05-16 Alan Modra <amodra@one.net.au>
4539 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4540 whether an input section is the first one assigned to an output
4542 Assorted formatting fixes.
4544 2001-05-14 DJ Delorie <dj@delorie.com>
4546 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4547 * Makefile.in: Ditto.
4549 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4551 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4552 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4554 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4556 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4558 * ldlang.c (lang_process): Call bfd_merge_sections.
4560 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4562 * ldgram.y: Fix typo.
4564 2001-05-03 H.J. Lu <hjl@gnu.org>
4566 * emultempl/elf32.em: Include "libiberty.h".
4567 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4568 basename of the bfd filename.
4569 (gld${EMULATION_NAME}_stat_needed): Likewise.
4570 (gld${EMULATION_NAME}_try_needed): Likewise.
4571 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4573 2001-05-02 H.J. Lu <hjl@gnu.org>
4575 * emultempl/pe.em: Include <ctype.h>.
4577 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4579 * emulparams/elf32openrisc.sh: New file.
4581 * Makefile.am: Add OpenRISC target.
4582 * Makefile.in: Regenerated.
4584 * configure.tgt: Add openrisc-*-* mapping.
4586 2001-05-02 Nick Clifton <nickc@redhat.com>
4588 * emultempl/aix.em: Replace buystring with xstrdup.
4589 * emultempl/beos.em: Replace buystring with xstrdup.
4591 2001-05-02 H.J. Lu <hjl@gnu.org>
4593 * ldfile.c: Include "libiberty.h".
4594 * ldlex.l: Likewise.
4596 * ldmisc.c (buystring): Removed.
4597 * ldmisc.h: Likewise.
4599 * ldfile.c: Replace buystring with xstrdup.
4600 * ldlang.c: Likewise.
4601 * ldlex.l: Likewise.
4602 * ldmain.c: Likewise.
4603 * ldmisc.c: Likewise.
4604 * lexsup.c: Likewise.
4605 * mpw-eppcmac.c: Likewise.
4607 2001-04-30 Andreas Jaeger <aj@suse.de>
4609 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4611 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4613 * ldlang.c (load_symbols): Give emulation a chance
4614 to process unrecognized file before fatal error is
4615 reported, not after.
4617 2001-04-27 Sean McNeil <sean@mcneil.com>
4619 * configure.tgt: Add arm-vxworks target.
4620 * scripttempl/armcoff.sc: Support .text or .data as a section name
4624 2001-04-13 J.T. Conklin <jtc@redback.com>
4626 * ld.texinfo: Document --fatal-warnings.
4629 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4630 warnings have been turned into errors.
4631 * lexsup.c (OPTION_WARN_FATAL): Define.
4632 (ld_options): Entry for --fatal-warnings.
4633 (parse_args): Handle OPTION_WARN_FATAL.
4634 * ld.h (ld_config_type): Add fatal_warnings field.
4636 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4638 * ldmain.c (main): Default to discard_sec_merge.
4639 * lexsup.c (OPTION_DISCARD_NONE): Define.
4640 (ld_options): Add --discard-none.
4641 (parse_args): Handle OPTION_DISCARD_NONE.
4642 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4643 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4644 all its input sections match.
4646 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4648 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4649 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4650 (eelf32ltsmip.c): New target.
4651 (eelf64btsmip.c): Likewise.
4652 (eelf64ltsmip.c): Likewise.
4653 * Makefile.in: Regenerated.
4655 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4657 (mips*-*-linux-gnu*): Likewise.
4659 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4661 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4663 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4666 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4668 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4669 correct value of __Stext here.
4670 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4673 * emulparams/crislinux.sh: Remove FIXME.
4675 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4677 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4678 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4680 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4682 * configure.tgt (cris-*-*): Change default emulation to criself.
4683 (cris-*-*aout*): New rule.
4685 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4687 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4688 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4690 2001-03-26 Andreas Jaeger <aj@suse.de>
4692 * ld.texinfo (Overview): Fix syntax in texi code.
4694 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4696 * ld.texinfo: Put @c man indications to generate the ld man page.
4697 When generating man, define all the variables. Define SEEALSO
4698 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4699 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4700 (ld.1): Generate from ld.texinfo.
4701 * Makefile.in: Regenerate.
4703 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4705 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4706 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4708 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4710 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4711 is an absolute path look only for this file and not along the path.
4713 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4715 * emultempl/elf32.em (OPTION_GROUP): New macro.
4716 Add new option Bgroup to longopts.
4717 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4718 (gld*_list_options): Add -Bgroup and -z defs.
4719 * ld.1: Document -Bgroup and -z defs.
4720 * ld.texinfo: Likewise.
4722 2001-03-07 Michael Meissner <meissner@redhat.com>
4724 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4725 with sections created by -fdata-sections.
4726 (.dynbss,.bss): Ditto.
4728 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4730 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4731 after_allocation_default, not gld..._before_allocation.
4733 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4735 * configure.in (BFD_VERSION): New.
4736 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4737 * configure: Regenerate.
4738 * Makefile.am: Run "make dep-am"
4739 * Makefile.in: Regenerate.
4741 2001-02-26 Timothy Wall <twall@cygnus.com>
4743 * emulparams/elf64_aix.sh: Add additional read-only sections;
4744 uncomment lines which are now required.
4746 2001-02-26 H.J. Lu <hjl@gnu.org>
4748 * ldlang.c (open_input_bfds): Set the bfd error handler so
4749 that problems can be caught whilst loading symbols.
4750 (record_bfd_errors): New function: Report BFD errors and mark
4751 the executable output as being invalid.
4753 2001-02-22 Timothy Wall <twall@cygnus.com>
4755 * configure.host: Add configuration for ia64-*-aix*.
4756 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4757 Add dependencies for eelf64_aix.c.
4758 * Makefile.in: Regenerate.
4759 * configure.tgt: Add ia64-*-aix* mapping.
4760 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4762 2001-02-20 H.J. Lu <hjl@gnu.org>
4764 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4765 false if we found the file.
4767 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4769 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4770 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4772 2001-02-18 lars brinkhoff <lars@nocrew.org>
4774 * Makefile.am: Add PDP-11 target.
4775 * configure.tgt: Likewise.
4776 * emulparams/pdp11.sh: New file.
4778 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4780 * configure.host: Add a generic FreeBSD configuration entry such that
4781 all [modern] FreeBSD systems on all platforms will look the same.
4783 2001-02-14 H.J. Lu <hjl@gnu.org>
4785 * configure.tgt: Remove mention of earmelf_linux26.
4787 2001-02-13 Richard Henderson <rth@redhat.com>
4789 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4791 2001-02-13 H.J. Lu <hjl@gnu.org>
4793 * ldexp.h (node_type): Add etree_provided.
4794 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4795 type to etree_provided if defined by PROVIDE. Allow updating
4797 (exp_print_tree): Handle etree_provided.
4798 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4801 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4803 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4804 .IA_64.unwind.* pattern to unwind table section and
4805 .IA_64.unwind_info* pattern to unwind info section.
4807 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4809 * Makefile.am: Add linux target for S/390.
4810 * Makefile.in: Likewise.
4811 * configure.host: Likewise.
4812 * configure.tgt: Likewise.
4813 * emulparams/elf64_s390.sh: New file.
4814 * emulparams/elf_s390.sh: New file.
4816 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4818 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4820 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4822 2001-02-06 Philip Blundell <philb@gnu.org>
4824 * Makefile.am: Remove mention of earmelf_linux26.
4825 * Makefile.in: Regenerate.
4827 2001-02-04 Philip Blundell <philb@gnu.org>
4829 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4830 * emulparams/armelf_linux26.sh: Delete.
4831 * configure.tgt: Remove mention of armelf_linux26 emulation.
4833 2001-02-01 Nick Clifton <nickc@redhat.com>
4835 * ld.1: Replace occurances of -oformat with --oformat.
4837 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4839 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4840 load_base is specified.
4842 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4844 * emultempl/elf32.em: Correct spelling in comments and listed
4847 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4849 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4850 default for the first section of a group of overlay sections.
4852 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4854 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4855 * Makefile.in: Regenerate.
4856 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4857 Check for null tool_dir.
4859 2001-01-16 Jim Wilson <wilson@redhat.com>
4861 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4862 and IA_64.unwind.info.
4864 2001-01-16 H.J. Lu <hjl@gnu.org>
4866 * ldlang.c (lang_check): Merge the private data only if the
4867 input file has contents.
4869 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4871 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4873 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4874 enabling search for libmilli. On a relocatable link, make .text
4876 (LDEMUL_AFTER_PARSE): Define.
4877 (hppaelf_finish): Correct spelling of relocatable in comments.
4879 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4880 rummage through the script for sections on the unique list.
4881 Correct length of strncmp for ".note".
4882 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4884 * ldlang.c (unique_section_list): New var.
4885 (unique_section_p): New function.
4886 (walk_wild_section): Don't match sections on unique_section_list.
4887 (lang_add_unique): New function.
4888 Correct spelling of relocatable in comments.
4890 * ldlang.h (struct unique_sections): Declare.
4891 (unique_section_list): Declare.
4892 (unique_section_p): Declare.
4893 (lang_add_unique): Declare.
4895 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4896 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4898 * ld.texinfo (--unique): Update.
4900 2001-01-13 Nick Clifton <nickc@redhat.com>
4902 * lexsup.c (parse_args): Remove spurious white space.
4904 2001-01-12 Nick Clifton <nickc@redhat.com>
4906 * lexsup.c (parse_args): Update copyright date.
4908 2001-01-12 Philip Blundell <pb@futuretv.com>
4910 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4912 2001-01-10 Kazu Hirata <kazu@hxi.com>
4914 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4915 * scripttempl/h8300h.sc: Fix formatting.
4916 * scripttempl/h8300s.sc: Likewise.
4917 * scripttempl/h8500.sc: Likewise.
4918 * scripttempl/h8500b.sc: Likewise.
4919 * scripttempl/h8500c.sc: Likewise.
4920 * scripttempl/h8500m.sc: Likewise.
4921 * scripttempl/h8500s.sc: Likewise.
4923 2000-01-07 David O'Brien <obrien@BSDi.com>
4925 * emultempl/elf32.em: Only perform Linux ld hints processing when
4928 2001-01-07 Philip Blundell <philb@gnu.org>
4930 * ld.texinfo (Bug Reporting): Update email address for reports.
4932 2000-12-31 Nick Clifton <nickc@redhat.com>
4934 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4935 options by checking for a return value of '?' not -1.
4937 2000-12-28 Nick Clifton <nickc@redhat.com>
4939 * lexsup.c (struct ld_option): Add new enum value:
4941 (ld_options[]): Change -omagic, -output and -oformat options
4942 to be EXACTLY_TWO_DASHES.
4943 (OUTPUT_COUNT): Use ARRAY_SIZE.
4944 (parse_args): Change parameter 'argc' to unsigned.
4945 Place EXACTLY_TWO_DASHES options into new really_longopts
4947 If getopt_long_only fails, try calling getopt_long using the
4948 really_longopts array.
4949 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4952 * ldlex.h: Fix prototype of parse_args.
4954 * ld.texinfo: Document that long options starting with 'o'
4955 must be preceeded by two dashes. Change example of a single
4956 dashed long option from -oformat to -trace-symbol.
4958 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4960 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4961 (longopts[]): New --no-default-excludes option.
4962 (gld_${EMULATION_NAME}_list_options): Document.
4963 (gld_${EMULATION_NAME}_parse_args): Handle.
4965 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4967 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4968 whitespace, it breaks the K&R C preprocessor.
4970 2000-12-11 DJ Delorie <dj@redhat.com>
4972 * ld.texinfo: Add notes about --whole-archive and gcc.
4974 2000-11-18 Fred Fish <fnf@be.com>
4976 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4977 (ld_options): Entry for --allow-shlib-undefined.
4978 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4979 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4981 * ld.texinfo: Document new command line switch.
4983 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4985 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4986 .fixup is actually read/write.
4987 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4988 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4989 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4991 2000-12-11 Jan Hubicka <jh@suse.cz>
4993 * NEWS: Add note about x86_64 architecture.
4995 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4997 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4998 Set DWARF2 sections to a VMA of zero.
5000 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5002 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5004 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5005 (sparc*-*-rtems*): Switched from a.out to ELF.
5007 2000-11-30 Jan Hubicka <jh@suse.cz>
5009 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5010 (eelf_x86_64.c): New.
5011 * Makefile.in: Regenerate.
5012 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5013 * emulparams/elf_x86_64.sh: New.
5015 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5017 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5018 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5020 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5021 merging non-a.out sections into CONSTRUCTING.
5023 2000-11-28 Nick Clifton <nickc@redhat.com>
5025 * ld.1 (COPYING): Mention that the GNU Free Documentation
5026 License is present in the sources, but not the output, and
5027 also available from the GNU website.
5028 (GNU Free Documentation License): Comment out this section.
5030 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5032 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5035 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5037 * ld.1: Remove old date so it does not give the impression the manpage
5040 2000-11-24 Nick Clifton <nickc@redhat.com>
5042 * configure.tgt (xscale-coff): Add target.
5043 (xscale-elf): Add target.
5045 2000-11-24 Fred Fish <fnf@be.com>
5047 * ldmain.c (main): Remove redundant init of config.make_executable
5050 2000-11-15 Richard Henderson <rth@redhat.com>
5052 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5054 2000-11-14 Kazu Hirata <kazu@hxi.com>
5056 * scripttempl/h8300.sc: Fix formatting.
5057 * scripttempl/h8300h.sc: Likewise.
5058 * scripttempl/h8300s.sc: Likewise.
5060 2000-11-14 Denis Chertykov <denisc@overta.ru>
5062 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5064 2000-11-09 Philip Blundell <pb@futuretv.com>
5066 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5067 around orphan sections whose names can be represented in C.
5069 2000-11-07 Jim Wilson <wilson@redhat.com>
5071 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5072 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5074 2000-11-06 Nick Clifton <nickc@redhat.com>
5076 * ld.texinfo: Add GNU Free Documentation License.
5077 * ldint.texinfo: Add GNU Free Documentation License.
5078 * ld.1: Add GNU Free Documentation License.
5080 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5082 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5083 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5085 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5086 Move 2000-11-02 Makefile.in changes to this file.
5087 * Makefile.in: Regenerate.
5089 2000-11-03 Nick Clifton <nickc@redhat.com>
5091 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5092 constructors and destructors.
5093 * scripttempl/h8300h.sc: Ditto.
5094 * scripttempl/h8300s.sc: Ditto.
5095 * scripttempl/h8500.sc: Ditto.
5096 * scripttempl/h8500b.sc: Ditto.
5097 * scripttempl/h8500c.sc: Ditto.
5098 * scripttempl/h8500m.sc: Ditto.
5099 * scripttempl/h8500s.sc: Ditto.
5100 * scripttempl/v850.sc: Ditto.
5101 * scripttempl/w65.sc: Ditto.
5102 * scripttempl/z8000.sc: Ditto.
5104 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5106 * Makefile.in (e_i386_chaos.c): New rule.
5107 (ALL_EMULATIONS): Added e_i386_chaos.o.
5108 * emulparams/elf_i386_chaos.sh: New file.
5109 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5111 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5113 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5114 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5115 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5116 library path suffix.
5117 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5119 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5121 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5122 for consecutive sections.
5124 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5126 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5128 * ld.texinfo: Added notes about this new option.
5130 2000-10-16 Nick Clifton <nickc@redhat.com>
5132 * emultempl/pe.em (_after_open): Add tests of return values from
5133 bfd functions. Emit appropriate error messages if necessary.
5135 2000-10-13 Nick Clifton <nickc@redhat.com>
5137 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5138 local variables - they are not used, but leave in the call to
5139 bfd_canonicalize_symtab.
5140 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5141 pe_dll_search_prefix.
5143 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5145 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5146 (longopts): New --dll-search-prefix option.
5147 (gld_${EMULATION_NAME}_list_options): Document.
5148 (gld_${EMULATION_NAME}_parse_args): Handle.
5149 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5150 dynamically, search for a dll named '<prefix><basename>.dll'
5151 in preference to 'lib<basename>.dll' if --dll-search-prefix
5154 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5156 * ldlang.c (section_already_linked): Set kept_section instead of
5159 2000-10-10 Kazu Hirata <kazu@hxi.com>
5161 * deffile.h: Fix formatting.
5162 * lexsup.c: Likewise.
5165 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5167 * pe-dll.c (make_one): Do not generate code thunk for DATA
5169 (process_def_file): deduce DATA flag for auto-export sumbols.
5171 2000-10-09 Kazu Hirata <kazu@hxi.com>
5173 * ld.h: Fix formatting.
5174 * ldcref.c: Likewise.
5175 * ldctor.h: Likewise.
5176 * ldemul.c: Likewise.
5177 * ldemul.h: Likewise.
5178 * ldexp.c: Likewise.
5179 * ldexp.h: Likewise.
5180 * ldfile.c: Likewise.
5181 * ldfile.h: Likewise.
5182 * ldlang.c: Likewise.
5183 * ldlang.h: Likewise.
5184 * ldmain.c: Likewise.
5185 * pe-dll.c: Likewise.
5187 * pe-dll.c: Revert some formatting fixes.
5189 2000-10-08 Kazu Hirata <kazu@hxi.com>
5191 * pe-dll.c: Fix formatting.
5193 2000-10-05 Kazu Hirata <kazu@hxi.com>
5195 * ldlang.c: Fix formatting.
5197 2000-10-03 DJ Delorie <dj@redhat.com>
5199 * pe-dll.c (fill_edata): initialize entire block
5200 (make_one): fill in correct section.
5202 2000-10-03 Kazu Hirata <kazu@hxi.com>
5204 * ldexp.c: Fix formatting.
5206 2000-10-02 DJ Delorie <dj@redhat.com>
5208 * emultempl/pe.em (gld_*_after_open): detect case where there two
5209 import libraries for same dll; rename one to ensure proper link
5212 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5214 (generate_edata): fix typo
5216 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5218 * scripttempl/crisaout.sc (ENTRY): Now __start.
5219 (.text): Add default setting for __start.
5220 Remove CONSTRUCTORS handling.
5221 (/DISCARD/): Add .gnu.warning.*.
5222 * emulparams/crislinux.sh (ENTRY): Now __start.
5223 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5224 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5225 (ENTRY): Now __start.
5226 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5227 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5229 2000-09-29 Kazu Hirata <kazu@hxi.com>
5231 * deffile.h: Fix formatting.
5233 * ldcref.c: Likewise.
5234 * ldctor.c: Likewise.
5235 * ldctor.h: Likewise.
5236 * ldemul.c: Likewise.
5237 * ldemul.h: Likewise.
5238 * ldexp.c: Likewise.
5239 * ldexp.h: Likewise.
5240 * ldfile.c: Likewise.
5241 * ldfile.h: Likewise.
5242 * ldlang.c: Likewise.
5243 * ldlang.h: Likewise.
5244 * lexsup.c: Likewise.
5246 * pe-dll.c: Likewise.
5248 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5250 * pe-dll.c (process_def_file): Uninitialized data wasn't
5251 exported with --export-all-symbols switch.
5253 2000-09-28 DJ Delorie <dj@redhat.com>
5255 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5256 noname work properly.
5258 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5260 * ld.texinfo (HPPA ELF32): New section.
5262 * emultempl/hppaelf.em (group_size): New.
5263 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5264 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5265 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5266 options to prevent abbreviations matching.
5267 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5268 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5270 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5272 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5273 on the m68*-*-elf target. Make it support COFF input objects.
5275 2000-09-21 Kazu Hirata <kazu@hxi.com>
5277 * ldmain.c: Fix formatting.
5278 * ldmisc.c: Likewise.
5279 * ldver.c: Likewise.
5280 * ldwrite.c: Likewise.
5282 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5284 * ldwrite.c (clone_section): Silence gcc warnings.
5286 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5288 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5289 out of memory failure.
5291 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5292 (clone_section): Handle out of memory failures. Rename var to
5293 avoid c++ reserved word.
5295 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5297 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5298 stub_name param to stub_sec_name.
5299 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5301 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5303 * emultempl/m68kelf.em: New file.
5304 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5305 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5306 * Makefile.in: Regenerate.
5308 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5310 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5313 2000-09-13 Nick Clifton <nickc@redhat.com>
5315 * ldmain.c (multiple_definition): Disable relaxation if
5316 multiple symbol definitions are encountered - otherwise the
5317 linker could abort with an assertion failure.
5319 2000-09-10 Nick Clifton <nickc@redhat.com>
5321 * mri.c: Fix formatting.
5323 2000-09-07 H.J. Lu <hjl@gnu.org>
5325 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5326 * configure: Rebuild.
5328 2000-09-07 H.J. Lu <hjl@gnu.org>
5330 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5331 * Makefile.in: Rebuild.
5333 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5335 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5336 broken list handling. Create __start_SECNAME and __stop_SECNAME
5337 when no place-holder. Add some comments. Test both SEC_CODE and
5338 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5339 Handle case where no output section statement created.
5341 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5343 * configure.tgt (sh-*-linux*): Added.
5344 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5345 * Makefile.in: Rebuilt.
5346 * emulparams/shelf_linux.sh: New file.
5347 * emulparams/shlelf_linux.sh: New file.
5349 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5351 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5352 try shuffling sections when the orphan happens to be the place
5353 holder. Keep count of unique section names generated so we speed
5354 the search for a new name.
5356 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5358 * configure: Rebuilt with new libtool.m4.
5360 2000-09-05 Nick Clifton <nickc@redhat.com>
5362 * Makefile.in: Regenerate.
5363 * aclocal.m4: Regenerate.
5364 * configure: Regenerate.
5365 * config.in: Regenerate.
5366 * po/ld.pot: Regenerate.
5368 * ldint.texinfo: Remove CVS revision marker - it foils local
5371 * emultempl/ticoff.em: Remove extraneous comma.
5373 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5375 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5376 to stub section flags.
5377 (hppa_for_each_input_file_wrapper): New.
5378 (hppa_lang_for_each_input_file): New.
5379 (lang_for_each_input_file): Define to call above.
5380 (multi_subspace): New.
5381 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5382 (PARSE_AND_LIST_PROLOGUE): Define.
5383 (PARSE_AND_LIST_LONGOPTS): Define.
5384 (PARSE_AND_LIST_OPTIONS): Define.
5385 (PARSE_AND_LIST_ARGS_CASES): Define.
5386 (hppaelf_finish): Call elf32_hppa_set_gp.
5387 (hppaelf_set_output_arch): Remove.
5388 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5390 * emulparams/hppalinux.sh (ELFSIZE): Define.
5392 (OTHER_READONLY_SECTIONS): Define.
5394 (GENERATE_SHLIB_SCRIPT): Define.
5396 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5397 to const throughout. Change `void *' to `PTR' throughout.
5398 (lang_memory_default): Function is local to file, add `static'.
5400 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5401 (ehppalinux.c): Likewise.
5402 (earmelf.c): Likewise.
5403 (earmelf_linux.c): Likewise.
5404 (earmelf_linux26.c): Likewise.
5405 * Makefile.in: Regenerate.
5407 * ld.h (ld_config_type): Add unique_orphan_sections.
5408 * lexsup.c (OPTION_UNIQUE): Define.
5409 (ld_options): Add "--unique".
5410 (parse_args): Handle it.
5411 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5412 search for an existing output section if unique_orphan_sections is
5413 set. Make use of bfd_get_unique_section_name rather than
5414 duplicating code here.
5415 * ld.texinfo: Describe --unique.
5417 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5418 optional arg to split-by-file.
5419 (parse_args): Handle them.
5420 * ld.texinfo: Update description of these options.
5421 * ldwrite.c (clone_section): Pass in the section name. Replace
5422 local code with bfd_get_unique_section_name.
5423 (split_sections): Tidy code and comments. Use a list traversal
5424 more appropriate to the list construction. Handle cooked section
5425 sizes. Split when split_by_reloc reached rather than exceeded.
5426 Track section size and split when split_by_file reached. Fix
5427 link_order_tail (even though it's not used).
5428 (ldwrite): Modify condition for calling split_sections to suit
5429 changed split_by_reloc and split_by_file.
5430 * ldmain.c (main): Init config.split_by_reloc and
5431 config.split_by_file to -1.
5432 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5433 Change split_by_file to bfd_size_type.
5435 2000-09-02 Nick Clifton <nickc@redhat.com>
5437 * configure.in: Increase version number to 2.10.91.
5438 * NEWS: Mention new ability to support removal of duplicate DWARF2
5440 * configure: Regenerate.
5441 * aclocal.m4: Regenerate.
5442 * config.in: Regenerate.
5444 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5446 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5448 * scripttempl/elf32avr.sc: Ditto.
5449 * scripttempl/elfd10v.sc: Ditto.
5450 * scripttempl/elfd30v.sc: Ditto.
5451 * scripttempl/elfi370.sc: Ditto.
5452 * scripttempl/elfm68hc11.sc: Ditto.
5453 * scripttempl/elfm68hc12.sc: Ditto.
5454 * scripttempl/elfi386beos.sc: Ditto.
5455 * scripttempl/v850.sc: Ditto.
5457 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5459 * acinclude.m4: Include libtool and gettext macros from the
5461 * aclocal.m4, configure: Rebuilt.
5463 2000-08-25 Nick Clifton <nickc@redhat.com>
5465 * ldlang.c (open_output): When choosing the target for a
5466 particular endianness, do nothing if the target is not
5469 2000-08-25 H.J. Lu <hjl@gnu.org>
5471 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5472 check -rpath nor LD_RUN_PATH for cross link.
5473 * ld.texinfo: Document the change.
5475 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5477 * NEWS: Mention support for CRIS.
5479 2000-08-23 H.J. Lu <hjl@gnu.org>
5481 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5482 the current runpath list from bfd_elf_get_runpath_list ()
5485 2000-08-22 H.J. Lu <hjl@gnu.org>
5487 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5488 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5489 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5490 trace_file_tries is non-zero.
5491 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5492 if trace_file_tries is non-zero.
5494 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5497 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5499 * NEWS: Mention i860 support.
5501 2000-08-14 Andreas Schwab <schwab@suse.de>
5503 * scripttempl/elf.sc: Fix last change to use correct comment
5506 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5508 * scripttempl/elf.sc: Add a comment giving the correspondence
5509 between sections, per-datum sections, and linkonce sections. Make
5510 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5513 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5515 * emulparams/elf32_i860.sh: New file.
5516 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5517 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5518 (eelf32_i860.c): New rule.
5519 * Makefile.in: Regenerate.
5521 2000-08-10 Nick Clifton <nickc@cygnus.com>
5523 * emulparams/mipspe.sh (ENTRY): Add definition.
5525 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5527 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5530 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5532 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5533 the final size of .bss section.
5534 * scripttempl/elfm68hc12.sc: Likewise.
5536 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5538 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5539 gld${EMULATION_NAME}_parse_args for consistency. Combine
5540 lastoptind and prevoptind vars, and keep track of last optind.
5541 (gld_${EMULATION_NAME}_list_options): Rename to
5542 gld${EMULATION_NAME}_list_options.
5544 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5546 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5547 (i586-sco-sysv5uw7.1.0).
5549 2000-07-27 H.J. Lu <hjl@gnu.org>
5551 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5552 (PARSE_AND_LIST_PROLOGUE): New.
5553 (PARSE_AND_LIST_LONGOPTS): Likewise.
5554 (PARSE_AND_LIST_OPTIONS): Likewise.
5555 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5556 (PARSE_AND_LIST_EPILOGUE): Likewise.
5558 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5560 * emultempl/armelf.em: Elide functions common to elf32.em,
5561 ie. most of the file.
5562 (arm_elf_after_open): New. Do arm specific things then call
5563 gld${EMULATION_NAME}_after_open.
5564 (arm_elf_before_allocation): New. Call
5565 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5566 (PARSE_AND_LIST_PROLOGUE): Define.
5567 (PARSE_AND_LIST_SHORTOPTS): Define.
5568 (PARSE_AND_LIST_LONGOPTS): Define.
5569 (PARSE_AND_LIST_OPTIONS): Define.
5570 (PARSE_AND_LIST_ARGS_CASES): Define.
5571 (LDEMUL_AFTER_OPEN): Define.
5572 (LDEMUL_BEFORE_ALLOCATION): Define.
5573 (LDEMUL_BEFORE_PARSE): Define.
5574 (LDEMUL_FINISH): Define.
5576 * emultempl/hppaelf.em: Similarly zap most of this file.
5577 (hppaelf_add_stub_section): Prototype.
5578 (hppaelf_layaout_sections_again): Prototype.
5579 (hook_in_stub): Prototype.
5580 (LDEMUL_SET_OUTPUT_ARCH): Define.
5581 (LDEMUL_FINISH): Define.
5582 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5584 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5585 (EXTRA_EM_FILE): New.
5586 * emulparams/armelf_linux.sh: Likewise.
5587 * emulparams/armelf_linux26.sh: Likewise.
5588 * emulparams/hppalinux.sh: Likewise.
5589 * emulparams/hppaelf.sh: Likewise.
5592 * emultempl/elf32.em: Fix formatting.
5593 (EXTRA_EM_FILE): Source it.
5594 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5595 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5596 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5597 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5598 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5599 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5600 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5601 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5602 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5603 allow functions in this file to be overridden.
5604 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5606 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5608 * emultempl/elf32.em: Reorganize file.
5610 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5612 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5613 specific option to fit 64-bit executable in the lower
5614 31-bit address range. This is done by changing start
5615 address of .interp (the very first section of executable)
5616 and then setting EF_ALPHA_32BIT elf header flag.
5618 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5620 * emultempl/m68kcoff.em: New file.
5621 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5622 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5624 * Makefile.in: Regenerate.
5626 2000-07-20 H.J. Lu <hjl@gnu.org>
5628 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5629 and "disable-new-dtags" to stop getopt from treating -d/-e as
5630 abbreviations for these options.
5632 2000-07-20 H.J. Lu <hjl@gnu.org>
5634 * ld.texinfo: Add documentation for --disable-new-dtags and
5637 * ldmain.c (main): Initialize link_info.new_dtags to false.
5639 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5640 --disable-new-dtags and --enable-new-dtags.
5641 (gld_${EMULATION_NAME}_list_options): Likewise.
5643 2000-07-05 Kenneth Block <krblock@computer.org>
5645 * lexsup.c: Add optional style to demangle switch
5646 * ld.texinfo: Document optional style to demangle switch.
5648 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5650 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5652 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5653 Regenerate dependencies.
5654 * Makefile.in: Rebuild.
5655 * configure.tgt (cris-*-*): New target.
5656 * emulparams/crisaout.sh, emulparams/criself.sh,
5657 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5658 * po/POTFILES.in, po/ld.pot: Regenerate.
5660 2000-07-20 H.J. Lu <hjl@gnu.org>
5662 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5663 Print out ignored -z options.
5665 2000-07-19 H.J. Lu <hjl@gnu.org>
5667 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5668 (PARSE_AND_LIST_PROLOGUE): New.
5669 (PARSE_AND_LIST_LONGOPTS): Likewise.
5670 (PARSE_AND_LIST_OPTIONS): Likewise.
5671 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5673 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5675 * lexsup.c (ld_options): Comment out 'z'.
5676 (parse_args): Likewise.
5678 * emultempl/elf32.em: Include "elf/common.h".
5679 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5681 (gld_${EMULATION_NAME}_list_options): Likewise.
5683 * ld.texinfo: Add documentation for the recognized -z options.
5685 2000-07-19 H.J. Lu <hjl@gnu.org>
5687 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5688 bfd_elf_set_dt_needed_soname ().
5690 2000-07-18 DJ Delorie <dj@cygnus.com>
5692 * pe-dll.c (pe_dll_id_target): check object target name also
5694 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5696 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5697 ${INIT_END} if relocating.
5698 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5700 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5702 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5703 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5704 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5705 errors introduced by the old dynamic lib search order.
5707 2000-07-17 DJ Delorie <dj@cygnus.com>
5709 * pe-dll.c (process_def_file): auto-export data items also
5710 (pe_process_import_defs): also see if _imp_ form needed
5712 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5714 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5715 for dll import libraries
5717 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5719 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5720 gcc 2.95.2 and later.
5722 2000-07-11 Kazu Hirata <kazu@hxi.com>
5724 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5727 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5729 * ldemul.h (struct lang_input_statement_struct): Remove forward
5731 (struct search_dirs): Likewise.
5732 * ldfile.h (struct lang_input_statement_struct): Likewise.
5733 Protect file from multiple inclusion.
5734 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5735 declaration from macro to file scope.
5737 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5738 * ldgram.y: Likewise here.
5739 * ldlang.c: And here.
5740 * ldmain.c: And here.
5741 * mpw-elfmips.c: And here.
5742 * mpw-eppcmac.c: And here.
5743 * emultempl/aix.em: And here.
5744 * emultempl/armcoff.em: And here.
5745 * emultempl/armelf.em: And here.
5746 * emultempl/armelf_oabi.em: And here.
5747 * emultempl/beos.em: And here.
5748 * emultempl/elf32.em: And here.
5749 * emultempl/hppaelf.em: And here.
5750 * emultempl/linux.em: And here.
5751 * emultempl/lnk960.em: And here.
5752 * emultempl/pe.em: And here.
5753 * emultempl/sunos.em: And here.
5754 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5755 * mpw-idtmips.c: Ditto.
5756 * emultempl/generic.em: Ditto.
5757 * emultempl/gld960.em: Ditto.
5758 * emultempl/gld960c.em: Ditto.
5759 * emultempl/mipsecoff.em: Ditto.
5760 * emultempl/ticoff.em: Ditto.
5761 * emultempl/vanilla.em: Ditto.
5763 * pe-dll.c: Include ldfile.h
5764 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5766 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5767 arguments to bfd_elf32_size_dynamic_sections call.
5768 (gldelf32ebmip_place_orphan): Add missing arguments to
5769 lang_leave_output_section_statement call.
5771 2000-07-10 H.J. Lu <hjl@gnu.org>
5773 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5775 (strhash): Likewise.
5776 (compute_dll_image_base): Likewise.
5777 (pe_undef_found_sym): Likewise.
5778 (pe_undef_cdecl_match): Likewise.
5779 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5780 argument "arch" with ATTRIBUTE_UNUSED.
5782 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5784 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5786 From Ryan Bradetich <rbradetich@uswest.net>
5787 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5789 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5791 Changes to create multiple linker stubs, positioned immediately
5792 before the section where they are required.
5793 * emultempl/hppaelf.em: Include elf32-hppa.h.
5794 (stub_sec, file_chain): Delete.
5795 (hppaelf_create_output_section_statements): Don't make a stub
5797 (hook_stub_info): New struct.
5798 (hook_in_stub): New function.
5799 (hppaelf_add_stub_section): New function.
5800 (hppaelf_finish): Do nothing for relocateable links. Modify the
5801 call to elf32_hppa_size_stubs. Move code for updating section
5803 (hppaelf_layaout_sections_again): ..to here, a new function.
5805 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5806 broken list handling. Pass in a pointer to the list.
5807 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5809 (hppaelf_before_parse): Prototype.
5810 (hppaelf_set_output_arch): Prototype.
5811 (hppaelf_create_output_section_statements): Prototype.
5812 (hppaelf_delete_padding_statements): Prototype.
5813 (hppaelf_finish): Prototype.
5816 * emultempl/hppaelf.em: Include ctype.h.
5817 (struct orphan_save): New.
5818 (gld${EMULATION_NAME}_place_orphan): New.
5819 (output_rel_find): New.
5820 (hppaelf_get_script): Update from elf32.em.
5821 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5822 Change emulation_name field to "${EMULATION_NAME}". Add
5823 gld${EMULATION_NAME}_place_orphan.
5825 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5826 ehppalinux.o, sort it. Regenerate dependencies.
5827 (ehppalinux.c): Depend on hppaelf.em
5828 * Makefile.in: Regenerate.
5830 * configure.tgt: targ_emul=hppalinux for hppa*linux
5832 * emulparams/hppalinux.sh: New.
5833 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5835 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5837 * lexsup.c (parse_args): Copy section name.
5839 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5841 * emultempl/pe.em: institute the following search order for
5842 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5843 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5844 static lib (libfoo.a) if none of the above are found.
5846 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5848 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5849 (longopts): New --{enable,disable}-auto-image-base options.
5850 (gld_${EMULATION_NAME}_list_options): Document.
5851 (gld_${EMULATION_NAME}_parse): Handle.
5852 (strhash): New static function.
5853 (compute_dll_image_base): New static function.
5854 (gld_${EMULATION_NAME}_set_symbols): Use.
5856 2000-07-05 DJ Delorie <dj@redhat.com>
5860 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5862 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5863 * emulparams/elf32btsmip.sh: New file.
5864 * Makefile.am: Add traditional mips target.
5865 * Makefile.in: Rebuild.
5867 2000-07-01 H.J. Lu <hjl@gnu.org>
5869 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5870 automake to use YLWRAP.
5871 * Makefile.in: Rebuild.
5873 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5875 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5876 (CLEANFILES): Add DEPA.
5877 * Makefile.in: Regenerate.
5879 2000-06-30 Timothy Wall <twall@ppc>
5881 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5882 the page in the upper octet of the address.
5884 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5886 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5888 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5890 * NEWS: arm-elf does --gc-sections too.
5892 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5894 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5896 * Makefile.in: Regenerate.
5898 2000-06-21 H.J. Lu <hjl@gnu.org>
5900 * Makefile.am: Rebuild dependency.
5901 * Makefile.in: Rebuild.
5903 2000-06-20 H.J. Lu <hjl@gnu.org>
5905 * Makefile.am: Rebuild dependency.
5906 * Makefile.in: Rebuild.
5908 2000-06-20 Timothy Wall <twall@cygnus.com>
5910 * scripttempl/tic54xcoff.sc: New.
5911 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5912 * gen-doc.texi: Add flag for TI COFF.
5913 * ld.texinfo: Add documentation for TI COFF handling switches.
5914 * emultempl/ticoff.em: New. TI COFF handling.
5915 * configure.tgt: Add tic54x target.
5916 * Makefile.am: Add tic54x target.
5917 * Makefile.in: Ditto.
5919 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5921 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5922 checking for backslashes.
5924 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5926 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5928 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5930 * NEWS: Update list of targets supporting --gc-sections.
5932 * scripttempl/elf.sc: KEEP .eh_frame contents.
5933 * scripttempl/elfd30v.sc: Same here.
5935 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5937 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5939 * Makefile.in: Rebuild.
5940 * configure.tgt: Recognize m68hc12 and m68hc11.
5941 * scripttempl/elfm68hc12.sc: New file.
5942 * emulparams/m68hc12elfb: New emulation.
5943 * emulparams/m68hc12elf: New emulation.
5944 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5945 (includes a memory.x script to define the ROM and RAM banks).
5946 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5947 New configuration files for support of Motorola 68hc11
5949 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5951 * ldmain.c (main): Only change SEC_READONLY for final link.
5953 2000-06-13 H.J. Lu <hjl@gnu.org>
5955 * configure: Regenerate.
5957 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5959 * configure.in (VERSION): Update to show this is the CVS mainline.
5961 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5963 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5964 input objects to be ECOFF.
5965 (check_sections): einfo takes %B, not %P, to print a BFD name.
5967 2000-06-05 Michael Matz <matz@ifh.de>
5969 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5972 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5974 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5976 * emulparams/avr1200.sh (STACK): Define as 0.
5977 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5978 * emulparams/avr4433.sh (STACK): Likewise.
5979 * emulparams/avr44x4.sh (STACK): Likewise.
5980 * emulparams/avr85xx.sh (STACK): Likewise.
5981 * emulparams/avrmega103.sh (STACK): Likewise.
5982 * emulparams/avrmega161.sh (STACK): Likewise.
5983 * emulparams/avrmega603.sh (STACK): Likewise.
5984 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5985 (__stack): Define from ${STACK} for main().
5987 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5989 * Makefile.am: Update dependencies with "make dep-am"
5990 * Makefile.in: Regenerate.
5992 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5994 * ldmain.c: Include filenames.h.
5995 (set_scripts_dir): Support backslashes in program name.
5997 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5999 * ldmain.c (main): When deciding if ".text" section should be
6000 read-only, don't forget to reset SEC_READONLY because it
6001 could be already set.
6003 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6005 * ld.1: Add documentation for new command line option:
6006 --section-start <sectionname>=<sectionorg>
6007 This is a generic version of -Ttext etc. which accepts
6008 any section name as a parameter instead of just text/data/
6010 * ld.texinfo: More docs.
6012 * lexsup.c: (parse_args): Recognize new command line option.
6013 (ld_options): Add new option.
6015 2000-05-18 H.J. Lu <hjl@gnu.org>
6017 * lexsup.c (parse_args): `i' == `r', not `q'.
6019 2000-05-18 Jeffrey A Law (law@cygnus.com)
6021 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6023 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6024 Rick Gorton <gorton@scrugs.lkg.dec.com>
6026 Add support for '-q' == '--emit-relocs' switch.
6027 * ldmain.c (main): Default to false.
6028 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6029 * NEWS: Describe the emitrelocations switch.
6030 * ld.texinfo: Describe the emitrelocations switch.
6032 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6034 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6035 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6036 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6039 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6041 * lexsup.c (parse_args): Update the year in the copyright notice.
6043 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6045 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6046 Replace defines with those from intl/libgettext.h to quieten gcc
6049 2000-05-10 H.J. Lu <hjl@gnu.org>
6051 * ldlang.c (open_input_bfds): Don't load the same file within
6052 a group again if the whole archive has been loaded already.
6054 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6056 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6057 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6060 2000-05-01 Jim Wilson <wilson@cygnus.com>
6062 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6064 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6065 host "ia64-*-linux-gnu*".
6067 2000-04-29 Andreas Jaeger <aj@suse.de>
6069 * ld.h: Correctly check GCC version.
6071 2000-04-25 Jeffrey A Law (law@cygnus.com)
6073 * Makefile.am: Add PA64 support. Add missing dependencies for
6075 * Makefile.in: Rebuilt.
6076 * configure.tgt: Add PA64 support (currently disabled).
6078 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6080 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6081 (output_rel_find): New function.
6082 (hold_section, hold_use): Delete.
6083 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6084 hold_interp): Make local to place_orphan.
6085 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6086 rather than place_section to find possible previous use of orphan.
6087 Similarly find the place-holder output sections. Use returned
6088 value from lang_enter_output_section_statement rather than calling
6089 lang_output_section_statement_lookup.
6090 * emultempl/armelf.em: Same here.
6091 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6093 * ldlang.c (lang_enter_output_section_statement): Return output
6095 * ldlang.h (lang_enter_output_section_statement): Change
6098 * ldlang.h (lang_output_section_statement): Export it.
6099 * ldlang.c (lang_output_section_statement): Ditto.
6101 2000-04-24 Nick Clifton <nickc@cygnus.com>
6103 * ld.texinfo (Output Section Data): Add note that section data
6104 commands cannot appear outside of section directives.
6106 2000-04-2 Matthew Green <mrg@cygnus.com>
6108 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6110 2000-04-21 Richard Henderson <rth@cygnus.com>
6111 David Mosberger <davidm@hpl.hp.com>
6113 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6114 (eelf64_ia64.c): New rule.
6115 * Makefile.in: Rebuild.
6116 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6117 * emulparams/elf64_ia64.sh: New file.
6119 2000-04-21 Richard Henderson <rth@cygnus.com>
6121 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6123 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6125 * dep-in.sed: Match space at start of file name, not at end.
6127 2000-04-18 H.J. Lu <hjl@gnu.org>
6129 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6130 lang_leave_output_section_statement () after calling
6131 lang_enter_output_section_statement ().
6132 * emultempl/armelf.em: Likewise.
6134 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6136 * emultempl/elf32.em (struct orphan_save): Add section field.
6137 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6138 better order, and place first orphan section as we did before the
6139 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6140 Don't call make_bfd_section here, let wild_doit do the job for us.
6141 Don't build a statement list when we'll only throw it away.
6142 * emultempl/armelf.em: Ditto.
6143 * emultempl/pe.em: Similarly.
6145 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6147 * scripttempl/elfppc.sc: Remove.
6148 * emulparams/elf32ppc.sh: Use elf.sc.
6149 * emulparams/elf32lppc.sh: Use elf.sc.
6150 * emulparams/elf32ppclinux.sh: Use elf.sc.
6151 * emulparams/elf32ppcsim.sh: New file.
6152 * emulparams/elf32lppcsim.sh: New file.
6153 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6154 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6155 * Makefile.in: Regenerate.
6156 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6158 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6160 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6161 ~SEC_ALLOC sections too. Init start address of debug sections.
6162 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6163 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6164 Also set all relocateable section start addresses.
6166 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6168 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6169 Add new BSS_PLT variable for when .plt need not be contained in
6170 the file. Move _etext so that it is also after .fini, and provide
6171 both etext and _etext with a leading underscore. Mark the start
6174 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6176 * emultempl/elf32.em (struct orphan_save): New.
6177 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6178 hold_interp): Make them struct orphan_save.
6179 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6180 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6181 the end of the relevant section list. Also add associated section
6182 statements to the end of any previous orphan statements.
6183 * emultempl/armelf.em: Similarly.
6184 * emultempl/pe.em: Similarly.
6186 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6188 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6190 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6192 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6193 --enable-build-warnings option.
6194 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6195 * Makefile.in, configure: Re-generate.
6197 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6199 * po/ld.pot: Regenerate.
6201 * lexsup.c (help): Restore translated part of bug string.
6203 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6204 (DEP): Quote when passing vars to sub-make. Add warning message
6206 (DEP1): Rewrite for "gcc -MM".
6207 (CLEANFILES): Add DEP2.
6208 Update dependencies.
6209 * Makefile.in: Regenerate.
6211 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6213 * ld.h: #include "bin-bugs.h"
6214 * lexsup.c (help): Use REPORT_BUGS_TO.
6216 2000-03-27 Denis Chertykov <denisc@overta.ru>
6218 * configure.tgt (avr-*-*): New target support.
6219 * Makefile.am: Likewise.
6220 * scripttempl/elf32avr.sc: New script file.
6221 * emulparams/avr1200.sh: New file.
6222 * emulparams/avr23xx.sh: New file.
6223 * emulparams/avr4433.sh New file.
6224 * emulparams/avr44x4.sh New file.
6225 * emulparams/avr85xx.sh New file.
6226 * emulparams/avrmega103.sh New file.
6227 * emulparams/avrmega161.sh New file.
6228 * emulparams/avrmega603.sh New file.
6229 * Makefile.in: Regenerate.
6231 2000-03-09 Andreas Jaeger <aj@suse.de>
6233 * Makefile.am (check-DEJAGNU): Also unset LANG.
6234 * Makefile.in: Rebuild.
6236 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6238 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6241 2000-03-02 H.J. Lu <hjl@gnu.org>
6243 * emulparams/elf32mcore.sh: Include "getopt.h".
6245 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6247 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6249 2000-03-01 H.J. Lu <hjl@gnu.org>
6251 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6252 * emulparams/shpe.sh: Likewise.
6254 2000-03-01 Nick Clifton <nickc@cygnus.com>
6256 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6257 to unused parameters.
6259 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6260 functions only used by DLL code.
6261 (_place_orphan): Initialise 'dollar'.
6263 2000-03-01 H.J. Lu <hjl@gnu.org>
6265 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6266 indicate if the undefined symbol is a fatal error or not.
6267 Don't delete the output file if "fatal" is false.
6269 2000-02-29 H.J. Lu <hjl@gnu.org>
6271 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6272 Set LC_COLLATE and LC_ALL to null and export them. It is for
6273 sort which expects the C locale.
6274 Add $(LIBS) to all $(HOSTING_LIBS).
6275 * Makefile.in: Rebuild.
6277 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6279 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6280 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6281 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6282 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6283 find_potential_libraries.
6285 2000-02-28 Jim Blandy <jimb@redhat.com>
6287 * ldgram.y (exclude_name_list): Don't require a comma to separate
6288 list entries; the lexer considers commas to be valid part of a
6289 filename, so in something like `foo, bar' the comma is considered
6290 part of the first filename, `foo,'.
6291 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6293 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6295 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6296 host "i[3456]86-*-freebsdelf*".
6298 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6300 * scripttempl/i386go32.sc: Move misplaced semicolons.
6302 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6304 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6305 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6306 (eelf64hppa.c, ehppaelf.c): Remove targets.
6307 * Makefile.in: Rebuild.
6309 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6311 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6312 GNU/Linux/sparc, but keep the default as 32.
6314 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6315 it default if sparcv9 or sparc64.
6317 2000-02-24 Nick Clifton <nickc@cygnus.com>
6319 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6320 * Makefile.in: Regenerate.
6321 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6323 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6324 find_potential_libraries.
6325 * ldemul.c (ldemul_find_potential_libraries): New function.
6327 * ldfile.c (ldfile_open_file_search): Allow function to be
6329 (ldfile_open_file): Call ldemul_find_potential_libraries.
6330 * ldfile.h: Add prototype for ldfile_open_file_search.
6332 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6334 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6335 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6337 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6338 (gld_X_find_potential_libraries): New function. Search for
6339 libraries called "*.lib".
6341 * scripttempl/pe.sc: Add .pdata section.
6343 2000-02-23 Richard Henderson <rth@cygnus.com>
6345 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6346 Add and use memory regions.
6348 2000-02-23 Linas Vepstas (linas@linas.org)
6350 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6352 * Makefile.am: Add support for Linux/IBM 370.
6353 * configure.tgt: Likewise.
6355 * Makefile.in: Regenerate.
6357 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6359 * ldlang.c (print_input_section, print_data_statement,
6360 print_reloc_statement, print_padding_statement, insert_pad,
6361 size_input_section, lang_check_section_addresses,
6362 lang_size_sections, lang_do_assignments, lang_set_startof,
6363 lang_one_common): Change `opb' to unsigned.
6364 (lang_do_assignments): Also change `size' to unsigned.
6366 2000-02-16 Richard Henderson <rth@cygnus.com>
6368 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6370 2000-02-16 Timothy Wall <twall@cygnus.com>
6372 * mri.c (mri_draw_tree): Add default LMA region argument to call
6373 to lang_leave_output_section_statement.
6374 * ldlang.h: Update prototypes with LMA region arguments.
6375 * ldlang.c (lang_size_sections): Encapsulate region bounds
6376 checking in os_check_region call.
6377 (os_check_region): New function.
6378 (lang_output_section_statement_lookup): Initialize lma_region.
6379 (lang_leave_output_section_statement): Add LMA region argument.
6380 (lang_leave_overlay): Ditto.
6381 * ldgram.y: Handle LMA region syntax.
6382 * ld.texinfo (Output Section Description): Describe LMA region usage.
6383 * emultempl/armelf.em (gld$place_orphan): Add default value for
6384 lma region in call to lang_leave_output_section_statement.
6385 * emultempl/elf32.em (gld$place_orphan): Add default value for
6386 lma region in call to lang_leave_output_section_statement.
6387 * emultempl/pe.em (gld$place_orphan): Add default value for
6388 lma region in call to lang_leave_output_section_statement.
6391 2000-02-04 Timothy Wall <twall@redhat.com>
6393 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6394 octets when calculating section end addresses.
6396 2000-02-04 Timothy Wall <twall@redhat.com>
6398 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6400 2000-02-03 Timothy Wall <twall@redhat.com>
6402 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6404 * ldlang.c (print_input_section, print_data_statement,
6405 print_reloc_statement, print_padding_statement): Print target
6406 address values and section sizes as bytes, not octets.
6407 (insert_pad) Calculate padding size in octets, and adjust "dot"
6409 (size_input_section) Always adjust "dot" by bytes, not octets.
6410 (lang_check_section_addresses, lang_do_assignments) Adjust
6411 "dot" by bytes, not octets. Use the larger of the directive size
6412 or octets_per_byte for the number of octets actually allocated in
6414 (lang_set_startof) Make sure STARTOF returns a target address.
6415 (lang_one_common) Record size changes in octets.
6416 (lang_abs_symbol_at_end_of) Section end symbol's value is
6417 recorded in target bytes.
6418 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6419 to be clear about behavior when an octet is smaller than one byte.
6421 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6423 * ldcref.c (output_cref): Don't pass message strings to printf
6427 * ldmisc.c (vfinfo): Same here.
6430 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6432 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6433 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6434 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6435 Add missing NULL initialisers, and comments.
6437 2000-01-21 Nick Clifton <nickc@cygnus.com>
6439 * ldlang.c (lang_size_sections): Fix typo in comment.
6441 2000-01-18 H.J. Lu <hjl@gnu.org>
6443 * ldlang.c (lang_size_sections): Also update the current
6444 address of a region if the SEC_NEVER_LOAD bit is not set.
6446 2000-01-10 Philip Blundell <pb@futuretv.com>
6448 * configure.tgt (arm*-*-conix*): New target.
6450 2000-01-07 Nick Clifton <nickc@cygnus.com>
6452 * ld.texinfo (Options): Remind users to preceed linker command
6453 line switches with -Wl, (or whatever is appropriate) if it is
6454 being invoked by a comnpiler driver program.
6455 Fix description of the behaviour of the -n command line switch.
6457 2000-01-05 Catherine Moore <clm@cygnus.com>
6459 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6461 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6462 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6463 (exclude_name_list): New.
6464 ldlang.c (walk_wild_section): Support list of excluded files.
6465 (print_wild_statement): Likewise.
6466 (lang_add_wild): Likewise.
6467 * ldlang.h (lang_wild_statement_type): Likewise.
6468 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6470 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6472 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6473 (process_def_file): Use.
6474 (pe_dll_compat_implib): New variable.
6477 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6478 pe_dll_compat_implib.
6480 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6481 compat-implib options.
6482 (gld_${EMULATION_NAME}_list_options): List new options.
6483 (gld_${EMULATION_NAME}_parse_args): Handle.
6485 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6488 * deffilep.y (opt_name): Allow "." in name.
6490 For older changes see ChangeLog-9899
6496 version-control: never