1 2003-10-03 Matt Thomas <matt@3am-software.com>
3 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
4 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
6 2003-10-06 Robert Millan <robertmh@gnu.org>
8 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
10 2003-10-02 Ivan Warren <ivan@vmfacility.fr>
12 * pe-dll.c (make_one): Correct sym def order & pick right sym for
15 2003-09-30 Chris Demetriou <cgd@broadcom.com>
17 * NEWS: Add an indication of the cutoff for 2.14.
19 2003-09-30 Chris Demetriou <cgd@broadcom.com>
21 * ldmain.c (get_emulation): Ignore "-mips64r2".
23 2003-09-03 Robert Millan <robertmh@gnu.org>
25 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
27 * configure.tgt: Likewise.
29 2003-08-29 Jafa <jafa@silicondust.com>
31 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
33 2003-08-21 Nick Clifton <nickc@redhat.com>
35 * po/tr.po: Updated Turkish translation.
37 2003-08-20 Nick Clifton <nickc@redhat.com>
39 * ldmain.c: Initialise the new fields in bfd_link_info to
41 * lexsup.c (enum option_values): New enum. Use this to
42 replace the handed coded values for the long switch options.
43 (ld_options): Add 'unresolved-symbols',
44 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
45 (parse_args): Handle the new switches. Set the values of
46 unresolved_symbols_in_objects and
47 unresolved_symbols_in_shared_libs appropriately. If they were
48 not initialised by the command line, install default values.
49 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
50 -z defs to use the new fields in bfd_link_info.
51 * ld.texinfo: Document the new switches.
52 * NEWS: Mention this feature.
54 2003-08-15 Dmitry Diky <diwil@mail.ru>
56 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
57 calls genscripts_extra.sh.
58 Rearrange all msp430 depends using this script.
59 * Makefile.in: Regenerate.
60 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
61 that the script to be run to generate the emulations can be passed
62 as an optional parameter instead of being computed from the
64 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
65 definitions into one file.
66 * emulparams/msp430x*.sh: Removed.
68 2003-08-15 Nick Clifton <nickc@redhat.com>
70 * ld.texinfo (Options): Put keywords for the -z option into a
71 table. Add more text describing what the -z now option does.
73 2003-08-14 Alan Modra <amodra@bigpond.net.au>
75 * dep-in.sed: Remove libintl.h.
76 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
77 * Makefile.in: Regenerate.
79 2003-08-13 Alan Modra <amodra@bigpond.net.au>
81 * genscripts.sh (libpath.exp): Only generate for first emulation.
82 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
83 already present or when LIB_PATH is set to ":".
85 2003-08-12 Ian Lance Taylor <ian@airs.com>
87 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
88 to `error'. If only a warning, put warning in the reported
89 string. Consistently set failure flag when not a warning.
91 2003-08-08 Dmitry Diky <diwil@mail.ru>
93 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
95 * Makefile.in: Regenerate.
96 * configure.tgt: Add extra emulations.
97 * emulparams/msp430xE423.sh: New file.
98 * emulparams/msp430xE427.sh: New file.
99 * emulparams/msp430xW425.sh: New file.
100 * emulparams/msp430xE425.sh: New file.
101 * emulparams/msp430xW423.sh: New file.
102 * emulparams/msp430xW427.sh: New file.
104 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
106 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
107 Change second (cmdline) arg to lang_add_entry to FALSE.
108 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
110 2003-08-05 Christian Groessler <chris@groessler.org>
111 Jason Eckhardt <jle@rice.edu>
113 * configure.tgt: Recognize new target i860-*-coff.
114 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
115 (ecoff_i860.c): New rule.
116 * emulparams/coff_i860.sh: New file.
117 * scripttempl/i860coff.sc: New file.
118 * Makefile.in: Regenerate.
120 2003-08-04 Nick Clifton <nickc@redhat.com>
122 * emultempl/elf32.em (before_allocation): Prepend "warning: "
123 to messages produced for .gnu.warning.SYMBOL sections.
125 2003-08-04 Alan Modra <amodra@bigpond.net.au>
127 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
128 .rel.dyn before other reloc sections. Don't stop looking for reloc
129 sections on finding one that isn't allocated. Match .rel even when
130 placing .rela and vice versa, when setting last_rel and
131 last_rel_alloc for the first time. If no reloc sections in script,
132 prefer allocated section over non-alloc.
133 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
135 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
137 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
138 section for shared library.
139 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
140 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
142 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
144 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
145 * scripttempl/elfm68hc11.sc: Likewise.
147 2003-07-28 Alan Modra <amodra@bigpond.net.au>
149 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
151 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
153 2003-07-27 Alan Modra <amodra@bigpond.net.au>
155 * ld.texinfo: Typo fixes. Document SUBALIGN.
156 * ldgram.y (opt_subalign): Add.
157 * ldlex.l (SUBALIGN): Recognize.
158 * ldlang.c (overlay_subalign): New var.
159 (lang_enter_overlay): Add subalign param.
160 (lang_enter_overlay_section): Pass overlay_subalign to
161 lang_enter_output_section_statement.
162 * ldlang.h (lang_enter_overlay): Update.
164 2003-07-24 Nick Clifton <nickc@redhat.com>
166 * po/fr.po: Updated French translation.
168 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
170 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
171 account .tramp sections;
172 * scripttempl/elfm68hc12.sc: Likewise.
174 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
176 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
178 2003-07-17 Nick Clifton <nickc@redhat.com>
180 * po/es.po: New Spanish translation.
182 2003-07-11 Alan Modra <amodra@bigpond.net.au>
184 * po/ld.pot: Regenerate.
186 2003-07-10 Bob Wilson <bob.wilson@acm.org>
188 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
189 with new .got.loc section.
190 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
191 non-relocating links.
192 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
193 sections separate for non-relocating links; likewise for .xt.insn.
195 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
197 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
198 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
199 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
200 * configure.host (am33_2.0-*-linux*): Added.
201 * configure.tgt (am33_2.0-*-linux*): Likewise.
202 * emulparams/elf32am33lin.sh: New.
203 * Makefile.am (eelf32am33lin.c): New rule.
204 * Makefile.in: Rebuilt.
206 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
208 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
209 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
210 (GENERATE_SHLIB_SCRIPT): Likewise.
212 2003-07-10 Alan Modra <amodra@bigpond.net.au>
214 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
216 * emultempl/ppc64elf.em (stub_added): New static var.
217 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
218 (ppc_add_stub_section): Set stub_added.
219 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
220 ppc64_elf_size_stubs call and test for stubs.
221 * scripttempl/elf.sc (GOT): Define and use.
223 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
225 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
226 Allow second call from ldemul_finish.
228 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
230 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
231 (OTHER_SECTIONS): Include .stack.
232 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
234 2003-07-02 Jakub Jelinek <jakub@redhat.com>
236 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
238 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
239 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
242 2003-06-28 Alan Modra <amodra@bigpond.net.au>
244 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
245 Replace PTR with void *. Formatting.
246 * ldcref.c: Likewise.
247 * ldctor.c: Likewise.
248 * ldctor.h: Likewise.
249 * ldemul.h: Likewise.
252 * ldfile.c: Likewise.
253 * ldfile.h: Likewise.
254 * ldlang.c: Likewise.
255 * ldlang.h: Likewise.
258 * ldmain.c: Likewise.
259 * ldmain.h: Likewise.
260 * ldmisc.c: Likewise.
261 * ldmisc.h: Likewise.
263 * ldwrite.c: Likewise.
264 * ldwrite.h: Likewise.
265 * lexsup.c: Likewise.
268 * pe-dll.c: Likewise.
269 * pe-dll.h: Likewise.
270 * deffilep.y: Likewise.
271 * deffile.h: Likewise. Don't include ansidecl.h.
272 * emulparams/elf32mcore.sh: Remove unnecessary cast.
273 * emultempl/m68kcoff.em: Likewise.
274 * emultempl/m68kelf.em: Likewise.
275 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
276 * sysdep.h: Don't include ansidecl.h.
277 * Makefile.am: Run "make dep-am".
278 * Makefile.in: Regenerate.
280 2003-06-27 Nick Clifton <nickc@redhat.com>
282 * deffilep.y (def_file_add_directive): Cope with NUL seperated
283 directives. Fix reporting of unparseable directives.
284 (def_error): Check for a NULL def_filename.
286 2003-06-27 Alan Modra <amodra@bigpond.net.au>
288 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
289 and casts. Replace PTR with void *. Formatting.
290 * emultempl/alphaelf.em: Likewise.
291 * emultempl/armcoff.em: Likewise.
292 * emultempl/armelf.em: Likewise.
293 * emultempl/armelf_oabi.em: Likewise.
294 * emultempl/beos.em: Likewise.
295 * emultempl/elf32.em: Likewise.
296 * emultempl/generic.em: Likewise.
297 * emultempl/gld960.em: Likewise.
298 * emultempl/gld960c.em: Likewise.
299 * emultempl/hppaelf.em: Likewise.
300 * emultempl/linux.em: Likewise.
301 * emultempl/lnk960.em: Likewise.
302 * emultempl/m68hc1xelf.em: Likewise.
303 * emultempl/m68kcoff.em: Likewise.
304 * emultempl/m68kelf.em: Likewise.
305 * emultempl/mipsecoff.em: Likewise.
306 * emultempl/mipself.em: Likewise.
307 * emultempl/mmix-elfnmmo.em: Likewise.
308 * emultempl/mmixelf.em: Likewise.
309 * emultempl/mmo.em: Likewise.
310 * emultempl/needrelax.em: Likewise.
311 * emultempl/netbsd.em: Likewise.
312 * emultempl/pe.em: Likewise.
313 * emultempl/sh64elf.em: Likewise.
314 * emultempl/sunos.em: Likewise.
315 * emultempl/ticoff.em: Likewise.
316 * emultempl/vanilla.em: Likewise.
317 * emultempl/xtensaelf.em: Likewise.
318 * Makefile.am: Correct dependencies.
319 * Makefile.in: Regenerate.
321 2003-06-25 Alan Modra <amodra@bigpond.net.au>
323 * ld.texinfo: Correct spelling of "relocatable".
324 * ldctor.c: Likewise.
326 * ldfile.c: Likewise.
327 * ldint.texinfo: Likewise.
328 * ldlang.c: Likewise.
329 * ldmain.c: Likewise.
330 * ldwrite.c: Likewise.
331 * lexsup.c: Likewise.
332 * emultempl/aix.em: Likewise.
333 * emultempl/alphaelf.em: Likewise.
334 * emultempl/armcoff.em: Likewise.
335 * emultempl/armelf_oabi.em: Likewise.
336 * emultempl/beos.em: Likewise.
337 * emultempl/elf32.em: Likewise.
338 * emultempl/generic.em: Likewise.
339 * emultempl/gld960.em: Likewise.
340 * emultempl/gld960c.em: Likewise.
341 * emultempl/hppaelf.em: Likewise.
342 * emultempl/linux.em: Likewise.
343 * emultempl/lnk960.em: Likewise.
344 * emultempl/m68hc1xelf.em: Likewise.
345 * emultempl/m68kcoff.em: Likewise.
346 * emultempl/m68kelf.em: Likewise.
347 * emultempl/mipsecoff.em: Likewise.
348 * emultempl/mipself.em: Likewise.
349 * emultempl/mmix-elfnmmo.em: Likewise.
350 * emultempl/mmo.em: Likewise.
351 * emultempl/needrelax.em: Likewise.
352 * emultempl/pe.em: Likewise.
353 * emultempl/ppc64elf.em: Likewise.
354 * emultempl/sh64elf.em: Likewise.
355 * emultempl/sunos.em: Likewise.
356 * emultempl/ticoff.em: Likewise.
357 * emultempl/xtensaelf.em: Likewise.
359 2003-06-24 Alan Modra <amodra@bigpond.net.au>
361 * emultempl/ppc32elf.em: Convert to C90.
363 2003-06-20 Alan Modra <amodra@bigpond.net.au>
365 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
366 unnecessary prototypes and casts.
368 2003-06-19 Alan Modra <amodra@bigpond.net.au>
370 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
371 statistics from ppc64_elf_build_stubs.
373 2003-06-19 Alan Modra <amodra@bigpond.net.au>
375 * emultempl/ppc64elf.em (build_section_lists): Check return status
376 from ppc64_elf_next_input_section.
378 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
380 * ldlang.c (section_already_linked): Put back assignment of
383 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
385 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
388 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
390 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
391 if not produced by gcc.
393 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
395 * configure.tgt: Add specific case for cris-*-linux-gnu*
396 with crislinux emulation only.
398 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
400 * configure.tgt: Add i386-netbsd-gnu target.
402 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
404 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
405 to $targ_extra_libpath.
407 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
409 * po/Make-in (DESTDIR): New.
410 (install-data-yes): Support $(DESTDIR).
411 (uninstall): Likewise.
413 2003-06-10 Doug Evans <dje@sebabeach.org>
415 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
416 * Makefile.in: Regenerate.
418 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
420 * configure.tgt (h8300*): Add h8300sxn emulations.
421 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
422 (eh8300sxn.c, eh8300sxnelf.c): New rules.
423 * Makefile.in: Regenerate.
424 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
425 * scripttempl/h8300sxn.sc: New file.
427 2003-06-10 Alan Modra <amodra@bigpond.net.au>
429 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
430 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
432 2003-06-08 Alan Modra <amodra@bigpond.net.au>
434 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
435 (build_toc_list): New function.
436 (gld${EMULATION_NAME}_finish): Call build_toc_list and
437 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
438 (OPTION_STUBSYMS): Define.
439 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
440 (PARSE_AND_LIST_OPTIONS): Document.
441 (PARSE_AND_LIST_ARGS_CASES): Handle.
443 2003-06-05 Roland McGrath <roland@redhat.com>
445 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
446 extra \t in -z noexecstack line.
448 2003-05-23 Jakub Jelinek <jakub@redhat.com>
450 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
451 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
452 -z execstack and -z noexecstack.
453 (gld${EMULATION_NAME}_list_options): Likewise.
454 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
456 2003-06-03 Michael Snyder <msnyder@redhat.com>
457 and Bernd Schmidt <bernds@redhat.com>
458 and Alexandre Oliva <aoliva@redhat.com>
460 * Makefile.am: Add new emulations for h8300sx.
461 * Makefile.in: Regenerate.
462 * configure.tgt: Add new emulations.
463 * emulparams/h8300sx.sh: New emulation.
464 * emulparams/h8300sxelf.sh: Ditto.
465 * scripttempl/h8300sx.sc: Ditto.
467 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
469 * ldmisc.c: Include "bfdlink.h".
470 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
471 and -LD_DEFINITION_IN_DISCARDED_SECTION.
473 * Makefile.am: Rebuild dependency.
474 * Makefile.in: Regenerated.
476 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
478 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
479 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
481 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
483 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
484 sorted alphabetically, instead of exported_symbols, which is
487 2003-05-30 Ulrich Drepper <drepper@redhat.com>
488 Jakub Jelinek <jakub@redhat.com>
490 * lexsup.c (OPTION_PIE): Define.
491 (ld_options): Add -pie and --pic-executable options.
492 (parse_args): Handle OPTION_PIE.
493 * ldmain.c (main): Initialize link_info.pie and
494 link_info.executable.
495 * genscripts.sh: Generate PIE scripts.
496 * ld.texinfo: Document -pie and --pic-executable options.
497 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
498 (gld${EMULATION_NAME}_place_orphan): Likewise.
499 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
500 * scripttempl/elf.sc: In PIE scripts set . the same way as in
502 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
503 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
504 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
505 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
506 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
507 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
508 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
509 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
510 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
511 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
512 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
514 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
516 * genscripts.sh: Create tmpdir/libpath.exp.
518 2003-05-30 Nick Clifton <nickc@redhat.com>
520 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
521 with a test for a NULL bfd_for_interworking.
523 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
525 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
526 correctly for more recent versions of NetBSD.
527 (alpha*-*-netbsd*): Remove.
528 (i[3-7]86-*-netbsd*): Remove.
530 2003-05-29 Nick Clifton <nickc@redhat.com>
532 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
534 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
536 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
537 trap on pointer crops.
539 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
541 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
542 as well as shle-...-netbsdelf.
544 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
546 * configure.host: Accept i[3-7]86 variants.
547 * configure.tgt: Likewise.
549 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
551 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
553 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
555 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
556 (earmelfb.c, earmelfb_linux.c): New rules.
557 * Makefile.in: Regenerated.
558 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
559 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
561 2003-05-09 Nick Clifton <nickc@redhat.com>
563 * ldlang.c (lang_size_sections_1): Default to generating a
564 fatal error message if a loadable section is not allocated
565 to a memory region when regions are defined.
567 2003-05-09 Alan Modra <amodra@bigpond.net.au>
569 * Makefile.am (em68hc11elf.c): Correct dependencies.
570 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
571 * Makefile.in: Regenerate.
572 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
573 bfd_elf_record_link_assignment name.
575 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
577 * ldmain.h (overflow_cutoff_limit): Declare.
578 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
579 (reloc_overflow): Limit error messages based on it.
580 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
583 2003-05-05 Alan Modra <amodra@bigpond.net.au>
585 * ldlex.l: Accept C style comments in version scripts.
587 2003-04-28 H.J. Lu <hjl@gnu.org>
589 * ldlang.c (lang_process): Add the relax finalize pass.
591 * ldmain.c (main): Initialize link_info.relax_finalizing to
594 2003-04-24 Roland McGrath <roland@redhat.com>
596 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
597 If a name string is unknown, give an error rather than crashing later.
599 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
601 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
602 eh8300hnelf.o, eh8300snelf.o and respective rules.
603 * Makefile.in: Regenerate.
604 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
605 * emulparams/h8300hn.sh: New
606 * emulparams/h8300sn.sh: New
607 * emulparams/h8300hnelf.sh: New
608 * emulparams/h8300snelf.sh: New
609 * scripttempl/h8300hn.sc: new
610 * scripttempl/h8300sn.sc: new
612 2003-04-23 H.J. Lu <hjl@gnu.org>
614 * ldmain.c (link_callbacks): Initialize error_handler.
616 * ldmisc.c (error_handler): New function.
618 * ldmisc.h (error_handler): New prototype.
620 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
622 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
623 * emulparams/m68hc11elfb.sh: Likewise.
624 * emulparams/m68hc12elf.sh: Likewise.
625 * emulparams/m68hc12elfb.sh: Likewise.
627 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
629 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
631 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
633 (LDEMUL_FINISH): Override to generate the trampolines after gc and
635 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
636 stub file for trampolines.
637 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
638 --no-trampoline and --bank-window to control the memory bank window.
640 2003-04-18 H.J. Lu <hjl@gnu.org>
642 * ldfile.c (ldfile_add_library_path): Remove the unused
645 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
647 * scripttempl/xstormy16.sc (__data, __rdata): New.
649 2003-04-16 Nick Clifton <nickc@redhat.com>
651 * scripttempl/xstormy16.sc: Add .jcr section mapping.
653 2003-04-15 H.J. Lu <hjl@gnu.org>
655 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
657 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
659 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
661 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
662 * ld.texinfo: Likewise.
664 2003-04-14 Alan Modra <amodra@bigpond.net.au>
666 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
667 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
668 other variants of crtbegin.o, crtend.o.
670 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
671 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
672 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
673 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
674 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
675 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
676 * scripttempl/mmo.sc (ctors, dtors): Likewise.
677 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
679 2003-04-09 Dmitry Diky <diwil@mail.ru>
681 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
682 sections to respect C++ constructor/destructor. Add ctors/dtors
683 start/stop definitions.
684 * scripttempl/elf32msp430_3.sc: Likewise.
686 2003-04-06 Nick Clifton <nickc@redhat.com>
688 * ld.texinfo (Options): Add a reminder of the target specific
689 nature to the description of the i386 PE specific options, for
690 readers who have not read all the way through the manual.
692 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
694 * configure.tgt: Fixed bug in list of targ_extra_emuls.
695 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
696 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
697 * emulparams/tic3xcoff_onchip.sh: Ditto
698 * emulparams/tic4xcoff.sh: Ditto
699 * scripttempl/tic4xcoff.sc: Ditto
701 2003-04-03 Nick Clifton <nickc@redhat.com>
703 * NEWS: Mention support for Xtensa architecture.
705 2003-04-02 Nick Clifton <nickc@redhat.com>
707 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
709 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
711 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
712 Don't call pe_dll_build_section() if link_info.relocateable.
713 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
714 if link_info.relocateable.
716 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
718 * pe-dll.c (process_def_file): Don't create an export
719 section if there are no exports and we're building an exe
720 (pe_dll_build_sections): Ditto
721 (pe_dll_fill_sections): Conditionalize setting
722 abfd->dll true on info->shared
723 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
724 If i386pe or armpe, call pe_dll_build_section()
725 for both exe's and dll's, not just dll's.
726 (gld_${EMULATION_NAME}_finish): For all targets except
727 shpe and mipspe, call pe_dll_fill_sections() for both
728 exe's and dll's, not just dll's.
730 2003-04-02 Bob Wilson <bob.wilson@acm.org>
732 * emulparams/xtensa-config.sh: Remove comment indicating that this is
735 2003-04-01 Bob Wilson <bob.wilson@acm.org>
737 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
738 (eelf32xtensa.c): New target.
739 * Makefile.in: Regenerate.
740 * configure.tgt: Handle xtensa-*-*.
741 * gen-doc.texi: Set XTENSA variable.
742 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
743 * emulparams/elf32xtensa.sh: New file.
744 * emulparams/xtensa-config.sh: Likewise.
745 * emultempl/xtensaelf.em: Likewise.
746 * scripttempl/elfxtensa.sc: Likewise.
748 2003-04-01 Jakub Jelinek <jakub@redhat.com>
750 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
751 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
752 if --enable-64-bit-bfd.
754 2003-04-01 Nick Clifton <nickc@redhat.com>
756 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
758 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
759 name of note section.
761 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
763 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
766 2003-03-31 David Heine <dlheine@suif.stanford.edu>
768 * ldfile.c (ldfile_add_library_path): Always allocate space for
770 * ldlang.c (lang_register_vers_node): Free the node if it cannot
772 * ldmain.c (set_scripts_dir): Always free the constructed
774 (add_keepsyms_file): Fix memory leak.
775 * ldmisc.c (vfinfo): Likewise.
776 * lexsup.c (parse_args): Likewise.
778 2003-03-25 Stan Cox <scox@redhat.com>
779 Nick Clifton <nickc@redhat.com>
781 Contribute support for Intel's iWMMXt chip - an ARM variant:
783 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
784 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
785 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
788 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
790 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
791 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
792 (main): Initialize them.
793 * ldfile.c: Include pathnames.h.
794 (is_sysrooted_pathname): New.
795 (ldfile_add_library_path): Use it.
796 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
797 search_dirs if given an absolute pathname.
798 (ldfile_open_file): Issue error message for sysrooted
800 * Makefile.am: Updated dependencies.
801 * Makefile.in: Rebuild.
803 2003-03-24 Daniel Néri <dne@mayonnaise.net>
805 * ld.texinfo: Rename all occurances of C54X to TIC54X.
807 2003-03-19 Andreas Schwab <schwab@suse.de>
809 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
812 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
814 * deffilep.y (opt_base): If no number given, set to default
817 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
819 * deffilep.y (def_import): Use default extension of "dll"
820 if no extension provided in parsed IMPORT definition.
822 * deffilep.y (def_lex): Revert 2003-03-12 change.
823 (dot_name): New id type and rule.
824 (expline): Use instead of ID.
825 (opt_equal_name): Likewise.
827 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
829 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
831 2003-03-07 Christopher Faylor <cgf@redhat.com>
833 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
834 apparent accidental removal on 2003-01-06.
836 2003-03-04 Dmitry Diky <diwil@mail.ru>
838 * Makefile.am: Add new devices x1122 x1132 emulation
839 * configure.tgt: Likewise.
840 * Makefile.in: Regenerate.
841 * emulparams/msp430x1122.sh: New file.
842 * emulparams/msp430x1132.sh: New file.
844 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
846 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
849 * ldfile.h (struct search_dirs): Added sysrooted field.
850 * ldlang.h (struct lang_input_statement_struct): Likewise.
851 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
852 (ldfile_open_file_search): Look for sysrooted filename starting
853 with / in ld_sysroot instead of in the current directory. Clear
854 sysrooted flag if it's found in the current directory. Set it
855 from the search directory's sysrooted flag where it is found
857 * ldlang.c (ldlang_sysrooted_script): New static variable.
858 (new_afile): Mark search_file_enums as sysrooted if
859 ldlang_sysrooted_script.
860 (load_symbols): Set ldlang_sysrooted_script according to the
861 script's sysrooted field while processing it.
862 * ld.texinfo: Document INPUT behavior in sysroot.
864 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
866 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
868 2003-03-03 Alan Modra <amodra@bigpond.net.au>
870 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
871 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
872 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
873 PARSE_AND_LIST_EPILOGUE): Don't define.
874 * emultempl/alphaelf.em: New file.
876 2003-03-01 Alan Modra <amodra@bigpond.net.au>
878 * ldemul.c: Include getopt.h.
879 * emultempl/elf32.em: Include getopt.h earlier.
880 * emultempl/ticoff.em: Likewise.
882 2003-02-28 Alan Modra <amodra@bigpond.net.au>
884 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
885 support when scripts read from files.
887 2003-02-28 Alan Modra <amodra@bigpond.net.au>
889 * ldemul.c (ldemul_parse_args): Return FALSE by default.
890 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
893 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
894 (ldemul_parse_args): Return bfd_boolean. Formatting.
895 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
896 (ldemul_parse_args): Adjust.
897 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
898 Return bfd_boolean from parse_args.
899 * lexsup.c (parse_args): Malloc shortopts, longopts and
900 really_longopts. Call ldemul_add_options and ldemul_handle_option.
901 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
902 gld${EMULATION_NAME}_parse_args.
903 (gld${EMULATION_NAME}_handle_option): Likewise.
904 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
905 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
906 * emultempl/beos.em: Likewise.
907 * emultempl/pe.em: Likewise.
908 * emultempl/ticoff.em: Likewise.
909 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
910 (gld${EMULATION_NAME}_add_sysroot): Prototype.
911 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
913 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
914 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
915 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
916 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
918 * emultempl/generic.em: Likewise.
919 * emultempl/gld960.em: Likewise.
920 * emultempl/gld960c.em: Likewise.
921 * emultempl/linux.em: Likewise.
922 * emultempl/lnk960.em: Likewise.
923 * emultempl/m68kcoff.em: Likewise.
924 * emultempl/mipsecoff.em: Likewise.
925 * emultempl/sunos.em: Likewise.
926 * emultempl/vanilla.em: Likewise.
927 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
929 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
931 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
932 memory allocation error.
934 * Makefile.am (ldmain.o): Define TOOLBINDIR.
935 * Makefile.in: Rebuilt.
936 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
938 2003-02-21 Bob Wilson <bob.wilson@acm.org>
940 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
941 call os_region_check when it is set.
942 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
943 lang_size_sections_1.
944 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
945 only for the last call, not on every relaxation iteration.
946 * ldlang.h (lang_size_sections): Update prototype.
947 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
948 to lang_size_sections.
949 (pe_exe_fill_sections): Likewise.
950 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
951 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
952 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
953 (ppc_layout_sections_again): Likewise.
955 2003-02-21 Bob Wilson <bob.wilson@acm.org>
957 * gen-doc.texi: Set ARM and HPPA variables.
958 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
959 title capitalization more consistent. Add missing menu entries for
960 machine-specific sections and conditionalize them consistently.
961 Conditionalize text that is irrelevant when SingleFormat is set.
962 Add @group divisions to improve page breaks in long examples.
963 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
964 is correct. Remove "FIXME" comment about not using
965 @raisesections/@lowersections. Use @raisesections/@lowersections
966 consistently for machine-specific sections. Change to be more polite
967 about poor bug reports. Replace FDL appendix with include of fdl.texi.
968 Move WIN32 node to match its order in the menus.
969 * fdl.texi: New file.
971 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
973 * configure.in (TARGET_SYSTEM_ROOT): Set default to
974 ${exec_prefix}/${target_alias}/sys-root. Match explicit
975 '${exec_prefix}' (in addition to the expansion thereof) as
977 * configure: Rebuilt.
979 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
981 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
983 2003-02-20 Harri Porten <porten@kde.org>
985 * ldgram.y (vers_defns): Allow optional trailing semicolon in
988 2003-02-18 Alan Modra <amodra@bigpond.net.au>
990 * emultempl/ppc32elf.em: New file.
991 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
992 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
993 (eelf32lppcnto.c): Likewise.
994 (eelf32lppcsim.c): Likewise.
995 (eelf32ppcnto.c): Likewise.
996 (eelf32ppc.c): Likewise.
997 (eelf32ppc_fbsd.c): Likewise.
998 (eelf32ppcsim.c): Likewise.
999 (eelf32ppclinux.c): Likewise.
1000 * Makefile.in: Regenerate.
1002 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1004 * ld.texinfo: Remove spaces between @samp and opening brace.
1006 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1008 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1010 (ppc_before_allocation): Don't do optimizations if wrong hash table.
1011 (gld${EMULATION_NAME}_finish): Ditto.
1013 2003-02-17 Nick Clifton <nickc@redhat.com>
1015 * ldmain.c (main) Default allow_shlib_undefined to true.
1016 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1017 (parse_args): Parse the new switch.
1018 * ld.texinfo: Document new switch and default behaviour of
1019 allowing undefined symbols in shared libraries.
1021 2003-02-11 Dmitry Diky <diwil@mail.ru>
1023 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1024 * scripttempl/elf32msp430_3.sc: Likewise.
1026 2003-02-11 Uwe Stieber <uwe@wwws.de>
1028 * configure.tgt: Add support for kaOS as cross build target
1031 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1033 * hppaelf.em (group_size): Change default back to 1.
1035 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1037 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1039 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1041 * hppaelf.em (group_size): Change default to -1.
1043 2003-02-07 Nick Clifton <nickc@redhat.com>
1045 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1047 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1048 no-pipeline-knowledge. This will prevent the getopt package from
1049 thinking that there are any shorter abbreviations for
1050 --no-pipeline-knowledge.
1052 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1054 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1055 which already have it. Avoid duplicates.
1057 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1059 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1060 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1061 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1063 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1065 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1066 call ppc64_elf_tls_optimize.
1068 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1070 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1071 outside of GNU/Linux conditional.
1073 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1075 * deffilep.y (def_get_module): New function: locate an already
1077 * deffile.h (def_get_module): New prototype.
1078 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1079 a dll multiple times.
1081 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1083 * emultempl/sh64elf.em: Include elf32-sh64.h.
1084 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1085 sh64_elf_section_data.
1086 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1088 2003-01-23 Wu Yongwei <adah@netstd.com>
1090 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1091 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1092 cross-80th-column-margin "an" to the next line.
1094 2003-01-21 Nick Clifton <nickc@redhat.com>
1096 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1097 * emulparams/tic3xcoff_onchip.sh: ...this.
1098 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1099 * Makefile.in: Regenerate.
1101 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1103 * configure.tgt: Handle i[3456]86-*-aros*
1105 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1107 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1108 * Makefile.in: Regenerate
1109 * configure.tgt: Added extra target emulations
1110 * emulparams/tic3xcoff.sh: Remove old settings
1111 * emulparams/tic4xcoff.sh: Ditto
1112 * emulparams/tic3xcoff-onchip.sh: Added new
1113 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1114 * scripttempl/tic3xcoff.sc: Remove
1116 2003-01-17 Andreas Jaeger <aj@suse.de>
1118 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1121 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1123 * Makefile.in: Regenerate.
1125 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1127 * ld.texinfo (node WIN32): Some clarifications
1128 and formatting fixups.
1130 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1132 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1133 order, and handle (ignore) -mips32r2.
1135 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1137 * ldmain.c (main): Make sure ld_sysroot is initialized.
1139 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1141 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1143 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1144 (GENSCRIPTS): Add @use_sysroot@.
1145 * Makefile.in: Regenerated.
1146 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1147 * configure.tgt: ... here. Use ${target} instead of ${host}
1148 for NATIVE_LIB_DIRS.
1149 * configure.in: Add --with-sysroot.
1150 * configure: Regenerated.
1151 * genscripts.sh: Accept use_sysroot option. Set new variables
1152 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1153 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1154 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1155 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1156 (ld_sysroot): New variable.
1157 (main): Initialize ld_sysroot.
1158 * ldmain.h (ld_sysroot): New extern.
1159 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1160 searching $EMULATION_LIBPATH.
1161 (gld${EMULATION_NAME}_add_sysroot): New function.
1162 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1163 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1164 environment variables if $NATIVE.
1165 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1166 * NEWS: Mention --with-sysroot.
1168 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1169 instead of setting LIB_PATH.
1170 * emulparams/elf32ppc.sh: Likewise.
1171 * emulparams/elf64_s390.sh: Likewise.
1172 * emulparams/elf64_sparc.sh: Likewise.
1173 * emulparams/elf64ppc.sh: Likewise.
1174 * emulparams/elf_x86_64.sh: Likewise.
1176 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1177 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1179 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1181 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1183 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1185 * Makefile.am (ldmain.o): Pass BINDIR.
1186 * Makefile.in: Regenerated.
1187 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1190 2003-01-02 Ben Elliston <bje@redhat.com>
1192 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1193 (eelf32iq2000.c): New target.
1194 * Makefile.in: Regenerate.
1195 * configure.tgt: Handle iq2000-*-elf.
1196 * emulparams/elf32iq10.sh: New file.
1197 * emulparams/elf32iq2000.sh: New file.
1198 * scripttempl/iq2000.sc: New file.
1200 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1202 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1203 and _pei386_runtime_relocator to the exclude list.
1205 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1207 * ldfile.c: Fix comment typos.
1208 * ldlang.c: Likewise.
1210 * pe-dll.c: Likewise.
1212 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1214 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1215 * Makefile.am (ld.1): Depend on configdoc.texi
1217 * Makefile.in: Regenerated.
1219 2002-12-24 Dmitry Diky <diwil@mail.ru>
1221 * Makefile.am: Add msp430 target.
1222 * configure.tgt: Likewise.
1223 * Makefile.in: Regenerate.
1224 * emulparams/msp430x???.sh: New files. Linker script parameters
1225 for various msp430 configurations.
1226 * gen-doc.texi: Enable msp430 documenation.
1227 * ld.texinfo: Document msp430 sections.
1228 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1229 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1231 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1232 Charles Wilson <cwilson@ece.gatech.edu>
1234 * config.in (HAVE_REALPATH): New entry.
1235 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1237 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1239 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1242 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1244 * ldmain.c (main): Init "strip_discarded".
1245 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1246 (OPTION_NO_STRIP_DISCARDED): Define.
1247 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1248 (parse_args): Handle them.
1250 2002-12-23 Nick Clifton <nickc@redhat.com>
1252 * ld.h (struct args_type): Add new field
1253 'accept_unknown_input_architecture'.
1254 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1256 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1257 bfd_arch_get_compatible.
1258 * ldfile.c (ldfile_try_open_bfd): Likewise.
1259 * lexsup.c (ld_options): Add new command line switch
1260 --accept-unknown-input-architecture and its inverse.
1261 (parse_args): Handle --accept-unknown-input-architecture.
1262 * ld.texinfo: Document new linker option.
1263 * NEWS: Mention new linker option.
1265 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1267 * ldmain.c (main): Re-order link_info initialization. Init all
1270 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1272 * ld.texinfo: Clarify and extend the documentation
1273 in the Machine Dependent, WIN32 section.
1275 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1277 * ld.texinfo: Add win32 machine depending section.
1278 * gen-doc.texi: Enable win32 machine depending section.
1280 * configure.host: Add win32 library search path.
1282 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1284 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1285 import when auto-import is disabled.
1287 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1289 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1290 account for trailing '\0'.
1292 2002-12-17 Nick Clifton <nickc@redhat.com>
1294 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1295 so that it is not confused with -c.
1297 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1298 Charles Wilson <cwilson@ece.gatech.edu>
1300 * configure.in: Add check for realpath function.
1301 * configure: Regenerate.
1302 * config.in: Regenerate.
1303 * aclocal.m4: Regenerate.
1304 * deffile.h: Add .data field to def_file_import
1306 * pe-dll.c (pe_proces_import_defs): Use .data field of
1307 def_file_import structure to initialize flag_data field of
1308 def_file_export structure.
1309 (pe_implied_import_dll): New variables exp_funcbase and
1310 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1311 not filename (which may be a symlink). Scan the sections and
1312 initialize [data|bss]_[start|end]. When scanning the export
1313 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1314 that it is in the .bss or .data sections as data.
1315 * sysdep.h: Include limits.h and sys/param.h, and define
1316 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1317 exists, NULL otherwise.
1318 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1319 pe_process_import_defs before pe_find_data_imports, so that
1320 auto-import will check the virtual implib as well as "real"
1322 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1323 symlinks to their target; check that the target's extension is
1324 .dll before calling pe_implied_import_dll(), not the filename
1325 itself (which may be a symlink).
1327 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1329 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1330 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1333 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1335 * ldlang.h: Formatting.
1337 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1339 * ldlang.c (init_os): Ensure sections mentioned in load_base
1342 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1344 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1345 load_base for orphans that follow a section with load_base set.
1347 2002-12-01 H.J. Lu <hjl@gnu.org>
1349 * ld.texinfo: Remove the extra `;' in sample version script.
1351 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1353 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1355 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1356 * Makefile.in: Regenerate.
1358 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1359 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1360 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1361 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1362 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1363 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1364 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1365 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1366 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1367 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1368 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1369 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1370 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1372 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1374 * configure.host: Fix generic FreeBSD configuration entry.
1376 2002-11-27 H.J. Lu <hjl@gnu.org>
1378 * ld.texinfo: Add the missing `;' to sample version scripts.
1380 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1382 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1384 2002-11-14 Egor Duda <deo@logos-m.ru>
1386 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1387 assignment which has no effect.
1388 * pe-dll.h (pe_create_import_fixup): Change prototype.
1389 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1390 (pe_create_runtime_relocator_reference): Ditto.
1391 (pe_create_import_fixup): Handle relocations with non-zero addends.
1392 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1393 --disable-runtime-pseudo-reloc.
1394 (make_import_fixup): Handle relocations with non-zero addends. Create
1395 an external reference to _pei386_runtime_relocator symbol if at least
1396 one pseudo reloc was created.
1397 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1398 --disable-runtime-pseudo-reloc options.
1400 2002-11-12 Earl Chew <earl_chew@agilent.com>
1402 * ldlang.c (lang_add_section): Discard debugging sections that have
1403 been marked SEC_EXCLUDE.
1405 2002-11-12 Nick Clifton <nickc@redhat.com>
1407 * configure.in (ALL_LINGUAS): Add da.
1408 * configure: Regenerate.
1409 * po/da.po: New Danish translation.
1411 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1413 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1414 (LDEMUL_BEFORE_ALLOCATION): Define.
1415 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1417 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1419 2002-11-11 Christopher Faylor <cgf@redhat.com>
1421 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1424 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1426 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1427 of restricted auto-export libs.
1429 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1431 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1432 creative library naming instances like, e.g., libstdc++-2.a.
1434 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1436 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1437 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1439 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1441 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1442 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1443 (make_one): Don't prefix decorated fastcall symbols with '_'.
1444 (pe_process_import_defs): Likewise.
1445 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1446 symbols to cdecl names or vise-versa.
1448 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1450 * pe-dll.c (process_def_file): Handle fastcall symbols when
1451 generating undecorated aliases. Don't prefix decorated fastcall
1453 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1456 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1458 * emultempl/aix.em: Use include <> for generated headers.
1459 * emultempl/beos.em: Likewise.
1460 * emultempl/elf32.em: Likewise.
1461 * emultempl/pe.em: Likewise.
1462 * ldctor.c: Likewise.
1463 * ldexp.c: Likewise.
1464 * ldfile.c: Likewise.
1465 * ldlang.c: Likewise.
1466 * ldlex.c: Likewise.
1467 * ldlex.l: Likewise.
1468 * ldmain.c: Likewise.
1469 * ldmisc.c: Likewise.
1470 * ldwrite.c: Likewise.
1471 * lexsup.c: Likewise.
1473 * pe-dll.c: Likewise.
1475 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1477 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1478 sections into .rel{,a}.dyn.
1480 2002-10-23 Nick Clifton <nickc@redhat.com>
1482 * lexsup.c (OPTION_NO_OMAGIC): Define.
1483 (ld_options): Add "no-omagic" option.
1484 (parse_args): Parse --no-omagic.
1485 * ld.texinfo: Document --no-omagic.
1486 * NEWS: Mention new option.
1488 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1490 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1491 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1493 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1495 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1496 emulation name. Set LIB_PATH only for native tools, and
1497 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1498 .../lib variants, not instead of them. Mostly copied from...
1499 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1500 * emulparams/elf64bmip-defs.sh: Backed out.
1501 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1502 * emulparams/elf64btsmip.sh: Likewise.
1503 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1504 TEXT_DYNAMIC): Removed.
1506 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1508 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1509 (GENERATE_SHLIB_SCRIPT): Set to yes.
1510 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1511 * emulparams/elf32bmipn32.sh: here.
1512 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1513 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1514 * emulparams/elf64bmip-defs.sh: New file. Extend
1515 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1516 * emulparams/elf64bmip.sh: Bring in definitions from
1518 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1520 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1521 * emulparams/elf64btsmip.sh: Bring in definitions from
1523 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1524 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1526 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1528 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1529 (s390-*-linux*): Add elf64_s390 emulation if want64.
1530 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1531 genscript.sh changes.
1532 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1533 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1535 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1537 * ldlang.c (load_symbols): Revert last change.
1539 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1541 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1543 (lang_reasonable_defaults): Don't compare against false.
1544 (size_input_section): Likewise.
1545 (lang_size_sections_1): Likewise.
1546 (lang_do_assignments): Likewise.
1547 (lang_add_output): Likewise.
1549 * Makefile.am: Run "make dep-am".
1550 * Makefile.in: Regenerate.
1551 * ldver.c: #include "bfdver.h".
1553 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1555 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1557 * scripttempl/elfm68hc12.sc: Likewise.
1559 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1561 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1563 * ldgram.y (memory_spec): Provide empty action.
1564 (section <NAME>): Likewise.
1566 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1568 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1569 they have OUTPUT_FORMAT not matching actual output format.
1570 * ldlang.c (lang_get_output_target): New function.
1571 (open_output): Use it.
1572 * ldlang.h (lang_get_output_target): New prototype.
1574 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1576 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1577 when orphan is .rel, .rela when orphan is .rela.
1578 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1579 first. Remove outsecname var.
1581 2002-10-09 Richard Shann <richard.shann@superh.com>
1582 Stephen Clarke <stephen.clarke@superh.com>
1584 * Makefile.am: Add eshelf32_linux.o and
1585 eshlelf32_linux.o, new emulations for sh64 Linux.
1586 * Makefile.in: Regenerate.
1587 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1588 * emulparams/shelf32_linux.sh: New file.
1589 * emulparams/shlelf32_linux.sh: New file.
1591 2002-10-08 H.J. Lu <hjl@gnu.org>
1593 * ldlang.c (lang_file_exist): Removed.
1594 (new_afile): Revert the last change.
1595 * ldlang.h (lang_file_exist): Removed.
1596 * lexsup.c (parse_args): Revert the last change.
1598 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1600 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1601 auto-import symbols.
1602 (make_one): Create _nm_<symbol> for data only.
1604 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1606 * ldlang.c (lang_file_exist): New function.
1607 (new_afile): Abort if the filename to be added matches the linker
1609 * ldlang.h: Add prototype for lang_file_exist.
1610 * lexsup.c (parse_args): Abort if the output filename matches
1611 one of the input filenames.
1613 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1615 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1617 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1619 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1620 * scripttempl/elfm68hc11.sc: Likewise.
1621 * scripttempl/elfm68hc12.sc: Likewise.
1623 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1624 reloc sections just before .rel.plt/.rela.plt.
1625 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1626 Only put loadable reloc sections in hold_rel.
1628 2002-09-29 H.J. Lu <hjl@gnu.org>
1630 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1632 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1634 From "Anita Kulkarni" <AnitaK@kpit.com>
1635 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1638 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1640 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1642 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1643 SEGMENT_SIZE alignment.
1644 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1645 (SEGMENT_SIZE): Define.
1647 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1648 (fold_binary): Correct abs - non-abs case.
1649 (fold_trinary): New. Split out from exp_fold_tree.
1651 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1653 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1654 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1655 for start of .data, instead align up to 256M boundary.
1656 * scripttempl/aix.sc: Likewise.
1658 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1660 * scripttempl/i386go32.sc: Handle bss unique sections.
1662 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1664 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1666 2002-09-17 Stan Cox <scox@redhat.com>
1668 * emulparams/elf32bmipn32-defs.sh: New file.
1669 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1670 * emulparams/elf32btsmipn32.sh: Likewise.
1671 * emulparams/elf64bmip.sh: Likewise.
1672 * emulparams/elf64btsmip.sh: Likewise.
1674 2002-09-16 Bruno Haible <bruno@clisp.org>
1676 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1678 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1679 elf64-alpha-freebsd.
1681 2002-09-11 Nick Clifton <nickc@redhat.com>
1683 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1685 * po/tr.po: Updated Turkish translation.
1687 2002-09-06 Jeffrey A Law (law@redhat.com)
1689 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1691 2002-09-02 Nick Clifton <nickc@redhat.com>
1693 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1695 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1697 2002-08-30 Nick Clifton <nickc@redhat.com>
1699 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1700 used. Change INSN to start at 0x01000000 and extend for
1701 256K (ignoring holes). Start the STACK on a word aligned
1703 (.rodata): Start it at the READONLY_START_ADDR.
1705 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1707 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1709 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1711 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1712 added makefile targets for this file.
1713 * Makefile.in: Regenerate.
1714 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1715 * NEWS: Mention new port.
1717 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1719 * emulparams/tic3xcoff.sh: New file.
1720 * emulparams/tic4xcoff.sh: New file.
1721 * scripttempl/tic3xcoff.sc: New file.
1722 * scripttempl/tic4xcoff.sc: New file.
1724 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1726 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1727 strtoul and strtoull with bfd_scan_vma.
1728 (gld${EMULATION_NAME}_read_file): Likewise.
1730 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1732 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1734 2002-08-27 Egor Duda <deo@logos-m.ru>
1736 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1737 Add symbols for application to access them.
1739 2002-08-27 Nick Clifton <nickc@redhat.com>
1741 * emultempl/armelf.em: Revert this patch, it is not needed.
1743 2002-08-22 Adam Nemet <anemet@lnxw.com>
1745 2002-08-20 Dan Kegel <dank@kegel.com>
1747 * configure.in: added --with-lib-path argument to ld's configure
1749 * NEWS: Document new switch.
1750 * README: Mention new switch.
1751 * configure: Regenerate.
1752 * Makefile.in: Regenerate.
1754 Based on this patch:
1755 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1757 * Makefile.in (LIB_PATH): Make configurable.
1758 (GENSCRIPTS): Set LIB_PATH in environment.
1759 * configure.in: Substitute LIB_PATH.
1761 2002-08-22 Adam Nemet <anemet@lnxw.com>
1763 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1764 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1765 depending on the type of the function.
1766 (arm_elf_convert_thumb_symbol_to_address): New function.
1768 2002-08-22 Graeme Peterson <gp@qnx.com>
1770 * Makefile.am: Add esh{l}elf_nto.o files.
1771 * Makefile.in: Regenerate.
1772 * configure.tgt: Add support for sh-**-nto* targets.
1773 * emulparams/shelf_nto.sh: New file.
1774 * emulparams/shlelf_nto.sh: New file.
1776 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1778 * ldlang.c (offsetof): Define if not defined.
1780 2002-08-14 H.J. Lu <hjl@gnu.org>
1782 * configure.tgt: Always enable 64bit emulations for 32bit
1785 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1787 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1788 (MAXPAGESIZE): Set to 1.
1790 * ld.h (ALIGN_N): Delete.
1791 * ldexp.h (align_n): Declare.
1792 * ldexp.c (align_n): New function.
1793 (fold_binary): Use align_n instead of ALIGN_N.
1794 (exp_fold_tree): Likewise.
1795 * ldlang.c (lang_size_sections_1): Likewise.
1796 (lang_one_common): Likewise.
1797 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1799 2002-07-31 Graeme Peterson <gp@qnx.com>
1801 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1802 * Makefile.am: Add eelf32{l}ppcnto.o files.
1803 * Makefile.in: Regenerate.
1804 * emulparams/elf32lppcnto.sh: New file.
1805 * emulparams/elf32ppcnto.sh: New file.
1807 2002-08-07 H.J. Lu <hjl@gnu.org>
1809 * ld.texinfo: Document --no-undefined-version.
1811 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1812 `script.' fields to 0.
1814 * ldmain.c (main): Initialize the allow_undefined_version to
1817 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1818 (ld_options): Add --no-undefined-version.
1819 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1821 2002-08-07 Nick Clifton <nickc@redhat.com>
1823 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1824 an interworking bfd if there are input bfds. (107501)
1826 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1828 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1831 2002-08-01 Nick Clifton <nickc@redhat.com>
1833 * emulparams/armelf.sh: Revert previous delta.
1834 * scripttempl/elf.sc: Revert previous delta.
1836 2002-07-31 H.J. Lu <hjl@gnu.org>
1838 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1839 --enable-64-bit-bfd.
1841 2002-07-31 H.J. Lu <hjl@gnu.org>
1843 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1844 64bit BFD is selected.
1846 2002-07-31 H.J. Lu <hjl@gnu.org>
1848 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1849 if 64bit BFD is selected.
1851 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1853 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1854 link_info.common_skip_ar_aymbols.
1855 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1857 * ldmain.c (main): Initialize new field
1858 link_info.common_skip_ar_aymbols.
1860 2002-07-31 Adam Nemet <anemet@lnxw.com>
1862 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1864 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1867 2002-07-31 Nick Clifton <nickc@redhat.com>
1869 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1870 of the PDP-11 and 2.11BSD a.out support.
1872 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1874 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1875 for n32 ABI support.
1876 * Makefile.in: Regenerate.
1877 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1878 n32 ABI emulations for these 64 bit targets.
1879 * emulparams/elf32bmipn32.sh: Expand comment.
1880 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1882 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1884 2002-07-30 Graeme Peterson <gp@qnx.com>
1886 * configure.tgt: Add support for arm-*-nto target.
1887 * Makefile.am: Add earmnto.o file.
1888 * Makefile.in: Regenerate.
1889 * NEWS: Mention port of ARM support to QNX.
1890 * emulparams/armnto.sh: New file.
1892 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1894 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1895 for relocatable link.
1896 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1899 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1901 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1904 2002-07-25 Nick Clifton <nickc@redhat.com>
1906 * po/sv.po: Updated Swedish translation.
1907 * po/es.po: Updated Spanish translation.
1908 * po/fr.po: Updated French translation.
1910 2002-07-24 Nick Clifton <nickc@redhat.com>
1912 * po/sv.po: Updated Swedish translation.
1913 * po/es.po: Updated Spanish translation.
1915 2002-07-23 Nick Clifton <nickc@redhat.com>
1917 * po/fr.po: Updated French translation.
1919 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1921 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1922 bomb on /DISCARD/ input section.
1923 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1924 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1926 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1928 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1931 2002-07-16 Denis Chertykov <denisc@overta.ru>
1932 Nick Clifton <nickc@redhat.com>
1933 Frank Ch. Eigler <fche@redhat.com>
1934 John Healy <jhealy@redhat.com>
1936 * configure.tgt: Add support for ip2k-elf.
1937 * Makefile.am: Add support for ip2k-elf.
1938 * Makefile.in: Regenerate.
1939 * emulparams/elf32ip2k.sh: New file.
1940 * scripttempl/ip2k.sc: New file
1941 * NEWS: Mention support for new port.
1943 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1945 * NEWS: Add 'Changes in 2.13'.
1947 2002-07-14 H.J. Lu <hjl@gnu.org>
1949 * ld.texinfo: Document a .symver takes precedence over a
1952 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1954 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1955 (COMMONPAGESIZE): Define.
1957 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1959 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1961 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1963 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1964 powerpc-*-openbsd* and sparc64-*-openbsd*.
1965 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1966 * Makefile.in: Regenerate.
1967 * emulparams/hppaobsd.sh: New file.
1969 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1971 * ldlang.c (print_wild_statement): Fix output formatting.
1973 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1975 * ldlang.c: (strip_excluded_output_sections): New function.
1976 (lang_process): Call it.
1977 (lang_size_sections_1): Revert 2002-06-10 change.
1979 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1981 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1983 * Makefile.in: Regenerate.
1985 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1987 * ldfile.c (ldfile_try_open_bfd): Formatting.
1989 * ldmisc.c (demangle): Move so that it doesn't intrude between
1990 vfinfo comment and body. Add comment.
1992 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1994 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1996 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1998 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1999 * ldlang.c (entry_sym): Likewise.
2000 (ldlang_undef_chain_list_type): Likewise.
2001 (lang_finish): Adjust references to entry_symbol.
2002 (lang_add_entry): Likewise.
2003 (lang_gc_sections): Use link_info.gc_sym_list.
2004 (lang_process): Set link_info.gc_sym_list.
2005 * ldlex.l: Include bfdlink.h.
2006 * ldmain.c (main): Init link_info.gc_sym_list.
2007 * emultempl/aix.em: Adjust references to entry_symbol.
2008 * emultempl/armcoff.em: Likewise.
2009 * emultempl/armelf.em: Likewise.
2010 * emultempl/pe.em: Likewise.
2011 * emultempl/ppc64elf.em (ppc_after_open): New function.
2012 (LDEMUL_AFTER_OPEN): Define.
2013 * emulparams/elf64ppc.sh: KEEP .opd sections.
2015 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2017 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2018 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2019 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2020 (EEPROM_START_ADDR): Define.
2021 (EEPROM_MEMORY): Define.
2022 * emulparams/m68hc12elf.sh: Likewise.
2023 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2024 section to put soft registers in .page0.
2025 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2027 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2029 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2030 section. Add ${RELOCATING-0}.
2032 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2034 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2035 (OTHER_SECTIONS): Define.
2036 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2037 (OTHER_SECTIONS): Undef.
2039 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2041 * ldmisc.c (demangle): Restore dots stripped from sym name.
2043 2002-06-25 H.J. Lu <hjl@gnu.org>
2045 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2046 * Makefile.in: Regenerated.
2048 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2050 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2051 the size of attached object files, to allow make the object files
2052 available via FTP or HTTP and to mention that the mail will be
2053 sent to a mailing list.
2055 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2057 * configure.host (romp): Drop support.
2059 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2061 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2062 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2064 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2066 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2067 format specifier used to print BFD name.
2069 2002-06-18 Dave Brolley <brolley@redhat.com>
2071 From Catherine Moore, Michael Meissner, Jim Blandy:
2072 * emulparams/elf32frv.sh: New file.
2073 * configure.tgt: Support frv-*-*.
2074 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2075 (eelf32frv.c): New target.
2077 2002-06-17 Tom Rix <trix@redhat.com>
2079 * emultempl/elf32.em: gld*_get_script: Check for
2080 GENERATE_COMBRELOC_SCRIPT.
2081 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2082 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2084 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2086 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2088 2002-06-12 H.J. Lu <hjl@gnu.org>
2090 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2091 false if xvec doesn't match.
2093 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2095 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2097 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2099 * ldexp.c: Replace CONST with const.
2100 * ldfile.c: Likewise.
2101 * ldfile.h: Likewise.
2102 * ldlex.l: Likewise.
2104 * pe-dll.h: Likewise.
2106 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2108 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2110 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2112 * ldmain.c (main): initialize link_info.pei386_auto_import
2113 to -1 == implicit enable.
2114 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2115 initialize link_info.pei386_auto_import to -1 == implicit
2117 (gld_${EMULATION_NAME}_parse_args): When processing
2118 --enable-auto-import and --disable-auto-import options, use
2119 '1' and '0' instead of 'true' and 'false'.
2120 (pe_find_data_imports): Only issue message about auto-import
2121 when the feature is implicitly enabled. Downgrade message to
2122 informational instead of warning.
2124 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2126 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2128 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2130 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2131 HOSTING_CRT0 and HOSTING_LIBS.
2133 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2135 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2137 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2139 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2140 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2142 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2144 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2145 SEC_EXCLUDE sections when doing a relocatable link.
2147 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2149 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2150 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2151 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2152 (eshlelf64_nbsd.c): New rules.
2153 * Makefile.in: Regenerate.
2154 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2155 (sh64-*-netbsd*): New targets.
2156 * emulparams/shelf32_nbsd.sh: New file.
2157 * emulparams/shelf64_nbsd.sh: New file.
2158 * emulparams/shlelf32_nbsd.sh: New file.
2159 * emulparams/shlelf64_nbsd.sh: New file.
2161 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2163 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2165 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2167 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2168 C++ constructors/destructors, loosely based on the m68hc11 port.
2170 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2172 * Makefile.in: Regenerate.
2173 * aclocal.m4: Regenerate.
2174 * config.in: Regenerate.
2175 * configure: Regenerate.
2177 2002-05-31 Graeme Peterson <gp@qnx.com>
2179 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2180 (ei386nto.c): Add rule.
2181 * Makefile.in: Regenerate.
2182 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2183 * emulparams/i386nto.sh: New file.
2185 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2187 * NEWS: Add entry for VAX ELF support.
2189 2002-05-29 Matt Thomas <matt@3am-software.com>
2190 Jason Thorpe <thorpej@wasabisystems.com>
2192 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2194 (evaxnbsd.c): New rules.
2195 * Makefile.in: Regenerate.
2196 * configure.tgt (vax-*-netbsdelf*)
2198 (vax-*-netbsd*): New targets.
2199 * emulparams/elf32vax.sh: New file.
2200 * emulparams/vaxnbsd.sh: New file.
2202 2002-05-29 Adam Nemet <anemet@lnxw.com>
2204 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2205 bfd_for_interwork, instead add glue sections to each input bfd.
2206 (bfd_for_interwork): New global.
2207 (arm_elf_set_bfd_for_interworking): New function.
2208 (arm_elf_before_allocation): Use it.
2210 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2212 * Makefile.am: Add DLX make target.
2213 * configure.tgt: Add DLX configuration.
2214 * Makefile.in: Regenerate.
2215 * emulparams/elf32_dlx.sh: New file
2216 * scripttempl/dlx.sc: New file
2218 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2220 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2221 * Makefile.in: Regenerate.
2222 * emulparams/elf_chaos.sh: Use elf_chaos script.
2223 * scripttempl/elf_chaos.sc: New file.
2225 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2227 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2228 addresses and regions from here...
2229 (lang_get_regions): ...to this new function.
2230 (lang_leave_output_section_statement): Use lang_get_regions.
2231 (lang_leave_overlay): Likewise.
2232 * mri.c (mri_draw_tree): Pass null as last argument to
2233 lang_leave_output_section_statement.
2234 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2235 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2236 * emultempl/pe.em (gld*_place_orphan): Likewise.
2238 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2240 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2242 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2244 * ldemul.c: Fix formatting.
2245 * ldfile.c: Likewise.
2246 * pe-dll.c: Likewise.
2247 * pe-dll.h: Likewise.
2249 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2251 * ldlang.c (lang_process): Formatting, grammar.
2253 * ldlex.l: Use #include "" instead of <> for local header files.
2255 2002-05-24 TAMURA Kent <kent@netbsd.org>
2257 * configure.tgt: Add a target for i386-netbsdpe.
2259 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2261 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2262 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2263 output section if necessary. Handle .tbss.
2264 (lang_size_sections): Clear _raw_size for .tbss section
2265 (it allocates space in PT_TLS segment only).
2266 * ldwrite.c (build_link_order): Build link order for .tbss too.
2268 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2270 * configure.in: Correct spelling of AC_PREREQ.
2272 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2274 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2276 (autofilter_objlist): Add crtbegin.o, crtend.o.
2278 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2280 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2281 (longopts): Add new option --exclude-libs.
2282 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2283 (gld_${EMULATION_NAME}_parse_args): Use it.
2284 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2285 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2286 from whole archives.
2287 (pe_dll_add_excludes): Set excludes->type.
2288 (auto_export): Add new variable libname and set to archive basename if
2289 abfd. Use it when filtering default and user-specified libarary
2290 excludes. Let string "ALL" mean all libs when filtering user-specified
2292 * ld.texinfo: Document --exclude-libs.
2294 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2296 * ldemul.c (ldemul_new_vers_pattern): New function.
2297 * ldemul.h (ldemul_new_vers_pattern): Declare.
2298 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2299 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2300 * emultempl/ppc64elf.em (dotsyms): New static var.
2301 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2302 (LDEMUL_NEW_VERS_PATTERN): Define.
2303 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2304 (PARSE_AND_LIST_LONGOPTS): Likewise.
2305 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2306 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2308 * emultempl/armcoff.em: Likewise.
2309 * emultempl/armelf_oabi.em: Likewise.
2310 * emultempl/beos.em: Likewise.
2311 * emultempl/elf32.em: Likewise.
2312 * emultempl/generic.em: Likewise.
2313 * emultempl/gld960.em: Likewise.
2314 * emultempl/gld960c.em: Likewise.
2315 * emultempl/linux.em: Likewise.
2316 * emultempl/lnk960.em: Likewise.
2317 * emultempl/m68kcoff.em: Likewise.
2318 * emultempl/mipsecoff.em: Likewise.
2319 * emultempl/pe.em: Likewise.
2320 * emultempl/sunos.em: Likewise.
2321 * emultempl/ticoff.em: Likewise.
2322 * emultempl/vanilla.em: Likewise.
2324 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2326 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2327 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2328 (LIB_SEARCH_DIRS): No need to use "tr".
2329 (COMPILE_IN): Only set for native targets.
2330 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2331 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2332 * configure.tgt (powerpc*): Set tdir_*.
2333 (powerpcle*): Correct targ_extra_emuls.
2334 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2335 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2337 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2339 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2340 calling lang_add_entry.
2342 2002-05-21 H.J. Lu (hjl@gnu.org)
2344 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2346 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2348 * ld.texinfo: Updated for --allow-multiple-definition and
2351 * ldmain.c (main): Initialize the allow_multiple_definition
2354 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2355 (ld_options): Add --allow-multiple-definition.
2356 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2358 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2360 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2361 (earmelfb_nbsd.c): New rule.
2362 * Makefile.in: Regenerate.
2363 * configure.tgt (armeb-*-netbsdelf*): New target.
2364 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2365 (arm-*-netbsd*): Likewise.
2366 * emulparams/armelfb_nbsd.sh: New file.
2368 2002-05-18 Tom Rix <trix@redhat.com>
2370 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2373 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2375 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2376 * Makefile.in: Regenerate.
2377 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2379 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2381 * emulparams/avr1.sh: New file.
2382 * emulparams/avr2.sh: New file.
2383 * emulparams/avr3.sh: New file.
2384 * emulparams/avr4.sh: New file.
2385 * emulparams/avr5.sh: New file.
2386 * scripttempl/avr.sc: New file.
2388 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2390 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2391 (lang_place_orphans): Abort if just_syms_flag.
2393 2002-05-10 Tom Rix <trix@redhat.com>
2395 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2396 architecture and machine information in the output bfd.
2397 (gld*_before_parse): Remove old arch and machine code.
2398 (choose_target): Rename to gld*_choose_target.
2399 (rtld): Change type to int.
2400 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2401 objects in XCOFF archives.
2402 * ldfile.h: Update copyright date.
2404 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2406 * ldmain.c (main): Enable -z combreloc by default.
2408 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2410 * Makefile.am: Honour DESTDIR.
2411 * Makefile.in: Regenerate.
2413 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2415 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2416 (lang_enter_overlay): Remove the last two parameters.
2417 (lang_leave_overlay): Take them here instead.
2418 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2419 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2420 than lang_enter_overlay.
2421 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2422 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2423 (lang_size_sections_1): Evaluate it.
2424 (lang_leave_output_section_statement): Rework LMA lookup.
2425 (overlay_lma, overlay_nocrossrefs): Remove.
2426 (lang_enter_overlay): Remove LMA and crossref arguments.
2427 (lang_enter_overlay_section): Don't set the LMA here.
2428 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2429 assignment to the last section's update_dot_tree. Unconditionally
2430 use the load and run-time regions specified in the OVERLAY statement.
2431 Likewise the first section's LMA. Only set the other sections' LMAs
2432 when no load region is given.
2434 2002-05-06 Nick Clifton <nickc@redhat.com>
2436 * po/sv.po: New translation.
2438 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2440 * emultempl/hppaelf.em (build_section_lists): New function.
2441 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2442 and build_section_lists.
2444 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2446 * ld.h: Fix formatting.
2447 * ldexp.c: Likewise.
2448 * ldfile.c: Likewise.
2449 * ldlang.c: Likewise.
2450 * ldmain.c: Likewise.
2451 * lexsup.c: Likewise.
2452 * pe-dll.c: Likewise.
2454 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2456 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2457 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2458 (build_section_lists): Do output_section tests here.
2460 2002-04-30 Tom Rix <trix@redhat.com>
2462 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2464 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2466 Long branch stubs, multiple stub sections.
2467 * emultempl/ppc64elf.em: Include ldctor.h.
2468 (stub_file): New var.
2469 (group_size): New var.
2470 (ppc_create_output_section_statements): New function.
2471 (struct hook_stub_info): New.
2472 (hook_in_stub): New function.
2473 (ppc_add_stub_section): New function.
2474 (ppc_layout_sections_again): New function.
2475 (build_section_lists): New function.
2476 (gld${EMULATION_NAME}_finish): Rewrite.
2477 (real_func): New var.
2478 (ppc_for_each_input_file_wrapper): New function.
2479 (ppc_lang_for_each_input_file): New function.
2480 (lang_for_each_input_file): Define.
2481 (PARSE_AND_LIST_PROLOGUE): Define.
2482 (PARSE_AND_LIST_LONGOPTS): Define.
2483 (PARSE_AND_LIST_OPTIONS): Define.
2484 (PARSE_AND_LIST_ARGS_CASES): Define.
2485 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2487 2002-04-30 Tom Rix <trix@redhat.com>
2489 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2490 -blibpath, -bnolibpath support.
2492 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2494 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2495 (eelf32ppcwindiss.c): New target.
2496 * Makefile.in: Regenerated.
2497 * configure.tgt: Add support for powerpc-*-windiss.
2498 * emulparams/elf32ppcwindiss.sh: New file.
2500 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2502 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2503 * ldexp.c (exp_print_token): Add "infix_p" argument.
2504 (exp_print_tree): Update accordingly.
2506 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2508 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2509 * Makefile.in: Regenerate.
2510 * mpw-elfmips.c: Delete.
2511 * mpw-eppcmac.c: Delete.
2512 * mpw-esh.c: Delete.
2513 * mpw-idtmips.c: Delete.
2515 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2517 * emulparams/shelf32.sh (MACHINE): Now sh5.
2519 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2521 * ldgram.y: Fix syntax warning.
2523 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2525 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2526 to prevent "-n" from being taken as an abbreviation for
2527 "--no-pipeline-knowledge".
2529 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2531 * ldlang.c (lang_size_sections_1): Don't complain about
2532 SEC_NEVER_LOAD sections having no memory region specified.
2534 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2536 2002-04-07 matthew green <mrg@redhat.com>
2538 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2540 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2542 * dep-in.sed: Cope with absolute paths.
2543 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2545 * Makefile.in: Regenerate.
2547 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2549 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2551 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2553 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2554 is smaller than maximum, round dot up to common page boundary.
2556 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2558 * configure.host: Set up for generic hosts first, then tweak as
2559 necessary in more specific targets.
2560 (HOSTING_LIBS): Include libgcc_eh.a if found.
2562 2002-03-23 Andreas Jaeger <aj@suse.de>
2564 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2566 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2568 * Makefile.am: Run "make dep-am".
2569 * Makefile.in: Regenerate.
2571 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2573 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2575 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2577 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2578 add the symbol to the linker hash table immediately.
2579 (lang_place_undefineds): Split symbol creation out..
2580 (insert_undefined): ..to here.
2582 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2584 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2585 the contents of the buffer returned from basename function will are
2586 getting overwritten while still being used.
2588 2002-03-18 Jan Hubicka <jh@suse.cz>
2589 Andreas Jaeger <aj@suse.de>
2590 Andreas Schwab <schwab@suse.de>
2592 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2593 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2594 set libraries to default to lib64 paths.
2596 2002-03-18 Tom Rix <trix@redhat.com>
2598 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2599 * configure.tgt : Same.
2600 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2601 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2602 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2603 emulation parameters for better -b32, -b64 support.
2604 * emulparms/aixrs6.sh : Same.
2605 * emulparms/ppcmacos.sh : Same.
2606 * emultempl/aix.em (choose_target) : Use new emulation parameters
2607 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2608 * Makefile.in : Regenerate.
2610 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2612 * po/fr.po: Updated version.
2614 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2616 * ldmain.c (main): Move .text readonly flag fudges from here..
2617 * ldlang.c (lang_process): ..to here.
2619 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2621 * ldlang.c (lang_check): Remove the word size check added in last
2622 change. Treat emitrelocations case as for relocatable links.
2624 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2626 * po/fr.po: Updated version.
2628 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2630 * ldlang.c (lang_check): Do relocatable link checks first, so that
2631 warn_mismatch can't override. Check compatible and word size too.
2633 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2635 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2637 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2639 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2642 2002-03-04 H.J. Lu <hjl@gnu.org>
2644 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2645 .fini_array in the data segment.
2647 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2649 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2651 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2653 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2654 .init_array, and .fini_array.
2656 2002-02-20 Andreas Schwab <schwab@suse.de>
2658 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2659 .IA64_unwind* in a relocatable link.
2661 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2663 * NEWS: Mark 2.12 branch.
2665 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2667 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2668 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2670 2002-02-18 Tom Rix <trix@redhat.com>
2672 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2673 (gld*_before_allocation): Same.
2674 (gld*_create_output_section_statements): Generate
2675 __rtinit if run time linking. Add librtl.a to the link.
2676 (gld*_read_file): Clean.
2678 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2680 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2682 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2684 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2685 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2686 and eelf64alpha_fbsd.
2687 * Makefile.in: Regenerate.
2688 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2689 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2690 use a FreeBSD-specific emulation rather than the psABI one.
2691 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2692 for all FreeBSD ELF systems.
2693 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2695 * emulparams/elf32ppc_fbsd.sh: Likewise.
2696 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2697 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2698 * emulparams/elf64alpha_fbsd.sh: Likewise.
2699 * emulparams/elf_i386_fbsd.sh: Likewise.
2700 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2702 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2704 * po/tr.po: Updated version.
2706 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2708 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2711 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2713 * emultempl/mmo.em (mmo_after_open): Don't call
2714 _bfd_mmix_check_all_relocs when producing ELF output.
2716 2002-02-15 Richard Henderson <rth@redhat.com>
2718 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2719 definition. Emit a unop+nop pair.
2721 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2723 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2724 for presence of .MMIX.reg_contents.linker_allocated before early
2727 * NEWS: Mention support for MMIX.
2729 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2731 Support arbitrary length fill patterns.
2732 * ld.texinfo (Output Section Fill): Describe fill expressions.
2733 (FILL): Refer to the above.
2734 * ldexp.h (etree_value_type): Add "str" field.
2735 (union etree_union): Add "str" to "value" struct.
2736 (exp_bigintop): Declare.
2737 (exp_get_fill): Declare.
2738 * ldexp.c: Include "safe-ctype.h".
2739 (exp_intop): Set value.str to NULL.
2740 (exp_bigintop): New function.
2741 (new_rel): Pass in "str", and set new.str from it.
2742 (new_rel_from_section): Set new.str to NULL.
2743 (fold_name): Adjust calls to new_rel.
2744 (exp_fold_tree): Likewise.
2745 (exp_get_fill): New function.
2746 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2747 (INT): Returns a "bigint". Adjust all code handling INTs.
2748 (fill_opt): Returns a "fill".
2749 (fill_exp): Split out of fill_opt, use for FILL.
2750 * ldlang.h (struct _fill_type): New.
2751 (fill_type): Move typedef to ldexp.h.
2752 (lang_output_section_statement_type): "fill" is now a pointer.
2753 (lang_fill_statement_type): Likewise.
2754 (lang_padding_statement_type): Likewise.
2755 (lang_add_fill): Now takes a "fill_type *" param.
2756 (lang_leave_output_section_statement): Likewise.
2757 (lang_do_assignments): Likewise.
2758 (lang_size_sections): Likewise.
2759 (lang_leave_overlay_section): Likewise.
2760 (lang_leave_overlay): Likewise.
2761 * ldlang.c: Include ldgram.h after ldexp.h.
2762 (lang_output_section_statement_lookup): Adjust for fill_type change.
2763 (print_fill_statement): Likewise.
2764 (print_padding_statement): Likewise.
2765 (insert_pad): Now takes a "fill_type *" arg.
2766 (size_input_section): Likewise.
2767 (lang_size_sections_1): Likewise.
2768 (lang_size_sections): Likewise.
2769 (lang_do_assignments): Likewise.
2770 (lang_add_fill): Likewise.
2771 (lang_leave_output_section_statement): Likewise.
2772 (lang_leave_overlay_section): Likewise.
2773 (lang_leave_overlay): Likewise.
2774 Adjust all callers of the above function.
2775 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2776 starting with "0X" as well as "0x". Return bigint.str for hex
2777 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2778 Always use base 16 for numbers starting with "$".
2779 * ldmain.c: Include ldgram.h after ldexp.h.
2780 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2781 of bfd_fill_link_order.
2782 * pe-dll.c: Adjust lang_do_assignments calls.
2783 * emultempl/elf32.em: Likewise.
2784 * emultempl/hppaelf.em: Likewise.
2785 * emultempl/ppc64elf.em: Likewise.
2786 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2787 lang_add_assignment call.
2788 * emultempl/pe.em: Likewise.
2790 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2792 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2793 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2794 the pattern in question is not a regexp.
2795 * ldlang.c: Likewise.
2796 * ldlang.h: Likewise.
2797 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2799 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2801 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2802 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2803 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2804 * ldexp.c (exp_data_seg): New variable.
2805 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2806 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2807 (exp_fold_tree): Handle DATA_SEGMENT_END.
2808 Pass allocation_done when recursing instead of hardcoding
2809 lang_allocating_phase_enum.
2810 * ldexp.h (exp_data_seg): New.
2811 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2812 (lang_size_sections): New.
2813 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2814 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2815 if COMMONPAGESIZE is defined.
2816 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2817 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2818 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2819 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2820 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2823 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2825 * Makefile.in: Regenerate.
2827 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2829 * lexsup.c: Remove strtoul declaration.
2831 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2833 * ldmain.c: Add prototype for main ().
2834 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2835 * emultempl/lnk960.em (lnk960_choose_target): Function should
2838 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2840 * ldlang.c (entry_section): New initialised variable.
2841 (lang_finish): Use it.
2842 * ldlang.h (entry_section): Declare.
2843 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2844 entry_section to ".opd".
2846 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2848 * ld.texinfo (Options): Add back in -nostdlib documentation,
2849 which had been inadvertently removed.
2851 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2853 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2854 register section vma to a sane value after emitting error. Make
2855 fatal conditions cause program exit when emitting message.
2857 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2859 * configure.tgt: Add or32-*-rtems target.
2861 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2863 Contribute sh64-elf.
2864 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2865 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2866 in OTHER_RELOCATABLE_SECTIONS.
2867 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2868 * emulparams/shelf32.sh (STACK_ADDR): Define.
2869 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2870 (OTHER_SECTIONS): this. Removed stack settings.
2871 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2872 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2873 2001-03-12 DJ Delorie <dj@redhat.com>
2874 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2875 relaxing if any shmedia or mixed sections are found.
2876 2001-03-07 DJ Delorie <dj@redhat.com>
2877 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2878 einfo. Gracefully decline to output to non-elf formats.
2879 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2880 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2881 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2882 * emulparams/shelf32.sh: Ditto.
2883 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2884 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2886 2001-01-10 Ben Elliston <bje@redhat.com>
2887 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2888 non-portable shell constructs. From Hans-Peter Nilsson.
2889 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2890 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2891 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2892 dependencies to the shell script include chain.
2893 * Makefile.in: Regenerate.
2894 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2895 * emultempl/sh64elf.em: Update and tweak comments.
2896 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2897 make a .cranges section SEC_IN_MEMORY.
2898 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2899 * emultempl/sh64elf.em
2900 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2901 .cranges section found to be necessary; continue and set stored
2902 section contents flags for sections with non-mixed contents.
2903 Use a struct sh64_section_data container and sh64_elf_section_data
2904 to store contents-type flags.
2905 Remove unused update of "isec".
2906 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2907 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2908 access contents-type flags. Assert that the associated container
2909 is initialized. Use that container, not elf_gp_size, to hold size
2910 of linker-generated cranges contents.
2911 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2912 * emultempl/sh64elf.em
2913 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2914 there's already a .cranges section. When section flag difference
2915 is found, don't NULL-check cranges a second time. Tweak comments.
2916 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2917 merging, not max size, as size of ld-generated .cranges contents.
2918 Don't set ELF section flags in output section. When checking for
2919 needed .cranges descriptors, don't use a variable; compare
2920 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2922 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2923 * emultempl/sh64elf.em: New file.
2924 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2925 * Makefile.in: Regenerate.
2926 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2927 (OTHER_RELOCATING_SECTIONS): Ditto.
2928 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2929 * emulparams/shlelf32.sh: Stub out all settings except
2930 OUTPUT_FORMAT. Source shelf32.sh.
2931 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2932 OTHER_RELOCATING_SECTIONS.
2933 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2934 * emulparams/shlelf64.sh: Stub out all settings except
2935 OUTPUT_FORMAT. Source shelf64.sh.
2936 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2937 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2939 (DATA_START_SYMBOLS): Define, provide ___data.
2940 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2941 for consecutive .data section.
2942 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2943 section after .data section.
2944 * emulparams/shlelf64.sh: Ditto.
2945 * emulparams/shelf32.sh: Ditto.
2946 (ALIGNMENT): Define to 8.
2947 * emulparams/shelf32.sh: Ditto.
2948 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2949 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2950 built-in linker scripts.
2951 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2952 * emulparams/shlelf64.sh: New.
2953 * emulparams/shelf64.sh: New.
2954 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2956 * Makefile.am: Add support for shlelf64 and shelf64.
2957 * Makefile.in: Regenerate.
2958 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2959 * configure.tgt (sh64-*-elf*): Add shelf as default.
2960 Add shlelf to targ_extra_emuls.
2961 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2962 * emulparams/shelf32.sh: New file.
2963 * emulparams/shlelf32.sh: New file.
2964 * Makefile.am: Add support for shlelf32 and shelf32.
2965 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2966 * Makefile.in: Regenerate.
2968 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2970 * ldlang.c (lang_reset_memory_regions): Rename from
2971 reset_memory_regions. Change all callers. Make public.
2972 * ldlang.h (lang_reset_memory_regions): Prototype.
2973 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2974 lang_reset_memory_regions before lang_size_sections.
2975 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2976 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2978 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2980 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2981 arithmetic when checking for too many global registers.
2983 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2985 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2986 (ehppanbsd.c): New rule.
2987 * Makefile.in: Regenerate.
2988 * configure.tgt (hppa*-*-netbsd*): New target.
2989 * emulparams/hppalinux.sh: Add comment to check other files
2990 that source this file it is modified, and list which
2992 * emulparams/hppanbsd.sh: New file.
2994 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2996 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2999 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3001 Support on-demand global register allocation from
3002 R_MMIX_BASE_PLUS_OFFSET relocs.
3003 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3004 mmix_set_reg_section_vma. Call
3005 _bfd_mmix_finalize_linker_allocated_gregs.
3006 (mmix_before_allocation): New function.
3007 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3008 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3009 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3010 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3011 before .MMIX.reg_contents.
3012 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3013 (mmo_after_open): New function.
3014 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3015 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
3016 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3018 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3020 * emulparams/or32.sh: New file.
3021 * emulparams/or32elf.sh: New file.
3022 * scripttempl/or32.sc: New file.
3023 * configure.tgt : Add support for or32.
3024 * configure: Regenerate
3025 * Makefile.am: Add support for or32.
3026 * Makefile.in: Regenerate.
3027 * NEWS: Mention support for or32.
3028 * po/ld.pot: Regenerate.
3030 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3031 Mitch Lichtenberg <mpl@broadcom.com>
3033 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3034 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3035 reloc creation (ld --embedded-relocs).
3037 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3039 * configure: Regenerated.
3041 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3043 * Makefile.am (install): Depend on install-info.
3044 * Makefile.in: Regenerate.
3046 2002-01-26 Christian Rose <menthos@menthos.com>
3048 * ldmain.c (main): Use full sentences to ease translation.
3050 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3052 * po/fr.po: Updated version.
3054 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3056 * po/es.po: Updated version.
3058 2002-01-25 Andreas Jaeger <aj@suse.de>
3060 * ldlex.l (yy_input): Correct error check.
3062 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3064 * ldmisc.c (demangle): Put back dots when string not demangled.
3066 2002-01-22 Richard Henderson <rth@redhat.com>
3068 * emulparams/elf64alpha.sh (NOP): Use unop.
3070 2002-01-21 Andreas Jaeger <aj@suse.de>
3072 * ldlex.l: Use fread instead of read.
3074 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3076 * configure.tgt (ia64-*-netbsd*): New target.
3078 2002-01-21 H.J. Lu <hjl@gnu.org>
3080 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3082 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3084 2002-01-18 Andreas Jaeger <aj@suse.de>
3086 * ldver.c (ldversion): Update year.
3088 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3090 * po/ld.pot: Regenerate.
3092 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3094 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3095 * Makefile.in: Regenerate.
3096 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3097 * emultempl/ppc64elf.em: New file.
3099 2002-01-15 DJ Delorie <dj@redhat.com>
3101 * scripttempl/pe.sc: Add support for constructor priorities.
3103 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3105 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3106 * emulparams/avr23xx.sh: Likewise.
3107 * emulparams/avr4433.sh: Likewise.
3108 * emulparams/avr44x4.sh: Likewise.
3109 * emulparams/avr85xx.sh: Likewise.
3110 * emulparams/avrmega103.sh: Likewise.
3111 * emulparams/avrmega161.sh: Likewise.
3112 * emulparams/avrmega603.sh: Likewise.
3113 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3115 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3117 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3118 archive is excluded.
3120 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3122 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3123 (eshelf_nbsd.c): New rule.
3124 (eshlelf_nbsd.c): New rule.
3125 * Makefile.in: Regenerate.
3126 * configure.tgt (sh*le-*-netbsdelf*): New target.
3127 (sh*-*-netbsdelf*): New target.
3128 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3129 * emulparams/shelf_nbsd.sh: New emulation.
3130 * emulparams/shlelf_nbsd.sh: New emulation.
3132 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3134 * po/es.po: New file: Spanish translation.
3135 * configure.in (ALL_LINGUAS): Add es.
3136 * configure: Regenerate.
3138 2002-01-06 John Marshall <jmarshall@acm.org>
3140 * ld.texinfo: Note that --emit-relocs is currently only
3141 implemented for ELF.
3143 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3145 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3146 of bfd_section_list_remove and bfd_section_list_insert macros.
3147 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3148 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3150 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3152 * configure.tgt (x86_64-*-netbsd*): New target.
3154 2001-12-21 Tom Rix <trix@redhat.com>
3156 (gld*_create_output_section_statements): New function.
3157 For -binitfini support.
3158 * emultempl/aix.em (gld*_before_parse): Fix comment.
3159 * emultempl/aix.em (gld*_parse_args): Fix comment.
3161 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3163 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3165 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3167 * configure.tgt (arm-*-netbsdelf*): Add target.
3168 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3169 * emulparams/armelf_nbsd.sh: Added.
3170 * Makefile.am: Add rules for earmelf_nbsd.
3171 * Makefile.in: Regenerate.
3173 2001-12-19 Andreas Jaeger <aj@suse.de>,
3174 Susanne Oberhauser <froh@suse.de>
3176 * configure.host: Add rules for x86_64-*linux-gnu. Change
3177 s390x-linux entry to use gcc to report configuration, replace gcc
3178 with $CC in s390-linux
3180 2001-12-19 Andreas Jaeger <aj@suse.de>
3182 * ld.texinfo (VERSION): Fix markup.
3184 2001-12-18 matthew green <mrg@eterna.com.au>
3186 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3187 (m68kelfnbsd.c): New rule.
3188 * Makefile.in: Regenerate.
3189 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3190 (m68*-*-netbsd*4k*): .. this.
3191 (m68*-*-netbsdelf*): New target.
3192 (m68*-*-netbsd*): Also include ELF support.
3193 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3194 * emulparams/m68kelfnbsd.sh: New emulation.
3196 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3198 * ldgram.y (vers_node): Support anonymous version tags.
3199 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3200 tag is not defined together with non-anonymous versions.
3201 * ld.texinfo: Document it.
3203 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3205 * po/tr.po: New file: Turkish translation.
3206 * configure.in (ALL_LINGUAS): Add tr.
3207 * configure: Regenerate.
3209 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3211 * Makefile.am: Add rules for eelf64alpha_nbsd.
3212 * Makefile.in: Regenerate.
3213 * configure.tgt (alpha*-*-netbsd*): Set
3214 targ_emul to elf64alpha_nbsd.
3215 * emulparams/elf64alpha_nbsd.sh: Added.
3217 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3219 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3220 section_tail when fiddling with section list.
3221 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3222 broken into separate strings to make translation easier.
3223 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3224 fiddling with section list.
3225 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3227 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3229 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3231 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3233 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3235 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3237 * emultempl/elf32.em (finish): Supply output_bfd
3238 to bfd_elf*_discard_info.
3239 (OPTION_EH_FRAME_HDR): Define.
3240 (longopts): Add --eh-frame-hdr.
3241 (parse_args): Handle it.
3242 (list_options): Add --eh-frame-hdr to help.
3243 * emultempl/hppaelf.em (finish): Supply output_bfd
3244 to bfd_elf*_discard_info.
3245 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3247 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3249 * lexsup.c (parse_args): Don't pass shortopts to second call to
3250 getopt functions. Restore optind rather than decrementing before
3251 second call. Remove errind as it now duplicates last_optind.
3253 2001-12-11 Christopher Faylor <cgf@redhat.com>
3255 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3257 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3258 Richard Henderson <rth@redhat.com>
3260 * Makefile.am: Add support for xstormy16.
3261 * configure.tgt: Add support for xstormy16.
3262 * Makefile.in: Regenerate.
3263 * emulparams/elf32xstormy16.sh: New file.
3264 * scripttempl/xstormy16.sc: New file.
3266 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3268 * Makefile.in (LIB_PATH): Make configurable.
3269 (GENSCRIPTS): Set LIB_PATH in environment.
3270 * configure.in: Substitute LIB_PATH.
3271 * configure: Regenerate.
3272 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3273 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3275 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3277 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3278 describing the -N option so that it is easier to translate into
3281 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3283 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3284 statements describing a single option with a single, newline
3285 escaped fprintf. This allows better translation into other
3288 * ldmain.c (add_archive_element): Combine multiple strings
3289 into a single string to permit better translation into other
3292 2001-12-05 Tom Rix <trix@redhat.com>
3294 * Makefile.am: Remove eaixppc64.
3295 * Makefile.in: Regenerate.
3297 2001-12-04 Tom Rix <trix@redhat.com>
3299 * emultempl/aix.em (choose_target): Change default target to
3300 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3302 (gld*_read_file): Fix typo.
3303 (change_symbol_mode): Add prototype.
3306 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3307 * emulparams/aixrs6.sh : Same.
3308 * emulparams/ppcmacos.sh : Same.
3309 * emulparams/aixppc64.sh : Delete file.
3310 * emultempl/aix.em : Formatting changes.
3312 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3314 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3315 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3317 (OTHER_END_SYMBOLS): Fix formatting.
3318 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3319 (OTHER_END_SYMBOLS): Fix formatting.
3321 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3323 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3325 2001-12-02 Tom Rix <trix@redhat.com>
3327 * configure.tgt : Remove eaixppc64 emulations.
3328 * Makefile.in : Remove eaixppc64.c
3329 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3330 (ldemul_default_target): Same.
3331 * emultempl/gld960.em (gld960_choose_target): Same.
3332 * emultempl/gld960c.em (gld960_choose_target): Same.
3333 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3334 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3335 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3336 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3337 * emultempl/aix.em (choose_target): New function. Handle emulation of
3340 2001-11-27 H.J. Lu <hjl@gnu.org>
3342 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3343 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3344 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3345 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3346 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3347 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3348 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3349 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3351 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3354 (REL_SDATA): Likewise.
3355 (REL_SBSS): Likewise.
3356 (REL_SDATA2): Likewise.
3357 (REL_SBSS2): Likewise.
3358 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3361 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3363 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3365 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3367 2001-11-22 H.J. Lu <hjl@gnu.org>
3369 * Makefile.in: Regenerated with automake based on automake
3370 1.4-8 in RedHat 7.1.
3372 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3374 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3375 (config.status): Delete rule.
3376 Add extra dependencies to cover sourced emulparams files.
3377 * Makefile.in: Regenerate.
3379 * scripttempl/elf.sc: Order <section>, <section>.* and
3380 corresponding linkonce sections as seen in input files.
3381 Formatting fixes. Zero vma of all sections if not relocating.
3382 (STACK): Define and insert if STACK_ADDR defined.
3383 (OTHER_RELOCATING_SECTIONS): Delete.
3384 (OTHER_END_SYMBOLS): Define.
3385 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3386 (OTHER_READWRITE_SECTIONS): Likewise.
3387 (OTHER_GOT_SECTIONS): Likewise.
3388 (OTHER_SDATA_SECTIONS): Likewise.
3389 (OTHER_BSS_SECTIONS): Likewise.
3390 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3391 (OTHER_READWRITE_SECTIONS): Likewise.
3392 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3393 (OTHER_READWRITE_SECTIONS): Likewise.
3395 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3396 (STACK_ADDR): Define.
3397 * emulparams/armelf_oabi.sh: As for armelf.sh.
3398 * emulparams/elf32mcore.sh: As for armelf.sh.
3399 * emulparams/h8300elf.sh: As for armelf.sh.
3400 * emulparams/mn10200.sh: As for armelf.sh.
3401 * emulparams/shelf.sh: As for armelf.sh.
3403 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3404 (OTHER_END_SYMBOLS): Define.
3405 * emulparams/m32relf.sh: As for elf32fr30.sh.
3406 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3407 * emulparams/h8300self.sh: As for elf32fr30.sh.
3409 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3410 defines with RELOCATING test.
3411 (OTHER_SDATA_SECTIONS): Likewise.
3412 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3413 (OTHER_END_SYMBOLS): ..this.
3414 * emulparams/crislinux.sh: As for criself.sh.
3416 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3418 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3419 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3420 normal and linkonce sections as seen in input files.
3421 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3422 (TEXT_DYNAMIC): Likewise.
3423 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3424 (OTHER_SDATA_SECTIONS): Likewise.
3425 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3426 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3427 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3428 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3429 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3430 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3431 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3432 sections as seen in input files.
3433 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3434 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3436 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3437 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3438 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3439 (OTHER_SECTIONS): Instead, use this..
3440 (OTHER_END_SYMBOLS): ..and this.
3442 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3443 * emulparams/elf32bsmip.sh: Likewise.
3444 * emulparams/elf32btsmip.sh: Likewise.
3445 * emulparams/elf32ebmip.sh: Likewise.
3446 * emulparams/elf32lmip.sh: Likewise.
3447 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3448 * emulparams/elf32lsmip.sh: Likewise.
3449 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3450 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3451 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3452 * emulparams/elf64btsmip.sh: Likewise.
3453 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3454 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3455 * emulparams/elf32ppclinux.sh: Likewise.
3456 * emulparams/elf32ppcsim.sh: Likewise.
3457 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3458 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3459 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3460 * emulparams/h8300self.sh: Likewise.
3461 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3462 * emulparams/sh.sh: Comment.
3463 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3464 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3465 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3467 2001-11-21 David Heine <dlheine@tensilica.com>
3468 Alan Modra <amodra@bigpond.net.au>
3470 * ldlang.c (map_input_to_output_sections): Replace "break"
3471 accidentally removed with 2001-08-03 change.
3472 (lang_gc_sections_1): Likewise.
3474 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3476 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3478 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3480 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3481 of false when calling lang_size_sections.
3482 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3484 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3486 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3487 function when LDEMUL_FINISH isn't set to the same name. Don't
3488 call ${LDEMUL_FINISH}.
3489 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3490 * emultempl/armelf.em (arm_elf_finish): Call
3491 gld${EMULATION_NAME}_finish.
3492 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3493 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3494 hppaelf_layout_sections_again if necessary.
3495 (need_laying_out): New var.
3496 (hppaelf_layaout_sections_again): Rename to
3497 hppaelf_layout_sections_again. Clear need_laying_out.
3498 (PARSE_AND_LIST_OPTIONS): Format text.
3500 2001-11-14 H.J. Lu <hjl@gnu.org>
3502 * emultempl/armelf.em (arm_elf_finish): Renamed from
3503 gld${EMULATION_NAME}_finish.
3504 (LDEMUL_FINISH): Set to arm_elf_finish.
3506 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3508 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3509 (struct ld_emulation_xfer_struct): Use it.
3511 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3513 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3514 additional symbols referenced by newer crt0.o files from HP.
3516 2001-11-12 Anthony Green <green@redhat.com>
3518 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3520 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3522 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3523 * Makefile.in: Regenerate.
3525 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3527 * ld.texinfo: Use @command for commands, @option for options.
3528 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3530 * Makefile.in: Rebuild.
3532 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3534 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3535 Add support for targets.
3537 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3539 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3540 * configure: Regernate.
3541 * po/fr.po: New file.
3542 * po/sv.po: New file.
3544 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3546 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3547 as little endian default and to support big endian.
3549 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3551 * ld.texinfo (Options): Document new option, -nostdlib.
3552 * lexsup.c (OPTION_NOSTDLIB): New definition.
3553 (ld_options): Add entry for "nostdlib".
3554 (parse_args): Handle OPTIONS_NOSTDLIB.
3555 * ldfile.c (ldfile_add_library_path): Don't add directories
3556 to the search path if they weren't specified on the command line
3557 and -nostdlib was specified.
3558 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3560 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3562 * lexsup.c (parse_args): Prevent infinite parsing loop when
3563 "-rpath.a" is specified on the command line.
3564 Replace calls to fprintf with calls to einfo.
3566 2001-10-31 John Marshall <jmarshall@acm.org>
3568 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3569 appear only once across all the linker scripts involved in a link
3570 invocation no longer applies. Make the documentation reflect
3573 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3575 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3577 (sh-*-linux*): Added targ_extra_libpath.
3579 2001-10-31 David Heine <dlheine@tensilica.com>
3581 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3582 for padding statements.
3584 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3586 * configure.tgt (mmix-*-*): New target.
3587 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3588 Add dependencies to match.
3589 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3590 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3591 scripttempl/mmo.sc: New files.
3592 * gen-doc.texi: @set MMIX.
3593 * ld.texinfo: Ditto.
3594 [MMIX] Add MMIX node.
3595 * Makefile.in: Regenerate.
3597 2001-10-29 Kazu Hirata <kazu@hxi.com>
3599 * ldlang.c: Fix a comment typo.
3601 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3603 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3604 entries, and match *-*-linux*.
3606 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3608 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3609 with ldlex_script, ldlex_popstate.
3610 (ifile_p1): Likewise.
3611 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3613 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3614 to 1. Don't BEGIN(SCRIPT).
3615 (lex_redirect): Similarly.
3616 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3618 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3620 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3621 __EH_FRAME_END__ and accept eh frames into data section.
3622 Add ctor and dtor sections.
3624 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3626 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3627 (auto-export): Fix indentation.
3629 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3631 * pe-dll.c (autofilter_objectlist): Add startup objects
3633 (auto-export): Constify char * p.
3634 Extract file basename and use strcmp rather than ststr
3637 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3639 * ldmain.c (get_emulation): Improve comment about the handling
3642 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3644 * po/POTFILES.in: Regenerate.
3646 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3648 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3649 -z nocopyreloc and -z nocombreloc usage strings.
3651 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3653 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3656 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3658 * scripttempl/armaout.sc: Place .bss section after end of aligned
3659 data section to match behaviour of aout code in constructrion of
3662 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3664 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3665 startup files for mingw32 dlls to list.
3667 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3669 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3671 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3673 * configure.tgt (targ): Add arm9e-*-elf.
3675 2001-10-05 H.J. Lu <hjl@gnu.org>
3677 * genscripts.sh: Fix a typo in the last change.
3679 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3681 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3682 -z nocombreloc in usage.
3684 2001-10-03 Jim Blandy <jimb@redhat.com>
3686 * genscripts.sh: Include a comment at the top of each generated
3687 script, explaining its purpose.
3689 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3691 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3692 * NEWS: Mention -z nocopyreloc.
3693 * ld.texinfo (Options): Describe nocopyreloc.
3695 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3697 * configure: Regenerate.
3699 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3701 * ldver.h (ld_program_version): Remove declaration.
3702 * lexsup.c (parse_args): Move printing of copyright message..
3703 * ldver.c (ldversion): .. to here.
3704 Use BFD_VERSION_STRING in place of BFD_VERSION.
3705 (ld_program_version): Remove.
3706 * Makefile.am (Makefile): Depend on bfd/configure.in.
3708 * Makefile.in: Regenerate.
3710 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3712 * Makefile.am: Update dependencies with "make dep-am".
3713 * Makefile.in: Regenerate.
3715 2001-09-29 John Reiser <jreiser@BitWagon.com>
3717 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3718 * lexsup.c: Add --no-define-common commandline option.
3719 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3720 * ldlex.l: Likewise.
3721 * ld.h: Add command_line.inhibit_common_definition.
3722 * ldmain.c (main): Initialize.
3723 * ld.texinfo: Document.
3725 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3727 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3729 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3731 * ldmisc.c (USE_STDARG): Remove.
3732 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3737 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3738 declarations. Update copyright.
3740 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3742 * pe-dll.c: Remove obsoleted declaration of
3743 pe_get_data_import_dll_name.
3744 (pe_create_import_fixup): Fix thinko.
3746 * ld.texinfo(enable-auto-import): Clarify the explanation.
3748 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3750 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3751 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3752 DLL_SUPPORT controlled code.
3754 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3756 * emultempl/pe.em(pe_data_import_dll): Make static.
3757 (pe_get_data_import_dll_name): New accessor function.
3758 * pe-dll.c(pe_create_import_fixup): call
3759 pe_get_data_import_dll_name() from pe.em, instead of
3760 directly accessing pe_data_import_dll variable from pe.em.
3762 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3764 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3765 (def_file_add_directive): Use ISSPACE instead of isspace.
3766 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3767 isdigit/isxdigit/isalpha/isalnum.
3768 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3769 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3770 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3771 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3773 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3774 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3776 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3777 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3778 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3779 (ctor_prio): Use ISDIGIT instead of isdigit.
3780 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3781 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3782 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3784 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3785 (stricpy): Use TOLOWER instead of isupper/tolower.
3786 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3787 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3788 (lex_warn_invalid): Use ISPRINT instead of isprint.
3789 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3790 (main): For gettext, also set the LC_CTYPE locate facet.
3791 (add_keepsyms_file): Use ISSPACE instead of isspace.
3792 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3793 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3794 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3795 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3796 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3797 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3798 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3799 (quoteput): Use ISSPACE instead of isspace.
3800 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3803 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3805 * deffilep.y (def_stash_module): Constify "name" param.
3807 * pe-dll.c: Replace CONST with const throughout.
3808 (quick_symbol): Constify "n1", "n2", "n3" params.
3809 (make_singleton_name_thunk): Constify "import" param. Make
3810 "buffer_len" a size_t.
3811 (make_import_fixup_entry): Constify "name", "fixup_name",
3812 "dll_symname" params.
3813 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3814 (pe_get32): Likewise.
3815 (pe_implied_import_dll): Likewise.
3817 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3818 (sort_by_section_name): Likewise.
3820 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3821 (make_import_fixup): Cast printf arg, rel->address to long rather
3823 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3825 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3827 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3828 defines BufferSize. Increase buffer size by one.
3830 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3832 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3834 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3836 * configure.tgt: Add arm-openbsd target.
3838 2001-09-12 H.J. Lu <hjl@gnu.org>
3840 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3842 (ALL_64_EMULATIONS): Here.
3843 * Makefile.in: Regenerated.
3845 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3847 * emultempl/pe.em(make_import_fixup): change signature to
3848 take asection as well as arelec; we need this for proper
3849 error reporting. Only call pe_create_import_fixup() if
3850 there is no attempt to add a constant addend to the reloc;
3851 otherwise, report error condition.
3852 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3853 since final argument is a pointer to make_import_fixup().
3854 Change call to cb() to match make_import_fixup() signature.
3855 (make_import_fixup_mark): make buffer_len unsigned.
3856 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3858 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3860 * ld.texinfo: add verbose documentation for auto-import
3861 direct-addressing workaround, to compliment the terse
3864 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3866 * scripttempl/v850.sc: Add gcc_except_table sections.
3868 2001-09-11 Jeffrey A Law (law@cygnus.com)
3870 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3871 * emulparams/h8300self.sh: Similarly.
3873 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3875 * ld.texinfo (Options, --stack): Correct default value for stack
3878 2001-09-05 Tom Rix <trix@redhat.com>
3880 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3882 2001-09-03 Andreas Jaeger <aj@suse.de>
3884 * emultempl/beos.em: Declare prototypes for comparions functions,
3887 2001-09-02 Andreas Jaeger <aj@suse.de>
3889 * emultempl/aix.em: Add missing prototype.
3890 * emultempl/lnk960.em: Likewise.
3891 * emultempl/vanilla.em: Likewise.
3892 * emultempl/armcoff.em: Likewise.
3893 * emultempl/armelf_oabi.em: Likewise.
3894 * emultempl/beos.em: Likewise.
3895 * emultempl/gld960c.em: Likewise.
3896 * emultempl/gld960.em: Likewise.
3898 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3899 for prototype declaration.
3901 2001-08-31 Eric Christopher <echristo@redhat.com>
3902 Jason Eckhardt <jle@redhat.com>
3904 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3906 2001-08-31 Andreas Jaeger <aj@suse.de>
3908 * emultempl/pe.em: Add missing prototypes.
3909 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3910 pe_find_data_imports.
3911 (pr_sym): Add unused attribute.
3913 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3915 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3916 default from coff to elf.
3918 2001-08-29 Jeff Law <law@redhat.com>
3920 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3922 * emulparams/h8300self.sh: Similarly.
3924 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3926 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3928 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3929 * configure.tgt (h8300-*-elf*): New case.
3930 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3931 * emulparams/h8300self.sh: New file.
3932 * Makefile.in: Regenerated.
3934 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3936 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3939 2001-08-27 Linus Nordberg <linus@swox.com>
3940 Alan Modra <amodra@bigpond.net.au>
3942 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3943 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3945 * Makefile.in: Regenerate.
3946 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3947 entries to correct alphabetical position.
3948 * emulparams/elf64ppc.sh: New.
3949 * emulparams/elf64lppc.sh: New.
3951 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3953 * ldmain.c (main): Declare BSIZE as static.
3955 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3957 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3958 into .rel.dyn resp. .rela.dyn if combreloc.
3959 (get_script): If .x linker script is equal to .xn, only put it
3960 once into the binary.
3961 Add .xc and .xsc scripts.
3962 (parse_args): Handle -z combreloc and -z nocombreloc.
3963 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3964 For .xc and .xsc scripts put all .rel* or .rela* input sections
3965 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3966 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3968 Strip trailing whitespace from script.
3969 Generate .xc and .xsc scripts if requested.
3970 * ldmain.c (main): Initialize link_info.combreloc and
3971 link_info.spare_dynamic_tags.
3972 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3973 (ld_options): Add --spare-dynamic-tags option.
3974 (parse_args): Likewise.
3975 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3976 * ldint.texinfo: Document .xc and .xsc linker scripts.
3977 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3979 2001-08-22 H.J. Lu <hjl@gnu.org>
3981 * emulparams/elf32fr30.sh: Add a newline.
3983 2001-08-21 Andreas Jaeger <aj@suse.de>
3985 * deffilep.y: Add missing prototypes.
3986 * pe-dll.c: Likewise.
3988 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3990 * ldlang.c (insert_pad): Fix typos in last patch.
3992 * ldlang.c: When traversing lang_statement_union_type lists,
3993 consistently use "header.next" rather than "next".
3994 * mpw-eppcmac.c: Likewise.
3995 * emultempl/beos.em: Likewise.
3996 * emultempl/hppaelf.em: Likewise.
3997 * emultempl/pe.em: Likewise.
3998 * ldlang.h (union lang_statement_union): Remove "next" field.
4000 * ldlang.c (insert_pad): Use offsetof macro.
4001 (lang_size_sections): Always neuter padding statements.
4002 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4004 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4005 passed to lang_size_sections.
4006 (pe_exe_fill_sections): Likewise.
4007 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4008 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4010 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4012 * emultempl/aix.em: Formatting fixes.
4014 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4016 * ldlang.c (insert_pad): Make use of an existing pad statement if
4017 available. Move code calculating alignment, adjusting section
4018 alignment power, and adjusting dot to ..
4019 (size_input_section): .. here. Remove unused relax param.
4020 (lang_size_sections): Change boolean `relax' param to boolean *.
4021 Adjust call to size_input_section. Make use of insert_pad to
4022 place pad after the assignment statement. If relaxing, zap
4024 (reset_memory_regions): Reset output_bfd section sizes too.
4025 (relax_again): Move to..
4026 (lang_process): ..here. Adjust call to lang_size_sections, and
4027 remove duplicated code.
4028 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4030 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4032 * ld.texinfo: Document that fill values now use the four least
4034 * emulparams/elf32fr30.sh (NOP): Update.
4035 * emulparams/elf32mcore.sh: Likewise.
4036 * emulparams/elf64_s390.sh: Likewise.
4037 * emulparams/elf_i386.sh: Likewise.
4038 * emulparams/elf_i386_be.sh: Likewise.
4039 * emulparams/elf_i386_chaos.sh: Likewise.
4040 * emulparams/elf_i386_ldso.sh: Likewise.
4041 * emulparams/elf_s390.sh: Likewise.
4042 * emulparams/elf_x86_64.sh: Likewise.
4043 * emulparams/i386moss.sh: Likewise.
4044 * emulparams/i386nw.sh: Likewise.
4045 * emulparams/m68kelf.sh: Likewise.
4046 * scripttempl/elf.sc: Update NOP comment.
4047 * scripttempl/elfi370.sc: Likewise.
4048 * scripttempl/elfm68hc11.sc: Likewise.
4049 * scripttempl/elfm68hc12.sc: Likewise.
4050 * scripttempl/nw.sc: Likewise.
4052 2001-08-15 Tom Rix <trix@redhat.com>
4054 * ldgram.y (saved_script_handle): Initialize to NULL.
4055 * ldmain.c (main): Change check on saved_script_handle.
4057 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4059 * emultempl/elf32.em: Formatting fixes.
4060 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4061 looking at sec->owner.
4062 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4063 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4064 unused code, and reorganize orphan section placement code.
4066 * ldlang.c (wild_doit): Rename to lang_add_section.
4067 * ldlang.h: Here too.
4068 * mpw-elfmips.c: And here.
4069 * emultempl/beos.em: And here.
4070 * emultempl/elf32.em: And here.
4071 * emultempl/hppaelf.em: And here.
4072 * emultempl/pe.em: And here.
4074 2001-08-13 Richard Henderson <rth@redhat.com>
4076 * emultempl/needrelax.em: New file.
4077 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4078 * Makefile.am (eelf64_ia64.c): Depend on it.
4079 * Makefile.in: Rebuild.
4081 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4083 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4084 output_section is set non-NULL.
4086 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4087 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4088 needlessly create an output_section_statement. Treat a correctly
4089 named output_section_statement with NULL bfd_section as compatible.
4091 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4093 * emultempl/generic.em: Support EXTRA_EM_FILE.
4094 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4095 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4096 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4097 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4098 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4099 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4100 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4101 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4102 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4103 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4105 2001-08-12 Richard Henderson <rth@redhat.com>
4107 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4108 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4109 scripttempl/v850.sc: Keep .jcr data.
4111 2001-08-12 H.J. Lu <hjl@gnu.org>
4112 Andrew Haley <aph@cambridge.redhat.com>
4113 Nick Clifton <nickc@redhat.com>
4115 * ldgram.y (had_script): Change name to saved_script_handle.
4116 Change type to file handle.
4117 * ld.h (had_script): Rename and retype.
4118 * ldfile.c (ldfile_open_command_file): Save the file handle
4119 used in saved_script_handle.
4120 * lexsup.c (parse_args): Do not allow -c option to alter
4121 saved_script_handle.
4122 * ldmain.c (main): Print out the linker script used if
4123 --verbose is given. Check saved_script_handle to obtain the
4124 external linker script used, or if NULL, dump the builtin
4126 * ld.texinfo: Document that --verbose now dumps the linker
4127 script used, regardless of whether it was an internal or an
4130 2001-08-10 Andreas Jaeger <aj@suse.de>
4132 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4134 * configure: Regenerate.
4136 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4138 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4140 * scripttempl/elf.sc: Move non-text .dynamic section before
4141 .plt/.got/.sdata* group.
4142 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4143 (OTHER_SDATA_SECTIONS): Add.
4144 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4146 * emulparams/crislinux.sh: Likewise.
4147 * emulparams/elf32b4300.sh: Likewise.
4148 * emulparams/elf32bmip.sh: Likewise.
4149 * emulparams/elf32bmipn32.sh: Likewise.
4150 * emulparams/elf32bsmip.sh: Likewise.
4151 * emulparams/elf32btsmip.sh: Likewise.
4152 * emulparams/elf32ebmip.sh: Likewise.
4153 * emulparams/elf32elmip.sh: Likewise.
4154 * emulparams/elf32l4300.sh: Likewise.
4155 * emulparams/elf32lmip.sh: Likewise.
4156 * emulparams/elf32lsmip.sh: Likewise.
4157 * emulparams/elf32ltsmip.sh: Likewise.
4158 * emulparams/elf64bmip.sh: Likewise.
4159 * emulparams/elf64btsmip.sh: Likewise.
4160 * emulparams/elf64ltsmip.sh: Likewise.
4162 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4164 * genscripts.sh: Source the emulparams script before each output
4165 script is generated so that variables like `RELOCATING' may affect
4166 variables defined in the emulparams script.
4168 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4170 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4173 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4174 ie. iterate over wild_statement.section_list.
4175 (gld${EMULATION_NAME}_place_orphan): Likewise.
4177 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4179 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4180 .fini[0-4] sections used by _exit
4181 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4182 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4183 * scripttempl/elfm68hc11.sc: Likewise.
4185 2001-08-03 H.J. Lu <hjl@gnu.org>
4187 * emultempl/beos.em (init): Add the missing initialization.
4189 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4191 * ld.texinfo (Input Section Basics): Clarify ordering of output
4193 * ldlang.c (callback_t): Add wildcard_list param.
4194 (walk_wild_section): Remove "section" param. Rewrite for
4195 lang_wild_statement_type change. Remove unique_section_p test.
4196 (walk_wild_file): Remove "section" param.
4197 (walk_wild): Remove "section" and "file" params.
4198 (lang_gc_wild): Likewise.
4199 (wild): Likewise. Modify for lang_wild_statement_type change.
4200 (wild_sort): Likewise. Add "sec" param.
4201 (gc_section_callback): Likewise.
4202 (output_section_callback): Likewise. Do unique_section_p test.
4203 (map_input_to_output_sections): Modify call to wild.
4204 (lang_gc_sections_1): Likewise.
4205 (print_wild_statement): Modify for lang_wild_statement_type
4207 (lang_add_wild): Replace filename, filenames_sorted param with
4208 filespec. Replace section_name, sections_sorted,
4209 exclude_filename_list with section_list.
4210 * ldlang.h (lang_add_wild): Here too.
4211 (lang_wild_statement_type): Replace section_name, sections_sorted,
4212 and exclude_filename_list with section_list.
4213 * ldgram.y (current_file): Delete.
4214 (%union): Add wildcard_list.
4215 (file_NAME_list): Set type to wildcard_list. Build a linked list
4216 rather than calling lang_add_wild for each entry.
4217 (input_section_spec_no_keep): Call lang_add_wild here instead.
4218 * ld.h (struct wildcard_list): Declare.
4219 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4221 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4223 * ldmain.c (main): initialize link_info.pei386_auto_import
4224 * pe-dll.c: new tables for auto-export filtering
4225 (auto_export): change API, pass abfd for contextual filtering.
4226 Loop thru tables of excluded symbols instead of comparing
4229 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4231 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4232 static variable current_sec (static struct sec *). Add
4233 forward declaration for add_bfd_to_link.
4234 (process_def_file): Don't export undefined symbols. Do not
4235 export symbols starting with "_imp__". Call auto_export()
4237 (pe_walk_relocs_of_symbol): New function.
4238 (generate_reloc): add optional extra debugging
4239 (pe_dll_generate_def_file): eliminate extraneous initial blank
4241 (make_one): enlarge symtab to make room for __nm__ symbols
4242 (DATA auto-import support).
4243 (make_singleton_name_thunk): New function.
4244 (make_import_fixup_mark): New function.
4245 (make_import_fixup_entry): New function.
4246 (pe_create_import_fixup): New function.
4247 (add_bfd_to_link): Specify that 'name' argument is a CONST
4249 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4250 declare new functions pe_walk_relocs_of_symbol and
4251 pe_create_import_fixup.
4252 * emultempl/pe.em: add new options --enable-auto-import,
4253 --disable-auto-import, and --enable-extra-pe-debug.
4254 (make_import_fixup): New function.
4255 (pe_find_data_imports): New function.
4256 (pr_sym): New function.
4257 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4258 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4261 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4263 * ld.texinfo: add additional documentation for
4264 --export-all-symbols. Document --out-implib,
4265 --enable-auto-image-base, --disable-auto-image-base,
4266 --dll-search-prefix, --enable-auto-import, and
4267 --disable-auto-import.
4268 * ldint.texinfo: Add detailed documentation on auto-import
4271 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4273 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4276 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4278 * Makefile.am: Update dependencies with "make dep-am".
4279 * Makefile.in: Regenerate
4281 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4283 * ldcref.c (check_section_sym_xref): New function.
4284 (check_nocrossrefs): Call it.
4285 (check_nocrossref): Interate over h->refs here instead of..
4286 (check_refs): ..here. Pass in the symbol name, section, and bfd
4287 rather than hash_entry pointers.
4288 (struct check_refs_info): Keep symbol name rather than hash entry.
4290 (check_reloc_refs): Tweak for above changes in check_refs_info.
4291 Only report references to section syms when symname is NULL to
4292 prevent duplicate messages for the same reloc.
4294 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4296 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4297 available. Do not print NULL trees.
4298 (exp_print_token): Print unknown tokens with values > 126 as
4299 decimal values not ASCII characters.
4301 * ldlang.c (lang_leave_overlay): If a region is specified assign
4302 it to all sections inside the overlay unless they have been
4303 assigned to the own, non-default, memory region.
4305 * README: Add header for consistency with other README files.
4307 2001-07-14 H.J. Lu <hjl@gnu.org>
4309 * emultempl/elf32.em (output_prev_sec_find): Never return
4310 bfd_abs_section_ptr, bfd_com_section_ptr nor
4311 bfd_und_section_ptr.
4313 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4315 * Makefile.am (em32relf.c): Change dependency from generic.em to
4317 * Makefile.in: Regenerate.
4319 2001-07-14 matthew green <mrg@eterna.com.au>
4321 * configure.tgt (i386-*-netbsdelf*): New target.
4322 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4324 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4326 * emultempl/elf32.em (output_prev_sec_find): New.
4327 (place_orphan): Use it.
4329 2001-07-11 H.J. Lu <hjl@gnu.org>
4331 * ldmain.c (main): Fix typos in the last change.
4333 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4335 * ldmain.c (main): Disallow -F and -f without -shared.
4337 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4339 * emultempl/pe.em (after_open): Check for the output_bfd not
4340 having any coff_data structure allocated to it.
4342 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4344 * emultempl/elf32.em: Do not assuming that contents of the buffer
4345 returned from basename function will remain unchanged accross other
4348 2001-07-03 H.J. Lu <hjl@gnu.org>
4350 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4351 2001-07-03. It creates dynamic entries even for static binaries.
4353 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4355 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4356 (DYNAMIC): Use it to reserve few dynamic entries for
4359 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4361 * emulparams/hppa64linux.sh: New file.
4362 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4363 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4364 (ehppa64linux.c): Add rule to make it.
4366 * Makefile.in: Regenerate.
4368 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4370 * ld.texinfo (Options, -r): Mention restrictions when using
4371 different object formats.
4373 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4375 * ldlang.c (lang_check): Emit fatal error if relocatable link
4376 between different object flavours with relocations in input.
4378 2001-06-19 H.J. Lu <hjl@gnu.org>
4380 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4381 (--version-script): Mention the language support.
4383 2001-06-19 H.J. Lu <hjl@gnu.org>
4385 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4387 2001-06-18 H.J. Lu <hjl@gnu.org>
4389 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4390 (diststuff): Add $(MANS).
4391 * Makefile.in: Regenerated.
4395 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4397 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4398 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4399 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4400 * ld.h (args_type): Remove member export_dynamic. All users
4401 changed to use struct bfd_link_info member.
4403 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4404 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4405 * Makefile.in: Regenerate.
4407 2001-06-18 H.J. Lu <hjl@gnu.org>
4409 * ldlang.c (init_os): Add the newline to the einfo call.
4410 (lang_check): Likewise.
4411 (lang_do_version_exports_section): Likewise.
4413 2001-06-15 H.J. Lu <hjl@gnu.org>
4415 * lexsup.c (parse_args); Save optind to report unrecognized
4418 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4420 * ldlang.c (lang_check): Emit fatal error if relocatable link
4421 between different object flavours.
4423 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4424 Set new link_info member export_dynamic.
4425 * ldmain.c (main): Initialize new link_info member export_dynamic.
4427 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4429 * ldlang.c (walk_wild): Only call walk_wild_file if
4430 lookup_name returns something.
4431 (lookup_name): If load_symbols fails, return NULL.
4432 (load_symbols): Change to a boolean function.
4433 (open_input_bfds): If load_symbols fails then do not make the
4436 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4438 * ldlang.c (record_bfd_errors): Remove.
4440 * emultempl/aix.em: Fix copyright dates.
4442 2001-06-07 Andreas Jaeger <aj@suse.de>
4444 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4445 (TEXT_START_ADDR): Likewise.
4447 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4449 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4451 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4453 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4455 2001-05-31 H.J. Lu <hjl@gnu.org>
4457 * ldlang.c (open_input_bfds): Don't change the bfd error
4458 handler whilst loading symbols.
4460 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4462 * configure.tgt: Remove i370-mvs architecture, it is not currently
4465 2001-05-25 H.J. Lu <hjl@gnu.org>
4467 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4468 like emulparams/aixppc.sh.
4470 2001-05-25 H.J. Lu <hjl@gnu.org>
4472 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4473 setting of output_filename after bfd_scan_arch.
4474 * emultempl/pe.em: Likewise.
4476 2001-05-25 H.J. Lu <hjl@gnu.org>
4478 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4479 like emulparams/aixppc.sh.
4481 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4482 instead of ${srcdir}/emultempl/stringify.sed.
4484 2001-05-25 Timothy Wall <twall@oculustech.com>
4486 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4489 2001-05-25 Alan Modra <amodra@one.net.au>
4491 * configure.host: Replace linuxoldld with linux*oldld.
4492 * configure.tgt: Likewise.
4494 2001-05-24 H.J. Lu <hjl@gnu.org>
4496 * emultempl/stringify.sed: Removed again.
4498 2001-05-24 H.J. Lu <hjl@gnu.org>
4500 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4501 (gld${EMULATION_NAME}_before_parse): Initialize
4502 ldfile_output_architecture, ldfile_output_machine and
4503 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4504 * emultempl/beos.em: Likewise.
4505 * emultempl/elf32.em: Likewise.
4506 * emultempl/linux.em: Likewise.
4507 * emultempl/mipsecoff.em: Likewise.
4508 * emultempl/pe.em: Likewise.
4509 * emultempl/sunos.em: Likewise.
4511 2001-05-24 Tom Rix <trix@redhat.com>
4513 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4514 udate import file format.
4515 (change_symbol_mode) New, same
4516 (is_syscall) New, same
4517 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4518 * emulparams/aixppc64.sh : same
4519 * emulparams/aixrs6.sh : same
4520 * emulparams/ppcmacos.sh : same
4521 * emultempl/aix.em : use strtoull to parse options
4522 * Makefile.am : add eaixppc64 emulation for xcoff64
4523 * Makefile.in : same
4524 * configure.tgt : same
4526 * scripttempl/aix.sc : default text section offset to 0x10000000
4527 default data section offset to 0x20000000
4528 add .sv3264 and .sv64 pseudo sections
4529 loader and debug sections use the currect section offset.
4531 * emultempl/aix.em : Add xcoff64 support
4532 Add -binitfini support
4533 (gld${EMULATION_NAME}_before_parse) -binitfini
4534 (gld${EMULATION_NAME}_parse_args) same
4535 (gld${EMULATION_NAME}_before_allocation) format change for special
4538 * emulparams/aixppc64.sh : New file for xcoff64 support
4540 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4542 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4543 variable to avoid non-portable shell construct.
4545 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4547 * ldmain.c (get_emulation): Add -mips5 command line argument.
4549 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4551 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4552 (ELF_INTERPRETER_NAME): Define it.
4553 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4555 * configure.tgt (targ_emul, targ_extra_emuls)
4556 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4557 as primary, elf_i386 as extra.
4558 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4559 (eelf_i386_ldso.c): New rule.
4560 * Makefile.in: Rebuilt.
4562 2001-05-22 Nick Clifton <nickc@redhat.com>
4564 * lexsup.c (ld_options): Allow -I to be an alias for
4565 --dynamic-linker. This is for Solaris compatability.
4566 * ld.texinfo: Document that -I can be used.
4569 2001-05-16 Alan Modra <amodra@one.net.au>
4571 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4572 whether an input section is the first one assigned to an output
4574 Assorted formatting fixes.
4576 2001-05-14 DJ Delorie <dj@delorie.com>
4578 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4579 * Makefile.in: Ditto.
4581 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4583 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4584 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4586 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4588 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4590 * ldlang.c (lang_process): Call bfd_merge_sections.
4592 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4594 * ldgram.y: Fix typo.
4596 2001-05-03 H.J. Lu <hjl@gnu.org>
4598 * emultempl/elf32.em: Include "libiberty.h".
4599 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4600 basename of the bfd filename.
4601 (gld${EMULATION_NAME}_stat_needed): Likewise.
4602 (gld${EMULATION_NAME}_try_needed): Likewise.
4603 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4605 2001-05-02 H.J. Lu <hjl@gnu.org>
4607 * emultempl/pe.em: Include <ctype.h>.
4609 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4611 * emulparams/elf32openrisc.sh: New file.
4613 * Makefile.am: Add OpenRISC target.
4614 * Makefile.in: Regenerated.
4616 * configure.tgt: Add openrisc-*-* mapping.
4618 2001-05-02 Nick Clifton <nickc@redhat.com>
4620 * emultempl/aix.em: Replace buystring with xstrdup.
4621 * emultempl/beos.em: Replace buystring with xstrdup.
4623 2001-05-02 H.J. Lu <hjl@gnu.org>
4625 * ldfile.c: Include "libiberty.h".
4626 * ldlex.l: Likewise.
4628 * ldmisc.c (buystring): Removed.
4629 * ldmisc.h: Likewise.
4631 * ldfile.c: Replace buystring with xstrdup.
4632 * ldlang.c: Likewise.
4633 * ldlex.l: Likewise.
4634 * ldmain.c: Likewise.
4635 * ldmisc.c: Likewise.
4636 * lexsup.c: Likewise.
4637 * mpw-eppcmac.c: Likewise.
4639 2001-04-30 Andreas Jaeger <aj@suse.de>
4641 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4643 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4645 * ldlang.c (load_symbols): Give emulation a chance
4646 to process unrecognized file before fatal error is
4647 reported, not after.
4649 2001-04-27 Sean McNeil <sean@mcneil.com>
4651 * configure.tgt: Add arm-vxworks target.
4652 * scripttempl/armcoff.sc: Support .text or .data as a section name
4656 2001-04-13 J.T. Conklin <jtc@redback.com>
4658 * ld.texinfo: Document --fatal-warnings.
4661 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4662 warnings have been turned into errors.
4663 * lexsup.c (OPTION_WARN_FATAL): Define.
4664 (ld_options): Entry for --fatal-warnings.
4665 (parse_args): Handle OPTION_WARN_FATAL.
4666 * ld.h (ld_config_type): Add fatal_warnings field.
4668 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4670 * ldmain.c (main): Default to discard_sec_merge.
4671 * lexsup.c (OPTION_DISCARD_NONE): Define.
4672 (ld_options): Add --discard-none.
4673 (parse_args): Handle OPTION_DISCARD_NONE.
4674 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4675 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4676 all its input sections match.
4678 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4680 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4681 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4682 (eelf32ltsmip.c): New target.
4683 (eelf64btsmip.c): Likewise.
4684 (eelf64ltsmip.c): Likewise.
4685 * Makefile.in: Regenerated.
4687 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4689 (mips*-*-linux-gnu*): Likewise.
4691 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4693 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4695 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4698 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4700 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4701 correct value of __Stext here.
4702 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4705 * emulparams/crislinux.sh: Remove FIXME.
4707 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4709 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4710 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4712 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4714 * configure.tgt (cris-*-*): Change default emulation to criself.
4715 (cris-*-*aout*): New rule.
4717 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4719 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4720 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4722 2001-03-26 Andreas Jaeger <aj@suse.de>
4724 * ld.texinfo (Overview): Fix syntax in texi code.
4726 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4728 * ld.texinfo: Put @c man indications to generate the ld man page.
4729 When generating man, define all the variables. Define SEEALSO
4730 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4731 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4732 (ld.1): Generate from ld.texinfo.
4733 * Makefile.in: Regenerate.
4735 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4737 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4738 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4740 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4742 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4743 is an absolute path look only for this file and not along the path.
4745 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4747 * emultempl/elf32.em (OPTION_GROUP): New macro.
4748 Add new option Bgroup to longopts.
4749 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4750 (gld*_list_options): Add -Bgroup and -z defs.
4751 * ld.1: Document -Bgroup and -z defs.
4752 * ld.texinfo: Likewise.
4754 2001-03-07 Michael Meissner <meissner@redhat.com>
4756 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4757 with sections created by -fdata-sections.
4758 (.dynbss,.bss): Ditto.
4760 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4762 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4763 after_allocation_default, not gld..._before_allocation.
4765 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4767 * configure.in (BFD_VERSION): New.
4768 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4769 * configure: Regenerate.
4770 * Makefile.am: Run "make dep-am"
4771 * Makefile.in: Regenerate.
4773 2001-02-26 Timothy Wall <twall@cygnus.com>
4775 * emulparams/elf64_aix.sh: Add additional read-only sections;
4776 uncomment lines which are now required.
4778 2001-02-26 H.J. Lu <hjl@gnu.org>
4780 * ldlang.c (open_input_bfds): Set the bfd error handler so
4781 that problems can be caught whilst loading symbols.
4782 (record_bfd_errors): New function: Report BFD errors and mark
4783 the executable output as being invalid.
4785 2001-02-22 Timothy Wall <twall@cygnus.com>
4787 * configure.host: Add configuration for ia64-*-aix*.
4788 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4789 Add dependencies for eelf64_aix.c.
4790 * Makefile.in: Regenerate.
4791 * configure.tgt: Add ia64-*-aix* mapping.
4792 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4794 2001-02-20 H.J. Lu <hjl@gnu.org>
4796 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4797 false if we found the file.
4799 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4801 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4802 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4804 2001-02-18 lars brinkhoff <lars@nocrew.org>
4806 * Makefile.am: Add PDP-11 target.
4807 * configure.tgt: Likewise.
4808 * emulparams/pdp11.sh: New file.
4810 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4812 * configure.host: Add a generic FreeBSD configuration entry such that
4813 all [modern] FreeBSD systems on all platforms will look the same.
4815 2001-02-14 H.J. Lu <hjl@gnu.org>
4817 * configure.tgt: Remove mention of earmelf_linux26.
4819 2001-02-13 Richard Henderson <rth@redhat.com>
4821 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4823 2001-02-13 H.J. Lu <hjl@gnu.org>
4825 * ldexp.h (node_type): Add etree_provided.
4826 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4827 type to etree_provided if defined by PROVIDE. Allow updating
4829 (exp_print_tree): Handle etree_provided.
4830 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4833 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4835 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4836 .IA_64.unwind.* pattern to unwind table section and
4837 .IA_64.unwind_info* pattern to unwind info section.
4839 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4841 * Makefile.am: Add linux target for S/390.
4842 * Makefile.in: Likewise.
4843 * configure.host: Likewise.
4844 * configure.tgt: Likewise.
4845 * emulparams/elf64_s390.sh: New file.
4846 * emulparams/elf_s390.sh: New file.
4848 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4850 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4852 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4854 2001-02-06 Philip Blundell <philb@gnu.org>
4856 * Makefile.am: Remove mention of earmelf_linux26.
4857 * Makefile.in: Regenerate.
4859 2001-02-04 Philip Blundell <philb@gnu.org>
4861 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4862 * emulparams/armelf_linux26.sh: Delete.
4863 * configure.tgt: Remove mention of armelf_linux26 emulation.
4865 2001-02-01 Nick Clifton <nickc@redhat.com>
4867 * ld.1: Replace occurances of -oformat with --oformat.
4869 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4871 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4872 load_base is specified.
4874 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4876 * emultempl/elf32.em: Correct spelling in comments and listed
4879 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4881 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4882 default for the first section of a group of overlay sections.
4884 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4886 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4887 * Makefile.in: Regenerate.
4888 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4889 Check for null tool_dir.
4891 2001-01-16 Jim Wilson <wilson@redhat.com>
4893 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4894 and IA_64.unwind.info.
4896 2001-01-16 H.J. Lu <hjl@gnu.org>
4898 * ldlang.c (lang_check): Merge the private data only if the
4899 input file has contents.
4901 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4903 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4905 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4906 enabling search for libmilli. On a relocatable link, make .text
4908 (LDEMUL_AFTER_PARSE): Define.
4909 (hppaelf_finish): Correct spelling of relocatable in comments.
4911 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4912 rummage through the script for sections on the unique list.
4913 Correct length of strncmp for ".note".
4914 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4916 * ldlang.c (unique_section_list): New var.
4917 (unique_section_p): New function.
4918 (walk_wild_section): Don't match sections on unique_section_list.
4919 (lang_add_unique): New function.
4920 Correct spelling of relocatable in comments.
4922 * ldlang.h (struct unique_sections): Declare.
4923 (unique_section_list): Declare.
4924 (unique_section_p): Declare.
4925 (lang_add_unique): Declare.
4927 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4928 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4930 * ld.texinfo (--unique): Update.
4932 2001-01-13 Nick Clifton <nickc@redhat.com>
4934 * lexsup.c (parse_args): Remove spurious white space.
4936 2001-01-12 Nick Clifton <nickc@redhat.com>
4938 * lexsup.c (parse_args): Update copyright date.
4940 2001-01-12 Philip Blundell <pb@futuretv.com>
4942 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4944 2001-01-10 Kazu Hirata <kazu@hxi.com>
4946 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4947 * scripttempl/h8300h.sc: Fix formatting.
4948 * scripttempl/h8300s.sc: Likewise.
4949 * scripttempl/h8500.sc: Likewise.
4950 * scripttempl/h8500b.sc: Likewise.
4951 * scripttempl/h8500c.sc: Likewise.
4952 * scripttempl/h8500m.sc: Likewise.
4953 * scripttempl/h8500s.sc: Likewise.
4955 2000-01-07 David O'Brien <obrien@BSDi.com>
4957 * emultempl/elf32.em: Only perform Linux ld hints processing when
4960 2001-01-07 Philip Blundell <philb@gnu.org>
4962 * ld.texinfo (Bug Reporting): Update email address for reports.
4964 2000-12-31 Nick Clifton <nickc@redhat.com>
4966 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4967 options by checking for a return value of '?' not -1.
4969 2000-12-28 Nick Clifton <nickc@redhat.com>
4971 * lexsup.c (struct ld_option): Add new enum value:
4973 (ld_options[]): Change -omagic, -output and -oformat options
4974 to be EXACTLY_TWO_DASHES.
4975 (OUTPUT_COUNT): Use ARRAY_SIZE.
4976 (parse_args): Change parameter 'argc' to unsigned.
4977 Place EXACTLY_TWO_DASHES options into new really_longopts
4979 If getopt_long_only fails, try calling getopt_long using the
4980 really_longopts array.
4981 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4984 * ldlex.h: Fix prototype of parse_args.
4986 * ld.texinfo: Document that long options starting with 'o'
4987 must be preceeded by two dashes. Change example of a single
4988 dashed long option from -oformat to -trace-symbol.
4990 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4992 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4993 (longopts[]): New --no-default-excludes option.
4994 (gld_${EMULATION_NAME}_list_options): Document.
4995 (gld_${EMULATION_NAME}_parse_args): Handle.
4997 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4999 * ldlang.c (new_stat): Revert the last beautification with "innocent"
5000 whitespace, it breaks the K&R C preprocessor.
5002 2000-12-11 DJ Delorie <dj@redhat.com>
5004 * ld.texinfo: Add notes about --whole-archive and gcc.
5006 2000-11-18 Fred Fish <fnf@be.com>
5008 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5009 (ld_options): Entry for --allow-shlib-undefined.
5010 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5011 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5013 * ld.texinfo: Document new command line switch.
5015 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
5017 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5018 .fixup is actually read/write.
5019 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5020 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5021 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5023 2000-12-11 Jan Hubicka <jh@suse.cz>
5025 * NEWS: Add note about x86_64 architecture.
5027 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
5029 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5030 Set DWARF2 sections to a VMA of zero.
5032 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5034 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5036 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5037 (sparc*-*-rtems*): Switched from a.out to ELF.
5039 2000-11-30 Jan Hubicka <jh@suse.cz>
5041 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5042 (eelf_x86_64.c): New.
5043 * Makefile.in: Regenerate.
5044 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5045 * emulparams/elf_x86_64.sh: New.
5047 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5049 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5050 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5052 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5053 merging non-a.out sections into CONSTRUCTING.
5055 2000-11-28 Nick Clifton <nickc@redhat.com>
5057 * ld.1 (COPYING): Mention that the GNU Free Documentation
5058 License is present in the sources, but not the output, and
5059 also available from the GNU website.
5060 (GNU Free Documentation License): Comment out this section.
5062 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5064 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5067 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5069 * ld.1: Remove old date so it does not give the impression the manpage
5072 2000-11-24 Nick Clifton <nickc@redhat.com>
5074 * configure.tgt (xscale-coff): Add target.
5075 (xscale-elf): Add target.
5077 2000-11-24 Fred Fish <fnf@be.com>
5079 * ldmain.c (main): Remove redundant init of config.make_executable
5082 2000-11-15 Richard Henderson <rth@redhat.com>
5084 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5086 2000-11-14 Kazu Hirata <kazu@hxi.com>
5088 * scripttempl/h8300.sc: Fix formatting.
5089 * scripttempl/h8300h.sc: Likewise.
5090 * scripttempl/h8300s.sc: Likewise.
5092 2000-11-14 Denis Chertykov <denisc@overta.ru>
5094 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5096 2000-11-09 Philip Blundell <pb@futuretv.com>
5098 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5099 around orphan sections whose names can be represented in C.
5101 2000-11-07 Jim Wilson <wilson@redhat.com>
5103 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5104 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5106 2000-11-06 Nick Clifton <nickc@redhat.com>
5108 * ld.texinfo: Add GNU Free Documentation License.
5109 * ldint.texinfo: Add GNU Free Documentation License.
5110 * ld.1: Add GNU Free Documentation License.
5112 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5114 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5115 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5117 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5118 Move 2000-11-02 Makefile.in changes to this file.
5119 * Makefile.in: Regenerate.
5121 2000-11-03 Nick Clifton <nickc@redhat.com>
5123 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5124 constructors and destructors.
5125 * scripttempl/h8300h.sc: Ditto.
5126 * scripttempl/h8300s.sc: Ditto.
5127 * scripttempl/h8500.sc: Ditto.
5128 * scripttempl/h8500b.sc: Ditto.
5129 * scripttempl/h8500c.sc: Ditto.
5130 * scripttempl/h8500m.sc: Ditto.
5131 * scripttempl/h8500s.sc: Ditto.
5132 * scripttempl/v850.sc: Ditto.
5133 * scripttempl/w65.sc: Ditto.
5134 * scripttempl/z8000.sc: Ditto.
5136 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5138 * Makefile.in (e_i386_chaos.c): New rule.
5139 (ALL_EMULATIONS): Added e_i386_chaos.o.
5140 * emulparams/elf_i386_chaos.sh: New file.
5141 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5143 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5145 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5146 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5147 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5148 library path suffix.
5149 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5151 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5153 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5154 for consecutive sections.
5156 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5158 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5160 * ld.texinfo: Added notes about this new option.
5162 2000-10-16 Nick Clifton <nickc@redhat.com>
5164 * emultempl/pe.em (_after_open): Add tests of return values from
5165 bfd functions. Emit appropriate error messages if necessary.
5167 2000-10-13 Nick Clifton <nickc@redhat.com>
5169 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5170 local variables - they are not used, but leave in the call to
5171 bfd_canonicalize_symtab.
5172 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5173 pe_dll_search_prefix.
5175 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5177 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5178 (longopts): New --dll-search-prefix option.
5179 (gld_${EMULATION_NAME}_list_options): Document.
5180 (gld_${EMULATION_NAME}_parse_args): Handle.
5181 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5182 dynamically, search for a dll named '<prefix><basename>.dll'
5183 in preference to 'lib<basename>.dll' if --dll-search-prefix
5186 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5188 * ldlang.c (section_already_linked): Set kept_section instead of
5191 2000-10-10 Kazu Hirata <kazu@hxi.com>
5193 * deffile.h: Fix formatting.
5194 * lexsup.c: Likewise.
5197 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5199 * pe-dll.c (make_one): Do not generate code thunk for DATA
5201 (process_def_file): deduce DATA flag for auto-export sumbols.
5203 2000-10-09 Kazu Hirata <kazu@hxi.com>
5205 * ld.h: Fix formatting.
5206 * ldcref.c: Likewise.
5207 * ldctor.h: Likewise.
5208 * ldemul.c: Likewise.
5209 * ldemul.h: Likewise.
5210 * ldexp.c: Likewise.
5211 * ldexp.h: Likewise.
5212 * ldfile.c: Likewise.
5213 * ldfile.h: Likewise.
5214 * ldlang.c: Likewise.
5215 * ldlang.h: Likewise.
5216 * ldmain.c: Likewise.
5217 * pe-dll.c: Likewise.
5219 * pe-dll.c: Revert some formatting fixes.
5221 2000-10-08 Kazu Hirata <kazu@hxi.com>
5223 * pe-dll.c: Fix formatting.
5225 2000-10-05 Kazu Hirata <kazu@hxi.com>
5227 * ldlang.c: Fix formatting.
5229 2000-10-03 DJ Delorie <dj@redhat.com>
5231 * pe-dll.c (fill_edata): initialize entire block
5232 (make_one): fill in correct section.
5234 2000-10-03 Kazu Hirata <kazu@hxi.com>
5236 * ldexp.c: Fix formatting.
5238 2000-10-02 DJ Delorie <dj@redhat.com>
5240 * emultempl/pe.em (gld_*_after_open): detect case where there two
5241 import libraries for same dll; rename one to ensure proper link
5244 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5246 (generate_edata): fix typo
5248 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5250 * scripttempl/crisaout.sc (ENTRY): Now __start.
5251 (.text): Add default setting for __start.
5252 Remove CONSTRUCTORS handling.
5253 (/DISCARD/): Add .gnu.warning.*.
5254 * emulparams/crislinux.sh (ENTRY): Now __start.
5255 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5256 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5257 (ENTRY): Now __start.
5258 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5259 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5261 2000-09-29 Kazu Hirata <kazu@hxi.com>
5263 * deffile.h: Fix formatting.
5265 * ldcref.c: Likewise.
5266 * ldctor.c: Likewise.
5267 * ldctor.h: Likewise.
5268 * ldemul.c: Likewise.
5269 * ldemul.h: Likewise.
5270 * ldexp.c: Likewise.
5271 * ldexp.h: Likewise.
5272 * ldfile.c: Likewise.
5273 * ldfile.h: Likewise.
5274 * ldlang.c: Likewise.
5275 * ldlang.h: Likewise.
5276 * lexsup.c: Likewise.
5278 * pe-dll.c: Likewise.
5280 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5282 * pe-dll.c (process_def_file): Uninitialized data wasn't
5283 exported with --export-all-symbols switch.
5285 2000-09-28 DJ Delorie <dj@redhat.com>
5287 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5288 noname work properly.
5290 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5292 * ld.texinfo (HPPA ELF32): New section.
5294 * emultempl/hppaelf.em (group_size): New.
5295 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5296 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5297 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5298 options to prevent abbreviations matching.
5299 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5300 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5302 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5304 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5305 on the m68*-*-elf target. Make it support COFF input objects.
5307 2000-09-21 Kazu Hirata <kazu@hxi.com>
5309 * ldmain.c: Fix formatting.
5310 * ldmisc.c: Likewise.
5311 * ldver.c: Likewise.
5312 * ldwrite.c: Likewise.
5314 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5316 * ldwrite.c (clone_section): Silence gcc warnings.
5318 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5320 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5321 out of memory failure.
5323 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5324 (clone_section): Handle out of memory failures. Rename var to
5325 avoid c++ reserved word.
5327 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5329 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5330 stub_name param to stub_sec_name.
5331 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5333 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5335 * emultempl/m68kelf.em: New file.
5336 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5337 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5338 * Makefile.in: Regenerate.
5340 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5342 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5345 2000-09-13 Nick Clifton <nickc@redhat.com>
5347 * ldmain.c (multiple_definition): Disable relaxation if
5348 multiple symbol definitions are encountered - otherwise the
5349 linker could abort with an assertion failure.
5351 2000-09-10 Nick Clifton <nickc@redhat.com>
5353 * mri.c: Fix formatting.
5355 2000-09-07 H.J. Lu <hjl@gnu.org>
5357 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5358 * configure: Rebuild.
5360 2000-09-07 H.J. Lu <hjl@gnu.org>
5362 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5363 * Makefile.in: Rebuild.
5365 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5367 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5368 broken list handling. Create __start_SECNAME and __stop_SECNAME
5369 when no place-holder. Add some comments. Test both SEC_CODE and
5370 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5371 Handle case where no output section statement created.
5373 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5375 * configure.tgt (sh-*-linux*): Added.
5376 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5377 * Makefile.in: Rebuilt.
5378 * emulparams/shelf_linux.sh: New file.
5379 * emulparams/shlelf_linux.sh: New file.
5381 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5383 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5384 try shuffling sections when the orphan happens to be the place
5385 holder. Keep count of unique section names generated so we speed
5386 the search for a new name.
5388 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5390 * configure: Rebuilt with new libtool.m4.
5392 2000-09-05 Nick Clifton <nickc@redhat.com>
5394 * Makefile.in: Regenerate.
5395 * aclocal.m4: Regenerate.
5396 * configure: Regenerate.
5397 * config.in: Regenerate.
5398 * po/ld.pot: Regenerate.
5400 * ldint.texinfo: Remove CVS revision marker - it foils local
5403 * emultempl/ticoff.em: Remove extraneous comma.
5405 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5407 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5408 to stub section flags.
5409 (hppa_for_each_input_file_wrapper): New.
5410 (hppa_lang_for_each_input_file): New.
5411 (lang_for_each_input_file): Define to call above.
5412 (multi_subspace): New.
5413 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5414 (PARSE_AND_LIST_PROLOGUE): Define.
5415 (PARSE_AND_LIST_LONGOPTS): Define.
5416 (PARSE_AND_LIST_OPTIONS): Define.
5417 (PARSE_AND_LIST_ARGS_CASES): Define.
5418 (hppaelf_finish): Call elf32_hppa_set_gp.
5419 (hppaelf_set_output_arch): Remove.
5420 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5422 * emulparams/hppalinux.sh (ELFSIZE): Define.
5424 (OTHER_READONLY_SECTIONS): Define.
5426 (GENERATE_SHLIB_SCRIPT): Define.
5428 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5429 to const throughout. Change `void *' to `PTR' throughout.
5430 (lang_memory_default): Function is local to file, add `static'.
5432 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5433 (ehppalinux.c): Likewise.
5434 (earmelf.c): Likewise.
5435 (earmelf_linux.c): Likewise.
5436 (earmelf_linux26.c): Likewise.
5437 * Makefile.in: Regenerate.
5439 * ld.h (ld_config_type): Add unique_orphan_sections.
5440 * lexsup.c (OPTION_UNIQUE): Define.
5441 (ld_options): Add "--unique".
5442 (parse_args): Handle it.
5443 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5444 search for an existing output section if unique_orphan_sections is
5445 set. Make use of bfd_get_unique_section_name rather than
5446 duplicating code here.
5447 * ld.texinfo: Describe --unique.
5449 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5450 optional arg to split-by-file.
5451 (parse_args): Handle them.
5452 * ld.texinfo: Update description of these options.
5453 * ldwrite.c (clone_section): Pass in the section name. Replace
5454 local code with bfd_get_unique_section_name.
5455 (split_sections): Tidy code and comments. Use a list traversal
5456 more appropriate to the list construction. Handle cooked section
5457 sizes. Split when split_by_reloc reached rather than exceeded.
5458 Track section size and split when split_by_file reached. Fix
5459 link_order_tail (even though it's not used).
5460 (ldwrite): Modify condition for calling split_sections to suit
5461 changed split_by_reloc and split_by_file.
5462 * ldmain.c (main): Init config.split_by_reloc and
5463 config.split_by_file to -1.
5464 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5465 Change split_by_file to bfd_size_type.
5467 2000-09-02 Nick Clifton <nickc@redhat.com>
5469 * configure.in: Increase version number to 2.10.91.
5470 * NEWS: Mention new ability to support removal of duplicate DWARF2
5472 * configure: Regenerate.
5473 * aclocal.m4: Regenerate.
5474 * config.in: Regenerate.
5476 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5478 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5480 * scripttempl/elf32avr.sc: Ditto.
5481 * scripttempl/elfd10v.sc: Ditto.
5482 * scripttempl/elfd30v.sc: Ditto.
5483 * scripttempl/elfi370.sc: Ditto.
5484 * scripttempl/elfm68hc11.sc: Ditto.
5485 * scripttempl/elfm68hc12.sc: Ditto.
5486 * scripttempl/elfi386beos.sc: Ditto.
5487 * scripttempl/v850.sc: Ditto.
5489 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5491 * acinclude.m4: Include libtool and gettext macros from the
5493 * aclocal.m4, configure: Rebuilt.
5495 2000-08-25 Nick Clifton <nickc@redhat.com>
5497 * ldlang.c (open_output): When choosing the target for a
5498 particular endianness, do nothing if the target is not
5501 2000-08-25 H.J. Lu <hjl@gnu.org>
5503 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5504 check -rpath nor LD_RUN_PATH for cross link.
5505 * ld.texinfo: Document the change.
5507 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5509 * NEWS: Mention support for CRIS.
5511 2000-08-23 H.J. Lu <hjl@gnu.org>
5513 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5514 the current runpath list from bfd_elf_get_runpath_list ()
5517 2000-08-22 H.J. Lu <hjl@gnu.org>
5519 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5520 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5521 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5522 trace_file_tries is non-zero.
5523 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5524 if trace_file_tries is non-zero.
5526 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5529 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5531 * NEWS: Mention i860 support.
5533 2000-08-14 Andreas Schwab <schwab@suse.de>
5535 * scripttempl/elf.sc: Fix last change to use correct comment
5538 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5540 * scripttempl/elf.sc: Add a comment giving the correspondence
5541 between sections, per-datum sections, and linkonce sections. Make
5542 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5545 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5547 * emulparams/elf32_i860.sh: New file.
5548 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5549 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5550 (eelf32_i860.c): New rule.
5551 * Makefile.in: Regenerate.
5553 2000-08-10 Nick Clifton <nickc@cygnus.com>
5555 * emulparams/mipspe.sh (ENTRY): Add definition.
5557 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5559 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5562 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5564 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5565 the final size of .bss section.
5566 * scripttempl/elfm68hc12.sc: Likewise.
5568 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5570 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5571 gld${EMULATION_NAME}_parse_args for consistency. Combine
5572 lastoptind and prevoptind vars, and keep track of last optind.
5573 (gld_${EMULATION_NAME}_list_options): Rename to
5574 gld${EMULATION_NAME}_list_options.
5576 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5578 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5579 (i586-sco-sysv5uw7.1.0).
5581 2000-07-27 H.J. Lu <hjl@gnu.org>
5583 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5584 (PARSE_AND_LIST_PROLOGUE): New.
5585 (PARSE_AND_LIST_LONGOPTS): Likewise.
5586 (PARSE_AND_LIST_OPTIONS): Likewise.
5587 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5588 (PARSE_AND_LIST_EPILOGUE): Likewise.
5590 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5592 * emultempl/armelf.em: Elide functions common to elf32.em,
5593 ie. most of the file.
5594 (arm_elf_after_open): New. Do arm specific things then call
5595 gld${EMULATION_NAME}_after_open.
5596 (arm_elf_before_allocation): New. Call
5597 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5598 (PARSE_AND_LIST_PROLOGUE): Define.
5599 (PARSE_AND_LIST_SHORTOPTS): Define.
5600 (PARSE_AND_LIST_LONGOPTS): Define.
5601 (PARSE_AND_LIST_OPTIONS): Define.
5602 (PARSE_AND_LIST_ARGS_CASES): Define.
5603 (LDEMUL_AFTER_OPEN): Define.
5604 (LDEMUL_BEFORE_ALLOCATION): Define.
5605 (LDEMUL_BEFORE_PARSE): Define.
5606 (LDEMUL_FINISH): Define.
5608 * emultempl/hppaelf.em: Similarly zap most of this file.
5609 (hppaelf_add_stub_section): Prototype.
5610 (hppaelf_layaout_sections_again): Prototype.
5611 (hook_in_stub): Prototype.
5612 (LDEMUL_SET_OUTPUT_ARCH): Define.
5613 (LDEMUL_FINISH): Define.
5614 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5616 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5617 (EXTRA_EM_FILE): New.
5618 * emulparams/armelf_linux.sh: Likewise.
5619 * emulparams/armelf_linux26.sh: Likewise.
5620 * emulparams/hppalinux.sh: Likewise.
5621 * emulparams/hppaelf.sh: Likewise.
5624 * emultempl/elf32.em: Fix formatting.
5625 (EXTRA_EM_FILE): Source it.
5626 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5627 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5628 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5629 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5630 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5631 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5632 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5633 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5634 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5635 allow functions in this file to be overridden.
5636 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5638 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5640 * emultempl/elf32.em: Reorganize file.
5642 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5644 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5645 specific option to fit 64-bit executable in the lower
5646 31-bit address range. This is done by changing start
5647 address of .interp (the very first section of executable)
5648 and then setting EF_ALPHA_32BIT elf header flag.
5650 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5652 * emultempl/m68kcoff.em: New file.
5653 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5654 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5656 * Makefile.in: Regenerate.
5658 2000-07-20 H.J. Lu <hjl@gnu.org>
5660 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5661 and "disable-new-dtags" to stop getopt from treating -d/-e as
5662 abbreviations for these options.
5664 2000-07-20 H.J. Lu <hjl@gnu.org>
5666 * ld.texinfo: Add documentation for --disable-new-dtags and
5669 * ldmain.c (main): Initialize link_info.new_dtags to false.
5671 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5672 --disable-new-dtags and --enable-new-dtags.
5673 (gld_${EMULATION_NAME}_list_options): Likewise.
5675 2000-07-05 Kenneth Block <krblock@computer.org>
5677 * lexsup.c: Add optional style to demangle switch
5678 * ld.texinfo: Document optional style to demangle switch.
5680 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5682 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5684 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5685 Regenerate dependencies.
5686 * Makefile.in: Rebuild.
5687 * configure.tgt (cris-*-*): New target.
5688 * emulparams/crisaout.sh, emulparams/criself.sh,
5689 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5690 * po/POTFILES.in, po/ld.pot: Regenerate.
5692 2000-07-20 H.J. Lu <hjl@gnu.org>
5694 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5695 Print out ignored -z options.
5697 2000-07-19 H.J. Lu <hjl@gnu.org>
5699 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5700 (PARSE_AND_LIST_PROLOGUE): New.
5701 (PARSE_AND_LIST_LONGOPTS): Likewise.
5702 (PARSE_AND_LIST_OPTIONS): Likewise.
5703 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5705 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5707 * lexsup.c (ld_options): Comment out 'z'.
5708 (parse_args): Likewise.
5710 * emultempl/elf32.em: Include "elf/common.h".
5711 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5713 (gld_${EMULATION_NAME}_list_options): Likewise.
5715 * ld.texinfo: Add documentation for the recognized -z options.
5717 2000-07-19 H.J. Lu <hjl@gnu.org>
5719 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5720 bfd_elf_set_dt_needed_soname ().
5722 2000-07-18 DJ Delorie <dj@cygnus.com>
5724 * pe-dll.c (pe_dll_id_target): check object target name also
5726 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5728 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5729 ${INIT_END} if relocating.
5730 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5732 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5734 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5735 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5736 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5737 errors introduced by the old dynamic lib search order.
5739 2000-07-17 DJ Delorie <dj@cygnus.com>
5741 * pe-dll.c (process_def_file): auto-export data items also
5742 (pe_process_import_defs): also see if _imp_ form needed
5744 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5746 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5747 for dll import libraries
5749 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5751 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5752 gcc 2.95.2 and later.
5754 2000-07-11 Kazu Hirata <kazu@hxi.com>
5756 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5759 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5761 * ldemul.h (struct lang_input_statement_struct): Remove forward
5763 (struct search_dirs): Likewise.
5764 * ldfile.h (struct lang_input_statement_struct): Likewise.
5765 Protect file from multiple inclusion.
5766 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5767 declaration from macro to file scope.
5769 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5770 * ldgram.y: Likewise here.
5771 * ldlang.c: And here.
5772 * ldmain.c: And here.
5773 * mpw-elfmips.c: And here.
5774 * mpw-eppcmac.c: And here.
5775 * emultempl/aix.em: And here.
5776 * emultempl/armcoff.em: And here.
5777 * emultempl/armelf.em: And here.
5778 * emultempl/armelf_oabi.em: And here.
5779 * emultempl/beos.em: And here.
5780 * emultempl/elf32.em: And here.
5781 * emultempl/hppaelf.em: And here.
5782 * emultempl/linux.em: And here.
5783 * emultempl/lnk960.em: And here.
5784 * emultempl/pe.em: And here.
5785 * emultempl/sunos.em: And here.
5786 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5787 * mpw-idtmips.c: Ditto.
5788 * emultempl/generic.em: Ditto.
5789 * emultempl/gld960.em: Ditto.
5790 * emultempl/gld960c.em: Ditto.
5791 * emultempl/mipsecoff.em: Ditto.
5792 * emultempl/ticoff.em: Ditto.
5793 * emultempl/vanilla.em: Ditto.
5795 * pe-dll.c: Include ldfile.h
5796 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5798 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5799 arguments to bfd_elf32_size_dynamic_sections call.
5800 (gldelf32ebmip_place_orphan): Add missing arguments to
5801 lang_leave_output_section_statement call.
5803 2000-07-10 H.J. Lu <hjl@gnu.org>
5805 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5807 (strhash): Likewise.
5808 (compute_dll_image_base): Likewise.
5809 (pe_undef_found_sym): Likewise.
5810 (pe_undef_cdecl_match): Likewise.
5811 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5812 argument "arch" with ATTRIBUTE_UNUSED.
5814 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5816 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5818 From Ryan Bradetich <rbradetich@uswest.net>
5819 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5821 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5823 Changes to create multiple linker stubs, positioned immediately
5824 before the section where they are required.
5825 * emultempl/hppaelf.em: Include elf32-hppa.h.
5826 (stub_sec, file_chain): Delete.
5827 (hppaelf_create_output_section_statements): Don't make a stub
5829 (hook_stub_info): New struct.
5830 (hook_in_stub): New function.
5831 (hppaelf_add_stub_section): New function.
5832 (hppaelf_finish): Do nothing for relocateable links. Modify the
5833 call to elf32_hppa_size_stubs. Move code for updating section
5835 (hppaelf_layaout_sections_again): ..to here, a new function.
5837 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5838 broken list handling. Pass in a pointer to the list.
5839 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5841 (hppaelf_before_parse): Prototype.
5842 (hppaelf_set_output_arch): Prototype.
5843 (hppaelf_create_output_section_statements): Prototype.
5844 (hppaelf_delete_padding_statements): Prototype.
5845 (hppaelf_finish): Prototype.
5848 * emultempl/hppaelf.em: Include ctype.h.
5849 (struct orphan_save): New.
5850 (gld${EMULATION_NAME}_place_orphan): New.
5851 (output_rel_find): New.
5852 (hppaelf_get_script): Update from elf32.em.
5853 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5854 Change emulation_name field to "${EMULATION_NAME}". Add
5855 gld${EMULATION_NAME}_place_orphan.
5857 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5858 ehppalinux.o, sort it. Regenerate dependencies.
5859 (ehppalinux.c): Depend on hppaelf.em
5860 * Makefile.in: Regenerate.
5862 * configure.tgt: targ_emul=hppalinux for hppa*linux
5864 * emulparams/hppalinux.sh: New.
5865 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5867 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5869 * lexsup.c (parse_args): Copy section name.
5871 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5873 * emultempl/pe.em: institute the following search order for
5874 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5875 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5876 static lib (libfoo.a) if none of the above are found.
5878 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5880 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5881 (longopts): New --{enable,disable}-auto-image-base options.
5882 (gld_${EMULATION_NAME}_list_options): Document.
5883 (gld_${EMULATION_NAME}_parse): Handle.
5884 (strhash): New static function.
5885 (compute_dll_image_base): New static function.
5886 (gld_${EMULATION_NAME}_set_symbols): Use.
5888 2000-07-05 DJ Delorie <dj@redhat.com>
5892 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5894 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5895 * emulparams/elf32btsmip.sh: New file.
5896 * Makefile.am: Add traditional mips target.
5897 * Makefile.in: Rebuild.
5899 2000-07-01 H.J. Lu <hjl@gnu.org>
5901 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5902 automake to use YLWRAP.
5903 * Makefile.in: Rebuild.
5905 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5907 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5908 (CLEANFILES): Add DEPA.
5909 * Makefile.in: Regenerate.
5911 2000-06-30 Timothy Wall <twall@ppc>
5913 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5914 the page in the upper octet of the address.
5916 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5918 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5920 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5922 * NEWS: arm-elf does --gc-sections too.
5924 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5926 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5928 * Makefile.in: Regenerate.
5930 2000-06-21 H.J. Lu <hjl@gnu.org>
5932 * Makefile.am: Rebuild dependency.
5933 * Makefile.in: Rebuild.
5935 2000-06-20 H.J. Lu <hjl@gnu.org>
5937 * Makefile.am: Rebuild dependency.
5938 * Makefile.in: Rebuild.
5940 2000-06-20 Timothy Wall <twall@cygnus.com>
5942 * scripttempl/tic54xcoff.sc: New.
5943 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5944 * gen-doc.texi: Add flag for TI COFF.
5945 * ld.texinfo: Add documentation for TI COFF handling switches.
5946 * emultempl/ticoff.em: New. TI COFF handling.
5947 * configure.tgt: Add tic54x target.
5948 * Makefile.am: Add tic54x target.
5949 * Makefile.in: Ditto.
5951 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5953 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5954 checking for backslashes.
5956 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5958 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5960 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5962 * NEWS: Update list of targets supporting --gc-sections.
5964 * scripttempl/elf.sc: KEEP .eh_frame contents.
5965 * scripttempl/elfd30v.sc: Same here.
5967 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5969 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5971 * Makefile.in: Rebuild.
5972 * configure.tgt: Recognize m68hc12 and m68hc11.
5973 * scripttempl/elfm68hc12.sc: New file.
5974 * emulparams/m68hc12elfb: New emulation.
5975 * emulparams/m68hc12elf: New emulation.
5976 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5977 (includes a memory.x script to define the ROM and RAM banks).
5978 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5979 New configuration files for support of Motorola 68hc11
5981 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5983 * ldmain.c (main): Only change SEC_READONLY for final link.
5985 2000-06-13 H.J. Lu <hjl@gnu.org>
5987 * configure: Regenerate.
5989 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5991 * configure.in (VERSION): Update to show this is the CVS mainline.
5993 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5995 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5996 input objects to be ECOFF.
5997 (check_sections): einfo takes %B, not %P, to print a BFD name.
5999 2000-06-05 Michael Matz <matz@ifh.de>
6001 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6004 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6006 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
6008 * emulparams/avr1200.sh (STACK): Define as 0.
6009 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6010 * emulparams/avr4433.sh (STACK): Likewise.
6011 * emulparams/avr44x4.sh (STACK): Likewise.
6012 * emulparams/avr85xx.sh (STACK): Likewise.
6013 * emulparams/avrmega103.sh (STACK): Likewise.
6014 * emulparams/avrmega161.sh (STACK): Likewise.
6015 * emulparams/avrmega603.sh (STACK): Likewise.
6016 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6017 (__stack): Define from ${STACK} for main().
6019 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6021 * Makefile.am: Update dependencies with "make dep-am"
6022 * Makefile.in: Regenerate.
6024 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6026 * ldmain.c: Include filenames.h.
6027 (set_scripts_dir): Support backslashes in program name.
6029 2000-05-22 Igor Shevlyakov <igor@windriver.com>
6031 * ldmain.c (main): When deciding if ".text" section should be
6032 read-only, don't forget to reset SEC_READONLY because it
6033 could be already set.
6035 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6037 * ld.1: Add documentation for new command line option:
6038 --section-start <sectionname>=<sectionorg>
6039 This is a generic version of -Ttext etc. which accepts
6040 any section name as a parameter instead of just text/data/
6042 * ld.texinfo: More docs.
6044 * lexsup.c: (parse_args): Recognize new command line option.
6045 (ld_options): Add new option.
6047 2000-05-18 H.J. Lu <hjl@gnu.org>
6049 * lexsup.c (parse_args): `i' == `r', not `q'.
6051 2000-05-18 Jeffrey A Law (law@cygnus.com)
6053 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6055 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6056 Rick Gorton <gorton@scrugs.lkg.dec.com>
6058 Add support for '-q' == '--emit-relocs' switch.
6059 * ldmain.c (main): Default to false.
6060 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6061 * NEWS: Describe the emitrelocations switch.
6062 * ld.texinfo: Describe the emitrelocations switch.
6064 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6066 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6067 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6068 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6071 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6073 * lexsup.c (parse_args): Update the year in the copyright notice.
6075 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6077 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6078 Replace defines with those from intl/libgettext.h to quieten gcc
6081 2000-05-10 H.J. Lu <hjl@gnu.org>
6083 * ldlang.c (open_input_bfds): Don't load the same file within
6084 a group again if the whole archive has been loaded already.
6086 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6088 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6089 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6092 2000-05-01 Jim Wilson <wilson@cygnus.com>
6094 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6096 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6097 host "ia64-*-linux-gnu*".
6099 2000-04-29 Andreas Jaeger <aj@suse.de>
6101 * ld.h: Correctly check GCC version.
6103 2000-04-25 Jeffrey A Law (law@cygnus.com)
6105 * Makefile.am: Add PA64 support. Add missing dependencies for
6107 * Makefile.in: Rebuilt.
6108 * configure.tgt: Add PA64 support (currently disabled).
6110 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6112 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6113 (output_rel_find): New function.
6114 (hold_section, hold_use): Delete.
6115 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6116 hold_interp): Make local to place_orphan.
6117 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6118 rather than place_section to find possible previous use of orphan.
6119 Similarly find the place-holder output sections. Use returned
6120 value from lang_enter_output_section_statement rather than calling
6121 lang_output_section_statement_lookup.
6122 * emultempl/armelf.em: Same here.
6123 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6125 * ldlang.c (lang_enter_output_section_statement): Return output
6127 * ldlang.h (lang_enter_output_section_statement): Change
6130 * ldlang.h (lang_output_section_statement): Export it.
6131 * ldlang.c (lang_output_section_statement): Ditto.
6133 2000-04-24 Nick Clifton <nickc@cygnus.com>
6135 * ld.texinfo (Output Section Data): Add note that section data
6136 commands cannot appear outside of section directives.
6138 2000-04-2 Matthew Green <mrg@cygnus.com>
6140 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6142 2000-04-21 Richard Henderson <rth@cygnus.com>
6143 David Mosberger <davidm@hpl.hp.com>
6145 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6146 (eelf64_ia64.c): New rule.
6147 * Makefile.in: Rebuild.
6148 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6149 * emulparams/elf64_ia64.sh: New file.
6151 2000-04-21 Richard Henderson <rth@cygnus.com>
6153 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6155 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6157 * dep-in.sed: Match space at start of file name, not at end.
6159 2000-04-18 H.J. Lu <hjl@gnu.org>
6161 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6162 lang_leave_output_section_statement () after calling
6163 lang_enter_output_section_statement ().
6164 * emultempl/armelf.em: Likewise.
6166 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6168 * emultempl/elf32.em (struct orphan_save): Add section field.
6169 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6170 better order, and place first orphan section as we did before the
6171 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6172 Don't call make_bfd_section here, let wild_doit do the job for us.
6173 Don't build a statement list when we'll only throw it away.
6174 * emultempl/armelf.em: Ditto.
6175 * emultempl/pe.em: Similarly.
6177 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6179 * scripttempl/elfppc.sc: Remove.
6180 * emulparams/elf32ppc.sh: Use elf.sc.
6181 * emulparams/elf32lppc.sh: Use elf.sc.
6182 * emulparams/elf32ppclinux.sh: Use elf.sc.
6183 * emulparams/elf32ppcsim.sh: New file.
6184 * emulparams/elf32lppcsim.sh: New file.
6185 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6186 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6187 * Makefile.in: Regenerate.
6188 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6190 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6192 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6193 ~SEC_ALLOC sections too. Init start address of debug sections.
6194 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6195 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6196 Also set all relocateable section start addresses.
6198 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6200 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6201 Add new BSS_PLT variable for when .plt need not be contained in
6202 the file. Move _etext so that it is also after .fini, and provide
6203 both etext and _etext with a leading underscore. Mark the start
6206 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6208 * emultempl/elf32.em (struct orphan_save): New.
6209 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6210 hold_interp): Make them struct orphan_save.
6211 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6212 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6213 the end of the relevant section list. Also add associated section
6214 statements to the end of any previous orphan statements.
6215 * emultempl/armelf.em: Similarly.
6216 * emultempl/pe.em: Similarly.
6218 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6220 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6222 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6224 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6225 --enable-build-warnings option.
6226 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6227 * Makefile.in, configure: Re-generate.
6229 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6231 * po/ld.pot: Regenerate.
6233 * lexsup.c (help): Restore translated part of bug string.
6235 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6236 (DEP): Quote when passing vars to sub-make. Add warning message
6238 (DEP1): Rewrite for "gcc -MM".
6239 (CLEANFILES): Add DEP2.
6240 Update dependencies.
6241 * Makefile.in: Regenerate.
6243 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6245 * ld.h: #include "bin-bugs.h"
6246 * lexsup.c (help): Use REPORT_BUGS_TO.
6248 2000-03-27 Denis Chertykov <denisc@overta.ru>
6250 * configure.tgt (avr-*-*): New target support.
6251 * Makefile.am: Likewise.
6252 * scripttempl/elf32avr.sc: New script file.
6253 * emulparams/avr1200.sh: New file.
6254 * emulparams/avr23xx.sh: New file.
6255 * emulparams/avr4433.sh New file.
6256 * emulparams/avr44x4.sh New file.
6257 * emulparams/avr85xx.sh New file.
6258 * emulparams/avrmega103.sh New file.
6259 * emulparams/avrmega161.sh New file.
6260 * emulparams/avrmega603.sh New file.
6261 * Makefile.in: Regenerate.
6263 2000-03-09 Andreas Jaeger <aj@suse.de>
6265 * Makefile.am (check-DEJAGNU): Also unset LANG.
6266 * Makefile.in: Rebuild.
6268 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6270 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6273 2000-03-02 H.J. Lu <hjl@gnu.org>
6275 * emulparams/elf32mcore.sh: Include "getopt.h".
6277 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6279 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6281 2000-03-01 H.J. Lu <hjl@gnu.org>
6283 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6284 * emulparams/shpe.sh: Likewise.
6286 2000-03-01 Nick Clifton <nickc@cygnus.com>
6288 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6289 to unused parameters.
6291 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6292 functions only used by DLL code.
6293 (_place_orphan): Initialise 'dollar'.
6295 2000-03-01 H.J. Lu <hjl@gnu.org>
6297 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6298 indicate if the undefined symbol is a fatal error or not.
6299 Don't delete the output file if "fatal" is false.
6301 2000-02-29 H.J. Lu <hjl@gnu.org>
6303 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6304 Set LC_COLLATE and LC_ALL to null and export them. It is for
6305 sort which expects the C locale.
6306 Add $(LIBS) to all $(HOSTING_LIBS).
6307 * Makefile.in: Rebuild.
6309 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6311 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6312 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6313 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6314 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6315 find_potential_libraries.
6317 2000-02-28 Jim Blandy <jimb@redhat.com>
6319 * ldgram.y (exclude_name_list): Don't require a comma to separate
6320 list entries; the lexer considers commas to be valid part of a
6321 filename, so in something like `foo, bar' the comma is considered
6322 part of the first filename, `foo,'.
6323 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6325 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6327 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6328 host "i[3456]86-*-freebsdelf*".
6330 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6332 * scripttempl/i386go32.sc: Move misplaced semicolons.
6334 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6336 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6337 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6338 (eelf64hppa.c, ehppaelf.c): Remove targets.
6339 * Makefile.in: Rebuild.
6341 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6343 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6344 GNU/Linux/sparc, but keep the default as 32.
6346 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6347 it default if sparcv9 or sparc64.
6349 2000-02-24 Nick Clifton <nickc@cygnus.com>
6351 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6352 * Makefile.in: Regenerate.
6353 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6355 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6356 find_potential_libraries.
6357 * ldemul.c (ldemul_find_potential_libraries): New function.
6359 * ldfile.c (ldfile_open_file_search): Allow function to be
6361 (ldfile_open_file): Call ldemul_find_potential_libraries.
6362 * ldfile.h: Add prototype for ldfile_open_file_search.
6364 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6366 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6367 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6369 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6370 (gld_X_find_potential_libraries): New function. Search for
6371 libraries called "*.lib".
6373 * scripttempl/pe.sc: Add .pdata section.
6375 2000-02-23 Richard Henderson <rth@cygnus.com>
6377 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6378 Add and use memory regions.
6380 2000-02-23 Linas Vepstas (linas@linas.org)
6382 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6384 * Makefile.am: Add support for Linux/IBM 370.
6385 * configure.tgt: Likewise.
6387 * Makefile.in: Regenerate.
6389 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6391 * ldlang.c (print_input_section, print_data_statement,
6392 print_reloc_statement, print_padding_statement, insert_pad,
6393 size_input_section, lang_check_section_addresses,
6394 lang_size_sections, lang_do_assignments, lang_set_startof,
6395 lang_one_common): Change `opb' to unsigned.
6396 (lang_do_assignments): Also change `size' to unsigned.
6398 2000-02-16 Richard Henderson <rth@cygnus.com>
6400 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6402 2000-02-16 Timothy Wall <twall@cygnus.com>
6404 * mri.c (mri_draw_tree): Add default LMA region argument to call
6405 to lang_leave_output_section_statement.
6406 * ldlang.h: Update prototypes with LMA region arguments.
6407 * ldlang.c (lang_size_sections): Encapsulate region bounds
6408 checking in os_check_region call.
6409 (os_check_region): New function.
6410 (lang_output_section_statement_lookup): Initialize lma_region.
6411 (lang_leave_output_section_statement): Add LMA region argument.
6412 (lang_leave_overlay): Ditto.
6413 * ldgram.y: Handle LMA region syntax.
6414 * ld.texinfo (Output Section Description): Describe LMA region usage.
6415 * emultempl/armelf.em (gld$place_orphan): Add default value for
6416 lma region in call to lang_leave_output_section_statement.
6417 * emultempl/elf32.em (gld$place_orphan): Add default value for
6418 lma region in call to lang_leave_output_section_statement.
6419 * emultempl/pe.em (gld$place_orphan): Add default value for
6420 lma region in call to lang_leave_output_section_statement.
6423 2000-02-04 Timothy Wall <twall@redhat.com>
6425 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6426 octets when calculating section end addresses.
6428 2000-02-04 Timothy Wall <twall@redhat.com>
6430 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6432 2000-02-03 Timothy Wall <twall@redhat.com>
6434 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6436 * ldlang.c (print_input_section, print_data_statement,
6437 print_reloc_statement, print_padding_statement): Print target
6438 address values and section sizes as bytes, not octets.
6439 (insert_pad) Calculate padding size in octets, and adjust "dot"
6441 (size_input_section) Always adjust "dot" by bytes, not octets.
6442 (lang_check_section_addresses, lang_do_assignments) Adjust
6443 "dot" by bytes, not octets. Use the larger of the directive size
6444 or octets_per_byte for the number of octets actually allocated in
6446 (lang_set_startof) Make sure STARTOF returns a target address.
6447 (lang_one_common) Record size changes in octets.
6448 (lang_abs_symbol_at_end_of) Section end symbol's value is
6449 recorded in target bytes.
6450 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6451 to be clear about behavior when an octet is smaller than one byte.
6453 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6455 * ldcref.c (output_cref): Don't pass message strings to printf
6459 * ldmisc.c (vfinfo): Same here.
6462 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6464 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6465 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6466 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6467 Add missing NULL initialisers, and comments.
6469 2000-01-21 Nick Clifton <nickc@cygnus.com>
6471 * ldlang.c (lang_size_sections): Fix typo in comment.
6473 2000-01-18 H.J. Lu <hjl@gnu.org>
6475 * ldlang.c (lang_size_sections): Also update the current
6476 address of a region if the SEC_NEVER_LOAD bit is not set.
6478 2000-01-10 Philip Blundell <pb@futuretv.com>
6480 * configure.tgt (arm*-*-conix*): New target.
6482 2000-01-07 Nick Clifton <nickc@cygnus.com>
6484 * ld.texinfo (Options): Remind users to preceed linker command
6485 line switches with -Wl, (or whatever is appropriate) if it is
6486 being invoked by a comnpiler driver program.
6487 Fix description of the behaviour of the -n command line switch.
6489 2000-01-05 Catherine Moore <clm@cygnus.com>
6491 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6493 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6494 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6495 (exclude_name_list): New.
6496 ldlang.c (walk_wild_section): Support list of excluded files.
6497 (print_wild_statement): Likewise.
6498 (lang_add_wild): Likewise.
6499 * ldlang.h (lang_wild_statement_type): Likewise.
6500 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6502 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6504 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6505 (process_def_file): Use.
6506 (pe_dll_compat_implib): New variable.
6509 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6510 pe_dll_compat_implib.
6512 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6513 compat-implib options.
6514 (gld_${EMULATION_NAME}_list_options): List new options.
6515 (gld_${EMULATION_NAME}_parse_args): Handle.
6517 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6520 * deffilep.y (opt_name): Allow "." in name.
6522 For older changes see ChangeLog-9899
6528 version-control: never