1 2003-10-14 Danny Smith <dannysmith@users.sourceforge.net>
3 * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
4 to identify data symbols.
6 2003-10-13 Richard Sandiford <rsandifo@redhat.com>
8 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
9 definition from elf64btsmip.sh.
10 (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
11 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
12 * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
13 * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
14 (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
15 Define __program_header_table in terms of __elf_header.
17 2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
19 * Makefile.am (eelf64_ia64.c): Also depend on
20 $(srcdir)/emultempl/ia64elf.em.
21 * Makefile.in: Regenerated.
23 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
25 * emultempl/ia64elf.em: New.
27 2003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
29 * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
31 2003-10-11 Hans-Peter Nilsson <hp@bitrange.com>
33 * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
34 defined before the statement using DEFINED yield 1.
35 * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
36 call lang_track_definedness on symbol. In subsequent phases, use
37 lang_symbol_definition_iteration and lang_statement_iteration to
38 check whether the symbol was defined before the current statement.
39 (exp_fold_tree) <case etree_assign et al>: Call
40 lang_update_definedness before updating symbol type when setting
42 * ldlang.c (lang_definedness_table): New variable.
43 (lang_definedness_newfunc, lang_track_definedness)
44 (lang_symbol_definition_iteration, lang_update_definedness): New
46 (lang_init): Initialize lang_definedness_table and
47 lang_statement_iteration.
48 (lang_finish): Destroy bfd_hash_table_free.
49 (lang_size_sections): Increment lang_statement_iteration.
50 (lang_do_assignments_1): New function with former
51 lang_do_assignments contents. Change recursive calls to call this
53 (lang_do_assignments): Evacuate contents. Increment
54 lang_statement_iteration, then just call lang_do_assignments_1.
55 * ldlang.h (struct lang_definedness_hash_entry)
56 (lang_statement_iteration, lang_track_definedness)
57 (lang_symbol_definition_iteration, lang_update_definedness):
60 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
62 * scripttempl/elf.sc (__executable_start): Provide.
64 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
66 * emulparams/armelf.sh: Define NO_SMALL_DATA.
67 * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
68 emulparams/armnto.sh: Likewise.
70 2003-10-08 Alexandre Oliva <aoliva@redhat.com>
72 * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
73 whether to skip test for no memory region.
75 2003-10-08 Nick Clifton <nickc@redhat.com>
77 * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
78 describing defaults. Change default to report unresolved symbols
79 in object files as well.
81 2003-10-08 Hans-Peter Nilsson <hp@bitrange.com>
83 * ldexp.c (fold_name) <case DEFINED>: Set section of result to
86 2003-10-07 Bob Wilson <bob.wilson@acm.org>
88 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
89 OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
90 zero for relocatable links.
92 2003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
94 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
96 2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
98 * ldwrite.c (unsplittable_name): New.
99 (clone_section): Strip existing numeric suffix. Only truncate names
101 (split_sections): Use unsplittable_name.
103 2003-10-06 Nick Clifton <nickc@redhat.com>
105 * lexsup.c (parse_args): Report unresolved symbols in shared
106 libraries when creating a dynamic executable. This is a
107 restoration of the default behaviour for previous versions of
110 2003-10-06 Matt Thomas <matt@3am-software.com>
112 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
113 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
115 2003-10-06 Robert Millan <robertmh@gnu.org>
117 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
119 2003-10-02 Ivan Warren <ivan@vmfacility.fr>
121 * pe-dll.c (make_one): Correct sym def order & pick right sym for
124 2003-09-30 Chris Demetriou <cgd@broadcom.com>
126 * NEWS: Add an indication of the cutoff for 2.14.
128 2003-09-30 Chris Demetriou <cgd@broadcom.com>
130 * ldmain.c (get_emulation): Ignore "-mips64r2".
132 2003-09-03 Robert Millan <robertmh@gnu.org>
134 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
136 * configure.tgt: Likewise.
138 2003-08-29 Jafa <jafa@silicondust.com>
140 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
142 2003-08-21 Nick Clifton <nickc@redhat.com>
144 * po/tr.po: Updated Turkish translation.
146 2003-08-20 Nick Clifton <nickc@redhat.com>
148 * ldmain.c: Initialise the new fields in bfd_link_info to
150 * lexsup.c (enum option_values): New enum. Use this to
151 replace the handed coded values for the long switch options.
152 (ld_options): Add 'unresolved-symbols',
153 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
154 (parse_args): Handle the new switches. Set the values of
155 unresolved_symbols_in_objects and
156 unresolved_symbols_in_shared_libs appropriately. If they were
157 not initialised by the command line, install default values.
158 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
159 -z defs to use the new fields in bfd_link_info.
160 * ld.texinfo: Document the new switches.
161 * NEWS: Mention this feature.
163 2003-08-15 Dmitry Diky <diwil@mail.ru>
165 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
166 calls genscripts_extra.sh.
167 Rearrange all msp430 depends using this script.
168 * Makefile.in: Regenerate.
169 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
170 that the script to be run to generate the emulations can be passed
171 as an optional parameter instead of being computed from the
173 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
174 definitions into one file.
175 * emulparams/msp430x*.sh: Removed.
177 2003-08-15 Nick Clifton <nickc@redhat.com>
179 * ld.texinfo (Options): Put keywords for the -z option into a
180 table. Add more text describing what the -z now option does.
182 2003-08-14 Alan Modra <amodra@bigpond.net.au>
184 * dep-in.sed: Remove libintl.h.
185 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
186 * Makefile.in: Regenerate.
188 2003-08-13 Alan Modra <amodra@bigpond.net.au>
190 * genscripts.sh (libpath.exp): Only generate for first emulation.
191 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
192 already present or when LIB_PATH is set to ":".
194 2003-08-12 Ian Lance Taylor <ian@airs.com>
196 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
197 to `error'. If only a warning, put warning in the reported
198 string. Consistently set failure flag when not a warning.
200 2003-08-08 Dmitry Diky <diwil@mail.ru>
202 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
204 * Makefile.in: Regenerate.
205 * configure.tgt: Add extra emulations.
206 * emulparams/msp430xE423.sh: New file.
207 * emulparams/msp430xE427.sh: New file.
208 * emulparams/msp430xW425.sh: New file.
209 * emulparams/msp430xE425.sh: New file.
210 * emulparams/msp430xW423.sh: New file.
211 * emulparams/msp430xW427.sh: New file.
213 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
215 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
216 Change second (cmdline) arg to lang_add_entry to FALSE.
217 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
219 2003-08-05 Christian Groessler <chris@groessler.org>
220 Jason Eckhardt <jle@rice.edu>
222 * configure.tgt: Recognize new target i860-*-coff.
223 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
224 (ecoff_i860.c): New rule.
225 * emulparams/coff_i860.sh: New file.
226 * scripttempl/i860coff.sc: New file.
227 * Makefile.in: Regenerate.
229 2003-08-04 Nick Clifton <nickc@redhat.com>
231 * emultempl/elf32.em (before_allocation): Prepend "warning: "
232 to messages produced for .gnu.warning.SYMBOL sections.
234 2003-08-04 Alan Modra <amodra@bigpond.net.au>
236 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
237 .rel.dyn before other reloc sections. Don't stop looking for reloc
238 sections on finding one that isn't allocated. Match .rel even when
239 placing .rela and vice versa, when setting last_rel and
240 last_rel_alloc for the first time. If no reloc sections in script,
241 prefer allocated section over non-alloc.
242 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
244 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
246 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
247 section for shared library.
248 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
249 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
251 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
253 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
254 * scripttempl/elfm68hc11.sc: Likewise.
256 2003-07-28 Alan Modra <amodra@bigpond.net.au>
258 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
260 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
262 2003-07-27 Alan Modra <amodra@bigpond.net.au>
264 * ld.texinfo: Typo fixes. Document SUBALIGN.
265 * ldgram.y (opt_subalign): Add.
266 * ldlex.l (SUBALIGN): Recognize.
267 * ldlang.c (overlay_subalign): New var.
268 (lang_enter_overlay): Add subalign param.
269 (lang_enter_overlay_section): Pass overlay_subalign to
270 lang_enter_output_section_statement.
271 * ldlang.h (lang_enter_overlay): Update.
273 2003-07-24 Nick Clifton <nickc@redhat.com>
275 * po/fr.po: Updated French translation.
277 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
279 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
280 account .tramp sections;
281 * scripttempl/elfm68hc12.sc: Likewise.
283 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
285 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
287 2003-07-17 Nick Clifton <nickc@redhat.com>
289 * po/es.po: New Spanish translation.
291 2003-07-11 Alan Modra <amodra@bigpond.net.au>
293 * po/ld.pot: Regenerate.
295 2003-07-10 Bob Wilson <bob.wilson@acm.org>
297 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
298 with new .got.loc section.
299 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
300 non-relocating links.
301 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
302 sections separate for non-relocating links; likewise for .xt.insn.
304 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
306 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
307 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
308 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
309 * configure.host (am33_2.0-*-linux*): Added.
310 * configure.tgt (am33_2.0-*-linux*): Likewise.
311 * emulparams/elf32am33lin.sh: New.
312 * Makefile.am (eelf32am33lin.c): New rule.
313 * Makefile.in: Rebuilt.
315 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
317 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
318 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
319 (GENERATE_SHLIB_SCRIPT): Likewise.
321 2003-07-10 Alan Modra <amodra@bigpond.net.au>
323 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
325 * emultempl/ppc64elf.em (stub_added): New static var.
326 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
327 (ppc_add_stub_section): Set stub_added.
328 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
329 ppc64_elf_size_stubs call and test for stubs.
330 * scripttempl/elf.sc (GOT): Define and use.
332 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
334 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
335 Allow second call from ldemul_finish.
337 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
339 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
340 (OTHER_SECTIONS): Include .stack.
341 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
343 2003-07-02 Jakub Jelinek <jakub@redhat.com>
345 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
347 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
348 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
351 2003-06-28 Alan Modra <amodra@bigpond.net.au>
353 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
354 Replace PTR with void *. Formatting.
355 * ldcref.c: Likewise.
356 * ldctor.c: Likewise.
357 * ldctor.h: Likewise.
358 * ldemul.h: Likewise.
361 * ldfile.c: Likewise.
362 * ldfile.h: Likewise.
363 * ldlang.c: Likewise.
364 * ldlang.h: Likewise.
367 * ldmain.c: Likewise.
368 * ldmain.h: Likewise.
369 * ldmisc.c: Likewise.
370 * ldmisc.h: Likewise.
372 * ldwrite.c: Likewise.
373 * ldwrite.h: Likewise.
374 * lexsup.c: Likewise.
377 * pe-dll.c: Likewise.
378 * pe-dll.h: Likewise.
379 * deffilep.y: Likewise.
380 * deffile.h: Likewise. Don't include ansidecl.h.
381 * emulparams/elf32mcore.sh: Remove unnecessary cast.
382 * emultempl/m68kcoff.em: Likewise.
383 * emultempl/m68kelf.em: Likewise.
384 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
385 * sysdep.h: Don't include ansidecl.h.
386 * Makefile.am: Run "make dep-am".
387 * Makefile.in: Regenerate.
389 2003-06-27 Nick Clifton <nickc@redhat.com>
391 * deffilep.y (def_file_add_directive): Cope with NUL seperated
392 directives. Fix reporting of unparseable directives.
393 (def_error): Check for a NULL def_filename.
395 2003-06-27 Alan Modra <amodra@bigpond.net.au>
397 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
398 and casts. Replace PTR with void *. Formatting.
399 * emultempl/alphaelf.em: Likewise.
400 * emultempl/armcoff.em: Likewise.
401 * emultempl/armelf.em: Likewise.
402 * emultempl/armelf_oabi.em: Likewise.
403 * emultempl/beos.em: Likewise.
404 * emultempl/elf32.em: Likewise.
405 * emultempl/generic.em: Likewise.
406 * emultempl/gld960.em: Likewise.
407 * emultempl/gld960c.em: Likewise.
408 * emultempl/hppaelf.em: Likewise.
409 * emultempl/linux.em: Likewise.
410 * emultempl/lnk960.em: Likewise.
411 * emultempl/m68hc1xelf.em: Likewise.
412 * emultempl/m68kcoff.em: Likewise.
413 * emultempl/m68kelf.em: Likewise.
414 * emultempl/mipsecoff.em: Likewise.
415 * emultempl/mipself.em: Likewise.
416 * emultempl/mmix-elfnmmo.em: Likewise.
417 * emultempl/mmixelf.em: Likewise.
418 * emultempl/mmo.em: Likewise.
419 * emultempl/needrelax.em: Likewise.
420 * emultempl/netbsd.em: Likewise.
421 * emultempl/pe.em: Likewise.
422 * emultempl/sh64elf.em: Likewise.
423 * emultempl/sunos.em: Likewise.
424 * emultempl/ticoff.em: Likewise.
425 * emultempl/vanilla.em: Likewise.
426 * emultempl/xtensaelf.em: Likewise.
427 * Makefile.am: Correct dependencies.
428 * Makefile.in: Regenerate.
430 2003-06-25 Alan Modra <amodra@bigpond.net.au>
432 * ld.texinfo: Correct spelling of "relocatable".
433 * ldctor.c: Likewise.
435 * ldfile.c: Likewise.
436 * ldint.texinfo: Likewise.
437 * ldlang.c: Likewise.
438 * ldmain.c: Likewise.
439 * ldwrite.c: Likewise.
440 * lexsup.c: Likewise.
441 * emultempl/aix.em: Likewise.
442 * emultempl/alphaelf.em: Likewise.
443 * emultempl/armcoff.em: Likewise.
444 * emultempl/armelf_oabi.em: Likewise.
445 * emultempl/beos.em: Likewise.
446 * emultempl/elf32.em: Likewise.
447 * emultempl/generic.em: Likewise.
448 * emultempl/gld960.em: Likewise.
449 * emultempl/gld960c.em: Likewise.
450 * emultempl/hppaelf.em: Likewise.
451 * emultempl/linux.em: Likewise.
452 * emultempl/lnk960.em: Likewise.
453 * emultempl/m68hc1xelf.em: Likewise.
454 * emultempl/m68kcoff.em: Likewise.
455 * emultempl/m68kelf.em: Likewise.
456 * emultempl/mipsecoff.em: Likewise.
457 * emultempl/mipself.em: Likewise.
458 * emultempl/mmix-elfnmmo.em: Likewise.
459 * emultempl/mmo.em: Likewise.
460 * emultempl/needrelax.em: Likewise.
461 * emultempl/pe.em: Likewise.
462 * emultempl/ppc64elf.em: Likewise.
463 * emultempl/sh64elf.em: Likewise.
464 * emultempl/sunos.em: Likewise.
465 * emultempl/ticoff.em: Likewise.
466 * emultempl/xtensaelf.em: Likewise.
468 2003-06-24 Alan Modra <amodra@bigpond.net.au>
470 * emultempl/ppc32elf.em: Convert to C90.
472 2003-06-20 Alan Modra <amodra@bigpond.net.au>
474 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
475 unnecessary prototypes and casts.
477 2003-06-19 Alan Modra <amodra@bigpond.net.au>
479 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
480 statistics from ppc64_elf_build_stubs.
482 2003-06-19 Alan Modra <amodra@bigpond.net.au>
484 * emultempl/ppc64elf.em (build_section_lists): Check return status
485 from ppc64_elf_next_input_section.
487 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
489 * ldlang.c (section_already_linked): Put back assignment of
492 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
494 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
497 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
499 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
500 if not produced by gcc.
502 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
504 * configure.tgt: Add specific case for cris-*-linux-gnu*
505 with crislinux emulation only.
507 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
509 * configure.tgt: Add i386-netbsd-gnu target.
511 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
513 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
514 to $targ_extra_libpath.
516 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
518 * po/Make-in (DESTDIR): New.
519 (install-data-yes): Support $(DESTDIR).
520 (uninstall): Likewise.
522 2003-06-10 Doug Evans <dje@sebabeach.org>
524 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
525 * Makefile.in: Regenerate.
527 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
529 * configure.tgt (h8300*): Add h8300sxn emulations.
530 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
531 (eh8300sxn.c, eh8300sxnelf.c): New rules.
532 * Makefile.in: Regenerate.
533 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
534 * scripttempl/h8300sxn.sc: New file.
536 2003-06-10 Alan Modra <amodra@bigpond.net.au>
538 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
539 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
541 2003-06-08 Alan Modra <amodra@bigpond.net.au>
543 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
544 (build_toc_list): New function.
545 (gld${EMULATION_NAME}_finish): Call build_toc_list and
546 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
547 (OPTION_STUBSYMS): Define.
548 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
549 (PARSE_AND_LIST_OPTIONS): Document.
550 (PARSE_AND_LIST_ARGS_CASES): Handle.
552 2003-06-05 Roland McGrath <roland@redhat.com>
554 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
555 extra \t in -z noexecstack line.
557 2003-05-23 Jakub Jelinek <jakub@redhat.com>
559 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
560 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
561 -z execstack and -z noexecstack.
562 (gld${EMULATION_NAME}_list_options): Likewise.
563 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
565 2003-06-03 Michael Snyder <msnyder@redhat.com>
566 and Bernd Schmidt <bernds@redhat.com>
567 and Alexandre Oliva <aoliva@redhat.com>
569 * Makefile.am: Add new emulations for h8300sx.
570 * Makefile.in: Regenerate.
571 * configure.tgt: Add new emulations.
572 * emulparams/h8300sx.sh: New emulation.
573 * emulparams/h8300sxelf.sh: Ditto.
574 * scripttempl/h8300sx.sc: Ditto.
576 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
578 * ldmisc.c: Include "bfdlink.h".
579 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
580 and -LD_DEFINITION_IN_DISCARDED_SECTION.
582 * Makefile.am: Rebuild dependency.
583 * Makefile.in: Regenerated.
585 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
587 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
588 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
590 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
592 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
593 sorted alphabetically, instead of exported_symbols, which is
596 2003-05-30 Ulrich Drepper <drepper@redhat.com>
597 Jakub Jelinek <jakub@redhat.com>
599 * lexsup.c (OPTION_PIE): Define.
600 (ld_options): Add -pie and --pic-executable options.
601 (parse_args): Handle OPTION_PIE.
602 * ldmain.c (main): Initialize link_info.pie and
603 link_info.executable.
604 * genscripts.sh: Generate PIE scripts.
605 * ld.texinfo: Document -pie and --pic-executable options.
606 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
607 (gld${EMULATION_NAME}_place_orphan): Likewise.
608 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
609 * scripttempl/elf.sc: In PIE scripts set . the same way as in
611 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
612 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
613 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
614 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
615 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
616 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
617 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
618 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
619 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
620 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
621 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
623 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
625 * genscripts.sh: Create tmpdir/libpath.exp.
627 2003-05-30 Nick Clifton <nickc@redhat.com>
629 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
630 with a test for a NULL bfd_for_interworking.
632 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
634 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
635 correctly for more recent versions of NetBSD.
636 (alpha*-*-netbsd*): Remove.
637 (i[3-7]86-*-netbsd*): Remove.
639 2003-05-29 Nick Clifton <nickc@redhat.com>
641 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
643 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
645 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
646 trap on pointer crops.
648 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
650 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
651 as well as shle-...-netbsdelf.
653 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
655 * configure.host: Accept i[3-7]86 variants.
656 * configure.tgt: Likewise.
658 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
660 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
662 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
664 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
665 (earmelfb.c, earmelfb_linux.c): New rules.
666 * Makefile.in: Regenerated.
667 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
668 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
670 2003-05-09 Nick Clifton <nickc@redhat.com>
672 * ldlang.c (lang_size_sections_1): Default to generating a
673 fatal error message if a loadable section is not allocated
674 to a memory region when regions are defined.
676 2003-05-09 Alan Modra <amodra@bigpond.net.au>
678 * Makefile.am (em68hc11elf.c): Correct dependencies.
679 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
680 * Makefile.in: Regenerate.
681 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
682 bfd_elf_record_link_assignment name.
684 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
686 * ldmain.h (overflow_cutoff_limit): Declare.
687 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
688 (reloc_overflow): Limit error messages based on it.
689 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
692 2003-05-05 Alan Modra <amodra@bigpond.net.au>
694 * ldlex.l: Accept C style comments in version scripts.
696 2003-04-28 H.J. Lu <hjl@gnu.org>
698 * ldlang.c (lang_process): Add the relax finalize pass.
700 * ldmain.c (main): Initialize link_info.relax_finalizing to
703 2003-04-24 Roland McGrath <roland@redhat.com>
705 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
706 If a name string is unknown, give an error rather than crashing later.
708 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
710 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
711 eh8300hnelf.o, eh8300snelf.o and respective rules.
712 * Makefile.in: Regenerate.
713 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
714 * emulparams/h8300hn.sh: New
715 * emulparams/h8300sn.sh: New
716 * emulparams/h8300hnelf.sh: New
717 * emulparams/h8300snelf.sh: New
718 * scripttempl/h8300hn.sc: new
719 * scripttempl/h8300sn.sc: new
721 2003-04-23 H.J. Lu <hjl@gnu.org>
723 * ldmain.c (link_callbacks): Initialize error_handler.
725 * ldmisc.c (error_handler): New function.
727 * ldmisc.h (error_handler): New prototype.
729 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
731 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
732 * emulparams/m68hc11elfb.sh: Likewise.
733 * emulparams/m68hc12elf.sh: Likewise.
734 * emulparams/m68hc12elfb.sh: Likewise.
736 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
738 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
740 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
742 (LDEMUL_FINISH): Override to generate the trampolines after gc and
744 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
745 stub file for trampolines.
746 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
747 --no-trampoline and --bank-window to control the memory bank window.
749 2003-04-18 H.J. Lu <hjl@gnu.org>
751 * ldfile.c (ldfile_add_library_path): Remove the unused
754 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
756 * scripttempl/xstormy16.sc (__data, __rdata): New.
758 2003-04-16 Nick Clifton <nickc@redhat.com>
760 * scripttempl/xstormy16.sc: Add .jcr section mapping.
762 2003-04-15 H.J. Lu <hjl@gnu.org>
764 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
766 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
768 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
770 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
771 * ld.texinfo: Likewise.
773 2003-04-14 Alan Modra <amodra@bigpond.net.au>
775 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
776 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
777 other variants of crtbegin.o, crtend.o.
779 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
780 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
781 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
782 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
783 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
784 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
785 * scripttempl/mmo.sc (ctors, dtors): Likewise.
786 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
788 2003-04-09 Dmitry Diky <diwil@mail.ru>
790 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
791 sections to respect C++ constructor/destructor. Add ctors/dtors
792 start/stop definitions.
793 * scripttempl/elf32msp430_3.sc: Likewise.
795 2003-04-06 Nick Clifton <nickc@redhat.com>
797 * ld.texinfo (Options): Add a reminder of the target specific
798 nature to the description of the i386 PE specific options, for
799 readers who have not read all the way through the manual.
801 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
803 * configure.tgt: Fixed bug in list of targ_extra_emuls.
804 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
805 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
806 * emulparams/tic3xcoff_onchip.sh: Ditto
807 * emulparams/tic4xcoff.sh: Ditto
808 * scripttempl/tic4xcoff.sc: Ditto
810 2003-04-03 Nick Clifton <nickc@redhat.com>
812 * NEWS: Mention support for Xtensa architecture.
814 2003-04-02 Nick Clifton <nickc@redhat.com>
816 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
818 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
820 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
821 Don't call pe_dll_build_section() if link_info.relocateable.
822 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
823 if link_info.relocateable.
825 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
827 * pe-dll.c (process_def_file): Don't create an export
828 section if there are no exports and we're building an exe
829 (pe_dll_build_sections): Ditto
830 (pe_dll_fill_sections): Conditionalize setting
831 abfd->dll true on info->shared
832 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
833 If i386pe or armpe, call pe_dll_build_section()
834 for both exe's and dll's, not just dll's.
835 (gld_${EMULATION_NAME}_finish): For all targets except
836 shpe and mipspe, call pe_dll_fill_sections() for both
837 exe's and dll's, not just dll's.
839 2003-04-02 Bob Wilson <bob.wilson@acm.org>
841 * emulparams/xtensa-config.sh: Remove comment indicating that this is
844 2003-04-01 Bob Wilson <bob.wilson@acm.org>
846 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
847 (eelf32xtensa.c): New target.
848 * Makefile.in: Regenerate.
849 * configure.tgt: Handle xtensa-*-*.
850 * gen-doc.texi: Set XTENSA variable.
851 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
852 * emulparams/elf32xtensa.sh: New file.
853 * emulparams/xtensa-config.sh: Likewise.
854 * emultempl/xtensaelf.em: Likewise.
855 * scripttempl/elfxtensa.sc: Likewise.
857 2003-04-01 Jakub Jelinek <jakub@redhat.com>
859 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
860 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
861 if --enable-64-bit-bfd.
863 2003-04-01 Nick Clifton <nickc@redhat.com>
865 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
867 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
868 name of note section.
870 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
872 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
875 2003-03-31 David Heine <dlheine@suif.stanford.edu>
877 * ldfile.c (ldfile_add_library_path): Always allocate space for
879 * ldlang.c (lang_register_vers_node): Free the node if it cannot
881 * ldmain.c (set_scripts_dir): Always free the constructed
883 (add_keepsyms_file): Fix memory leak.
884 * ldmisc.c (vfinfo): Likewise.
885 * lexsup.c (parse_args): Likewise.
887 2003-03-25 Stan Cox <scox@redhat.com>
888 Nick Clifton <nickc@redhat.com>
890 Contribute support for Intel's iWMMXt chip - an ARM variant:
892 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
893 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
894 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
897 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
899 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
900 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
901 (main): Initialize them.
902 * ldfile.c: Include pathnames.h.
903 (is_sysrooted_pathname): New.
904 (ldfile_add_library_path): Use it.
905 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
906 search_dirs if given an absolute pathname.
907 (ldfile_open_file): Issue error message for sysrooted
909 * Makefile.am: Updated dependencies.
910 * Makefile.in: Rebuild.
912 2003-03-24 Daniel Néri <dne@mayonnaise.net>
914 * ld.texinfo: Rename all occurances of C54X to TIC54X.
916 2003-03-19 Andreas Schwab <schwab@suse.de>
918 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
921 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
923 * deffilep.y (opt_base): If no number given, set to default
926 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
928 * deffilep.y (def_import): Use default extension of "dll"
929 if no extension provided in parsed IMPORT definition.
931 * deffilep.y (def_lex): Revert 2003-03-12 change.
932 (dot_name): New id type and rule.
933 (expline): Use instead of ID.
934 (opt_equal_name): Likewise.
936 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
938 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
940 2003-03-07 Christopher Faylor <cgf@redhat.com>
942 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
943 apparent accidental removal on 2003-01-06.
945 2003-03-04 Dmitry Diky <diwil@mail.ru>
947 * Makefile.am: Add new devices x1122 x1132 emulation
948 * configure.tgt: Likewise.
949 * Makefile.in: Regenerate.
950 * emulparams/msp430x1122.sh: New file.
951 * emulparams/msp430x1132.sh: New file.
953 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
955 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
958 * ldfile.h (struct search_dirs): Added sysrooted field.
959 * ldlang.h (struct lang_input_statement_struct): Likewise.
960 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
961 (ldfile_open_file_search): Look for sysrooted filename starting
962 with / in ld_sysroot instead of in the current directory. Clear
963 sysrooted flag if it's found in the current directory. Set it
964 from the search directory's sysrooted flag where it is found
966 * ldlang.c (ldlang_sysrooted_script): New static variable.
967 (new_afile): Mark search_file_enums as sysrooted if
968 ldlang_sysrooted_script.
969 (load_symbols): Set ldlang_sysrooted_script according to the
970 script's sysrooted field while processing it.
971 * ld.texinfo: Document INPUT behavior in sysroot.
973 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
975 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
977 2003-03-03 Alan Modra <amodra@bigpond.net.au>
979 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
980 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
981 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
982 PARSE_AND_LIST_EPILOGUE): Don't define.
983 * emultempl/alphaelf.em: New file.
985 2003-03-01 Alan Modra <amodra@bigpond.net.au>
987 * ldemul.c: Include getopt.h.
988 * emultempl/elf32.em: Include getopt.h earlier.
989 * emultempl/ticoff.em: Likewise.
991 2003-02-28 Alan Modra <amodra@bigpond.net.au>
993 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
994 support when scripts read from files.
996 2003-02-28 Alan Modra <amodra@bigpond.net.au>
998 * ldemul.c (ldemul_parse_args): Return FALSE by default.
999 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
1002 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
1003 (ldemul_parse_args): Return bfd_boolean. Formatting.
1004 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
1005 (ldemul_parse_args): Adjust.
1006 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
1007 Return bfd_boolean from parse_args.
1008 * lexsup.c (parse_args): Malloc shortopts, longopts and
1009 really_longopts. Call ldemul_add_options and ldemul_handle_option.
1010 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
1011 gld${EMULATION_NAME}_parse_args.
1012 (gld${EMULATION_NAME}_handle_option): Likewise.
1013 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
1014 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
1015 * emultempl/beos.em: Likewise.
1016 * emultempl/pe.em: Likewise.
1017 * emultempl/ticoff.em: Likewise.
1018 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
1019 (gld${EMULATION_NAME}_add_sysroot): Prototype.
1020 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
1022 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1023 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1024 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1025 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
1027 * emultempl/generic.em: Likewise.
1028 * emultempl/gld960.em: Likewise.
1029 * emultempl/gld960c.em: Likewise.
1030 * emultempl/linux.em: Likewise.
1031 * emultempl/lnk960.em: Likewise.
1032 * emultempl/m68kcoff.em: Likewise.
1033 * emultempl/mipsecoff.em: Likewise.
1034 * emultempl/sunos.em: Likewise.
1035 * emultempl/vanilla.em: Likewise.
1036 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
1038 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
1040 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
1041 memory allocation error.
1043 * Makefile.am (ldmain.o): Define TOOLBINDIR.
1044 * Makefile.in: Rebuilt.
1045 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
1047 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1049 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
1050 call os_region_check when it is set.
1051 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
1052 lang_size_sections_1.
1053 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
1054 only for the last call, not on every relaxation iteration.
1055 * ldlang.h (lang_size_sections): Update prototype.
1056 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
1057 to lang_size_sections.
1058 (pe_exe_fill_sections): Likewise.
1059 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
1060 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1061 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
1062 (ppc_layout_sections_again): Likewise.
1064 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1066 * gen-doc.texi: Set ARM and HPPA variables.
1067 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
1068 title capitalization more consistent. Add missing menu entries for
1069 machine-specific sections and conditionalize them consistently.
1070 Conditionalize text that is irrelevant when SingleFormat is set.
1071 Add @group divisions to improve page breaks in long examples.
1072 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
1073 is correct. Remove "FIXME" comment about not using
1074 @raisesections/@lowersections. Use @raisesections/@lowersections
1075 consistently for machine-specific sections. Change to be more polite
1076 about poor bug reports. Replace FDL appendix with include of fdl.texi.
1077 Move WIN32 node to match its order in the menus.
1078 * fdl.texi: New file.
1080 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1082 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1083 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1084 '${exec_prefix}' (in addition to the expansion thereof) as
1086 * configure: Rebuilt.
1088 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
1090 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
1092 2003-02-20 Harri Porten <porten@kde.org>
1094 * ldgram.y (vers_defns): Allow optional trailing semicolon in
1097 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1099 * emultempl/ppc32elf.em: New file.
1100 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1101 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1102 (eelf32lppcnto.c): Likewise.
1103 (eelf32lppcsim.c): Likewise.
1104 (eelf32ppcnto.c): Likewise.
1105 (eelf32ppc.c): Likewise.
1106 (eelf32ppc_fbsd.c): Likewise.
1107 (eelf32ppcsim.c): Likewise.
1108 (eelf32ppclinux.c): Likewise.
1109 * Makefile.in: Regenerate.
1111 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1113 * ld.texinfo: Remove spaces between @samp and opening brace.
1115 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1117 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1119 (ppc_before_allocation): Don't do optimizations if wrong hash table.
1120 (gld${EMULATION_NAME}_finish): Ditto.
1122 2003-02-17 Nick Clifton <nickc@redhat.com>
1124 * ldmain.c (main) Default allow_shlib_undefined to true.
1125 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1126 (parse_args): Parse the new switch.
1127 * ld.texinfo: Document new switch and default behaviour of
1128 allowing undefined symbols in shared libraries.
1130 2003-02-11 Dmitry Diky <diwil@mail.ru>
1132 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1133 * scripttempl/elf32msp430_3.sc: Likewise.
1135 2003-02-11 Uwe Stieber <uwe@wwws.de>
1137 * configure.tgt: Add support for kaOS as cross build target
1140 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1142 * hppaelf.em (group_size): Change default back to 1.
1144 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1146 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1148 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1150 * hppaelf.em (group_size): Change default to -1.
1152 2003-02-07 Nick Clifton <nickc@redhat.com>
1154 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1156 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1157 no-pipeline-knowledge. This will prevent the getopt package from
1158 thinking that there are any shorter abbreviations for
1159 --no-pipeline-knowledge.
1161 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1163 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1164 which already have it. Avoid duplicates.
1166 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1168 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1169 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1170 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1172 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1174 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1175 call ppc64_elf_tls_optimize.
1177 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1179 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1180 outside of GNU/Linux conditional.
1182 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1184 * deffilep.y (def_get_module): New function: locate an already
1186 * deffile.h (def_get_module): New prototype.
1187 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1188 a dll multiple times.
1190 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1192 * emultempl/sh64elf.em: Include elf32-sh64.h.
1193 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1194 sh64_elf_section_data.
1195 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1197 2003-01-23 Wu Yongwei <adah@netstd.com>
1199 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1200 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1201 cross-80th-column-margin "an" to the next line.
1203 2003-01-21 Nick Clifton <nickc@redhat.com>
1205 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1206 * emulparams/tic3xcoff_onchip.sh: ...this.
1207 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1208 * Makefile.in: Regenerate.
1210 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1212 * configure.tgt: Handle i[3456]86-*-aros*
1214 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1216 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1217 * Makefile.in: Regenerate
1218 * configure.tgt: Added extra target emulations
1219 * emulparams/tic3xcoff.sh: Remove old settings
1220 * emulparams/tic4xcoff.sh: Ditto
1221 * emulparams/tic3xcoff-onchip.sh: Added new
1222 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1223 * scripttempl/tic3xcoff.sc: Remove
1225 2003-01-17 Andreas Jaeger <aj@suse.de>
1227 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1230 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1232 * Makefile.in: Regenerate.
1234 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1236 * ld.texinfo (node WIN32): Some clarifications
1237 and formatting fixups.
1239 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1241 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1242 order, and handle (ignore) -mips32r2.
1244 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1246 * ldmain.c (main): Make sure ld_sysroot is initialized.
1248 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1250 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1252 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1253 (GENSCRIPTS): Add @use_sysroot@.
1254 * Makefile.in: Regenerated.
1255 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1256 * configure.tgt: ... here. Use ${target} instead of ${host}
1257 for NATIVE_LIB_DIRS.
1258 * configure.in: Add --with-sysroot.
1259 * configure: Regenerated.
1260 * genscripts.sh: Accept use_sysroot option. Set new variables
1261 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1262 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1263 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1264 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1265 (ld_sysroot): New variable.
1266 (main): Initialize ld_sysroot.
1267 * ldmain.h (ld_sysroot): New extern.
1268 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1269 searching $EMULATION_LIBPATH.
1270 (gld${EMULATION_NAME}_add_sysroot): New function.
1271 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1272 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1273 environment variables if $NATIVE.
1274 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1275 * NEWS: Mention --with-sysroot.
1277 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1278 instead of setting LIB_PATH.
1279 * emulparams/elf32ppc.sh: Likewise.
1280 * emulparams/elf64_s390.sh: Likewise.
1281 * emulparams/elf64_sparc.sh: Likewise.
1282 * emulparams/elf64ppc.sh: Likewise.
1283 * emulparams/elf_x86_64.sh: Likewise.
1285 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1286 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1288 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1290 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1292 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1294 * Makefile.am (ldmain.o): Pass BINDIR.
1295 * Makefile.in: Regenerated.
1296 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1299 2003-01-02 Ben Elliston <bje@redhat.com>
1301 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1302 (eelf32iq2000.c): New target.
1303 * Makefile.in: Regenerate.
1304 * configure.tgt: Handle iq2000-*-elf.
1305 * emulparams/elf32iq10.sh: New file.
1306 * emulparams/elf32iq2000.sh: New file.
1307 * scripttempl/iq2000.sc: New file.
1309 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1311 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1312 and _pei386_runtime_relocator to the exclude list.
1314 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1316 * ldfile.c: Fix comment typos.
1317 * ldlang.c: Likewise.
1319 * pe-dll.c: Likewise.
1321 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1323 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1324 * Makefile.am (ld.1): Depend on configdoc.texi
1326 * Makefile.in: Regenerated.
1328 2002-12-24 Dmitry Diky <diwil@mail.ru>
1330 * Makefile.am: Add msp430 target.
1331 * configure.tgt: Likewise.
1332 * Makefile.in: Regenerate.
1333 * emulparams/msp430x???.sh: New files. Linker script parameters
1334 for various msp430 configurations.
1335 * gen-doc.texi: Enable msp430 documenation.
1336 * ld.texinfo: Document msp430 sections.
1337 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1338 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1340 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1341 Charles Wilson <cwilson@ece.gatech.edu>
1343 * config.in (HAVE_REALPATH): New entry.
1344 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1346 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1348 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1351 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1353 * ldmain.c (main): Init "strip_discarded".
1354 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1355 (OPTION_NO_STRIP_DISCARDED): Define.
1356 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1357 (parse_args): Handle them.
1359 2002-12-23 Nick Clifton <nickc@redhat.com>
1361 * ld.h (struct args_type): Add new field
1362 'accept_unknown_input_architecture'.
1363 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1365 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1366 bfd_arch_get_compatible.
1367 * ldfile.c (ldfile_try_open_bfd): Likewise.
1368 * lexsup.c (ld_options): Add new command line switch
1369 --accept-unknown-input-architecture and its inverse.
1370 (parse_args): Handle --accept-unknown-input-architecture.
1371 * ld.texinfo: Document new linker option.
1372 * NEWS: Mention new linker option.
1374 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1376 * ldmain.c (main): Re-order link_info initialization. Init all
1379 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1381 * ld.texinfo: Clarify and extend the documentation
1382 in the Machine Dependent, WIN32 section.
1384 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1386 * ld.texinfo: Add win32 machine depending section.
1387 * gen-doc.texi: Enable win32 machine depending section.
1389 * configure.host: Add win32 library search path.
1391 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1393 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1394 import when auto-import is disabled.
1396 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1398 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1399 account for trailing '\0'.
1401 2002-12-17 Nick Clifton <nickc@redhat.com>
1403 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1404 so that it is not confused with -c.
1406 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1407 Charles Wilson <cwilson@ece.gatech.edu>
1409 * configure.in: Add check for realpath function.
1410 * configure: Regenerate.
1411 * config.in: Regenerate.
1412 * aclocal.m4: Regenerate.
1413 * deffile.h: Add .data field to def_file_import
1415 * pe-dll.c (pe_proces_import_defs): Use .data field of
1416 def_file_import structure to initialize flag_data field of
1417 def_file_export structure.
1418 (pe_implied_import_dll): New variables exp_funcbase and
1419 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1420 not filename (which may be a symlink). Scan the sections and
1421 initialize [data|bss]_[start|end]. When scanning the export
1422 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1423 that it is in the .bss or .data sections as data.
1424 * sysdep.h: Include limits.h and sys/param.h, and define
1425 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1426 exists, NULL otherwise.
1427 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1428 pe_process_import_defs before pe_find_data_imports, so that
1429 auto-import will check the virtual implib as well as "real"
1431 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1432 symlinks to their target; check that the target's extension is
1433 .dll before calling pe_implied_import_dll(), not the filename
1434 itself (which may be a symlink).
1436 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1438 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1439 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1442 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1444 * ldlang.h: Formatting.
1446 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1448 * ldlang.c (init_os): Ensure sections mentioned in load_base
1451 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1453 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1454 load_base for orphans that follow a section with load_base set.
1456 2002-12-01 H.J. Lu <hjl@gnu.org>
1458 * ld.texinfo: Remove the extra `;' in sample version script.
1460 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1462 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1464 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1465 * Makefile.in: Regenerate.
1467 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1468 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1469 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1470 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1471 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1472 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1473 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1474 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1475 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1476 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1477 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1478 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1479 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1481 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1483 * configure.host: Fix generic FreeBSD configuration entry.
1485 2002-11-27 H.J. Lu <hjl@gnu.org>
1487 * ld.texinfo: Add the missing `;' to sample version scripts.
1489 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1491 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1493 2002-11-14 Egor Duda <deo@logos-m.ru>
1495 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1496 assignment which has no effect.
1497 * pe-dll.h (pe_create_import_fixup): Change prototype.
1498 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1499 (pe_create_runtime_relocator_reference): Ditto.
1500 (pe_create_import_fixup): Handle relocations with non-zero addends.
1501 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1502 --disable-runtime-pseudo-reloc.
1503 (make_import_fixup): Handle relocations with non-zero addends. Create
1504 an external reference to _pei386_runtime_relocator symbol if at least
1505 one pseudo reloc was created.
1506 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1507 --disable-runtime-pseudo-reloc options.
1509 2002-11-12 Earl Chew <earl_chew@agilent.com>
1511 * ldlang.c (lang_add_section): Discard debugging sections that have
1512 been marked SEC_EXCLUDE.
1514 2002-11-12 Nick Clifton <nickc@redhat.com>
1516 * configure.in (ALL_LINGUAS): Add da.
1517 * configure: Regenerate.
1518 * po/da.po: New Danish translation.
1520 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1522 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1523 (LDEMUL_BEFORE_ALLOCATION): Define.
1524 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1526 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1528 2002-11-11 Christopher Faylor <cgf@redhat.com>
1530 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1533 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1535 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1536 of restricted auto-export libs.
1538 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1540 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1541 creative library naming instances like, e.g., libstdc++-2.a.
1543 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1545 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1546 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1548 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1550 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1551 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1552 (make_one): Don't prefix decorated fastcall symbols with '_'.
1553 (pe_process_import_defs): Likewise.
1554 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1555 symbols to cdecl names or vise-versa.
1557 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1559 * pe-dll.c (process_def_file): Handle fastcall symbols when
1560 generating undecorated aliases. Don't prefix decorated fastcall
1562 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1565 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1567 * emultempl/aix.em: Use include <> for generated headers.
1568 * emultempl/beos.em: Likewise.
1569 * emultempl/elf32.em: Likewise.
1570 * emultempl/pe.em: Likewise.
1571 * ldctor.c: Likewise.
1572 * ldexp.c: Likewise.
1573 * ldfile.c: Likewise.
1574 * ldlang.c: Likewise.
1575 * ldlex.c: Likewise.
1576 * ldlex.l: Likewise.
1577 * ldmain.c: Likewise.
1578 * ldmisc.c: Likewise.
1579 * ldwrite.c: Likewise.
1580 * lexsup.c: Likewise.
1582 * pe-dll.c: Likewise.
1584 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1586 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1587 sections into .rel{,a}.dyn.
1589 2002-10-23 Nick Clifton <nickc@redhat.com>
1591 * lexsup.c (OPTION_NO_OMAGIC): Define.
1592 (ld_options): Add "no-omagic" option.
1593 (parse_args): Parse --no-omagic.
1594 * ld.texinfo: Document --no-omagic.
1595 * NEWS: Mention new option.
1597 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1599 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1600 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1602 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1604 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1605 emulation name. Set LIB_PATH only for native tools, and
1606 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1607 .../lib variants, not instead of them. Mostly copied from...
1608 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1609 * emulparams/elf64bmip-defs.sh: Backed out.
1610 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1611 * emulparams/elf64btsmip.sh: Likewise.
1612 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1613 TEXT_DYNAMIC): Removed.
1615 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1617 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1618 (GENERATE_SHLIB_SCRIPT): Set to yes.
1619 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1620 * emulparams/elf32bmipn32.sh: here.
1621 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1622 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1623 * emulparams/elf64bmip-defs.sh: New file. Extend
1624 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1625 * emulparams/elf64bmip.sh: Bring in definitions from
1627 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1629 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1630 * emulparams/elf64btsmip.sh: Bring in definitions from
1632 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1633 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1635 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1637 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1638 (s390-*-linux*): Add elf64_s390 emulation if want64.
1639 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1640 genscript.sh changes.
1641 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1642 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1644 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1646 * ldlang.c (load_symbols): Revert last change.
1648 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1650 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1652 (lang_reasonable_defaults): Don't compare against false.
1653 (size_input_section): Likewise.
1654 (lang_size_sections_1): Likewise.
1655 (lang_do_assignments): Likewise.
1656 (lang_add_output): Likewise.
1658 * Makefile.am: Run "make dep-am".
1659 * Makefile.in: Regenerate.
1660 * ldver.c: #include "bfdver.h".
1662 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1664 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1666 * scripttempl/elfm68hc12.sc: Likewise.
1668 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1670 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1672 * ldgram.y (memory_spec): Provide empty action.
1673 (section <NAME>): Likewise.
1675 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1677 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1678 they have OUTPUT_FORMAT not matching actual output format.
1679 * ldlang.c (lang_get_output_target): New function.
1680 (open_output): Use it.
1681 * ldlang.h (lang_get_output_target): New prototype.
1683 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1685 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1686 when orphan is .rel, .rela when orphan is .rela.
1687 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1688 first. Remove outsecname var.
1690 2002-10-09 Richard Shann <richard.shann@superh.com>
1691 Stephen Clarke <stephen.clarke@superh.com>
1693 * Makefile.am: Add eshelf32_linux.o and
1694 eshlelf32_linux.o, new emulations for sh64 Linux.
1695 * Makefile.in: Regenerate.
1696 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1697 * emulparams/shelf32_linux.sh: New file.
1698 * emulparams/shlelf32_linux.sh: New file.
1700 2002-10-08 H.J. Lu <hjl@gnu.org>
1702 * ldlang.c (lang_file_exist): Removed.
1703 (new_afile): Revert the last change.
1704 * ldlang.h (lang_file_exist): Removed.
1705 * lexsup.c (parse_args): Revert the last change.
1707 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1709 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1710 auto-import symbols.
1711 (make_one): Create _nm_<symbol> for data only.
1713 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1715 * ldlang.c (lang_file_exist): New function.
1716 (new_afile): Abort if the filename to be added matches the linker
1718 * ldlang.h: Add prototype for lang_file_exist.
1719 * lexsup.c (parse_args): Abort if the output filename matches
1720 one of the input filenames.
1722 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1724 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1726 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1728 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1729 * scripttempl/elfm68hc11.sc: Likewise.
1730 * scripttempl/elfm68hc12.sc: Likewise.
1732 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1733 reloc sections just before .rel.plt/.rela.plt.
1734 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1735 Only put loadable reloc sections in hold_rel.
1737 2002-09-29 H.J. Lu <hjl@gnu.org>
1739 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1741 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1743 From "Anita Kulkarni" <AnitaK@kpit.com>
1744 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1747 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1749 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1751 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1752 SEGMENT_SIZE alignment.
1753 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1754 (SEGMENT_SIZE): Define.
1756 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1757 (fold_binary): Correct abs - non-abs case.
1758 (fold_trinary): New. Split out from exp_fold_tree.
1760 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1762 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1763 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1764 for start of .data, instead align up to 256M boundary.
1765 * scripttempl/aix.sc: Likewise.
1767 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1769 * scripttempl/i386go32.sc: Handle bss unique sections.
1771 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1773 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1775 2002-09-17 Stan Cox <scox@redhat.com>
1777 * emulparams/elf32bmipn32-defs.sh: New file.
1778 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1779 * emulparams/elf32btsmipn32.sh: Likewise.
1780 * emulparams/elf64bmip.sh: Likewise.
1781 * emulparams/elf64btsmip.sh: Likewise.
1783 2002-09-16 Bruno Haible <bruno@clisp.org>
1785 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1787 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1788 elf64-alpha-freebsd.
1790 2002-09-11 Nick Clifton <nickc@redhat.com>
1792 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1794 * po/tr.po: Updated Turkish translation.
1796 2002-09-06 Jeffrey A Law (law@redhat.com)
1798 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1800 2002-09-02 Nick Clifton <nickc@redhat.com>
1802 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1804 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1806 2002-08-30 Nick Clifton <nickc@redhat.com>
1808 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1809 used. Change INSN to start at 0x01000000 and extend for
1810 256K (ignoring holes). Start the STACK on a word aligned
1812 (.rodata): Start it at the READONLY_START_ADDR.
1814 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1816 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1818 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1820 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1821 added makefile targets for this file.
1822 * Makefile.in: Regenerate.
1823 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1824 * NEWS: Mention new port.
1826 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1828 * emulparams/tic3xcoff.sh: New file.
1829 * emulparams/tic4xcoff.sh: New file.
1830 * scripttempl/tic3xcoff.sc: New file.
1831 * scripttempl/tic4xcoff.sc: New file.
1833 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1835 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1836 strtoul and strtoull with bfd_scan_vma.
1837 (gld${EMULATION_NAME}_read_file): Likewise.
1839 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1841 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1843 2002-08-27 Egor Duda <deo@logos-m.ru>
1845 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1846 Add symbols for application to access them.
1848 2002-08-27 Nick Clifton <nickc@redhat.com>
1850 * emultempl/armelf.em: Revert this patch, it is not needed.
1852 2002-08-22 Adam Nemet <anemet@lnxw.com>
1854 2002-08-20 Dan Kegel <dank@kegel.com>
1856 * configure.in: added --with-lib-path argument to ld's configure
1858 * NEWS: Document new switch.
1859 * README: Mention new switch.
1860 * configure: Regenerate.
1861 * Makefile.in: Regenerate.
1863 Based on this patch:
1864 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1866 * Makefile.in (LIB_PATH): Make configurable.
1867 (GENSCRIPTS): Set LIB_PATH in environment.
1868 * configure.in: Substitute LIB_PATH.
1870 2002-08-22 Adam Nemet <anemet@lnxw.com>
1872 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1873 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1874 depending on the type of the function.
1875 (arm_elf_convert_thumb_symbol_to_address): New function.
1877 2002-08-22 Graeme Peterson <gp@qnx.com>
1879 * Makefile.am: Add esh{l}elf_nto.o files.
1880 * Makefile.in: Regenerate.
1881 * configure.tgt: Add support for sh-**-nto* targets.
1882 * emulparams/shelf_nto.sh: New file.
1883 * emulparams/shlelf_nto.sh: New file.
1885 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1887 * ldlang.c (offsetof): Define if not defined.
1889 2002-08-14 H.J. Lu <hjl@gnu.org>
1891 * configure.tgt: Always enable 64bit emulations for 32bit
1894 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1896 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1897 (MAXPAGESIZE): Set to 1.
1899 * ld.h (ALIGN_N): Delete.
1900 * ldexp.h (align_n): Declare.
1901 * ldexp.c (align_n): New function.
1902 (fold_binary): Use align_n instead of ALIGN_N.
1903 (exp_fold_tree): Likewise.
1904 * ldlang.c (lang_size_sections_1): Likewise.
1905 (lang_one_common): Likewise.
1906 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1908 2002-07-31 Graeme Peterson <gp@qnx.com>
1910 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1911 * Makefile.am: Add eelf32{l}ppcnto.o files.
1912 * Makefile.in: Regenerate.
1913 * emulparams/elf32lppcnto.sh: New file.
1914 * emulparams/elf32ppcnto.sh: New file.
1916 2002-08-07 H.J. Lu <hjl@gnu.org>
1918 * ld.texinfo: Document --no-undefined-version.
1920 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1921 `script.' fields to 0.
1923 * ldmain.c (main): Initialize the allow_undefined_version to
1926 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1927 (ld_options): Add --no-undefined-version.
1928 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1930 2002-08-07 Nick Clifton <nickc@redhat.com>
1932 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1933 an interworking bfd if there are input bfds. (107501)
1935 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1937 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1940 2002-08-01 Nick Clifton <nickc@redhat.com>
1942 * emulparams/armelf.sh: Revert previous delta.
1943 * scripttempl/elf.sc: Revert previous delta.
1945 2002-07-31 H.J. Lu <hjl@gnu.org>
1947 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1948 --enable-64-bit-bfd.
1950 2002-07-31 H.J. Lu <hjl@gnu.org>
1952 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1953 64bit BFD is selected.
1955 2002-07-31 H.J. Lu <hjl@gnu.org>
1957 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1958 if 64bit BFD is selected.
1960 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1962 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1963 link_info.common_skip_ar_aymbols.
1964 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1966 * ldmain.c (main): Initialize new field
1967 link_info.common_skip_ar_aymbols.
1969 2002-07-31 Adam Nemet <anemet@lnxw.com>
1971 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1973 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1976 2002-07-31 Nick Clifton <nickc@redhat.com>
1978 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1979 of the PDP-11 and 2.11BSD a.out support.
1981 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1983 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1984 for n32 ABI support.
1985 * Makefile.in: Regenerate.
1986 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1987 n32 ABI emulations for these 64 bit targets.
1988 * emulparams/elf32bmipn32.sh: Expand comment.
1989 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1991 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1993 2002-07-30 Graeme Peterson <gp@qnx.com>
1995 * configure.tgt: Add support for arm-*-nto target.
1996 * Makefile.am: Add earmnto.o file.
1997 * Makefile.in: Regenerate.
1998 * NEWS: Mention port of ARM support to QNX.
1999 * emulparams/armnto.sh: New file.
2001 2002-07-30 Jakub Jelinek <jakub@redhat.com>
2003 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
2004 for relocatable link.
2005 (lang_size_sections_1): Don't make .tbss zero size for relocatable
2008 2002-07-26 Bernd Schmidt <bernds@redhat.com>
2010 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
2013 2002-07-25 Nick Clifton <nickc@redhat.com>
2015 * po/sv.po: Updated Swedish translation.
2016 * po/es.po: Updated Spanish translation.
2017 * po/fr.po: Updated French translation.
2019 2002-07-24 Nick Clifton <nickc@redhat.com>
2021 * po/sv.po: Updated Swedish translation.
2022 * po/es.po: Updated Spanish translation.
2024 2002-07-23 Nick Clifton <nickc@redhat.com>
2026 * po/fr.po: Updated French translation.
2028 2002-07-20 Alan Modra <amodra@bigpond.net.au>
2030 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2031 bomb on /DISCARD/ input section.
2032 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2033 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2035 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
2037 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
2040 2002-07-16 Denis Chertykov <denisc@overta.ru>
2041 Nick Clifton <nickc@redhat.com>
2042 Frank Ch. Eigler <fche@redhat.com>
2043 John Healy <jhealy@redhat.com>
2045 * configure.tgt: Add support for ip2k-elf.
2046 * Makefile.am: Add support for ip2k-elf.
2047 * Makefile.in: Regenerate.
2048 * emulparams/elf32ip2k.sh: New file.
2049 * scripttempl/ip2k.sc: New file
2050 * NEWS: Mention support for new port.
2052 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2054 * NEWS: Add 'Changes in 2.13'.
2056 2002-07-14 H.J. Lu <hjl@gnu.org>
2058 * ld.texinfo: Document a .symver takes precedence over a
2061 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2063 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
2064 (COMMONPAGESIZE): Define.
2066 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2068 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
2070 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2072 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
2073 powerpc-*-openbsd* and sparc64-*-openbsd*.
2074 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
2075 * Makefile.in: Regenerate.
2076 * emulparams/hppaobsd.sh: New file.
2078 2002-07-05 Alan Modra <amodra@bigpond.net.au>
2080 * ldlang.c (print_wild_statement): Fix output formatting.
2082 2002-07-04 Alan Modra <amodra@bigpond.net.au>
2084 * ldlang.c: (strip_excluded_output_sections): New function.
2085 (lang_process): Call it.
2086 (lang_size_sections_1): Revert 2002-06-10 change.
2088 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2090 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2092 * Makefile.in: Regenerate.
2094 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2096 * ldfile.c (ldfile_try_open_bfd): Formatting.
2098 * ldmisc.c (demangle): Move so that it doesn't intrude between
2099 vfinfo comment and body. Add comment.
2101 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2103 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2105 2002-07-01 Alan Modra <amodra@bigpond.net.au>
2107 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2108 * ldlang.c (entry_sym): Likewise.
2109 (ldlang_undef_chain_list_type): Likewise.
2110 (lang_finish): Adjust references to entry_symbol.
2111 (lang_add_entry): Likewise.
2112 (lang_gc_sections): Use link_info.gc_sym_list.
2113 (lang_process): Set link_info.gc_sym_list.
2114 * ldlex.l: Include bfdlink.h.
2115 * ldmain.c (main): Init link_info.gc_sym_list.
2116 * emultempl/aix.em: Adjust references to entry_symbol.
2117 * emultempl/armcoff.em: Likewise.
2118 * emultempl/armelf.em: Likewise.
2119 * emultempl/pe.em: Likewise.
2120 * emultempl/ppc64elf.em (ppc_after_open): New function.
2121 (LDEMUL_AFTER_OPEN): Define.
2122 * emulparams/elf64ppc.sh: KEEP .opd sections.
2124 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2126 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2127 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2128 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2129 (EEPROM_START_ADDR): Define.
2130 (EEPROM_MEMORY): Define.
2131 * emulparams/m68hc12elf.sh: Likewise.
2132 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2133 section to put soft registers in .page0.
2134 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2136 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2138 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2139 section. Add ${RELOCATING-0}.
2141 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2143 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2144 (OTHER_SECTIONS): Define.
2145 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2146 (OTHER_SECTIONS): Undef.
2148 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2150 * ldmisc.c (demangle): Restore dots stripped from sym name.
2152 2002-06-25 H.J. Lu <hjl@gnu.org>
2154 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2155 * Makefile.in: Regenerated.
2157 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2159 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2160 the size of attached object files, to allow make the object files
2161 available via FTP or HTTP and to mention that the mail will be
2162 sent to a mailing list.
2164 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2166 * configure.host (romp): Drop support.
2168 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2170 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2171 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2173 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2175 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2176 format specifier used to print BFD name.
2178 2002-06-18 Dave Brolley <brolley@redhat.com>
2180 From Catherine Moore, Michael Meissner, Jim Blandy:
2181 * emulparams/elf32frv.sh: New file.
2182 * configure.tgt: Support frv-*-*.
2183 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2184 (eelf32frv.c): New target.
2186 2002-06-17 Tom Rix <trix@redhat.com>
2188 * emultempl/elf32.em: gld*_get_script: Check for
2189 GENERATE_COMBRELOC_SCRIPT.
2190 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2191 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2193 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2195 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2197 2002-06-12 H.J. Lu <hjl@gnu.org>
2199 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2200 false if xvec doesn't match.
2202 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2204 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2206 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2208 * ldexp.c: Replace CONST with const.
2209 * ldfile.c: Likewise.
2210 * ldfile.h: Likewise.
2211 * ldlex.l: Likewise.
2213 * pe-dll.h: Likewise.
2215 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2217 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2219 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2221 * ldmain.c (main): initialize link_info.pei386_auto_import
2222 to -1 == implicit enable.
2223 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2224 initialize link_info.pei386_auto_import to -1 == implicit
2226 (gld_${EMULATION_NAME}_parse_args): When processing
2227 --enable-auto-import and --disable-auto-import options, use
2228 '1' and '0' instead of 'true' and 'false'.
2229 (pe_find_data_imports): Only issue message about auto-import
2230 when the feature is implicitly enabled. Downgrade message to
2231 informational instead of warning.
2233 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2235 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2237 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2239 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2240 HOSTING_CRT0 and HOSTING_LIBS.
2242 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2244 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2246 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2248 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2249 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2251 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2253 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2254 SEC_EXCLUDE sections when doing a relocatable link.
2256 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2258 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2259 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2260 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2261 (eshlelf64_nbsd.c): New rules.
2262 * Makefile.in: Regenerate.
2263 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2264 (sh64-*-netbsd*): New targets.
2265 * emulparams/shelf32_nbsd.sh: New file.
2266 * emulparams/shelf64_nbsd.sh: New file.
2267 * emulparams/shlelf32_nbsd.sh: New file.
2268 * emulparams/shlelf64_nbsd.sh: New file.
2270 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2272 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2274 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2276 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2277 C++ constructors/destructors, loosely based on the m68hc11 port.
2279 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2281 * Makefile.in: Regenerate.
2282 * aclocal.m4: Regenerate.
2283 * config.in: Regenerate.
2284 * configure: Regenerate.
2286 2002-05-31 Graeme Peterson <gp@qnx.com>
2288 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2289 (ei386nto.c): Add rule.
2290 * Makefile.in: Regenerate.
2291 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2292 * emulparams/i386nto.sh: New file.
2294 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2296 * NEWS: Add entry for VAX ELF support.
2298 2002-05-29 Matt Thomas <matt@3am-software.com>
2299 Jason Thorpe <thorpej@wasabisystems.com>
2301 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2303 (evaxnbsd.c): New rules.
2304 * Makefile.in: Regenerate.
2305 * configure.tgt (vax-*-netbsdelf*)
2307 (vax-*-netbsd*): New targets.
2308 * emulparams/elf32vax.sh: New file.
2309 * emulparams/vaxnbsd.sh: New file.
2311 2002-05-29 Adam Nemet <anemet@lnxw.com>
2313 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2314 bfd_for_interwork, instead add glue sections to each input bfd.
2315 (bfd_for_interwork): New global.
2316 (arm_elf_set_bfd_for_interworking): New function.
2317 (arm_elf_before_allocation): Use it.
2319 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2321 * Makefile.am: Add DLX make target.
2322 * configure.tgt: Add DLX configuration.
2323 * Makefile.in: Regenerate.
2324 * emulparams/elf32_dlx.sh: New file
2325 * scripttempl/dlx.sc: New file
2327 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2329 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2330 * Makefile.in: Regenerate.
2331 * emulparams/elf_chaos.sh: Use elf_chaos script.
2332 * scripttempl/elf_chaos.sc: New file.
2334 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2336 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2337 addresses and regions from here...
2338 (lang_get_regions): ...to this new function.
2339 (lang_leave_output_section_statement): Use lang_get_regions.
2340 (lang_leave_overlay): Likewise.
2341 * mri.c (mri_draw_tree): Pass null as last argument to
2342 lang_leave_output_section_statement.
2343 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2344 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2345 * emultempl/pe.em (gld*_place_orphan): Likewise.
2347 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2349 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2351 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2353 * ldemul.c: Fix formatting.
2354 * ldfile.c: Likewise.
2355 * pe-dll.c: Likewise.
2356 * pe-dll.h: Likewise.
2358 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2360 * ldlang.c (lang_process): Formatting, grammar.
2362 * ldlex.l: Use #include "" instead of <> for local header files.
2364 2002-05-24 TAMURA Kent <kent@netbsd.org>
2366 * configure.tgt: Add a target for i386-netbsdpe.
2368 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2370 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2371 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2372 output section if necessary. Handle .tbss.
2373 (lang_size_sections): Clear _raw_size for .tbss section
2374 (it allocates space in PT_TLS segment only).
2375 * ldwrite.c (build_link_order): Build link order for .tbss too.
2377 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2379 * configure.in: Correct spelling of AC_PREREQ.
2381 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2383 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2385 (autofilter_objlist): Add crtbegin.o, crtend.o.
2387 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2389 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2390 (longopts): Add new option --exclude-libs.
2391 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2392 (gld_${EMULATION_NAME}_parse_args): Use it.
2393 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2394 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2395 from whole archives.
2396 (pe_dll_add_excludes): Set excludes->type.
2397 (auto_export): Add new variable libname and set to archive basename if
2398 abfd. Use it when filtering default and user-specified libarary
2399 excludes. Let string "ALL" mean all libs when filtering user-specified
2401 * ld.texinfo: Document --exclude-libs.
2403 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2405 * ldemul.c (ldemul_new_vers_pattern): New function.
2406 * ldemul.h (ldemul_new_vers_pattern): Declare.
2407 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2408 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2409 * emultempl/ppc64elf.em (dotsyms): New static var.
2410 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2411 (LDEMUL_NEW_VERS_PATTERN): Define.
2412 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2413 (PARSE_AND_LIST_LONGOPTS): Likewise.
2414 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2415 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2417 * emultempl/armcoff.em: Likewise.
2418 * emultempl/armelf_oabi.em: Likewise.
2419 * emultempl/beos.em: Likewise.
2420 * emultempl/elf32.em: Likewise.
2421 * emultempl/generic.em: Likewise.
2422 * emultempl/gld960.em: Likewise.
2423 * emultempl/gld960c.em: Likewise.
2424 * emultempl/linux.em: Likewise.
2425 * emultempl/lnk960.em: Likewise.
2426 * emultempl/m68kcoff.em: Likewise.
2427 * emultempl/mipsecoff.em: Likewise.
2428 * emultempl/pe.em: Likewise.
2429 * emultempl/sunos.em: Likewise.
2430 * emultempl/ticoff.em: Likewise.
2431 * emultempl/vanilla.em: Likewise.
2433 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2435 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2436 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2437 (LIB_SEARCH_DIRS): No need to use "tr".
2438 (COMPILE_IN): Only set for native targets.
2439 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2440 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2441 * configure.tgt (powerpc*): Set tdir_*.
2442 (powerpcle*): Correct targ_extra_emuls.
2443 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2444 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2446 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2448 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2449 calling lang_add_entry.
2451 2002-05-21 H.J. Lu (hjl@gnu.org)
2453 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2455 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2457 * ld.texinfo: Updated for --allow-multiple-definition and
2460 * ldmain.c (main): Initialize the allow_multiple_definition
2463 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2464 (ld_options): Add --allow-multiple-definition.
2465 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2467 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2469 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2470 (earmelfb_nbsd.c): New rule.
2471 * Makefile.in: Regenerate.
2472 * configure.tgt (armeb-*-netbsdelf*): New target.
2473 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2474 (arm-*-netbsd*): Likewise.
2475 * emulparams/armelfb_nbsd.sh: New file.
2477 2002-05-18 Tom Rix <trix@redhat.com>
2479 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2482 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2484 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2485 * Makefile.in: Regenerate.
2486 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2488 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2490 * emulparams/avr1.sh: New file.
2491 * emulparams/avr2.sh: New file.
2492 * emulparams/avr3.sh: New file.
2493 * emulparams/avr4.sh: New file.
2494 * emulparams/avr5.sh: New file.
2495 * scripttempl/avr.sc: New file.
2497 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2499 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2500 (lang_place_orphans): Abort if just_syms_flag.
2502 2002-05-10 Tom Rix <trix@redhat.com>
2504 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2505 architecture and machine information in the output bfd.
2506 (gld*_before_parse): Remove old arch and machine code.
2507 (choose_target): Rename to gld*_choose_target.
2508 (rtld): Change type to int.
2509 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2510 objects in XCOFF archives.
2511 * ldfile.h: Update copyright date.
2513 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2515 * ldmain.c (main): Enable -z combreloc by default.
2517 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2519 * Makefile.am: Honour DESTDIR.
2520 * Makefile.in: Regenerate.
2522 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2524 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2525 (lang_enter_overlay): Remove the last two parameters.
2526 (lang_leave_overlay): Take them here instead.
2527 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2528 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2529 than lang_enter_overlay.
2530 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2531 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2532 (lang_size_sections_1): Evaluate it.
2533 (lang_leave_output_section_statement): Rework LMA lookup.
2534 (overlay_lma, overlay_nocrossrefs): Remove.
2535 (lang_enter_overlay): Remove LMA and crossref arguments.
2536 (lang_enter_overlay_section): Don't set the LMA here.
2537 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2538 assignment to the last section's update_dot_tree. Unconditionally
2539 use the load and run-time regions specified in the OVERLAY statement.
2540 Likewise the first section's LMA. Only set the other sections' LMAs
2541 when no load region is given.
2543 2002-05-06 Nick Clifton <nickc@redhat.com>
2545 * po/sv.po: New translation.
2547 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2549 * emultempl/hppaelf.em (build_section_lists): New function.
2550 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2551 and build_section_lists.
2553 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2555 * ld.h: Fix formatting.
2556 * ldexp.c: Likewise.
2557 * ldfile.c: Likewise.
2558 * ldlang.c: Likewise.
2559 * ldmain.c: Likewise.
2560 * lexsup.c: Likewise.
2561 * pe-dll.c: Likewise.
2563 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2565 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2566 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2567 (build_section_lists): Do output_section tests here.
2569 2002-04-30 Tom Rix <trix@redhat.com>
2571 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2573 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2575 Long branch stubs, multiple stub sections.
2576 * emultempl/ppc64elf.em: Include ldctor.h.
2577 (stub_file): New var.
2578 (group_size): New var.
2579 (ppc_create_output_section_statements): New function.
2580 (struct hook_stub_info): New.
2581 (hook_in_stub): New function.
2582 (ppc_add_stub_section): New function.
2583 (ppc_layout_sections_again): New function.
2584 (build_section_lists): New function.
2585 (gld${EMULATION_NAME}_finish): Rewrite.
2586 (real_func): New var.
2587 (ppc_for_each_input_file_wrapper): New function.
2588 (ppc_lang_for_each_input_file): New function.
2589 (lang_for_each_input_file): Define.
2590 (PARSE_AND_LIST_PROLOGUE): Define.
2591 (PARSE_AND_LIST_LONGOPTS): Define.
2592 (PARSE_AND_LIST_OPTIONS): Define.
2593 (PARSE_AND_LIST_ARGS_CASES): Define.
2594 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2596 2002-04-30 Tom Rix <trix@redhat.com>
2598 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2599 -blibpath, -bnolibpath support.
2601 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2603 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2604 (eelf32ppcwindiss.c): New target.
2605 * Makefile.in: Regenerated.
2606 * configure.tgt: Add support for powerpc-*-windiss.
2607 * emulparams/elf32ppcwindiss.sh: New file.
2609 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2611 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2612 * ldexp.c (exp_print_token): Add "infix_p" argument.
2613 (exp_print_tree): Update accordingly.
2615 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2617 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2618 * Makefile.in: Regenerate.
2619 * mpw-elfmips.c: Delete.
2620 * mpw-eppcmac.c: Delete.
2621 * mpw-esh.c: Delete.
2622 * mpw-idtmips.c: Delete.
2624 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2626 * emulparams/shelf32.sh (MACHINE): Now sh5.
2628 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2630 * ldgram.y: Fix syntax warning.
2632 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2634 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2635 to prevent "-n" from being taken as an abbreviation for
2636 "--no-pipeline-knowledge".
2638 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2640 * ldlang.c (lang_size_sections_1): Don't complain about
2641 SEC_NEVER_LOAD sections having no memory region specified.
2643 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2645 2002-04-07 matthew green <mrg@redhat.com>
2647 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2649 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2651 * dep-in.sed: Cope with absolute paths.
2652 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2654 * Makefile.in: Regenerate.
2656 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2658 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2660 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2662 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2663 is smaller than maximum, round dot up to common page boundary.
2665 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2667 * configure.host: Set up for generic hosts first, then tweak as
2668 necessary in more specific targets.
2669 (HOSTING_LIBS): Include libgcc_eh.a if found.
2671 2002-03-23 Andreas Jaeger <aj@suse.de>
2673 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2675 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2677 * Makefile.am: Run "make dep-am".
2678 * Makefile.in: Regenerate.
2680 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2682 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2684 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2686 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2687 add the symbol to the linker hash table immediately.
2688 (lang_place_undefineds): Split symbol creation out..
2689 (insert_undefined): ..to here.
2691 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2693 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2694 the contents of the buffer returned from basename function will are
2695 getting overwritten while still being used.
2697 2002-03-18 Jan Hubicka <jh@suse.cz>
2698 Andreas Jaeger <aj@suse.de>
2699 Andreas Schwab <schwab@suse.de>
2701 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2702 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2703 set libraries to default to lib64 paths.
2705 2002-03-18 Tom Rix <trix@redhat.com>
2707 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2708 * configure.tgt : Same.
2709 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2710 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2711 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2712 emulation parameters for better -b32, -b64 support.
2713 * emulparms/aixrs6.sh : Same.
2714 * emulparms/ppcmacos.sh : Same.
2715 * emultempl/aix.em (choose_target) : Use new emulation parameters
2716 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2717 * Makefile.in : Regenerate.
2719 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2721 * po/fr.po: Updated version.
2723 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2725 * ldmain.c (main): Move .text readonly flag fudges from here..
2726 * ldlang.c (lang_process): ..to here.
2728 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2730 * ldlang.c (lang_check): Remove the word size check added in last
2731 change. Treat emitrelocations case as for relocatable links.
2733 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2735 * po/fr.po: Updated version.
2737 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2739 * ldlang.c (lang_check): Do relocatable link checks first, so that
2740 warn_mismatch can't override. Check compatible and word size too.
2742 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2744 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2746 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2748 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2751 2002-03-04 H.J. Lu <hjl@gnu.org>
2753 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2754 .fini_array in the data segment.
2756 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2758 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2760 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2762 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2763 .init_array, and .fini_array.
2765 2002-02-20 Andreas Schwab <schwab@suse.de>
2767 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2768 .IA64_unwind* in a relocatable link.
2770 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2772 * NEWS: Mark 2.12 branch.
2774 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2776 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2777 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2779 2002-02-18 Tom Rix <trix@redhat.com>
2781 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2782 (gld*_before_allocation): Same.
2783 (gld*_create_output_section_statements): Generate
2784 __rtinit if run time linking. Add librtl.a to the link.
2785 (gld*_read_file): Clean.
2787 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2789 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2791 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2793 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2794 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2795 and eelf64alpha_fbsd.
2796 * Makefile.in: Regenerate.
2797 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2798 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2799 use a FreeBSD-specific emulation rather than the psABI one.
2800 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2801 for all FreeBSD ELF systems.
2802 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2804 * emulparams/elf32ppc_fbsd.sh: Likewise.
2805 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2806 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2807 * emulparams/elf64alpha_fbsd.sh: Likewise.
2808 * emulparams/elf_i386_fbsd.sh: Likewise.
2809 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2811 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2813 * po/tr.po: Updated version.
2815 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2817 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2820 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2822 * emultempl/mmo.em (mmo_after_open): Don't call
2823 _bfd_mmix_check_all_relocs when producing ELF output.
2825 2002-02-15 Richard Henderson <rth@redhat.com>
2827 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2828 definition. Emit a unop+nop pair.
2830 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2832 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2833 for presence of .MMIX.reg_contents.linker_allocated before early
2836 * NEWS: Mention support for MMIX.
2838 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2840 Support arbitrary length fill patterns.
2841 * ld.texinfo (Output Section Fill): Describe fill expressions.
2842 (FILL): Refer to the above.
2843 * ldexp.h (etree_value_type): Add "str" field.
2844 (union etree_union): Add "str" to "value" struct.
2845 (exp_bigintop): Declare.
2846 (exp_get_fill): Declare.
2847 * ldexp.c: Include "safe-ctype.h".
2848 (exp_intop): Set value.str to NULL.
2849 (exp_bigintop): New function.
2850 (new_rel): Pass in "str", and set new.str from it.
2851 (new_rel_from_section): Set new.str to NULL.
2852 (fold_name): Adjust calls to new_rel.
2853 (exp_fold_tree): Likewise.
2854 (exp_get_fill): New function.
2855 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2856 (INT): Returns a "bigint". Adjust all code handling INTs.
2857 (fill_opt): Returns a "fill".
2858 (fill_exp): Split out of fill_opt, use for FILL.
2859 * ldlang.h (struct _fill_type): New.
2860 (fill_type): Move typedef to ldexp.h.
2861 (lang_output_section_statement_type): "fill" is now a pointer.
2862 (lang_fill_statement_type): Likewise.
2863 (lang_padding_statement_type): Likewise.
2864 (lang_add_fill): Now takes a "fill_type *" param.
2865 (lang_leave_output_section_statement): Likewise.
2866 (lang_do_assignments): Likewise.
2867 (lang_size_sections): Likewise.
2868 (lang_leave_overlay_section): Likewise.
2869 (lang_leave_overlay): Likewise.
2870 * ldlang.c: Include ldgram.h after ldexp.h.
2871 (lang_output_section_statement_lookup): Adjust for fill_type change.
2872 (print_fill_statement): Likewise.
2873 (print_padding_statement): Likewise.
2874 (insert_pad): Now takes a "fill_type *" arg.
2875 (size_input_section): Likewise.
2876 (lang_size_sections_1): Likewise.
2877 (lang_size_sections): Likewise.
2878 (lang_do_assignments): Likewise.
2879 (lang_add_fill): Likewise.
2880 (lang_leave_output_section_statement): Likewise.
2881 (lang_leave_overlay_section): Likewise.
2882 (lang_leave_overlay): Likewise.
2883 Adjust all callers of the above function.
2884 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2885 starting with "0X" as well as "0x". Return bigint.str for hex
2886 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2887 Always use base 16 for numbers starting with "$".
2888 * ldmain.c: Include ldgram.h after ldexp.h.
2889 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2890 of bfd_fill_link_order.
2891 * pe-dll.c: Adjust lang_do_assignments calls.
2892 * emultempl/elf32.em: Likewise.
2893 * emultempl/hppaelf.em: Likewise.
2894 * emultempl/ppc64elf.em: Likewise.
2895 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2896 lang_add_assignment call.
2897 * emultempl/pe.em: Likewise.
2899 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2901 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2902 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2903 the pattern in question is not a regexp.
2904 * ldlang.c: Likewise.
2905 * ldlang.h: Likewise.
2906 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2908 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2910 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2911 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2912 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2913 * ldexp.c (exp_data_seg): New variable.
2914 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2915 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2916 (exp_fold_tree): Handle DATA_SEGMENT_END.
2917 Pass allocation_done when recursing instead of hardcoding
2918 lang_allocating_phase_enum.
2919 * ldexp.h (exp_data_seg): New.
2920 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2921 (lang_size_sections): New.
2922 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2923 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2924 if COMMONPAGESIZE is defined.
2925 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2926 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2927 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2928 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2929 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2932 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2934 * Makefile.in: Regenerate.
2936 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2938 * lexsup.c: Remove strtoul declaration.
2940 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2942 * ldmain.c: Add prototype for main ().
2943 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2944 * emultempl/lnk960.em (lnk960_choose_target): Function should
2947 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2949 * ldlang.c (entry_section): New initialised variable.
2950 (lang_finish): Use it.
2951 * ldlang.h (entry_section): Declare.
2952 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2953 entry_section to ".opd".
2955 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2957 * ld.texinfo (Options): Add back in -nostdlib documentation,
2958 which had been inadvertently removed.
2960 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2962 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2963 register section vma to a sane value after emitting error. Make
2964 fatal conditions cause program exit when emitting message.
2966 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2968 * configure.tgt: Add or32-*-rtems target.
2970 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2972 Contribute sh64-elf.
2973 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2974 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2975 in OTHER_RELOCATABLE_SECTIONS.
2976 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2977 * emulparams/shelf32.sh (STACK_ADDR): Define.
2978 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2979 (OTHER_SECTIONS): this. Removed stack settings.
2980 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2981 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2982 2001-03-12 DJ Delorie <dj@redhat.com>
2983 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2984 relaxing if any shmedia or mixed sections are found.
2985 2001-03-07 DJ Delorie <dj@redhat.com>
2986 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2987 einfo. Gracefully decline to output to non-elf formats.
2988 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2989 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2990 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2991 * emulparams/shelf32.sh: Ditto.
2992 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2993 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2995 2001-01-10 Ben Elliston <bje@redhat.com>
2996 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2997 non-portable shell constructs. From Hans-Peter Nilsson.
2998 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2999 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
3000 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
3001 dependencies to the shell script include chain.
3002 * Makefile.in: Regenerate.
3003 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3004 * emultempl/sh64elf.em: Update and tweak comments.
3005 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
3006 make a .cranges section SEC_IN_MEMORY.
3007 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3008 * emultempl/sh64elf.em
3009 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
3010 .cranges section found to be necessary; continue and set stored
3011 section contents flags for sections with non-mixed contents.
3012 Use a struct sh64_section_data container and sh64_elf_section_data
3013 to store contents-type flags.
3014 Remove unused update of "isec".
3015 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
3016 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
3017 access contents-type flags. Assert that the associated container
3018 is initialized. Use that container, not elf_gp_size, to hold size
3019 of linker-generated cranges contents.
3020 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3021 * emultempl/sh64elf.em
3022 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
3023 there's already a .cranges section. When section flag difference
3024 is found, don't NULL-check cranges a second time. Tweak comments.
3025 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
3026 merging, not max size, as size of ld-generated .cranges contents.
3027 Don't set ELF section flags in output section. When checking for
3028 needed .cranges descriptors, don't use a variable; compare
3029 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
3031 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3032 * emultempl/sh64elf.em: New file.
3033 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
3034 * Makefile.in: Regenerate.
3035 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
3036 (OTHER_RELOCATING_SECTIONS): Ditto.
3037 (EXTRA_EM_FILE): New, set to sh64elf if not set.
3038 * emulparams/shlelf32.sh: Stub out all settings except
3039 OUTPUT_FORMAT. Source shelf32.sh.
3040 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
3041 OTHER_RELOCATING_SECTIONS.
3042 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
3043 * emulparams/shlelf64.sh: Stub out all settings except
3044 OUTPUT_FORMAT. Source shelf64.sh.
3045 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3046 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
3048 (DATA_START_SYMBOLS): Define, provide ___data.
3049 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
3050 for consecutive .data section.
3051 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
3052 section after .data section.
3053 * emulparams/shlelf64.sh: Ditto.
3054 * emulparams/shelf32.sh: Ditto.
3055 (ALIGNMENT): Define to 8.
3056 * emulparams/shelf32.sh: Ditto.
3057 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3058 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
3059 built-in linker scripts.
3060 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3061 * emulparams/shlelf64.sh: New.
3062 * emulparams/shelf64.sh: New.
3063 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
3065 * Makefile.am: Add support for shlelf64 and shelf64.
3066 * Makefile.in: Regenerate.
3067 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3068 * configure.tgt (sh64-*-elf*): Add shelf as default.
3069 Add shlelf to targ_extra_emuls.
3070 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3071 * emulparams/shelf32.sh: New file.
3072 * emulparams/shlelf32.sh: New file.
3073 * Makefile.am: Add support for shlelf32 and shelf32.
3074 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
3075 * Makefile.in: Regenerate.
3077 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
3079 * ldlang.c (lang_reset_memory_regions): Rename from
3080 reset_memory_regions. Change all callers. Make public.
3081 * ldlang.h (lang_reset_memory_regions): Prototype.
3082 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
3083 lang_reset_memory_regions before lang_size_sections.
3084 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3085 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
3087 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3089 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
3090 arithmetic when checking for too many global registers.
3092 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3094 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3095 (ehppanbsd.c): New rule.
3096 * Makefile.in: Regenerate.
3097 * configure.tgt (hppa*-*-netbsd*): New target.
3098 * emulparams/hppalinux.sh: Add comment to check other files
3099 that source this file it is modified, and list which
3101 * emulparams/hppanbsd.sh: New file.
3103 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3105 * scripttempl/xstormy16.sc: Don't allocate extra space for the
3108 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3110 Support on-demand global register allocation from
3111 R_MMIX_BASE_PLUS_OFFSET relocs.
3112 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3113 mmix_set_reg_section_vma. Call
3114 _bfd_mmix_finalize_linker_allocated_gregs.
3115 (mmix_before_allocation): New function.
3116 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3117 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3118 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3119 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3120 before .MMIX.reg_contents.
3121 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3122 (mmo_after_open): New function.
3123 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3124 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
3125 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3127 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3129 * emulparams/or32.sh: New file.
3130 * emulparams/or32elf.sh: New file.
3131 * scripttempl/or32.sc: New file.
3132 * configure.tgt : Add support for or32.
3133 * configure: Regenerate
3134 * Makefile.am: Add support for or32.
3135 * Makefile.in: Regenerate.
3136 * NEWS: Mention support for or32.
3137 * po/ld.pot: Regenerate.
3139 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3140 Mitch Lichtenberg <mpl@broadcom.com>
3142 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3143 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3144 reloc creation (ld --embedded-relocs).
3146 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3148 * configure: Regenerated.
3150 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3152 * Makefile.am (install): Depend on install-info.
3153 * Makefile.in: Regenerate.
3155 2002-01-26 Christian Rose <menthos@menthos.com>
3157 * ldmain.c (main): Use full sentences to ease translation.
3159 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3161 * po/fr.po: Updated version.
3163 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3165 * po/es.po: Updated version.
3167 2002-01-25 Andreas Jaeger <aj@suse.de>
3169 * ldlex.l (yy_input): Correct error check.
3171 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3173 * ldmisc.c (demangle): Put back dots when string not demangled.
3175 2002-01-22 Richard Henderson <rth@redhat.com>
3177 * emulparams/elf64alpha.sh (NOP): Use unop.
3179 2002-01-21 Andreas Jaeger <aj@suse.de>
3181 * ldlex.l: Use fread instead of read.
3183 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3185 * configure.tgt (ia64-*-netbsd*): New target.
3187 2002-01-21 H.J. Lu <hjl@gnu.org>
3189 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3191 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3193 2002-01-18 Andreas Jaeger <aj@suse.de>
3195 * ldver.c (ldversion): Update year.
3197 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3199 * po/ld.pot: Regenerate.
3201 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3203 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3204 * Makefile.in: Regenerate.
3205 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3206 * emultempl/ppc64elf.em: New file.
3208 2002-01-15 DJ Delorie <dj@redhat.com>
3210 * scripttempl/pe.sc: Add support for constructor priorities.
3212 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3214 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3215 * emulparams/avr23xx.sh: Likewise.
3216 * emulparams/avr4433.sh: Likewise.
3217 * emulparams/avr44x4.sh: Likewise.
3218 * emulparams/avr85xx.sh: Likewise.
3219 * emulparams/avrmega103.sh: Likewise.
3220 * emulparams/avrmega161.sh: Likewise.
3221 * emulparams/avrmega603.sh: Likewise.
3222 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3224 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3226 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3227 archive is excluded.
3229 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3231 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3232 (eshelf_nbsd.c): New rule.
3233 (eshlelf_nbsd.c): New rule.
3234 * Makefile.in: Regenerate.
3235 * configure.tgt (sh*le-*-netbsdelf*): New target.
3236 (sh*-*-netbsdelf*): New target.
3237 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3238 * emulparams/shelf_nbsd.sh: New emulation.
3239 * emulparams/shlelf_nbsd.sh: New emulation.
3241 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3243 * po/es.po: New file: Spanish translation.
3244 * configure.in (ALL_LINGUAS): Add es.
3245 * configure: Regenerate.
3247 2002-01-06 John Marshall <jmarshall@acm.org>
3249 * ld.texinfo: Note that --emit-relocs is currently only
3250 implemented for ELF.
3252 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3254 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3255 of bfd_section_list_remove and bfd_section_list_insert macros.
3256 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3257 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3259 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3261 * configure.tgt (x86_64-*-netbsd*): New target.
3263 2001-12-21 Tom Rix <trix@redhat.com>
3265 (gld*_create_output_section_statements): New function.
3266 For -binitfini support.
3267 * emultempl/aix.em (gld*_before_parse): Fix comment.
3268 * emultempl/aix.em (gld*_parse_args): Fix comment.
3270 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3272 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3274 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3276 * configure.tgt (arm-*-netbsdelf*): Add target.
3277 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3278 * emulparams/armelf_nbsd.sh: Added.
3279 * Makefile.am: Add rules for earmelf_nbsd.
3280 * Makefile.in: Regenerate.
3282 2001-12-19 Andreas Jaeger <aj@suse.de>,
3283 Susanne Oberhauser <froh@suse.de>
3285 * configure.host: Add rules for x86_64-*linux-gnu. Change
3286 s390x-linux entry to use gcc to report configuration, replace gcc
3287 with $CC in s390-linux
3289 2001-12-19 Andreas Jaeger <aj@suse.de>
3291 * ld.texinfo (VERSION): Fix markup.
3293 2001-12-18 matthew green <mrg@eterna.com.au>
3295 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3296 (m68kelfnbsd.c): New rule.
3297 * Makefile.in: Regenerate.
3298 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3299 (m68*-*-netbsd*4k*): .. this.
3300 (m68*-*-netbsdelf*): New target.
3301 (m68*-*-netbsd*): Also include ELF support.
3302 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3303 * emulparams/m68kelfnbsd.sh: New emulation.
3305 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3307 * ldgram.y (vers_node): Support anonymous version tags.
3308 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3309 tag is not defined together with non-anonymous versions.
3310 * ld.texinfo: Document it.
3312 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3314 * po/tr.po: New file: Turkish translation.
3315 * configure.in (ALL_LINGUAS): Add tr.
3316 * configure: Regenerate.
3318 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3320 * Makefile.am: Add rules for eelf64alpha_nbsd.
3321 * Makefile.in: Regenerate.
3322 * configure.tgt (alpha*-*-netbsd*): Set
3323 targ_emul to elf64alpha_nbsd.
3324 * emulparams/elf64alpha_nbsd.sh: Added.
3326 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3328 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3329 section_tail when fiddling with section list.
3330 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3331 broken into separate strings to make translation easier.
3332 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3333 fiddling with section list.
3334 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3336 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3338 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3340 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3342 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3344 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3346 * emultempl/elf32.em (finish): Supply output_bfd
3347 to bfd_elf*_discard_info.
3348 (OPTION_EH_FRAME_HDR): Define.
3349 (longopts): Add --eh-frame-hdr.
3350 (parse_args): Handle it.
3351 (list_options): Add --eh-frame-hdr to help.
3352 * emultempl/hppaelf.em (finish): Supply output_bfd
3353 to bfd_elf*_discard_info.
3354 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3356 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3358 * lexsup.c (parse_args): Don't pass shortopts to second call to
3359 getopt functions. Restore optind rather than decrementing before
3360 second call. Remove errind as it now duplicates last_optind.
3362 2001-12-11 Christopher Faylor <cgf@redhat.com>
3364 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3366 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3367 Richard Henderson <rth@redhat.com>
3369 * Makefile.am: Add support for xstormy16.
3370 * configure.tgt: Add support for xstormy16.
3371 * Makefile.in: Regenerate.
3372 * emulparams/elf32xstormy16.sh: New file.
3373 * scripttempl/xstormy16.sc: New file.
3375 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3377 * Makefile.in (LIB_PATH): Make configurable.
3378 (GENSCRIPTS): Set LIB_PATH in environment.
3379 * configure.in: Substitute LIB_PATH.
3380 * configure: Regenerate.
3381 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3382 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3384 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3386 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3387 describing the -N option so that it is easier to translate into
3390 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3392 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3393 statements describing a single option with a single, newline
3394 escaped fprintf. This allows better translation into other
3397 * ldmain.c (add_archive_element): Combine multiple strings
3398 into a single string to permit better translation into other
3401 2001-12-05 Tom Rix <trix@redhat.com>
3403 * Makefile.am: Remove eaixppc64.
3404 * Makefile.in: Regenerate.
3406 2001-12-04 Tom Rix <trix@redhat.com>
3408 * emultempl/aix.em (choose_target): Change default target to
3409 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3411 (gld*_read_file): Fix typo.
3412 (change_symbol_mode): Add prototype.
3415 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3416 * emulparams/aixrs6.sh : Same.
3417 * emulparams/ppcmacos.sh : Same.
3418 * emulparams/aixppc64.sh : Delete file.
3419 * emultempl/aix.em : Formatting changes.
3421 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3423 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3424 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3426 (OTHER_END_SYMBOLS): Fix formatting.
3427 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3428 (OTHER_END_SYMBOLS): Fix formatting.
3430 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3432 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3434 2001-12-02 Tom Rix <trix@redhat.com>
3436 * configure.tgt : Remove eaixppc64 emulations.
3437 * Makefile.in : Remove eaixppc64.c
3438 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3439 (ldemul_default_target): Same.
3440 * emultempl/gld960.em (gld960_choose_target): Same.
3441 * emultempl/gld960c.em (gld960_choose_target): Same.
3442 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3443 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3444 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3445 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3446 * emultempl/aix.em (choose_target): New function. Handle emulation of
3449 2001-11-27 H.J. Lu <hjl@gnu.org>
3451 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3452 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3453 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3454 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3455 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3456 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3457 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3458 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3460 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3463 (REL_SDATA): Likewise.
3464 (REL_SBSS): Likewise.
3465 (REL_SDATA2): Likewise.
3466 (REL_SBSS2): Likewise.
3467 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3470 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3472 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3474 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3476 2001-11-22 H.J. Lu <hjl@gnu.org>
3478 * Makefile.in: Regenerated with automake based on automake
3479 1.4-8 in RedHat 7.1.
3481 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3483 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3484 (config.status): Delete rule.
3485 Add extra dependencies to cover sourced emulparams files.
3486 * Makefile.in: Regenerate.
3488 * scripttempl/elf.sc: Order <section>, <section>.* and
3489 corresponding linkonce sections as seen in input files.
3490 Formatting fixes. Zero vma of all sections if not relocating.
3491 (STACK): Define and insert if STACK_ADDR defined.
3492 (OTHER_RELOCATING_SECTIONS): Delete.
3493 (OTHER_END_SYMBOLS): Define.
3494 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3495 (OTHER_READWRITE_SECTIONS): Likewise.
3496 (OTHER_GOT_SECTIONS): Likewise.
3497 (OTHER_SDATA_SECTIONS): Likewise.
3498 (OTHER_BSS_SECTIONS): Likewise.
3499 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3500 (OTHER_READWRITE_SECTIONS): Likewise.
3501 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3502 (OTHER_READWRITE_SECTIONS): Likewise.
3504 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3505 (STACK_ADDR): Define.
3506 * emulparams/armelf_oabi.sh: As for armelf.sh.
3507 * emulparams/elf32mcore.sh: As for armelf.sh.
3508 * emulparams/h8300elf.sh: As for armelf.sh.
3509 * emulparams/mn10200.sh: As for armelf.sh.
3510 * emulparams/shelf.sh: As for armelf.sh.
3512 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3513 (OTHER_END_SYMBOLS): Define.
3514 * emulparams/m32relf.sh: As for elf32fr30.sh.
3515 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3516 * emulparams/h8300self.sh: As for elf32fr30.sh.
3518 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3519 defines with RELOCATING test.
3520 (OTHER_SDATA_SECTIONS): Likewise.
3521 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3522 (OTHER_END_SYMBOLS): ..this.
3523 * emulparams/crislinux.sh: As for criself.sh.
3525 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3527 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3528 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3529 normal and linkonce sections as seen in input files.
3530 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3531 (TEXT_DYNAMIC): Likewise.
3532 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3533 (OTHER_SDATA_SECTIONS): Likewise.
3534 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3535 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3536 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3537 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3538 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3539 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3540 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3541 sections as seen in input files.
3542 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3543 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3545 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3546 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3547 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3548 (OTHER_SECTIONS): Instead, use this..
3549 (OTHER_END_SYMBOLS): ..and this.
3551 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3552 * emulparams/elf32bsmip.sh: Likewise.
3553 * emulparams/elf32btsmip.sh: Likewise.
3554 * emulparams/elf32ebmip.sh: Likewise.
3555 * emulparams/elf32lmip.sh: Likewise.
3556 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3557 * emulparams/elf32lsmip.sh: Likewise.
3558 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3559 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3560 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3561 * emulparams/elf64btsmip.sh: Likewise.
3562 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3563 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3564 * emulparams/elf32ppclinux.sh: Likewise.
3565 * emulparams/elf32ppcsim.sh: Likewise.
3566 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3567 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3568 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3569 * emulparams/h8300self.sh: Likewise.
3570 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3571 * emulparams/sh.sh: Comment.
3572 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3573 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3574 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3576 2001-11-21 David Heine <dlheine@tensilica.com>
3577 Alan Modra <amodra@bigpond.net.au>
3579 * ldlang.c (map_input_to_output_sections): Replace "break"
3580 accidentally removed with 2001-08-03 change.
3581 (lang_gc_sections_1): Likewise.
3583 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3585 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3587 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3589 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3590 of false when calling lang_size_sections.
3591 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3593 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3595 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3596 function when LDEMUL_FINISH isn't set to the same name. Don't
3597 call ${LDEMUL_FINISH}.
3598 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3599 * emultempl/armelf.em (arm_elf_finish): Call
3600 gld${EMULATION_NAME}_finish.
3601 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3602 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3603 hppaelf_layout_sections_again if necessary.
3604 (need_laying_out): New var.
3605 (hppaelf_layaout_sections_again): Rename to
3606 hppaelf_layout_sections_again. Clear need_laying_out.
3607 (PARSE_AND_LIST_OPTIONS): Format text.
3609 2001-11-14 H.J. Lu <hjl@gnu.org>
3611 * emultempl/armelf.em (arm_elf_finish): Renamed from
3612 gld${EMULATION_NAME}_finish.
3613 (LDEMUL_FINISH): Set to arm_elf_finish.
3615 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3617 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3618 (struct ld_emulation_xfer_struct): Use it.
3620 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3622 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3623 additional symbols referenced by newer crt0.o files from HP.
3625 2001-11-12 Anthony Green <green@redhat.com>
3627 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3629 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3631 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3632 * Makefile.in: Regenerate.
3634 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3636 * ld.texinfo: Use @command for commands, @option for options.
3637 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3639 * Makefile.in: Rebuild.
3641 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3643 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3644 Add support for targets.
3646 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3648 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3649 * configure: Regernate.
3650 * po/fr.po: New file.
3651 * po/sv.po: New file.
3653 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3655 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3656 as little endian default and to support big endian.
3658 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3660 * ld.texinfo (Options): Document new option, -nostdlib.
3661 * lexsup.c (OPTION_NOSTDLIB): New definition.
3662 (ld_options): Add entry for "nostdlib".
3663 (parse_args): Handle OPTIONS_NOSTDLIB.
3664 * ldfile.c (ldfile_add_library_path): Don't add directories
3665 to the search path if they weren't specified on the command line
3666 and -nostdlib was specified.
3667 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3669 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3671 * lexsup.c (parse_args): Prevent infinite parsing loop when
3672 "-rpath.a" is specified on the command line.
3673 Replace calls to fprintf with calls to einfo.
3675 2001-10-31 John Marshall <jmarshall@acm.org>
3677 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3678 appear only once across all the linker scripts involved in a link
3679 invocation no longer applies. Make the documentation reflect
3682 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3684 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3686 (sh-*-linux*): Added targ_extra_libpath.
3688 2001-10-31 David Heine <dlheine@tensilica.com>
3690 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3691 for padding statements.
3693 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3695 * configure.tgt (mmix-*-*): New target.
3696 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3697 Add dependencies to match.
3698 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3699 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3700 scripttempl/mmo.sc: New files.
3701 * gen-doc.texi: @set MMIX.
3702 * ld.texinfo: Ditto.
3703 [MMIX] Add MMIX node.
3704 * Makefile.in: Regenerate.
3706 2001-10-29 Kazu Hirata <kazu@hxi.com>
3708 * ldlang.c: Fix a comment typo.
3710 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3712 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3713 entries, and match *-*-linux*.
3715 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3717 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3718 with ldlex_script, ldlex_popstate.
3719 (ifile_p1): Likewise.
3720 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3722 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3723 to 1. Don't BEGIN(SCRIPT).
3724 (lex_redirect): Similarly.
3725 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3727 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3729 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3730 __EH_FRAME_END__ and accept eh frames into data section.
3731 Add ctor and dtor sections.
3733 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3735 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3736 (auto-export): Fix indentation.
3738 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3740 * pe-dll.c (autofilter_objectlist): Add startup objects
3742 (auto-export): Constify char * p.
3743 Extract file basename and use strcmp rather than ststr
3746 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3748 * ldmain.c (get_emulation): Improve comment about the handling
3751 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3753 * po/POTFILES.in: Regenerate.
3755 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3757 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3758 -z nocopyreloc and -z nocombreloc usage strings.
3760 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3762 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3765 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3767 * scripttempl/armaout.sc: Place .bss section after end of aligned
3768 data section to match behaviour of aout code in constructrion of
3771 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3773 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3774 startup files for mingw32 dlls to list.
3776 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3778 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3780 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3782 * configure.tgt (targ): Add arm9e-*-elf.
3784 2001-10-05 H.J. Lu <hjl@gnu.org>
3786 * genscripts.sh: Fix a typo in the last change.
3788 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3790 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3791 -z nocombreloc in usage.
3793 2001-10-03 Jim Blandy <jimb@redhat.com>
3795 * genscripts.sh: Include a comment at the top of each generated
3796 script, explaining its purpose.
3798 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3800 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3801 * NEWS: Mention -z nocopyreloc.
3802 * ld.texinfo (Options): Describe nocopyreloc.
3804 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3806 * configure: Regenerate.
3808 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3810 * ldver.h (ld_program_version): Remove declaration.
3811 * lexsup.c (parse_args): Move printing of copyright message..
3812 * ldver.c (ldversion): .. to here.
3813 Use BFD_VERSION_STRING in place of BFD_VERSION.
3814 (ld_program_version): Remove.
3815 * Makefile.am (Makefile): Depend on bfd/configure.in.
3817 * Makefile.in: Regenerate.
3819 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3821 * Makefile.am: Update dependencies with "make dep-am".
3822 * Makefile.in: Regenerate.
3824 2001-09-29 John Reiser <jreiser@BitWagon.com>
3826 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3827 * lexsup.c: Add --no-define-common commandline option.
3828 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3829 * ldlex.l: Likewise.
3830 * ld.h: Add command_line.inhibit_common_definition.
3831 * ldmain.c (main): Initialize.
3832 * ld.texinfo: Document.
3834 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3836 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3838 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3840 * ldmisc.c (USE_STDARG): Remove.
3841 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3846 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3847 declarations. Update copyright.
3849 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3851 * pe-dll.c: Remove obsoleted declaration of
3852 pe_get_data_import_dll_name.
3853 (pe_create_import_fixup): Fix thinko.
3855 * ld.texinfo(enable-auto-import): Clarify the explanation.
3857 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3859 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3860 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3861 DLL_SUPPORT controlled code.
3863 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3865 * emultempl/pe.em(pe_data_import_dll): Make static.
3866 (pe_get_data_import_dll_name): New accessor function.
3867 * pe-dll.c(pe_create_import_fixup): call
3868 pe_get_data_import_dll_name() from pe.em, instead of
3869 directly accessing pe_data_import_dll variable from pe.em.
3871 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3873 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3874 (def_file_add_directive): Use ISSPACE instead of isspace.
3875 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3876 isdigit/isxdigit/isalpha/isalnum.
3877 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3878 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3879 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3880 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3882 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3883 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3885 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3886 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3887 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3888 (ctor_prio): Use ISDIGIT instead of isdigit.
3889 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3890 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3891 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3893 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3894 (stricpy): Use TOLOWER instead of isupper/tolower.
3895 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3896 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3897 (lex_warn_invalid): Use ISPRINT instead of isprint.
3898 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3899 (main): For gettext, also set the LC_CTYPE locate facet.
3900 (add_keepsyms_file): Use ISSPACE instead of isspace.
3901 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3902 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3903 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3904 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3905 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3906 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3907 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3908 (quoteput): Use ISSPACE instead of isspace.
3909 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3912 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3914 * deffilep.y (def_stash_module): Constify "name" param.
3916 * pe-dll.c: Replace CONST with const throughout.
3917 (quick_symbol): Constify "n1", "n2", "n3" params.
3918 (make_singleton_name_thunk): Constify "import" param. Make
3919 "buffer_len" a size_t.
3920 (make_import_fixup_entry): Constify "name", "fixup_name",
3921 "dll_symname" params.
3922 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3923 (pe_get32): Likewise.
3924 (pe_implied_import_dll): Likewise.
3926 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3927 (sort_by_section_name): Likewise.
3929 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3930 (make_import_fixup): Cast printf arg, rel->address to long rather
3932 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3934 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3936 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3937 defines BufferSize. Increase buffer size by one.
3939 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3941 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3943 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3945 * configure.tgt: Add arm-openbsd target.
3947 2001-09-12 H.J. Lu <hjl@gnu.org>
3949 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3951 (ALL_64_EMULATIONS): Here.
3952 * Makefile.in: Regenerated.
3954 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3956 * emultempl/pe.em(make_import_fixup): change signature to
3957 take asection as well as arelec; we need this for proper
3958 error reporting. Only call pe_create_import_fixup() if
3959 there is no attempt to add a constant addend to the reloc;
3960 otherwise, report error condition.
3961 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3962 since final argument is a pointer to make_import_fixup().
3963 Change call to cb() to match make_import_fixup() signature.
3964 (make_import_fixup_mark): make buffer_len unsigned.
3965 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3967 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3969 * ld.texinfo: add verbose documentation for auto-import
3970 direct-addressing workaround, to compliment the terse
3973 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3975 * scripttempl/v850.sc: Add gcc_except_table sections.
3977 2001-09-11 Jeffrey A Law (law@cygnus.com)
3979 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3980 * emulparams/h8300self.sh: Similarly.
3982 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3984 * ld.texinfo (Options, --stack): Correct default value for stack
3987 2001-09-05 Tom Rix <trix@redhat.com>
3989 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3991 2001-09-03 Andreas Jaeger <aj@suse.de>
3993 * emultempl/beos.em: Declare prototypes for comparions functions,
3996 2001-09-02 Andreas Jaeger <aj@suse.de>
3998 * emultempl/aix.em: Add missing prototype.
3999 * emultempl/lnk960.em: Likewise.
4000 * emultempl/vanilla.em: Likewise.
4001 * emultempl/armcoff.em: Likewise.
4002 * emultempl/armelf_oabi.em: Likewise.
4003 * emultempl/beos.em: Likewise.
4004 * emultempl/gld960c.em: Likewise.
4005 * emultempl/gld960.em: Likewise.
4007 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
4008 for prototype declaration.
4010 2001-08-31 Eric Christopher <echristo@redhat.com>
4011 Jason Eckhardt <jle@redhat.com>
4013 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
4015 2001-08-31 Andreas Jaeger <aj@suse.de>
4017 * emultempl/pe.em: Add missing prototypes.
4018 (gld_${EMULATION_NAME}_after_open): Remove extra args to
4019 pe_find_data_imports.
4020 (pr_sym): Add unused attribute.
4022 2001-08-29 Joel Sherrill <joel@OARcorp.com>
4024 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
4025 default from coff to elf.
4027 2001-08-29 Jeff Law <law@redhat.com>
4029 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
4031 * emulparams/h8300self.sh: Similarly.
4033 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
4035 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
4037 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
4038 * configure.tgt (h8300-*-elf*): New case.
4039 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
4040 * emulparams/h8300self.sh: New file.
4041 * Makefile.in: Regenerated.
4043 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
4045 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
4048 2001-08-27 Linus Nordberg <linus@swox.com>
4049 Alan Modra <amodra@bigpond.net.au>
4051 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
4052 (eelf64ppc.c, eelf64lppc.c): Add make targets.
4054 * Makefile.in: Regenerate.
4055 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
4056 entries to correct alphabetical position.
4057 * emulparams/elf64ppc.sh: New.
4058 * emulparams/elf64lppc.sh: New.
4060 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
4062 * ldmain.c (main): Declare BSIZE as static.
4064 2001-08-23 Jakub Jelinek <jakub@redhat.com>
4066 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4067 into .rel.dyn resp. .rela.dyn if combreloc.
4068 (get_script): If .x linker script is equal to .xn, only put it
4069 once into the binary.
4070 Add .xc and .xsc scripts.
4071 (parse_args): Handle -z combreloc and -z nocombreloc.
4072 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
4073 For .xc and .xsc scripts put all .rel* or .rela* input sections
4074 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
4075 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
4077 Strip trailing whitespace from script.
4078 Generate .xc and .xsc scripts if requested.
4079 * ldmain.c (main): Initialize link_info.combreloc and
4080 link_info.spare_dynamic_tags.
4081 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
4082 (ld_options): Add --spare-dynamic-tags option.
4083 (parse_args): Likewise.
4084 * ld.texinfo: Document -z combreloc and -z nocombreloc.
4085 * ldint.texinfo: Document .xc and .xsc linker scripts.
4086 * NEWS: Add notes about -z combreloc and SHF_MERGE.
4088 2001-08-22 H.J. Lu <hjl@gnu.org>
4090 * emulparams/elf32fr30.sh: Add a newline.
4092 2001-08-21 Andreas Jaeger <aj@suse.de>
4094 * deffilep.y: Add missing prototypes.
4095 * pe-dll.c: Likewise.
4097 2001-08-20 Alan Modra <amodra@bigpond.net.au>
4099 * ldlang.c (insert_pad): Fix typos in last patch.
4101 * ldlang.c: When traversing lang_statement_union_type lists,
4102 consistently use "header.next" rather than "next".
4103 * mpw-eppcmac.c: Likewise.
4104 * emultempl/beos.em: Likewise.
4105 * emultempl/hppaelf.em: Likewise.
4106 * emultempl/pe.em: Likewise.
4107 * ldlang.h (union lang_statement_union): Remove "next" field.
4109 * ldlang.c (insert_pad): Use offsetof macro.
4110 (lang_size_sections): Always neuter padding statements.
4111 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4113 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4114 passed to lang_size_sections.
4115 (pe_exe_fill_sections): Likewise.
4116 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4117 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4119 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4121 * emultempl/aix.em: Formatting fixes.
4123 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4125 * ldlang.c (insert_pad): Make use of an existing pad statement if
4126 available. Move code calculating alignment, adjusting section
4127 alignment power, and adjusting dot to ..
4128 (size_input_section): .. here. Remove unused relax param.
4129 (lang_size_sections): Change boolean `relax' param to boolean *.
4130 Adjust call to size_input_section. Make use of insert_pad to
4131 place pad after the assignment statement. If relaxing, zap
4133 (reset_memory_regions): Reset output_bfd section sizes too.
4134 (relax_again): Move to..
4135 (lang_process): ..here. Adjust call to lang_size_sections, and
4136 remove duplicated code.
4137 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4139 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4141 * ld.texinfo: Document that fill values now use the four least
4143 * emulparams/elf32fr30.sh (NOP): Update.
4144 * emulparams/elf32mcore.sh: Likewise.
4145 * emulparams/elf64_s390.sh: Likewise.
4146 * emulparams/elf_i386.sh: Likewise.
4147 * emulparams/elf_i386_be.sh: Likewise.
4148 * emulparams/elf_i386_chaos.sh: Likewise.
4149 * emulparams/elf_i386_ldso.sh: Likewise.
4150 * emulparams/elf_s390.sh: Likewise.
4151 * emulparams/elf_x86_64.sh: Likewise.
4152 * emulparams/i386moss.sh: Likewise.
4153 * emulparams/i386nw.sh: Likewise.
4154 * emulparams/m68kelf.sh: Likewise.
4155 * scripttempl/elf.sc: Update NOP comment.
4156 * scripttempl/elfi370.sc: Likewise.
4157 * scripttempl/elfm68hc11.sc: Likewise.
4158 * scripttempl/elfm68hc12.sc: Likewise.
4159 * scripttempl/nw.sc: Likewise.
4161 2001-08-15 Tom Rix <trix@redhat.com>
4163 * ldgram.y (saved_script_handle): Initialize to NULL.
4164 * ldmain.c (main): Change check on saved_script_handle.
4166 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4168 * emultempl/elf32.em: Formatting fixes.
4169 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4170 looking at sec->owner.
4171 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4172 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4173 unused code, and reorganize orphan section placement code.
4175 * ldlang.c (wild_doit): Rename to lang_add_section.
4176 * ldlang.h: Here too.
4177 * mpw-elfmips.c: And here.
4178 * emultempl/beos.em: And here.
4179 * emultempl/elf32.em: And here.
4180 * emultempl/hppaelf.em: And here.
4181 * emultempl/pe.em: And here.
4183 2001-08-13 Richard Henderson <rth@redhat.com>
4185 * emultempl/needrelax.em: New file.
4186 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4187 * Makefile.am (eelf64_ia64.c): Depend on it.
4188 * Makefile.in: Rebuild.
4190 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4192 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4193 output_section is set non-NULL.
4195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4196 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4197 needlessly create an output_section_statement. Treat a correctly
4198 named output_section_statement with NULL bfd_section as compatible.
4200 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4202 * emultempl/generic.em: Support EXTRA_EM_FILE.
4203 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4204 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4205 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4206 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4207 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4208 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4209 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4210 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4211 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4212 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4214 2001-08-12 Richard Henderson <rth@redhat.com>
4216 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4217 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4218 scripttempl/v850.sc: Keep .jcr data.
4220 2001-08-12 H.J. Lu <hjl@gnu.org>
4221 Andrew Haley <aph@cambridge.redhat.com>
4222 Nick Clifton <nickc@redhat.com>
4224 * ldgram.y (had_script): Change name to saved_script_handle.
4225 Change type to file handle.
4226 * ld.h (had_script): Rename and retype.
4227 * ldfile.c (ldfile_open_command_file): Save the file handle
4228 used in saved_script_handle.
4229 * lexsup.c (parse_args): Do not allow -c option to alter
4230 saved_script_handle.
4231 * ldmain.c (main): Print out the linker script used if
4232 --verbose is given. Check saved_script_handle to obtain the
4233 external linker script used, or if NULL, dump the builtin
4235 * ld.texinfo: Document that --verbose now dumps the linker
4236 script used, regardless of whether it was an internal or an
4239 2001-08-10 Andreas Jaeger <aj@suse.de>
4241 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4243 * configure: Regenerate.
4245 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4247 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4249 * scripttempl/elf.sc: Move non-text .dynamic section before
4250 .plt/.got/.sdata* group.
4251 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4252 (OTHER_SDATA_SECTIONS): Add.
4253 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4255 * emulparams/crislinux.sh: Likewise.
4256 * emulparams/elf32b4300.sh: Likewise.
4257 * emulparams/elf32bmip.sh: Likewise.
4258 * emulparams/elf32bmipn32.sh: Likewise.
4259 * emulparams/elf32bsmip.sh: Likewise.
4260 * emulparams/elf32btsmip.sh: Likewise.
4261 * emulparams/elf32ebmip.sh: Likewise.
4262 * emulparams/elf32elmip.sh: Likewise.
4263 * emulparams/elf32l4300.sh: Likewise.
4264 * emulparams/elf32lmip.sh: Likewise.
4265 * emulparams/elf32lsmip.sh: Likewise.
4266 * emulparams/elf32ltsmip.sh: Likewise.
4267 * emulparams/elf64bmip.sh: Likewise.
4268 * emulparams/elf64btsmip.sh: Likewise.
4269 * emulparams/elf64ltsmip.sh: Likewise.
4271 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4273 * genscripts.sh: Source the emulparams script before each output
4274 script is generated so that variables like `RELOCATING' may affect
4275 variables defined in the emulparams script.
4277 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4279 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4282 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4283 ie. iterate over wild_statement.section_list.
4284 (gld${EMULATION_NAME}_place_orphan): Likewise.
4286 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4288 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4289 .fini[0-4] sections used by _exit
4290 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4291 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4292 * scripttempl/elfm68hc11.sc: Likewise.
4294 2001-08-03 H.J. Lu <hjl@gnu.org>
4296 * emultempl/beos.em (init): Add the missing initialization.
4298 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4300 * ld.texinfo (Input Section Basics): Clarify ordering of output
4302 * ldlang.c (callback_t): Add wildcard_list param.
4303 (walk_wild_section): Remove "section" param. Rewrite for
4304 lang_wild_statement_type change. Remove unique_section_p test.
4305 (walk_wild_file): Remove "section" param.
4306 (walk_wild): Remove "section" and "file" params.
4307 (lang_gc_wild): Likewise.
4308 (wild): Likewise. Modify for lang_wild_statement_type change.
4309 (wild_sort): Likewise. Add "sec" param.
4310 (gc_section_callback): Likewise.
4311 (output_section_callback): Likewise. Do unique_section_p test.
4312 (map_input_to_output_sections): Modify call to wild.
4313 (lang_gc_sections_1): Likewise.
4314 (print_wild_statement): Modify for lang_wild_statement_type
4316 (lang_add_wild): Replace filename, filenames_sorted param with
4317 filespec. Replace section_name, sections_sorted,
4318 exclude_filename_list with section_list.
4319 * ldlang.h (lang_add_wild): Here too.
4320 (lang_wild_statement_type): Replace section_name, sections_sorted,
4321 and exclude_filename_list with section_list.
4322 * ldgram.y (current_file): Delete.
4323 (%union): Add wildcard_list.
4324 (file_NAME_list): Set type to wildcard_list. Build a linked list
4325 rather than calling lang_add_wild for each entry.
4326 (input_section_spec_no_keep): Call lang_add_wild here instead.
4327 * ld.h (struct wildcard_list): Declare.
4328 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4330 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4332 * ldmain.c (main): initialize link_info.pei386_auto_import
4333 * pe-dll.c: new tables for auto-export filtering
4334 (auto_export): change API, pass abfd for contextual filtering.
4335 Loop thru tables of excluded symbols instead of comparing
4338 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4340 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4341 static variable current_sec (static struct sec *). Add
4342 forward declaration for add_bfd_to_link.
4343 (process_def_file): Don't export undefined symbols. Do not
4344 export symbols starting with "_imp__". Call auto_export()
4346 (pe_walk_relocs_of_symbol): New function.
4347 (generate_reloc): add optional extra debugging
4348 (pe_dll_generate_def_file): eliminate extraneous initial blank
4350 (make_one): enlarge symtab to make room for __nm__ symbols
4351 (DATA auto-import support).
4352 (make_singleton_name_thunk): New function.
4353 (make_import_fixup_mark): New function.
4354 (make_import_fixup_entry): New function.
4355 (pe_create_import_fixup): New function.
4356 (add_bfd_to_link): Specify that 'name' argument is a CONST
4358 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4359 declare new functions pe_walk_relocs_of_symbol and
4360 pe_create_import_fixup.
4361 * emultempl/pe.em: add new options --enable-auto-import,
4362 --disable-auto-import, and --enable-extra-pe-debug.
4363 (make_import_fixup): New function.
4364 (pe_find_data_imports): New function.
4365 (pr_sym): New function.
4366 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4367 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4370 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4372 * ld.texinfo: add additional documentation for
4373 --export-all-symbols. Document --out-implib,
4374 --enable-auto-image-base, --disable-auto-image-base,
4375 --dll-search-prefix, --enable-auto-import, and
4376 --disable-auto-import.
4377 * ldint.texinfo: Add detailed documentation on auto-import
4380 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4382 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4385 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4387 * Makefile.am: Update dependencies with "make dep-am".
4388 * Makefile.in: Regenerate
4390 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4392 * ldcref.c (check_section_sym_xref): New function.
4393 (check_nocrossrefs): Call it.
4394 (check_nocrossref): Interate over h->refs here instead of..
4395 (check_refs): ..here. Pass in the symbol name, section, and bfd
4396 rather than hash_entry pointers.
4397 (struct check_refs_info): Keep symbol name rather than hash entry.
4399 (check_reloc_refs): Tweak for above changes in check_refs_info.
4400 Only report references to section syms when symname is NULL to
4401 prevent duplicate messages for the same reloc.
4403 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4405 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4406 available. Do not print NULL trees.
4407 (exp_print_token): Print unknown tokens with values > 126 as
4408 decimal values not ASCII characters.
4410 * ldlang.c (lang_leave_overlay): If a region is specified assign
4411 it to all sections inside the overlay unless they have been
4412 assigned to the own, non-default, memory region.
4414 * README: Add header for consistency with other README files.
4416 2001-07-14 H.J. Lu <hjl@gnu.org>
4418 * emultempl/elf32.em (output_prev_sec_find): Never return
4419 bfd_abs_section_ptr, bfd_com_section_ptr nor
4420 bfd_und_section_ptr.
4422 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4424 * Makefile.am (em32relf.c): Change dependency from generic.em to
4426 * Makefile.in: Regenerate.
4428 2001-07-14 matthew green <mrg@eterna.com.au>
4430 * configure.tgt (i386-*-netbsdelf*): New target.
4431 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4433 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4435 * emultempl/elf32.em (output_prev_sec_find): New.
4436 (place_orphan): Use it.
4438 2001-07-11 H.J. Lu <hjl@gnu.org>
4440 * ldmain.c (main): Fix typos in the last change.
4442 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4444 * ldmain.c (main): Disallow -F and -f without -shared.
4446 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4448 * emultempl/pe.em (after_open): Check for the output_bfd not
4449 having any coff_data structure allocated to it.
4451 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4453 * emultempl/elf32.em: Do not assuming that contents of the buffer
4454 returned from basename function will remain unchanged accross other
4457 2001-07-03 H.J. Lu <hjl@gnu.org>
4459 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4460 2001-07-03. It creates dynamic entries even for static binaries.
4462 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4464 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4465 (DYNAMIC): Use it to reserve few dynamic entries for
4468 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4470 * emulparams/hppa64linux.sh: New file.
4471 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4472 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4473 (ehppa64linux.c): Add rule to make it.
4475 * Makefile.in: Regenerate.
4477 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4479 * ld.texinfo (Options, -r): Mention restrictions when using
4480 different object formats.
4482 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4484 * ldlang.c (lang_check): Emit fatal error if relocatable link
4485 between different object flavours with relocations in input.
4487 2001-06-19 H.J. Lu <hjl@gnu.org>
4489 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4490 (--version-script): Mention the language support.
4492 2001-06-19 H.J. Lu <hjl@gnu.org>
4494 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4496 2001-06-18 H.J. Lu <hjl@gnu.org>
4498 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4499 (diststuff): Add $(MANS).
4500 * Makefile.in: Regenerated.
4504 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4506 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4507 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4508 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4509 * ld.h (args_type): Remove member export_dynamic. All users
4510 changed to use struct bfd_link_info member.
4512 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4513 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4514 * Makefile.in: Regenerate.
4516 2001-06-18 H.J. Lu <hjl@gnu.org>
4518 * ldlang.c (init_os): Add the newline to the einfo call.
4519 (lang_check): Likewise.
4520 (lang_do_version_exports_section): Likewise.
4522 2001-06-15 H.J. Lu <hjl@gnu.org>
4524 * lexsup.c (parse_args); Save optind to report unrecognized
4527 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4529 * ldlang.c (lang_check): Emit fatal error if relocatable link
4530 between different object flavours.
4532 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4533 Set new link_info member export_dynamic.
4534 * ldmain.c (main): Initialize new link_info member export_dynamic.
4536 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4538 * ldlang.c (walk_wild): Only call walk_wild_file if
4539 lookup_name returns something.
4540 (lookup_name): If load_symbols fails, return NULL.
4541 (load_symbols): Change to a boolean function.
4542 (open_input_bfds): If load_symbols fails then do not make the
4545 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4547 * ldlang.c (record_bfd_errors): Remove.
4549 * emultempl/aix.em: Fix copyright dates.
4551 2001-06-07 Andreas Jaeger <aj@suse.de>
4553 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4554 (TEXT_START_ADDR): Likewise.
4556 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4558 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4560 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4562 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4564 2001-05-31 H.J. Lu <hjl@gnu.org>
4566 * ldlang.c (open_input_bfds): Don't change the bfd error
4567 handler whilst loading symbols.
4569 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4571 * configure.tgt: Remove i370-mvs architecture, it is not currently
4574 2001-05-25 H.J. Lu <hjl@gnu.org>
4576 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4577 like emulparams/aixppc.sh.
4579 2001-05-25 H.J. Lu <hjl@gnu.org>
4581 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4582 setting of output_filename after bfd_scan_arch.
4583 * emultempl/pe.em: Likewise.
4585 2001-05-25 H.J. Lu <hjl@gnu.org>
4587 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4588 like emulparams/aixppc.sh.
4590 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4591 instead of ${srcdir}/emultempl/stringify.sed.
4593 2001-05-25 Timothy Wall <twall@oculustech.com>
4595 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4598 2001-05-25 Alan Modra <amodra@one.net.au>
4600 * configure.host: Replace linuxoldld with linux*oldld.
4601 * configure.tgt: Likewise.
4603 2001-05-24 H.J. Lu <hjl@gnu.org>
4605 * emultempl/stringify.sed: Removed again.
4607 2001-05-24 H.J. Lu <hjl@gnu.org>
4609 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4610 (gld${EMULATION_NAME}_before_parse): Initialize
4611 ldfile_output_architecture, ldfile_output_machine and
4612 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4613 * emultempl/beos.em: Likewise.
4614 * emultempl/elf32.em: Likewise.
4615 * emultempl/linux.em: Likewise.
4616 * emultempl/mipsecoff.em: Likewise.
4617 * emultempl/pe.em: Likewise.
4618 * emultempl/sunos.em: Likewise.
4620 2001-05-24 Tom Rix <trix@redhat.com>
4622 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4623 udate import file format.
4624 (change_symbol_mode) New, same
4625 (is_syscall) New, same
4626 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4627 * emulparams/aixppc64.sh : same
4628 * emulparams/aixrs6.sh : same
4629 * emulparams/ppcmacos.sh : same
4630 * emultempl/aix.em : use strtoull to parse options
4631 * Makefile.am : add eaixppc64 emulation for xcoff64
4632 * Makefile.in : same
4633 * configure.tgt : same
4635 * scripttempl/aix.sc : default text section offset to 0x10000000
4636 default data section offset to 0x20000000
4637 add .sv3264 and .sv64 pseudo sections
4638 loader and debug sections use the currect section offset.
4640 * emultempl/aix.em : Add xcoff64 support
4641 Add -binitfini support
4642 (gld${EMULATION_NAME}_before_parse) -binitfini
4643 (gld${EMULATION_NAME}_parse_args) same
4644 (gld${EMULATION_NAME}_before_allocation) format change for special
4647 * emulparams/aixppc64.sh : New file for xcoff64 support
4649 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4651 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4652 variable to avoid non-portable shell construct.
4654 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4656 * ldmain.c (get_emulation): Add -mips5 command line argument.
4658 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4660 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4661 (ELF_INTERPRETER_NAME): Define it.
4662 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4664 * configure.tgt (targ_emul, targ_extra_emuls)
4665 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4666 as primary, elf_i386 as extra.
4667 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4668 (eelf_i386_ldso.c): New rule.
4669 * Makefile.in: Rebuilt.
4671 2001-05-22 Nick Clifton <nickc@redhat.com>
4673 * lexsup.c (ld_options): Allow -I to be an alias for
4674 --dynamic-linker. This is for Solaris compatability.
4675 * ld.texinfo: Document that -I can be used.
4678 2001-05-16 Alan Modra <amodra@one.net.au>
4680 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4681 whether an input section is the first one assigned to an output
4683 Assorted formatting fixes.
4685 2001-05-14 DJ Delorie <dj@delorie.com>
4687 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4688 * Makefile.in: Ditto.
4690 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4692 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4693 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4695 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4697 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4699 * ldlang.c (lang_process): Call bfd_merge_sections.
4701 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4703 * ldgram.y: Fix typo.
4705 2001-05-03 H.J. Lu <hjl@gnu.org>
4707 * emultempl/elf32.em: Include "libiberty.h".
4708 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4709 basename of the bfd filename.
4710 (gld${EMULATION_NAME}_stat_needed): Likewise.
4711 (gld${EMULATION_NAME}_try_needed): Likewise.
4712 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4714 2001-05-02 H.J. Lu <hjl@gnu.org>
4716 * emultempl/pe.em: Include <ctype.h>.
4718 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4720 * emulparams/elf32openrisc.sh: New file.
4722 * Makefile.am: Add OpenRISC target.
4723 * Makefile.in: Regenerated.
4725 * configure.tgt: Add openrisc-*-* mapping.
4727 2001-05-02 Nick Clifton <nickc@redhat.com>
4729 * emultempl/aix.em: Replace buystring with xstrdup.
4730 * emultempl/beos.em: Replace buystring with xstrdup.
4732 2001-05-02 H.J. Lu <hjl@gnu.org>
4734 * ldfile.c: Include "libiberty.h".
4735 * ldlex.l: Likewise.
4737 * ldmisc.c (buystring): Removed.
4738 * ldmisc.h: Likewise.
4740 * ldfile.c: Replace buystring with xstrdup.
4741 * ldlang.c: Likewise.
4742 * ldlex.l: Likewise.
4743 * ldmain.c: Likewise.
4744 * ldmisc.c: Likewise.
4745 * lexsup.c: Likewise.
4746 * mpw-eppcmac.c: Likewise.
4748 2001-04-30 Andreas Jaeger <aj@suse.de>
4750 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4752 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4754 * ldlang.c (load_symbols): Give emulation a chance
4755 to process unrecognized file before fatal error is
4756 reported, not after.
4758 2001-04-27 Sean McNeil <sean@mcneil.com>
4760 * configure.tgt: Add arm-vxworks target.
4761 * scripttempl/armcoff.sc: Support .text or .data as a section name
4765 2001-04-13 J.T. Conklin <jtc@redback.com>
4767 * ld.texinfo: Document --fatal-warnings.
4770 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4771 warnings have been turned into errors.
4772 * lexsup.c (OPTION_WARN_FATAL): Define.
4773 (ld_options): Entry for --fatal-warnings.
4774 (parse_args): Handle OPTION_WARN_FATAL.
4775 * ld.h (ld_config_type): Add fatal_warnings field.
4777 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4779 * ldmain.c (main): Default to discard_sec_merge.
4780 * lexsup.c (OPTION_DISCARD_NONE): Define.
4781 (ld_options): Add --discard-none.
4782 (parse_args): Handle OPTION_DISCARD_NONE.
4783 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4784 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4785 all its input sections match.
4787 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4789 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4790 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4791 (eelf32ltsmip.c): New target.
4792 (eelf64btsmip.c): Likewise.
4793 (eelf64ltsmip.c): Likewise.
4794 * Makefile.in: Regenerated.
4796 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4798 (mips*-*-linux-gnu*): Likewise.
4800 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4802 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4804 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4807 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4809 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4810 correct value of __Stext here.
4811 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4814 * emulparams/crislinux.sh: Remove FIXME.
4816 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4818 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4819 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4821 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4823 * configure.tgt (cris-*-*): Change default emulation to criself.
4824 (cris-*-*aout*): New rule.
4826 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4828 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4829 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4831 2001-03-26 Andreas Jaeger <aj@suse.de>
4833 * ld.texinfo (Overview): Fix syntax in texi code.
4835 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4837 * ld.texinfo: Put @c man indications to generate the ld man page.
4838 When generating man, define all the variables. Define SEEALSO
4839 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4840 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4841 (ld.1): Generate from ld.texinfo.
4842 * Makefile.in: Regenerate.
4844 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4846 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4847 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4849 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4851 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4852 is an absolute path look only for this file and not along the path.
4854 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4856 * emultempl/elf32.em (OPTION_GROUP): New macro.
4857 Add new option Bgroup to longopts.
4858 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4859 (gld*_list_options): Add -Bgroup and -z defs.
4860 * ld.1: Document -Bgroup and -z defs.
4861 * ld.texinfo: Likewise.
4863 2001-03-07 Michael Meissner <meissner@redhat.com>
4865 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4866 with sections created by -fdata-sections.
4867 (.dynbss,.bss): Ditto.
4869 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4871 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4872 after_allocation_default, not gld..._before_allocation.
4874 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4876 * configure.in (BFD_VERSION): New.
4877 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4878 * configure: Regenerate.
4879 * Makefile.am: Run "make dep-am"
4880 * Makefile.in: Regenerate.
4882 2001-02-26 Timothy Wall <twall@cygnus.com>
4884 * emulparams/elf64_aix.sh: Add additional read-only sections;
4885 uncomment lines which are now required.
4887 2001-02-26 H.J. Lu <hjl@gnu.org>
4889 * ldlang.c (open_input_bfds): Set the bfd error handler so
4890 that problems can be caught whilst loading symbols.
4891 (record_bfd_errors): New function: Report BFD errors and mark
4892 the executable output as being invalid.
4894 2001-02-22 Timothy Wall <twall@cygnus.com>
4896 * configure.host: Add configuration for ia64-*-aix*.
4897 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4898 Add dependencies for eelf64_aix.c.
4899 * Makefile.in: Regenerate.
4900 * configure.tgt: Add ia64-*-aix* mapping.
4901 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4903 2001-02-20 H.J. Lu <hjl@gnu.org>
4905 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4906 false if we found the file.
4908 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4910 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4911 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4913 2001-02-18 lars brinkhoff <lars@nocrew.org>
4915 * Makefile.am: Add PDP-11 target.
4916 * configure.tgt: Likewise.
4917 * emulparams/pdp11.sh: New file.
4919 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4921 * configure.host: Add a generic FreeBSD configuration entry such that
4922 all [modern] FreeBSD systems on all platforms will look the same.
4924 2001-02-14 H.J. Lu <hjl@gnu.org>
4926 * configure.tgt: Remove mention of earmelf_linux26.
4928 2001-02-13 Richard Henderson <rth@redhat.com>
4930 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4932 2001-02-13 H.J. Lu <hjl@gnu.org>
4934 * ldexp.h (node_type): Add etree_provided.
4935 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4936 type to etree_provided if defined by PROVIDE. Allow updating
4938 (exp_print_tree): Handle etree_provided.
4939 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4942 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4944 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4945 .IA_64.unwind.* pattern to unwind table section and
4946 .IA_64.unwind_info* pattern to unwind info section.
4948 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4950 * Makefile.am: Add linux target for S/390.
4951 * Makefile.in: Likewise.
4952 * configure.host: Likewise.
4953 * configure.tgt: Likewise.
4954 * emulparams/elf64_s390.sh: New file.
4955 * emulparams/elf_s390.sh: New file.
4957 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4959 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4961 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4963 2001-02-06 Philip Blundell <philb@gnu.org>
4965 * Makefile.am: Remove mention of earmelf_linux26.
4966 * Makefile.in: Regenerate.
4968 2001-02-04 Philip Blundell <philb@gnu.org>
4970 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4971 * emulparams/armelf_linux26.sh: Delete.
4972 * configure.tgt: Remove mention of armelf_linux26 emulation.
4974 2001-02-01 Nick Clifton <nickc@redhat.com>
4976 * ld.1: Replace occurances of -oformat with --oformat.
4978 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4980 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4981 load_base is specified.
4983 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4985 * emultempl/elf32.em: Correct spelling in comments and listed
4988 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4990 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4991 default for the first section of a group of overlay sections.
4993 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4995 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4996 * Makefile.in: Regenerate.
4997 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4998 Check for null tool_dir.
5000 2001-01-16 Jim Wilson <wilson@redhat.com>
5002 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
5003 and IA_64.unwind.info.
5005 2001-01-16 H.J. Lu <hjl@gnu.org>
5007 * ldlang.c (lang_check): Merge the private data only if the
5008 input file has contents.
5010 2001-01-14 Alan Modra <alan@linuxcare.com.au>
5012 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
5014 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
5015 enabling search for libmilli. On a relocatable link, make .text
5017 (LDEMUL_AFTER_PARSE): Define.
5018 (hppaelf_finish): Correct spelling of relocatable in comments.
5020 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5021 rummage through the script for sections on the unique list.
5022 Correct length of strncmp for ".note".
5023 (gld${EMULATION_NAME}_check_needed): Rearrange function.
5025 * ldlang.c (unique_section_list): New var.
5026 (unique_section_p): New function.
5027 (walk_wild_section): Don't match sections on unique_section_list.
5028 (lang_add_unique): New function.
5029 Correct spelling of relocatable in comments.
5031 * ldlang.h (struct unique_sections): Declare.
5032 (unique_section_list): Declare.
5033 (unique_section_p): Declare.
5034 (lang_add_unique): Declare.
5036 * lexsup.c (ld_options): Allow --unique to take an optional arg.
5037 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
5039 * ld.texinfo (--unique): Update.
5041 2001-01-13 Nick Clifton <nickc@redhat.com>
5043 * lexsup.c (parse_args): Remove spurious white space.
5045 2001-01-12 Nick Clifton <nickc@redhat.com>
5047 * lexsup.c (parse_args): Update copyright date.
5049 2001-01-12 Philip Blundell <pb@futuretv.com>
5051 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
5053 2001-01-10 Kazu Hirata <kazu@hxi.com>
5055 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
5056 * scripttempl/h8300h.sc: Fix formatting.
5057 * scripttempl/h8300s.sc: Likewise.
5058 * scripttempl/h8500.sc: Likewise.
5059 * scripttempl/h8500b.sc: Likewise.
5060 * scripttempl/h8500c.sc: Likewise.
5061 * scripttempl/h8500m.sc: Likewise.
5062 * scripttempl/h8500s.sc: Likewise.
5064 2000-01-07 David O'Brien <obrien@BSDi.com>
5066 * emultempl/elf32.em: Only perform Linux ld hints processing when
5069 2001-01-07 Philip Blundell <philb@gnu.org>
5071 * ld.texinfo (Bug Reporting): Update email address for reports.
5073 2000-12-31 Nick Clifton <nickc@redhat.com>
5075 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
5076 options by checking for a return value of '?' not -1.
5078 2000-12-28 Nick Clifton <nickc@redhat.com>
5080 * lexsup.c (struct ld_option): Add new enum value:
5082 (ld_options[]): Change -omagic, -output and -oformat options
5083 to be EXACTLY_TWO_DASHES.
5084 (OUTPUT_COUNT): Use ARRAY_SIZE.
5085 (parse_args): Change parameter 'argc' to unsigned.
5086 Place EXACTLY_TWO_DASHES options into new really_longopts
5088 If getopt_long_only fails, try calling getopt_long using the
5089 really_longopts array.
5090 (help): Print a double dash for both EXACTLY_TWO_DASHES and
5093 * ldlex.h: Fix prototype of parse_args.
5095 * ld.texinfo: Document that long options starting with 'o'
5096 must be preceeded by two dashes. Change example of a single
5097 dashed long option from -oformat to -trace-symbol.
5099 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5101 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5102 (longopts[]): New --no-default-excludes option.
5103 (gld_${EMULATION_NAME}_list_options): Document.
5104 (gld_${EMULATION_NAME}_parse_args): Handle.
5106 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5108 * ldlang.c (new_stat): Revert the last beautification with "innocent"
5109 whitespace, it breaks the K&R C preprocessor.
5111 2000-12-11 DJ Delorie <dj@redhat.com>
5113 * ld.texinfo: Add notes about --whole-archive and gcc.
5115 2000-11-18 Fred Fish <fnf@be.com>
5117 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5118 (ld_options): Entry for --allow-shlib-undefined.
5119 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5120 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5122 * ld.texinfo: Document new command line switch.
5124 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
5126 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5127 .fixup is actually read/write.
5128 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5129 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5130 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5132 2000-12-11 Jan Hubicka <jh@suse.cz>
5134 * NEWS: Add note about x86_64 architecture.
5136 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
5138 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5139 Set DWARF2 sections to a VMA of zero.
5141 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5143 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5145 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5146 (sparc*-*-rtems*): Switched from a.out to ELF.
5148 2000-11-30 Jan Hubicka <jh@suse.cz>
5150 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5151 (eelf_x86_64.c): New.
5152 * Makefile.in: Regenerate.
5153 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5154 * emulparams/elf_x86_64.sh: New.
5156 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5158 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5159 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5161 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5162 merging non-a.out sections into CONSTRUCTING.
5164 2000-11-28 Nick Clifton <nickc@redhat.com>
5166 * ld.1 (COPYING): Mention that the GNU Free Documentation
5167 License is present in the sources, but not the output, and
5168 also available from the GNU website.
5169 (GNU Free Documentation License): Comment out this section.
5171 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5173 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5176 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5178 * ld.1: Remove old date so it does not give the impression the manpage
5181 2000-11-24 Nick Clifton <nickc@redhat.com>
5183 * configure.tgt (xscale-coff): Add target.
5184 (xscale-elf): Add target.
5186 2000-11-24 Fred Fish <fnf@be.com>
5188 * ldmain.c (main): Remove redundant init of config.make_executable
5191 2000-11-15 Richard Henderson <rth@redhat.com>
5193 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5195 2000-11-14 Kazu Hirata <kazu@hxi.com>
5197 * scripttempl/h8300.sc: Fix formatting.
5198 * scripttempl/h8300h.sc: Likewise.
5199 * scripttempl/h8300s.sc: Likewise.
5201 2000-11-14 Denis Chertykov <denisc@overta.ru>
5203 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5205 2000-11-09 Philip Blundell <pb@futuretv.com>
5207 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5208 around orphan sections whose names can be represented in C.
5210 2000-11-07 Jim Wilson <wilson@redhat.com>
5212 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5213 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5215 2000-11-06 Nick Clifton <nickc@redhat.com>
5217 * ld.texinfo: Add GNU Free Documentation License.
5218 * ldint.texinfo: Add GNU Free Documentation License.
5219 * ld.1: Add GNU Free Documentation License.
5221 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5223 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5224 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5226 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5227 Move 2000-11-02 Makefile.in changes to this file.
5228 * Makefile.in: Regenerate.
5230 2000-11-03 Nick Clifton <nickc@redhat.com>
5232 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5233 constructors and destructors.
5234 * scripttempl/h8300h.sc: Ditto.
5235 * scripttempl/h8300s.sc: Ditto.
5236 * scripttempl/h8500.sc: Ditto.
5237 * scripttempl/h8500b.sc: Ditto.
5238 * scripttempl/h8500c.sc: Ditto.
5239 * scripttempl/h8500m.sc: Ditto.
5240 * scripttempl/h8500s.sc: Ditto.
5241 * scripttempl/v850.sc: Ditto.
5242 * scripttempl/w65.sc: Ditto.
5243 * scripttempl/z8000.sc: Ditto.
5245 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5247 * Makefile.in (e_i386_chaos.c): New rule.
5248 (ALL_EMULATIONS): Added e_i386_chaos.o.
5249 * emulparams/elf_i386_chaos.sh: New file.
5250 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5252 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5254 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5255 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5256 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5257 library path suffix.
5258 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5260 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5262 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5263 for consecutive sections.
5265 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5267 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5269 * ld.texinfo: Added notes about this new option.
5271 2000-10-16 Nick Clifton <nickc@redhat.com>
5273 * emultempl/pe.em (_after_open): Add tests of return values from
5274 bfd functions. Emit appropriate error messages if necessary.
5276 2000-10-13 Nick Clifton <nickc@redhat.com>
5278 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5279 local variables - they are not used, but leave in the call to
5280 bfd_canonicalize_symtab.
5281 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5282 pe_dll_search_prefix.
5284 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5286 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5287 (longopts): New --dll-search-prefix option.
5288 (gld_${EMULATION_NAME}_list_options): Document.
5289 (gld_${EMULATION_NAME}_parse_args): Handle.
5290 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5291 dynamically, search for a dll named '<prefix><basename>.dll'
5292 in preference to 'lib<basename>.dll' if --dll-search-prefix
5295 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5297 * ldlang.c (section_already_linked): Set kept_section instead of
5300 2000-10-10 Kazu Hirata <kazu@hxi.com>
5302 * deffile.h: Fix formatting.
5303 * lexsup.c: Likewise.
5306 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5308 * pe-dll.c (make_one): Do not generate code thunk for DATA
5310 (process_def_file): deduce DATA flag for auto-export sumbols.
5312 2000-10-09 Kazu Hirata <kazu@hxi.com>
5314 * ld.h: Fix formatting.
5315 * ldcref.c: Likewise.
5316 * ldctor.h: Likewise.
5317 * ldemul.c: Likewise.
5318 * ldemul.h: Likewise.
5319 * ldexp.c: Likewise.
5320 * ldexp.h: Likewise.
5321 * ldfile.c: Likewise.
5322 * ldfile.h: Likewise.
5323 * ldlang.c: Likewise.
5324 * ldlang.h: Likewise.
5325 * ldmain.c: Likewise.
5326 * pe-dll.c: Likewise.
5328 * pe-dll.c: Revert some formatting fixes.
5330 2000-10-08 Kazu Hirata <kazu@hxi.com>
5332 * pe-dll.c: Fix formatting.
5334 2000-10-05 Kazu Hirata <kazu@hxi.com>
5336 * ldlang.c: Fix formatting.
5338 2000-10-03 DJ Delorie <dj@redhat.com>
5340 * pe-dll.c (fill_edata): initialize entire block
5341 (make_one): fill in correct section.
5343 2000-10-03 Kazu Hirata <kazu@hxi.com>
5345 * ldexp.c: Fix formatting.
5347 2000-10-02 DJ Delorie <dj@redhat.com>
5349 * emultempl/pe.em (gld_*_after_open): detect case where there two
5350 import libraries for same dll; rename one to ensure proper link
5353 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5355 (generate_edata): fix typo
5357 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5359 * scripttempl/crisaout.sc (ENTRY): Now __start.
5360 (.text): Add default setting for __start.
5361 Remove CONSTRUCTORS handling.
5362 (/DISCARD/): Add .gnu.warning.*.
5363 * emulparams/crislinux.sh (ENTRY): Now __start.
5364 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5365 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5366 (ENTRY): Now __start.
5367 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5368 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5370 2000-09-29 Kazu Hirata <kazu@hxi.com>
5372 * deffile.h: Fix formatting.
5374 * ldcref.c: Likewise.
5375 * ldctor.c: Likewise.
5376 * ldctor.h: Likewise.
5377 * ldemul.c: Likewise.
5378 * ldemul.h: Likewise.
5379 * ldexp.c: Likewise.
5380 * ldexp.h: Likewise.
5381 * ldfile.c: Likewise.
5382 * ldfile.h: Likewise.
5383 * ldlang.c: Likewise.
5384 * ldlang.h: Likewise.
5385 * lexsup.c: Likewise.
5387 * pe-dll.c: Likewise.
5389 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5391 * pe-dll.c (process_def_file): Uninitialized data wasn't
5392 exported with --export-all-symbols switch.
5394 2000-09-28 DJ Delorie <dj@redhat.com>
5396 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5397 noname work properly.
5399 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5401 * ld.texinfo (HPPA ELF32): New section.
5403 * emultempl/hppaelf.em (group_size): New.
5404 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5405 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5406 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5407 options to prevent abbreviations matching.
5408 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5409 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5411 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5413 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5414 on the m68*-*-elf target. Make it support COFF input objects.
5416 2000-09-21 Kazu Hirata <kazu@hxi.com>
5418 * ldmain.c: Fix formatting.
5419 * ldmisc.c: Likewise.
5420 * ldver.c: Likewise.
5421 * ldwrite.c: Likewise.
5423 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5425 * ldwrite.c (clone_section): Silence gcc warnings.
5427 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5429 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5430 out of memory failure.
5432 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5433 (clone_section): Handle out of memory failures. Rename var to
5434 avoid c++ reserved word.
5436 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5438 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5439 stub_name param to stub_sec_name.
5440 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5442 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5444 * emultempl/m68kelf.em: New file.
5445 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5446 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5447 * Makefile.in: Regenerate.
5449 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5451 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5454 2000-09-13 Nick Clifton <nickc@redhat.com>
5456 * ldmain.c (multiple_definition): Disable relaxation if
5457 multiple symbol definitions are encountered - otherwise the
5458 linker could abort with an assertion failure.
5460 2000-09-10 Nick Clifton <nickc@redhat.com>
5462 * mri.c: Fix formatting.
5464 2000-09-07 H.J. Lu <hjl@gnu.org>
5466 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5467 * configure: Rebuild.
5469 2000-09-07 H.J. Lu <hjl@gnu.org>
5471 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5472 * Makefile.in: Rebuild.
5474 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5476 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5477 broken list handling. Create __start_SECNAME and __stop_SECNAME
5478 when no place-holder. Add some comments. Test both SEC_CODE and
5479 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5480 Handle case where no output section statement created.
5482 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5484 * configure.tgt (sh-*-linux*): Added.
5485 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5486 * Makefile.in: Rebuilt.
5487 * emulparams/shelf_linux.sh: New file.
5488 * emulparams/shlelf_linux.sh: New file.
5490 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5492 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5493 try shuffling sections when the orphan happens to be the place
5494 holder. Keep count of unique section names generated so we speed
5495 the search for a new name.
5497 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5499 * configure: Rebuilt with new libtool.m4.
5501 2000-09-05 Nick Clifton <nickc@redhat.com>
5503 * Makefile.in: Regenerate.
5504 * aclocal.m4: Regenerate.
5505 * configure: Regenerate.
5506 * config.in: Regenerate.
5507 * po/ld.pot: Regenerate.
5509 * ldint.texinfo: Remove CVS revision marker - it foils local
5512 * emultempl/ticoff.em: Remove extraneous comma.
5514 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5516 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5517 to stub section flags.
5518 (hppa_for_each_input_file_wrapper): New.
5519 (hppa_lang_for_each_input_file): New.
5520 (lang_for_each_input_file): Define to call above.
5521 (multi_subspace): New.
5522 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5523 (PARSE_AND_LIST_PROLOGUE): Define.
5524 (PARSE_AND_LIST_LONGOPTS): Define.
5525 (PARSE_AND_LIST_OPTIONS): Define.
5526 (PARSE_AND_LIST_ARGS_CASES): Define.
5527 (hppaelf_finish): Call elf32_hppa_set_gp.
5528 (hppaelf_set_output_arch): Remove.
5529 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5531 * emulparams/hppalinux.sh (ELFSIZE): Define.
5533 (OTHER_READONLY_SECTIONS): Define.
5535 (GENERATE_SHLIB_SCRIPT): Define.
5537 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5538 to const throughout. Change `void *' to `PTR' throughout.
5539 (lang_memory_default): Function is local to file, add `static'.
5541 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5542 (ehppalinux.c): Likewise.
5543 (earmelf.c): Likewise.
5544 (earmelf_linux.c): Likewise.
5545 (earmelf_linux26.c): Likewise.
5546 * Makefile.in: Regenerate.
5548 * ld.h (ld_config_type): Add unique_orphan_sections.
5549 * lexsup.c (OPTION_UNIQUE): Define.
5550 (ld_options): Add "--unique".
5551 (parse_args): Handle it.
5552 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5553 search for an existing output section if unique_orphan_sections is
5554 set. Make use of bfd_get_unique_section_name rather than
5555 duplicating code here.
5556 * ld.texinfo: Describe --unique.
5558 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5559 optional arg to split-by-file.
5560 (parse_args): Handle them.
5561 * ld.texinfo: Update description of these options.
5562 * ldwrite.c (clone_section): Pass in the section name. Replace
5563 local code with bfd_get_unique_section_name.
5564 (split_sections): Tidy code and comments. Use a list traversal
5565 more appropriate to the list construction. Handle cooked section
5566 sizes. Split when split_by_reloc reached rather than exceeded.
5567 Track section size and split when split_by_file reached. Fix
5568 link_order_tail (even though it's not used).
5569 (ldwrite): Modify condition for calling split_sections to suit
5570 changed split_by_reloc and split_by_file.
5571 * ldmain.c (main): Init config.split_by_reloc and
5572 config.split_by_file to -1.
5573 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5574 Change split_by_file to bfd_size_type.
5576 2000-09-02 Nick Clifton <nickc@redhat.com>
5578 * configure.in: Increase version number to 2.10.91.
5579 * NEWS: Mention new ability to support removal of duplicate DWARF2
5581 * configure: Regenerate.
5582 * aclocal.m4: Regenerate.
5583 * config.in: Regenerate.
5585 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5587 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5589 * scripttempl/elf32avr.sc: Ditto.
5590 * scripttempl/elfd10v.sc: Ditto.
5591 * scripttempl/elfd30v.sc: Ditto.
5592 * scripttempl/elfi370.sc: Ditto.
5593 * scripttempl/elfm68hc11.sc: Ditto.
5594 * scripttempl/elfm68hc12.sc: Ditto.
5595 * scripttempl/elfi386beos.sc: Ditto.
5596 * scripttempl/v850.sc: Ditto.
5598 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5600 * acinclude.m4: Include libtool and gettext macros from the
5602 * aclocal.m4, configure: Rebuilt.
5604 2000-08-25 Nick Clifton <nickc@redhat.com>
5606 * ldlang.c (open_output): When choosing the target for a
5607 particular endianness, do nothing if the target is not
5610 2000-08-25 H.J. Lu <hjl@gnu.org>
5612 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5613 check -rpath nor LD_RUN_PATH for cross link.
5614 * ld.texinfo: Document the change.
5616 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5618 * NEWS: Mention support for CRIS.
5620 2000-08-23 H.J. Lu <hjl@gnu.org>
5622 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5623 the current runpath list from bfd_elf_get_runpath_list ()
5626 2000-08-22 H.J. Lu <hjl@gnu.org>
5628 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5629 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5630 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5631 trace_file_tries is non-zero.
5632 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5633 if trace_file_tries is non-zero.
5635 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5638 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5640 * NEWS: Mention i860 support.
5642 2000-08-14 Andreas Schwab <schwab@suse.de>
5644 * scripttempl/elf.sc: Fix last change to use correct comment
5647 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5649 * scripttempl/elf.sc: Add a comment giving the correspondence
5650 between sections, per-datum sections, and linkonce sections. Make
5651 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5654 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5656 * emulparams/elf32_i860.sh: New file.
5657 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5658 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5659 (eelf32_i860.c): New rule.
5660 * Makefile.in: Regenerate.
5662 2000-08-10 Nick Clifton <nickc@cygnus.com>
5664 * emulparams/mipspe.sh (ENTRY): Add definition.
5666 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5668 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5671 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5673 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5674 the final size of .bss section.
5675 * scripttempl/elfm68hc12.sc: Likewise.
5677 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5679 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5680 gld${EMULATION_NAME}_parse_args for consistency. Combine
5681 lastoptind and prevoptind vars, and keep track of last optind.
5682 (gld_${EMULATION_NAME}_list_options): Rename to
5683 gld${EMULATION_NAME}_list_options.
5685 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5687 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5688 (i586-sco-sysv5uw7.1.0).
5690 2000-07-27 H.J. Lu <hjl@gnu.org>
5692 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5693 (PARSE_AND_LIST_PROLOGUE): New.
5694 (PARSE_AND_LIST_LONGOPTS): Likewise.
5695 (PARSE_AND_LIST_OPTIONS): Likewise.
5696 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5697 (PARSE_AND_LIST_EPILOGUE): Likewise.
5699 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5701 * emultempl/armelf.em: Elide functions common to elf32.em,
5702 ie. most of the file.
5703 (arm_elf_after_open): New. Do arm specific things then call
5704 gld${EMULATION_NAME}_after_open.
5705 (arm_elf_before_allocation): New. Call
5706 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5707 (PARSE_AND_LIST_PROLOGUE): Define.
5708 (PARSE_AND_LIST_SHORTOPTS): Define.
5709 (PARSE_AND_LIST_LONGOPTS): Define.
5710 (PARSE_AND_LIST_OPTIONS): Define.
5711 (PARSE_AND_LIST_ARGS_CASES): Define.
5712 (LDEMUL_AFTER_OPEN): Define.
5713 (LDEMUL_BEFORE_ALLOCATION): Define.
5714 (LDEMUL_BEFORE_PARSE): Define.
5715 (LDEMUL_FINISH): Define.
5717 * emultempl/hppaelf.em: Similarly zap most of this file.
5718 (hppaelf_add_stub_section): Prototype.
5719 (hppaelf_layaout_sections_again): Prototype.
5720 (hook_in_stub): Prototype.
5721 (LDEMUL_SET_OUTPUT_ARCH): Define.
5722 (LDEMUL_FINISH): Define.
5723 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5725 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5726 (EXTRA_EM_FILE): New.
5727 * emulparams/armelf_linux.sh: Likewise.
5728 * emulparams/armelf_linux26.sh: Likewise.
5729 * emulparams/hppalinux.sh: Likewise.
5730 * emulparams/hppaelf.sh: Likewise.
5733 * emultempl/elf32.em: Fix formatting.
5734 (EXTRA_EM_FILE): Source it.
5735 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5736 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5737 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5738 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5739 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5740 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5741 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5742 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5743 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5744 allow functions in this file to be overridden.
5745 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5747 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5749 * emultempl/elf32.em: Reorganize file.
5751 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5753 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5754 specific option to fit 64-bit executable in the lower
5755 31-bit address range. This is done by changing start
5756 address of .interp (the very first section of executable)
5757 and then setting EF_ALPHA_32BIT elf header flag.
5759 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5761 * emultempl/m68kcoff.em: New file.
5762 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5763 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5765 * Makefile.in: Regenerate.
5767 2000-07-20 H.J. Lu <hjl@gnu.org>
5769 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5770 and "disable-new-dtags" to stop getopt from treating -d/-e as
5771 abbreviations for these options.
5773 2000-07-20 H.J. Lu <hjl@gnu.org>
5775 * ld.texinfo: Add documentation for --disable-new-dtags and
5778 * ldmain.c (main): Initialize link_info.new_dtags to false.
5780 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5781 --disable-new-dtags and --enable-new-dtags.
5782 (gld_${EMULATION_NAME}_list_options): Likewise.
5784 2000-07-05 Kenneth Block <krblock@computer.org>
5786 * lexsup.c: Add optional style to demangle switch
5787 * ld.texinfo: Document optional style to demangle switch.
5789 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5791 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5793 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5794 Regenerate dependencies.
5795 * Makefile.in: Rebuild.
5796 * configure.tgt (cris-*-*): New target.
5797 * emulparams/crisaout.sh, emulparams/criself.sh,
5798 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5799 * po/POTFILES.in, po/ld.pot: Regenerate.
5801 2000-07-20 H.J. Lu <hjl@gnu.org>
5803 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5804 Print out ignored -z options.
5806 2000-07-19 H.J. Lu <hjl@gnu.org>
5808 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5809 (PARSE_AND_LIST_PROLOGUE): New.
5810 (PARSE_AND_LIST_LONGOPTS): Likewise.
5811 (PARSE_AND_LIST_OPTIONS): Likewise.
5812 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5814 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5816 * lexsup.c (ld_options): Comment out 'z'.
5817 (parse_args): Likewise.
5819 * emultempl/elf32.em: Include "elf/common.h".
5820 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5822 (gld_${EMULATION_NAME}_list_options): Likewise.
5824 * ld.texinfo: Add documentation for the recognized -z options.
5826 2000-07-19 H.J. Lu <hjl@gnu.org>
5828 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5829 bfd_elf_set_dt_needed_soname ().
5831 2000-07-18 DJ Delorie <dj@cygnus.com>
5833 * pe-dll.c (pe_dll_id_target): check object target name also
5835 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5837 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5838 ${INIT_END} if relocating.
5839 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5841 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5843 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5844 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5845 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5846 errors introduced by the old dynamic lib search order.
5848 2000-07-17 DJ Delorie <dj@cygnus.com>
5850 * pe-dll.c (process_def_file): auto-export data items also
5851 (pe_process_import_defs): also see if _imp_ form needed
5853 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5855 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5856 for dll import libraries
5858 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5860 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5861 gcc 2.95.2 and later.
5863 2000-07-11 Kazu Hirata <kazu@hxi.com>
5865 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5868 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5870 * ldemul.h (struct lang_input_statement_struct): Remove forward
5872 (struct search_dirs): Likewise.
5873 * ldfile.h (struct lang_input_statement_struct): Likewise.
5874 Protect file from multiple inclusion.
5875 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5876 declaration from macro to file scope.
5878 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5879 * ldgram.y: Likewise here.
5880 * ldlang.c: And here.
5881 * ldmain.c: And here.
5882 * mpw-elfmips.c: And here.
5883 * mpw-eppcmac.c: And here.
5884 * emultempl/aix.em: And here.
5885 * emultempl/armcoff.em: And here.
5886 * emultempl/armelf.em: And here.
5887 * emultempl/armelf_oabi.em: And here.
5888 * emultempl/beos.em: And here.
5889 * emultempl/elf32.em: And here.
5890 * emultempl/hppaelf.em: And here.
5891 * emultempl/linux.em: And here.
5892 * emultempl/lnk960.em: And here.
5893 * emultempl/pe.em: And here.
5894 * emultempl/sunos.em: And here.
5895 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5896 * mpw-idtmips.c: Ditto.
5897 * emultempl/generic.em: Ditto.
5898 * emultempl/gld960.em: Ditto.
5899 * emultempl/gld960c.em: Ditto.
5900 * emultempl/mipsecoff.em: Ditto.
5901 * emultempl/ticoff.em: Ditto.
5902 * emultempl/vanilla.em: Ditto.
5904 * pe-dll.c: Include ldfile.h
5905 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5907 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5908 arguments to bfd_elf32_size_dynamic_sections call.
5909 (gldelf32ebmip_place_orphan): Add missing arguments to
5910 lang_leave_output_section_statement call.
5912 2000-07-10 H.J. Lu <hjl@gnu.org>
5914 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5916 (strhash): Likewise.
5917 (compute_dll_image_base): Likewise.
5918 (pe_undef_found_sym): Likewise.
5919 (pe_undef_cdecl_match): Likewise.
5920 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5921 argument "arch" with ATTRIBUTE_UNUSED.
5923 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5925 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5927 From Ryan Bradetich <rbradetich@uswest.net>
5928 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5930 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5932 Changes to create multiple linker stubs, positioned immediately
5933 before the section where they are required.
5934 * emultempl/hppaelf.em: Include elf32-hppa.h.
5935 (stub_sec, file_chain): Delete.
5936 (hppaelf_create_output_section_statements): Don't make a stub
5938 (hook_stub_info): New struct.
5939 (hook_in_stub): New function.
5940 (hppaelf_add_stub_section): New function.
5941 (hppaelf_finish): Do nothing for relocateable links. Modify the
5942 call to elf32_hppa_size_stubs. Move code for updating section
5944 (hppaelf_layaout_sections_again): ..to here, a new function.
5946 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5947 broken list handling. Pass in a pointer to the list.
5948 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5950 (hppaelf_before_parse): Prototype.
5951 (hppaelf_set_output_arch): Prototype.
5952 (hppaelf_create_output_section_statements): Prototype.
5953 (hppaelf_delete_padding_statements): Prototype.
5954 (hppaelf_finish): Prototype.
5957 * emultempl/hppaelf.em: Include ctype.h.
5958 (struct orphan_save): New.
5959 (gld${EMULATION_NAME}_place_orphan): New.
5960 (output_rel_find): New.
5961 (hppaelf_get_script): Update from elf32.em.
5962 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5963 Change emulation_name field to "${EMULATION_NAME}". Add
5964 gld${EMULATION_NAME}_place_orphan.
5966 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5967 ehppalinux.o, sort it. Regenerate dependencies.
5968 (ehppalinux.c): Depend on hppaelf.em
5969 * Makefile.in: Regenerate.
5971 * configure.tgt: targ_emul=hppalinux for hppa*linux
5973 * emulparams/hppalinux.sh: New.
5974 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5976 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5978 * lexsup.c (parse_args): Copy section name.
5980 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5982 * emultempl/pe.em: institute the following search order for
5983 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5984 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5985 static lib (libfoo.a) if none of the above are found.
5987 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5989 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5990 (longopts): New --{enable,disable}-auto-image-base options.
5991 (gld_${EMULATION_NAME}_list_options): Document.
5992 (gld_${EMULATION_NAME}_parse): Handle.
5993 (strhash): New static function.
5994 (compute_dll_image_base): New static function.
5995 (gld_${EMULATION_NAME}_set_symbols): Use.
5997 2000-07-05 DJ Delorie <dj@redhat.com>
6001 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6003 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
6004 * emulparams/elf32btsmip.sh: New file.
6005 * Makefile.am: Add traditional mips target.
6006 * Makefile.in: Rebuild.
6008 2000-07-01 H.J. Lu <hjl@gnu.org>
6010 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
6011 automake to use YLWRAP.
6012 * Makefile.in: Rebuild.
6014 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6016 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6017 (CLEANFILES): Add DEPA.
6018 * Makefile.in: Regenerate.
6020 2000-06-30 Timothy Wall <twall@ppc>
6022 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
6023 the page in the upper octet of the address.
6025 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6027 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
6029 2000-06-24 Alan Modra <alan@linuxcare.com.au>
6031 * NEWS: arm-elf does --gc-sections too.
6033 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6035 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6037 * Makefile.in: Regenerate.
6039 2000-06-21 H.J. Lu <hjl@gnu.org>
6041 * Makefile.am: Rebuild dependency.
6042 * Makefile.in: Rebuild.
6044 2000-06-20 H.J. Lu <hjl@gnu.org>
6046 * Makefile.am: Rebuild dependency.
6047 * Makefile.in: Rebuild.
6049 2000-06-20 Timothy Wall <twall@cygnus.com>
6051 * scripttempl/tic54xcoff.sc: New.
6052 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
6053 * gen-doc.texi: Add flag for TI COFF.
6054 * ld.texinfo: Add documentation for TI COFF handling switches.
6055 * emultempl/ticoff.em: New. TI COFF handling.
6056 * configure.tgt: Add tic54x target.
6057 * Makefile.am: Add tic54x target.
6058 * Makefile.in: Ditto.
6060 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6062 * ldmain.c (set_scripts_dir): Correct pointer comparison when
6063 checking for backslashes.
6065 2000-06-19 Alan Modra <alan@linuxcare.com.au>
6067 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
6069 2000-06-18 Alan Modra <alan@linuxcare.com.au>
6071 * NEWS: Update list of targets supporting --gc-sections.
6073 * scripttempl/elf.sc: KEEP .eh_frame contents.
6074 * scripttempl/elfd30v.sc: Same here.
6076 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6078 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
6080 * Makefile.in: Rebuild.
6081 * configure.tgt: Recognize m68hc12 and m68hc11.
6082 * scripttempl/elfm68hc12.sc: New file.
6083 * emulparams/m68hc12elfb: New emulation.
6084 * emulparams/m68hc12elf: New emulation.
6085 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
6086 (includes a memory.x script to define the ROM and RAM banks).
6087 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
6088 New configuration files for support of Motorola 68hc11
6090 2000-06-15 Alan Modra <alan@linuxcare.com.au>
6092 * ldmain.c (main): Only change SEC_READONLY for final link.
6094 2000-06-13 H.J. Lu <hjl@gnu.org>
6096 * configure: Regenerate.
6098 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6100 * configure.in (VERSION): Update to show this is the CVS mainline.
6102 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6104 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6105 input objects to be ECOFF.
6106 (check_sections): einfo takes %B, not %P, to print a BFD name.
6108 2000-06-05 Michael Matz <matz@ifh.de>
6110 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6113 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6115 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
6117 * emulparams/avr1200.sh (STACK): Define as 0.
6118 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6119 * emulparams/avr4433.sh (STACK): Likewise.
6120 * emulparams/avr44x4.sh (STACK): Likewise.
6121 * emulparams/avr85xx.sh (STACK): Likewise.
6122 * emulparams/avrmega103.sh (STACK): Likewise.
6123 * emulparams/avrmega161.sh (STACK): Likewise.
6124 * emulparams/avrmega603.sh (STACK): Likewise.
6125 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6126 (__stack): Define from ${STACK} for main().
6128 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6130 * Makefile.am: Update dependencies with "make dep-am"
6131 * Makefile.in: Regenerate.
6133 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6135 * ldmain.c: Include filenames.h.
6136 (set_scripts_dir): Support backslashes in program name.
6138 2000-05-22 Igor Shevlyakov <igor@windriver.com>
6140 * ldmain.c (main): When deciding if ".text" section should be
6141 read-only, don't forget to reset SEC_READONLY because it
6142 could be already set.
6144 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6146 * ld.1: Add documentation for new command line option:
6147 --section-start <sectionname>=<sectionorg>
6148 This is a generic version of -Ttext etc. which accepts
6149 any section name as a parameter instead of just text/data/
6151 * ld.texinfo: More docs.
6153 * lexsup.c: (parse_args): Recognize new command line option.
6154 (ld_options): Add new option.
6156 2000-05-18 H.J. Lu <hjl@gnu.org>
6158 * lexsup.c (parse_args): `i' == `r', not `q'.
6160 2000-05-18 Jeffrey A Law (law@cygnus.com)
6162 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6164 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6165 Rick Gorton <gorton@scrugs.lkg.dec.com>
6167 Add support for '-q' == '--emit-relocs' switch.
6168 * ldmain.c (main): Default to false.
6169 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6170 * NEWS: Describe the emitrelocations switch.
6171 * ld.texinfo: Describe the emitrelocations switch.
6173 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6175 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6176 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6177 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6180 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6182 * lexsup.c (parse_args): Update the year in the copyright notice.
6184 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6186 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6187 Replace defines with those from intl/libgettext.h to quieten gcc
6190 2000-05-10 H.J. Lu <hjl@gnu.org>
6192 * ldlang.c (open_input_bfds): Don't load the same file within
6193 a group again if the whole archive has been loaded already.
6195 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6197 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6198 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6201 2000-05-01 Jim Wilson <wilson@cygnus.com>
6203 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6205 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6206 host "ia64-*-linux-gnu*".
6208 2000-04-29 Andreas Jaeger <aj@suse.de>
6210 * ld.h: Correctly check GCC version.
6212 2000-04-25 Jeffrey A Law (law@cygnus.com)
6214 * Makefile.am: Add PA64 support. Add missing dependencies for
6216 * Makefile.in: Rebuilt.
6217 * configure.tgt: Add PA64 support (currently disabled).
6219 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6221 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6222 (output_rel_find): New function.
6223 (hold_section, hold_use): Delete.
6224 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6225 hold_interp): Make local to place_orphan.
6226 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6227 rather than place_section to find possible previous use of orphan.
6228 Similarly find the place-holder output sections. Use returned
6229 value from lang_enter_output_section_statement rather than calling
6230 lang_output_section_statement_lookup.
6231 * emultempl/armelf.em: Same here.
6232 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6234 * ldlang.c (lang_enter_output_section_statement): Return output
6236 * ldlang.h (lang_enter_output_section_statement): Change
6239 * ldlang.h (lang_output_section_statement): Export it.
6240 * ldlang.c (lang_output_section_statement): Ditto.
6242 2000-04-24 Nick Clifton <nickc@cygnus.com>
6244 * ld.texinfo (Output Section Data): Add note that section data
6245 commands cannot appear outside of section directives.
6247 2000-04-2 Matthew Green <mrg@cygnus.com>
6249 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6251 2000-04-21 Richard Henderson <rth@cygnus.com>
6252 David Mosberger <davidm@hpl.hp.com>
6254 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6255 (eelf64_ia64.c): New rule.
6256 * Makefile.in: Rebuild.
6257 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6258 * emulparams/elf64_ia64.sh: New file.
6260 2000-04-21 Richard Henderson <rth@cygnus.com>
6262 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6264 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6266 * dep-in.sed: Match space at start of file name, not at end.
6268 2000-04-18 H.J. Lu <hjl@gnu.org>
6270 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6271 lang_leave_output_section_statement () after calling
6272 lang_enter_output_section_statement ().
6273 * emultempl/armelf.em: Likewise.
6275 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6277 * emultempl/elf32.em (struct orphan_save): Add section field.
6278 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6279 better order, and place first orphan section as we did before the
6280 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6281 Don't call make_bfd_section here, let wild_doit do the job for us.
6282 Don't build a statement list when we'll only throw it away.
6283 * emultempl/armelf.em: Ditto.
6284 * emultempl/pe.em: Similarly.
6286 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6288 * scripttempl/elfppc.sc: Remove.
6289 * emulparams/elf32ppc.sh: Use elf.sc.
6290 * emulparams/elf32lppc.sh: Use elf.sc.
6291 * emulparams/elf32ppclinux.sh: Use elf.sc.
6292 * emulparams/elf32ppcsim.sh: New file.
6293 * emulparams/elf32lppcsim.sh: New file.
6294 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6295 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6296 * Makefile.in: Regenerate.
6297 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6299 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6301 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6302 ~SEC_ALLOC sections too. Init start address of debug sections.
6303 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6304 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6305 Also set all relocateable section start addresses.
6307 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6309 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6310 Add new BSS_PLT variable for when .plt need not be contained in
6311 the file. Move _etext so that it is also after .fini, and provide
6312 both etext and _etext with a leading underscore. Mark the start
6315 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6317 * emultempl/elf32.em (struct orphan_save): New.
6318 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6319 hold_interp): Make them struct orphan_save.
6320 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6321 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6322 the end of the relevant section list. Also add associated section
6323 statements to the end of any previous orphan statements.
6324 * emultempl/armelf.em: Similarly.
6325 * emultempl/pe.em: Similarly.
6327 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6329 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6331 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6333 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6334 --enable-build-warnings option.
6335 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6336 * Makefile.in, configure: Re-generate.
6338 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6340 * po/ld.pot: Regenerate.
6342 * lexsup.c (help): Restore translated part of bug string.
6344 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6345 (DEP): Quote when passing vars to sub-make. Add warning message
6347 (DEP1): Rewrite for "gcc -MM".
6348 (CLEANFILES): Add DEP2.
6349 Update dependencies.
6350 * Makefile.in: Regenerate.
6352 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6354 * ld.h: #include "bin-bugs.h"
6355 * lexsup.c (help): Use REPORT_BUGS_TO.
6357 2000-03-27 Denis Chertykov <denisc@overta.ru>
6359 * configure.tgt (avr-*-*): New target support.
6360 * Makefile.am: Likewise.
6361 * scripttempl/elf32avr.sc: New script file.
6362 * emulparams/avr1200.sh: New file.
6363 * emulparams/avr23xx.sh: New file.
6364 * emulparams/avr4433.sh New file.
6365 * emulparams/avr44x4.sh New file.
6366 * emulparams/avr85xx.sh New file.
6367 * emulparams/avrmega103.sh New file.
6368 * emulparams/avrmega161.sh New file.
6369 * emulparams/avrmega603.sh New file.
6370 * Makefile.in: Regenerate.
6372 2000-03-09 Andreas Jaeger <aj@suse.de>
6374 * Makefile.am (check-DEJAGNU): Also unset LANG.
6375 * Makefile.in: Rebuild.
6377 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6379 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6382 2000-03-02 H.J. Lu <hjl@gnu.org>
6384 * emulparams/elf32mcore.sh: Include "getopt.h".
6386 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6388 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6390 2000-03-01 H.J. Lu <hjl@gnu.org>
6392 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6393 * emulparams/shpe.sh: Likewise.
6395 2000-03-01 Nick Clifton <nickc@cygnus.com>
6397 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6398 to unused parameters.
6400 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6401 functions only used by DLL code.
6402 (_place_orphan): Initialise 'dollar'.
6404 2000-03-01 H.J. Lu <hjl@gnu.org>
6406 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6407 indicate if the undefined symbol is a fatal error or not.
6408 Don't delete the output file if "fatal" is false.
6410 2000-02-29 H.J. Lu <hjl@gnu.org>
6412 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6413 Set LC_COLLATE and LC_ALL to null and export them. It is for
6414 sort which expects the C locale.
6415 Add $(LIBS) to all $(HOSTING_LIBS).
6416 * Makefile.in: Rebuild.
6418 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6420 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6421 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6422 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6423 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6424 find_potential_libraries.
6426 2000-02-28 Jim Blandy <jimb@redhat.com>
6428 * ldgram.y (exclude_name_list): Don't require a comma to separate
6429 list entries; the lexer considers commas to be valid part of a
6430 filename, so in something like `foo, bar' the comma is considered
6431 part of the first filename, `foo,'.
6432 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6434 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6436 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6437 host "i[3456]86-*-freebsdelf*".
6439 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6441 * scripttempl/i386go32.sc: Move misplaced semicolons.
6443 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6445 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6446 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6447 (eelf64hppa.c, ehppaelf.c): Remove targets.
6448 * Makefile.in: Rebuild.
6450 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6452 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6453 GNU/Linux/sparc, but keep the default as 32.
6455 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6456 it default if sparcv9 or sparc64.
6458 2000-02-24 Nick Clifton <nickc@cygnus.com>
6460 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6461 * Makefile.in: Regenerate.
6462 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6464 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6465 find_potential_libraries.
6466 * ldemul.c (ldemul_find_potential_libraries): New function.
6468 * ldfile.c (ldfile_open_file_search): Allow function to be
6470 (ldfile_open_file): Call ldemul_find_potential_libraries.
6471 * ldfile.h: Add prototype for ldfile_open_file_search.
6473 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6475 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6476 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6478 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6479 (gld_X_find_potential_libraries): New function. Search for
6480 libraries called "*.lib".
6482 * scripttempl/pe.sc: Add .pdata section.
6484 2000-02-23 Richard Henderson <rth@cygnus.com>
6486 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6487 Add and use memory regions.
6489 2000-02-23 Linas Vepstas (linas@linas.org)
6491 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6493 * Makefile.am: Add support for Linux/IBM 370.
6494 * configure.tgt: Likewise.
6496 * Makefile.in: Regenerate.
6498 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6500 * ldlang.c (print_input_section, print_data_statement,
6501 print_reloc_statement, print_padding_statement, insert_pad,
6502 size_input_section, lang_check_section_addresses,
6503 lang_size_sections, lang_do_assignments, lang_set_startof,
6504 lang_one_common): Change `opb' to unsigned.
6505 (lang_do_assignments): Also change `size' to unsigned.
6507 2000-02-16 Richard Henderson <rth@cygnus.com>
6509 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6511 2000-02-16 Timothy Wall <twall@cygnus.com>
6513 * mri.c (mri_draw_tree): Add default LMA region argument to call
6514 to lang_leave_output_section_statement.
6515 * ldlang.h: Update prototypes with LMA region arguments.
6516 * ldlang.c (lang_size_sections): Encapsulate region bounds
6517 checking in os_check_region call.
6518 (os_check_region): New function.
6519 (lang_output_section_statement_lookup): Initialize lma_region.
6520 (lang_leave_output_section_statement): Add LMA region argument.
6521 (lang_leave_overlay): Ditto.
6522 * ldgram.y: Handle LMA region syntax.
6523 * ld.texinfo (Output Section Description): Describe LMA region usage.
6524 * emultempl/armelf.em (gld$place_orphan): Add default value for
6525 lma region in call to lang_leave_output_section_statement.
6526 * emultempl/elf32.em (gld$place_orphan): Add default value for
6527 lma region in call to lang_leave_output_section_statement.
6528 * emultempl/pe.em (gld$place_orphan): Add default value for
6529 lma region in call to lang_leave_output_section_statement.
6532 2000-02-04 Timothy Wall <twall@redhat.com>
6534 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6535 octets when calculating section end addresses.
6537 2000-02-04 Timothy Wall <twall@redhat.com>
6539 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6541 2000-02-03 Timothy Wall <twall@redhat.com>
6543 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6545 * ldlang.c (print_input_section, print_data_statement,
6546 print_reloc_statement, print_padding_statement): Print target
6547 address values and section sizes as bytes, not octets.
6548 (insert_pad) Calculate padding size in octets, and adjust "dot"
6550 (size_input_section) Always adjust "dot" by bytes, not octets.
6551 (lang_check_section_addresses, lang_do_assignments) Adjust
6552 "dot" by bytes, not octets. Use the larger of the directive size
6553 or octets_per_byte for the number of octets actually allocated in
6555 (lang_set_startof) Make sure STARTOF returns a target address.
6556 (lang_one_common) Record size changes in octets.
6557 (lang_abs_symbol_at_end_of) Section end symbol's value is
6558 recorded in target bytes.
6559 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6560 to be clear about behavior when an octet is smaller than one byte.
6562 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6564 * ldcref.c (output_cref): Don't pass message strings to printf
6568 * ldmisc.c (vfinfo): Same here.
6571 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6573 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6574 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6575 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6576 Add missing NULL initialisers, and comments.
6578 2000-01-21 Nick Clifton <nickc@cygnus.com>
6580 * ldlang.c (lang_size_sections): Fix typo in comment.
6582 2000-01-18 H.J. Lu <hjl@gnu.org>
6584 * ldlang.c (lang_size_sections): Also update the current
6585 address of a region if the SEC_NEVER_LOAD bit is not set.
6587 2000-01-10 Philip Blundell <pb@futuretv.com>
6589 * configure.tgt (arm*-*-conix*): New target.
6591 2000-01-07 Nick Clifton <nickc@cygnus.com>
6593 * ld.texinfo (Options): Remind users to preceed linker command
6594 line switches with -Wl, (or whatever is appropriate) if it is
6595 being invoked by a comnpiler driver program.
6596 Fix description of the behaviour of the -n command line switch.
6598 2000-01-05 Catherine Moore <clm@cygnus.com>
6600 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6602 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6603 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6604 (exclude_name_list): New.
6605 ldlang.c (walk_wild_section): Support list of excluded files.
6606 (print_wild_statement): Likewise.
6607 (lang_add_wild): Likewise.
6608 * ldlang.h (lang_wild_statement_type): Likewise.
6609 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6611 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6613 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6614 (process_def_file): Use.
6615 (pe_dll_compat_implib): New variable.
6618 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6619 pe_dll_compat_implib.
6621 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6622 compat-implib options.
6623 (gld_${EMULATION_NAME}_list_options): List new options.
6624 (gld_${EMULATION_NAME}_parse_args): Handle.
6626 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6629 * deffilep.y (opt_name): Allow "." in name.
6631 For older changes see ChangeLog-9899
6637 version-control: never