1 2003-10-20 Andrew Cagney <cagney@redhat.com>
3 * pe-dll.c: Replace "struct sec" with "struct bfd_section".
5 2003-10-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
7 * Makefile.am: Remove old (before GCC 3.3) emulations for AVR
8 target: avr1200, avr23xx, avr4433, avr44x4, avr85xx, avrmega103,
9 avrmega161, avrmega603. Default to avr2.
10 * Makefile.in: Regenerate.
11 * configure.tgt: Likewise.
12 * emulparams/avr1200.sh: Remove.
13 * emulparams/avr23xx.sh: Remove.
14 * emulparams/avr4433.sh: Remove.
15 * emulparams/avr44x4.sh: Remove.
16 * emulparams/avr85xx.sh: Remove.
17 * emulparams/avrmega103.sh: Remove.
18 * emulparams/avrmega161.sh: Remove.
19 * emulparams/avrmega603.sh: Remove.
20 * scripttempl/elf32avr.sc: Remove.
22 2003-10-19 Andreas Schwab <schwab@suse.de>
24 * emultempl/ticoff.em (gld_${EMULATION_NAME}_list_options): Add
27 * deffilep.y: Remove commas from %token lines.
29 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
31 * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
32 relaxation always; don't exclude relocatable linking. Adjust for
33 _bfd_mmix_prepare_linker_allocated_gregs renamed to
34 _bfd_mmix_before_linker_allocation.
35 (mmix_after_allocation): Adjust for
36 _bfd_mmix_finalize_linker_allocated_gregs renamed to
37 _bfd_mmix_after_linker_allocation.
38 * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
40 * ldlang.c (lang_size_sections): Last, set _cooked_size for output
43 2003-10-16 Alan Modra <amodra@bigpond.net.au>
45 * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use
46 GENSCRIPTS and GEN_DEPENDS in place of these.
47 * Makefile.in: Regenerate.
48 * genscripts_extra.sh: Delete. Merge extra functionality to..
49 * genscripts.sh: ..here.
51 * emulparams/gld960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Define.
52 * emulparams/gld960coff.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
53 * emulparams/lnk960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
54 * emulparams/m88kbcs.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
55 * emulparams/vanilla.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
57 2003-10-16 Alan Modra <amodra@bigpond.net.au>
59 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Don't
60 use $EMULATION_NAME to call bfd function.
62 2003-10-14 Danny Smith <dannysmith@users.sourceforge.net>
64 * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
65 to identify data symbols.
67 2003-10-13 Richard Sandiford <rsandifo@redhat.com>
69 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
70 definition from elf64btsmip.sh.
71 (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
72 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
73 * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
74 * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
75 (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
76 Define __program_header_table in terms of __elf_header.
78 2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
80 * Makefile.am (eelf64_ia64.c): Also depend on
81 $(srcdir)/emultempl/ia64elf.em.
82 * Makefile.in: Regenerated.
84 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
86 * emultempl/ia64elf.em: New.
88 2003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
90 * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
92 2003-10-11 Hans-Peter Nilsson <hp@bitrange.com>
94 * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
95 defined before the statement using DEFINED yield 1.
96 * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
97 call lang_track_definedness on symbol. In subsequent phases, use
98 lang_symbol_definition_iteration and lang_statement_iteration to
99 check whether the symbol was defined before the current statement.
100 (exp_fold_tree) <case etree_assign et al>: Call
101 lang_update_definedness before updating symbol type when setting
103 * ldlang.c (lang_definedness_table): New variable.
104 (lang_definedness_newfunc, lang_track_definedness)
105 (lang_symbol_definition_iteration, lang_update_definedness): New
107 (lang_init): Initialize lang_definedness_table and
108 lang_statement_iteration.
109 (lang_finish): Destroy bfd_hash_table_free.
110 (lang_size_sections): Increment lang_statement_iteration.
111 (lang_do_assignments_1): New function with former
112 lang_do_assignments contents. Change recursive calls to call this
114 (lang_do_assignments): Evacuate contents. Increment
115 lang_statement_iteration, then just call lang_do_assignments_1.
116 * ldlang.h (struct lang_definedness_hash_entry)
117 (lang_statement_iteration, lang_track_definedness)
118 (lang_symbol_definition_iteration, lang_update_definedness):
121 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
123 * scripttempl/elf.sc (__executable_start): Provide.
125 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
127 * emulparams/armelf.sh: Define NO_SMALL_DATA.
128 * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
129 emulparams/armnto.sh: Likewise.
131 2003-10-08 Alexandre Oliva <aoliva@redhat.com>
133 * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
134 whether to skip test for no memory region.
136 2003-10-08 Nick Clifton <nickc@redhat.com>
138 * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
139 describing defaults. Change default to report unresolved symbols
140 in object files as well.
142 2003-10-08 Hans-Peter Nilsson <hp@bitrange.com>
144 * ldexp.c (fold_name) <case DEFINED>: Set section of result to
147 2003-10-07 Bob Wilson <bob.wilson@acm.org>
149 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
150 OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
151 zero for relocatable links.
153 2003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
155 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
157 2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
159 * ldwrite.c (unsplittable_name): New.
160 (clone_section): Strip existing numeric suffix. Only truncate names
162 (split_sections): Use unsplittable_name.
164 2003-10-06 Nick Clifton <nickc@redhat.com>
166 * lexsup.c (parse_args): Report unresolved symbols in shared
167 libraries when creating a dynamic executable. This is a
168 restoration of the default behaviour for previous versions of
171 2003-10-06 Matt Thomas <matt@3am-software.com>
173 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
174 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
176 2003-10-06 Robert Millan <robertmh@gnu.org>
178 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
180 2003-10-02 Ivan Warren <ivan@vmfacility.fr>
182 * pe-dll.c (make_one): Correct sym def order & pick right sym for
185 2003-09-30 Chris Demetriou <cgd@broadcom.com>
187 * NEWS: Add an indication of the cutoff for 2.14.
189 2003-09-30 Chris Demetriou <cgd@broadcom.com>
191 * ldmain.c (get_emulation): Ignore "-mips64r2".
193 2003-09-03 Robert Millan <robertmh@gnu.org>
195 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
197 * configure.tgt: Likewise.
199 2003-08-29 Jafa <jafa@silicondust.com>
201 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
203 2003-08-21 Nick Clifton <nickc@redhat.com>
205 * po/tr.po: Updated Turkish translation.
207 2003-08-20 Nick Clifton <nickc@redhat.com>
209 * ldmain.c: Initialise the new fields in bfd_link_info to
211 * lexsup.c (enum option_values): New enum. Use this to
212 replace the handed coded values for the long switch options.
213 (ld_options): Add 'unresolved-symbols',
214 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
215 (parse_args): Handle the new switches. Set the values of
216 unresolved_symbols_in_objects and
217 unresolved_symbols_in_shared_libs appropriately. If they were
218 not initialised by the command line, install default values.
219 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
220 -z defs to use the new fields in bfd_link_info.
221 * ld.texinfo: Document the new switches.
222 * NEWS: Mention this feature.
224 2003-08-15 Dmitry Diky <diwil@mail.ru>
226 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
227 calls genscripts_extra.sh.
228 Rearrange all msp430 depends using this script.
229 * Makefile.in: Regenerate.
230 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
231 that the script to be run to generate the emulations can be passed
232 as an optional parameter instead of being computed from the
234 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
235 definitions into one file.
236 * emulparams/msp430x*.sh: Removed.
238 2003-08-15 Nick Clifton <nickc@redhat.com>
240 * ld.texinfo (Options): Put keywords for the -z option into a
241 table. Add more text describing what the -z now option does.
243 2003-08-14 Alan Modra <amodra@bigpond.net.au>
245 * dep-in.sed: Remove libintl.h.
246 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
247 * Makefile.in: Regenerate.
249 2003-08-13 Alan Modra <amodra@bigpond.net.au>
251 * genscripts.sh (libpath.exp): Only generate for first emulation.
252 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
253 already present or when LIB_PATH is set to ":".
255 2003-08-12 Ian Lance Taylor <ian@airs.com>
257 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
258 to `error'. If only a warning, put warning in the reported
259 string. Consistently set failure flag when not a warning.
261 2003-08-08 Dmitry Diky <diwil@mail.ru>
263 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
265 * Makefile.in: Regenerate.
266 * configure.tgt: Add extra emulations.
267 * emulparams/msp430xE423.sh: New file.
268 * emulparams/msp430xE427.sh: New file.
269 * emulparams/msp430xW425.sh: New file.
270 * emulparams/msp430xE425.sh: New file.
271 * emulparams/msp430xW423.sh: New file.
272 * emulparams/msp430xW427.sh: New file.
274 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
276 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
277 Change second (cmdline) arg to lang_add_entry to FALSE.
278 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
280 2003-08-05 Christian Groessler <chris@groessler.org>
281 Jason Eckhardt <jle@rice.edu>
283 * configure.tgt: Recognize new target i860-*-coff.
284 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
285 (ecoff_i860.c): New rule.
286 * emulparams/coff_i860.sh: New file.
287 * scripttempl/i860coff.sc: New file.
288 * Makefile.in: Regenerate.
290 2003-08-04 Nick Clifton <nickc@redhat.com>
292 * emultempl/elf32.em (before_allocation): Prepend "warning: "
293 to messages produced for .gnu.warning.SYMBOL sections.
295 2003-08-04 Alan Modra <amodra@bigpond.net.au>
297 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
298 .rel.dyn before other reloc sections. Don't stop looking for reloc
299 sections on finding one that isn't allocated. Match .rel even when
300 placing .rela and vice versa, when setting last_rel and
301 last_rel_alloc for the first time. If no reloc sections in script,
302 prefer allocated section over non-alloc.
303 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
305 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
307 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
308 section for shared library.
309 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
310 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
312 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
314 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
315 * scripttempl/elfm68hc11.sc: Likewise.
317 2003-07-28 Alan Modra <amodra@bigpond.net.au>
319 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
321 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
323 2003-07-27 Alan Modra <amodra@bigpond.net.au>
325 * ld.texinfo: Typo fixes. Document SUBALIGN.
326 * ldgram.y (opt_subalign): Add.
327 * ldlex.l (SUBALIGN): Recognize.
328 * ldlang.c (overlay_subalign): New var.
329 (lang_enter_overlay): Add subalign param.
330 (lang_enter_overlay_section): Pass overlay_subalign to
331 lang_enter_output_section_statement.
332 * ldlang.h (lang_enter_overlay): Update.
334 2003-07-24 Nick Clifton <nickc@redhat.com>
336 * po/fr.po: Updated French translation.
338 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
340 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
341 account .tramp sections;
342 * scripttempl/elfm68hc12.sc: Likewise.
344 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
346 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
348 2003-07-17 Nick Clifton <nickc@redhat.com>
350 * po/es.po: New Spanish translation.
352 2003-07-11 Alan Modra <amodra@bigpond.net.au>
354 * po/ld.pot: Regenerate.
356 2003-07-10 Bob Wilson <bob.wilson@acm.org>
358 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
359 with new .got.loc section.
360 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
361 non-relocating links.
362 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
363 sections separate for non-relocating links; likewise for .xt.insn.
365 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
367 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
368 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
369 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
370 * configure.host (am33_2.0-*-linux*): Added.
371 * configure.tgt (am33_2.0-*-linux*): Likewise.
372 * emulparams/elf32am33lin.sh: New.
373 * Makefile.am (eelf32am33lin.c): New rule.
374 * Makefile.in: Rebuilt.
376 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
378 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
379 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
380 (GENERATE_SHLIB_SCRIPT): Likewise.
382 2003-07-10 Alan Modra <amodra@bigpond.net.au>
384 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
386 * emultempl/ppc64elf.em (stub_added): New static var.
387 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
388 (ppc_add_stub_section): Set stub_added.
389 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
390 ppc64_elf_size_stubs call and test for stubs.
391 * scripttempl/elf.sc (GOT): Define and use.
393 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
395 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
396 Allow second call from ldemul_finish.
398 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
400 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
401 (OTHER_SECTIONS): Include .stack.
402 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
404 2003-07-02 Jakub Jelinek <jakub@redhat.com>
406 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
408 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
409 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
412 2003-06-28 Alan Modra <amodra@bigpond.net.au>
414 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
415 Replace PTR with void *. Formatting.
416 * ldcref.c: Likewise.
417 * ldctor.c: Likewise.
418 * ldctor.h: Likewise.
419 * ldemul.h: Likewise.
422 * ldfile.c: Likewise.
423 * ldfile.h: Likewise.
424 * ldlang.c: Likewise.
425 * ldlang.h: Likewise.
428 * ldmain.c: Likewise.
429 * ldmain.h: Likewise.
430 * ldmisc.c: Likewise.
431 * ldmisc.h: Likewise.
433 * ldwrite.c: Likewise.
434 * ldwrite.h: Likewise.
435 * lexsup.c: Likewise.
438 * pe-dll.c: Likewise.
439 * pe-dll.h: Likewise.
440 * deffilep.y: Likewise.
441 * deffile.h: Likewise. Don't include ansidecl.h.
442 * emulparams/elf32mcore.sh: Remove unnecessary cast.
443 * emultempl/m68kcoff.em: Likewise.
444 * emultempl/m68kelf.em: Likewise.
445 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
446 * sysdep.h: Don't include ansidecl.h.
447 * Makefile.am: Run "make dep-am".
448 * Makefile.in: Regenerate.
450 2003-06-27 Nick Clifton <nickc@redhat.com>
452 * deffilep.y (def_file_add_directive): Cope with NUL seperated
453 directives. Fix reporting of unparseable directives.
454 (def_error): Check for a NULL def_filename.
456 2003-06-27 Alan Modra <amodra@bigpond.net.au>
458 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
459 and casts. Replace PTR with void *. Formatting.
460 * emultempl/alphaelf.em: Likewise.
461 * emultempl/armcoff.em: Likewise.
462 * emultempl/armelf.em: Likewise.
463 * emultempl/armelf_oabi.em: Likewise.
464 * emultempl/beos.em: Likewise.
465 * emultempl/elf32.em: Likewise.
466 * emultempl/generic.em: Likewise.
467 * emultempl/gld960.em: Likewise.
468 * emultempl/gld960c.em: Likewise.
469 * emultempl/hppaelf.em: Likewise.
470 * emultempl/linux.em: Likewise.
471 * emultempl/lnk960.em: Likewise.
472 * emultempl/m68hc1xelf.em: Likewise.
473 * emultempl/m68kcoff.em: Likewise.
474 * emultempl/m68kelf.em: Likewise.
475 * emultempl/mipsecoff.em: Likewise.
476 * emultempl/mipself.em: Likewise.
477 * emultempl/mmix-elfnmmo.em: Likewise.
478 * emultempl/mmixelf.em: Likewise.
479 * emultempl/mmo.em: Likewise.
480 * emultempl/needrelax.em: Likewise.
481 * emultempl/netbsd.em: Likewise.
482 * emultempl/pe.em: Likewise.
483 * emultempl/sh64elf.em: Likewise.
484 * emultempl/sunos.em: Likewise.
485 * emultempl/ticoff.em: Likewise.
486 * emultempl/vanilla.em: Likewise.
487 * emultempl/xtensaelf.em: Likewise.
488 * Makefile.am: Correct dependencies.
489 * Makefile.in: Regenerate.
491 2003-06-25 Alan Modra <amodra@bigpond.net.au>
493 * ld.texinfo: Correct spelling of "relocatable".
494 * ldctor.c: Likewise.
496 * ldfile.c: Likewise.
497 * ldint.texinfo: Likewise.
498 * ldlang.c: Likewise.
499 * ldmain.c: Likewise.
500 * ldwrite.c: Likewise.
501 * lexsup.c: Likewise.
502 * emultempl/aix.em: Likewise.
503 * emultempl/alphaelf.em: Likewise.
504 * emultempl/armcoff.em: Likewise.
505 * emultempl/armelf_oabi.em: Likewise.
506 * emultempl/beos.em: Likewise.
507 * emultempl/elf32.em: Likewise.
508 * emultempl/generic.em: Likewise.
509 * emultempl/gld960.em: Likewise.
510 * emultempl/gld960c.em: Likewise.
511 * emultempl/hppaelf.em: Likewise.
512 * emultempl/linux.em: Likewise.
513 * emultempl/lnk960.em: Likewise.
514 * emultempl/m68hc1xelf.em: Likewise.
515 * emultempl/m68kcoff.em: Likewise.
516 * emultempl/m68kelf.em: Likewise.
517 * emultempl/mipsecoff.em: Likewise.
518 * emultempl/mipself.em: Likewise.
519 * emultempl/mmix-elfnmmo.em: Likewise.
520 * emultempl/mmo.em: Likewise.
521 * emultempl/needrelax.em: Likewise.
522 * emultempl/pe.em: Likewise.
523 * emultempl/ppc64elf.em: Likewise.
524 * emultempl/sh64elf.em: Likewise.
525 * emultempl/sunos.em: Likewise.
526 * emultempl/ticoff.em: Likewise.
527 * emultempl/xtensaelf.em: Likewise.
529 2003-06-24 Alan Modra <amodra@bigpond.net.au>
531 * emultempl/ppc32elf.em: Convert to C90.
533 2003-06-20 Alan Modra <amodra@bigpond.net.au>
535 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
536 unnecessary prototypes and casts.
538 2003-06-19 Alan Modra <amodra@bigpond.net.au>
540 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
541 statistics from ppc64_elf_build_stubs.
543 2003-06-19 Alan Modra <amodra@bigpond.net.au>
545 * emultempl/ppc64elf.em (build_section_lists): Check return status
546 from ppc64_elf_next_input_section.
548 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
550 * ldlang.c (section_already_linked): Put back assignment of
553 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
555 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
558 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
560 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
561 if not produced by gcc.
563 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
565 * configure.tgt: Add specific case for cris-*-linux-gnu*
566 with crislinux emulation only.
568 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
570 * configure.tgt: Add i386-netbsd-gnu target.
572 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
574 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
575 to $targ_extra_libpath.
577 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
579 * po/Make-in (DESTDIR): New.
580 (install-data-yes): Support $(DESTDIR).
581 (uninstall): Likewise.
583 2003-06-10 Doug Evans <dje@sebabeach.org>
585 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
586 * Makefile.in: Regenerate.
588 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
590 * configure.tgt (h8300*): Add h8300sxn emulations.
591 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
592 (eh8300sxn.c, eh8300sxnelf.c): New rules.
593 * Makefile.in: Regenerate.
594 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
595 * scripttempl/h8300sxn.sc: New file.
597 2003-06-10 Alan Modra <amodra@bigpond.net.au>
599 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
600 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
602 2003-06-08 Alan Modra <amodra@bigpond.net.au>
604 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
605 (build_toc_list): New function.
606 (gld${EMULATION_NAME}_finish): Call build_toc_list and
607 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
608 (OPTION_STUBSYMS): Define.
609 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
610 (PARSE_AND_LIST_OPTIONS): Document.
611 (PARSE_AND_LIST_ARGS_CASES): Handle.
613 2003-06-05 Roland McGrath <roland@redhat.com>
615 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
616 extra \t in -z noexecstack line.
618 2003-05-23 Jakub Jelinek <jakub@redhat.com>
620 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
621 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
622 -z execstack and -z noexecstack.
623 (gld${EMULATION_NAME}_list_options): Likewise.
624 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
626 2003-06-03 Michael Snyder <msnyder@redhat.com>
627 and Bernd Schmidt <bernds@redhat.com>
628 and Alexandre Oliva <aoliva@redhat.com>
630 * Makefile.am: Add new emulations for h8300sx.
631 * Makefile.in: Regenerate.
632 * configure.tgt: Add new emulations.
633 * emulparams/h8300sx.sh: New emulation.
634 * emulparams/h8300sxelf.sh: Ditto.
635 * scripttempl/h8300sx.sc: Ditto.
637 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
639 * ldmisc.c: Include "bfdlink.h".
640 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
641 and -LD_DEFINITION_IN_DISCARDED_SECTION.
643 * Makefile.am: Rebuild dependency.
644 * Makefile.in: Regenerated.
646 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
648 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
649 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
651 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
653 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
654 sorted alphabetically, instead of exported_symbols, which is
657 2003-05-30 Ulrich Drepper <drepper@redhat.com>
658 Jakub Jelinek <jakub@redhat.com>
660 * lexsup.c (OPTION_PIE): Define.
661 (ld_options): Add -pie and --pic-executable options.
662 (parse_args): Handle OPTION_PIE.
663 * ldmain.c (main): Initialize link_info.pie and
664 link_info.executable.
665 * genscripts.sh: Generate PIE scripts.
666 * ld.texinfo: Document -pie and --pic-executable options.
667 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
668 (gld${EMULATION_NAME}_place_orphan): Likewise.
669 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
670 * scripttempl/elf.sc: In PIE scripts set . the same way as in
672 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
673 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
674 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
675 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
676 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
677 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
678 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
679 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
680 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
681 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
682 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
684 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
686 * genscripts.sh: Create tmpdir/libpath.exp.
688 2003-05-30 Nick Clifton <nickc@redhat.com>
690 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
691 with a test for a NULL bfd_for_interworking.
693 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
695 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
696 correctly for more recent versions of NetBSD.
697 (alpha*-*-netbsd*): Remove.
698 (i[3-7]86-*-netbsd*): Remove.
700 2003-05-29 Nick Clifton <nickc@redhat.com>
702 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
704 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
706 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
707 trap on pointer crops.
709 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
711 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
712 as well as shle-...-netbsdelf.
714 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
716 * configure.host: Accept i[3-7]86 variants.
717 * configure.tgt: Likewise.
719 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
721 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
723 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
725 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
726 (earmelfb.c, earmelfb_linux.c): New rules.
727 * Makefile.in: Regenerated.
728 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
729 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
731 2003-05-09 Nick Clifton <nickc@redhat.com>
733 * ldlang.c (lang_size_sections_1): Default to generating a
734 fatal error message if a loadable section is not allocated
735 to a memory region when regions are defined.
737 2003-05-09 Alan Modra <amodra@bigpond.net.au>
739 * Makefile.am (em68hc11elf.c): Correct dependencies.
740 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
741 * Makefile.in: Regenerate.
742 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
743 bfd_elf_record_link_assignment name.
745 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
747 * ldmain.h (overflow_cutoff_limit): Declare.
748 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
749 (reloc_overflow): Limit error messages based on it.
750 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
753 2003-05-05 Alan Modra <amodra@bigpond.net.au>
755 * ldlex.l: Accept C style comments in version scripts.
757 2003-04-28 H.J. Lu <hjl@gnu.org>
759 * ldlang.c (lang_process): Add the relax finalize pass.
761 * ldmain.c (main): Initialize link_info.relax_finalizing to
764 2003-04-24 Roland McGrath <roland@redhat.com>
766 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
767 If a name string is unknown, give an error rather than crashing later.
769 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
771 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
772 eh8300hnelf.o, eh8300snelf.o and respective rules.
773 * Makefile.in: Regenerate.
774 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
775 * emulparams/h8300hn.sh: New
776 * emulparams/h8300sn.sh: New
777 * emulparams/h8300hnelf.sh: New
778 * emulparams/h8300snelf.sh: New
779 * scripttempl/h8300hn.sc: new
780 * scripttempl/h8300sn.sc: new
782 2003-04-23 H.J. Lu <hjl@gnu.org>
784 * ldmain.c (link_callbacks): Initialize error_handler.
786 * ldmisc.c (error_handler): New function.
788 * ldmisc.h (error_handler): New prototype.
790 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
792 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
793 * emulparams/m68hc11elfb.sh: Likewise.
794 * emulparams/m68hc12elf.sh: Likewise.
795 * emulparams/m68hc12elfb.sh: Likewise.
797 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
799 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
801 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
803 (LDEMUL_FINISH): Override to generate the trampolines after gc and
805 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
806 stub file for trampolines.
807 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
808 --no-trampoline and --bank-window to control the memory bank window.
810 2003-04-18 H.J. Lu <hjl@gnu.org>
812 * ldfile.c (ldfile_add_library_path): Remove the unused
815 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
817 * scripttempl/xstormy16.sc (__data, __rdata): New.
819 2003-04-16 Nick Clifton <nickc@redhat.com>
821 * scripttempl/xstormy16.sc: Add .jcr section mapping.
823 2003-04-15 H.J. Lu <hjl@gnu.org>
825 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
827 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
829 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
831 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
832 * ld.texinfo: Likewise.
834 2003-04-14 Alan Modra <amodra@bigpond.net.au>
836 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
837 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
838 other variants of crtbegin.o, crtend.o.
840 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
841 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
842 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
843 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
844 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
845 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
846 * scripttempl/mmo.sc (ctors, dtors): Likewise.
847 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
849 2003-04-09 Dmitry Diky <diwil@mail.ru>
851 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
852 sections to respect C++ constructor/destructor. Add ctors/dtors
853 start/stop definitions.
854 * scripttempl/elf32msp430_3.sc: Likewise.
856 2003-04-06 Nick Clifton <nickc@redhat.com>
858 * ld.texinfo (Options): Add a reminder of the target specific
859 nature to the description of the i386 PE specific options, for
860 readers who have not read all the way through the manual.
862 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
864 * configure.tgt: Fixed bug in list of targ_extra_emuls.
865 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
866 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
867 * emulparams/tic3xcoff_onchip.sh: Ditto
868 * emulparams/tic4xcoff.sh: Ditto
869 * scripttempl/tic4xcoff.sc: Ditto
871 2003-04-03 Nick Clifton <nickc@redhat.com>
873 * NEWS: Mention support for Xtensa architecture.
875 2003-04-02 Nick Clifton <nickc@redhat.com>
877 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
879 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
881 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
882 Don't call pe_dll_build_section() if link_info.relocateable.
883 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
884 if link_info.relocateable.
886 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
888 * pe-dll.c (process_def_file): Don't create an export
889 section if there are no exports and we're building an exe
890 (pe_dll_build_sections): Ditto
891 (pe_dll_fill_sections): Conditionalize setting
892 abfd->dll true on info->shared
893 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
894 If i386pe or armpe, call pe_dll_build_section()
895 for both exe's and dll's, not just dll's.
896 (gld_${EMULATION_NAME}_finish): For all targets except
897 shpe and mipspe, call pe_dll_fill_sections() for both
898 exe's and dll's, not just dll's.
900 2003-04-02 Bob Wilson <bob.wilson@acm.org>
902 * emulparams/xtensa-config.sh: Remove comment indicating that this is
905 2003-04-01 Bob Wilson <bob.wilson@acm.org>
907 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
908 (eelf32xtensa.c): New target.
909 * Makefile.in: Regenerate.
910 * configure.tgt: Handle xtensa-*-*.
911 * gen-doc.texi: Set XTENSA variable.
912 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
913 * emulparams/elf32xtensa.sh: New file.
914 * emulparams/xtensa-config.sh: Likewise.
915 * emultempl/xtensaelf.em: Likewise.
916 * scripttempl/elfxtensa.sc: Likewise.
918 2003-04-01 Jakub Jelinek <jakub@redhat.com>
920 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
921 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
922 if --enable-64-bit-bfd.
924 2003-04-01 Nick Clifton <nickc@redhat.com>
926 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
928 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
929 name of note section.
931 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
933 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
936 2003-03-31 David Heine <dlheine@suif.stanford.edu>
938 * ldfile.c (ldfile_add_library_path): Always allocate space for
940 * ldlang.c (lang_register_vers_node): Free the node if it cannot
942 * ldmain.c (set_scripts_dir): Always free the constructed
944 (add_keepsyms_file): Fix memory leak.
945 * ldmisc.c (vfinfo): Likewise.
946 * lexsup.c (parse_args): Likewise.
948 2003-03-25 Stan Cox <scox@redhat.com>
949 Nick Clifton <nickc@redhat.com>
951 Contribute support for Intel's iWMMXt chip - an ARM variant:
953 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
954 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
955 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
958 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
960 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
961 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
962 (main): Initialize them.
963 * ldfile.c: Include pathnames.h.
964 (is_sysrooted_pathname): New.
965 (ldfile_add_library_path): Use it.
966 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
967 search_dirs if given an absolute pathname.
968 (ldfile_open_file): Issue error message for sysrooted
970 * Makefile.am: Updated dependencies.
971 * Makefile.in: Rebuild.
973 2003-03-24 Daniel Néri <dne@mayonnaise.net>
975 * ld.texinfo: Rename all occurances of C54X to TIC54X.
977 2003-03-19 Andreas Schwab <schwab@suse.de>
979 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
982 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
984 * deffilep.y (opt_base): If no number given, set to default
987 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
989 * deffilep.y (def_import): Use default extension of "dll"
990 if no extension provided in parsed IMPORT definition.
992 * deffilep.y (def_lex): Revert 2003-03-12 change.
993 (dot_name): New id type and rule.
994 (expline): Use instead of ID.
995 (opt_equal_name): Likewise.
997 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
999 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
1001 2003-03-07 Christopher Faylor <cgf@redhat.com>
1003 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
1004 apparent accidental removal on 2003-01-06.
1006 2003-03-04 Dmitry Diky <diwil@mail.ru>
1008 * Makefile.am: Add new devices x1122 x1132 emulation
1009 * configure.tgt: Likewise.
1010 * Makefile.in: Regenerate.
1011 * emulparams/msp430x1122.sh: New file.
1012 * emulparams/msp430x1132.sh: New file.
1014 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
1016 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
1019 * ldfile.h (struct search_dirs): Added sysrooted field.
1020 * ldlang.h (struct lang_input_statement_struct): Likewise.
1021 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
1022 (ldfile_open_file_search): Look for sysrooted filename starting
1023 with / in ld_sysroot instead of in the current directory. Clear
1024 sysrooted flag if it's found in the current directory. Set it
1025 from the search directory's sysrooted flag where it is found
1027 * ldlang.c (ldlang_sysrooted_script): New static variable.
1028 (new_afile): Mark search_file_enums as sysrooted if
1029 ldlang_sysrooted_script.
1030 (load_symbols): Set ldlang_sysrooted_script according to the
1031 script's sysrooted field while processing it.
1032 * ld.texinfo: Document INPUT behavior in sysroot.
1034 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
1036 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
1038 2003-03-03 Alan Modra <amodra@bigpond.net.au>
1040 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
1041 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1042 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
1043 PARSE_AND_LIST_EPILOGUE): Don't define.
1044 * emultempl/alphaelf.em: New file.
1046 2003-03-01 Alan Modra <amodra@bigpond.net.au>
1048 * ldemul.c: Include getopt.h.
1049 * emultempl/elf32.em: Include getopt.h earlier.
1050 * emultempl/ticoff.em: Likewise.
1052 2003-02-28 Alan Modra <amodra@bigpond.net.au>
1054 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
1055 support when scripts read from files.
1057 2003-02-28 Alan Modra <amodra@bigpond.net.au>
1059 * ldemul.c (ldemul_parse_args): Return FALSE by default.
1060 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
1063 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
1064 (ldemul_parse_args): Return bfd_boolean. Formatting.
1065 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
1066 (ldemul_parse_args): Adjust.
1067 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
1068 Return bfd_boolean from parse_args.
1069 * lexsup.c (parse_args): Malloc shortopts, longopts and
1070 really_longopts. Call ldemul_add_options and ldemul_handle_option.
1071 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
1072 gld${EMULATION_NAME}_parse_args.
1073 (gld${EMULATION_NAME}_handle_option): Likewise.
1074 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
1075 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
1076 * emultempl/beos.em: Likewise.
1077 * emultempl/pe.em: Likewise.
1078 * emultempl/ticoff.em: Likewise.
1079 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
1080 (gld${EMULATION_NAME}_add_sysroot): Prototype.
1081 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
1083 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1084 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1085 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1086 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
1088 * emultempl/generic.em: Likewise.
1089 * emultempl/gld960.em: Likewise.
1090 * emultempl/gld960c.em: Likewise.
1091 * emultempl/linux.em: Likewise.
1092 * emultempl/lnk960.em: Likewise.
1093 * emultempl/m68kcoff.em: Likewise.
1094 * emultempl/mipsecoff.em: Likewise.
1095 * emultempl/sunos.em: Likewise.
1096 * emultempl/vanilla.em: Likewise.
1097 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
1099 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
1101 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
1102 memory allocation error.
1104 * Makefile.am (ldmain.o): Define TOOLBINDIR.
1105 * Makefile.in: Rebuilt.
1106 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
1108 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1110 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
1111 call os_region_check when it is set.
1112 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
1113 lang_size_sections_1.
1114 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
1115 only for the last call, not on every relaxation iteration.
1116 * ldlang.h (lang_size_sections): Update prototype.
1117 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
1118 to lang_size_sections.
1119 (pe_exe_fill_sections): Likewise.
1120 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
1121 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1122 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
1123 (ppc_layout_sections_again): Likewise.
1125 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1127 * gen-doc.texi: Set ARM and HPPA variables.
1128 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
1129 title capitalization more consistent. Add missing menu entries for
1130 machine-specific sections and conditionalize them consistently.
1131 Conditionalize text that is irrelevant when SingleFormat is set.
1132 Add @group divisions to improve page breaks in long examples.
1133 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
1134 is correct. Remove "FIXME" comment about not using
1135 @raisesections/@lowersections. Use @raisesections/@lowersections
1136 consistently for machine-specific sections. Change to be more polite
1137 about poor bug reports. Replace FDL appendix with include of fdl.texi.
1138 Move WIN32 node to match its order in the menus.
1139 * fdl.texi: New file.
1141 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1143 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1144 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1145 '${exec_prefix}' (in addition to the expansion thereof) as
1147 * configure: Rebuilt.
1149 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
1151 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
1153 2003-02-20 Harri Porten <porten@kde.org>
1155 * ldgram.y (vers_defns): Allow optional trailing semicolon in
1158 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1160 * emultempl/ppc32elf.em: New file.
1161 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1162 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1163 (eelf32lppcnto.c): Likewise.
1164 (eelf32lppcsim.c): Likewise.
1165 (eelf32ppcnto.c): Likewise.
1166 (eelf32ppc.c): Likewise.
1167 (eelf32ppc_fbsd.c): Likewise.
1168 (eelf32ppcsim.c): Likewise.
1169 (eelf32ppclinux.c): Likewise.
1170 * Makefile.in: Regenerate.
1172 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1174 * ld.texinfo: Remove spaces between @samp and opening brace.
1176 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1178 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1180 (ppc_before_allocation): Don't do optimizations if wrong hash table.
1181 (gld${EMULATION_NAME}_finish): Ditto.
1183 2003-02-17 Nick Clifton <nickc@redhat.com>
1185 * ldmain.c (main) Default allow_shlib_undefined to true.
1186 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1187 (parse_args): Parse the new switch.
1188 * ld.texinfo: Document new switch and default behaviour of
1189 allowing undefined symbols in shared libraries.
1191 2003-02-11 Dmitry Diky <diwil@mail.ru>
1193 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1194 * scripttempl/elf32msp430_3.sc: Likewise.
1196 2003-02-11 Uwe Stieber <uwe@wwws.de>
1198 * configure.tgt: Add support for kaOS as cross build target
1201 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1203 * hppaelf.em (group_size): Change default back to 1.
1205 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1207 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1209 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1211 * hppaelf.em (group_size): Change default to -1.
1213 2003-02-07 Nick Clifton <nickc@redhat.com>
1215 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1217 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1218 no-pipeline-knowledge. This will prevent the getopt package from
1219 thinking that there are any shorter abbreviations for
1220 --no-pipeline-knowledge.
1222 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1224 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1225 which already have it. Avoid duplicates.
1227 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1229 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1230 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1231 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1233 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1235 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1236 call ppc64_elf_tls_optimize.
1238 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1240 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1241 outside of GNU/Linux conditional.
1243 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1245 * deffilep.y (def_get_module): New function: locate an already
1247 * deffile.h (def_get_module): New prototype.
1248 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1249 a dll multiple times.
1251 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1253 * emultempl/sh64elf.em: Include elf32-sh64.h.
1254 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1255 sh64_elf_section_data.
1256 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1258 2003-01-23 Wu Yongwei <adah@netstd.com>
1260 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1261 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1262 cross-80th-column-margin "an" to the next line.
1264 2003-01-21 Nick Clifton <nickc@redhat.com>
1266 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1267 * emulparams/tic3xcoff_onchip.sh: ...this.
1268 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1269 * Makefile.in: Regenerate.
1271 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1273 * configure.tgt: Handle i[3456]86-*-aros*
1275 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1277 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1278 * Makefile.in: Regenerate
1279 * configure.tgt: Added extra target emulations
1280 * emulparams/tic3xcoff.sh: Remove old settings
1281 * emulparams/tic4xcoff.sh: Ditto
1282 * emulparams/tic3xcoff-onchip.sh: Added new
1283 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1284 * scripttempl/tic3xcoff.sc: Remove
1286 2003-01-17 Andreas Jaeger <aj@suse.de>
1288 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1291 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1293 * Makefile.in: Regenerate.
1295 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1297 * ld.texinfo (node WIN32): Some clarifications
1298 and formatting fixups.
1300 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1302 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1303 order, and handle (ignore) -mips32r2.
1305 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1307 * ldmain.c (main): Make sure ld_sysroot is initialized.
1309 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1311 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1313 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1314 (GENSCRIPTS): Add @use_sysroot@.
1315 * Makefile.in: Regenerated.
1316 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1317 * configure.tgt: ... here. Use ${target} instead of ${host}
1318 for NATIVE_LIB_DIRS.
1319 * configure.in: Add --with-sysroot.
1320 * configure: Regenerated.
1321 * genscripts.sh: Accept use_sysroot option. Set new variables
1322 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1323 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1324 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1325 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1326 (ld_sysroot): New variable.
1327 (main): Initialize ld_sysroot.
1328 * ldmain.h (ld_sysroot): New extern.
1329 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1330 searching $EMULATION_LIBPATH.
1331 (gld${EMULATION_NAME}_add_sysroot): New function.
1332 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1333 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1334 environment variables if $NATIVE.
1335 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1336 * NEWS: Mention --with-sysroot.
1338 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1339 instead of setting LIB_PATH.
1340 * emulparams/elf32ppc.sh: Likewise.
1341 * emulparams/elf64_s390.sh: Likewise.
1342 * emulparams/elf64_sparc.sh: Likewise.
1343 * emulparams/elf64ppc.sh: Likewise.
1344 * emulparams/elf_x86_64.sh: Likewise.
1346 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1347 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1349 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1351 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1353 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1355 * Makefile.am (ldmain.o): Pass BINDIR.
1356 * Makefile.in: Regenerated.
1357 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1360 2003-01-02 Ben Elliston <bje@redhat.com>
1362 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1363 (eelf32iq2000.c): New target.
1364 * Makefile.in: Regenerate.
1365 * configure.tgt: Handle iq2000-*-elf.
1366 * emulparams/elf32iq10.sh: New file.
1367 * emulparams/elf32iq2000.sh: New file.
1368 * scripttempl/iq2000.sc: New file.
1370 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1372 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1373 and _pei386_runtime_relocator to the exclude list.
1375 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1377 * ldfile.c: Fix comment typos.
1378 * ldlang.c: Likewise.
1380 * pe-dll.c: Likewise.
1382 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1384 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1385 * Makefile.am (ld.1): Depend on configdoc.texi
1387 * Makefile.in: Regenerated.
1389 2002-12-24 Dmitry Diky <diwil@mail.ru>
1391 * Makefile.am: Add msp430 target.
1392 * configure.tgt: Likewise.
1393 * Makefile.in: Regenerate.
1394 * emulparams/msp430x???.sh: New files. Linker script parameters
1395 for various msp430 configurations.
1396 * gen-doc.texi: Enable msp430 documenation.
1397 * ld.texinfo: Document msp430 sections.
1398 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1399 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1401 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1402 Charles Wilson <cwilson@ece.gatech.edu>
1404 * config.in (HAVE_REALPATH): New entry.
1405 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1407 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1409 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1412 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1414 * ldmain.c (main): Init "strip_discarded".
1415 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1416 (OPTION_NO_STRIP_DISCARDED): Define.
1417 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1418 (parse_args): Handle them.
1420 2002-12-23 Nick Clifton <nickc@redhat.com>
1422 * ld.h (struct args_type): Add new field
1423 'accept_unknown_input_architecture'.
1424 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1426 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1427 bfd_arch_get_compatible.
1428 * ldfile.c (ldfile_try_open_bfd): Likewise.
1429 * lexsup.c (ld_options): Add new command line switch
1430 --accept-unknown-input-architecture and its inverse.
1431 (parse_args): Handle --accept-unknown-input-architecture.
1432 * ld.texinfo: Document new linker option.
1433 * NEWS: Mention new linker option.
1435 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1437 * ldmain.c (main): Re-order link_info initialization. Init all
1440 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1442 * ld.texinfo: Clarify and extend the documentation
1443 in the Machine Dependent, WIN32 section.
1445 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1447 * ld.texinfo: Add win32 machine depending section.
1448 * gen-doc.texi: Enable win32 machine depending section.
1450 * configure.host: Add win32 library search path.
1452 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1454 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1455 import when auto-import is disabled.
1457 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1459 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1460 account for trailing '\0'.
1462 2002-12-17 Nick Clifton <nickc@redhat.com>
1464 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1465 so that it is not confused with -c.
1467 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1468 Charles Wilson <cwilson@ece.gatech.edu>
1470 * configure.in: Add check for realpath function.
1471 * configure: Regenerate.
1472 * config.in: Regenerate.
1473 * aclocal.m4: Regenerate.
1474 * deffile.h: Add .data field to def_file_import
1476 * pe-dll.c (pe_proces_import_defs): Use .data field of
1477 def_file_import structure to initialize flag_data field of
1478 def_file_export structure.
1479 (pe_implied_import_dll): New variables exp_funcbase and
1480 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1481 not filename (which may be a symlink). Scan the sections and
1482 initialize [data|bss]_[start|end]. When scanning the export
1483 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1484 that it is in the .bss or .data sections as data.
1485 * sysdep.h: Include limits.h and sys/param.h, and define
1486 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1487 exists, NULL otherwise.
1488 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1489 pe_process_import_defs before pe_find_data_imports, so that
1490 auto-import will check the virtual implib as well as "real"
1492 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1493 symlinks to their target; check that the target's extension is
1494 .dll before calling pe_implied_import_dll(), not the filename
1495 itself (which may be a symlink).
1497 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1499 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1500 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1503 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1505 * ldlang.h: Formatting.
1507 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1509 * ldlang.c (init_os): Ensure sections mentioned in load_base
1512 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1514 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1515 load_base for orphans that follow a section with load_base set.
1517 2002-12-01 H.J. Lu <hjl@gnu.org>
1519 * ld.texinfo: Remove the extra `;' in sample version script.
1521 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1523 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1525 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1526 * Makefile.in: Regenerate.
1528 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1529 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1530 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1531 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1532 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1533 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1534 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1535 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1536 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1537 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1538 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1539 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1540 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1542 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1544 * configure.host: Fix generic FreeBSD configuration entry.
1546 2002-11-27 H.J. Lu <hjl@gnu.org>
1548 * ld.texinfo: Add the missing `;' to sample version scripts.
1550 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1552 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1554 2002-11-14 Egor Duda <deo@logos-m.ru>
1556 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1557 assignment which has no effect.
1558 * pe-dll.h (pe_create_import_fixup): Change prototype.
1559 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1560 (pe_create_runtime_relocator_reference): Ditto.
1561 (pe_create_import_fixup): Handle relocations with non-zero addends.
1562 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1563 --disable-runtime-pseudo-reloc.
1564 (make_import_fixup): Handle relocations with non-zero addends. Create
1565 an external reference to _pei386_runtime_relocator symbol if at least
1566 one pseudo reloc was created.
1567 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1568 --disable-runtime-pseudo-reloc options.
1570 2002-11-12 Earl Chew <earl_chew@agilent.com>
1572 * ldlang.c (lang_add_section): Discard debugging sections that have
1573 been marked SEC_EXCLUDE.
1575 2002-11-12 Nick Clifton <nickc@redhat.com>
1577 * configure.in (ALL_LINGUAS): Add da.
1578 * configure: Regenerate.
1579 * po/da.po: New Danish translation.
1581 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1583 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1584 (LDEMUL_BEFORE_ALLOCATION): Define.
1585 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1587 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1589 2002-11-11 Christopher Faylor <cgf@redhat.com>
1591 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1594 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1596 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1597 of restricted auto-export libs.
1599 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1601 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1602 creative library naming instances like, e.g., libstdc++-2.a.
1604 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1606 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1607 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1609 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1611 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1612 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1613 (make_one): Don't prefix decorated fastcall symbols with '_'.
1614 (pe_process_import_defs): Likewise.
1615 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1616 symbols to cdecl names or vise-versa.
1618 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1620 * pe-dll.c (process_def_file): Handle fastcall symbols when
1621 generating undecorated aliases. Don't prefix decorated fastcall
1623 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1626 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1628 * emultempl/aix.em: Use include <> for generated headers.
1629 * emultempl/beos.em: Likewise.
1630 * emultempl/elf32.em: Likewise.
1631 * emultempl/pe.em: Likewise.
1632 * ldctor.c: Likewise.
1633 * ldexp.c: Likewise.
1634 * ldfile.c: Likewise.
1635 * ldlang.c: Likewise.
1636 * ldlex.c: Likewise.
1637 * ldlex.l: Likewise.
1638 * ldmain.c: Likewise.
1639 * ldmisc.c: Likewise.
1640 * ldwrite.c: Likewise.
1641 * lexsup.c: Likewise.
1643 * pe-dll.c: Likewise.
1645 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1647 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1648 sections into .rel{,a}.dyn.
1650 2002-10-23 Nick Clifton <nickc@redhat.com>
1652 * lexsup.c (OPTION_NO_OMAGIC): Define.
1653 (ld_options): Add "no-omagic" option.
1654 (parse_args): Parse --no-omagic.
1655 * ld.texinfo: Document --no-omagic.
1656 * NEWS: Mention new option.
1658 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1660 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1661 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1663 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1665 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1666 emulation name. Set LIB_PATH only for native tools, and
1667 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1668 .../lib variants, not instead of them. Mostly copied from...
1669 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1670 * emulparams/elf64bmip-defs.sh: Backed out.
1671 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1672 * emulparams/elf64btsmip.sh: Likewise.
1673 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1674 TEXT_DYNAMIC): Removed.
1676 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1678 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1679 (GENERATE_SHLIB_SCRIPT): Set to yes.
1680 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1681 * emulparams/elf32bmipn32.sh: here.
1682 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1683 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1684 * emulparams/elf64bmip-defs.sh: New file. Extend
1685 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1686 * emulparams/elf64bmip.sh: Bring in definitions from
1688 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1690 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1691 * emulparams/elf64btsmip.sh: Bring in definitions from
1693 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1694 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1696 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1698 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1699 (s390-*-linux*): Add elf64_s390 emulation if want64.
1700 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1701 genscript.sh changes.
1702 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1703 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1705 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1707 * ldlang.c (load_symbols): Revert last change.
1709 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1711 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1713 (lang_reasonable_defaults): Don't compare against false.
1714 (size_input_section): Likewise.
1715 (lang_size_sections_1): Likewise.
1716 (lang_do_assignments): Likewise.
1717 (lang_add_output): Likewise.
1719 * Makefile.am: Run "make dep-am".
1720 * Makefile.in: Regenerate.
1721 * ldver.c: #include "bfdver.h".
1723 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1725 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1727 * scripttempl/elfm68hc12.sc: Likewise.
1729 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1731 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1733 * ldgram.y (memory_spec): Provide empty action.
1734 (section <NAME>): Likewise.
1736 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1738 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1739 they have OUTPUT_FORMAT not matching actual output format.
1740 * ldlang.c (lang_get_output_target): New function.
1741 (open_output): Use it.
1742 * ldlang.h (lang_get_output_target): New prototype.
1744 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1746 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1747 when orphan is .rel, .rela when orphan is .rela.
1748 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1749 first. Remove outsecname var.
1751 2002-10-09 Richard Shann <richard.shann@superh.com>
1752 Stephen Clarke <stephen.clarke@superh.com>
1754 * Makefile.am: Add eshelf32_linux.o and
1755 eshlelf32_linux.o, new emulations for sh64 Linux.
1756 * Makefile.in: Regenerate.
1757 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1758 * emulparams/shelf32_linux.sh: New file.
1759 * emulparams/shlelf32_linux.sh: New file.
1761 2002-10-08 H.J. Lu <hjl@gnu.org>
1763 * ldlang.c (lang_file_exist): Removed.
1764 (new_afile): Revert the last change.
1765 * ldlang.h (lang_file_exist): Removed.
1766 * lexsup.c (parse_args): Revert the last change.
1768 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1770 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1771 auto-import symbols.
1772 (make_one): Create _nm_<symbol> for data only.
1774 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1776 * ldlang.c (lang_file_exist): New function.
1777 (new_afile): Abort if the filename to be added matches the linker
1779 * ldlang.h: Add prototype for lang_file_exist.
1780 * lexsup.c (parse_args): Abort if the output filename matches
1781 one of the input filenames.
1783 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1785 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1787 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1789 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1790 * scripttempl/elfm68hc11.sc: Likewise.
1791 * scripttempl/elfm68hc12.sc: Likewise.
1793 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1794 reloc sections just before .rel.plt/.rela.plt.
1795 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1796 Only put loadable reloc sections in hold_rel.
1798 2002-09-29 H.J. Lu <hjl@gnu.org>
1800 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1802 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1804 From "Anita Kulkarni" <AnitaK@kpit.com>
1805 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1808 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1810 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1812 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1813 SEGMENT_SIZE alignment.
1814 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1815 (SEGMENT_SIZE): Define.
1817 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1818 (fold_binary): Correct abs - non-abs case.
1819 (fold_trinary): New. Split out from exp_fold_tree.
1821 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1823 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1824 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1825 for start of .data, instead align up to 256M boundary.
1826 * scripttempl/aix.sc: Likewise.
1828 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1830 * scripttempl/i386go32.sc: Handle bss unique sections.
1832 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1834 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1836 2002-09-17 Stan Cox <scox@redhat.com>
1838 * emulparams/elf32bmipn32-defs.sh: New file.
1839 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1840 * emulparams/elf32btsmipn32.sh: Likewise.
1841 * emulparams/elf64bmip.sh: Likewise.
1842 * emulparams/elf64btsmip.sh: Likewise.
1844 2002-09-16 Bruno Haible <bruno@clisp.org>
1846 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1848 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1849 elf64-alpha-freebsd.
1851 2002-09-11 Nick Clifton <nickc@redhat.com>
1853 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1855 * po/tr.po: Updated Turkish translation.
1857 2002-09-06 Jeffrey A Law (law@redhat.com)
1859 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1861 2002-09-02 Nick Clifton <nickc@redhat.com>
1863 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1865 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1867 2002-08-30 Nick Clifton <nickc@redhat.com>
1869 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1870 used. Change INSN to start at 0x01000000 and extend for
1871 256K (ignoring holes). Start the STACK on a word aligned
1873 (.rodata): Start it at the READONLY_START_ADDR.
1875 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1877 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1879 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1881 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1882 added makefile targets for this file.
1883 * Makefile.in: Regenerate.
1884 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1885 * NEWS: Mention new port.
1887 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1889 * emulparams/tic3xcoff.sh: New file.
1890 * emulparams/tic4xcoff.sh: New file.
1891 * scripttempl/tic3xcoff.sc: New file.
1892 * scripttempl/tic4xcoff.sc: New file.
1894 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1896 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1897 strtoul and strtoull with bfd_scan_vma.
1898 (gld${EMULATION_NAME}_read_file): Likewise.
1900 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1902 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1904 2002-08-27 Egor Duda <deo@logos-m.ru>
1906 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1907 Add symbols for application to access them.
1909 2002-08-27 Nick Clifton <nickc@redhat.com>
1911 * emultempl/armelf.em: Revert this patch, it is not needed.
1913 2002-08-22 Adam Nemet <anemet@lnxw.com>
1915 2002-08-20 Dan Kegel <dank@kegel.com>
1917 * configure.in: added --with-lib-path argument to ld's configure
1919 * NEWS: Document new switch.
1920 * README: Mention new switch.
1921 * configure: Regenerate.
1922 * Makefile.in: Regenerate.
1924 Based on this patch:
1925 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1927 * Makefile.in (LIB_PATH): Make configurable.
1928 (GENSCRIPTS): Set LIB_PATH in environment.
1929 * configure.in: Substitute LIB_PATH.
1931 2002-08-22 Adam Nemet <anemet@lnxw.com>
1933 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1934 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1935 depending on the type of the function.
1936 (arm_elf_convert_thumb_symbol_to_address): New function.
1938 2002-08-22 Graeme Peterson <gp@qnx.com>
1940 * Makefile.am: Add esh{l}elf_nto.o files.
1941 * Makefile.in: Regenerate.
1942 * configure.tgt: Add support for sh-**-nto* targets.
1943 * emulparams/shelf_nto.sh: New file.
1944 * emulparams/shlelf_nto.sh: New file.
1946 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1948 * ldlang.c (offsetof): Define if not defined.
1950 2002-08-14 H.J. Lu <hjl@gnu.org>
1952 * configure.tgt: Always enable 64bit emulations for 32bit
1955 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1957 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1958 (MAXPAGESIZE): Set to 1.
1960 * ld.h (ALIGN_N): Delete.
1961 * ldexp.h (align_n): Declare.
1962 * ldexp.c (align_n): New function.
1963 (fold_binary): Use align_n instead of ALIGN_N.
1964 (exp_fold_tree): Likewise.
1965 * ldlang.c (lang_size_sections_1): Likewise.
1966 (lang_one_common): Likewise.
1967 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1969 2002-07-31 Graeme Peterson <gp@qnx.com>
1971 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1972 * Makefile.am: Add eelf32{l}ppcnto.o files.
1973 * Makefile.in: Regenerate.
1974 * emulparams/elf32lppcnto.sh: New file.
1975 * emulparams/elf32ppcnto.sh: New file.
1977 2002-08-07 H.J. Lu <hjl@gnu.org>
1979 * ld.texinfo: Document --no-undefined-version.
1981 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1982 `script.' fields to 0.
1984 * ldmain.c (main): Initialize the allow_undefined_version to
1987 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1988 (ld_options): Add --no-undefined-version.
1989 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1991 2002-08-07 Nick Clifton <nickc@redhat.com>
1993 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1994 an interworking bfd if there are input bfds. (107501)
1996 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1998 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
2001 2002-08-01 Nick Clifton <nickc@redhat.com>
2003 * emulparams/armelf.sh: Revert previous delta.
2004 * scripttempl/elf.sc: Revert previous delta.
2006 2002-07-31 H.J. Lu <hjl@gnu.org>
2008 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
2009 --enable-64-bit-bfd.
2011 2002-07-31 H.J. Lu <hjl@gnu.org>
2013 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
2014 64bit BFD is selected.
2016 2002-07-31 H.J. Lu <hjl@gnu.org>
2018 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
2019 if 64bit BFD is selected.
2021 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2023 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
2024 link_info.common_skip_ar_aymbols.
2025 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
2027 * ldmain.c (main): Initialize new field
2028 link_info.common_skip_ar_aymbols.
2030 2002-07-31 Adam Nemet <anemet@lnxw.com>
2032 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
2034 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
2037 2002-07-31 Nick Clifton <nickc@redhat.com>
2039 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2040 of the PDP-11 and 2.11BSD a.out support.
2042 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2044 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
2045 for n32 ABI support.
2046 * Makefile.in: Regenerate.
2047 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
2048 n32 ABI emulations for these 64 bit targets.
2049 * emulparams/elf32bmipn32.sh: Expand comment.
2050 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
2052 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
2054 2002-07-30 Graeme Peterson <gp@qnx.com>
2056 * configure.tgt: Add support for arm-*-nto target.
2057 * Makefile.am: Add earmnto.o file.
2058 * Makefile.in: Regenerate.
2059 * NEWS: Mention port of ARM support to QNX.
2060 * emulparams/armnto.sh: New file.
2062 2002-07-30 Jakub Jelinek <jakub@redhat.com>
2064 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
2065 for relocatable link.
2066 (lang_size_sections_1): Don't make .tbss zero size for relocatable
2069 2002-07-26 Bernd Schmidt <bernds@redhat.com>
2071 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
2074 2002-07-25 Nick Clifton <nickc@redhat.com>
2076 * po/sv.po: Updated Swedish translation.
2077 * po/es.po: Updated Spanish translation.
2078 * po/fr.po: Updated French translation.
2080 2002-07-24 Nick Clifton <nickc@redhat.com>
2082 * po/sv.po: Updated Swedish translation.
2083 * po/es.po: Updated Spanish translation.
2085 2002-07-23 Nick Clifton <nickc@redhat.com>
2087 * po/fr.po: Updated French translation.
2089 2002-07-20 Alan Modra <amodra@bigpond.net.au>
2091 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2092 bomb on /DISCARD/ input section.
2093 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2094 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2096 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
2098 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
2101 2002-07-16 Denis Chertykov <denisc@overta.ru>
2102 Nick Clifton <nickc@redhat.com>
2103 Frank Ch. Eigler <fche@redhat.com>
2104 John Healy <jhealy@redhat.com>
2106 * configure.tgt: Add support for ip2k-elf.
2107 * Makefile.am: Add support for ip2k-elf.
2108 * Makefile.in: Regenerate.
2109 * emulparams/elf32ip2k.sh: New file.
2110 * scripttempl/ip2k.sc: New file
2111 * NEWS: Mention support for new port.
2113 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2115 * NEWS: Add 'Changes in 2.13'.
2117 2002-07-14 H.J. Lu <hjl@gnu.org>
2119 * ld.texinfo: Document a .symver takes precedence over a
2122 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2124 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
2125 (COMMONPAGESIZE): Define.
2127 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2129 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
2131 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2133 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
2134 powerpc-*-openbsd* and sparc64-*-openbsd*.
2135 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
2136 * Makefile.in: Regenerate.
2137 * emulparams/hppaobsd.sh: New file.
2139 2002-07-05 Alan Modra <amodra@bigpond.net.au>
2141 * ldlang.c (print_wild_statement): Fix output formatting.
2143 2002-07-04 Alan Modra <amodra@bigpond.net.au>
2145 * ldlang.c: (strip_excluded_output_sections): New function.
2146 (lang_process): Call it.
2147 (lang_size_sections_1): Revert 2002-06-10 change.
2149 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2151 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2153 * Makefile.in: Regenerate.
2155 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2157 * ldfile.c (ldfile_try_open_bfd): Formatting.
2159 * ldmisc.c (demangle): Move so that it doesn't intrude between
2160 vfinfo comment and body. Add comment.
2162 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2164 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2166 2002-07-01 Alan Modra <amodra@bigpond.net.au>
2168 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2169 * ldlang.c (entry_sym): Likewise.
2170 (ldlang_undef_chain_list_type): Likewise.
2171 (lang_finish): Adjust references to entry_symbol.
2172 (lang_add_entry): Likewise.
2173 (lang_gc_sections): Use link_info.gc_sym_list.
2174 (lang_process): Set link_info.gc_sym_list.
2175 * ldlex.l: Include bfdlink.h.
2176 * ldmain.c (main): Init link_info.gc_sym_list.
2177 * emultempl/aix.em: Adjust references to entry_symbol.
2178 * emultempl/armcoff.em: Likewise.
2179 * emultempl/armelf.em: Likewise.
2180 * emultempl/pe.em: Likewise.
2181 * emultempl/ppc64elf.em (ppc_after_open): New function.
2182 (LDEMUL_AFTER_OPEN): Define.
2183 * emulparams/elf64ppc.sh: KEEP .opd sections.
2185 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2187 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2188 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2189 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2190 (EEPROM_START_ADDR): Define.
2191 (EEPROM_MEMORY): Define.
2192 * emulparams/m68hc12elf.sh: Likewise.
2193 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2194 section to put soft registers in .page0.
2195 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2197 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2199 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2200 section. Add ${RELOCATING-0}.
2202 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2204 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2205 (OTHER_SECTIONS): Define.
2206 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2207 (OTHER_SECTIONS): Undef.
2209 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2211 * ldmisc.c (demangle): Restore dots stripped from sym name.
2213 2002-06-25 H.J. Lu <hjl@gnu.org>
2215 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2216 * Makefile.in: Regenerated.
2218 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2220 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2221 the size of attached object files, to allow make the object files
2222 available via FTP or HTTP and to mention that the mail will be
2223 sent to a mailing list.
2225 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2227 * configure.host (romp): Drop support.
2229 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2231 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2232 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2234 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2236 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2237 format specifier used to print BFD name.
2239 2002-06-18 Dave Brolley <brolley@redhat.com>
2241 From Catherine Moore, Michael Meissner, Jim Blandy:
2242 * emulparams/elf32frv.sh: New file.
2243 * configure.tgt: Support frv-*-*.
2244 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2245 (eelf32frv.c): New target.
2247 2002-06-17 Tom Rix <trix@redhat.com>
2249 * emultempl/elf32.em: gld*_get_script: Check for
2250 GENERATE_COMBRELOC_SCRIPT.
2251 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2252 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2254 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2256 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2258 2002-06-12 H.J. Lu <hjl@gnu.org>
2260 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2261 false if xvec doesn't match.
2263 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2265 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2267 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2269 * ldexp.c: Replace CONST with const.
2270 * ldfile.c: Likewise.
2271 * ldfile.h: Likewise.
2272 * ldlex.l: Likewise.
2274 * pe-dll.h: Likewise.
2276 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2278 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2280 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2282 * ldmain.c (main): initialize link_info.pei386_auto_import
2283 to -1 == implicit enable.
2284 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2285 initialize link_info.pei386_auto_import to -1 == implicit
2287 (gld_${EMULATION_NAME}_parse_args): When processing
2288 --enable-auto-import and --disable-auto-import options, use
2289 '1' and '0' instead of 'true' and 'false'.
2290 (pe_find_data_imports): Only issue message about auto-import
2291 when the feature is implicitly enabled. Downgrade message to
2292 informational instead of warning.
2294 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2296 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2298 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2300 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2301 HOSTING_CRT0 and HOSTING_LIBS.
2303 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2305 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2307 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2309 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2310 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2312 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2314 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2315 SEC_EXCLUDE sections when doing a relocatable link.
2317 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2319 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2320 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2321 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2322 (eshlelf64_nbsd.c): New rules.
2323 * Makefile.in: Regenerate.
2324 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2325 (sh64-*-netbsd*): New targets.
2326 * emulparams/shelf32_nbsd.sh: New file.
2327 * emulparams/shelf64_nbsd.sh: New file.
2328 * emulparams/shlelf32_nbsd.sh: New file.
2329 * emulparams/shlelf64_nbsd.sh: New file.
2331 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2333 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2335 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2337 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2338 C++ constructors/destructors, loosely based on the m68hc11 port.
2340 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2342 * Makefile.in: Regenerate.
2343 * aclocal.m4: Regenerate.
2344 * config.in: Regenerate.
2345 * configure: Regenerate.
2347 2002-05-31 Graeme Peterson <gp@qnx.com>
2349 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2350 (ei386nto.c): Add rule.
2351 * Makefile.in: Regenerate.
2352 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2353 * emulparams/i386nto.sh: New file.
2355 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2357 * NEWS: Add entry for VAX ELF support.
2359 2002-05-29 Matt Thomas <matt@3am-software.com>
2360 Jason Thorpe <thorpej@wasabisystems.com>
2362 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2364 (evaxnbsd.c): New rules.
2365 * Makefile.in: Regenerate.
2366 * configure.tgt (vax-*-netbsdelf*)
2368 (vax-*-netbsd*): New targets.
2369 * emulparams/elf32vax.sh: New file.
2370 * emulparams/vaxnbsd.sh: New file.
2372 2002-05-29 Adam Nemet <anemet@lnxw.com>
2374 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2375 bfd_for_interwork, instead add glue sections to each input bfd.
2376 (bfd_for_interwork): New global.
2377 (arm_elf_set_bfd_for_interworking): New function.
2378 (arm_elf_before_allocation): Use it.
2380 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2382 * Makefile.am: Add DLX make target.
2383 * configure.tgt: Add DLX configuration.
2384 * Makefile.in: Regenerate.
2385 * emulparams/elf32_dlx.sh: New file
2386 * scripttempl/dlx.sc: New file
2388 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2390 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2391 * Makefile.in: Regenerate.
2392 * emulparams/elf_chaos.sh: Use elf_chaos script.
2393 * scripttempl/elf_chaos.sc: New file.
2395 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2397 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2398 addresses and regions from here...
2399 (lang_get_regions): ...to this new function.
2400 (lang_leave_output_section_statement): Use lang_get_regions.
2401 (lang_leave_overlay): Likewise.
2402 * mri.c (mri_draw_tree): Pass null as last argument to
2403 lang_leave_output_section_statement.
2404 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2405 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2406 * emultempl/pe.em (gld*_place_orphan): Likewise.
2408 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2410 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2412 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2414 * ldemul.c: Fix formatting.
2415 * ldfile.c: Likewise.
2416 * pe-dll.c: Likewise.
2417 * pe-dll.h: Likewise.
2419 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2421 * ldlang.c (lang_process): Formatting, grammar.
2423 * ldlex.l: Use #include "" instead of <> for local header files.
2425 2002-05-24 TAMURA Kent <kent@netbsd.org>
2427 * configure.tgt: Add a target for i386-netbsdpe.
2429 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2431 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2432 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2433 output section if necessary. Handle .tbss.
2434 (lang_size_sections): Clear _raw_size for .tbss section
2435 (it allocates space in PT_TLS segment only).
2436 * ldwrite.c (build_link_order): Build link order for .tbss too.
2438 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2440 * configure.in: Correct spelling of AC_PREREQ.
2442 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2444 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2446 (autofilter_objlist): Add crtbegin.o, crtend.o.
2448 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2450 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2451 (longopts): Add new option --exclude-libs.
2452 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2453 (gld_${EMULATION_NAME}_parse_args): Use it.
2454 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2455 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2456 from whole archives.
2457 (pe_dll_add_excludes): Set excludes->type.
2458 (auto_export): Add new variable libname and set to archive basename if
2459 abfd. Use it when filtering default and user-specified libarary
2460 excludes. Let string "ALL" mean all libs when filtering user-specified
2462 * ld.texinfo: Document --exclude-libs.
2464 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2466 * ldemul.c (ldemul_new_vers_pattern): New function.
2467 * ldemul.h (ldemul_new_vers_pattern): Declare.
2468 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2469 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2470 * emultempl/ppc64elf.em (dotsyms): New static var.
2471 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2472 (LDEMUL_NEW_VERS_PATTERN): Define.
2473 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2474 (PARSE_AND_LIST_LONGOPTS): Likewise.
2475 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2476 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2478 * emultempl/armcoff.em: Likewise.
2479 * emultempl/armelf_oabi.em: Likewise.
2480 * emultempl/beos.em: Likewise.
2481 * emultempl/elf32.em: Likewise.
2482 * emultempl/generic.em: Likewise.
2483 * emultempl/gld960.em: Likewise.
2484 * emultempl/gld960c.em: Likewise.
2485 * emultempl/linux.em: Likewise.
2486 * emultempl/lnk960.em: Likewise.
2487 * emultempl/m68kcoff.em: Likewise.
2488 * emultempl/mipsecoff.em: Likewise.
2489 * emultempl/pe.em: Likewise.
2490 * emultempl/sunos.em: Likewise.
2491 * emultempl/ticoff.em: Likewise.
2492 * emultempl/vanilla.em: Likewise.
2494 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2496 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2497 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2498 (LIB_SEARCH_DIRS): No need to use "tr".
2499 (COMPILE_IN): Only set for native targets.
2500 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2501 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2502 * configure.tgt (powerpc*): Set tdir_*.
2503 (powerpcle*): Correct targ_extra_emuls.
2504 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2505 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2507 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2509 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2510 calling lang_add_entry.
2512 2002-05-21 H.J. Lu (hjl@gnu.org)
2514 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2516 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2518 * ld.texinfo: Updated for --allow-multiple-definition and
2521 * ldmain.c (main): Initialize the allow_multiple_definition
2524 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2525 (ld_options): Add --allow-multiple-definition.
2526 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2528 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2530 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2531 (earmelfb_nbsd.c): New rule.
2532 * Makefile.in: Regenerate.
2533 * configure.tgt (armeb-*-netbsdelf*): New target.
2534 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2535 (arm-*-netbsd*): Likewise.
2536 * emulparams/armelfb_nbsd.sh: New file.
2538 2002-05-18 Tom Rix <trix@redhat.com>
2540 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2543 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2545 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2546 * Makefile.in: Regenerate.
2547 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2549 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2551 * emulparams/avr1.sh: New file.
2552 * emulparams/avr2.sh: New file.
2553 * emulparams/avr3.sh: New file.
2554 * emulparams/avr4.sh: New file.
2555 * emulparams/avr5.sh: New file.
2556 * scripttempl/avr.sc: New file.
2558 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2560 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2561 (lang_place_orphans): Abort if just_syms_flag.
2563 2002-05-10 Tom Rix <trix@redhat.com>
2565 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2566 architecture and machine information in the output bfd.
2567 (gld*_before_parse): Remove old arch and machine code.
2568 (choose_target): Rename to gld*_choose_target.
2569 (rtld): Change type to int.
2570 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2571 objects in XCOFF archives.
2572 * ldfile.h: Update copyright date.
2574 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2576 * ldmain.c (main): Enable -z combreloc by default.
2578 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2580 * Makefile.am: Honour DESTDIR.
2581 * Makefile.in: Regenerate.
2583 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2585 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2586 (lang_enter_overlay): Remove the last two parameters.
2587 (lang_leave_overlay): Take them here instead.
2588 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2589 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2590 than lang_enter_overlay.
2591 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2592 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2593 (lang_size_sections_1): Evaluate it.
2594 (lang_leave_output_section_statement): Rework LMA lookup.
2595 (overlay_lma, overlay_nocrossrefs): Remove.
2596 (lang_enter_overlay): Remove LMA and crossref arguments.
2597 (lang_enter_overlay_section): Don't set the LMA here.
2598 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2599 assignment to the last section's update_dot_tree. Unconditionally
2600 use the load and run-time regions specified in the OVERLAY statement.
2601 Likewise the first section's LMA. Only set the other sections' LMAs
2602 when no load region is given.
2604 2002-05-06 Nick Clifton <nickc@redhat.com>
2606 * po/sv.po: New translation.
2608 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2610 * emultempl/hppaelf.em (build_section_lists): New function.
2611 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2612 and build_section_lists.
2614 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2616 * ld.h: Fix formatting.
2617 * ldexp.c: Likewise.
2618 * ldfile.c: Likewise.
2619 * ldlang.c: Likewise.
2620 * ldmain.c: Likewise.
2621 * lexsup.c: Likewise.
2622 * pe-dll.c: Likewise.
2624 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2626 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2627 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2628 (build_section_lists): Do output_section tests here.
2630 2002-04-30 Tom Rix <trix@redhat.com>
2632 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2634 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2636 Long branch stubs, multiple stub sections.
2637 * emultempl/ppc64elf.em: Include ldctor.h.
2638 (stub_file): New var.
2639 (group_size): New var.
2640 (ppc_create_output_section_statements): New function.
2641 (struct hook_stub_info): New.
2642 (hook_in_stub): New function.
2643 (ppc_add_stub_section): New function.
2644 (ppc_layout_sections_again): New function.
2645 (build_section_lists): New function.
2646 (gld${EMULATION_NAME}_finish): Rewrite.
2647 (real_func): New var.
2648 (ppc_for_each_input_file_wrapper): New function.
2649 (ppc_lang_for_each_input_file): New function.
2650 (lang_for_each_input_file): Define.
2651 (PARSE_AND_LIST_PROLOGUE): Define.
2652 (PARSE_AND_LIST_LONGOPTS): Define.
2653 (PARSE_AND_LIST_OPTIONS): Define.
2654 (PARSE_AND_LIST_ARGS_CASES): Define.
2655 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2657 2002-04-30 Tom Rix <trix@redhat.com>
2659 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2660 -blibpath, -bnolibpath support.
2662 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2664 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2665 (eelf32ppcwindiss.c): New target.
2666 * Makefile.in: Regenerated.
2667 * configure.tgt: Add support for powerpc-*-windiss.
2668 * emulparams/elf32ppcwindiss.sh: New file.
2670 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2672 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2673 * ldexp.c (exp_print_token): Add "infix_p" argument.
2674 (exp_print_tree): Update accordingly.
2676 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2678 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2679 * Makefile.in: Regenerate.
2680 * mpw-elfmips.c: Delete.
2681 * mpw-eppcmac.c: Delete.
2682 * mpw-esh.c: Delete.
2683 * mpw-idtmips.c: Delete.
2685 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2687 * emulparams/shelf32.sh (MACHINE): Now sh5.
2689 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2691 * ldgram.y: Fix syntax warning.
2693 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2695 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2696 to prevent "-n" from being taken as an abbreviation for
2697 "--no-pipeline-knowledge".
2699 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2701 * ldlang.c (lang_size_sections_1): Don't complain about
2702 SEC_NEVER_LOAD sections having no memory region specified.
2704 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2706 2002-04-07 matthew green <mrg@redhat.com>
2708 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2710 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2712 * dep-in.sed: Cope with absolute paths.
2713 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2715 * Makefile.in: Regenerate.
2717 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2719 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2721 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2723 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2724 is smaller than maximum, round dot up to common page boundary.
2726 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2728 * configure.host: Set up for generic hosts first, then tweak as
2729 necessary in more specific targets.
2730 (HOSTING_LIBS): Include libgcc_eh.a if found.
2732 2002-03-23 Andreas Jaeger <aj@suse.de>
2734 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2736 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2738 * Makefile.am: Run "make dep-am".
2739 * Makefile.in: Regenerate.
2741 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2743 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2745 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2747 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2748 add the symbol to the linker hash table immediately.
2749 (lang_place_undefineds): Split symbol creation out..
2750 (insert_undefined): ..to here.
2752 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2754 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2755 the contents of the buffer returned from basename function will are
2756 getting overwritten while still being used.
2758 2002-03-18 Jan Hubicka <jh@suse.cz>
2759 Andreas Jaeger <aj@suse.de>
2760 Andreas Schwab <schwab@suse.de>
2762 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2763 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2764 set libraries to default to lib64 paths.
2766 2002-03-18 Tom Rix <trix@redhat.com>
2768 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2769 * configure.tgt : Same.
2770 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2771 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2772 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2773 emulation parameters for better -b32, -b64 support.
2774 * emulparms/aixrs6.sh : Same.
2775 * emulparms/ppcmacos.sh : Same.
2776 * emultempl/aix.em (choose_target) : Use new emulation parameters
2777 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2778 * Makefile.in : Regenerate.
2780 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2782 * po/fr.po: Updated version.
2784 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2786 * ldmain.c (main): Move .text readonly flag fudges from here..
2787 * ldlang.c (lang_process): ..to here.
2789 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2791 * ldlang.c (lang_check): Remove the word size check added in last
2792 change. Treat emitrelocations case as for relocatable links.
2794 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2796 * po/fr.po: Updated version.
2798 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2800 * ldlang.c (lang_check): Do relocatable link checks first, so that
2801 warn_mismatch can't override. Check compatible and word size too.
2803 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2805 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2807 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2809 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2812 2002-03-04 H.J. Lu <hjl@gnu.org>
2814 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2815 .fini_array in the data segment.
2817 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2819 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2821 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2823 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2824 .init_array, and .fini_array.
2826 2002-02-20 Andreas Schwab <schwab@suse.de>
2828 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2829 .IA64_unwind* in a relocatable link.
2831 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2833 * NEWS: Mark 2.12 branch.
2835 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2837 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2838 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2840 2002-02-18 Tom Rix <trix@redhat.com>
2842 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2843 (gld*_before_allocation): Same.
2844 (gld*_create_output_section_statements): Generate
2845 __rtinit if run time linking. Add librtl.a to the link.
2846 (gld*_read_file): Clean.
2848 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2850 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2852 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2854 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2855 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2856 and eelf64alpha_fbsd.
2857 * Makefile.in: Regenerate.
2858 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2859 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2860 use a FreeBSD-specific emulation rather than the psABI one.
2861 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2862 for all FreeBSD ELF systems.
2863 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2865 * emulparams/elf32ppc_fbsd.sh: Likewise.
2866 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2867 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2868 * emulparams/elf64alpha_fbsd.sh: Likewise.
2869 * emulparams/elf_i386_fbsd.sh: Likewise.
2870 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2872 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2874 * po/tr.po: Updated version.
2876 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2878 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2881 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2883 * emultempl/mmo.em (mmo_after_open): Don't call
2884 _bfd_mmix_check_all_relocs when producing ELF output.
2886 2002-02-15 Richard Henderson <rth@redhat.com>
2888 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2889 definition. Emit a unop+nop pair.
2891 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2893 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2894 for presence of .MMIX.reg_contents.linker_allocated before early
2897 * NEWS: Mention support for MMIX.
2899 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2901 Support arbitrary length fill patterns.
2902 * ld.texinfo (Output Section Fill): Describe fill expressions.
2903 (FILL): Refer to the above.
2904 * ldexp.h (etree_value_type): Add "str" field.
2905 (union etree_union): Add "str" to "value" struct.
2906 (exp_bigintop): Declare.
2907 (exp_get_fill): Declare.
2908 * ldexp.c: Include "safe-ctype.h".
2909 (exp_intop): Set value.str to NULL.
2910 (exp_bigintop): New function.
2911 (new_rel): Pass in "str", and set new.str from it.
2912 (new_rel_from_section): Set new.str to NULL.
2913 (fold_name): Adjust calls to new_rel.
2914 (exp_fold_tree): Likewise.
2915 (exp_get_fill): New function.
2916 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2917 (INT): Returns a "bigint". Adjust all code handling INTs.
2918 (fill_opt): Returns a "fill".
2919 (fill_exp): Split out of fill_opt, use for FILL.
2920 * ldlang.h (struct _fill_type): New.
2921 (fill_type): Move typedef to ldexp.h.
2922 (lang_output_section_statement_type): "fill" is now a pointer.
2923 (lang_fill_statement_type): Likewise.
2924 (lang_padding_statement_type): Likewise.
2925 (lang_add_fill): Now takes a "fill_type *" param.
2926 (lang_leave_output_section_statement): Likewise.
2927 (lang_do_assignments): Likewise.
2928 (lang_size_sections): Likewise.
2929 (lang_leave_overlay_section): Likewise.
2930 (lang_leave_overlay): Likewise.
2931 * ldlang.c: Include ldgram.h after ldexp.h.
2932 (lang_output_section_statement_lookup): Adjust for fill_type change.
2933 (print_fill_statement): Likewise.
2934 (print_padding_statement): Likewise.
2935 (insert_pad): Now takes a "fill_type *" arg.
2936 (size_input_section): Likewise.
2937 (lang_size_sections_1): Likewise.
2938 (lang_size_sections): Likewise.
2939 (lang_do_assignments): Likewise.
2940 (lang_add_fill): Likewise.
2941 (lang_leave_output_section_statement): Likewise.
2942 (lang_leave_overlay_section): Likewise.
2943 (lang_leave_overlay): Likewise.
2944 Adjust all callers of the above function.
2945 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2946 starting with "0X" as well as "0x". Return bigint.str for hex
2947 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2948 Always use base 16 for numbers starting with "$".
2949 * ldmain.c: Include ldgram.h after ldexp.h.
2950 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2951 of bfd_fill_link_order.
2952 * pe-dll.c: Adjust lang_do_assignments calls.
2953 * emultempl/elf32.em: Likewise.
2954 * emultempl/hppaelf.em: Likewise.
2955 * emultempl/ppc64elf.em: Likewise.
2956 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2957 lang_add_assignment call.
2958 * emultempl/pe.em: Likewise.
2960 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2962 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2963 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2964 the pattern in question is not a regexp.
2965 * ldlang.c: Likewise.
2966 * ldlang.h: Likewise.
2967 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2969 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2971 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2972 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2973 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2974 * ldexp.c (exp_data_seg): New variable.
2975 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2976 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2977 (exp_fold_tree): Handle DATA_SEGMENT_END.
2978 Pass allocation_done when recursing instead of hardcoding
2979 lang_allocating_phase_enum.
2980 * ldexp.h (exp_data_seg): New.
2981 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2982 (lang_size_sections): New.
2983 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2984 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2985 if COMMONPAGESIZE is defined.
2986 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2987 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2988 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2989 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2990 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2993 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2995 * Makefile.in: Regenerate.
2997 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2999 * lexsup.c: Remove strtoul declaration.
3001 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3003 * ldmain.c: Add prototype for main ().
3004 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
3005 * emultempl/lnk960.em (lnk960_choose_target): Function should
3008 2002-02-10 Alan Modra <amodra@bigpond.net.au>
3010 * ldlang.c (entry_section): New initialised variable.
3011 (lang_finish): Use it.
3012 * ldlang.h (entry_section): Declare.
3013 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
3014 entry_section to ".opd".
3016 2002-02-09 Chris Demetriou <cgd@broadcom.com>
3018 * ld.texinfo (Options): Add back in -nostdlib documentation,
3019 which had been inadvertently removed.
3021 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
3023 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
3024 register section vma to a sane value after emitting error. Make
3025 fatal conditions cause program exit when emitting message.
3027 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
3029 * configure.tgt: Add or32-*-rtems target.
3031 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3033 Contribute sh64-elf.
3034 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3035 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
3036 in OTHER_RELOCATABLE_SECTIONS.
3037 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3038 * emulparams/shelf32.sh (STACK_ADDR): Define.
3039 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
3040 (OTHER_SECTIONS): this. Removed stack settings.
3041 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
3042 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
3043 2001-03-12 DJ Delorie <dj@redhat.com>
3044 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
3045 relaxing if any shmedia or mixed sections are found.
3046 2001-03-07 DJ Delorie <dj@redhat.com>
3047 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
3048 einfo. Gracefully decline to output to non-elf formats.
3049 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
3050 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
3051 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
3052 * emulparams/shelf32.sh: Ditto.
3053 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
3054 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
3056 2001-01-10 Ben Elliston <bje@redhat.com>
3057 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
3058 non-portable shell constructs. From Hans-Peter Nilsson.
3059 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
3060 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
3061 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
3062 dependencies to the shell script include chain.
3063 * Makefile.in: Regenerate.
3064 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3065 * emultempl/sh64elf.em: Update and tweak comments.
3066 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
3067 make a .cranges section SEC_IN_MEMORY.
3068 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3069 * emultempl/sh64elf.em
3070 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
3071 .cranges section found to be necessary; continue and set stored
3072 section contents flags for sections with non-mixed contents.
3073 Use a struct sh64_section_data container and sh64_elf_section_data
3074 to store contents-type flags.
3075 Remove unused update of "isec".
3076 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
3077 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
3078 access contents-type flags. Assert that the associated container
3079 is initialized. Use that container, not elf_gp_size, to hold size
3080 of linker-generated cranges contents.
3081 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3082 * emultempl/sh64elf.em
3083 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
3084 there's already a .cranges section. When section flag difference
3085 is found, don't NULL-check cranges a second time. Tweak comments.
3086 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
3087 merging, not max size, as size of ld-generated .cranges contents.
3088 Don't set ELF section flags in output section. When checking for
3089 needed .cranges descriptors, don't use a variable; compare
3090 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
3092 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3093 * emultempl/sh64elf.em: New file.
3094 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
3095 * Makefile.in: Regenerate.
3096 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
3097 (OTHER_RELOCATING_SECTIONS): Ditto.
3098 (EXTRA_EM_FILE): New, set to sh64elf if not set.
3099 * emulparams/shlelf32.sh: Stub out all settings except
3100 OUTPUT_FORMAT. Source shelf32.sh.
3101 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
3102 OTHER_RELOCATING_SECTIONS.
3103 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
3104 * emulparams/shlelf64.sh: Stub out all settings except
3105 OUTPUT_FORMAT. Source shelf64.sh.
3106 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3107 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
3109 (DATA_START_SYMBOLS): Define, provide ___data.
3110 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
3111 for consecutive .data section.
3112 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
3113 section after .data section.
3114 * emulparams/shlelf64.sh: Ditto.
3115 * emulparams/shelf32.sh: Ditto.
3116 (ALIGNMENT): Define to 8.
3117 * emulparams/shelf32.sh: Ditto.
3118 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3119 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
3120 built-in linker scripts.
3121 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3122 * emulparams/shlelf64.sh: New.
3123 * emulparams/shelf64.sh: New.
3124 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
3126 * Makefile.am: Add support for shlelf64 and shelf64.
3127 * Makefile.in: Regenerate.
3128 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3129 * configure.tgt (sh64-*-elf*): Add shelf as default.
3130 Add shlelf to targ_extra_emuls.
3131 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3132 * emulparams/shelf32.sh: New file.
3133 * emulparams/shlelf32.sh: New file.
3134 * Makefile.am: Add support for shlelf32 and shelf32.
3135 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
3136 * Makefile.in: Regenerate.
3138 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
3140 * ldlang.c (lang_reset_memory_regions): Rename from
3141 reset_memory_regions. Change all callers. Make public.
3142 * ldlang.h (lang_reset_memory_regions): Prototype.
3143 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
3144 lang_reset_memory_regions before lang_size_sections.
3145 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3146 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
3148 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3150 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
3151 arithmetic when checking for too many global registers.
3153 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3155 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3156 (ehppanbsd.c): New rule.
3157 * Makefile.in: Regenerate.
3158 * configure.tgt (hppa*-*-netbsd*): New target.
3159 * emulparams/hppalinux.sh: Add comment to check other files
3160 that source this file it is modified, and list which
3162 * emulparams/hppanbsd.sh: New file.
3164 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3166 * scripttempl/xstormy16.sc: Don't allocate extra space for the
3169 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3171 Support on-demand global register allocation from
3172 R_MMIX_BASE_PLUS_OFFSET relocs.
3173 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3174 mmix_set_reg_section_vma. Call
3175 _bfd_mmix_finalize_linker_allocated_gregs.
3176 (mmix_before_allocation): New function.
3177 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3178 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3179 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3180 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3181 before .MMIX.reg_contents.
3182 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3183 (mmo_after_open): New function.
3184 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3185 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
3186 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3188 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3190 * emulparams/or32.sh: New file.
3191 * emulparams/or32elf.sh: New file.
3192 * scripttempl/or32.sc: New file.
3193 * configure.tgt : Add support for or32.
3194 * configure: Regenerate
3195 * Makefile.am: Add support for or32.
3196 * Makefile.in: Regenerate.
3197 * NEWS: Mention support for or32.
3198 * po/ld.pot: Regenerate.
3200 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3201 Mitch Lichtenberg <mpl@broadcom.com>
3203 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3204 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3205 reloc creation (ld --embedded-relocs).
3207 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3209 * configure: Regenerated.
3211 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3213 * Makefile.am (install): Depend on install-info.
3214 * Makefile.in: Regenerate.
3216 2002-01-26 Christian Rose <menthos@menthos.com>
3218 * ldmain.c (main): Use full sentences to ease translation.
3220 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3222 * po/fr.po: Updated version.
3224 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3226 * po/es.po: Updated version.
3228 2002-01-25 Andreas Jaeger <aj@suse.de>
3230 * ldlex.l (yy_input): Correct error check.
3232 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3234 * ldmisc.c (demangle): Put back dots when string not demangled.
3236 2002-01-22 Richard Henderson <rth@redhat.com>
3238 * emulparams/elf64alpha.sh (NOP): Use unop.
3240 2002-01-21 Andreas Jaeger <aj@suse.de>
3242 * ldlex.l: Use fread instead of read.
3244 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3246 * configure.tgt (ia64-*-netbsd*): New target.
3248 2002-01-21 H.J. Lu <hjl@gnu.org>
3250 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3252 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3254 2002-01-18 Andreas Jaeger <aj@suse.de>
3256 * ldver.c (ldversion): Update year.
3258 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3260 * po/ld.pot: Regenerate.
3262 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3264 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3265 * Makefile.in: Regenerate.
3266 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3267 * emultempl/ppc64elf.em: New file.
3269 2002-01-15 DJ Delorie <dj@redhat.com>
3271 * scripttempl/pe.sc: Add support for constructor priorities.
3273 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3275 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3276 * emulparams/avr23xx.sh: Likewise.
3277 * emulparams/avr4433.sh: Likewise.
3278 * emulparams/avr44x4.sh: Likewise.
3279 * emulparams/avr85xx.sh: Likewise.
3280 * emulparams/avrmega103.sh: Likewise.
3281 * emulparams/avrmega161.sh: Likewise.
3282 * emulparams/avrmega603.sh: Likewise.
3283 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3285 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3287 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3288 archive is excluded.
3290 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3292 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3293 (eshelf_nbsd.c): New rule.
3294 (eshlelf_nbsd.c): New rule.
3295 * Makefile.in: Regenerate.
3296 * configure.tgt (sh*le-*-netbsdelf*): New target.
3297 (sh*-*-netbsdelf*): New target.
3298 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3299 * emulparams/shelf_nbsd.sh: New emulation.
3300 * emulparams/shlelf_nbsd.sh: New emulation.
3302 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3304 * po/es.po: New file: Spanish translation.
3305 * configure.in (ALL_LINGUAS): Add es.
3306 * configure: Regenerate.
3308 2002-01-06 John Marshall <jmarshall@acm.org>
3310 * ld.texinfo: Note that --emit-relocs is currently only
3311 implemented for ELF.
3313 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3315 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3316 of bfd_section_list_remove and bfd_section_list_insert macros.
3317 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3318 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3320 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3322 * configure.tgt (x86_64-*-netbsd*): New target.
3324 2001-12-21 Tom Rix <trix@redhat.com>
3326 (gld*_create_output_section_statements): New function.
3327 For -binitfini support.
3328 * emultempl/aix.em (gld*_before_parse): Fix comment.
3329 * emultempl/aix.em (gld*_parse_args): Fix comment.
3331 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3333 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3335 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3337 * configure.tgt (arm-*-netbsdelf*): Add target.
3338 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3339 * emulparams/armelf_nbsd.sh: Added.
3340 * Makefile.am: Add rules for earmelf_nbsd.
3341 * Makefile.in: Regenerate.
3343 2001-12-19 Andreas Jaeger <aj@suse.de>,
3344 Susanne Oberhauser <froh@suse.de>
3346 * configure.host: Add rules for x86_64-*linux-gnu. Change
3347 s390x-linux entry to use gcc to report configuration, replace gcc
3348 with $CC in s390-linux
3350 2001-12-19 Andreas Jaeger <aj@suse.de>
3352 * ld.texinfo (VERSION): Fix markup.
3354 2001-12-18 matthew green <mrg@eterna.com.au>
3356 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3357 (m68kelfnbsd.c): New rule.
3358 * Makefile.in: Regenerate.
3359 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3360 (m68*-*-netbsd*4k*): .. this.
3361 (m68*-*-netbsdelf*): New target.
3362 (m68*-*-netbsd*): Also include ELF support.
3363 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3364 * emulparams/m68kelfnbsd.sh: New emulation.
3366 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3368 * ldgram.y (vers_node): Support anonymous version tags.
3369 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3370 tag is not defined together with non-anonymous versions.
3371 * ld.texinfo: Document it.
3373 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3375 * po/tr.po: New file: Turkish translation.
3376 * configure.in (ALL_LINGUAS): Add tr.
3377 * configure: Regenerate.
3379 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3381 * Makefile.am: Add rules for eelf64alpha_nbsd.
3382 * Makefile.in: Regenerate.
3383 * configure.tgt (alpha*-*-netbsd*): Set
3384 targ_emul to elf64alpha_nbsd.
3385 * emulparams/elf64alpha_nbsd.sh: Added.
3387 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3389 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3390 section_tail when fiddling with section list.
3391 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3392 broken into separate strings to make translation easier.
3393 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3394 fiddling with section list.
3395 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3397 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3399 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3401 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3403 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3405 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3407 * emultempl/elf32.em (finish): Supply output_bfd
3408 to bfd_elf*_discard_info.
3409 (OPTION_EH_FRAME_HDR): Define.
3410 (longopts): Add --eh-frame-hdr.
3411 (parse_args): Handle it.
3412 (list_options): Add --eh-frame-hdr to help.
3413 * emultempl/hppaelf.em (finish): Supply output_bfd
3414 to bfd_elf*_discard_info.
3415 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3417 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3419 * lexsup.c (parse_args): Don't pass shortopts to second call to
3420 getopt functions. Restore optind rather than decrementing before
3421 second call. Remove errind as it now duplicates last_optind.
3423 2001-12-11 Christopher Faylor <cgf@redhat.com>
3425 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3427 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3428 Richard Henderson <rth@redhat.com>
3430 * Makefile.am: Add support for xstormy16.
3431 * configure.tgt: Add support for xstormy16.
3432 * Makefile.in: Regenerate.
3433 * emulparams/elf32xstormy16.sh: New file.
3434 * scripttempl/xstormy16.sc: New file.
3436 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3438 * Makefile.in (LIB_PATH): Make configurable.
3439 (GENSCRIPTS): Set LIB_PATH in environment.
3440 * configure.in: Substitute LIB_PATH.
3441 * configure: Regenerate.
3442 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3443 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3445 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3447 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3448 describing the -N option so that it is easier to translate into
3451 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3453 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3454 statements describing a single option with a single, newline
3455 escaped fprintf. This allows better translation into other
3458 * ldmain.c (add_archive_element): Combine multiple strings
3459 into a single string to permit better translation into other
3462 2001-12-05 Tom Rix <trix@redhat.com>
3464 * Makefile.am: Remove eaixppc64.
3465 * Makefile.in: Regenerate.
3467 2001-12-04 Tom Rix <trix@redhat.com>
3469 * emultempl/aix.em (choose_target): Change default target to
3470 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3472 (gld*_read_file): Fix typo.
3473 (change_symbol_mode): Add prototype.
3476 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3477 * emulparams/aixrs6.sh : Same.
3478 * emulparams/ppcmacos.sh : Same.
3479 * emulparams/aixppc64.sh : Delete file.
3480 * emultempl/aix.em : Formatting changes.
3482 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3484 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3485 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3487 (OTHER_END_SYMBOLS): Fix formatting.
3488 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3489 (OTHER_END_SYMBOLS): Fix formatting.
3491 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3493 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3495 2001-12-02 Tom Rix <trix@redhat.com>
3497 * configure.tgt : Remove eaixppc64 emulations.
3498 * Makefile.in : Remove eaixppc64.c
3499 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3500 (ldemul_default_target): Same.
3501 * emultempl/gld960.em (gld960_choose_target): Same.
3502 * emultempl/gld960c.em (gld960_choose_target): Same.
3503 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3504 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3505 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3506 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3507 * emultempl/aix.em (choose_target): New function. Handle emulation of
3510 2001-11-27 H.J. Lu <hjl@gnu.org>
3512 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3513 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3514 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3515 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3516 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3517 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3518 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3519 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3521 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3524 (REL_SDATA): Likewise.
3525 (REL_SBSS): Likewise.
3526 (REL_SDATA2): Likewise.
3527 (REL_SBSS2): Likewise.
3528 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3531 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3533 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3535 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3537 2001-11-22 H.J. Lu <hjl@gnu.org>
3539 * Makefile.in: Regenerated with automake based on automake
3540 1.4-8 in RedHat 7.1.
3542 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3544 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3545 (config.status): Delete rule.
3546 Add extra dependencies to cover sourced emulparams files.
3547 * Makefile.in: Regenerate.
3549 * scripttempl/elf.sc: Order <section>, <section>.* and
3550 corresponding linkonce sections as seen in input files.
3551 Formatting fixes. Zero vma of all sections if not relocating.
3552 (STACK): Define and insert if STACK_ADDR defined.
3553 (OTHER_RELOCATING_SECTIONS): Delete.
3554 (OTHER_END_SYMBOLS): Define.
3555 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3556 (OTHER_READWRITE_SECTIONS): Likewise.
3557 (OTHER_GOT_SECTIONS): Likewise.
3558 (OTHER_SDATA_SECTIONS): Likewise.
3559 (OTHER_BSS_SECTIONS): Likewise.
3560 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3561 (OTHER_READWRITE_SECTIONS): Likewise.
3562 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3563 (OTHER_READWRITE_SECTIONS): Likewise.
3565 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3566 (STACK_ADDR): Define.
3567 * emulparams/armelf_oabi.sh: As for armelf.sh.
3568 * emulparams/elf32mcore.sh: As for armelf.sh.
3569 * emulparams/h8300elf.sh: As for armelf.sh.
3570 * emulparams/mn10200.sh: As for armelf.sh.
3571 * emulparams/shelf.sh: As for armelf.sh.
3573 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3574 (OTHER_END_SYMBOLS): Define.
3575 * emulparams/m32relf.sh: As for elf32fr30.sh.
3576 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3577 * emulparams/h8300self.sh: As for elf32fr30.sh.
3579 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3580 defines with RELOCATING test.
3581 (OTHER_SDATA_SECTIONS): Likewise.
3582 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3583 (OTHER_END_SYMBOLS): ..this.
3584 * emulparams/crislinux.sh: As for criself.sh.
3586 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3588 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3589 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3590 normal and linkonce sections as seen in input files.
3591 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3592 (TEXT_DYNAMIC): Likewise.
3593 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3594 (OTHER_SDATA_SECTIONS): Likewise.
3595 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3596 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3597 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3598 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3599 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3600 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3601 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3602 sections as seen in input files.
3603 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3604 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3606 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3607 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3608 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3609 (OTHER_SECTIONS): Instead, use this..
3610 (OTHER_END_SYMBOLS): ..and this.
3612 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3613 * emulparams/elf32bsmip.sh: Likewise.
3614 * emulparams/elf32btsmip.sh: Likewise.
3615 * emulparams/elf32ebmip.sh: Likewise.
3616 * emulparams/elf32lmip.sh: Likewise.
3617 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3618 * emulparams/elf32lsmip.sh: Likewise.
3619 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3620 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3621 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3622 * emulparams/elf64btsmip.sh: Likewise.
3623 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3624 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3625 * emulparams/elf32ppclinux.sh: Likewise.
3626 * emulparams/elf32ppcsim.sh: Likewise.
3627 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3628 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3629 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3630 * emulparams/h8300self.sh: Likewise.
3631 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3632 * emulparams/sh.sh: Comment.
3633 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3634 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3635 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3637 2001-11-21 David Heine <dlheine@tensilica.com>
3638 Alan Modra <amodra@bigpond.net.au>
3640 * ldlang.c (map_input_to_output_sections): Replace "break"
3641 accidentally removed with 2001-08-03 change.
3642 (lang_gc_sections_1): Likewise.
3644 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3646 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3648 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3650 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3651 of false when calling lang_size_sections.
3652 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3654 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3656 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3657 function when LDEMUL_FINISH isn't set to the same name. Don't
3658 call ${LDEMUL_FINISH}.
3659 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3660 * emultempl/armelf.em (arm_elf_finish): Call
3661 gld${EMULATION_NAME}_finish.
3662 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3663 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3664 hppaelf_layout_sections_again if necessary.
3665 (need_laying_out): New var.
3666 (hppaelf_layaout_sections_again): Rename to
3667 hppaelf_layout_sections_again. Clear need_laying_out.
3668 (PARSE_AND_LIST_OPTIONS): Format text.
3670 2001-11-14 H.J. Lu <hjl@gnu.org>
3672 * emultempl/armelf.em (arm_elf_finish): Renamed from
3673 gld${EMULATION_NAME}_finish.
3674 (LDEMUL_FINISH): Set to arm_elf_finish.
3676 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3678 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3679 (struct ld_emulation_xfer_struct): Use it.
3681 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3683 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3684 additional symbols referenced by newer crt0.o files from HP.
3686 2001-11-12 Anthony Green <green@redhat.com>
3688 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3690 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3692 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3693 * Makefile.in: Regenerate.
3695 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3697 * ld.texinfo: Use @command for commands, @option for options.
3698 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3700 * Makefile.in: Rebuild.
3702 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3704 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3705 Add support for targets.
3707 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3709 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3710 * configure: Regernate.
3711 * po/fr.po: New file.
3712 * po/sv.po: New file.
3714 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3716 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3717 as little endian default and to support big endian.
3719 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3721 * ld.texinfo (Options): Document new option, -nostdlib.
3722 * lexsup.c (OPTION_NOSTDLIB): New definition.
3723 (ld_options): Add entry for "nostdlib".
3724 (parse_args): Handle OPTIONS_NOSTDLIB.
3725 * ldfile.c (ldfile_add_library_path): Don't add directories
3726 to the search path if they weren't specified on the command line
3727 and -nostdlib was specified.
3728 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3730 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3732 * lexsup.c (parse_args): Prevent infinite parsing loop when
3733 "-rpath.a" is specified on the command line.
3734 Replace calls to fprintf with calls to einfo.
3736 2001-10-31 John Marshall <jmarshall@acm.org>
3738 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3739 appear only once across all the linker scripts involved in a link
3740 invocation no longer applies. Make the documentation reflect
3743 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3745 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3747 (sh-*-linux*): Added targ_extra_libpath.
3749 2001-10-31 David Heine <dlheine@tensilica.com>
3751 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3752 for padding statements.
3754 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3756 * configure.tgt (mmix-*-*): New target.
3757 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3758 Add dependencies to match.
3759 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3760 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3761 scripttempl/mmo.sc: New files.
3762 * gen-doc.texi: @set MMIX.
3763 * ld.texinfo: Ditto.
3764 [MMIX] Add MMIX node.
3765 * Makefile.in: Regenerate.
3767 2001-10-29 Kazu Hirata <kazu@hxi.com>
3769 * ldlang.c: Fix a comment typo.
3771 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3773 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3774 entries, and match *-*-linux*.
3776 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3778 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3779 with ldlex_script, ldlex_popstate.
3780 (ifile_p1): Likewise.
3781 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3783 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3784 to 1. Don't BEGIN(SCRIPT).
3785 (lex_redirect): Similarly.
3786 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3788 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3790 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3791 __EH_FRAME_END__ and accept eh frames into data section.
3792 Add ctor and dtor sections.
3794 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3796 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3797 (auto-export): Fix indentation.
3799 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3801 * pe-dll.c (autofilter_objectlist): Add startup objects
3803 (auto-export): Constify char * p.
3804 Extract file basename and use strcmp rather than ststr
3807 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3809 * ldmain.c (get_emulation): Improve comment about the handling
3812 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3814 * po/POTFILES.in: Regenerate.
3816 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3818 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3819 -z nocopyreloc and -z nocombreloc usage strings.
3821 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3823 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3826 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3828 * scripttempl/armaout.sc: Place .bss section after end of aligned
3829 data section to match behaviour of aout code in constructrion of
3832 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3834 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3835 startup files for mingw32 dlls to list.
3837 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3839 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3841 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3843 * configure.tgt (targ): Add arm9e-*-elf.
3845 2001-10-05 H.J. Lu <hjl@gnu.org>
3847 * genscripts.sh: Fix a typo in the last change.
3849 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3851 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3852 -z nocombreloc in usage.
3854 2001-10-03 Jim Blandy <jimb@redhat.com>
3856 * genscripts.sh: Include a comment at the top of each generated
3857 script, explaining its purpose.
3859 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3861 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3862 * NEWS: Mention -z nocopyreloc.
3863 * ld.texinfo (Options): Describe nocopyreloc.
3865 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3867 * configure: Regenerate.
3869 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3871 * ldver.h (ld_program_version): Remove declaration.
3872 * lexsup.c (parse_args): Move printing of copyright message..
3873 * ldver.c (ldversion): .. to here.
3874 Use BFD_VERSION_STRING in place of BFD_VERSION.
3875 (ld_program_version): Remove.
3876 * Makefile.am (Makefile): Depend on bfd/configure.in.
3878 * Makefile.in: Regenerate.
3880 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3882 * Makefile.am: Update dependencies with "make dep-am".
3883 * Makefile.in: Regenerate.
3885 2001-09-29 John Reiser <jreiser@BitWagon.com>
3887 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3888 * lexsup.c: Add --no-define-common commandline option.
3889 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3890 * ldlex.l: Likewise.
3891 * ld.h: Add command_line.inhibit_common_definition.
3892 * ldmain.c (main): Initialize.
3893 * ld.texinfo: Document.
3895 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3897 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3899 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3901 * ldmisc.c (USE_STDARG): Remove.
3902 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3907 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3908 declarations. Update copyright.
3910 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3912 * pe-dll.c: Remove obsoleted declaration of
3913 pe_get_data_import_dll_name.
3914 (pe_create_import_fixup): Fix thinko.
3916 * ld.texinfo(enable-auto-import): Clarify the explanation.
3918 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3920 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3921 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3922 DLL_SUPPORT controlled code.
3924 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3926 * emultempl/pe.em(pe_data_import_dll): Make static.
3927 (pe_get_data_import_dll_name): New accessor function.
3928 * pe-dll.c(pe_create_import_fixup): call
3929 pe_get_data_import_dll_name() from pe.em, instead of
3930 directly accessing pe_data_import_dll variable from pe.em.
3932 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3934 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3935 (def_file_add_directive): Use ISSPACE instead of isspace.
3936 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3937 isdigit/isxdigit/isalpha/isalnum.
3938 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3939 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3940 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3941 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3943 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3944 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3946 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3947 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3948 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3949 (ctor_prio): Use ISDIGIT instead of isdigit.
3950 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3951 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3952 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3954 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3955 (stricpy): Use TOLOWER instead of isupper/tolower.
3956 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3957 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3958 (lex_warn_invalid): Use ISPRINT instead of isprint.
3959 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3960 (main): For gettext, also set the LC_CTYPE locate facet.
3961 (add_keepsyms_file): Use ISSPACE instead of isspace.
3962 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3963 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3964 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3965 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3966 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3967 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3968 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3969 (quoteput): Use ISSPACE instead of isspace.
3970 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3973 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3975 * deffilep.y (def_stash_module): Constify "name" param.
3977 * pe-dll.c: Replace CONST with const throughout.
3978 (quick_symbol): Constify "n1", "n2", "n3" params.
3979 (make_singleton_name_thunk): Constify "import" param. Make
3980 "buffer_len" a size_t.
3981 (make_import_fixup_entry): Constify "name", "fixup_name",
3982 "dll_symname" params.
3983 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3984 (pe_get32): Likewise.
3985 (pe_implied_import_dll): Likewise.
3987 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3988 (sort_by_section_name): Likewise.
3990 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3991 (make_import_fixup): Cast printf arg, rel->address to long rather
3993 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3995 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3997 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3998 defines BufferSize. Increase buffer size by one.
4000 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
4002 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
4004 2001-09-14 Kevin Lo <kevlo@openbsd.org>
4006 * configure.tgt: Add arm-openbsd target.
4008 2001-09-12 H.J. Lu <hjl@gnu.org>
4010 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
4012 (ALL_64_EMULATIONS): Here.
4013 * Makefile.in: Regenerated.
4015 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4017 * emultempl/pe.em(make_import_fixup): change signature to
4018 take asection as well as arelec; we need this for proper
4019 error reporting. Only call pe_create_import_fixup() if
4020 there is no attempt to add a constant addend to the reloc;
4021 otherwise, report error condition.
4022 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
4023 since final argument is a pointer to make_import_fixup().
4024 Change call to cb() to match make_import_fixup() signature.
4025 (make_import_fixup_mark): make buffer_len unsigned.
4026 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
4028 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
4030 * ld.texinfo: add verbose documentation for auto-import
4031 direct-addressing workaround, to compliment the terse
4034 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
4036 * scripttempl/v850.sc: Add gcc_except_table sections.
4038 2001-09-11 Jeffrey A Law (law@cygnus.com)
4040 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
4041 * emulparams/h8300self.sh: Similarly.
4043 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
4045 * ld.texinfo (Options, --stack): Correct default value for stack
4048 2001-09-05 Tom Rix <trix@redhat.com>
4050 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
4052 2001-09-03 Andreas Jaeger <aj@suse.de>
4054 * emultempl/beos.em: Declare prototypes for comparions functions,
4057 2001-09-02 Andreas Jaeger <aj@suse.de>
4059 * emultempl/aix.em: Add missing prototype.
4060 * emultempl/lnk960.em: Likewise.
4061 * emultempl/vanilla.em: Likewise.
4062 * emultempl/armcoff.em: Likewise.
4063 * emultempl/armelf_oabi.em: Likewise.
4064 * emultempl/beos.em: Likewise.
4065 * emultempl/gld960c.em: Likewise.
4066 * emultempl/gld960.em: Likewise.
4068 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
4069 for prototype declaration.
4071 2001-08-31 Eric Christopher <echristo@redhat.com>
4072 Jason Eckhardt <jle@redhat.com>
4074 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
4076 2001-08-31 Andreas Jaeger <aj@suse.de>
4078 * emultempl/pe.em: Add missing prototypes.
4079 (gld_${EMULATION_NAME}_after_open): Remove extra args to
4080 pe_find_data_imports.
4081 (pr_sym): Add unused attribute.
4083 2001-08-29 Joel Sherrill <joel@OARcorp.com>
4085 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
4086 default from coff to elf.
4088 2001-08-29 Jeff Law <law@redhat.com>
4090 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
4092 * emulparams/h8300self.sh: Similarly.
4094 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
4096 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
4098 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
4099 * configure.tgt (h8300-*-elf*): New case.
4100 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
4101 * emulparams/h8300self.sh: New file.
4102 * Makefile.in: Regenerated.
4104 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
4106 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
4109 2001-08-27 Linus Nordberg <linus@swox.com>
4110 Alan Modra <amodra@bigpond.net.au>
4112 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
4113 (eelf64ppc.c, eelf64lppc.c): Add make targets.
4115 * Makefile.in: Regenerate.
4116 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
4117 entries to correct alphabetical position.
4118 * emulparams/elf64ppc.sh: New.
4119 * emulparams/elf64lppc.sh: New.
4121 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
4123 * ldmain.c (main): Declare BSIZE as static.
4125 2001-08-23 Jakub Jelinek <jakub@redhat.com>
4127 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4128 into .rel.dyn resp. .rela.dyn if combreloc.
4129 (get_script): If .x linker script is equal to .xn, only put it
4130 once into the binary.
4131 Add .xc and .xsc scripts.
4132 (parse_args): Handle -z combreloc and -z nocombreloc.
4133 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
4134 For .xc and .xsc scripts put all .rel* or .rela* input sections
4135 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
4136 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
4138 Strip trailing whitespace from script.
4139 Generate .xc and .xsc scripts if requested.
4140 * ldmain.c (main): Initialize link_info.combreloc and
4141 link_info.spare_dynamic_tags.
4142 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
4143 (ld_options): Add --spare-dynamic-tags option.
4144 (parse_args): Likewise.
4145 * ld.texinfo: Document -z combreloc and -z nocombreloc.
4146 * ldint.texinfo: Document .xc and .xsc linker scripts.
4147 * NEWS: Add notes about -z combreloc and SHF_MERGE.
4149 2001-08-22 H.J. Lu <hjl@gnu.org>
4151 * emulparams/elf32fr30.sh: Add a newline.
4153 2001-08-21 Andreas Jaeger <aj@suse.de>
4155 * deffilep.y: Add missing prototypes.
4156 * pe-dll.c: Likewise.
4158 2001-08-20 Alan Modra <amodra@bigpond.net.au>
4160 * ldlang.c (insert_pad): Fix typos in last patch.
4162 * ldlang.c: When traversing lang_statement_union_type lists,
4163 consistently use "header.next" rather than "next".
4164 * mpw-eppcmac.c: Likewise.
4165 * emultempl/beos.em: Likewise.
4166 * emultempl/hppaelf.em: Likewise.
4167 * emultempl/pe.em: Likewise.
4168 * ldlang.h (union lang_statement_union): Remove "next" field.
4170 * ldlang.c (insert_pad): Use offsetof macro.
4171 (lang_size_sections): Always neuter padding statements.
4172 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4174 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4175 passed to lang_size_sections.
4176 (pe_exe_fill_sections): Likewise.
4177 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4178 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4180 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4182 * emultempl/aix.em: Formatting fixes.
4184 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4186 * ldlang.c (insert_pad): Make use of an existing pad statement if
4187 available. Move code calculating alignment, adjusting section
4188 alignment power, and adjusting dot to ..
4189 (size_input_section): .. here. Remove unused relax param.
4190 (lang_size_sections): Change boolean `relax' param to boolean *.
4191 Adjust call to size_input_section. Make use of insert_pad to
4192 place pad after the assignment statement. If relaxing, zap
4194 (reset_memory_regions): Reset output_bfd section sizes too.
4195 (relax_again): Move to..
4196 (lang_process): ..here. Adjust call to lang_size_sections, and
4197 remove duplicated code.
4198 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4200 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4202 * ld.texinfo: Document that fill values now use the four least
4204 * emulparams/elf32fr30.sh (NOP): Update.
4205 * emulparams/elf32mcore.sh: Likewise.
4206 * emulparams/elf64_s390.sh: Likewise.
4207 * emulparams/elf_i386.sh: Likewise.
4208 * emulparams/elf_i386_be.sh: Likewise.
4209 * emulparams/elf_i386_chaos.sh: Likewise.
4210 * emulparams/elf_i386_ldso.sh: Likewise.
4211 * emulparams/elf_s390.sh: Likewise.
4212 * emulparams/elf_x86_64.sh: Likewise.
4213 * emulparams/i386moss.sh: Likewise.
4214 * emulparams/i386nw.sh: Likewise.
4215 * emulparams/m68kelf.sh: Likewise.
4216 * scripttempl/elf.sc: Update NOP comment.
4217 * scripttempl/elfi370.sc: Likewise.
4218 * scripttempl/elfm68hc11.sc: Likewise.
4219 * scripttempl/elfm68hc12.sc: Likewise.
4220 * scripttempl/nw.sc: Likewise.
4222 2001-08-15 Tom Rix <trix@redhat.com>
4224 * ldgram.y (saved_script_handle): Initialize to NULL.
4225 * ldmain.c (main): Change check on saved_script_handle.
4227 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4229 * emultempl/elf32.em: Formatting fixes.
4230 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4231 looking at sec->owner.
4232 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4233 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4234 unused code, and reorganize orphan section placement code.
4236 * ldlang.c (wild_doit): Rename to lang_add_section.
4237 * ldlang.h: Here too.
4238 * mpw-elfmips.c: And here.
4239 * emultempl/beos.em: And here.
4240 * emultempl/elf32.em: And here.
4241 * emultempl/hppaelf.em: And here.
4242 * emultempl/pe.em: And here.
4244 2001-08-13 Richard Henderson <rth@redhat.com>
4246 * emultempl/needrelax.em: New file.
4247 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4248 * Makefile.am (eelf64_ia64.c): Depend on it.
4249 * Makefile.in: Rebuild.
4251 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4253 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4254 output_section is set non-NULL.
4256 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4257 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4258 needlessly create an output_section_statement. Treat a correctly
4259 named output_section_statement with NULL bfd_section as compatible.
4261 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4263 * emultempl/generic.em: Support EXTRA_EM_FILE.
4264 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4265 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4266 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4267 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4268 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4269 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4270 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4271 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4272 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4273 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4275 2001-08-12 Richard Henderson <rth@redhat.com>
4277 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4278 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4279 scripttempl/v850.sc: Keep .jcr data.
4281 2001-08-12 H.J. Lu <hjl@gnu.org>
4282 Andrew Haley <aph@cambridge.redhat.com>
4283 Nick Clifton <nickc@redhat.com>
4285 * ldgram.y (had_script): Change name to saved_script_handle.
4286 Change type to file handle.
4287 * ld.h (had_script): Rename and retype.
4288 * ldfile.c (ldfile_open_command_file): Save the file handle
4289 used in saved_script_handle.
4290 * lexsup.c (parse_args): Do not allow -c option to alter
4291 saved_script_handle.
4292 * ldmain.c (main): Print out the linker script used if
4293 --verbose is given. Check saved_script_handle to obtain the
4294 external linker script used, or if NULL, dump the builtin
4296 * ld.texinfo: Document that --verbose now dumps the linker
4297 script used, regardless of whether it was an internal or an
4300 2001-08-10 Andreas Jaeger <aj@suse.de>
4302 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4304 * configure: Regenerate.
4306 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4308 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4310 * scripttempl/elf.sc: Move non-text .dynamic section before
4311 .plt/.got/.sdata* group.
4312 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4313 (OTHER_SDATA_SECTIONS): Add.
4314 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4316 * emulparams/crislinux.sh: Likewise.
4317 * emulparams/elf32b4300.sh: Likewise.
4318 * emulparams/elf32bmip.sh: Likewise.
4319 * emulparams/elf32bmipn32.sh: Likewise.
4320 * emulparams/elf32bsmip.sh: Likewise.
4321 * emulparams/elf32btsmip.sh: Likewise.
4322 * emulparams/elf32ebmip.sh: Likewise.
4323 * emulparams/elf32elmip.sh: Likewise.
4324 * emulparams/elf32l4300.sh: Likewise.
4325 * emulparams/elf32lmip.sh: Likewise.
4326 * emulparams/elf32lsmip.sh: Likewise.
4327 * emulparams/elf32ltsmip.sh: Likewise.
4328 * emulparams/elf64bmip.sh: Likewise.
4329 * emulparams/elf64btsmip.sh: Likewise.
4330 * emulparams/elf64ltsmip.sh: Likewise.
4332 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4334 * genscripts.sh: Source the emulparams script before each output
4335 script is generated so that variables like `RELOCATING' may affect
4336 variables defined in the emulparams script.
4338 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4340 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4343 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4344 ie. iterate over wild_statement.section_list.
4345 (gld${EMULATION_NAME}_place_orphan): Likewise.
4347 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4349 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4350 .fini[0-4] sections used by _exit
4351 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4352 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4353 * scripttempl/elfm68hc11.sc: Likewise.
4355 2001-08-03 H.J. Lu <hjl@gnu.org>
4357 * emultempl/beos.em (init): Add the missing initialization.
4359 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4361 * ld.texinfo (Input Section Basics): Clarify ordering of output
4363 * ldlang.c (callback_t): Add wildcard_list param.
4364 (walk_wild_section): Remove "section" param. Rewrite for
4365 lang_wild_statement_type change. Remove unique_section_p test.
4366 (walk_wild_file): Remove "section" param.
4367 (walk_wild): Remove "section" and "file" params.
4368 (lang_gc_wild): Likewise.
4369 (wild): Likewise. Modify for lang_wild_statement_type change.
4370 (wild_sort): Likewise. Add "sec" param.
4371 (gc_section_callback): Likewise.
4372 (output_section_callback): Likewise. Do unique_section_p test.
4373 (map_input_to_output_sections): Modify call to wild.
4374 (lang_gc_sections_1): Likewise.
4375 (print_wild_statement): Modify for lang_wild_statement_type
4377 (lang_add_wild): Replace filename, filenames_sorted param with
4378 filespec. Replace section_name, sections_sorted,
4379 exclude_filename_list with section_list.
4380 * ldlang.h (lang_add_wild): Here too.
4381 (lang_wild_statement_type): Replace section_name, sections_sorted,
4382 and exclude_filename_list with section_list.
4383 * ldgram.y (current_file): Delete.
4384 (%union): Add wildcard_list.
4385 (file_NAME_list): Set type to wildcard_list. Build a linked list
4386 rather than calling lang_add_wild for each entry.
4387 (input_section_spec_no_keep): Call lang_add_wild here instead.
4388 * ld.h (struct wildcard_list): Declare.
4389 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4391 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4393 * ldmain.c (main): initialize link_info.pei386_auto_import
4394 * pe-dll.c: new tables for auto-export filtering
4395 (auto_export): change API, pass abfd for contextual filtering.
4396 Loop thru tables of excluded symbols instead of comparing
4399 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4401 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4402 static variable current_sec (static struct sec *). Add
4403 forward declaration for add_bfd_to_link.
4404 (process_def_file): Don't export undefined symbols. Do not
4405 export symbols starting with "_imp__". Call auto_export()
4407 (pe_walk_relocs_of_symbol): New function.
4408 (generate_reloc): add optional extra debugging
4409 (pe_dll_generate_def_file): eliminate extraneous initial blank
4411 (make_one): enlarge symtab to make room for __nm__ symbols
4412 (DATA auto-import support).
4413 (make_singleton_name_thunk): New function.
4414 (make_import_fixup_mark): New function.
4415 (make_import_fixup_entry): New function.
4416 (pe_create_import_fixup): New function.
4417 (add_bfd_to_link): Specify that 'name' argument is a CONST
4419 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4420 declare new functions pe_walk_relocs_of_symbol and
4421 pe_create_import_fixup.
4422 * emultempl/pe.em: add new options --enable-auto-import,
4423 --disable-auto-import, and --enable-extra-pe-debug.
4424 (make_import_fixup): New function.
4425 (pe_find_data_imports): New function.
4426 (pr_sym): New function.
4427 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4428 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4431 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4433 * ld.texinfo: add additional documentation for
4434 --export-all-symbols. Document --out-implib,
4435 --enable-auto-image-base, --disable-auto-image-base,
4436 --dll-search-prefix, --enable-auto-import, and
4437 --disable-auto-import.
4438 * ldint.texinfo: Add detailed documentation on auto-import
4441 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4443 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4446 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4448 * Makefile.am: Update dependencies with "make dep-am".
4449 * Makefile.in: Regenerate
4451 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4453 * ldcref.c (check_section_sym_xref): New function.
4454 (check_nocrossrefs): Call it.
4455 (check_nocrossref): Interate over h->refs here instead of..
4456 (check_refs): ..here. Pass in the symbol name, section, and bfd
4457 rather than hash_entry pointers.
4458 (struct check_refs_info): Keep symbol name rather than hash entry.
4460 (check_reloc_refs): Tweak for above changes in check_refs_info.
4461 Only report references to section syms when symname is NULL to
4462 prevent duplicate messages for the same reloc.
4464 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4466 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4467 available. Do not print NULL trees.
4468 (exp_print_token): Print unknown tokens with values > 126 as
4469 decimal values not ASCII characters.
4471 * ldlang.c (lang_leave_overlay): If a region is specified assign
4472 it to all sections inside the overlay unless they have been
4473 assigned to the own, non-default, memory region.
4475 * README: Add header for consistency with other README files.
4477 2001-07-14 H.J. Lu <hjl@gnu.org>
4479 * emultempl/elf32.em (output_prev_sec_find): Never return
4480 bfd_abs_section_ptr, bfd_com_section_ptr nor
4481 bfd_und_section_ptr.
4483 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4485 * Makefile.am (em32relf.c): Change dependency from generic.em to
4487 * Makefile.in: Regenerate.
4489 2001-07-14 matthew green <mrg@eterna.com.au>
4491 * configure.tgt (i386-*-netbsdelf*): New target.
4492 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4494 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4496 * emultempl/elf32.em (output_prev_sec_find): New.
4497 (place_orphan): Use it.
4499 2001-07-11 H.J. Lu <hjl@gnu.org>
4501 * ldmain.c (main): Fix typos in the last change.
4503 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4505 * ldmain.c (main): Disallow -F and -f without -shared.
4507 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4509 * emultempl/pe.em (after_open): Check for the output_bfd not
4510 having any coff_data structure allocated to it.
4512 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4514 * emultempl/elf32.em: Do not assuming that contents of the buffer
4515 returned from basename function will remain unchanged accross other
4518 2001-07-03 H.J. Lu <hjl@gnu.org>
4520 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4521 2001-07-03. It creates dynamic entries even for static binaries.
4523 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4525 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4526 (DYNAMIC): Use it to reserve few dynamic entries for
4529 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4531 * emulparams/hppa64linux.sh: New file.
4532 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4533 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4534 (ehppa64linux.c): Add rule to make it.
4536 * Makefile.in: Regenerate.
4538 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4540 * ld.texinfo (Options, -r): Mention restrictions when using
4541 different object formats.
4543 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4545 * ldlang.c (lang_check): Emit fatal error if relocatable link
4546 between different object flavours with relocations in input.
4548 2001-06-19 H.J. Lu <hjl@gnu.org>
4550 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4551 (--version-script): Mention the language support.
4553 2001-06-19 H.J. Lu <hjl@gnu.org>
4555 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4557 2001-06-18 H.J. Lu <hjl@gnu.org>
4559 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4560 (diststuff): Add $(MANS).
4561 * Makefile.in: Regenerated.
4565 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4567 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4568 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4569 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4570 * ld.h (args_type): Remove member export_dynamic. All users
4571 changed to use struct bfd_link_info member.
4573 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4574 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4575 * Makefile.in: Regenerate.
4577 2001-06-18 H.J. Lu <hjl@gnu.org>
4579 * ldlang.c (init_os): Add the newline to the einfo call.
4580 (lang_check): Likewise.
4581 (lang_do_version_exports_section): Likewise.
4583 2001-06-15 H.J. Lu <hjl@gnu.org>
4585 * lexsup.c (parse_args); Save optind to report unrecognized
4588 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4590 * ldlang.c (lang_check): Emit fatal error if relocatable link
4591 between different object flavours.
4593 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4594 Set new link_info member export_dynamic.
4595 * ldmain.c (main): Initialize new link_info member export_dynamic.
4597 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4599 * ldlang.c (walk_wild): Only call walk_wild_file if
4600 lookup_name returns something.
4601 (lookup_name): If load_symbols fails, return NULL.
4602 (load_symbols): Change to a boolean function.
4603 (open_input_bfds): If load_symbols fails then do not make the
4606 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4608 * ldlang.c (record_bfd_errors): Remove.
4610 * emultempl/aix.em: Fix copyright dates.
4612 2001-06-07 Andreas Jaeger <aj@suse.de>
4614 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4615 (TEXT_START_ADDR): Likewise.
4617 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4619 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4621 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4623 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4625 2001-05-31 H.J. Lu <hjl@gnu.org>
4627 * ldlang.c (open_input_bfds): Don't change the bfd error
4628 handler whilst loading symbols.
4630 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4632 * configure.tgt: Remove i370-mvs architecture, it is not currently
4635 2001-05-25 H.J. Lu <hjl@gnu.org>
4637 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4638 like emulparams/aixppc.sh.
4640 2001-05-25 H.J. Lu <hjl@gnu.org>
4642 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4643 setting of output_filename after bfd_scan_arch.
4644 * emultempl/pe.em: Likewise.
4646 2001-05-25 H.J. Lu <hjl@gnu.org>
4648 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4649 like emulparams/aixppc.sh.
4651 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4652 instead of ${srcdir}/emultempl/stringify.sed.
4654 2001-05-25 Timothy Wall <twall@oculustech.com>
4656 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4659 2001-05-25 Alan Modra <amodra@one.net.au>
4661 * configure.host: Replace linuxoldld with linux*oldld.
4662 * configure.tgt: Likewise.
4664 2001-05-24 H.J. Lu <hjl@gnu.org>
4666 * emultempl/stringify.sed: Removed again.
4668 2001-05-24 H.J. Lu <hjl@gnu.org>
4670 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4671 (gld${EMULATION_NAME}_before_parse): Initialize
4672 ldfile_output_architecture, ldfile_output_machine and
4673 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4674 * emultempl/beos.em: Likewise.
4675 * emultempl/elf32.em: Likewise.
4676 * emultempl/linux.em: Likewise.
4677 * emultempl/mipsecoff.em: Likewise.
4678 * emultempl/pe.em: Likewise.
4679 * emultempl/sunos.em: Likewise.
4681 2001-05-24 Tom Rix <trix@redhat.com>
4683 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4684 udate import file format.
4685 (change_symbol_mode) New, same
4686 (is_syscall) New, same
4687 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4688 * emulparams/aixppc64.sh : same
4689 * emulparams/aixrs6.sh : same
4690 * emulparams/ppcmacos.sh : same
4691 * emultempl/aix.em : use strtoull to parse options
4692 * Makefile.am : add eaixppc64 emulation for xcoff64
4693 * Makefile.in : same
4694 * configure.tgt : same
4696 * scripttempl/aix.sc : default text section offset to 0x10000000
4697 default data section offset to 0x20000000
4698 add .sv3264 and .sv64 pseudo sections
4699 loader and debug sections use the currect section offset.
4701 * emultempl/aix.em : Add xcoff64 support
4702 Add -binitfini support
4703 (gld${EMULATION_NAME}_before_parse) -binitfini
4704 (gld${EMULATION_NAME}_parse_args) same
4705 (gld${EMULATION_NAME}_before_allocation) format change for special
4708 * emulparams/aixppc64.sh : New file for xcoff64 support
4710 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4712 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4713 variable to avoid non-portable shell construct.
4715 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4717 * ldmain.c (get_emulation): Add -mips5 command line argument.
4719 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4721 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4722 (ELF_INTERPRETER_NAME): Define it.
4723 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4725 * configure.tgt (targ_emul, targ_extra_emuls)
4726 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4727 as primary, elf_i386 as extra.
4728 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4729 (eelf_i386_ldso.c): New rule.
4730 * Makefile.in: Rebuilt.
4732 2001-05-22 Nick Clifton <nickc@redhat.com>
4734 * lexsup.c (ld_options): Allow -I to be an alias for
4735 --dynamic-linker. This is for Solaris compatability.
4736 * ld.texinfo: Document that -I can be used.
4739 2001-05-16 Alan Modra <amodra@one.net.au>
4741 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4742 whether an input section is the first one assigned to an output
4744 Assorted formatting fixes.
4746 2001-05-14 DJ Delorie <dj@delorie.com>
4748 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4749 * Makefile.in: Ditto.
4751 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4753 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4754 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4756 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4758 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4760 * ldlang.c (lang_process): Call bfd_merge_sections.
4762 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4764 * ldgram.y: Fix typo.
4766 2001-05-03 H.J. Lu <hjl@gnu.org>
4768 * emultempl/elf32.em: Include "libiberty.h".
4769 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4770 basename of the bfd filename.
4771 (gld${EMULATION_NAME}_stat_needed): Likewise.
4772 (gld${EMULATION_NAME}_try_needed): Likewise.
4773 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4775 2001-05-02 H.J. Lu <hjl@gnu.org>
4777 * emultempl/pe.em: Include <ctype.h>.
4779 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4781 * emulparams/elf32openrisc.sh: New file.
4783 * Makefile.am: Add OpenRISC target.
4784 * Makefile.in: Regenerated.
4786 * configure.tgt: Add openrisc-*-* mapping.
4788 2001-05-02 Nick Clifton <nickc@redhat.com>
4790 * emultempl/aix.em: Replace buystring with xstrdup.
4791 * emultempl/beos.em: Replace buystring with xstrdup.
4793 2001-05-02 H.J. Lu <hjl@gnu.org>
4795 * ldfile.c: Include "libiberty.h".
4796 * ldlex.l: Likewise.
4798 * ldmisc.c (buystring): Removed.
4799 * ldmisc.h: Likewise.
4801 * ldfile.c: Replace buystring with xstrdup.
4802 * ldlang.c: Likewise.
4803 * ldlex.l: Likewise.
4804 * ldmain.c: Likewise.
4805 * ldmisc.c: Likewise.
4806 * lexsup.c: Likewise.
4807 * mpw-eppcmac.c: Likewise.
4809 2001-04-30 Andreas Jaeger <aj@suse.de>
4811 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4813 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4815 * ldlang.c (load_symbols): Give emulation a chance
4816 to process unrecognized file before fatal error is
4817 reported, not after.
4819 2001-04-27 Sean McNeil <sean@mcneil.com>
4821 * configure.tgt: Add arm-vxworks target.
4822 * scripttempl/armcoff.sc: Support .text or .data as a section name
4826 2001-04-13 J.T. Conklin <jtc@redback.com>
4828 * ld.texinfo: Document --fatal-warnings.
4831 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4832 warnings have been turned into errors.
4833 * lexsup.c (OPTION_WARN_FATAL): Define.
4834 (ld_options): Entry for --fatal-warnings.
4835 (parse_args): Handle OPTION_WARN_FATAL.
4836 * ld.h (ld_config_type): Add fatal_warnings field.
4838 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4840 * ldmain.c (main): Default to discard_sec_merge.
4841 * lexsup.c (OPTION_DISCARD_NONE): Define.
4842 (ld_options): Add --discard-none.
4843 (parse_args): Handle OPTION_DISCARD_NONE.
4844 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4845 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4846 all its input sections match.
4848 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4850 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4851 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4852 (eelf32ltsmip.c): New target.
4853 (eelf64btsmip.c): Likewise.
4854 (eelf64ltsmip.c): Likewise.
4855 * Makefile.in: Regenerated.
4857 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4859 (mips*-*-linux-gnu*): Likewise.
4861 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4863 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4865 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4868 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4870 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4871 correct value of __Stext here.
4872 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4875 * emulparams/crislinux.sh: Remove FIXME.
4877 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4879 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4880 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4882 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4884 * configure.tgt (cris-*-*): Change default emulation to criself.
4885 (cris-*-*aout*): New rule.
4887 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4889 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4890 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4892 2001-03-26 Andreas Jaeger <aj@suse.de>
4894 * ld.texinfo (Overview): Fix syntax in texi code.
4896 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4898 * ld.texinfo: Put @c man indications to generate the ld man page.
4899 When generating man, define all the variables. Define SEEALSO
4900 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4901 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4902 (ld.1): Generate from ld.texinfo.
4903 * Makefile.in: Regenerate.
4905 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4907 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4908 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4910 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4912 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4913 is an absolute path look only for this file and not along the path.
4915 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4917 * emultempl/elf32.em (OPTION_GROUP): New macro.
4918 Add new option Bgroup to longopts.
4919 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4920 (gld*_list_options): Add -Bgroup and -z defs.
4921 * ld.1: Document -Bgroup and -z defs.
4922 * ld.texinfo: Likewise.
4924 2001-03-07 Michael Meissner <meissner@redhat.com>
4926 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4927 with sections created by -fdata-sections.
4928 (.dynbss,.bss): Ditto.
4930 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4932 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4933 after_allocation_default, not gld..._before_allocation.
4935 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4937 * configure.in (BFD_VERSION): New.
4938 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4939 * configure: Regenerate.
4940 * Makefile.am: Run "make dep-am"
4941 * Makefile.in: Regenerate.
4943 2001-02-26 Timothy Wall <twall@cygnus.com>
4945 * emulparams/elf64_aix.sh: Add additional read-only sections;
4946 uncomment lines which are now required.
4948 2001-02-26 H.J. Lu <hjl@gnu.org>
4950 * ldlang.c (open_input_bfds): Set the bfd error handler so
4951 that problems can be caught whilst loading symbols.
4952 (record_bfd_errors): New function: Report BFD errors and mark
4953 the executable output as being invalid.
4955 2001-02-22 Timothy Wall <twall@cygnus.com>
4957 * configure.host: Add configuration for ia64-*-aix*.
4958 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4959 Add dependencies for eelf64_aix.c.
4960 * Makefile.in: Regenerate.
4961 * configure.tgt: Add ia64-*-aix* mapping.
4962 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4964 2001-02-20 H.J. Lu <hjl@gnu.org>
4966 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4967 false if we found the file.
4969 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4971 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4972 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4974 2001-02-18 lars brinkhoff <lars@nocrew.org>
4976 * Makefile.am: Add PDP-11 target.
4977 * configure.tgt: Likewise.
4978 * emulparams/pdp11.sh: New file.
4980 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4982 * configure.host: Add a generic FreeBSD configuration entry such that
4983 all [modern] FreeBSD systems on all platforms will look the same.
4985 2001-02-14 H.J. Lu <hjl@gnu.org>
4987 * configure.tgt: Remove mention of earmelf_linux26.
4989 2001-02-13 Richard Henderson <rth@redhat.com>
4991 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4993 2001-02-13 H.J. Lu <hjl@gnu.org>
4995 * ldexp.h (node_type): Add etree_provided.
4996 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4997 type to etree_provided if defined by PROVIDE. Allow updating
4999 (exp_print_tree): Handle etree_provided.
5000 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
5003 2001-02-09 David Mosberger <davidm@hpl.hp.com>
5005 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
5006 .IA_64.unwind.* pattern to unwind table section and
5007 .IA_64.unwind_info* pattern to unwind info section.
5009 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
5011 * Makefile.am: Add linux target for S/390.
5012 * Makefile.in: Likewise.
5013 * configure.host: Likewise.
5014 * configure.tgt: Likewise.
5015 * emulparams/elf64_s390.sh: New file.
5016 * emulparams/elf_s390.sh: New file.
5018 2001-02-09 Jakub Jelinek <jakub@redhat.com>
5020 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
5022 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
5024 2001-02-06 Philip Blundell <philb@gnu.org>
5026 * Makefile.am: Remove mention of earmelf_linux26.
5027 * Makefile.in: Regenerate.
5029 2001-02-04 Philip Blundell <philb@gnu.org>
5031 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
5032 * emulparams/armelf_linux26.sh: Delete.
5033 * configure.tgt: Remove mention of armelf_linux26 emulation.
5035 2001-02-01 Nick Clifton <nickc@redhat.com>
5037 * ld.1: Replace occurances of -oformat with --oformat.
5039 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
5041 * ldlang.c (lang_leave_overlay): Don't set lma_region when
5042 load_base is specified.
5044 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
5046 * emultempl/elf32.em: Correct spelling in comments and listed
5049 2001-01-23 Alan Modra <alan@linuxcare.com.au>
5051 * ldlang.c (lang_leave_overlay): Only set lma_region from the
5052 default for the first section of a group of overlay sections.
5054 2001-01-22 Alan Modra <alan@linuxcare.com.au>
5056 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
5057 * Makefile.in: Regenerate.
5058 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
5059 Check for null tool_dir.
5061 2001-01-16 Jim Wilson <wilson@redhat.com>
5063 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
5064 and IA_64.unwind.info.
5066 2001-01-16 H.J. Lu <hjl@gnu.org>
5068 * ldlang.c (lang_check): Merge the private data only if the
5069 input file has contents.
5071 2001-01-14 Alan Modra <alan@linuxcare.com.au>
5073 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
5075 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
5076 enabling search for libmilli. On a relocatable link, make .text
5078 (LDEMUL_AFTER_PARSE): Define.
5079 (hppaelf_finish): Correct spelling of relocatable in comments.
5081 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5082 rummage through the script for sections on the unique list.
5083 Correct length of strncmp for ".note".
5084 (gld${EMULATION_NAME}_check_needed): Rearrange function.
5086 * ldlang.c (unique_section_list): New var.
5087 (unique_section_p): New function.
5088 (walk_wild_section): Don't match sections on unique_section_list.
5089 (lang_add_unique): New function.
5090 Correct spelling of relocatable in comments.
5092 * ldlang.h (struct unique_sections): Declare.
5093 (unique_section_list): Declare.
5094 (unique_section_p): Declare.
5095 (lang_add_unique): Declare.
5097 * lexsup.c (ld_options): Allow --unique to take an optional arg.
5098 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
5100 * ld.texinfo (--unique): Update.
5102 2001-01-13 Nick Clifton <nickc@redhat.com>
5104 * lexsup.c (parse_args): Remove spurious white space.
5106 2001-01-12 Nick Clifton <nickc@redhat.com>
5108 * lexsup.c (parse_args): Update copyright date.
5110 2001-01-12 Philip Blundell <pb@futuretv.com>
5112 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
5114 2001-01-10 Kazu Hirata <kazu@hxi.com>
5116 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
5117 * scripttempl/h8300h.sc: Fix formatting.
5118 * scripttempl/h8300s.sc: Likewise.
5119 * scripttempl/h8500.sc: Likewise.
5120 * scripttempl/h8500b.sc: Likewise.
5121 * scripttempl/h8500c.sc: Likewise.
5122 * scripttempl/h8500m.sc: Likewise.
5123 * scripttempl/h8500s.sc: Likewise.
5125 2000-01-07 David O'Brien <obrien@BSDi.com>
5127 * emultempl/elf32.em: Only perform Linux ld hints processing when
5130 2001-01-07 Philip Blundell <philb@gnu.org>
5132 * ld.texinfo (Bug Reporting): Update email address for reports.
5134 2000-12-31 Nick Clifton <nickc@redhat.com>
5136 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
5137 options by checking for a return value of '?' not -1.
5139 2000-12-28 Nick Clifton <nickc@redhat.com>
5141 * lexsup.c (struct ld_option): Add new enum value:
5143 (ld_options[]): Change -omagic, -output and -oformat options
5144 to be EXACTLY_TWO_DASHES.
5145 (OUTPUT_COUNT): Use ARRAY_SIZE.
5146 (parse_args): Change parameter 'argc' to unsigned.
5147 Place EXACTLY_TWO_DASHES options into new really_longopts
5149 If getopt_long_only fails, try calling getopt_long using the
5150 really_longopts array.
5151 (help): Print a double dash for both EXACTLY_TWO_DASHES and
5154 * ldlex.h: Fix prototype of parse_args.
5156 * ld.texinfo: Document that long options starting with 'o'
5157 must be preceeded by two dashes. Change example of a single
5158 dashed long option from -oformat to -trace-symbol.
5160 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5162 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5163 (longopts[]): New --no-default-excludes option.
5164 (gld_${EMULATION_NAME}_list_options): Document.
5165 (gld_${EMULATION_NAME}_parse_args): Handle.
5167 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5169 * ldlang.c (new_stat): Revert the last beautification with "innocent"
5170 whitespace, it breaks the K&R C preprocessor.
5172 2000-12-11 DJ Delorie <dj@redhat.com>
5174 * ld.texinfo: Add notes about --whole-archive and gcc.
5176 2000-11-18 Fred Fish <fnf@be.com>
5178 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5179 (ld_options): Entry for --allow-shlib-undefined.
5180 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5181 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5183 * ld.texinfo: Document new command line switch.
5185 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
5187 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5188 .fixup is actually read/write.
5189 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5190 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5191 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5193 2000-12-11 Jan Hubicka <jh@suse.cz>
5195 * NEWS: Add note about x86_64 architecture.
5197 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
5199 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5200 Set DWARF2 sections to a VMA of zero.
5202 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5204 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5206 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5207 (sparc*-*-rtems*): Switched from a.out to ELF.
5209 2000-11-30 Jan Hubicka <jh@suse.cz>
5211 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5212 (eelf_x86_64.c): New.
5213 * Makefile.in: Regenerate.
5214 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5215 * emulparams/elf_x86_64.sh: New.
5217 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5219 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5220 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5222 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5223 merging non-a.out sections into CONSTRUCTING.
5225 2000-11-28 Nick Clifton <nickc@redhat.com>
5227 * ld.1 (COPYING): Mention that the GNU Free Documentation
5228 License is present in the sources, but not the output, and
5229 also available from the GNU website.
5230 (GNU Free Documentation License): Comment out this section.
5232 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5234 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5237 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5239 * ld.1: Remove old date so it does not give the impression the manpage
5242 2000-11-24 Nick Clifton <nickc@redhat.com>
5244 * configure.tgt (xscale-coff): Add target.
5245 (xscale-elf): Add target.
5247 2000-11-24 Fred Fish <fnf@be.com>
5249 * ldmain.c (main): Remove redundant init of config.make_executable
5252 2000-11-15 Richard Henderson <rth@redhat.com>
5254 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5256 2000-11-14 Kazu Hirata <kazu@hxi.com>
5258 * scripttempl/h8300.sc: Fix formatting.
5259 * scripttempl/h8300h.sc: Likewise.
5260 * scripttempl/h8300s.sc: Likewise.
5262 2000-11-14 Denis Chertykov <denisc@overta.ru>
5264 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5266 2000-11-09 Philip Blundell <pb@futuretv.com>
5268 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5269 around orphan sections whose names can be represented in C.
5271 2000-11-07 Jim Wilson <wilson@redhat.com>
5273 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5274 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5276 2000-11-06 Nick Clifton <nickc@redhat.com>
5278 * ld.texinfo: Add GNU Free Documentation License.
5279 * ldint.texinfo: Add GNU Free Documentation License.
5280 * ld.1: Add GNU Free Documentation License.
5282 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5284 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5285 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5287 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5288 Move 2000-11-02 Makefile.in changes to this file.
5289 * Makefile.in: Regenerate.
5291 2000-11-03 Nick Clifton <nickc@redhat.com>
5293 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5294 constructors and destructors.
5295 * scripttempl/h8300h.sc: Ditto.
5296 * scripttempl/h8300s.sc: Ditto.
5297 * scripttempl/h8500.sc: Ditto.
5298 * scripttempl/h8500b.sc: Ditto.
5299 * scripttempl/h8500c.sc: Ditto.
5300 * scripttempl/h8500m.sc: Ditto.
5301 * scripttempl/h8500s.sc: Ditto.
5302 * scripttempl/v850.sc: Ditto.
5303 * scripttempl/w65.sc: Ditto.
5304 * scripttempl/z8000.sc: Ditto.
5306 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5308 * Makefile.in (e_i386_chaos.c): New rule.
5309 (ALL_EMULATIONS): Added e_i386_chaos.o.
5310 * emulparams/elf_i386_chaos.sh: New file.
5311 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5313 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5315 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5316 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5317 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5318 library path suffix.
5319 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5321 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5323 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5324 for consecutive sections.
5326 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5328 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5330 * ld.texinfo: Added notes about this new option.
5332 2000-10-16 Nick Clifton <nickc@redhat.com>
5334 * emultempl/pe.em (_after_open): Add tests of return values from
5335 bfd functions. Emit appropriate error messages if necessary.
5337 2000-10-13 Nick Clifton <nickc@redhat.com>
5339 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5340 local variables - they are not used, but leave in the call to
5341 bfd_canonicalize_symtab.
5342 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5343 pe_dll_search_prefix.
5345 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5347 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5348 (longopts): New --dll-search-prefix option.
5349 (gld_${EMULATION_NAME}_list_options): Document.
5350 (gld_${EMULATION_NAME}_parse_args): Handle.
5351 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5352 dynamically, search for a dll named '<prefix><basename>.dll'
5353 in preference to 'lib<basename>.dll' if --dll-search-prefix
5356 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5358 * ldlang.c (section_already_linked): Set kept_section instead of
5361 2000-10-10 Kazu Hirata <kazu@hxi.com>
5363 * deffile.h: Fix formatting.
5364 * lexsup.c: Likewise.
5367 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5369 * pe-dll.c (make_one): Do not generate code thunk for DATA
5371 (process_def_file): deduce DATA flag for auto-export sumbols.
5373 2000-10-09 Kazu Hirata <kazu@hxi.com>
5375 * ld.h: Fix formatting.
5376 * ldcref.c: Likewise.
5377 * ldctor.h: Likewise.
5378 * ldemul.c: Likewise.
5379 * ldemul.h: Likewise.
5380 * ldexp.c: Likewise.
5381 * ldexp.h: Likewise.
5382 * ldfile.c: Likewise.
5383 * ldfile.h: Likewise.
5384 * ldlang.c: Likewise.
5385 * ldlang.h: Likewise.
5386 * ldmain.c: Likewise.
5387 * pe-dll.c: Likewise.
5389 * pe-dll.c: Revert some formatting fixes.
5391 2000-10-08 Kazu Hirata <kazu@hxi.com>
5393 * pe-dll.c: Fix formatting.
5395 2000-10-05 Kazu Hirata <kazu@hxi.com>
5397 * ldlang.c: Fix formatting.
5399 2000-10-03 DJ Delorie <dj@redhat.com>
5401 * pe-dll.c (fill_edata): initialize entire block
5402 (make_one): fill in correct section.
5404 2000-10-03 Kazu Hirata <kazu@hxi.com>
5406 * ldexp.c: Fix formatting.
5408 2000-10-02 DJ Delorie <dj@redhat.com>
5410 * emultempl/pe.em (gld_*_after_open): detect case where there two
5411 import libraries for same dll; rename one to ensure proper link
5414 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5416 (generate_edata): fix typo
5418 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5420 * scripttempl/crisaout.sc (ENTRY): Now __start.
5421 (.text): Add default setting for __start.
5422 Remove CONSTRUCTORS handling.
5423 (/DISCARD/): Add .gnu.warning.*.
5424 * emulparams/crislinux.sh (ENTRY): Now __start.
5425 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5426 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5427 (ENTRY): Now __start.
5428 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5429 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5431 2000-09-29 Kazu Hirata <kazu@hxi.com>
5433 * deffile.h: Fix formatting.
5435 * ldcref.c: Likewise.
5436 * ldctor.c: Likewise.
5437 * ldctor.h: Likewise.
5438 * ldemul.c: Likewise.
5439 * ldemul.h: Likewise.
5440 * ldexp.c: Likewise.
5441 * ldexp.h: Likewise.
5442 * ldfile.c: Likewise.
5443 * ldfile.h: Likewise.
5444 * ldlang.c: Likewise.
5445 * ldlang.h: Likewise.
5446 * lexsup.c: Likewise.
5448 * pe-dll.c: Likewise.
5450 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5452 * pe-dll.c (process_def_file): Uninitialized data wasn't
5453 exported with --export-all-symbols switch.
5455 2000-09-28 DJ Delorie <dj@redhat.com>
5457 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5458 noname work properly.
5460 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5462 * ld.texinfo (HPPA ELF32): New section.
5464 * emultempl/hppaelf.em (group_size): New.
5465 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5466 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5467 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5468 options to prevent abbreviations matching.
5469 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5470 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5472 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5474 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5475 on the m68*-*-elf target. Make it support COFF input objects.
5477 2000-09-21 Kazu Hirata <kazu@hxi.com>
5479 * ldmain.c: Fix formatting.
5480 * ldmisc.c: Likewise.
5481 * ldver.c: Likewise.
5482 * ldwrite.c: Likewise.
5484 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5486 * ldwrite.c (clone_section): Silence gcc warnings.
5488 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5490 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5491 out of memory failure.
5493 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5494 (clone_section): Handle out of memory failures. Rename var to
5495 avoid c++ reserved word.
5497 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5499 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5500 stub_name param to stub_sec_name.
5501 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5503 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5505 * emultempl/m68kelf.em: New file.
5506 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5507 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5508 * Makefile.in: Regenerate.
5510 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5512 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5515 2000-09-13 Nick Clifton <nickc@redhat.com>
5517 * ldmain.c (multiple_definition): Disable relaxation if
5518 multiple symbol definitions are encountered - otherwise the
5519 linker could abort with an assertion failure.
5521 2000-09-10 Nick Clifton <nickc@redhat.com>
5523 * mri.c: Fix formatting.
5525 2000-09-07 H.J. Lu <hjl@gnu.org>
5527 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5528 * configure: Rebuild.
5530 2000-09-07 H.J. Lu <hjl@gnu.org>
5532 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5533 * Makefile.in: Rebuild.
5535 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5537 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5538 broken list handling. Create __start_SECNAME and __stop_SECNAME
5539 when no place-holder. Add some comments. Test both SEC_CODE and
5540 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5541 Handle case where no output section statement created.
5543 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5545 * configure.tgt (sh-*-linux*): Added.
5546 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5547 * Makefile.in: Rebuilt.
5548 * emulparams/shelf_linux.sh: New file.
5549 * emulparams/shlelf_linux.sh: New file.
5551 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5553 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5554 try shuffling sections when the orphan happens to be the place
5555 holder. Keep count of unique section names generated so we speed
5556 the search for a new name.
5558 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5560 * configure: Rebuilt with new libtool.m4.
5562 2000-09-05 Nick Clifton <nickc@redhat.com>
5564 * Makefile.in: Regenerate.
5565 * aclocal.m4: Regenerate.
5566 * configure: Regenerate.
5567 * config.in: Regenerate.
5568 * po/ld.pot: Regenerate.
5570 * ldint.texinfo: Remove CVS revision marker - it foils local
5573 * emultempl/ticoff.em: Remove extraneous comma.
5575 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5577 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5578 to stub section flags.
5579 (hppa_for_each_input_file_wrapper): New.
5580 (hppa_lang_for_each_input_file): New.
5581 (lang_for_each_input_file): Define to call above.
5582 (multi_subspace): New.
5583 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5584 (PARSE_AND_LIST_PROLOGUE): Define.
5585 (PARSE_AND_LIST_LONGOPTS): Define.
5586 (PARSE_AND_LIST_OPTIONS): Define.
5587 (PARSE_AND_LIST_ARGS_CASES): Define.
5588 (hppaelf_finish): Call elf32_hppa_set_gp.
5589 (hppaelf_set_output_arch): Remove.
5590 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5592 * emulparams/hppalinux.sh (ELFSIZE): Define.
5594 (OTHER_READONLY_SECTIONS): Define.
5596 (GENERATE_SHLIB_SCRIPT): Define.
5598 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5599 to const throughout. Change `void *' to `PTR' throughout.
5600 (lang_memory_default): Function is local to file, add `static'.
5602 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5603 (ehppalinux.c): Likewise.
5604 (earmelf.c): Likewise.
5605 (earmelf_linux.c): Likewise.
5606 (earmelf_linux26.c): Likewise.
5607 * Makefile.in: Regenerate.
5609 * ld.h (ld_config_type): Add unique_orphan_sections.
5610 * lexsup.c (OPTION_UNIQUE): Define.
5611 (ld_options): Add "--unique".
5612 (parse_args): Handle it.
5613 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5614 search for an existing output section if unique_orphan_sections is
5615 set. Make use of bfd_get_unique_section_name rather than
5616 duplicating code here.
5617 * ld.texinfo: Describe --unique.
5619 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5620 optional arg to split-by-file.
5621 (parse_args): Handle them.
5622 * ld.texinfo: Update description of these options.
5623 * ldwrite.c (clone_section): Pass in the section name. Replace
5624 local code with bfd_get_unique_section_name.
5625 (split_sections): Tidy code and comments. Use a list traversal
5626 more appropriate to the list construction. Handle cooked section
5627 sizes. Split when split_by_reloc reached rather than exceeded.
5628 Track section size and split when split_by_file reached. Fix
5629 link_order_tail (even though it's not used).
5630 (ldwrite): Modify condition for calling split_sections to suit
5631 changed split_by_reloc and split_by_file.
5632 * ldmain.c (main): Init config.split_by_reloc and
5633 config.split_by_file to -1.
5634 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5635 Change split_by_file to bfd_size_type.
5637 2000-09-02 Nick Clifton <nickc@redhat.com>
5639 * configure.in: Increase version number to 2.10.91.
5640 * NEWS: Mention new ability to support removal of duplicate DWARF2
5642 * configure: Regenerate.
5643 * aclocal.m4: Regenerate.
5644 * config.in: Regenerate.
5646 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5648 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5650 * scripttempl/elf32avr.sc: Ditto.
5651 * scripttempl/elfd10v.sc: Ditto.
5652 * scripttempl/elfd30v.sc: Ditto.
5653 * scripttempl/elfi370.sc: Ditto.
5654 * scripttempl/elfm68hc11.sc: Ditto.
5655 * scripttempl/elfm68hc12.sc: Ditto.
5656 * scripttempl/elfi386beos.sc: Ditto.
5657 * scripttempl/v850.sc: Ditto.
5659 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5661 * acinclude.m4: Include libtool and gettext macros from the
5663 * aclocal.m4, configure: Rebuilt.
5665 2000-08-25 Nick Clifton <nickc@redhat.com>
5667 * ldlang.c (open_output): When choosing the target for a
5668 particular endianness, do nothing if the target is not
5671 2000-08-25 H.J. Lu <hjl@gnu.org>
5673 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5674 check -rpath nor LD_RUN_PATH for cross link.
5675 * ld.texinfo: Document the change.
5677 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5679 * NEWS: Mention support for CRIS.
5681 2000-08-23 H.J. Lu <hjl@gnu.org>
5683 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5684 the current runpath list from bfd_elf_get_runpath_list ()
5687 2000-08-22 H.J. Lu <hjl@gnu.org>
5689 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5690 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5691 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5692 trace_file_tries is non-zero.
5693 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5694 if trace_file_tries is non-zero.
5696 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5699 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5701 * NEWS: Mention i860 support.
5703 2000-08-14 Andreas Schwab <schwab@suse.de>
5705 * scripttempl/elf.sc: Fix last change to use correct comment
5708 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5710 * scripttempl/elf.sc: Add a comment giving the correspondence
5711 between sections, per-datum sections, and linkonce sections. Make
5712 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5715 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5717 * emulparams/elf32_i860.sh: New file.
5718 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5719 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5720 (eelf32_i860.c): New rule.
5721 * Makefile.in: Regenerate.
5723 2000-08-10 Nick Clifton <nickc@cygnus.com>
5725 * emulparams/mipspe.sh (ENTRY): Add definition.
5727 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5729 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5732 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5734 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5735 the final size of .bss section.
5736 * scripttempl/elfm68hc12.sc: Likewise.
5738 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5740 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5741 gld${EMULATION_NAME}_parse_args for consistency. Combine
5742 lastoptind and prevoptind vars, and keep track of last optind.
5743 (gld_${EMULATION_NAME}_list_options): Rename to
5744 gld${EMULATION_NAME}_list_options.
5746 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5748 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5749 (i586-sco-sysv5uw7.1.0).
5751 2000-07-27 H.J. Lu <hjl@gnu.org>
5753 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5754 (PARSE_AND_LIST_PROLOGUE): New.
5755 (PARSE_AND_LIST_LONGOPTS): Likewise.
5756 (PARSE_AND_LIST_OPTIONS): Likewise.
5757 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5758 (PARSE_AND_LIST_EPILOGUE): Likewise.
5760 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5762 * emultempl/armelf.em: Elide functions common to elf32.em,
5763 ie. most of the file.
5764 (arm_elf_after_open): New. Do arm specific things then call
5765 gld${EMULATION_NAME}_after_open.
5766 (arm_elf_before_allocation): New. Call
5767 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5768 (PARSE_AND_LIST_PROLOGUE): Define.
5769 (PARSE_AND_LIST_SHORTOPTS): Define.
5770 (PARSE_AND_LIST_LONGOPTS): Define.
5771 (PARSE_AND_LIST_OPTIONS): Define.
5772 (PARSE_AND_LIST_ARGS_CASES): Define.
5773 (LDEMUL_AFTER_OPEN): Define.
5774 (LDEMUL_BEFORE_ALLOCATION): Define.
5775 (LDEMUL_BEFORE_PARSE): Define.
5776 (LDEMUL_FINISH): Define.
5778 * emultempl/hppaelf.em: Similarly zap most of this file.
5779 (hppaelf_add_stub_section): Prototype.
5780 (hppaelf_layaout_sections_again): Prototype.
5781 (hook_in_stub): Prototype.
5782 (LDEMUL_SET_OUTPUT_ARCH): Define.
5783 (LDEMUL_FINISH): Define.
5784 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5786 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5787 (EXTRA_EM_FILE): New.
5788 * emulparams/armelf_linux.sh: Likewise.
5789 * emulparams/armelf_linux26.sh: Likewise.
5790 * emulparams/hppalinux.sh: Likewise.
5791 * emulparams/hppaelf.sh: Likewise.
5794 * emultempl/elf32.em: Fix formatting.
5795 (EXTRA_EM_FILE): Source it.
5796 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5797 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5798 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5799 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5800 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5801 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5802 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5803 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5804 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5805 allow functions in this file to be overridden.
5806 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5808 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5810 * emultempl/elf32.em: Reorganize file.
5812 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5814 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5815 specific option to fit 64-bit executable in the lower
5816 31-bit address range. This is done by changing start
5817 address of .interp (the very first section of executable)
5818 and then setting EF_ALPHA_32BIT elf header flag.
5820 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5822 * emultempl/m68kcoff.em: New file.
5823 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5824 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5826 * Makefile.in: Regenerate.
5828 2000-07-20 H.J. Lu <hjl@gnu.org>
5830 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5831 and "disable-new-dtags" to stop getopt from treating -d/-e as
5832 abbreviations for these options.
5834 2000-07-20 H.J. Lu <hjl@gnu.org>
5836 * ld.texinfo: Add documentation for --disable-new-dtags and
5839 * ldmain.c (main): Initialize link_info.new_dtags to false.
5841 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5842 --disable-new-dtags and --enable-new-dtags.
5843 (gld_${EMULATION_NAME}_list_options): Likewise.
5845 2000-07-05 Kenneth Block <krblock@computer.org>
5847 * lexsup.c: Add optional style to demangle switch
5848 * ld.texinfo: Document optional style to demangle switch.
5850 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5852 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5854 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5855 Regenerate dependencies.
5856 * Makefile.in: Rebuild.
5857 * configure.tgt (cris-*-*): New target.
5858 * emulparams/crisaout.sh, emulparams/criself.sh,
5859 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5860 * po/POTFILES.in, po/ld.pot: Regenerate.
5862 2000-07-20 H.J. Lu <hjl@gnu.org>
5864 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5865 Print out ignored -z options.
5867 2000-07-19 H.J. Lu <hjl@gnu.org>
5869 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5870 (PARSE_AND_LIST_PROLOGUE): New.
5871 (PARSE_AND_LIST_LONGOPTS): Likewise.
5872 (PARSE_AND_LIST_OPTIONS): Likewise.
5873 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5875 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5877 * lexsup.c (ld_options): Comment out 'z'.
5878 (parse_args): Likewise.
5880 * emultempl/elf32.em: Include "elf/common.h".
5881 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5883 (gld_${EMULATION_NAME}_list_options): Likewise.
5885 * ld.texinfo: Add documentation for the recognized -z options.
5887 2000-07-19 H.J. Lu <hjl@gnu.org>
5889 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5890 bfd_elf_set_dt_needed_soname ().
5892 2000-07-18 DJ Delorie <dj@cygnus.com>
5894 * pe-dll.c (pe_dll_id_target): check object target name also
5896 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5898 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5899 ${INIT_END} if relocating.
5900 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5902 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5904 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5905 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5906 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5907 errors introduced by the old dynamic lib search order.
5909 2000-07-17 DJ Delorie <dj@cygnus.com>
5911 * pe-dll.c (process_def_file): auto-export data items also
5912 (pe_process_import_defs): also see if _imp_ form needed
5914 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5916 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5917 for dll import libraries
5919 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5921 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5922 gcc 2.95.2 and later.
5924 2000-07-11 Kazu Hirata <kazu@hxi.com>
5926 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5929 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5931 * ldemul.h (struct lang_input_statement_struct): Remove forward
5933 (struct search_dirs): Likewise.
5934 * ldfile.h (struct lang_input_statement_struct): Likewise.
5935 Protect file from multiple inclusion.
5936 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5937 declaration from macro to file scope.
5939 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5940 * ldgram.y: Likewise here.
5941 * ldlang.c: And here.
5942 * ldmain.c: And here.
5943 * mpw-elfmips.c: And here.
5944 * mpw-eppcmac.c: And here.
5945 * emultempl/aix.em: And here.
5946 * emultempl/armcoff.em: And here.
5947 * emultempl/armelf.em: And here.
5948 * emultempl/armelf_oabi.em: And here.
5949 * emultempl/beos.em: And here.
5950 * emultempl/elf32.em: And here.
5951 * emultempl/hppaelf.em: And here.
5952 * emultempl/linux.em: And here.
5953 * emultempl/lnk960.em: And here.
5954 * emultempl/pe.em: And here.
5955 * emultempl/sunos.em: And here.
5956 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5957 * mpw-idtmips.c: Ditto.
5958 * emultempl/generic.em: Ditto.
5959 * emultempl/gld960.em: Ditto.
5960 * emultempl/gld960c.em: Ditto.
5961 * emultempl/mipsecoff.em: Ditto.
5962 * emultempl/ticoff.em: Ditto.
5963 * emultempl/vanilla.em: Ditto.
5965 * pe-dll.c: Include ldfile.h
5966 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5968 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5969 arguments to bfd_elf32_size_dynamic_sections call.
5970 (gldelf32ebmip_place_orphan): Add missing arguments to
5971 lang_leave_output_section_statement call.
5973 2000-07-10 H.J. Lu <hjl@gnu.org>
5975 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5977 (strhash): Likewise.
5978 (compute_dll_image_base): Likewise.
5979 (pe_undef_found_sym): Likewise.
5980 (pe_undef_cdecl_match): Likewise.
5981 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5982 argument "arch" with ATTRIBUTE_UNUSED.
5984 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5986 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5988 From Ryan Bradetich <rbradetich@uswest.net>
5989 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5991 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5993 Changes to create multiple linker stubs, positioned immediately
5994 before the section where they are required.
5995 * emultempl/hppaelf.em: Include elf32-hppa.h.
5996 (stub_sec, file_chain): Delete.
5997 (hppaelf_create_output_section_statements): Don't make a stub
5999 (hook_stub_info): New struct.
6000 (hook_in_stub): New function.
6001 (hppaelf_add_stub_section): New function.
6002 (hppaelf_finish): Do nothing for relocateable links. Modify the
6003 call to elf32_hppa_size_stubs. Move code for updating section
6005 (hppaelf_layaout_sections_again): ..to here, a new function.
6007 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
6008 broken list handling. Pass in a pointer to the list.
6009 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
6011 (hppaelf_before_parse): Prototype.
6012 (hppaelf_set_output_arch): Prototype.
6013 (hppaelf_create_output_section_statements): Prototype.
6014 (hppaelf_delete_padding_statements): Prototype.
6015 (hppaelf_finish): Prototype.
6018 * emultempl/hppaelf.em: Include ctype.h.
6019 (struct orphan_save): New.
6020 (gld${EMULATION_NAME}_place_orphan): New.
6021 (output_rel_find): New.
6022 (hppaelf_get_script): Update from elf32.em.
6023 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
6024 Change emulation_name field to "${EMULATION_NAME}". Add
6025 gld${EMULATION_NAME}_place_orphan.
6027 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
6028 ehppalinux.o, sort it. Regenerate dependencies.
6029 (ehppalinux.c): Depend on hppaelf.em
6030 * Makefile.in: Regenerate.
6032 * configure.tgt: targ_emul=hppalinux for hppa*linux
6034 * emulparams/hppalinux.sh: New.
6035 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
6037 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6039 * lexsup.c (parse_args): Copy section name.
6041 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
6043 * emultempl/pe.em: institute the following search order for
6044 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
6045 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
6046 static lib (libfoo.a) if none of the above are found.
6048 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
6050 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
6051 (longopts): New --{enable,disable}-auto-image-base options.
6052 (gld_${EMULATION_NAME}_list_options): Document.
6053 (gld_${EMULATION_NAME}_parse): Handle.
6054 (strhash): New static function.
6055 (compute_dll_image_base): New static function.
6056 (gld_${EMULATION_NAME}_set_symbols): Use.
6058 2000-07-05 DJ Delorie <dj@redhat.com>
6062 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6064 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
6065 * emulparams/elf32btsmip.sh: New file.
6066 * Makefile.am: Add traditional mips target.
6067 * Makefile.in: Rebuild.
6069 2000-07-01 H.J. Lu <hjl@gnu.org>
6071 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
6072 automake to use YLWRAP.
6073 * Makefile.in: Rebuild.
6075 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6077 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6078 (CLEANFILES): Add DEPA.
6079 * Makefile.in: Regenerate.
6081 2000-06-30 Timothy Wall <twall@ppc>
6083 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
6084 the page in the upper octet of the address.
6086 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6088 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
6090 2000-06-24 Alan Modra <alan@linuxcare.com.au>
6092 * NEWS: arm-elf does --gc-sections too.
6094 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6096 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6098 * Makefile.in: Regenerate.
6100 2000-06-21 H.J. Lu <hjl@gnu.org>
6102 * Makefile.am: Rebuild dependency.
6103 * Makefile.in: Rebuild.
6105 2000-06-20 H.J. Lu <hjl@gnu.org>
6107 * Makefile.am: Rebuild dependency.
6108 * Makefile.in: Rebuild.
6110 2000-06-20 Timothy Wall <twall@cygnus.com>
6112 * scripttempl/tic54xcoff.sc: New.
6113 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
6114 * gen-doc.texi: Add flag for TI COFF.
6115 * ld.texinfo: Add documentation for TI COFF handling switches.
6116 * emultempl/ticoff.em: New. TI COFF handling.
6117 * configure.tgt: Add tic54x target.
6118 * Makefile.am: Add tic54x target.
6119 * Makefile.in: Ditto.
6121 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6123 * ldmain.c (set_scripts_dir): Correct pointer comparison when
6124 checking for backslashes.
6126 2000-06-19 Alan Modra <alan@linuxcare.com.au>
6128 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
6130 2000-06-18 Alan Modra <alan@linuxcare.com.au>
6132 * NEWS: Update list of targets supporting --gc-sections.
6134 * scripttempl/elf.sc: KEEP .eh_frame contents.
6135 * scripttempl/elfd30v.sc: Same here.
6137 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6139 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
6141 * Makefile.in: Rebuild.
6142 * configure.tgt: Recognize m68hc12 and m68hc11.
6143 * scripttempl/elfm68hc12.sc: New file.
6144 * emulparams/m68hc12elfb: New emulation.
6145 * emulparams/m68hc12elf: New emulation.
6146 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
6147 (includes a memory.x script to define the ROM and RAM banks).
6148 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
6149 New configuration files for support of Motorola 68hc11
6151 2000-06-15 Alan Modra <alan@linuxcare.com.au>
6153 * ldmain.c (main): Only change SEC_READONLY for final link.
6155 2000-06-13 H.J. Lu <hjl@gnu.org>
6157 * configure: Regenerate.
6159 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6161 * configure.in (VERSION): Update to show this is the CVS mainline.
6163 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6165 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6166 input objects to be ECOFF.
6167 (check_sections): einfo takes %B, not %P, to print a BFD name.
6169 2000-06-05 Michael Matz <matz@ifh.de>
6171 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6174 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6176 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
6178 * emulparams/avr1200.sh (STACK): Define as 0.
6179 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6180 * emulparams/avr4433.sh (STACK): Likewise.
6181 * emulparams/avr44x4.sh (STACK): Likewise.
6182 * emulparams/avr85xx.sh (STACK): Likewise.
6183 * emulparams/avrmega103.sh (STACK): Likewise.
6184 * emulparams/avrmega161.sh (STACK): Likewise.
6185 * emulparams/avrmega603.sh (STACK): Likewise.
6186 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6187 (__stack): Define from ${STACK} for main().
6189 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6191 * Makefile.am: Update dependencies with "make dep-am"
6192 * Makefile.in: Regenerate.
6194 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6196 * ldmain.c: Include filenames.h.
6197 (set_scripts_dir): Support backslashes in program name.
6199 2000-05-22 Igor Shevlyakov <igor@windriver.com>
6201 * ldmain.c (main): When deciding if ".text" section should be
6202 read-only, don't forget to reset SEC_READONLY because it
6203 could be already set.
6205 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6207 * ld.1: Add documentation for new command line option:
6208 --section-start <sectionname>=<sectionorg>
6209 This is a generic version of -Ttext etc. which accepts
6210 any section name as a parameter instead of just text/data/
6212 * ld.texinfo: More docs.
6214 * lexsup.c: (parse_args): Recognize new command line option.
6215 (ld_options): Add new option.
6217 2000-05-18 H.J. Lu <hjl@gnu.org>
6219 * lexsup.c (parse_args): `i' == `r', not `q'.
6221 2000-05-18 Jeffrey A Law (law@cygnus.com)
6223 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6225 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6226 Rick Gorton <gorton@scrugs.lkg.dec.com>
6228 Add support for '-q' == '--emit-relocs' switch.
6229 * ldmain.c (main): Default to false.
6230 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6231 * NEWS: Describe the emitrelocations switch.
6232 * ld.texinfo: Describe the emitrelocations switch.
6234 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6236 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6237 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6238 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6241 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6243 * lexsup.c (parse_args): Update the year in the copyright notice.
6245 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6247 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6248 Replace defines with those from intl/libgettext.h to quieten gcc
6251 2000-05-10 H.J. Lu <hjl@gnu.org>
6253 * ldlang.c (open_input_bfds): Don't load the same file within
6254 a group again if the whole archive has been loaded already.
6256 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6258 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6259 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6262 2000-05-01 Jim Wilson <wilson@cygnus.com>
6264 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6266 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6267 host "ia64-*-linux-gnu*".
6269 2000-04-29 Andreas Jaeger <aj@suse.de>
6271 * ld.h: Correctly check GCC version.
6273 2000-04-25 Jeffrey A Law (law@cygnus.com)
6275 * Makefile.am: Add PA64 support. Add missing dependencies for
6277 * Makefile.in: Rebuilt.
6278 * configure.tgt: Add PA64 support (currently disabled).
6280 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6282 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6283 (output_rel_find): New function.
6284 (hold_section, hold_use): Delete.
6285 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6286 hold_interp): Make local to place_orphan.
6287 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6288 rather than place_section to find possible previous use of orphan.
6289 Similarly find the place-holder output sections. Use returned
6290 value from lang_enter_output_section_statement rather than calling
6291 lang_output_section_statement_lookup.
6292 * emultempl/armelf.em: Same here.
6293 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6295 * ldlang.c (lang_enter_output_section_statement): Return output
6297 * ldlang.h (lang_enter_output_section_statement): Change
6300 * ldlang.h (lang_output_section_statement): Export it.
6301 * ldlang.c (lang_output_section_statement): Ditto.
6303 2000-04-24 Nick Clifton <nickc@cygnus.com>
6305 * ld.texinfo (Output Section Data): Add note that section data
6306 commands cannot appear outside of section directives.
6308 2000-04-2 Matthew Green <mrg@cygnus.com>
6310 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6312 2000-04-21 Richard Henderson <rth@cygnus.com>
6313 David Mosberger <davidm@hpl.hp.com>
6315 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6316 (eelf64_ia64.c): New rule.
6317 * Makefile.in: Rebuild.
6318 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6319 * emulparams/elf64_ia64.sh: New file.
6321 2000-04-21 Richard Henderson <rth@cygnus.com>
6323 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6325 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6327 * dep-in.sed: Match space at start of file name, not at end.
6329 2000-04-18 H.J. Lu <hjl@gnu.org>
6331 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6332 lang_leave_output_section_statement () after calling
6333 lang_enter_output_section_statement ().
6334 * emultempl/armelf.em: Likewise.
6336 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6338 * emultempl/elf32.em (struct orphan_save): Add section field.
6339 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6340 better order, and place first orphan section as we did before the
6341 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6342 Don't call make_bfd_section here, let wild_doit do the job for us.
6343 Don't build a statement list when we'll only throw it away.
6344 * emultempl/armelf.em: Ditto.
6345 * emultempl/pe.em: Similarly.
6347 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6349 * scripttempl/elfppc.sc: Remove.
6350 * emulparams/elf32ppc.sh: Use elf.sc.
6351 * emulparams/elf32lppc.sh: Use elf.sc.
6352 * emulparams/elf32ppclinux.sh: Use elf.sc.
6353 * emulparams/elf32ppcsim.sh: New file.
6354 * emulparams/elf32lppcsim.sh: New file.
6355 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6356 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6357 * Makefile.in: Regenerate.
6358 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6360 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6362 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6363 ~SEC_ALLOC sections too. Init start address of debug sections.
6364 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6365 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6366 Also set all relocateable section start addresses.
6368 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6370 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6371 Add new BSS_PLT variable for when .plt need not be contained in
6372 the file. Move _etext so that it is also after .fini, and provide
6373 both etext and _etext with a leading underscore. Mark the start
6376 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6378 * emultempl/elf32.em (struct orphan_save): New.
6379 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6380 hold_interp): Make them struct orphan_save.
6381 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6382 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6383 the end of the relevant section list. Also add associated section
6384 statements to the end of any previous orphan statements.
6385 * emultempl/armelf.em: Similarly.
6386 * emultempl/pe.em: Similarly.
6388 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6390 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6392 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6394 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6395 --enable-build-warnings option.
6396 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6397 * Makefile.in, configure: Re-generate.
6399 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6401 * po/ld.pot: Regenerate.
6403 * lexsup.c (help): Restore translated part of bug string.
6405 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6406 (DEP): Quote when passing vars to sub-make. Add warning message
6408 (DEP1): Rewrite for "gcc -MM".
6409 (CLEANFILES): Add DEP2.
6410 Update dependencies.
6411 * Makefile.in: Regenerate.
6413 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6415 * ld.h: #include "bin-bugs.h"
6416 * lexsup.c (help): Use REPORT_BUGS_TO.
6418 2000-03-27 Denis Chertykov <denisc@overta.ru>
6420 * configure.tgt (avr-*-*): New target support.
6421 * Makefile.am: Likewise.
6422 * scripttempl/elf32avr.sc: New script file.
6423 * emulparams/avr1200.sh: New file.
6424 * emulparams/avr23xx.sh: New file.
6425 * emulparams/avr4433.sh New file.
6426 * emulparams/avr44x4.sh New file.
6427 * emulparams/avr85xx.sh New file.
6428 * emulparams/avrmega103.sh New file.
6429 * emulparams/avrmega161.sh New file.
6430 * emulparams/avrmega603.sh New file.
6431 * Makefile.in: Regenerate.
6433 2000-03-09 Andreas Jaeger <aj@suse.de>
6435 * Makefile.am (check-DEJAGNU): Also unset LANG.
6436 * Makefile.in: Rebuild.
6438 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6440 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6443 2000-03-02 H.J. Lu <hjl@gnu.org>
6445 * emulparams/elf32mcore.sh: Include "getopt.h".
6447 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6449 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6451 2000-03-01 H.J. Lu <hjl@gnu.org>
6453 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6454 * emulparams/shpe.sh: Likewise.
6456 2000-03-01 Nick Clifton <nickc@cygnus.com>
6458 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6459 to unused parameters.
6461 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6462 functions only used by DLL code.
6463 (_place_orphan): Initialise 'dollar'.
6465 2000-03-01 H.J. Lu <hjl@gnu.org>
6467 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6468 indicate if the undefined symbol is a fatal error or not.
6469 Don't delete the output file if "fatal" is false.
6471 2000-02-29 H.J. Lu <hjl@gnu.org>
6473 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6474 Set LC_COLLATE and LC_ALL to null and export them. It is for
6475 sort which expects the C locale.
6476 Add $(LIBS) to all $(HOSTING_LIBS).
6477 * Makefile.in: Rebuild.
6479 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6481 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6482 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6483 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6484 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6485 find_potential_libraries.
6487 2000-02-28 Jim Blandy <jimb@redhat.com>
6489 * ldgram.y (exclude_name_list): Don't require a comma to separate
6490 list entries; the lexer considers commas to be valid part of a
6491 filename, so in something like `foo, bar' the comma is considered
6492 part of the first filename, `foo,'.
6493 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6495 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6497 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6498 host "i[3456]86-*-freebsdelf*".
6500 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6502 * scripttempl/i386go32.sc: Move misplaced semicolons.
6504 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6506 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6507 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6508 (eelf64hppa.c, ehppaelf.c): Remove targets.
6509 * Makefile.in: Rebuild.
6511 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6513 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6514 GNU/Linux/sparc, but keep the default as 32.
6516 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6517 it default if sparcv9 or sparc64.
6519 2000-02-24 Nick Clifton <nickc@cygnus.com>
6521 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6522 * Makefile.in: Regenerate.
6523 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6525 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6526 find_potential_libraries.
6527 * ldemul.c (ldemul_find_potential_libraries): New function.
6529 * ldfile.c (ldfile_open_file_search): Allow function to be
6531 (ldfile_open_file): Call ldemul_find_potential_libraries.
6532 * ldfile.h: Add prototype for ldfile_open_file_search.
6534 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6536 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6537 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6539 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6540 (gld_X_find_potential_libraries): New function. Search for
6541 libraries called "*.lib".
6543 * scripttempl/pe.sc: Add .pdata section.
6545 2000-02-23 Richard Henderson <rth@cygnus.com>
6547 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6548 Add and use memory regions.
6550 2000-02-23 Linas Vepstas (linas@linas.org)
6552 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6554 * Makefile.am: Add support for Linux/IBM 370.
6555 * configure.tgt: Likewise.
6557 * Makefile.in: Regenerate.
6559 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6561 * ldlang.c (print_input_section, print_data_statement,
6562 print_reloc_statement, print_padding_statement, insert_pad,
6563 size_input_section, lang_check_section_addresses,
6564 lang_size_sections, lang_do_assignments, lang_set_startof,
6565 lang_one_common): Change `opb' to unsigned.
6566 (lang_do_assignments): Also change `size' to unsigned.
6568 2000-02-16 Richard Henderson <rth@cygnus.com>
6570 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6572 2000-02-16 Timothy Wall <twall@cygnus.com>
6574 * mri.c (mri_draw_tree): Add default LMA region argument to call
6575 to lang_leave_output_section_statement.
6576 * ldlang.h: Update prototypes with LMA region arguments.
6577 * ldlang.c (lang_size_sections): Encapsulate region bounds
6578 checking in os_check_region call.
6579 (os_check_region): New function.
6580 (lang_output_section_statement_lookup): Initialize lma_region.
6581 (lang_leave_output_section_statement): Add LMA region argument.
6582 (lang_leave_overlay): Ditto.
6583 * ldgram.y: Handle LMA region syntax.
6584 * ld.texinfo (Output Section Description): Describe LMA region usage.
6585 * emultempl/armelf.em (gld$place_orphan): Add default value for
6586 lma region in call to lang_leave_output_section_statement.
6587 * emultempl/elf32.em (gld$place_orphan): Add default value for
6588 lma region in call to lang_leave_output_section_statement.
6589 * emultempl/pe.em (gld$place_orphan): Add default value for
6590 lma region in call to lang_leave_output_section_statement.
6593 2000-02-04 Timothy Wall <twall@redhat.com>
6595 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6596 octets when calculating section end addresses.
6598 2000-02-04 Timothy Wall <twall@redhat.com>
6600 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6602 2000-02-03 Timothy Wall <twall@redhat.com>
6604 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6606 * ldlang.c (print_input_section, print_data_statement,
6607 print_reloc_statement, print_padding_statement): Print target
6608 address values and section sizes as bytes, not octets.
6609 (insert_pad) Calculate padding size in octets, and adjust "dot"
6611 (size_input_section) Always adjust "dot" by bytes, not octets.
6612 (lang_check_section_addresses, lang_do_assignments) Adjust
6613 "dot" by bytes, not octets. Use the larger of the directive size
6614 or octets_per_byte for the number of octets actually allocated in
6616 (lang_set_startof) Make sure STARTOF returns a target address.
6617 (lang_one_common) Record size changes in octets.
6618 (lang_abs_symbol_at_end_of) Section end symbol's value is
6619 recorded in target bytes.
6620 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6621 to be clear about behavior when an octet is smaller than one byte.
6623 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6625 * ldcref.c (output_cref): Don't pass message strings to printf
6629 * ldmisc.c (vfinfo): Same here.
6632 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6634 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6635 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6636 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6637 Add missing NULL initialisers, and comments.
6639 2000-01-21 Nick Clifton <nickc@cygnus.com>
6641 * ldlang.c (lang_size_sections): Fix typo in comment.
6643 2000-01-18 H.J. Lu <hjl@gnu.org>
6645 * ldlang.c (lang_size_sections): Also update the current
6646 address of a region if the SEC_NEVER_LOAD bit is not set.
6648 2000-01-10 Philip Blundell <pb@futuretv.com>
6650 * configure.tgt (arm*-*-conix*): New target.
6652 2000-01-07 Nick Clifton <nickc@cygnus.com>
6654 * ld.texinfo (Options): Remind users to preceed linker command
6655 line switches with -Wl, (or whatever is appropriate) if it is
6656 being invoked by a comnpiler driver program.
6657 Fix description of the behaviour of the -n command line switch.
6659 2000-01-05 Catherine Moore <clm@cygnus.com>
6661 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6663 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6664 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6665 (exclude_name_list): New.
6666 ldlang.c (walk_wild_section): Support list of excluded files.
6667 (print_wild_statement): Likewise.
6668 (lang_add_wild): Likewise.
6669 * ldlang.h (lang_wild_statement_type): Likewise.
6670 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6672 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6674 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6675 (process_def_file): Use.
6676 (pe_dll_compat_implib): New variable.
6679 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6680 pe_dll_compat_implib.
6682 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6683 compat-implib options.
6684 (gld_${EMULATION_NAME}_list_options): List new options.
6685 (gld_${EMULATION_NAME}_parse_args): Handle.
6687 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6690 * deffilep.y (opt_name): Allow "." in name.
6692 For older changes see ChangeLog-9899
6698 version-control: never