1 2003-12-04 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
3 * armpe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
5 2003-12-04 Alan Modra <amodra@bigpond.net.au>
7 * ldlang.c (lang_do_assignments): Function return is void.
8 * ldlang.h (lang_do_assignments): Ditto.
9 * emultempl/netbsd.em (gld${EMULATION_NAME}_before_parse): Declare.
10 * Makefile.am (ens32knbsd.c): Depend on netbsd.em.
11 * Makefile.in: Regenerate.
13 2003-12-03 Dave Airlie <airlied@linux.ie>
15 * configure.tgt: Add vax-linux-gnu target.
17 2003-12-03 Dmitry Diky <diwil@mail.ru>
19 * scripttempl/elf32msp430.sc (HEAP_SECTION_MSP430): New section for
21 (_etext): provide this defenition for all scripts.
23 2003-12-02 Kazu Hirata <kazu@cs.umass.edu>
25 * emultempl/beos.em: Remove ARGSUSED.
27 2003-12-03 Alan Modra <amodra@bigpond.net.au>
29 * emultempl/pe.em (pe_fixup_stdcalls): Update for renamed
30 bfd_link_hash_entry field "next" -> "und_next".
31 (pe_find_data_imports): Likewise.
32 (gld_${EMULATION_NAME}_after_open): Likewise.
33 * emultempl/sunos.em (before_allocation): Likewise.
35 2003-12-02 Nick Clifton <nickc@redhat.com>
37 * ld.texinfo (Options): --ignore-all is no longer the default
38 behaviour for shared libraries and dynamic executables.
40 2003-12-02 Alan Modra <amodra@bigpond.net.au>
42 * Makefile.am: Run "make dep-am".
43 * Makefile.in: Regenerate.
45 2003-12-02 Alan Modra <amodra@bigpond.net.au>
47 * ldmain.c (main): Remove mpc860c0 code.
48 * lexsup.c (enum option_values): Delete OPTION_MPC860C0.
49 (ld_options): Delete mpc860c0 entry.
50 (parse_args): Likewise.
52 2003-12-01 Alan Modra <amodra@bigpond.net.au>
54 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Test
55 hash table type rather than testing creator flavour.
56 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
57 Only create stub_file bfd if hash table creator is as expected.
58 (gld${EMULATION_NAME}_finish): Test stub_file.
60 2003-11-28 Marcel Moolenaar <marcel@xcllnt.net>
62 * emulparams/elf64_ia64_fbsd.sh (TEXT_START_ADDR): Define.
65 2003-11-18 James E Wilson <wilson@specifixinc.com>
67 * ldlang.c (lang_process): Move lang_reset_memory_regions call after
68 lang_do_assignments call.
70 * emulparams/elf64_ia64.sh (OTHER_PLT_RELOC_SECTIONS): Include
73 2003-11-10 Jonathan Wilson <jonwil@tpgi.com.au>
75 * scripttempl/pe.sc: Add support for TLS sections.
77 2003-11-09 Alan Modra <amodra@bigpond.net.au>
79 * configure.host (HOSTING_LIBS): Group libgcc and libc with
80 --start-group, --end-group pair.
81 (*-*-netbsd*, am33_2.0-*-linux*): Use the default HOSTING_LIBS.
82 (am33_2.0-*-linux*): Edit default HOSTING_CRT0.
83 (arm*-*-linux-gnu*): Remove extraneous '*' in sed expression.
84 (hppa*64*-*-linux*, hppa*-*-linux*): Remove target specific case.
86 2003-11-07 Jonathan R. Grant <jg-binutils@jguk.org>
88 * ldfile.c (ldfile_open_file): Use "No such file" error message.
90 2003-11-06 Bruno Rohee <bruno@rohee.com>
92 * ls.texinfo: Fix "the the" typo.
94 2003-11-05 Alan Modra <amodra@bigpond.net.au>
96 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Only do
97 pe_dll_extra_pe_debug stuff when DLL_SUPPORT defined.
98 (pr_sym): Move inside #ifdef DLL_SUPPORT.
100 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Zap
103 * emulparams/elf32_i860.sh (TEXT_START_ADDR): Define.
105 2003-11-04 Alan Modra <amodra@bigpond.net.au>
107 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Call
110 2003-10-31 Nick Clifton <nickc@redhat.com>
112 * ldlang.c (lookup_name): When looking for a previously loaded
113 file compare the local_sym_name not the filename, as the
114 filename might have been transformed via the search directory
116 If the sought-for file has not been found in the input file
117 chain then create a new node with the search_dirs_flag set so
118 that the entire set of directory paths will be scanned for it.
120 2003-10-30 Andrew Cagney <cagney@redhat.com>
122 * emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry"
123 with "struct bfd_symbol".
125 2003-10-30 Phil Edwards <phil@codesourcery.com>
127 * Makefile.am (ALL_EMULATIONS): Add elf32mipswindiss.o.
128 (eelf32mipswindiss.c): New target.
129 * Makefile.in: Regenerated.
130 * emulparams/elf32mipswindiss.sh: New file.
131 * configure.tgt (i[3-7]86-*-vxworks*, arm-*-vxworks, sh-*-vxworks,
132 mips*-*-vxworks*): Use ELF now.
133 (mips*-*-windiss): New stanza, use elf32mipswindiss.
135 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
137 * scripttempl/elfm68hc12.sc: Define eeprom memory region.
139 2003-10-25 Kazu Hirata <kazu@cs.umass.edu>
141 * ChangeLog-9197: Fix typos.
143 * ld.texinfo: Likewise.
144 * ldlang.c: Fix comment typos.
146 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
148 * ldlang.c (lang_vers_match): Fix a typo.
150 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
152 * ldlang.c (lang_vers_match): Check demangled symbols.
154 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
156 * ldlang.c (lang_vers_match): Check "symbol" instead of
157 "wildcard" and "pattern". Fix a typo.
158 (lang_finalize_version_expr_head): Likewise.
159 (lang_register_vers_node): Likewise.
160 (realsymbol): New function.
161 (lang_new_vers_pattern): Set "symbol" and remove "wildcard".
163 * ldlex.l (V_IDENTIFIER): Allow '\\'.
165 2003-10-24 Nick Clifton <nickc@redhat.com>
167 * emultempl/m68hc1xelf.em (before_allocation): Add missing second
168 parameter to lang_memory_region_lookup.
170 2003-10-22 Jakub Jelinek <jakub@redhat.com>
172 * ldlang.c: Include hashtab.h.
173 (lang_vers_match_lang_c, lang_vers_match_lang_cplusplus,
174 lang_vers_match_lang_java): Remove.
175 (lang_vers_match): New function.
176 (lang_new_vers_pattern): Initialize wildcard and mask
177 fields, don't initialize match.
178 (lang_new_vers_node): Use xcalloc. Adjust for globals and
179 locals field type changes. Set match field.
180 (version_expr_head_hash, version_expr_head_eq): New functions.
181 (lang_finalize_version_expr_head): New function.
182 (lang_register_vers_node): Call lang_finalize_version_expr_head.
183 Search in hash table if not wildcard when looking for duplicates.
184 * emultempl/ppc64elf.em (new_vers_pattern): Don't bother with
185 duplicate checking. Initialize all fields of dot_entry from entry
186 with the exception of pattern and next.
188 2003-10-21 Nick Clifton <nickc@redhat.com>
190 * ldlang.c (lang_memory_region_lookup): Add second parameter -
191 create - which is true if the region is being created. Issue
192 appropriate warning messages for finding and not finding
193 already created regions.
194 (lang_memory_default): Use DEFAULT_MEMORY_REGION.
195 (lang_leave_overlay_section): Likewise.
196 (lang_size_sections_1): Likewise.
197 Pass second parameter to lang_memory_region_lookup.
198 (lang_get_regions): Likewise.
199 * ldlang.h (DEFAULT_MEMORY_REGION): Define.
200 Update prototype for lang_memory_region_lookup.
201 * ldgram.y: Pass second parameter to lang_memory_region_lookup.
202 Use DEFAULT_MEMORY_REGION instead of "*default".
204 2003-10-20 Andrew Cagney <cagney@redhat.com>
206 * pe-dll.c: Replace "struct sec" with "struct bfd_section".
208 2003-10-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
210 * Makefile.am: Remove old (before GCC 3.3) emulations for AVR
211 target: avr1200, avr23xx, avr4433, avr44x4, avr85xx, avrmega103,
212 avrmega161, avrmega603. Default to avr2.
213 * Makefile.in: Regenerate.
214 * configure.tgt: Likewise.
215 * emulparams/avr1200.sh: Remove.
216 * emulparams/avr23xx.sh: Remove.
217 * emulparams/avr4433.sh: Remove.
218 * emulparams/avr44x4.sh: Remove.
219 * emulparams/avr85xx.sh: Remove.
220 * emulparams/avrmega103.sh: Remove.
221 * emulparams/avrmega161.sh: Remove.
222 * emulparams/avrmega603.sh: Remove.
223 * scripttempl/elf32avr.sc: Remove.
225 2003-10-19 Andreas Schwab <schwab@suse.de>
227 * emultempl/ticoff.em (gld_${EMULATION_NAME}_list_options): Add
230 * deffilep.y: Remove commas from %token lines.
232 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
234 * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
235 relaxation always; don't exclude relocatable linking. Adjust for
236 _bfd_mmix_prepare_linker_allocated_gregs renamed to
237 _bfd_mmix_before_linker_allocation.
238 (mmix_after_allocation): Adjust for
239 _bfd_mmix_finalize_linker_allocated_gregs renamed to
240 _bfd_mmix_after_linker_allocation.
241 * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
243 * ldlang.c (lang_size_sections): Last, set _cooked_size for output
246 2003-10-16 Alan Modra <amodra@bigpond.net.au>
248 * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use
249 GENSCRIPTS and GEN_DEPENDS in place of these.
250 * Makefile.in: Regenerate.
251 * genscripts_extra.sh: Delete. Merge extra functionality to..
252 * genscripts.sh: ..here.
254 * emulparams/gld960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Define.
255 * emulparams/gld960coff.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
256 * emulparams/lnk960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
257 * emulparams/m88kbcs.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
258 * emulparams/vanilla.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
260 2003-10-16 Alan Modra <amodra@bigpond.net.au>
262 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Don't
263 use $EMULATION_NAME to call bfd function.
265 2003-10-14 Danny Smith <dannysmith@users.sourceforge.net>
267 * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
268 to identify data symbols.
270 2003-10-13 Richard Sandiford <rsandifo@redhat.com>
272 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
273 definition from elf64btsmip.sh.
274 (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
275 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
276 * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
277 * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
278 (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
279 Define __program_header_table in terms of __elf_header.
281 2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
283 * Makefile.am (eelf64_ia64.c): Also depend on
284 $(srcdir)/emultempl/ia64elf.em.
285 * Makefile.in: Regenerated.
287 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
289 * emultempl/ia64elf.em: New.
291 2003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
293 * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
295 2003-10-11 Hans-Peter Nilsson <hp@bitrange.com>
297 * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
298 defined before the statement using DEFINED yield 1.
299 * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
300 call lang_track_definedness on symbol. In subsequent phases, use
301 lang_symbol_definition_iteration and lang_statement_iteration to
302 check whether the symbol was defined before the current statement.
303 (exp_fold_tree) <case etree_assign et al>: Call
304 lang_update_definedness before updating symbol type when setting
306 * ldlang.c (lang_definedness_table): New variable.
307 (lang_definedness_newfunc, lang_track_definedness)
308 (lang_symbol_definition_iteration, lang_update_definedness): New
310 (lang_init): Initialize lang_definedness_table and
311 lang_statement_iteration.
312 (lang_finish): Destroy bfd_hash_table_free.
313 (lang_size_sections): Increment lang_statement_iteration.
314 (lang_do_assignments_1): New function with former
315 lang_do_assignments contents. Change recursive calls to call this
317 (lang_do_assignments): Evacuate contents. Increment
318 lang_statement_iteration, then just call lang_do_assignments_1.
319 * ldlang.h (struct lang_definedness_hash_entry)
320 (lang_statement_iteration, lang_track_definedness)
321 (lang_symbol_definition_iteration, lang_update_definedness):
324 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
326 * scripttempl/elf.sc (__executable_start): Provide.
328 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
330 * emulparams/armelf.sh: Define NO_SMALL_DATA.
331 * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
332 emulparams/armnto.sh: Likewise.
334 2003-10-08 Alexandre Oliva <aoliva@redhat.com>
336 * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
337 whether to skip test for no memory region.
339 2003-10-08 Nick Clifton <nickc@redhat.com>
341 * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
342 describing defaults. Change default to report unresolved symbols
343 in object files as well.
345 2003-10-08 Hans-Peter Nilsson <hp@bitrange.com>
347 * ldexp.c (fold_name) <case DEFINED>: Set section of result to
350 2003-10-07 Bob Wilson <bob.wilson@acm.org>
352 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
353 OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
354 zero for relocatable links.
356 2003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
358 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
360 2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
362 * ldwrite.c (unsplittable_name): New.
363 (clone_section): Strip existing numeric suffix. Only truncate names
365 (split_sections): Use unsplittable_name.
367 2003-10-06 Nick Clifton <nickc@redhat.com>
369 * lexsup.c (parse_args): Report unresolved symbols in shared
370 libraries when creating a dynamic executable. This is a
371 restoration of the default behaviour for previous versions of
374 2003-10-06 Matt Thomas <matt@3am-software.com>
376 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
377 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
379 2003-10-06 Robert Millan <robertmh@gnu.org>
381 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
383 2003-10-02 Ivan Warren <ivan@vmfacility.fr>
385 * pe-dll.c (make_one): Correct sym def order & pick right sym for
388 2003-09-30 Chris Demetriou <cgd@broadcom.com>
390 * NEWS: Add an indication of the cutoff for 2.14.
392 2003-09-30 Chris Demetriou <cgd@broadcom.com>
394 * ldmain.c (get_emulation): Ignore "-mips64r2".
396 2003-09-03 Robert Millan <robertmh@gnu.org>
398 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
400 * configure.tgt: Likewise.
402 2003-08-29 Jafa <jafa@silicondust.com>
404 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
406 2003-08-21 Nick Clifton <nickc@redhat.com>
408 * po/tr.po: Updated Turkish translation.
410 2003-08-20 Nick Clifton <nickc@redhat.com>
412 * ldmain.c: Initialise the new fields in bfd_link_info to
414 * lexsup.c (enum option_values): New enum. Use this to
415 replace the handed coded values for the long switch options.
416 (ld_options): Add 'unresolved-symbols',
417 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
418 (parse_args): Handle the new switches. Set the values of
419 unresolved_symbols_in_objects and
420 unresolved_symbols_in_shared_libs appropriately. If they were
421 not initialised by the command line, install default values.
422 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
423 -z defs to use the new fields in bfd_link_info.
424 * ld.texinfo: Document the new switches.
425 * NEWS: Mention this feature.
427 2003-08-15 Dmitry Diky <diwil@mail.ru>
429 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
430 calls genscripts_extra.sh.
431 Rearrange all msp430 depends using this script.
432 * Makefile.in: Regenerate.
433 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
434 that the script to be run to generate the emulations can be passed
435 as an optional parameter instead of being computed from the
437 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
438 definitions into one file.
439 * emulparams/msp430x*.sh: Removed.
441 2003-08-15 Nick Clifton <nickc@redhat.com>
443 * ld.texinfo (Options): Put keywords for the -z option into a
444 table. Add more text describing what the -z now option does.
446 2003-08-14 Alan Modra <amodra@bigpond.net.au>
448 * dep-in.sed: Remove libintl.h.
449 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
450 * Makefile.in: Regenerate.
452 2003-08-13 Alan Modra <amodra@bigpond.net.au>
454 * genscripts.sh (libpath.exp): Only generate for first emulation.
455 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
456 already present or when LIB_PATH is set to ":".
458 2003-08-12 Ian Lance Taylor <ian@airs.com>
460 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
461 to `error'. If only a warning, put warning in the reported
462 string. Consistently set failure flag when not a warning.
464 2003-08-08 Dmitry Diky <diwil@mail.ru>
466 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
468 * Makefile.in: Regenerate.
469 * configure.tgt: Add extra emulations.
470 * emulparams/msp430xE423.sh: New file.
471 * emulparams/msp430xE427.sh: New file.
472 * emulparams/msp430xW425.sh: New file.
473 * emulparams/msp430xE425.sh: New file.
474 * emulparams/msp430xW423.sh: New file.
475 * emulparams/msp430xW427.sh: New file.
477 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
479 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
480 Change second (cmdline) arg to lang_add_entry to FALSE.
481 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
483 2003-08-05 Christian Groessler <chris@groessler.org>
484 Jason Eckhardt <jle@rice.edu>
486 * configure.tgt: Recognize new target i860-*-coff.
487 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
488 (ecoff_i860.c): New rule.
489 * emulparams/coff_i860.sh: New file.
490 * scripttempl/i860coff.sc: New file.
491 * Makefile.in: Regenerate.
493 2003-08-04 Nick Clifton <nickc@redhat.com>
495 * emultempl/elf32.em (before_allocation): Prepend "warning: "
496 to messages produced for .gnu.warning.SYMBOL sections.
498 2003-08-04 Alan Modra <amodra@bigpond.net.au>
500 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
501 .rel.dyn before other reloc sections. Don't stop looking for reloc
502 sections on finding one that isn't allocated. Match .rel even when
503 placing .rela and vice versa, when setting last_rel and
504 last_rel_alloc for the first time. If no reloc sections in script,
505 prefer allocated section over non-alloc.
506 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
508 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
510 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
511 section for shared library.
512 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
513 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
515 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
517 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
518 * scripttempl/elfm68hc11.sc: Likewise.
520 2003-07-28 Alan Modra <amodra@bigpond.net.au>
522 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
524 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
526 2003-07-27 Alan Modra <amodra@bigpond.net.au>
528 * ld.texinfo: Typo fixes. Document SUBALIGN.
529 * ldgram.y (opt_subalign): Add.
530 * ldlex.l (SUBALIGN): Recognize.
531 * ldlang.c (overlay_subalign): New var.
532 (lang_enter_overlay): Add subalign param.
533 (lang_enter_overlay_section): Pass overlay_subalign to
534 lang_enter_output_section_statement.
535 * ldlang.h (lang_enter_overlay): Update.
537 2003-07-24 Nick Clifton <nickc@redhat.com>
539 * po/fr.po: Updated French translation.
541 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
543 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
544 account .tramp sections;
545 * scripttempl/elfm68hc12.sc: Likewise.
547 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
549 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
551 2003-07-17 Nick Clifton <nickc@redhat.com>
553 * po/es.po: New Spanish translation.
555 2003-07-11 Alan Modra <amodra@bigpond.net.au>
557 * po/ld.pot: Regenerate.
559 2003-07-10 Bob Wilson <bob.wilson@acm.org>
561 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
562 with new .got.loc section.
563 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
564 non-relocating links.
565 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
566 sections separate for non-relocating links; likewise for .xt.insn.
568 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
570 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
571 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
572 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
573 * configure.host (am33_2.0-*-linux*): Added.
574 * configure.tgt (am33_2.0-*-linux*): Likewise.
575 * emulparams/elf32am33lin.sh: New.
576 * Makefile.am (eelf32am33lin.c): New rule.
577 * Makefile.in: Rebuilt.
579 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
581 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
582 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
583 (GENERATE_SHLIB_SCRIPT): Likewise.
585 2003-07-10 Alan Modra <amodra@bigpond.net.au>
587 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
589 * emultempl/ppc64elf.em (stub_added): New static var.
590 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
591 (ppc_add_stub_section): Set stub_added.
592 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
593 ppc64_elf_size_stubs call and test for stubs.
594 * scripttempl/elf.sc (GOT): Define and use.
596 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
598 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
599 Allow second call from ldemul_finish.
601 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
603 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
604 (OTHER_SECTIONS): Include .stack.
605 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
607 2003-07-02 Jakub Jelinek <jakub@redhat.com>
609 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
611 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
612 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
615 2003-06-28 Alan Modra <amodra@bigpond.net.au>
617 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
618 Replace PTR with void *. Formatting.
619 * ldcref.c: Likewise.
620 * ldctor.c: Likewise.
621 * ldctor.h: Likewise.
622 * ldemul.h: Likewise.
625 * ldfile.c: Likewise.
626 * ldfile.h: Likewise.
627 * ldlang.c: Likewise.
628 * ldlang.h: Likewise.
631 * ldmain.c: Likewise.
632 * ldmain.h: Likewise.
633 * ldmisc.c: Likewise.
634 * ldmisc.h: Likewise.
636 * ldwrite.c: Likewise.
637 * ldwrite.h: Likewise.
638 * lexsup.c: Likewise.
641 * pe-dll.c: Likewise.
642 * pe-dll.h: Likewise.
643 * deffilep.y: Likewise.
644 * deffile.h: Likewise. Don't include ansidecl.h.
645 * emulparams/elf32mcore.sh: Remove unnecessary cast.
646 * emultempl/m68kcoff.em: Likewise.
647 * emultempl/m68kelf.em: Likewise.
648 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
649 * sysdep.h: Don't include ansidecl.h.
650 * Makefile.am: Run "make dep-am".
651 * Makefile.in: Regenerate.
653 2003-06-27 Nick Clifton <nickc@redhat.com>
655 * deffilep.y (def_file_add_directive): Cope with NUL seperated
656 directives. Fix reporting of unparseable directives.
657 (def_error): Check for a NULL def_filename.
659 2003-06-27 Alan Modra <amodra@bigpond.net.au>
661 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
662 and casts. Replace PTR with void *. Formatting.
663 * emultempl/alphaelf.em: Likewise.
664 * emultempl/armcoff.em: Likewise.
665 * emultempl/armelf.em: Likewise.
666 * emultempl/armelf_oabi.em: Likewise.
667 * emultempl/beos.em: Likewise.
668 * emultempl/elf32.em: Likewise.
669 * emultempl/generic.em: Likewise.
670 * emultempl/gld960.em: Likewise.
671 * emultempl/gld960c.em: Likewise.
672 * emultempl/hppaelf.em: Likewise.
673 * emultempl/linux.em: Likewise.
674 * emultempl/lnk960.em: Likewise.
675 * emultempl/m68hc1xelf.em: Likewise.
676 * emultempl/m68kcoff.em: Likewise.
677 * emultempl/m68kelf.em: Likewise.
678 * emultempl/mipsecoff.em: Likewise.
679 * emultempl/mipself.em: Likewise.
680 * emultempl/mmix-elfnmmo.em: Likewise.
681 * emultempl/mmixelf.em: Likewise.
682 * emultempl/mmo.em: Likewise.
683 * emultempl/needrelax.em: Likewise.
684 * emultempl/netbsd.em: Likewise.
685 * emultempl/pe.em: Likewise.
686 * emultempl/sh64elf.em: Likewise.
687 * emultempl/sunos.em: Likewise.
688 * emultempl/ticoff.em: Likewise.
689 * emultempl/vanilla.em: Likewise.
690 * emultempl/xtensaelf.em: Likewise.
691 * Makefile.am: Correct dependencies.
692 * Makefile.in: Regenerate.
694 2003-06-25 Alan Modra <amodra@bigpond.net.au>
696 * ld.texinfo: Correct spelling of "relocatable".
697 * ldctor.c: Likewise.
699 * ldfile.c: Likewise.
700 * ldint.texinfo: Likewise.
701 * ldlang.c: Likewise.
702 * ldmain.c: Likewise.
703 * ldwrite.c: Likewise.
704 * lexsup.c: Likewise.
705 * emultempl/aix.em: Likewise.
706 * emultempl/alphaelf.em: Likewise.
707 * emultempl/armcoff.em: Likewise.
708 * emultempl/armelf_oabi.em: Likewise.
709 * emultempl/beos.em: Likewise.
710 * emultempl/elf32.em: Likewise.
711 * emultempl/generic.em: Likewise.
712 * emultempl/gld960.em: Likewise.
713 * emultempl/gld960c.em: Likewise.
714 * emultempl/hppaelf.em: Likewise.
715 * emultempl/linux.em: Likewise.
716 * emultempl/lnk960.em: Likewise.
717 * emultempl/m68hc1xelf.em: Likewise.
718 * emultempl/m68kcoff.em: Likewise.
719 * emultempl/m68kelf.em: Likewise.
720 * emultempl/mipsecoff.em: Likewise.
721 * emultempl/mipself.em: Likewise.
722 * emultempl/mmix-elfnmmo.em: Likewise.
723 * emultempl/mmo.em: Likewise.
724 * emultempl/needrelax.em: Likewise.
725 * emultempl/pe.em: Likewise.
726 * emultempl/ppc64elf.em: Likewise.
727 * emultempl/sh64elf.em: Likewise.
728 * emultempl/sunos.em: Likewise.
729 * emultempl/ticoff.em: Likewise.
730 * emultempl/xtensaelf.em: Likewise.
732 2003-06-24 Alan Modra <amodra@bigpond.net.au>
734 * emultempl/ppc32elf.em: Convert to C90.
736 2003-06-20 Alan Modra <amodra@bigpond.net.au>
738 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
739 unnecessary prototypes and casts.
741 2003-06-19 Alan Modra <amodra@bigpond.net.au>
743 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
744 statistics from ppc64_elf_build_stubs.
746 2003-06-19 Alan Modra <amodra@bigpond.net.au>
748 * emultempl/ppc64elf.em (build_section_lists): Check return status
749 from ppc64_elf_next_input_section.
751 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
753 * ldlang.c (section_already_linked): Put back assignment of
756 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
758 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
761 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
763 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
764 if not produced by gcc.
766 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
768 * configure.tgt: Add specific case for cris-*-linux-gnu*
769 with crislinux emulation only.
771 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
773 * configure.tgt: Add i386-netbsd-gnu target.
775 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
777 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
778 to $targ_extra_libpath.
780 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
782 * po/Make-in (DESTDIR): New.
783 (install-data-yes): Support $(DESTDIR).
784 (uninstall): Likewise.
786 2003-06-10 Doug Evans <dje@sebabeach.org>
788 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
789 * Makefile.in: Regenerate.
791 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
793 * configure.tgt (h8300*): Add h8300sxn emulations.
794 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
795 (eh8300sxn.c, eh8300sxnelf.c): New rules.
796 * Makefile.in: Regenerate.
797 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
798 * scripttempl/h8300sxn.sc: New file.
800 2003-06-10 Alan Modra <amodra@bigpond.net.au>
802 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
803 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
805 2003-06-08 Alan Modra <amodra@bigpond.net.au>
807 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
808 (build_toc_list): New function.
809 (gld${EMULATION_NAME}_finish): Call build_toc_list and
810 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
811 (OPTION_STUBSYMS): Define.
812 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
813 (PARSE_AND_LIST_OPTIONS): Document.
814 (PARSE_AND_LIST_ARGS_CASES): Handle.
816 2003-06-05 Roland McGrath <roland@redhat.com>
818 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
819 extra \t in -z noexecstack line.
821 2003-05-23 Jakub Jelinek <jakub@redhat.com>
823 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
824 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
825 -z execstack and -z noexecstack.
826 (gld${EMULATION_NAME}_list_options): Likewise.
827 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
829 2003-06-03 Michael Snyder <msnyder@redhat.com>
830 and Bernd Schmidt <bernds@redhat.com>
831 and Alexandre Oliva <aoliva@redhat.com>
833 * Makefile.am: Add new emulations for h8300sx.
834 * Makefile.in: Regenerate.
835 * configure.tgt: Add new emulations.
836 * emulparams/h8300sx.sh: New emulation.
837 * emulparams/h8300sxelf.sh: Ditto.
838 * scripttempl/h8300sx.sc: Ditto.
840 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
842 * ldmisc.c: Include "bfdlink.h".
843 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
844 and -LD_DEFINITION_IN_DISCARDED_SECTION.
846 * Makefile.am: Rebuild dependency.
847 * Makefile.in: Regenerated.
849 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
851 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
852 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
854 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
856 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
857 sorted alphabetically, instead of exported_symbols, which is
860 2003-05-30 Ulrich Drepper <drepper@redhat.com>
861 Jakub Jelinek <jakub@redhat.com>
863 * lexsup.c (OPTION_PIE): Define.
864 (ld_options): Add -pie and --pic-executable options.
865 (parse_args): Handle OPTION_PIE.
866 * ldmain.c (main): Initialize link_info.pie and
867 link_info.executable.
868 * genscripts.sh: Generate PIE scripts.
869 * ld.texinfo: Document -pie and --pic-executable options.
870 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
871 (gld${EMULATION_NAME}_place_orphan): Likewise.
872 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
873 * scripttempl/elf.sc: In PIE scripts set . the same way as in
875 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
876 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
877 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
878 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
879 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
880 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
881 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
882 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
883 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
884 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
885 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
887 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
889 * genscripts.sh: Create tmpdir/libpath.exp.
891 2003-05-30 Nick Clifton <nickc@redhat.com>
893 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
894 with a test for a NULL bfd_for_interworking.
896 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
898 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
899 correctly for more recent versions of NetBSD.
900 (alpha*-*-netbsd*): Remove.
901 (i[3-7]86-*-netbsd*): Remove.
903 2003-05-29 Nick Clifton <nickc@redhat.com>
905 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
907 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
909 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
910 trap on pointer crops.
912 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
914 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
915 as well as shle-...-netbsdelf.
917 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
919 * configure.host: Accept i[3-7]86 variants.
920 * configure.tgt: Likewise.
922 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
924 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
926 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
928 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
929 (earmelfb.c, earmelfb_linux.c): New rules.
930 * Makefile.in: Regenerated.
931 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
932 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
934 2003-05-09 Nick Clifton <nickc@redhat.com>
936 * ldlang.c (lang_size_sections_1): Default to generating a
937 fatal error message if a loadable section is not allocated
938 to a memory region when regions are defined.
940 2003-05-09 Alan Modra <amodra@bigpond.net.au>
942 * Makefile.am (em68hc11elf.c): Correct dependencies.
943 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
944 * Makefile.in: Regenerate.
945 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
946 bfd_elf_record_link_assignment name.
948 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
950 * ldmain.h (overflow_cutoff_limit): Declare.
951 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
952 (reloc_overflow): Limit error messages based on it.
953 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
956 2003-05-05 Alan Modra <amodra@bigpond.net.au>
958 * ldlex.l: Accept C style comments in version scripts.
960 2003-04-28 H.J. Lu <hjl@gnu.org>
962 * ldlang.c (lang_process): Add the relax finalize pass.
964 * ldmain.c (main): Initialize link_info.relax_finalizing to
967 2003-04-24 Roland McGrath <roland@redhat.com>
969 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
970 If a name string is unknown, give an error rather than crashing later.
972 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
974 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
975 eh8300hnelf.o, eh8300snelf.o and respective rules.
976 * Makefile.in: Regenerate.
977 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
978 * emulparams/h8300hn.sh: New
979 * emulparams/h8300sn.sh: New
980 * emulparams/h8300hnelf.sh: New
981 * emulparams/h8300snelf.sh: New
982 * scripttempl/h8300hn.sc: new
983 * scripttempl/h8300sn.sc: new
985 2003-04-23 H.J. Lu <hjl@gnu.org>
987 * ldmain.c (link_callbacks): Initialize error_handler.
989 * ldmisc.c (error_handler): New function.
991 * ldmisc.h (error_handler): New prototype.
993 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
995 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
996 * emulparams/m68hc11elfb.sh: Likewise.
997 * emulparams/m68hc12elf.sh: Likewise.
998 * emulparams/m68hc12elfb.sh: Likewise.
1000 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
1002 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
1004 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
1006 (LDEMUL_FINISH): Override to generate the trampolines after gc and
1008 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
1009 stub file for trampolines.
1010 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
1011 --no-trampoline and --bank-window to control the memory bank window.
1013 2003-04-18 H.J. Lu <hjl@gnu.org>
1015 * ldfile.c (ldfile_add_library_path): Remove the unused
1018 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
1020 * scripttempl/xstormy16.sc (__data, __rdata): New.
1022 2003-04-16 Nick Clifton <nickc@redhat.com>
1024 * scripttempl/xstormy16.sc: Add .jcr section mapping.
1026 2003-04-15 H.J. Lu <hjl@gnu.org>
1028 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
1030 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
1032 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1034 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
1035 * ld.texinfo: Likewise.
1037 2003-04-14 Alan Modra <amodra@bigpond.net.au>
1039 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
1040 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
1041 other variants of crtbegin.o, crtend.o.
1043 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
1044 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
1045 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
1046 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
1047 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
1048 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
1049 * scripttempl/mmo.sc (ctors, dtors): Likewise.
1050 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
1052 2003-04-09 Dmitry Diky <diwil@mail.ru>
1054 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
1055 sections to respect C++ constructor/destructor. Add ctors/dtors
1056 start/stop definitions.
1057 * scripttempl/elf32msp430_3.sc: Likewise.
1059 2003-04-06 Nick Clifton <nickc@redhat.com>
1061 * ld.texinfo (Options): Add a reminder of the target specific
1062 nature to the description of the i386 PE specific options, for
1063 readers who have not read all the way through the manual.
1065 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1067 * configure.tgt: Fixed bug in list of targ_extra_emuls.
1068 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
1069 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
1070 * emulparams/tic3xcoff_onchip.sh: Ditto
1071 * emulparams/tic4xcoff.sh: Ditto
1072 * scripttempl/tic4xcoff.sc: Ditto
1074 2003-04-03 Nick Clifton <nickc@redhat.com>
1076 * NEWS: Mention support for Xtensa architecture.
1078 2003-04-02 Nick Clifton <nickc@redhat.com>
1080 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
1082 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
1084 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1085 Don't call pe_dll_build_section() if link_info.relocateable.
1086 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
1087 if link_info.relocateable.
1089 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
1091 * pe-dll.c (process_def_file): Don't create an export
1092 section if there are no exports and we're building an exe
1093 (pe_dll_build_sections): Ditto
1094 (pe_dll_fill_sections): Conditionalize setting
1095 abfd->dll true on info->shared
1096 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1097 If i386pe or armpe, call pe_dll_build_section()
1098 for both exe's and dll's, not just dll's.
1099 (gld_${EMULATION_NAME}_finish): For all targets except
1100 shpe and mipspe, call pe_dll_fill_sections() for both
1101 exe's and dll's, not just dll's.
1103 2003-04-02 Bob Wilson <bob.wilson@acm.org>
1105 * emulparams/xtensa-config.sh: Remove comment indicating that this is
1108 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1110 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
1111 (eelf32xtensa.c): New target.
1112 * Makefile.in: Regenerate.
1113 * configure.tgt: Handle xtensa-*-*.
1114 * gen-doc.texi: Set XTENSA variable.
1115 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
1116 * emulparams/elf32xtensa.sh: New file.
1117 * emulparams/xtensa-config.sh: Likewise.
1118 * emultempl/xtensaelf.em: Likewise.
1119 * scripttempl/elfxtensa.sc: Likewise.
1121 2003-04-01 Jakub Jelinek <jakub@redhat.com>
1123 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
1124 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
1125 if --enable-64-bit-bfd.
1127 2003-04-01 Nick Clifton <nickc@redhat.com>
1129 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
1131 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
1132 name of note section.
1134 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
1136 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
1139 2003-03-31 David Heine <dlheine@suif.stanford.edu>
1141 * ldfile.c (ldfile_add_library_path): Always allocate space for
1143 * ldlang.c (lang_register_vers_node): Free the node if it cannot
1145 * ldmain.c (set_scripts_dir): Always free the constructed
1147 (add_keepsyms_file): Fix memory leak.
1148 * ldmisc.c (vfinfo): Likewise.
1149 * lexsup.c (parse_args): Likewise.
1151 2003-03-25 Stan Cox <scox@redhat.com>
1152 Nick Clifton <nickc@redhat.com>
1154 Contribute support for Intel's iWMMXt chip - an ARM variant:
1156 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
1157 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
1158 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
1161 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
1163 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
1164 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
1165 (main): Initialize them.
1166 * ldfile.c: Include pathnames.h.
1167 (is_sysrooted_pathname): New.
1168 (ldfile_add_library_path): Use it.
1169 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
1170 search_dirs if given an absolute pathname.
1171 (ldfile_open_file): Issue error message for sysrooted
1173 * Makefile.am: Updated dependencies.
1174 * Makefile.in: Rebuild.
1176 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1178 * ld.texinfo: Rename all occurances of C54X to TIC54X.
1180 2003-03-19 Andreas Schwab <schwab@suse.de>
1182 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
1185 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
1187 * deffilep.y (opt_base): If no number given, set to default
1190 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
1192 * deffilep.y (def_import): Use default extension of "dll"
1193 if no extension provided in parsed IMPORT definition.
1195 * deffilep.y (def_lex): Revert 2003-03-12 change.
1196 (dot_name): New id type and rule.
1197 (expline): Use instead of ID.
1198 (opt_equal_name): Likewise.
1200 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1202 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
1204 2003-03-07 Christopher Faylor <cgf@redhat.com>
1206 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
1207 apparent accidental removal on 2003-01-06.
1209 2003-03-04 Dmitry Diky <diwil@mail.ru>
1211 * Makefile.am: Add new devices x1122 x1132 emulation
1212 * configure.tgt: Likewise.
1213 * Makefile.in: Regenerate.
1214 * emulparams/msp430x1122.sh: New file.
1215 * emulparams/msp430x1132.sh: New file.
1217 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
1219 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
1222 * ldfile.h (struct search_dirs): Added sysrooted field.
1223 * ldlang.h (struct lang_input_statement_struct): Likewise.
1224 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
1225 (ldfile_open_file_search): Look for sysrooted filename starting
1226 with / in ld_sysroot instead of in the current directory. Clear
1227 sysrooted flag if it's found in the current directory. Set it
1228 from the search directory's sysrooted flag where it is found
1230 * ldlang.c (ldlang_sysrooted_script): New static variable.
1231 (new_afile): Mark search_file_enums as sysrooted if
1232 ldlang_sysrooted_script.
1233 (load_symbols): Set ldlang_sysrooted_script according to the
1234 script's sysrooted field while processing it.
1235 * ld.texinfo: Document INPUT behavior in sysroot.
1237 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
1239 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
1241 2003-03-03 Alan Modra <amodra@bigpond.net.au>
1243 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
1244 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1245 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
1246 PARSE_AND_LIST_EPILOGUE): Don't define.
1247 * emultempl/alphaelf.em: New file.
1249 2003-03-01 Alan Modra <amodra@bigpond.net.au>
1251 * ldemul.c: Include getopt.h.
1252 * emultempl/elf32.em: Include getopt.h earlier.
1253 * emultempl/ticoff.em: Likewise.
1255 2003-02-28 Alan Modra <amodra@bigpond.net.au>
1257 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
1258 support when scripts read from files.
1260 2003-02-28 Alan Modra <amodra@bigpond.net.au>
1262 * ldemul.c (ldemul_parse_args): Return FALSE by default.
1263 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
1266 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
1267 (ldemul_parse_args): Return bfd_boolean. Formatting.
1268 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
1269 (ldemul_parse_args): Adjust.
1270 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
1271 Return bfd_boolean from parse_args.
1272 * lexsup.c (parse_args): Malloc shortopts, longopts and
1273 really_longopts. Call ldemul_add_options and ldemul_handle_option.
1274 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
1275 gld${EMULATION_NAME}_parse_args.
1276 (gld${EMULATION_NAME}_handle_option): Likewise.
1277 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
1278 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
1279 * emultempl/beos.em: Likewise.
1280 * emultempl/pe.em: Likewise.
1281 * emultempl/ticoff.em: Likewise.
1282 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
1283 (gld${EMULATION_NAME}_add_sysroot): Prototype.
1284 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
1286 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1287 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1288 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1289 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
1291 * emultempl/generic.em: Likewise.
1292 * emultempl/gld960.em: Likewise.
1293 * emultempl/gld960c.em: Likewise.
1294 * emultempl/linux.em: Likewise.
1295 * emultempl/lnk960.em: Likewise.
1296 * emultempl/m68kcoff.em: Likewise.
1297 * emultempl/mipsecoff.em: Likewise.
1298 * emultempl/sunos.em: Likewise.
1299 * emultempl/vanilla.em: Likewise.
1300 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
1302 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
1304 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
1305 memory allocation error.
1307 * Makefile.am (ldmain.o): Define TOOLBINDIR.
1308 * Makefile.in: Rebuilt.
1309 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
1311 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1313 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
1314 call os_region_check when it is set.
1315 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
1316 lang_size_sections_1.
1317 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
1318 only for the last call, not on every relaxation iteration.
1319 * ldlang.h (lang_size_sections): Update prototype.
1320 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
1321 to lang_size_sections.
1322 (pe_exe_fill_sections): Likewise.
1323 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
1324 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1325 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
1326 (ppc_layout_sections_again): Likewise.
1328 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1330 * gen-doc.texi: Set ARM and HPPA variables.
1331 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
1332 title capitalization more consistent. Add missing menu entries for
1333 machine-specific sections and conditionalize them consistently.
1334 Conditionalize text that is irrelevant when SingleFormat is set.
1335 Add @group divisions to improve page breaks in long examples.
1336 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
1337 is correct. Remove "FIXME" comment about not using
1338 @raisesections/@lowersections. Use @raisesections/@lowersections
1339 consistently for machine-specific sections. Change to be more polite
1340 about poor bug reports. Replace FDL appendix with include of fdl.texi.
1341 Move WIN32 node to match its order in the menus.
1342 * fdl.texi: New file.
1344 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1346 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1347 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1348 '${exec_prefix}' (in addition to the expansion thereof) as
1350 * configure: Rebuilt.
1352 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
1354 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
1356 2003-02-20 Harri Porten <porten@kde.org>
1358 * ldgram.y (vers_defns): Allow optional trailing semicolon in
1361 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1363 * emultempl/ppc32elf.em: New file.
1364 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1365 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1366 (eelf32lppcnto.c): Likewise.
1367 (eelf32lppcsim.c): Likewise.
1368 (eelf32ppcnto.c): Likewise.
1369 (eelf32ppc.c): Likewise.
1370 (eelf32ppc_fbsd.c): Likewise.
1371 (eelf32ppcsim.c): Likewise.
1372 (eelf32ppclinux.c): Likewise.
1373 * Makefile.in: Regenerate.
1375 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1377 * ld.texinfo: Remove spaces between @samp and opening brace.
1379 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1381 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1383 (ppc_before_allocation): Don't do optimizations if wrong hash table.
1384 (gld${EMULATION_NAME}_finish): Ditto.
1386 2003-02-17 Nick Clifton <nickc@redhat.com>
1388 * ldmain.c (main) Default allow_shlib_undefined to true.
1389 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1390 (parse_args): Parse the new switch.
1391 * ld.texinfo: Document new switch and default behaviour of
1392 allowing undefined symbols in shared libraries.
1394 2003-02-11 Dmitry Diky <diwil@mail.ru>
1396 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1397 * scripttempl/elf32msp430_3.sc: Likewise.
1399 2003-02-11 Uwe Stieber <uwe@wwws.de>
1401 * configure.tgt: Add support for kaOS as cross build target
1404 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1406 * hppaelf.em (group_size): Change default back to 1.
1408 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1410 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1412 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1414 * hppaelf.em (group_size): Change default to -1.
1416 2003-02-07 Nick Clifton <nickc@redhat.com>
1418 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1420 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1421 no-pipeline-knowledge. This will prevent the getopt package from
1422 thinking that there are any shorter abbreviations for
1423 --no-pipeline-knowledge.
1425 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1427 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1428 which already have it. Avoid duplicates.
1430 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1432 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1433 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1434 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1436 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1438 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1439 call ppc64_elf_tls_optimize.
1441 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1443 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1444 outside of GNU/Linux conditional.
1446 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1448 * deffilep.y (def_get_module): New function: locate an already
1450 * deffile.h (def_get_module): New prototype.
1451 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1452 a dll multiple times.
1454 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1456 * emultempl/sh64elf.em: Include elf32-sh64.h.
1457 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1458 sh64_elf_section_data.
1459 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1461 2003-01-23 Wu Yongwei <adah@netstd.com>
1463 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1464 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1465 cross-80th-column-margin "an" to the next line.
1467 2003-01-21 Nick Clifton <nickc@redhat.com>
1469 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1470 * emulparams/tic3xcoff_onchip.sh: ...this.
1471 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1472 * Makefile.in: Regenerate.
1474 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1476 * configure.tgt: Handle i[3456]86-*-aros*
1478 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1480 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1481 * Makefile.in: Regenerate
1482 * configure.tgt: Added extra target emulations
1483 * emulparams/tic3xcoff.sh: Remove old settings
1484 * emulparams/tic4xcoff.sh: Ditto
1485 * emulparams/tic3xcoff-onchip.sh: Added new
1486 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1487 * scripttempl/tic3xcoff.sc: Remove
1489 2003-01-17 Andreas Jaeger <aj@suse.de>
1491 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1494 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1496 * Makefile.in: Regenerate.
1498 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1500 * ld.texinfo (node WIN32): Some clarifications
1501 and formatting fixups.
1503 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1505 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1506 order, and handle (ignore) -mips32r2.
1508 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1510 * ldmain.c (main): Make sure ld_sysroot is initialized.
1512 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1514 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1516 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1517 (GENSCRIPTS): Add @use_sysroot@.
1518 * Makefile.in: Regenerated.
1519 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1520 * configure.tgt: ... here. Use ${target} instead of ${host}
1521 for NATIVE_LIB_DIRS.
1522 * configure.in: Add --with-sysroot.
1523 * configure: Regenerated.
1524 * genscripts.sh: Accept use_sysroot option. Set new variables
1525 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1526 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1527 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1528 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1529 (ld_sysroot): New variable.
1530 (main): Initialize ld_sysroot.
1531 * ldmain.h (ld_sysroot): New extern.
1532 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1533 searching $EMULATION_LIBPATH.
1534 (gld${EMULATION_NAME}_add_sysroot): New function.
1535 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1536 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1537 environment variables if $NATIVE.
1538 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1539 * NEWS: Mention --with-sysroot.
1541 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1542 instead of setting LIB_PATH.
1543 * emulparams/elf32ppc.sh: Likewise.
1544 * emulparams/elf64_s390.sh: Likewise.
1545 * emulparams/elf64_sparc.sh: Likewise.
1546 * emulparams/elf64ppc.sh: Likewise.
1547 * emulparams/elf_x86_64.sh: Likewise.
1549 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1550 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1552 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1554 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1556 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1558 * Makefile.am (ldmain.o): Pass BINDIR.
1559 * Makefile.in: Regenerated.
1560 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1563 2003-01-02 Ben Elliston <bje@redhat.com>
1565 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1566 (eelf32iq2000.c): New target.
1567 * Makefile.in: Regenerate.
1568 * configure.tgt: Handle iq2000-*-elf.
1569 * emulparams/elf32iq10.sh: New file.
1570 * emulparams/elf32iq2000.sh: New file.
1571 * scripttempl/iq2000.sc: New file.
1573 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1575 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1576 and _pei386_runtime_relocator to the exclude list.
1578 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1580 * ldfile.c: Fix comment typos.
1581 * ldlang.c: Likewise.
1583 * pe-dll.c: Likewise.
1585 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1587 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1588 * Makefile.am (ld.1): Depend on configdoc.texi
1590 * Makefile.in: Regenerated.
1592 2002-12-24 Dmitry Diky <diwil@mail.ru>
1594 * Makefile.am: Add msp430 target.
1595 * configure.tgt: Likewise.
1596 * Makefile.in: Regenerate.
1597 * emulparams/msp430x???.sh: New files. Linker script parameters
1598 for various msp430 configurations.
1599 * gen-doc.texi: Enable msp430 documenation.
1600 * ld.texinfo: Document msp430 sections.
1601 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1602 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1604 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1605 Charles Wilson <cwilson@ece.gatech.edu>
1607 * config.in (HAVE_REALPATH): New entry.
1608 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1610 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1612 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1615 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1617 * ldmain.c (main): Init "strip_discarded".
1618 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1619 (OPTION_NO_STRIP_DISCARDED): Define.
1620 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1621 (parse_args): Handle them.
1623 2002-12-23 Nick Clifton <nickc@redhat.com>
1625 * ld.h (struct args_type): Add new field
1626 'accept_unknown_input_architecture'.
1627 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1629 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1630 bfd_arch_get_compatible.
1631 * ldfile.c (ldfile_try_open_bfd): Likewise.
1632 * lexsup.c (ld_options): Add new command line switch
1633 --accept-unknown-input-architecture and its inverse.
1634 (parse_args): Handle --accept-unknown-input-architecture.
1635 * ld.texinfo: Document new linker option.
1636 * NEWS: Mention new linker option.
1638 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1640 * ldmain.c (main): Re-order link_info initialization. Init all
1643 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1645 * ld.texinfo: Clarify and extend the documentation
1646 in the Machine Dependent, WIN32 section.
1648 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1650 * ld.texinfo: Add win32 machine depending section.
1651 * gen-doc.texi: Enable win32 machine depending section.
1653 * configure.host: Add win32 library search path.
1655 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1657 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1658 import when auto-import is disabled.
1660 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1662 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1663 account for trailing '\0'.
1665 2002-12-17 Nick Clifton <nickc@redhat.com>
1667 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1668 so that it is not confused with -c.
1670 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1671 Charles Wilson <cwilson@ece.gatech.edu>
1673 * configure.in: Add check for realpath function.
1674 * configure: Regenerate.
1675 * config.in: Regenerate.
1676 * aclocal.m4: Regenerate.
1677 * deffile.h: Add .data field to def_file_import
1679 * pe-dll.c (pe_proces_import_defs): Use .data field of
1680 def_file_import structure to initialize flag_data field of
1681 def_file_export structure.
1682 (pe_implied_import_dll): New variables exp_funcbase and
1683 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1684 not filename (which may be a symlink). Scan the sections and
1685 initialize [data|bss]_[start|end]. When scanning the export
1686 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1687 that it is in the .bss or .data sections as data.
1688 * sysdep.h: Include limits.h and sys/param.h, and define
1689 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1690 exists, NULL otherwise.
1691 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1692 pe_process_import_defs before pe_find_data_imports, so that
1693 auto-import will check the virtual implib as well as "real"
1695 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1696 symlinks to their target; check that the target's extension is
1697 .dll before calling pe_implied_import_dll(), not the filename
1698 itself (which may be a symlink).
1700 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1702 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1703 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1706 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1708 * ldlang.h: Formatting.
1710 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1712 * ldlang.c (init_os): Ensure sections mentioned in load_base
1715 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1717 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1718 load_base for orphans that follow a section with load_base set.
1720 2002-12-01 H.J. Lu <hjl@gnu.org>
1722 * ld.texinfo: Remove the extra `;' in sample version script.
1724 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1726 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1728 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1729 * Makefile.in: Regenerate.
1731 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1732 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1733 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1734 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1735 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1736 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1737 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1738 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1739 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1740 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1741 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1742 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1743 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1745 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1747 * configure.host: Fix generic FreeBSD configuration entry.
1749 2002-11-27 H.J. Lu <hjl@gnu.org>
1751 * ld.texinfo: Add the missing `;' to sample version scripts.
1753 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1755 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1757 2002-11-14 Egor Duda <deo@logos-m.ru>
1759 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1760 assignment which has no effect.
1761 * pe-dll.h (pe_create_import_fixup): Change prototype.
1762 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1763 (pe_create_runtime_relocator_reference): Ditto.
1764 (pe_create_import_fixup): Handle relocations with non-zero addends.
1765 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1766 --disable-runtime-pseudo-reloc.
1767 (make_import_fixup): Handle relocations with non-zero addends. Create
1768 an external reference to _pei386_runtime_relocator symbol if at least
1769 one pseudo reloc was created.
1770 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1771 --disable-runtime-pseudo-reloc options.
1773 2002-11-12 Earl Chew <earl_chew@agilent.com>
1775 * ldlang.c (lang_add_section): Discard debugging sections that have
1776 been marked SEC_EXCLUDE.
1778 2002-11-12 Nick Clifton <nickc@redhat.com>
1780 * configure.in (ALL_LINGUAS): Add da.
1781 * configure: Regenerate.
1782 * po/da.po: New Danish translation.
1784 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1786 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1787 (LDEMUL_BEFORE_ALLOCATION): Define.
1788 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1790 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1792 2002-11-11 Christopher Faylor <cgf@redhat.com>
1794 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1797 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1799 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1800 of restricted auto-export libs.
1802 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1804 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1805 creative library naming instances like, e.g., libstdc++-2.a.
1807 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1809 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1810 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1812 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1814 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1815 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1816 (make_one): Don't prefix decorated fastcall symbols with '_'.
1817 (pe_process_import_defs): Likewise.
1818 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1819 symbols to cdecl names or vise-versa.
1821 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1823 * pe-dll.c (process_def_file): Handle fastcall symbols when
1824 generating undecorated aliases. Don't prefix decorated fastcall
1826 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1829 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1831 * emultempl/aix.em: Use include <> for generated headers.
1832 * emultempl/beos.em: Likewise.
1833 * emultempl/elf32.em: Likewise.
1834 * emultempl/pe.em: Likewise.
1835 * ldctor.c: Likewise.
1836 * ldexp.c: Likewise.
1837 * ldfile.c: Likewise.
1838 * ldlang.c: Likewise.
1839 * ldlex.c: Likewise.
1840 * ldlex.l: Likewise.
1841 * ldmain.c: Likewise.
1842 * ldmisc.c: Likewise.
1843 * ldwrite.c: Likewise.
1844 * lexsup.c: Likewise.
1846 * pe-dll.c: Likewise.
1848 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1850 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1851 sections into .rel{,a}.dyn.
1853 2002-10-23 Nick Clifton <nickc@redhat.com>
1855 * lexsup.c (OPTION_NO_OMAGIC): Define.
1856 (ld_options): Add "no-omagic" option.
1857 (parse_args): Parse --no-omagic.
1858 * ld.texinfo: Document --no-omagic.
1859 * NEWS: Mention new option.
1861 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1863 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1864 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1866 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1868 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1869 emulation name. Set LIB_PATH only for native tools, and
1870 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1871 .../lib variants, not instead of them. Mostly copied from...
1872 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1873 * emulparams/elf64bmip-defs.sh: Backed out.
1874 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1875 * emulparams/elf64btsmip.sh: Likewise.
1876 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1877 TEXT_DYNAMIC): Removed.
1879 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1881 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1882 (GENERATE_SHLIB_SCRIPT): Set to yes.
1883 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1884 * emulparams/elf32bmipn32.sh: here.
1885 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1886 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1887 * emulparams/elf64bmip-defs.sh: New file. Extend
1888 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1889 * emulparams/elf64bmip.sh: Bring in definitions from
1891 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1893 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1894 * emulparams/elf64btsmip.sh: Bring in definitions from
1896 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1897 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1899 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1901 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1902 (s390-*-linux*): Add elf64_s390 emulation if want64.
1903 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1904 genscript.sh changes.
1905 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1906 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1908 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1910 * ldlang.c (load_symbols): Revert last change.
1912 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1914 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1916 (lang_reasonable_defaults): Don't compare against false.
1917 (size_input_section): Likewise.
1918 (lang_size_sections_1): Likewise.
1919 (lang_do_assignments): Likewise.
1920 (lang_add_output): Likewise.
1922 * Makefile.am: Run "make dep-am".
1923 * Makefile.in: Regenerate.
1924 * ldver.c: #include "bfdver.h".
1926 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1928 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1930 * scripttempl/elfm68hc12.sc: Likewise.
1932 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1934 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1936 * ldgram.y (memory_spec): Provide empty action.
1937 (section <NAME>): Likewise.
1939 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1941 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1942 they have OUTPUT_FORMAT not matching actual output format.
1943 * ldlang.c (lang_get_output_target): New function.
1944 (open_output): Use it.
1945 * ldlang.h (lang_get_output_target): New prototype.
1947 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1949 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1950 when orphan is .rel, .rela when orphan is .rela.
1951 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1952 first. Remove outsecname var.
1954 2002-10-09 Richard Shann <richard.shann@superh.com>
1955 Stephen Clarke <stephen.clarke@superh.com>
1957 * Makefile.am: Add eshelf32_linux.o and
1958 eshlelf32_linux.o, new emulations for sh64 Linux.
1959 * Makefile.in: Regenerate.
1960 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1961 * emulparams/shelf32_linux.sh: New file.
1962 * emulparams/shlelf32_linux.sh: New file.
1964 2002-10-08 H.J. Lu <hjl@gnu.org>
1966 * ldlang.c (lang_file_exist): Removed.
1967 (new_afile): Revert the last change.
1968 * ldlang.h (lang_file_exist): Removed.
1969 * lexsup.c (parse_args): Revert the last change.
1971 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1973 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1974 auto-import symbols.
1975 (make_one): Create _nm_<symbol> for data only.
1977 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1979 * ldlang.c (lang_file_exist): New function.
1980 (new_afile): Abort if the filename to be added matches the linker
1982 * ldlang.h: Add prototype for lang_file_exist.
1983 * lexsup.c (parse_args): Abort if the output filename matches
1984 one of the input filenames.
1986 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1988 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1990 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1992 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1993 * scripttempl/elfm68hc11.sc: Likewise.
1994 * scripttempl/elfm68hc12.sc: Likewise.
1996 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1997 reloc sections just before .rel.plt/.rela.plt.
1998 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1999 Only put loadable reloc sections in hold_rel.
2001 2002-09-29 H.J. Lu <hjl@gnu.org>
2003 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
2005 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
2007 From "Anita Kulkarni" <AnitaK@kpit.com>
2008 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
2011 2002-09-25 Alan Modra <amodra@bigpond.net.au>
2013 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
2015 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
2016 SEGMENT_SIZE alignment.
2017 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
2018 (SEGMENT_SIZE): Define.
2020 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
2021 (fold_binary): Correct abs - non-abs case.
2022 (fold_trinary): New. Split out from exp_fold_tree.
2024 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2026 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
2027 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
2028 for start of .data, instead align up to 256M boundary.
2029 * scripttempl/aix.sc: Likewise.
2031 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2033 * scripttempl/i386go32.sc: Handle bss unique sections.
2035 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2037 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
2039 2002-09-17 Stan Cox <scox@redhat.com>
2041 * emulparams/elf32bmipn32-defs.sh: New file.
2042 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
2043 * emulparams/elf32btsmipn32.sh: Likewise.
2044 * emulparams/elf64bmip.sh: Likewise.
2045 * emulparams/elf64btsmip.sh: Likewise.
2047 2002-09-16 Bruno Haible <bruno@clisp.org>
2049 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
2051 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
2052 elf64-alpha-freebsd.
2054 2002-09-11 Nick Clifton <nickc@redhat.com>
2056 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2058 * po/tr.po: Updated Turkish translation.
2060 2002-09-06 Jeffrey A Law (law@redhat.com)
2062 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
2064 2002-09-02 Nick Clifton <nickc@redhat.com>
2066 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
2068 * emulparams/v850.sh (TEMPLATE_NAME): Define.
2070 2002-08-30 Nick Clifton <nickc@redhat.com>
2072 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
2073 used. Change INSN to start at 0x01000000 and extend for
2074 256K (ignoring holes). Start the STACK on a word aligned
2076 (.rodata): Start it at the READONLY_START_ADDR.
2078 2002-08-30 Alan Modra <amodra@bigpond.net.au>
2080 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
2082 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2084 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
2085 added makefile targets for this file.
2086 * Makefile.in: Regenerate.
2087 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
2088 * NEWS: Mention new port.
2090 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2092 * emulparams/tic3xcoff.sh: New file.
2093 * emulparams/tic4xcoff.sh: New file.
2094 * scripttempl/tic3xcoff.sc: New file.
2095 * scripttempl/tic4xcoff.sc: New file.
2097 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2099 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
2100 strtoul and strtoull with bfd_scan_vma.
2101 (gld${EMULATION_NAME}_read_file): Likewise.
2103 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2105 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
2107 2002-08-27 Egor Duda <deo@logos-m.ru>
2109 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
2110 Add symbols for application to access them.
2112 2002-08-27 Nick Clifton <nickc@redhat.com>
2114 * emultempl/armelf.em: Revert this patch, it is not needed.
2116 2002-08-22 Adam Nemet <anemet@lnxw.com>
2118 2002-08-20 Dan Kegel <dank@kegel.com>
2120 * configure.in: added --with-lib-path argument to ld's configure
2122 * NEWS: Document new switch.
2123 * README: Mention new switch.
2124 * configure: Regenerate.
2125 * Makefile.in: Regenerate.
2127 Based on this patch:
2128 2001-04-25 Christopher Faylor <cgf@cygnus.com>
2130 * Makefile.in (LIB_PATH): Make configurable.
2131 (GENSCRIPTS): Set LIB_PATH in environment.
2132 * configure.in: Substitute LIB_PATH.
2134 2002-08-22 Adam Nemet <anemet@lnxw.com>
2136 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
2137 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
2138 depending on the type of the function.
2139 (arm_elf_convert_thumb_symbol_to_address): New function.
2141 2002-08-22 Graeme Peterson <gp@qnx.com>
2143 * Makefile.am: Add esh{l}elf_nto.o files.
2144 * Makefile.in: Regenerate.
2145 * configure.tgt: Add support for sh-**-nto* targets.
2146 * emulparams/shelf_nto.sh: New file.
2147 * emulparams/shlelf_nto.sh: New file.
2149 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
2151 * ldlang.c (offsetof): Define if not defined.
2153 2002-08-14 H.J. Lu <hjl@gnu.org>
2155 * configure.tgt: Always enable 64bit emulations for 32bit
2158 2002-08-13 Alan Modra <amodra@bigpond.net.au>
2160 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
2161 (MAXPAGESIZE): Set to 1.
2163 * ld.h (ALIGN_N): Delete.
2164 * ldexp.h (align_n): Declare.
2165 * ldexp.c (align_n): New function.
2166 (fold_binary): Use align_n instead of ALIGN_N.
2167 (exp_fold_tree): Likewise.
2168 * ldlang.c (lang_size_sections_1): Likewise.
2169 (lang_one_common): Likewise.
2170 * ld.texinfo (ALIGN): Remove power of 2 restriction.
2172 2002-07-31 Graeme Peterson <gp@qnx.com>
2174 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
2175 * Makefile.am: Add eelf32{l}ppcnto.o files.
2176 * Makefile.in: Regenerate.
2177 * emulparams/elf32lppcnto.sh: New file.
2178 * emulparams/elf32ppcnto.sh: New file.
2180 2002-08-07 H.J. Lu <hjl@gnu.org>
2182 * ld.texinfo: Document --no-undefined-version.
2184 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
2185 `script.' fields to 0.
2187 * ldmain.c (main): Initialize the allow_undefined_version to
2190 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
2191 (ld_options): Add --no-undefined-version.
2192 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
2194 2002-08-07 Nick Clifton <nickc@redhat.com>
2196 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
2197 an interworking bfd if there are input bfds. (107501)
2199 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2201 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
2204 2002-08-01 Nick Clifton <nickc@redhat.com>
2206 * emulparams/armelf.sh: Revert previous delta.
2207 * scripttempl/elf.sc: Revert previous delta.
2209 2002-07-31 H.J. Lu <hjl@gnu.org>
2211 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
2212 --enable-64-bit-bfd.
2214 2002-07-31 H.J. Lu <hjl@gnu.org>
2216 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
2217 64bit BFD is selected.
2219 2002-07-31 H.J. Lu <hjl@gnu.org>
2221 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
2222 if 64bit BFD is selected.
2224 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2226 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
2227 link_info.common_skip_ar_aymbols.
2228 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
2230 * ldmain.c (main): Initialize new field
2231 link_info.common_skip_ar_aymbols.
2233 2002-07-31 Adam Nemet <anemet@lnxw.com>
2235 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
2237 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
2240 2002-07-31 Nick Clifton <nickc@redhat.com>
2242 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2243 of the PDP-11 and 2.11BSD a.out support.
2245 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2247 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
2248 for n32 ABI support.
2249 * Makefile.in: Regenerate.
2250 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
2251 n32 ABI emulations for these 64 bit targets.
2252 * emulparams/elf32bmipn32.sh: Expand comment.
2253 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
2255 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
2257 2002-07-30 Graeme Peterson <gp@qnx.com>
2259 * configure.tgt: Add support for arm-*-nto target.
2260 * Makefile.am: Add earmnto.o file.
2261 * Makefile.in: Regenerate.
2262 * NEWS: Mention port of ARM support to QNX.
2263 * emulparams/armnto.sh: New file.
2265 2002-07-30 Jakub Jelinek <jakub@redhat.com>
2267 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
2268 for relocatable link.
2269 (lang_size_sections_1): Don't make .tbss zero size for relocatable
2272 2002-07-26 Bernd Schmidt <bernds@redhat.com>
2274 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
2277 2002-07-25 Nick Clifton <nickc@redhat.com>
2279 * po/sv.po: Updated Swedish translation.
2280 * po/es.po: Updated Spanish translation.
2281 * po/fr.po: Updated French translation.
2283 2002-07-24 Nick Clifton <nickc@redhat.com>
2285 * po/sv.po: Updated Swedish translation.
2286 * po/es.po: Updated Spanish translation.
2288 2002-07-23 Nick Clifton <nickc@redhat.com>
2290 * po/fr.po: Updated French translation.
2292 2002-07-20 Alan Modra <amodra@bigpond.net.au>
2294 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2295 bomb on /DISCARD/ input section.
2296 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2297 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2299 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
2301 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
2304 2002-07-16 Denis Chertykov <denisc@overta.ru>
2305 Nick Clifton <nickc@redhat.com>
2306 Frank Ch. Eigler <fche@redhat.com>
2307 John Healy <jhealy@redhat.com>
2309 * configure.tgt: Add support for ip2k-elf.
2310 * Makefile.am: Add support for ip2k-elf.
2311 * Makefile.in: Regenerate.
2312 * emulparams/elf32ip2k.sh: New file.
2313 * scripttempl/ip2k.sc: New file
2314 * NEWS: Mention support for new port.
2316 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2318 * NEWS: Add 'Changes in 2.13'.
2320 2002-07-14 H.J. Lu <hjl@gnu.org>
2322 * ld.texinfo: Document a .symver takes precedence over a
2325 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2327 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
2328 (COMMONPAGESIZE): Define.
2330 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2332 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
2334 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2336 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
2337 powerpc-*-openbsd* and sparc64-*-openbsd*.
2338 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
2339 * Makefile.in: Regenerate.
2340 * emulparams/hppaobsd.sh: New file.
2342 2002-07-05 Alan Modra <amodra@bigpond.net.au>
2344 * ldlang.c (print_wild_statement): Fix output formatting.
2346 2002-07-04 Alan Modra <amodra@bigpond.net.au>
2348 * ldlang.c: (strip_excluded_output_sections): New function.
2349 (lang_process): Call it.
2350 (lang_size_sections_1): Revert 2002-06-10 change.
2352 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2354 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2356 * Makefile.in: Regenerate.
2358 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2360 * ldfile.c (ldfile_try_open_bfd): Formatting.
2362 * ldmisc.c (demangle): Move so that it doesn't intrude between
2363 vfinfo comment and body. Add comment.
2365 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2367 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2369 2002-07-01 Alan Modra <amodra@bigpond.net.au>
2371 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2372 * ldlang.c (entry_sym): Likewise.
2373 (ldlang_undef_chain_list_type): Likewise.
2374 (lang_finish): Adjust references to entry_symbol.
2375 (lang_add_entry): Likewise.
2376 (lang_gc_sections): Use link_info.gc_sym_list.
2377 (lang_process): Set link_info.gc_sym_list.
2378 * ldlex.l: Include bfdlink.h.
2379 * ldmain.c (main): Init link_info.gc_sym_list.
2380 * emultempl/aix.em: Adjust references to entry_symbol.
2381 * emultempl/armcoff.em: Likewise.
2382 * emultempl/armelf.em: Likewise.
2383 * emultempl/pe.em: Likewise.
2384 * emultempl/ppc64elf.em (ppc_after_open): New function.
2385 (LDEMUL_AFTER_OPEN): Define.
2386 * emulparams/elf64ppc.sh: KEEP .opd sections.
2388 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2390 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2391 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2392 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2393 (EEPROM_START_ADDR): Define.
2394 (EEPROM_MEMORY): Define.
2395 * emulparams/m68hc12elf.sh: Likewise.
2396 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2397 section to put soft registers in .page0.
2398 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2400 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2402 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2403 section. Add ${RELOCATING-0}.
2405 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2407 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2408 (OTHER_SECTIONS): Define.
2409 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2410 (OTHER_SECTIONS): Undef.
2412 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2414 * ldmisc.c (demangle): Restore dots stripped from sym name.
2416 2002-06-25 H.J. Lu <hjl@gnu.org>
2418 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2419 * Makefile.in: Regenerated.
2421 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2423 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2424 the size of attached object files, to allow make the object files
2425 available via FTP or HTTP and to mention that the mail will be
2426 sent to a mailing list.
2428 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2430 * configure.host (romp): Drop support.
2432 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2434 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2435 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2437 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2439 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2440 format specifier used to print BFD name.
2442 2002-06-18 Dave Brolley <brolley@redhat.com>
2444 From Catherine Moore, Michael Meissner, Jim Blandy:
2445 * emulparams/elf32frv.sh: New file.
2446 * configure.tgt: Support frv-*-*.
2447 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2448 (eelf32frv.c): New target.
2450 2002-06-17 Tom Rix <trix@redhat.com>
2452 * emultempl/elf32.em: gld*_get_script: Check for
2453 GENERATE_COMBRELOC_SCRIPT.
2454 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2455 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2457 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2459 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2461 2002-06-12 H.J. Lu <hjl@gnu.org>
2463 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2464 false if xvec doesn't match.
2466 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2468 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2470 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2472 * ldexp.c: Replace CONST with const.
2473 * ldfile.c: Likewise.
2474 * ldfile.h: Likewise.
2475 * ldlex.l: Likewise.
2477 * pe-dll.h: Likewise.
2479 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2481 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2483 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2485 * ldmain.c (main): initialize link_info.pei386_auto_import
2486 to -1 == implicit enable.
2487 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2488 initialize link_info.pei386_auto_import to -1 == implicit
2490 (gld_${EMULATION_NAME}_parse_args): When processing
2491 --enable-auto-import and --disable-auto-import options, use
2492 '1' and '0' instead of 'true' and 'false'.
2493 (pe_find_data_imports): Only issue message about auto-import
2494 when the feature is implicitly enabled. Downgrade message to
2495 informational instead of warning.
2497 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2499 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2501 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2503 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2504 HOSTING_CRT0 and HOSTING_LIBS.
2506 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2508 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2510 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2512 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2513 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2515 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2517 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2518 SEC_EXCLUDE sections when doing a relocatable link.
2520 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2522 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2523 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2524 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2525 (eshlelf64_nbsd.c): New rules.
2526 * Makefile.in: Regenerate.
2527 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2528 (sh64-*-netbsd*): New targets.
2529 * emulparams/shelf32_nbsd.sh: New file.
2530 * emulparams/shelf64_nbsd.sh: New file.
2531 * emulparams/shlelf32_nbsd.sh: New file.
2532 * emulparams/shlelf64_nbsd.sh: New file.
2534 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2536 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2538 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2540 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2541 C++ constructors/destructors, loosely based on the m68hc11 port.
2543 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2545 * Makefile.in: Regenerate.
2546 * aclocal.m4: Regenerate.
2547 * config.in: Regenerate.
2548 * configure: Regenerate.
2550 2002-05-31 Graeme Peterson <gp@qnx.com>
2552 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2553 (ei386nto.c): Add rule.
2554 * Makefile.in: Regenerate.
2555 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2556 * emulparams/i386nto.sh: New file.
2558 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2560 * NEWS: Add entry for VAX ELF support.
2562 2002-05-29 Matt Thomas <matt@3am-software.com>
2563 Jason Thorpe <thorpej@wasabisystems.com>
2565 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2567 (evaxnbsd.c): New rules.
2568 * Makefile.in: Regenerate.
2569 * configure.tgt (vax-*-netbsdelf*)
2571 (vax-*-netbsd*): New targets.
2572 * emulparams/elf32vax.sh: New file.
2573 * emulparams/vaxnbsd.sh: New file.
2575 2002-05-29 Adam Nemet <anemet@lnxw.com>
2577 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2578 bfd_for_interwork, instead add glue sections to each input bfd.
2579 (bfd_for_interwork): New global.
2580 (arm_elf_set_bfd_for_interworking): New function.
2581 (arm_elf_before_allocation): Use it.
2583 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2585 * Makefile.am: Add DLX make target.
2586 * configure.tgt: Add DLX configuration.
2587 * Makefile.in: Regenerate.
2588 * emulparams/elf32_dlx.sh: New file
2589 * scripttempl/dlx.sc: New file
2591 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2593 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2594 * Makefile.in: Regenerate.
2595 * emulparams/elf_chaos.sh: Use elf_chaos script.
2596 * scripttempl/elf_chaos.sc: New file.
2598 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2600 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2601 addresses and regions from here...
2602 (lang_get_regions): ...to this new function.
2603 (lang_leave_output_section_statement): Use lang_get_regions.
2604 (lang_leave_overlay): Likewise.
2605 * mri.c (mri_draw_tree): Pass null as last argument to
2606 lang_leave_output_section_statement.
2607 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2608 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2609 * emultempl/pe.em (gld*_place_orphan): Likewise.
2611 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2613 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2615 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2617 * ldemul.c: Fix formatting.
2618 * ldfile.c: Likewise.
2619 * pe-dll.c: Likewise.
2620 * pe-dll.h: Likewise.
2622 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2624 * ldlang.c (lang_process): Formatting, grammar.
2626 * ldlex.l: Use #include "" instead of <> for local header files.
2628 2002-05-24 TAMURA Kent <kent@netbsd.org>
2630 * configure.tgt: Add a target for i386-netbsdpe.
2632 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2634 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2635 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2636 output section if necessary. Handle .tbss.
2637 (lang_size_sections): Clear _raw_size for .tbss section
2638 (it allocates space in PT_TLS segment only).
2639 * ldwrite.c (build_link_order): Build link order for .tbss too.
2641 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2643 * configure.in: Correct spelling of AC_PREREQ.
2645 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2647 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2649 (autofilter_objlist): Add crtbegin.o, crtend.o.
2651 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2653 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2654 (longopts): Add new option --exclude-libs.
2655 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2656 (gld_${EMULATION_NAME}_parse_args): Use it.
2657 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2658 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2659 from whole archives.
2660 (pe_dll_add_excludes): Set excludes->type.
2661 (auto_export): Add new variable libname and set to archive basename if
2662 abfd. Use it when filtering default and user-specified libarary
2663 excludes. Let string "ALL" mean all libs when filtering user-specified
2665 * ld.texinfo: Document --exclude-libs.
2667 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2669 * ldemul.c (ldemul_new_vers_pattern): New function.
2670 * ldemul.h (ldemul_new_vers_pattern): Declare.
2671 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2672 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2673 * emultempl/ppc64elf.em (dotsyms): New static var.
2674 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2675 (LDEMUL_NEW_VERS_PATTERN): Define.
2676 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2677 (PARSE_AND_LIST_LONGOPTS): Likewise.
2678 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2679 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2681 * emultempl/armcoff.em: Likewise.
2682 * emultempl/armelf_oabi.em: Likewise.
2683 * emultempl/beos.em: Likewise.
2684 * emultempl/elf32.em: Likewise.
2685 * emultempl/generic.em: Likewise.
2686 * emultempl/gld960.em: Likewise.
2687 * emultempl/gld960c.em: Likewise.
2688 * emultempl/linux.em: Likewise.
2689 * emultempl/lnk960.em: Likewise.
2690 * emultempl/m68kcoff.em: Likewise.
2691 * emultempl/mipsecoff.em: Likewise.
2692 * emultempl/pe.em: Likewise.
2693 * emultempl/sunos.em: Likewise.
2694 * emultempl/ticoff.em: Likewise.
2695 * emultempl/vanilla.em: Likewise.
2697 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2699 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2700 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2701 (LIB_SEARCH_DIRS): No need to use "tr".
2702 (COMPILE_IN): Only set for native targets.
2703 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2704 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2705 * configure.tgt (powerpc*): Set tdir_*.
2706 (powerpcle*): Correct targ_extra_emuls.
2707 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2708 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2710 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2712 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2713 calling lang_add_entry.
2715 2002-05-21 H.J. Lu (hjl@gnu.org)
2717 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2719 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2721 * ld.texinfo: Updated for --allow-multiple-definition and
2724 * ldmain.c (main): Initialize the allow_multiple_definition
2727 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2728 (ld_options): Add --allow-multiple-definition.
2729 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2731 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2733 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2734 (earmelfb_nbsd.c): New rule.
2735 * Makefile.in: Regenerate.
2736 * configure.tgt (armeb-*-netbsdelf*): New target.
2737 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2738 (arm-*-netbsd*): Likewise.
2739 * emulparams/armelfb_nbsd.sh: New file.
2741 2002-05-18 Tom Rix <trix@redhat.com>
2743 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2746 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2748 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2749 * Makefile.in: Regenerate.
2750 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2752 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2754 * emulparams/avr1.sh: New file.
2755 * emulparams/avr2.sh: New file.
2756 * emulparams/avr3.sh: New file.
2757 * emulparams/avr4.sh: New file.
2758 * emulparams/avr5.sh: New file.
2759 * scripttempl/avr.sc: New file.
2761 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2763 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2764 (lang_place_orphans): Abort if just_syms_flag.
2766 2002-05-10 Tom Rix <trix@redhat.com>
2768 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2769 architecture and machine information in the output bfd.
2770 (gld*_before_parse): Remove old arch and machine code.
2771 (choose_target): Rename to gld*_choose_target.
2772 (rtld): Change type to int.
2773 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2774 objects in XCOFF archives.
2775 * ldfile.h: Update copyright date.
2777 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2779 * ldmain.c (main): Enable -z combreloc by default.
2781 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2783 * Makefile.am: Honour DESTDIR.
2784 * Makefile.in: Regenerate.
2786 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2788 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2789 (lang_enter_overlay): Remove the last two parameters.
2790 (lang_leave_overlay): Take them here instead.
2791 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2792 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2793 than lang_enter_overlay.
2794 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2795 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2796 (lang_size_sections_1): Evaluate it.
2797 (lang_leave_output_section_statement): Rework LMA lookup.
2798 (overlay_lma, overlay_nocrossrefs): Remove.
2799 (lang_enter_overlay): Remove LMA and crossref arguments.
2800 (lang_enter_overlay_section): Don't set the LMA here.
2801 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2802 assignment to the last section's update_dot_tree. Unconditionally
2803 use the load and run-time regions specified in the OVERLAY statement.
2804 Likewise the first section's LMA. Only set the other sections' LMAs
2805 when no load region is given.
2807 2002-05-06 Nick Clifton <nickc@redhat.com>
2809 * po/sv.po: New translation.
2811 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2813 * emultempl/hppaelf.em (build_section_lists): New function.
2814 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2815 and build_section_lists.
2817 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2819 * ld.h: Fix formatting.
2820 * ldexp.c: Likewise.
2821 * ldfile.c: Likewise.
2822 * ldlang.c: Likewise.
2823 * ldmain.c: Likewise.
2824 * lexsup.c: Likewise.
2825 * pe-dll.c: Likewise.
2827 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2829 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2830 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2831 (build_section_lists): Do output_section tests here.
2833 2002-04-30 Tom Rix <trix@redhat.com>
2835 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2837 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2839 Long branch stubs, multiple stub sections.
2840 * emultempl/ppc64elf.em: Include ldctor.h.
2841 (stub_file): New var.
2842 (group_size): New var.
2843 (ppc_create_output_section_statements): New function.
2844 (struct hook_stub_info): New.
2845 (hook_in_stub): New function.
2846 (ppc_add_stub_section): New function.
2847 (ppc_layout_sections_again): New function.
2848 (build_section_lists): New function.
2849 (gld${EMULATION_NAME}_finish): Rewrite.
2850 (real_func): New var.
2851 (ppc_for_each_input_file_wrapper): New function.
2852 (ppc_lang_for_each_input_file): New function.
2853 (lang_for_each_input_file): Define.
2854 (PARSE_AND_LIST_PROLOGUE): Define.
2855 (PARSE_AND_LIST_LONGOPTS): Define.
2856 (PARSE_AND_LIST_OPTIONS): Define.
2857 (PARSE_AND_LIST_ARGS_CASES): Define.
2858 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2860 2002-04-30 Tom Rix <trix@redhat.com>
2862 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2863 -blibpath, -bnolibpath support.
2865 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2867 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2868 (eelf32ppcwindiss.c): New target.
2869 * Makefile.in: Regenerated.
2870 * configure.tgt: Add support for powerpc-*-windiss.
2871 * emulparams/elf32ppcwindiss.sh: New file.
2873 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2875 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2876 * ldexp.c (exp_print_token): Add "infix_p" argument.
2877 (exp_print_tree): Update accordingly.
2879 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2881 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2882 * Makefile.in: Regenerate.
2883 * mpw-elfmips.c: Delete.
2884 * mpw-eppcmac.c: Delete.
2885 * mpw-esh.c: Delete.
2886 * mpw-idtmips.c: Delete.
2888 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2890 * emulparams/shelf32.sh (MACHINE): Now sh5.
2892 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2894 * ldgram.y: Fix syntax warning.
2896 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2898 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2899 to prevent "-n" from being taken as an abbreviation for
2900 "--no-pipeline-knowledge".
2902 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2904 * ldlang.c (lang_size_sections_1): Don't complain about
2905 SEC_NEVER_LOAD sections having no memory region specified.
2907 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2909 2002-04-07 matthew green <mrg@redhat.com>
2911 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2913 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2915 * dep-in.sed: Cope with absolute paths.
2916 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2918 * Makefile.in: Regenerate.
2920 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2922 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2924 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2926 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2927 is smaller than maximum, round dot up to common page boundary.
2929 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2931 * configure.host: Set up for generic hosts first, then tweak as
2932 necessary in more specific targets.
2933 (HOSTING_LIBS): Include libgcc_eh.a if found.
2935 2002-03-23 Andreas Jaeger <aj@suse.de>
2937 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2939 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2941 * Makefile.am: Run "make dep-am".
2942 * Makefile.in: Regenerate.
2944 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2946 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2948 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2950 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2951 add the symbol to the linker hash table immediately.
2952 (lang_place_undefineds): Split symbol creation out..
2953 (insert_undefined): ..to here.
2955 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2957 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2958 the contents of the buffer returned from basename function will are
2959 getting overwritten while still being used.
2961 2002-03-18 Jan Hubicka <jh@suse.cz>
2962 Andreas Jaeger <aj@suse.de>
2963 Andreas Schwab <schwab@suse.de>
2965 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2966 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2967 set libraries to default to lib64 paths.
2969 2002-03-18 Tom Rix <trix@redhat.com>
2971 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2972 * configure.tgt : Same.
2973 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2974 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2975 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2976 emulation parameters for better -b32, -b64 support.
2977 * emulparms/aixrs6.sh : Same.
2978 * emulparms/ppcmacos.sh : Same.
2979 * emultempl/aix.em (choose_target) : Use new emulation parameters
2980 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2981 * Makefile.in : Regenerate.
2983 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2985 * po/fr.po: Updated version.
2987 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2989 * ldmain.c (main): Move .text readonly flag fudges from here..
2990 * ldlang.c (lang_process): ..to here.
2992 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2994 * ldlang.c (lang_check): Remove the word size check added in last
2995 change. Treat emitrelocations case as for relocatable links.
2997 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2999 * po/fr.po: Updated version.
3001 2002-03-13 Alan Modra <amodra@bigpond.net.au>
3003 * ldlang.c (lang_check): Do relocatable link checks first, so that
3004 warn_mismatch can't override. Check compatible and word size too.
3006 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
3008 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3010 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3012 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
3015 2002-03-04 H.J. Lu <hjl@gnu.org>
3017 * scripttempl/elf.sc: Put .preinit_array, .init_array and
3018 .fini_array in the data segment.
3020 2002-03-04 Alan Modra <amodra@bigpond.net.au>
3022 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
3024 2002-03-01 David Mosberger <davidm@hpl.hp.com>
3026 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
3027 .init_array, and .fini_array.
3029 2002-02-20 Andreas Schwab <schwab@suse.de>
3031 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
3032 .IA64_unwind* in a relocatable link.
3034 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
3036 * NEWS: Mark 2.12 branch.
3038 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3040 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
3041 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
3043 2002-02-18 Tom Rix <trix@redhat.com>
3045 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
3046 (gld*_before_allocation): Same.
3047 (gld*_create_output_section_statements): Generate
3048 __rtinit if run time linking. Add librtl.a to the link.
3049 (gld*_read_file): Clean.
3051 2002-02-18 Alan Modra <amodra@bigpond.net.au>
3053 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
3055 2002-02-18 David O'Brien <obrien@FreeBSD.org>
3057 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
3058 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
3059 and eelf64alpha_fbsd.
3060 * Makefile.in: Regenerate.
3061 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
3062 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
3063 use a FreeBSD-specific emulation rather than the psABI one.
3064 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
3065 for all FreeBSD ELF systems.
3066 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
3068 * emulparams/elf32ppc_fbsd.sh: Likewise.
3069 * emulparams/elf64_ia64_fbsd.sh: Likewise.
3070 * emulparams/elf64_sparc_fbsd.sh: Likewise.
3071 * emulparams/elf64alpha_fbsd.sh: Likewise.
3072 * emulparams/elf_i386_fbsd.sh: Likewise.
3073 * emulparams/elf_x86_64_fbsd.sh: Likewise.
3075 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
3077 * po/tr.po: Updated version.
3079 2002-02-18 Alan Modra <amodra@bigpond.net.au>
3081 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
3084 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
3086 * emultempl/mmo.em (mmo_after_open): Don't call
3087 _bfd_mmix_check_all_relocs when producing ELF output.
3089 2002-02-15 Richard Henderson <rth@redhat.com>
3091 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
3092 definition. Emit a unop+nop pair.
3094 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
3096 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
3097 for presence of .MMIX.reg_contents.linker_allocated before early
3100 * NEWS: Mention support for MMIX.
3102 2002-02-15 Alan Modra <amodra@bigpond.net.au>
3104 Support arbitrary length fill patterns.
3105 * ld.texinfo (Output Section Fill): Describe fill expressions.
3106 (FILL): Refer to the above.
3107 * ldexp.h (etree_value_type): Add "str" field.
3108 (union etree_union): Add "str" to "value" struct.
3109 (exp_bigintop): Declare.
3110 (exp_get_fill): Declare.
3111 * ldexp.c: Include "safe-ctype.h".
3112 (exp_intop): Set value.str to NULL.
3113 (exp_bigintop): New function.
3114 (new_rel): Pass in "str", and set new.str from it.
3115 (new_rel_from_section): Set new.str to NULL.
3116 (fold_name): Adjust calls to new_rel.
3117 (exp_fold_tree): Likewise.
3118 (exp_get_fill): New function.
3119 * ldgram.y (struct big_int bigint, fill_type *fill): New.
3120 (INT): Returns a "bigint". Adjust all code handling INTs.
3121 (fill_opt): Returns a "fill".
3122 (fill_exp): Split out of fill_opt, use for FILL.
3123 * ldlang.h (struct _fill_type): New.
3124 (fill_type): Move typedef to ldexp.h.
3125 (lang_output_section_statement_type): "fill" is now a pointer.
3126 (lang_fill_statement_type): Likewise.
3127 (lang_padding_statement_type): Likewise.
3128 (lang_add_fill): Now takes a "fill_type *" param.
3129 (lang_leave_output_section_statement): Likewise.
3130 (lang_do_assignments): Likewise.
3131 (lang_size_sections): Likewise.
3132 (lang_leave_overlay_section): Likewise.
3133 (lang_leave_overlay): Likewise.
3134 * ldlang.c: Include ldgram.h after ldexp.h.
3135 (lang_output_section_statement_lookup): Adjust for fill_type change.
3136 (print_fill_statement): Likewise.
3137 (print_padding_statement): Likewise.
3138 (insert_pad): Now takes a "fill_type *" arg.
3139 (size_input_section): Likewise.
3140 (lang_size_sections_1): Likewise.
3141 (lang_size_sections): Likewise.
3142 (lang_do_assignments): Likewise.
3143 (lang_add_fill): Likewise.
3144 (lang_leave_output_section_statement): Likewise.
3145 (lang_leave_overlay_section): Likewise.
3146 (lang_leave_overlay): Likewise.
3147 Adjust all callers of the above function.
3148 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
3149 starting with "0X" as well as "0x". Return bigint.str for hex
3150 numbers starting with "0x" or "0X", zero bigint.str otherwise.
3151 Always use base 16 for numbers starting with "$".
3152 * ldmain.c: Include ldgram.h after ldexp.h.
3153 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
3154 of bfd_fill_link_order.
3155 * pe-dll.c: Adjust lang_do_assignments calls.
3156 * emultempl/elf32.em: Likewise.
3157 * emultempl/hppaelf.em: Likewise.
3158 * emultempl/ppc64elf.em: Likewise.
3159 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
3160 lang_add_assignment call.
3161 * emultempl/pe.em: Likewise.
3163 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
3165 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
3166 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
3167 the pattern in question is not a regexp.
3168 * ldlang.c: Likewise.
3169 * ldlang.h: Likewise.
3170 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
3172 2002-02-12 Jakub Jelinek <jakub@redhat.com>
3174 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3175 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3176 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
3177 * ldexp.c (exp_data_seg): New variable.
3178 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
3179 (fold_binary): Handle DATA_SEGMENT_ALIGN.
3180 (exp_fold_tree): Handle DATA_SEGMENT_END.
3181 Pass allocation_done when recursing instead of hardcoding
3182 lang_allocating_phase_enum.
3183 * ldexp.h (exp_data_seg): New.
3184 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
3185 (lang_size_sections): New.
3186 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
3187 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
3188 if COMMONPAGESIZE is defined.
3189 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
3190 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
3191 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
3192 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
3193 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
3196 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3198 * Makefile.in: Regenerate.
3200 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3202 * lexsup.c: Remove strtoul declaration.
3204 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3206 * ldmain.c: Add prototype for main ().
3207 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
3208 * emultempl/lnk960.em (lnk960_choose_target): Function should
3211 2002-02-10 Alan Modra <amodra@bigpond.net.au>
3213 * ldlang.c (entry_section): New initialised variable.
3214 (lang_finish): Use it.
3215 * ldlang.h (entry_section): Declare.
3216 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
3217 entry_section to ".opd".
3219 2002-02-09 Chris Demetriou <cgd@broadcom.com>
3221 * ld.texinfo (Options): Add back in -nostdlib documentation,
3222 which had been inadvertently removed.
3224 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
3226 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
3227 register section vma to a sane value after emitting error. Make
3228 fatal conditions cause program exit when emitting message.
3230 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
3232 * configure.tgt: Add or32-*-rtems target.
3234 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3236 Contribute sh64-elf.
3237 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3238 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
3239 in OTHER_RELOCATABLE_SECTIONS.
3240 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3241 * emulparams/shelf32.sh (STACK_ADDR): Define.
3242 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
3243 (OTHER_SECTIONS): this. Removed stack settings.
3244 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
3245 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
3246 2001-03-12 DJ Delorie <dj@redhat.com>
3247 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
3248 relaxing if any shmedia or mixed sections are found.
3249 2001-03-07 DJ Delorie <dj@redhat.com>
3250 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
3251 einfo. Gracefully decline to output to non-elf formats.
3252 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
3253 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
3254 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
3255 * emulparams/shelf32.sh: Ditto.
3256 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
3257 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
3259 2001-01-10 Ben Elliston <bje@redhat.com>
3260 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
3261 non-portable shell constructs. From Hans-Peter Nilsson.
3262 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
3263 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
3264 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
3265 dependencies to the shell script include chain.
3266 * Makefile.in: Regenerate.
3267 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3268 * emultempl/sh64elf.em: Update and tweak comments.
3269 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
3270 make a .cranges section SEC_IN_MEMORY.
3271 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3272 * emultempl/sh64elf.em
3273 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
3274 .cranges section found to be necessary; continue and set stored
3275 section contents flags for sections with non-mixed contents.
3276 Use a struct sh64_section_data container and sh64_elf_section_data
3277 to store contents-type flags.
3278 Remove unused update of "isec".
3279 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
3280 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
3281 access contents-type flags. Assert that the associated container
3282 is initialized. Use that container, not elf_gp_size, to hold size
3283 of linker-generated cranges contents.
3284 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3285 * emultempl/sh64elf.em
3286 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
3287 there's already a .cranges section. When section flag difference
3288 is found, don't NULL-check cranges a second time. Tweak comments.
3289 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
3290 merging, not max size, as size of ld-generated .cranges contents.
3291 Don't set ELF section flags in output section. When checking for
3292 needed .cranges descriptors, don't use a variable; compare
3293 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
3295 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3296 * emultempl/sh64elf.em: New file.
3297 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
3298 * Makefile.in: Regenerate.
3299 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
3300 (OTHER_RELOCATING_SECTIONS): Ditto.
3301 (EXTRA_EM_FILE): New, set to sh64elf if not set.
3302 * emulparams/shlelf32.sh: Stub out all settings except
3303 OUTPUT_FORMAT. Source shelf32.sh.
3304 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
3305 OTHER_RELOCATING_SECTIONS.
3306 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
3307 * emulparams/shlelf64.sh: Stub out all settings except
3308 OUTPUT_FORMAT. Source shelf64.sh.
3309 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3310 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
3312 (DATA_START_SYMBOLS): Define, provide ___data.
3313 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
3314 for consecutive .data section.
3315 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
3316 section after .data section.
3317 * emulparams/shlelf64.sh: Ditto.
3318 * emulparams/shelf32.sh: Ditto.
3319 (ALIGNMENT): Define to 8.
3320 * emulparams/shelf32.sh: Ditto.
3321 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3322 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
3323 built-in linker scripts.
3324 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3325 * emulparams/shlelf64.sh: New.
3326 * emulparams/shelf64.sh: New.
3327 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
3329 * Makefile.am: Add support for shlelf64 and shelf64.
3330 * Makefile.in: Regenerate.
3331 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3332 * configure.tgt (sh64-*-elf*): Add shelf as default.
3333 Add shlelf to targ_extra_emuls.
3334 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3335 * emulparams/shelf32.sh: New file.
3336 * emulparams/shlelf32.sh: New file.
3337 * Makefile.am: Add support for shlelf32 and shelf32.
3338 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
3339 * Makefile.in: Regenerate.
3341 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
3343 * ldlang.c (lang_reset_memory_regions): Rename from
3344 reset_memory_regions. Change all callers. Make public.
3345 * ldlang.h (lang_reset_memory_regions): Prototype.
3346 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
3347 lang_reset_memory_regions before lang_size_sections.
3348 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3349 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
3351 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3353 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
3354 arithmetic when checking for too many global registers.
3356 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3358 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3359 (ehppanbsd.c): New rule.
3360 * Makefile.in: Regenerate.
3361 * configure.tgt (hppa*-*-netbsd*): New target.
3362 * emulparams/hppalinux.sh: Add comment to check other files
3363 that source this file it is modified, and list which
3365 * emulparams/hppanbsd.sh: New file.
3367 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3369 * scripttempl/xstormy16.sc: Don't allocate extra space for the
3372 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3374 Support on-demand global register allocation from
3375 R_MMIX_BASE_PLUS_OFFSET relocs.
3376 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3377 mmix_set_reg_section_vma. Call
3378 _bfd_mmix_finalize_linker_allocated_gregs.
3379 (mmix_before_allocation): New function.
3380 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3381 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3382 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3383 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3384 before .MMIX.reg_contents.
3385 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3386 (mmo_after_open): New function.
3387 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3388 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
3389 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3391 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3393 * emulparams/or32.sh: New file.
3394 * emulparams/or32elf.sh: New file.
3395 * scripttempl/or32.sc: New file.
3396 * configure.tgt : Add support for or32.
3397 * configure: Regenerate
3398 * Makefile.am: Add support for or32.
3399 * Makefile.in: Regenerate.
3400 * NEWS: Mention support for or32.
3401 * po/ld.pot: Regenerate.
3403 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3404 Mitch Lichtenberg <mpl@broadcom.com>
3406 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3407 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3408 reloc creation (ld --embedded-relocs).
3410 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3412 * configure: Regenerated.
3414 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3416 * Makefile.am (install): Depend on install-info.
3417 * Makefile.in: Regenerate.
3419 2002-01-26 Christian Rose <menthos@menthos.com>
3421 * ldmain.c (main): Use full sentences to ease translation.
3423 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3425 * po/fr.po: Updated version.
3427 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3429 * po/es.po: Updated version.
3431 2002-01-25 Andreas Jaeger <aj@suse.de>
3433 * ldlex.l (yy_input): Correct error check.
3435 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3437 * ldmisc.c (demangle): Put back dots when string not demangled.
3439 2002-01-22 Richard Henderson <rth@redhat.com>
3441 * emulparams/elf64alpha.sh (NOP): Use unop.
3443 2002-01-21 Andreas Jaeger <aj@suse.de>
3445 * ldlex.l: Use fread instead of read.
3447 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3449 * configure.tgt (ia64-*-netbsd*): New target.
3451 2002-01-21 H.J. Lu <hjl@gnu.org>
3453 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3455 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3457 2002-01-18 Andreas Jaeger <aj@suse.de>
3459 * ldver.c (ldversion): Update year.
3461 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3463 * po/ld.pot: Regenerate.
3465 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3467 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3468 * Makefile.in: Regenerate.
3469 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3470 * emultempl/ppc64elf.em: New file.
3472 2002-01-15 DJ Delorie <dj@redhat.com>
3474 * scripttempl/pe.sc: Add support for constructor priorities.
3476 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3478 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3479 * emulparams/avr23xx.sh: Likewise.
3480 * emulparams/avr4433.sh: Likewise.
3481 * emulparams/avr44x4.sh: Likewise.
3482 * emulparams/avr85xx.sh: Likewise.
3483 * emulparams/avrmega103.sh: Likewise.
3484 * emulparams/avrmega161.sh: Likewise.
3485 * emulparams/avrmega603.sh: Likewise.
3486 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3488 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3490 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3491 archive is excluded.
3493 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3495 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3496 (eshelf_nbsd.c): New rule.
3497 (eshlelf_nbsd.c): New rule.
3498 * Makefile.in: Regenerate.
3499 * configure.tgt (sh*le-*-netbsdelf*): New target.
3500 (sh*-*-netbsdelf*): New target.
3501 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3502 * emulparams/shelf_nbsd.sh: New emulation.
3503 * emulparams/shlelf_nbsd.sh: New emulation.
3505 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3507 * po/es.po: New file: Spanish translation.
3508 * configure.in (ALL_LINGUAS): Add es.
3509 * configure: Regenerate.
3511 2002-01-06 John Marshall <jmarshall@acm.org>
3513 * ld.texinfo: Note that --emit-relocs is currently only
3514 implemented for ELF.
3516 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3518 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3519 of bfd_section_list_remove and bfd_section_list_insert macros.
3520 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3521 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3523 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3525 * configure.tgt (x86_64-*-netbsd*): New target.
3527 2001-12-21 Tom Rix <trix@redhat.com>
3529 (gld*_create_output_section_statements): New function.
3530 For -binitfini support.
3531 * emultempl/aix.em (gld*_before_parse): Fix comment.
3532 * emultempl/aix.em (gld*_parse_args): Fix comment.
3534 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3536 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3538 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3540 * configure.tgt (arm-*-netbsdelf*): Add target.
3541 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3542 * emulparams/armelf_nbsd.sh: Added.
3543 * Makefile.am: Add rules for earmelf_nbsd.
3544 * Makefile.in: Regenerate.
3546 2001-12-19 Andreas Jaeger <aj@suse.de>,
3547 Susanne Oberhauser <froh@suse.de>
3549 * configure.host: Add rules for x86_64-*linux-gnu. Change
3550 s390x-linux entry to use gcc to report configuration, replace gcc
3551 with $CC in s390-linux
3553 2001-12-19 Andreas Jaeger <aj@suse.de>
3555 * ld.texinfo (VERSION): Fix markup.
3557 2001-12-18 matthew green <mrg@eterna.com.au>
3559 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3560 (m68kelfnbsd.c): New rule.
3561 * Makefile.in: Regenerate.
3562 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3563 (m68*-*-netbsd*4k*): .. this.
3564 (m68*-*-netbsdelf*): New target.
3565 (m68*-*-netbsd*): Also include ELF support.
3566 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3567 * emulparams/m68kelfnbsd.sh: New emulation.
3569 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3571 * ldgram.y (vers_node): Support anonymous version tags.
3572 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3573 tag is not defined together with non-anonymous versions.
3574 * ld.texinfo: Document it.
3576 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3578 * po/tr.po: New file: Turkish translation.
3579 * configure.in (ALL_LINGUAS): Add tr.
3580 * configure: Regenerate.
3582 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3584 * Makefile.am: Add rules for eelf64alpha_nbsd.
3585 * Makefile.in: Regenerate.
3586 * configure.tgt (alpha*-*-netbsd*): Set
3587 targ_emul to elf64alpha_nbsd.
3588 * emulparams/elf64alpha_nbsd.sh: Added.
3590 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3592 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3593 section_tail when fiddling with section list.
3594 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3595 broken into separate strings to make translation easier.
3596 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3597 fiddling with section list.
3598 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3600 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3602 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3604 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3606 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3608 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3610 * emultempl/elf32.em (finish): Supply output_bfd
3611 to bfd_elf*_discard_info.
3612 (OPTION_EH_FRAME_HDR): Define.
3613 (longopts): Add --eh-frame-hdr.
3614 (parse_args): Handle it.
3615 (list_options): Add --eh-frame-hdr to help.
3616 * emultempl/hppaelf.em (finish): Supply output_bfd
3617 to bfd_elf*_discard_info.
3618 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3620 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3622 * lexsup.c (parse_args): Don't pass shortopts to second call to
3623 getopt functions. Restore optind rather than decrementing before
3624 second call. Remove errind as it now duplicates last_optind.
3626 2001-12-11 Christopher Faylor <cgf@redhat.com>
3628 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3630 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3631 Richard Henderson <rth@redhat.com>
3633 * Makefile.am: Add support for xstormy16.
3634 * configure.tgt: Add support for xstormy16.
3635 * Makefile.in: Regenerate.
3636 * emulparams/elf32xstormy16.sh: New file.
3637 * scripttempl/xstormy16.sc: New file.
3639 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3641 * Makefile.in (LIB_PATH): Make configurable.
3642 (GENSCRIPTS): Set LIB_PATH in environment.
3643 * configure.in: Substitute LIB_PATH.
3644 * configure: Regenerate.
3645 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3646 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3648 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3650 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3651 describing the -N option so that it is easier to translate into
3654 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3656 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3657 statements describing a single option with a single, newline
3658 escaped fprintf. This allows better translation into other
3661 * ldmain.c (add_archive_element): Combine multiple strings
3662 into a single string to permit better translation into other
3665 2001-12-05 Tom Rix <trix@redhat.com>
3667 * Makefile.am: Remove eaixppc64.
3668 * Makefile.in: Regenerate.
3670 2001-12-04 Tom Rix <trix@redhat.com>
3672 * emultempl/aix.em (choose_target): Change default target to
3673 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3675 (gld*_read_file): Fix typo.
3676 (change_symbol_mode): Add prototype.
3679 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3680 * emulparams/aixrs6.sh : Same.
3681 * emulparams/ppcmacos.sh : Same.
3682 * emulparams/aixppc64.sh : Delete file.
3683 * emultempl/aix.em : Formatting changes.
3685 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3687 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3688 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3690 (OTHER_END_SYMBOLS): Fix formatting.
3691 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3692 (OTHER_END_SYMBOLS): Fix formatting.
3694 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3696 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3698 2001-12-02 Tom Rix <trix@redhat.com>
3700 * configure.tgt : Remove eaixppc64 emulations.
3701 * Makefile.in : Remove eaixppc64.c
3702 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3703 (ldemul_default_target): Same.
3704 * emultempl/gld960.em (gld960_choose_target): Same.
3705 * emultempl/gld960c.em (gld960_choose_target): Same.
3706 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3707 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3708 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3709 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3710 * emultempl/aix.em (choose_target): New function. Handle emulation of
3713 2001-11-27 H.J. Lu <hjl@gnu.org>
3715 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3716 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3717 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3718 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3719 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3720 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3721 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3722 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3724 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3727 (REL_SDATA): Likewise.
3728 (REL_SBSS): Likewise.
3729 (REL_SDATA2): Likewise.
3730 (REL_SBSS2): Likewise.
3731 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3734 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3736 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3738 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3740 2001-11-22 H.J. Lu <hjl@gnu.org>
3742 * Makefile.in: Regenerated with automake based on automake
3743 1.4-8 in RedHat 7.1.
3745 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3747 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3748 (config.status): Delete rule.
3749 Add extra dependencies to cover sourced emulparams files.
3750 * Makefile.in: Regenerate.
3752 * scripttempl/elf.sc: Order <section>, <section>.* and
3753 corresponding linkonce sections as seen in input files.
3754 Formatting fixes. Zero vma of all sections if not relocating.
3755 (STACK): Define and insert if STACK_ADDR defined.
3756 (OTHER_RELOCATING_SECTIONS): Delete.
3757 (OTHER_END_SYMBOLS): Define.
3758 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3759 (OTHER_READWRITE_SECTIONS): Likewise.
3760 (OTHER_GOT_SECTIONS): Likewise.
3761 (OTHER_SDATA_SECTIONS): Likewise.
3762 (OTHER_BSS_SECTIONS): Likewise.
3763 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3764 (OTHER_READWRITE_SECTIONS): Likewise.
3765 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3766 (OTHER_READWRITE_SECTIONS): Likewise.
3768 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3769 (STACK_ADDR): Define.
3770 * emulparams/armelf_oabi.sh: As for armelf.sh.
3771 * emulparams/elf32mcore.sh: As for armelf.sh.
3772 * emulparams/h8300elf.sh: As for armelf.sh.
3773 * emulparams/mn10200.sh: As for armelf.sh.
3774 * emulparams/shelf.sh: As for armelf.sh.
3776 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3777 (OTHER_END_SYMBOLS): Define.
3778 * emulparams/m32relf.sh: As for elf32fr30.sh.
3779 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3780 * emulparams/h8300self.sh: As for elf32fr30.sh.
3782 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3783 defines with RELOCATING test.
3784 (OTHER_SDATA_SECTIONS): Likewise.
3785 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3786 (OTHER_END_SYMBOLS): ..this.
3787 * emulparams/crislinux.sh: As for criself.sh.
3789 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3791 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3792 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3793 normal and linkonce sections as seen in input files.
3794 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3795 (TEXT_DYNAMIC): Likewise.
3796 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3797 (OTHER_SDATA_SECTIONS): Likewise.
3798 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3799 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3800 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3801 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3802 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3803 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3804 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3805 sections as seen in input files.
3806 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3807 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3809 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3810 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3811 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3812 (OTHER_SECTIONS): Instead, use this..
3813 (OTHER_END_SYMBOLS): ..and this.
3815 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3816 * emulparams/elf32bsmip.sh: Likewise.
3817 * emulparams/elf32btsmip.sh: Likewise.
3818 * emulparams/elf32ebmip.sh: Likewise.
3819 * emulparams/elf32lmip.sh: Likewise.
3820 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3821 * emulparams/elf32lsmip.sh: Likewise.
3822 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3823 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3824 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3825 * emulparams/elf64btsmip.sh: Likewise.
3826 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3827 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3828 * emulparams/elf32ppclinux.sh: Likewise.
3829 * emulparams/elf32ppcsim.sh: Likewise.
3830 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3831 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3832 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3833 * emulparams/h8300self.sh: Likewise.
3834 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3835 * emulparams/sh.sh: Comment.
3836 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3837 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3838 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3840 2001-11-21 David Heine <dlheine@tensilica.com>
3841 Alan Modra <amodra@bigpond.net.au>
3843 * ldlang.c (map_input_to_output_sections): Replace "break"
3844 accidentally removed with 2001-08-03 change.
3845 (lang_gc_sections_1): Likewise.
3847 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3849 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3851 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3853 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3854 of false when calling lang_size_sections.
3855 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3857 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3859 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3860 function when LDEMUL_FINISH isn't set to the same name. Don't
3861 call ${LDEMUL_FINISH}.
3862 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3863 * emultempl/armelf.em (arm_elf_finish): Call
3864 gld${EMULATION_NAME}_finish.
3865 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3866 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3867 hppaelf_layout_sections_again if necessary.
3868 (need_laying_out): New var.
3869 (hppaelf_layaout_sections_again): Rename to
3870 hppaelf_layout_sections_again. Clear need_laying_out.
3871 (PARSE_AND_LIST_OPTIONS): Format text.
3873 2001-11-14 H.J. Lu <hjl@gnu.org>
3875 * emultempl/armelf.em (arm_elf_finish): Renamed from
3876 gld${EMULATION_NAME}_finish.
3877 (LDEMUL_FINISH): Set to arm_elf_finish.
3879 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3881 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3882 (struct ld_emulation_xfer_struct): Use it.
3884 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3886 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3887 additional symbols referenced by newer crt0.o files from HP.
3889 2001-11-12 Anthony Green <green@redhat.com>
3891 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3893 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3895 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3896 * Makefile.in: Regenerate.
3898 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3900 * ld.texinfo: Use @command for commands, @option for options.
3901 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3903 * Makefile.in: Rebuild.
3905 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3907 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3908 Add support for targets.
3910 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3912 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3913 * configure: Regernate.
3914 * po/fr.po: New file.
3915 * po/sv.po: New file.
3917 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3919 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3920 as little endian default and to support big endian.
3922 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3924 * ld.texinfo (Options): Document new option, -nostdlib.
3925 * lexsup.c (OPTION_NOSTDLIB): New definition.
3926 (ld_options): Add entry for "nostdlib".
3927 (parse_args): Handle OPTIONS_NOSTDLIB.
3928 * ldfile.c (ldfile_add_library_path): Don't add directories
3929 to the search path if they weren't specified on the command line
3930 and -nostdlib was specified.
3931 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3933 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3935 * lexsup.c (parse_args): Prevent infinite parsing loop when
3936 "-rpath.a" is specified on the command line.
3937 Replace calls to fprintf with calls to einfo.
3939 2001-10-31 John Marshall <jmarshall@acm.org>
3941 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3942 appear only once across all the linker scripts involved in a link
3943 invocation no longer applies. Make the documentation reflect
3946 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3948 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3950 (sh-*-linux*): Added targ_extra_libpath.
3952 2001-10-31 David Heine <dlheine@tensilica.com>
3954 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3955 for padding statements.
3957 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3959 * configure.tgt (mmix-*-*): New target.
3960 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3961 Add dependencies to match.
3962 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3963 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3964 scripttempl/mmo.sc: New files.
3965 * gen-doc.texi: @set MMIX.
3966 * ld.texinfo: Ditto.
3967 [MMIX] Add MMIX node.
3968 * Makefile.in: Regenerate.
3970 2001-10-29 Kazu Hirata <kazu@hxi.com>
3972 * ldlang.c: Fix a comment typo.
3974 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3976 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3977 entries, and match *-*-linux*.
3979 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3981 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3982 with ldlex_script, ldlex_popstate.
3983 (ifile_p1): Likewise.
3984 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3986 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3987 to 1. Don't BEGIN(SCRIPT).
3988 (lex_redirect): Similarly.
3989 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3991 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3993 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3994 __EH_FRAME_END__ and accept eh frames into data section.
3995 Add ctor and dtor sections.
3997 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3999 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
4000 (auto-export): Fix indentation.
4002 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4004 * pe-dll.c (autofilter_objectlist): Add startup objects
4006 (auto-export): Constify char * p.
4007 Extract file basename and use strcmp rather than ststr
4010 2001-10-18 Chris Demetriou <cgd@broadcom.com>
4012 * ldmain.c (get_emulation): Improve comment about the handling
4015 2001-10-17 Alan Modra <amodra@bigpond.net.au>
4017 * po/POTFILES.in: Regenerate.
4019 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
4021 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
4022 -z nocopyreloc and -z nocombreloc usage strings.
4024 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
4026 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
4029 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
4031 * scripttempl/armaout.sc: Place .bss section after end of aligned
4032 data section to match behaviour of aout code in constructrion of
4035 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4037 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
4038 startup files for mingw32 dlls to list.
4040 2001-10-10 Chris Demetriou <cgd@broadcom.com>
4042 * emultempl/elf32.em: Fix shell 'if' usage for portability.
4044 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
4046 * configure.tgt (targ): Add arm9e-*-elf.
4048 2001-10-05 H.J. Lu <hjl@gnu.org>
4050 * genscripts.sh: Fix a typo in the last change.
4052 2001-10-05 Jakub Jelinek <jakub@redhat.com>
4054 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
4055 -z nocombreloc in usage.
4057 2001-10-03 Jim Blandy <jimb@redhat.com>
4059 * genscripts.sh: Include a comment at the top of each generated
4060 script, explaining its purpose.
4062 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
4064 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
4065 * NEWS: Mention -z nocopyreloc.
4066 * ld.texinfo (Options): Describe nocopyreloc.
4068 2001-10-03 Alan Modra <amodra@bigpond.net.au>
4070 * configure: Regenerate.
4072 2001-10-02 Alan Modra <amodra@bigpond.net.au>
4074 * ldver.h (ld_program_version): Remove declaration.
4075 * lexsup.c (parse_args): Move printing of copyright message..
4076 * ldver.c (ldversion): .. to here.
4077 Use BFD_VERSION_STRING in place of BFD_VERSION.
4078 (ld_program_version): Remove.
4079 * Makefile.am (Makefile): Depend on bfd/configure.in.
4081 * Makefile.in: Regenerate.
4083 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4085 * Makefile.am: Update dependencies with "make dep-am".
4086 * Makefile.in: Regenerate.
4088 2001-09-29 John Reiser <jreiser@BitWagon.com>
4090 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
4091 * lexsup.c: Add --no-define-common commandline option.
4092 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
4093 * ldlex.l: Likewise.
4094 * ld.h: Add command_line.inhibit_common_definition.
4095 * ldmain.c (main): Initialize.
4096 * ld.texinfo: Document.
4098 2001-09-29 Alan Modra <amodra@bigpond.net.au>
4100 * ldlang.c (section_already_linked): Remove assignment to kept_section.
4102 2001-09-26 Alan Modra <amodra@bigpond.net.au>
4104 * ldmisc.c (USE_STDARG): Remove.
4105 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
4110 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
4111 declarations. Update copyright.
4113 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
4115 * pe-dll.c: Remove obsoleted declaration of
4116 pe_get_data_import_dll_name.
4117 (pe_create_import_fixup): Fix thinko.
4119 * ld.texinfo(enable-auto-import): Clarify the explanation.
4121 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
4123 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
4124 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
4125 DLL_SUPPORT controlled code.
4127 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
4129 * emultempl/pe.em(pe_data_import_dll): Make static.
4130 (pe_get_data_import_dll_name): New accessor function.
4131 * pe-dll.c(pe_create_import_fixup): call
4132 pe_get_data_import_dll_name() from pe.em, instead of
4133 directly accessing pe_data_import_dll variable from pe.em.
4135 2001-09-18 Bruno Haible <haible@clisp.cons.org>
4137 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
4138 (def_file_add_directive): Use ISSPACE instead of isspace.
4139 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
4140 isdigit/isxdigit/isalpha/isalnum.
4141 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
4142 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
4143 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
4144 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
4146 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
4147 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
4149 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
4150 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
4151 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
4152 (ctor_prio): Use ISDIGIT instead of isdigit.
4153 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
4154 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
4155 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
4157 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
4158 (stricpy): Use TOLOWER instead of isupper/tolower.
4159 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
4160 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
4161 (lex_warn_invalid): Use ISPRINT instead of isprint.
4162 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
4163 (main): For gettext, also set the LC_CTYPE locate facet.
4164 (add_keepsyms_file): Use ISSPACE instead of isspace.
4165 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
4166 (is_num, parse_args): Use ISDIGIT instead of isdigit.
4167 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
4168 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
4169 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
4170 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
4171 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
4172 (quoteput): Use ISSPACE instead of isspace.
4173 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
4176 2001-09-18 Alan Modra <amodra@bigpond.net.au>
4178 * deffilep.y (def_stash_module): Constify "name" param.
4180 * pe-dll.c: Replace CONST with const throughout.
4181 (quick_symbol): Constify "n1", "n2", "n3" params.
4182 (make_singleton_name_thunk): Constify "import" param. Make
4183 "buffer_len" a size_t.
4184 (make_import_fixup_entry): Constify "name", "fixup_name",
4185 "dll_symname" params.
4186 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
4187 (pe_get32): Likewise.
4188 (pe_implied_import_dll): Likewise.
4190 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
4191 (sort_by_section_name): Likewise.
4193 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
4194 (make_import_fixup): Cast printf arg, rel->address to long rather
4196 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
4198 2001-09-15 Alan Modra <amodra@bigpond.net.au>
4200 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
4201 defines BufferSize. Increase buffer size by one.
4203 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
4205 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
4207 2001-09-14 Kevin Lo <kevlo@openbsd.org>
4209 * configure.tgt: Add arm-openbsd target.
4211 2001-09-12 H.J. Lu <hjl@gnu.org>
4213 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
4215 (ALL_64_EMULATIONS): Here.
4216 * Makefile.in: Regenerated.
4218 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4220 * emultempl/pe.em(make_import_fixup): change signature to
4221 take asection as well as arelec; we need this for proper
4222 error reporting. Only call pe_create_import_fixup() if
4223 there is no attempt to add a constant addend to the reloc;
4224 otherwise, report error condition.
4225 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
4226 since final argument is a pointer to make_import_fixup().
4227 Change call to cb() to match make_import_fixup() signature.
4228 (make_import_fixup_mark): make buffer_len unsigned.
4229 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
4231 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
4233 * ld.texinfo: add verbose documentation for auto-import
4234 direct-addressing workaround, to compliment the terse
4237 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
4239 * scripttempl/v850.sc: Add gcc_except_table sections.
4241 2001-09-11 Jeffrey A Law (law@cygnus.com)
4243 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
4244 * emulparams/h8300self.sh: Similarly.
4246 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
4248 * ld.texinfo (Options, --stack): Correct default value for stack
4251 2001-09-05 Tom Rix <trix@redhat.com>
4253 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
4255 2001-09-03 Andreas Jaeger <aj@suse.de>
4257 * emultempl/beos.em: Declare prototypes for comparions functions,
4260 2001-09-02 Andreas Jaeger <aj@suse.de>
4262 * emultempl/aix.em: Add missing prototype.
4263 * emultempl/lnk960.em: Likewise.
4264 * emultempl/vanilla.em: Likewise.
4265 * emultempl/armcoff.em: Likewise.
4266 * emultempl/armelf_oabi.em: Likewise.
4267 * emultempl/beos.em: Likewise.
4268 * emultempl/gld960c.em: Likewise.
4269 * emultempl/gld960.em: Likewise.
4271 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
4272 for prototype declaration.
4274 2001-08-31 Eric Christopher <echristo@redhat.com>
4275 Jason Eckhardt <jle@redhat.com>
4277 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
4279 2001-08-31 Andreas Jaeger <aj@suse.de>
4281 * emultempl/pe.em: Add missing prototypes.
4282 (gld_${EMULATION_NAME}_after_open): Remove extra args to
4283 pe_find_data_imports.
4284 (pr_sym): Add unused attribute.
4286 2001-08-29 Joel Sherrill <joel@OARcorp.com>
4288 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
4289 default from coff to elf.
4291 2001-08-29 Jeff Law <law@redhat.com>
4293 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
4295 * emulparams/h8300self.sh: Similarly.
4297 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
4299 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
4301 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
4302 * configure.tgt (h8300-*-elf*): New case.
4303 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
4304 * emulparams/h8300self.sh: New file.
4305 * Makefile.in: Regenerated.
4307 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
4309 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
4312 2001-08-27 Linus Nordberg <linus@swox.com>
4313 Alan Modra <amodra@bigpond.net.au>
4315 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
4316 (eelf64ppc.c, eelf64lppc.c): Add make targets.
4318 * Makefile.in: Regenerate.
4319 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
4320 entries to correct alphabetical position.
4321 * emulparams/elf64ppc.sh: New.
4322 * emulparams/elf64lppc.sh: New.
4324 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
4326 * ldmain.c (main): Declare BSIZE as static.
4328 2001-08-23 Jakub Jelinek <jakub@redhat.com>
4330 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4331 into .rel.dyn resp. .rela.dyn if combreloc.
4332 (get_script): If .x linker script is equal to .xn, only put it
4333 once into the binary.
4334 Add .xc and .xsc scripts.
4335 (parse_args): Handle -z combreloc and -z nocombreloc.
4336 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
4337 For .xc and .xsc scripts put all .rel* or .rela* input sections
4338 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
4339 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
4341 Strip trailing whitespace from script.
4342 Generate .xc and .xsc scripts if requested.
4343 * ldmain.c (main): Initialize link_info.combreloc and
4344 link_info.spare_dynamic_tags.
4345 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
4346 (ld_options): Add --spare-dynamic-tags option.
4347 (parse_args): Likewise.
4348 * ld.texinfo: Document -z combreloc and -z nocombreloc.
4349 * ldint.texinfo: Document .xc and .xsc linker scripts.
4350 * NEWS: Add notes about -z combreloc and SHF_MERGE.
4352 2001-08-22 H.J. Lu <hjl@gnu.org>
4354 * emulparams/elf32fr30.sh: Add a newline.
4356 2001-08-21 Andreas Jaeger <aj@suse.de>
4358 * deffilep.y: Add missing prototypes.
4359 * pe-dll.c: Likewise.
4361 2001-08-20 Alan Modra <amodra@bigpond.net.au>
4363 * ldlang.c (insert_pad): Fix typos in last patch.
4365 * ldlang.c: When traversing lang_statement_union_type lists,
4366 consistently use "header.next" rather than "next".
4367 * mpw-eppcmac.c: Likewise.
4368 * emultempl/beos.em: Likewise.
4369 * emultempl/hppaelf.em: Likewise.
4370 * emultempl/pe.em: Likewise.
4371 * ldlang.h (union lang_statement_union): Remove "next" field.
4373 * ldlang.c (insert_pad): Use offsetof macro.
4374 (lang_size_sections): Always neuter padding statements.
4375 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4377 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4378 passed to lang_size_sections.
4379 (pe_exe_fill_sections): Likewise.
4380 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4381 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4383 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4385 * emultempl/aix.em: Formatting fixes.
4387 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4389 * ldlang.c (insert_pad): Make use of an existing pad statement if
4390 available. Move code calculating alignment, adjusting section
4391 alignment power, and adjusting dot to ..
4392 (size_input_section): .. here. Remove unused relax param.
4393 (lang_size_sections): Change boolean `relax' param to boolean *.
4394 Adjust call to size_input_section. Make use of insert_pad to
4395 place pad after the assignment statement. If relaxing, zap
4397 (reset_memory_regions): Reset output_bfd section sizes too.
4398 (relax_again): Move to..
4399 (lang_process): ..here. Adjust call to lang_size_sections, and
4400 remove duplicated code.
4401 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4403 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4405 * ld.texinfo: Document that fill values now use the four least
4407 * emulparams/elf32fr30.sh (NOP): Update.
4408 * emulparams/elf32mcore.sh: Likewise.
4409 * emulparams/elf64_s390.sh: Likewise.
4410 * emulparams/elf_i386.sh: Likewise.
4411 * emulparams/elf_i386_be.sh: Likewise.
4412 * emulparams/elf_i386_chaos.sh: Likewise.
4413 * emulparams/elf_i386_ldso.sh: Likewise.
4414 * emulparams/elf_s390.sh: Likewise.
4415 * emulparams/elf_x86_64.sh: Likewise.
4416 * emulparams/i386moss.sh: Likewise.
4417 * emulparams/i386nw.sh: Likewise.
4418 * emulparams/m68kelf.sh: Likewise.
4419 * scripttempl/elf.sc: Update NOP comment.
4420 * scripttempl/elfi370.sc: Likewise.
4421 * scripttempl/elfm68hc11.sc: Likewise.
4422 * scripttempl/elfm68hc12.sc: Likewise.
4423 * scripttempl/nw.sc: Likewise.
4425 2001-08-15 Tom Rix <trix@redhat.com>
4427 * ldgram.y (saved_script_handle): Initialize to NULL.
4428 * ldmain.c (main): Change check on saved_script_handle.
4430 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4432 * emultempl/elf32.em: Formatting fixes.
4433 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4434 looking at sec->owner.
4435 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4436 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4437 unused code, and reorganize orphan section placement code.
4439 * ldlang.c (wild_doit): Rename to lang_add_section.
4440 * ldlang.h: Here too.
4441 * mpw-elfmips.c: And here.
4442 * emultempl/beos.em: And here.
4443 * emultempl/elf32.em: And here.
4444 * emultempl/hppaelf.em: And here.
4445 * emultempl/pe.em: And here.
4447 2001-08-13 Richard Henderson <rth@redhat.com>
4449 * emultempl/needrelax.em: New file.
4450 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4451 * Makefile.am (eelf64_ia64.c): Depend on it.
4452 * Makefile.in: Rebuild.
4454 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4456 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4457 output_section is set non-NULL.
4459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4460 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4461 needlessly create an output_section_statement. Treat a correctly
4462 named output_section_statement with NULL bfd_section as compatible.
4464 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4466 * emultempl/generic.em: Support EXTRA_EM_FILE.
4467 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4468 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4469 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4470 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4471 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4472 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4473 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4474 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4475 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4476 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4478 2001-08-12 Richard Henderson <rth@redhat.com>
4480 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4481 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4482 scripttempl/v850.sc: Keep .jcr data.
4484 2001-08-12 H.J. Lu <hjl@gnu.org>
4485 Andrew Haley <aph@cambridge.redhat.com>
4486 Nick Clifton <nickc@redhat.com>
4488 * ldgram.y (had_script): Change name to saved_script_handle.
4489 Change type to file handle.
4490 * ld.h (had_script): Rename and retype.
4491 * ldfile.c (ldfile_open_command_file): Save the file handle
4492 used in saved_script_handle.
4493 * lexsup.c (parse_args): Do not allow -c option to alter
4494 saved_script_handle.
4495 * ldmain.c (main): Print out the linker script used if
4496 --verbose is given. Check saved_script_handle to obtain the
4497 external linker script used, or if NULL, dump the builtin
4499 * ld.texinfo: Document that --verbose now dumps the linker
4500 script used, regardless of whether it was an internal or an
4503 2001-08-10 Andreas Jaeger <aj@suse.de>
4505 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4507 * configure: Regenerate.
4509 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4511 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4513 * scripttempl/elf.sc: Move non-text .dynamic section before
4514 .plt/.got/.sdata* group.
4515 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4516 (OTHER_SDATA_SECTIONS): Add.
4517 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4519 * emulparams/crislinux.sh: Likewise.
4520 * emulparams/elf32b4300.sh: Likewise.
4521 * emulparams/elf32bmip.sh: Likewise.
4522 * emulparams/elf32bmipn32.sh: Likewise.
4523 * emulparams/elf32bsmip.sh: Likewise.
4524 * emulparams/elf32btsmip.sh: Likewise.
4525 * emulparams/elf32ebmip.sh: Likewise.
4526 * emulparams/elf32elmip.sh: Likewise.
4527 * emulparams/elf32l4300.sh: Likewise.
4528 * emulparams/elf32lmip.sh: Likewise.
4529 * emulparams/elf32lsmip.sh: Likewise.
4530 * emulparams/elf32ltsmip.sh: Likewise.
4531 * emulparams/elf64bmip.sh: Likewise.
4532 * emulparams/elf64btsmip.sh: Likewise.
4533 * emulparams/elf64ltsmip.sh: Likewise.
4535 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4537 * genscripts.sh: Source the emulparams script before each output
4538 script is generated so that variables like `RELOCATING' may affect
4539 variables defined in the emulparams script.
4541 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4543 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4546 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4547 ie. iterate over wild_statement.section_list.
4548 (gld${EMULATION_NAME}_place_orphan): Likewise.
4550 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4552 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4553 .fini[0-4] sections used by _exit
4554 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4555 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4556 * scripttempl/elfm68hc11.sc: Likewise.
4558 2001-08-03 H.J. Lu <hjl@gnu.org>
4560 * emultempl/beos.em (init): Add the missing initialization.
4562 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4564 * ld.texinfo (Input Section Basics): Clarify ordering of output
4566 * ldlang.c (callback_t): Add wildcard_list param.
4567 (walk_wild_section): Remove "section" param. Rewrite for
4568 lang_wild_statement_type change. Remove unique_section_p test.
4569 (walk_wild_file): Remove "section" param.
4570 (walk_wild): Remove "section" and "file" params.
4571 (lang_gc_wild): Likewise.
4572 (wild): Likewise. Modify for lang_wild_statement_type change.
4573 (wild_sort): Likewise. Add "sec" param.
4574 (gc_section_callback): Likewise.
4575 (output_section_callback): Likewise. Do unique_section_p test.
4576 (map_input_to_output_sections): Modify call to wild.
4577 (lang_gc_sections_1): Likewise.
4578 (print_wild_statement): Modify for lang_wild_statement_type
4580 (lang_add_wild): Replace filename, filenames_sorted param with
4581 filespec. Replace section_name, sections_sorted,
4582 exclude_filename_list with section_list.
4583 * ldlang.h (lang_add_wild): Here too.
4584 (lang_wild_statement_type): Replace section_name, sections_sorted,
4585 and exclude_filename_list with section_list.
4586 * ldgram.y (current_file): Delete.
4587 (%union): Add wildcard_list.
4588 (file_NAME_list): Set type to wildcard_list. Build a linked list
4589 rather than calling lang_add_wild for each entry.
4590 (input_section_spec_no_keep): Call lang_add_wild here instead.
4591 * ld.h (struct wildcard_list): Declare.
4592 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4594 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4596 * ldmain.c (main): initialize link_info.pei386_auto_import
4597 * pe-dll.c: new tables for auto-export filtering
4598 (auto_export): change API, pass abfd for contextual filtering.
4599 Loop thru tables of excluded symbols instead of comparing
4602 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4604 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4605 static variable current_sec (static struct sec *). Add
4606 forward declaration for add_bfd_to_link.
4607 (process_def_file): Don't export undefined symbols. Do not
4608 export symbols starting with "_imp__". Call auto_export()
4610 (pe_walk_relocs_of_symbol): New function.
4611 (generate_reloc): add optional extra debugging
4612 (pe_dll_generate_def_file): eliminate extraneous initial blank
4614 (make_one): enlarge symtab to make room for __nm__ symbols
4615 (DATA auto-import support).
4616 (make_singleton_name_thunk): New function.
4617 (make_import_fixup_mark): New function.
4618 (make_import_fixup_entry): New function.
4619 (pe_create_import_fixup): New function.
4620 (add_bfd_to_link): Specify that 'name' argument is a CONST
4622 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4623 declare new functions pe_walk_relocs_of_symbol and
4624 pe_create_import_fixup.
4625 * emultempl/pe.em: add new options --enable-auto-import,
4626 --disable-auto-import, and --enable-extra-pe-debug.
4627 (make_import_fixup): New function.
4628 (pe_find_data_imports): New function.
4629 (pr_sym): New function.
4630 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4631 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4634 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4636 * ld.texinfo: add additional documentation for
4637 --export-all-symbols. Document --out-implib,
4638 --enable-auto-image-base, --disable-auto-image-base,
4639 --dll-search-prefix, --enable-auto-import, and
4640 --disable-auto-import.
4641 * ldint.texinfo: Add detailed documentation on auto-import
4644 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4646 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4649 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4651 * Makefile.am: Update dependencies with "make dep-am".
4652 * Makefile.in: Regenerate
4654 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4656 * ldcref.c (check_section_sym_xref): New function.
4657 (check_nocrossrefs): Call it.
4658 (check_nocrossref): Interate over h->refs here instead of..
4659 (check_refs): ..here. Pass in the symbol name, section, and bfd
4660 rather than hash_entry pointers.
4661 (struct check_refs_info): Keep symbol name rather than hash entry.
4663 (check_reloc_refs): Tweak for above changes in check_refs_info.
4664 Only report references to section syms when symname is NULL to
4665 prevent duplicate messages for the same reloc.
4667 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4669 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4670 available. Do not print NULL trees.
4671 (exp_print_token): Print unknown tokens with values > 126 as
4672 decimal values not ASCII characters.
4674 * ldlang.c (lang_leave_overlay): If a region is specified assign
4675 it to all sections inside the overlay unless they have been
4676 assigned to the own, non-default, memory region.
4678 * README: Add header for consistency with other README files.
4680 2001-07-14 H.J. Lu <hjl@gnu.org>
4682 * emultempl/elf32.em (output_prev_sec_find): Never return
4683 bfd_abs_section_ptr, bfd_com_section_ptr nor
4684 bfd_und_section_ptr.
4686 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4688 * Makefile.am (em32relf.c): Change dependency from generic.em to
4690 * Makefile.in: Regenerate.
4692 2001-07-14 matthew green <mrg@eterna.com.au>
4694 * configure.tgt (i386-*-netbsdelf*): New target.
4695 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4697 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4699 * emultempl/elf32.em (output_prev_sec_find): New.
4700 (place_orphan): Use it.
4702 2001-07-11 H.J. Lu <hjl@gnu.org>
4704 * ldmain.c (main): Fix typos in the last change.
4706 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4708 * ldmain.c (main): Disallow -F and -f without -shared.
4710 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4712 * emultempl/pe.em (after_open): Check for the output_bfd not
4713 having any coff_data structure allocated to it.
4715 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4717 * emultempl/elf32.em: Do not assuming that contents of the buffer
4718 returned from basename function will remain unchanged accross other
4721 2001-07-03 H.J. Lu <hjl@gnu.org>
4723 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4724 2001-07-03. It creates dynamic entries even for static binaries.
4726 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4728 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4729 (DYNAMIC): Use it to reserve few dynamic entries for
4732 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4734 * emulparams/hppa64linux.sh: New file.
4735 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4736 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4737 (ehppa64linux.c): Add rule to make it.
4739 * Makefile.in: Regenerate.
4741 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4743 * ld.texinfo (Options, -r): Mention restrictions when using
4744 different object formats.
4746 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4748 * ldlang.c (lang_check): Emit fatal error if relocatable link
4749 between different object flavours with relocations in input.
4751 2001-06-19 H.J. Lu <hjl@gnu.org>
4753 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4754 (--version-script): Mention the language support.
4756 2001-06-19 H.J. Lu <hjl@gnu.org>
4758 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4760 2001-06-18 H.J. Lu <hjl@gnu.org>
4762 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4763 (diststuff): Add $(MANS).
4764 * Makefile.in: Regenerated.
4768 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4770 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4771 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4772 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4773 * ld.h (args_type): Remove member export_dynamic. All users
4774 changed to use struct bfd_link_info member.
4776 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4777 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4778 * Makefile.in: Regenerate.
4780 2001-06-18 H.J. Lu <hjl@gnu.org>
4782 * ldlang.c (init_os): Add the newline to the einfo call.
4783 (lang_check): Likewise.
4784 (lang_do_version_exports_section): Likewise.
4786 2001-06-15 H.J. Lu <hjl@gnu.org>
4788 * lexsup.c (parse_args); Save optind to report unrecognized
4791 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4793 * ldlang.c (lang_check): Emit fatal error if relocatable link
4794 between different object flavours.
4796 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4797 Set new link_info member export_dynamic.
4798 * ldmain.c (main): Initialize new link_info member export_dynamic.
4800 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4802 * ldlang.c (walk_wild): Only call walk_wild_file if
4803 lookup_name returns something.
4804 (lookup_name): If load_symbols fails, return NULL.
4805 (load_symbols): Change to a boolean function.
4806 (open_input_bfds): If load_symbols fails then do not make the
4809 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4811 * ldlang.c (record_bfd_errors): Remove.
4813 * emultempl/aix.em: Fix copyright dates.
4815 2001-06-07 Andreas Jaeger <aj@suse.de>
4817 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4818 (TEXT_START_ADDR): Likewise.
4820 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4822 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4824 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4826 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4828 2001-05-31 H.J. Lu <hjl@gnu.org>
4830 * ldlang.c (open_input_bfds): Don't change the bfd error
4831 handler whilst loading symbols.
4833 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4835 * configure.tgt: Remove i370-mvs architecture, it is not currently
4838 2001-05-25 H.J. Lu <hjl@gnu.org>
4840 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4841 like emulparams/aixppc.sh.
4843 2001-05-25 H.J. Lu <hjl@gnu.org>
4845 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4846 setting of output_filename after bfd_scan_arch.
4847 * emultempl/pe.em: Likewise.
4849 2001-05-25 H.J. Lu <hjl@gnu.org>
4851 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4852 like emulparams/aixppc.sh.
4854 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4855 instead of ${srcdir}/emultempl/stringify.sed.
4857 2001-05-25 Timothy Wall <twall@oculustech.com>
4859 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4862 2001-05-25 Alan Modra <amodra@one.net.au>
4864 * configure.host: Replace linuxoldld with linux*oldld.
4865 * configure.tgt: Likewise.
4867 2001-05-24 H.J. Lu <hjl@gnu.org>
4869 * emultempl/stringify.sed: Removed again.
4871 2001-05-24 H.J. Lu <hjl@gnu.org>
4873 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4874 (gld${EMULATION_NAME}_before_parse): Initialize
4875 ldfile_output_architecture, ldfile_output_machine and
4876 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4877 * emultempl/beos.em: Likewise.
4878 * emultempl/elf32.em: Likewise.
4879 * emultempl/linux.em: Likewise.
4880 * emultempl/mipsecoff.em: Likewise.
4881 * emultempl/pe.em: Likewise.
4882 * emultempl/sunos.em: Likewise.
4884 2001-05-24 Tom Rix <trix@redhat.com>
4886 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4887 udate import file format.
4888 (change_symbol_mode) New, same
4889 (is_syscall) New, same
4890 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4891 * emulparams/aixppc64.sh : same
4892 * emulparams/aixrs6.sh : same
4893 * emulparams/ppcmacos.sh : same
4894 * emultempl/aix.em : use strtoull to parse options
4895 * Makefile.am : add eaixppc64 emulation for xcoff64
4896 * Makefile.in : same
4897 * configure.tgt : same
4899 * scripttempl/aix.sc : default text section offset to 0x10000000
4900 default data section offset to 0x20000000
4901 add .sv3264 and .sv64 pseudo sections
4902 loader and debug sections use the currect section offset.
4904 * emultempl/aix.em : Add xcoff64 support
4905 Add -binitfini support
4906 (gld${EMULATION_NAME}_before_parse) -binitfini
4907 (gld${EMULATION_NAME}_parse_args) same
4908 (gld${EMULATION_NAME}_before_allocation) format change for special
4911 * emulparams/aixppc64.sh : New file for xcoff64 support
4913 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4915 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4916 variable to avoid non-portable shell construct.
4918 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4920 * ldmain.c (get_emulation): Add -mips5 command line argument.
4922 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4924 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4925 (ELF_INTERPRETER_NAME): Define it.
4926 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4928 * configure.tgt (targ_emul, targ_extra_emuls)
4929 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4930 as primary, elf_i386 as extra.
4931 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4932 (eelf_i386_ldso.c): New rule.
4933 * Makefile.in: Rebuilt.
4935 2001-05-22 Nick Clifton <nickc@redhat.com>
4937 * lexsup.c (ld_options): Allow -I to be an alias for
4938 --dynamic-linker. This is for Solaris compatability.
4939 * ld.texinfo: Document that -I can be used.
4942 2001-05-16 Alan Modra <amodra@one.net.au>
4944 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4945 whether an input section is the first one assigned to an output
4947 Assorted formatting fixes.
4949 2001-05-14 DJ Delorie <dj@delorie.com>
4951 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4952 * Makefile.in: Ditto.
4954 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4956 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4957 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4959 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4961 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4963 * ldlang.c (lang_process): Call bfd_merge_sections.
4965 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4967 * ldgram.y: Fix typo.
4969 2001-05-03 H.J. Lu <hjl@gnu.org>
4971 * emultempl/elf32.em: Include "libiberty.h".
4972 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4973 basename of the bfd filename.
4974 (gld${EMULATION_NAME}_stat_needed): Likewise.
4975 (gld${EMULATION_NAME}_try_needed): Likewise.
4976 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4978 2001-05-02 H.J. Lu <hjl@gnu.org>
4980 * emultempl/pe.em: Include <ctype.h>.
4982 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4984 * emulparams/elf32openrisc.sh: New file.
4986 * Makefile.am: Add OpenRISC target.
4987 * Makefile.in: Regenerated.
4989 * configure.tgt: Add openrisc-*-* mapping.
4991 2001-05-02 Nick Clifton <nickc@redhat.com>
4993 * emultempl/aix.em: Replace buystring with xstrdup.
4994 * emultempl/beos.em: Replace buystring with xstrdup.
4996 2001-05-02 H.J. Lu <hjl@gnu.org>
4998 * ldfile.c: Include "libiberty.h".
4999 * ldlex.l: Likewise.
5001 * ldmisc.c (buystring): Removed.
5002 * ldmisc.h: Likewise.
5004 * ldfile.c: Replace buystring with xstrdup.
5005 * ldlang.c: Likewise.
5006 * ldlex.l: Likewise.
5007 * ldmain.c: Likewise.
5008 * ldmisc.c: Likewise.
5009 * lexsup.c: Likewise.
5010 * mpw-eppcmac.c: Likewise.
5012 2001-04-30 Andreas Jaeger <aj@suse.de>
5014 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
5016 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5018 * ldlang.c (load_symbols): Give emulation a chance
5019 to process unrecognized file before fatal error is
5020 reported, not after.
5022 2001-04-27 Sean McNeil <sean@mcneil.com>
5024 * configure.tgt: Add arm-vxworks target.
5025 * scripttempl/armcoff.sc: Support .text or .data as a section name
5029 2001-04-13 J.T. Conklin <jtc@redback.com>
5031 * ld.texinfo: Document --fatal-warnings.
5034 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
5035 warnings have been turned into errors.
5036 * lexsup.c (OPTION_WARN_FATAL): Define.
5037 (ld_options): Entry for --fatal-warnings.
5038 (parse_args): Handle OPTION_WARN_FATAL.
5039 * ld.h (ld_config_type): Add fatal_warnings field.
5041 2001-04-13 Jakub Jelinek <jakub@redhat.com>
5043 * ldmain.c (main): Default to discard_sec_merge.
5044 * lexsup.c (OPTION_DISCARD_NONE): Define.
5045 (ld_options): Add --discard-none.
5046 (parse_args): Handle OPTION_DISCARD_NONE.
5047 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
5048 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
5049 all its input sections match.
5051 2001-04-05 Steven J. Hill <sjhill@cotw.com>
5053 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
5054 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
5055 (eelf32ltsmip.c): New target.
5056 (eelf64btsmip.c): Likewise.
5057 (eelf64ltsmip.c): Likewise.
5058 * Makefile.in: Regenerated.
5060 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
5062 (mips*-*-linux-gnu*): Likewise.
5064 * emulparams/elf32ltsmip.sh: New. Traditional little endian
5066 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
5068 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
5071 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
5073 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
5074 correct value of __Stext here.
5075 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
5078 * emulparams/crislinux.sh: Remove FIXME.
5080 2001-04-02 Alan Modra <alan@linuxcare.com.au>
5082 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
5083 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
5085 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
5087 * configure.tgt (cris-*-*): Change default emulation to criself.
5088 (cris-*-*aout*): New rule.
5090 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
5092 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
5093 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
5095 2001-03-26 Andreas Jaeger <aj@suse.de>
5097 * ld.texinfo (Overview): Fix syntax in texi code.
5099 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5101 * ld.texinfo: Put @c man indications to generate the ld man page.
5102 When generating man, define all the variables. Define SEEALSO
5103 and SYNOPSIS. Re-organize some lines to avoid the cross references.
5104 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
5105 (ld.1): Generate from ld.texinfo.
5106 * Makefile.in: Regenerate.
5108 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
5110 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
5111 and '-fdata-sections'. Set the VMA of STABS sections to zero.
5113 2001-03-17 Ulrich Drepper <drepper@redhat.com>
5115 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
5116 is an absolute path look only for this file and not along the path.
5118 2001-03-17 Ulrich Drepper <drepper@redhat.com>
5120 * emultempl/elf32.em (OPTION_GROUP): New macro.
5121 Add new option Bgroup to longopts.
5122 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
5123 (gld*_list_options): Add -Bgroup and -z defs.
5124 * ld.1: Document -Bgroup and -z defs.
5125 * ld.texinfo: Likewise.
5127 2001-03-07 Michael Meissner <meissner@redhat.com>
5129 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
5130 with sections created by -fdata-sections.
5131 (.dynbss,.bss): Ditto.
5133 2001-03-05 Alan Modra <alan@linuxcare.com.au>
5135 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
5136 after_allocation_default, not gld..._before_allocation.
5138 2001-02-27 Alan Modra <alan@linuxcare.com.au>
5140 * configure.in (BFD_VERSION): New.
5141 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
5142 * configure: Regenerate.
5143 * Makefile.am: Run "make dep-am"
5144 * Makefile.in: Regenerate.
5146 2001-02-26 Timothy Wall <twall@cygnus.com>
5148 * emulparams/elf64_aix.sh: Add additional read-only sections;
5149 uncomment lines which are now required.
5151 2001-02-26 H.J. Lu <hjl@gnu.org>
5153 * ldlang.c (open_input_bfds): Set the bfd error handler so
5154 that problems can be caught whilst loading symbols.
5155 (record_bfd_errors): New function: Report BFD errors and mark
5156 the executable output as being invalid.
5158 2001-02-22 Timothy Wall <twall@cygnus.com>
5160 * configure.host: Add configuration for ia64-*-aix*.
5161 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
5162 Add dependencies for eelf64_aix.c.
5163 * Makefile.in: Regenerate.
5164 * configure.tgt: Add ia64-*-aix* mapping.
5165 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
5167 2001-02-20 H.J. Lu <hjl@gnu.org>
5169 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
5170 false if we found the file.
5172 2001-02-18 David O'Brien <obrien@FreeBSD.org>
5174 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
5175 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
5177 2001-02-18 lars brinkhoff <lars@nocrew.org>
5179 * Makefile.am: Add PDP-11 target.
5180 * configure.tgt: Likewise.
5181 * emulparams/pdp11.sh: New file.
5183 2001-02-17 David O'Brien <obrien@FreeBSD.org>
5185 * configure.host: Add a generic FreeBSD configuration entry such that
5186 all [modern] FreeBSD systems on all platforms will look the same.
5188 2001-02-14 H.J. Lu <hjl@gnu.org>
5190 * configure.tgt: Remove mention of earmelf_linux26.
5192 2001-02-13 Richard Henderson <rth@redhat.com>
5194 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
5196 2001-02-13 H.J. Lu <hjl@gnu.org>
5198 * ldexp.h (node_type): Add etree_provided.
5199 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
5200 type to etree_provided if defined by PROVIDE. Allow updating
5202 (exp_print_tree): Handle etree_provided.
5203 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
5206 2001-02-09 David Mosberger <davidm@hpl.hp.com>
5208 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
5209 .IA_64.unwind.* pattern to unwind table section and
5210 .IA_64.unwind_info* pattern to unwind info section.
5212 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
5214 * Makefile.am: Add linux target for S/390.
5215 * Makefile.in: Likewise.
5216 * configure.host: Likewise.
5217 * configure.tgt: Likewise.
5218 * emulparams/elf64_s390.sh: New file.
5219 * emulparams/elf_s390.sh: New file.
5221 2001-02-09 Jakub Jelinek <jakub@redhat.com>
5223 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
5225 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
5227 2001-02-06 Philip Blundell <philb@gnu.org>
5229 * Makefile.am: Remove mention of earmelf_linux26.
5230 * Makefile.in: Regenerate.
5232 2001-02-04 Philip Blundell <philb@gnu.org>
5234 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
5235 * emulparams/armelf_linux26.sh: Delete.
5236 * configure.tgt: Remove mention of armelf_linux26 emulation.
5238 2001-02-01 Nick Clifton <nickc@redhat.com>
5240 * ld.1: Replace occurances of -oformat with --oformat.
5242 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
5244 * ldlang.c (lang_leave_overlay): Don't set lma_region when
5245 load_base is specified.
5247 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
5249 * emultempl/elf32.em: Correct spelling in comments and listed
5252 2001-01-23 Alan Modra <alan@linuxcare.com.au>
5254 * ldlang.c (lang_leave_overlay): Only set lma_region from the
5255 default for the first section of a group of overlay sections.
5257 2001-01-22 Alan Modra <alan@linuxcare.com.au>
5259 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
5260 * Makefile.in: Regenerate.
5261 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
5262 Check for null tool_dir.
5264 2001-01-16 Jim Wilson <wilson@redhat.com>
5266 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
5267 and IA_64.unwind.info.
5269 2001-01-16 H.J. Lu <hjl@gnu.org>
5271 * ldlang.c (lang_check): Merge the private data only if the
5272 input file has contents.
5274 2001-01-14 Alan Modra <alan@linuxcare.com.au>
5276 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
5278 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
5279 enabling search for libmilli. On a relocatable link, make .text
5281 (LDEMUL_AFTER_PARSE): Define.
5282 (hppaelf_finish): Correct spelling of relocatable in comments.
5284 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5285 rummage through the script for sections on the unique list.
5286 Correct length of strncmp for ".note".
5287 (gld${EMULATION_NAME}_check_needed): Rearrange function.
5289 * ldlang.c (unique_section_list): New var.
5290 (unique_section_p): New function.
5291 (walk_wild_section): Don't match sections on unique_section_list.
5292 (lang_add_unique): New function.
5293 Correct spelling of relocatable in comments.
5295 * ldlang.h (struct unique_sections): Declare.
5296 (unique_section_list): Declare.
5297 (unique_section_p): Declare.
5298 (lang_add_unique): Declare.
5300 * lexsup.c (ld_options): Allow --unique to take an optional arg.
5301 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
5303 * ld.texinfo (--unique): Update.
5305 2001-01-13 Nick Clifton <nickc@redhat.com>
5307 * lexsup.c (parse_args): Remove spurious white space.
5309 2001-01-12 Nick Clifton <nickc@redhat.com>
5311 * lexsup.c (parse_args): Update copyright date.
5313 2001-01-12 Philip Blundell <pb@futuretv.com>
5315 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
5317 2001-01-10 Kazu Hirata <kazu@hxi.com>
5319 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
5320 * scripttempl/h8300h.sc: Fix formatting.
5321 * scripttempl/h8300s.sc: Likewise.
5322 * scripttempl/h8500.sc: Likewise.
5323 * scripttempl/h8500b.sc: Likewise.
5324 * scripttempl/h8500c.sc: Likewise.
5325 * scripttempl/h8500m.sc: Likewise.
5326 * scripttempl/h8500s.sc: Likewise.
5328 2000-01-07 David O'Brien <obrien@BSDi.com>
5330 * emultempl/elf32.em: Only perform Linux ld hints processing when
5333 2001-01-07 Philip Blundell <philb@gnu.org>
5335 * ld.texinfo (Bug Reporting): Update email address for reports.
5337 2000-12-31 Nick Clifton <nickc@redhat.com>
5339 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
5340 options by checking for a return value of '?' not -1.
5342 2000-12-28 Nick Clifton <nickc@redhat.com>
5344 * lexsup.c (struct ld_option): Add new enum value:
5346 (ld_options[]): Change -omagic, -output and -oformat options
5347 to be EXACTLY_TWO_DASHES.
5348 (OUTPUT_COUNT): Use ARRAY_SIZE.
5349 (parse_args): Change parameter 'argc' to unsigned.
5350 Place EXACTLY_TWO_DASHES options into new really_longopts
5352 If getopt_long_only fails, try calling getopt_long using the
5353 really_longopts array.
5354 (help): Print a double dash for both EXACTLY_TWO_DASHES and
5357 * ldlex.h: Fix prototype of parse_args.
5359 * ld.texinfo: Document that long options starting with 'o'
5360 must be preceeded by two dashes. Change example of a single
5361 dashed long option from -oformat to -trace-symbol.
5363 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5365 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5366 (longopts[]): New --no-default-excludes option.
5367 (gld_${EMULATION_NAME}_list_options): Document.
5368 (gld_${EMULATION_NAME}_parse_args): Handle.
5370 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5372 * ldlang.c (new_stat): Revert the last beautification with "innocent"
5373 whitespace, it breaks the K&R C preprocessor.
5375 2000-12-11 DJ Delorie <dj@redhat.com>
5377 * ld.texinfo: Add notes about --whole-archive and gcc.
5379 2000-11-18 Fred Fish <fnf@be.com>
5381 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5382 (ld_options): Entry for --allow-shlib-undefined.
5383 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5384 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5386 * ld.texinfo: Document new command line switch.
5388 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
5390 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5391 .fixup is actually read/write.
5392 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5393 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5394 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5396 2000-12-11 Jan Hubicka <jh@suse.cz>
5398 * NEWS: Add note about x86_64 architecture.
5400 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
5402 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5403 Set DWARF2 sections to a VMA of zero.
5405 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5407 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5409 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5410 (sparc*-*-rtems*): Switched from a.out to ELF.
5412 2000-11-30 Jan Hubicka <jh@suse.cz>
5414 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5415 (eelf_x86_64.c): New.
5416 * Makefile.in: Regenerate.
5417 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5418 * emulparams/elf_x86_64.sh: New.
5420 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5422 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5423 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5425 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5426 merging non-a.out sections into CONSTRUCTING.
5428 2000-11-28 Nick Clifton <nickc@redhat.com>
5430 * ld.1 (COPYING): Mention that the GNU Free Documentation
5431 License is present in the sources, but not the output, and
5432 also available from the GNU website.
5433 (GNU Free Documentation License): Comment out this section.
5435 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5437 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5440 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5442 * ld.1: Remove old date so it does not give the impression the manpage
5445 2000-11-24 Nick Clifton <nickc@redhat.com>
5447 * configure.tgt (xscale-coff): Add target.
5448 (xscale-elf): Add target.
5450 2000-11-24 Fred Fish <fnf@be.com>
5452 * ldmain.c (main): Remove redundant init of config.make_executable
5455 2000-11-15 Richard Henderson <rth@redhat.com>
5457 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5459 2000-11-14 Kazu Hirata <kazu@hxi.com>
5461 * scripttempl/h8300.sc: Fix formatting.
5462 * scripttempl/h8300h.sc: Likewise.
5463 * scripttempl/h8300s.sc: Likewise.
5465 2000-11-14 Denis Chertykov <denisc@overta.ru>
5467 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5469 2000-11-09 Philip Blundell <pb@futuretv.com>
5471 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5472 around orphan sections whose names can be represented in C.
5474 2000-11-07 Jim Wilson <wilson@redhat.com>
5476 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5477 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5479 2000-11-06 Nick Clifton <nickc@redhat.com>
5481 * ld.texinfo: Add GNU Free Documentation License.
5482 * ldint.texinfo: Add GNU Free Documentation License.
5483 * ld.1: Add GNU Free Documentation License.
5485 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5487 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5488 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5490 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5491 Move 2000-11-02 Makefile.in changes to this file.
5492 * Makefile.in: Regenerate.
5494 2000-11-03 Nick Clifton <nickc@redhat.com>
5496 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5497 constructors and destructors.
5498 * scripttempl/h8300h.sc: Ditto.
5499 * scripttempl/h8300s.sc: Ditto.
5500 * scripttempl/h8500.sc: Ditto.
5501 * scripttempl/h8500b.sc: Ditto.
5502 * scripttempl/h8500c.sc: Ditto.
5503 * scripttempl/h8500m.sc: Ditto.
5504 * scripttempl/h8500s.sc: Ditto.
5505 * scripttempl/v850.sc: Ditto.
5506 * scripttempl/w65.sc: Ditto.
5507 * scripttempl/z8000.sc: Ditto.
5509 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5511 * Makefile.in (e_i386_chaos.c): New rule.
5512 (ALL_EMULATIONS): Added e_i386_chaos.o.
5513 * emulparams/elf_i386_chaos.sh: New file.
5514 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5516 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5518 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5519 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5520 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5521 library path suffix.
5522 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5524 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5526 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5527 for consecutive sections.
5529 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5531 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5533 * ld.texinfo: Added notes about this new option.
5535 2000-10-16 Nick Clifton <nickc@redhat.com>
5537 * emultempl/pe.em (_after_open): Add tests of return values from
5538 bfd functions. Emit appropriate error messages if necessary.
5540 2000-10-13 Nick Clifton <nickc@redhat.com>
5542 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5543 local variables - they are not used, but leave in the call to
5544 bfd_canonicalize_symtab.
5545 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5546 pe_dll_search_prefix.
5548 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5550 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5551 (longopts): New --dll-search-prefix option.
5552 (gld_${EMULATION_NAME}_list_options): Document.
5553 (gld_${EMULATION_NAME}_parse_args): Handle.
5554 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5555 dynamically, search for a dll named '<prefix><basename>.dll'
5556 in preference to 'lib<basename>.dll' if --dll-search-prefix
5559 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5561 * ldlang.c (section_already_linked): Set kept_section instead of
5564 2000-10-10 Kazu Hirata <kazu@hxi.com>
5566 * deffile.h: Fix formatting.
5567 * lexsup.c: Likewise.
5570 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5572 * pe-dll.c (make_one): Do not generate code thunk for DATA
5574 (process_def_file): deduce DATA flag for auto-export sumbols.
5576 2000-10-09 Kazu Hirata <kazu@hxi.com>
5578 * ld.h: Fix formatting.
5579 * ldcref.c: Likewise.
5580 * ldctor.h: Likewise.
5581 * ldemul.c: Likewise.
5582 * ldemul.h: Likewise.
5583 * ldexp.c: Likewise.
5584 * ldexp.h: Likewise.
5585 * ldfile.c: Likewise.
5586 * ldfile.h: Likewise.
5587 * ldlang.c: Likewise.
5588 * ldlang.h: Likewise.
5589 * ldmain.c: Likewise.
5590 * pe-dll.c: Likewise.
5592 * pe-dll.c: Revert some formatting fixes.
5594 2000-10-08 Kazu Hirata <kazu@hxi.com>
5596 * pe-dll.c: Fix formatting.
5598 2000-10-05 Kazu Hirata <kazu@hxi.com>
5600 * ldlang.c: Fix formatting.
5602 2000-10-03 DJ Delorie <dj@redhat.com>
5604 * pe-dll.c (fill_edata): initialize entire block
5605 (make_one): fill in correct section.
5607 2000-10-03 Kazu Hirata <kazu@hxi.com>
5609 * ldexp.c: Fix formatting.
5611 2000-10-02 DJ Delorie <dj@redhat.com>
5613 * emultempl/pe.em (gld_*_after_open): detect case where there two
5614 import libraries for same dll; rename one to ensure proper link
5617 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5619 (generate_edata): fix typo
5621 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5623 * scripttempl/crisaout.sc (ENTRY): Now __start.
5624 (.text): Add default setting for __start.
5625 Remove CONSTRUCTORS handling.
5626 (/DISCARD/): Add .gnu.warning.*.
5627 * emulparams/crislinux.sh (ENTRY): Now __start.
5628 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5629 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5630 (ENTRY): Now __start.
5631 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5632 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5634 2000-09-29 Kazu Hirata <kazu@hxi.com>
5636 * deffile.h: Fix formatting.
5638 * ldcref.c: Likewise.
5639 * ldctor.c: Likewise.
5640 * ldctor.h: Likewise.
5641 * ldemul.c: Likewise.
5642 * ldemul.h: Likewise.
5643 * ldexp.c: Likewise.
5644 * ldexp.h: Likewise.
5645 * ldfile.c: Likewise.
5646 * ldfile.h: Likewise.
5647 * ldlang.c: Likewise.
5648 * ldlang.h: Likewise.
5649 * lexsup.c: Likewise.
5651 * pe-dll.c: Likewise.
5653 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5655 * pe-dll.c (process_def_file): Uninitialized data wasn't
5656 exported with --export-all-symbols switch.
5658 2000-09-28 DJ Delorie <dj@redhat.com>
5660 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5661 noname work properly.
5663 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5665 * ld.texinfo (HPPA ELF32): New section.
5667 * emultempl/hppaelf.em (group_size): New.
5668 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5669 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5670 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5671 options to prevent abbreviations matching.
5672 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5673 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5675 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5677 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5678 on the m68*-*-elf target. Make it support COFF input objects.
5680 2000-09-21 Kazu Hirata <kazu@hxi.com>
5682 * ldmain.c: Fix formatting.
5683 * ldmisc.c: Likewise.
5684 * ldver.c: Likewise.
5685 * ldwrite.c: Likewise.
5687 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5689 * ldwrite.c (clone_section): Silence gcc warnings.
5691 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5693 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5694 out of memory failure.
5696 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5697 (clone_section): Handle out of memory failures. Rename var to
5698 avoid c++ reserved word.
5700 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5702 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5703 stub_name param to stub_sec_name.
5704 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5706 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5708 * emultempl/m68kelf.em: New file.
5709 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5710 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5711 * Makefile.in: Regenerate.
5713 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5715 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5718 2000-09-13 Nick Clifton <nickc@redhat.com>
5720 * ldmain.c (multiple_definition): Disable relaxation if
5721 multiple symbol definitions are encountered - otherwise the
5722 linker could abort with an assertion failure.
5724 2000-09-10 Nick Clifton <nickc@redhat.com>
5726 * mri.c: Fix formatting.
5728 2000-09-07 H.J. Lu <hjl@gnu.org>
5730 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5731 * configure: Rebuild.
5733 2000-09-07 H.J. Lu <hjl@gnu.org>
5735 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5736 * Makefile.in: Rebuild.
5738 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5740 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5741 broken list handling. Create __start_SECNAME and __stop_SECNAME
5742 when no place-holder. Add some comments. Test both SEC_CODE and
5743 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5744 Handle case where no output section statement created.
5746 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5748 * configure.tgt (sh-*-linux*): Added.
5749 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5750 * Makefile.in: Rebuilt.
5751 * emulparams/shelf_linux.sh: New file.
5752 * emulparams/shlelf_linux.sh: New file.
5754 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5756 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5757 try shuffling sections when the orphan happens to be the place
5758 holder. Keep count of unique section names generated so we speed
5759 the search for a new name.
5761 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5763 * configure: Rebuilt with new libtool.m4.
5765 2000-09-05 Nick Clifton <nickc@redhat.com>
5767 * Makefile.in: Regenerate.
5768 * aclocal.m4: Regenerate.
5769 * configure: Regenerate.
5770 * config.in: Regenerate.
5771 * po/ld.pot: Regenerate.
5773 * ldint.texinfo: Remove CVS revision marker - it foils local
5776 * emultempl/ticoff.em: Remove extraneous comma.
5778 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5780 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5781 to stub section flags.
5782 (hppa_for_each_input_file_wrapper): New.
5783 (hppa_lang_for_each_input_file): New.
5784 (lang_for_each_input_file): Define to call above.
5785 (multi_subspace): New.
5786 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5787 (PARSE_AND_LIST_PROLOGUE): Define.
5788 (PARSE_AND_LIST_LONGOPTS): Define.
5789 (PARSE_AND_LIST_OPTIONS): Define.
5790 (PARSE_AND_LIST_ARGS_CASES): Define.
5791 (hppaelf_finish): Call elf32_hppa_set_gp.
5792 (hppaelf_set_output_arch): Remove.
5793 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5795 * emulparams/hppalinux.sh (ELFSIZE): Define.
5797 (OTHER_READONLY_SECTIONS): Define.
5799 (GENERATE_SHLIB_SCRIPT): Define.
5801 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5802 to const throughout. Change `void *' to `PTR' throughout.
5803 (lang_memory_default): Function is local to file, add `static'.
5805 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5806 (ehppalinux.c): Likewise.
5807 (earmelf.c): Likewise.
5808 (earmelf_linux.c): Likewise.
5809 (earmelf_linux26.c): Likewise.
5810 * Makefile.in: Regenerate.
5812 * ld.h (ld_config_type): Add unique_orphan_sections.
5813 * lexsup.c (OPTION_UNIQUE): Define.
5814 (ld_options): Add "--unique".
5815 (parse_args): Handle it.
5816 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5817 search for an existing output section if unique_orphan_sections is
5818 set. Make use of bfd_get_unique_section_name rather than
5819 duplicating code here.
5820 * ld.texinfo: Describe --unique.
5822 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5823 optional arg to split-by-file.
5824 (parse_args): Handle them.
5825 * ld.texinfo: Update description of these options.
5826 * ldwrite.c (clone_section): Pass in the section name. Replace
5827 local code with bfd_get_unique_section_name.
5828 (split_sections): Tidy code and comments. Use a list traversal
5829 more appropriate to the list construction. Handle cooked section
5830 sizes. Split when split_by_reloc reached rather than exceeded.
5831 Track section size and split when split_by_file reached. Fix
5832 link_order_tail (even though it's not used).
5833 (ldwrite): Modify condition for calling split_sections to suit
5834 changed split_by_reloc and split_by_file.
5835 * ldmain.c (main): Init config.split_by_reloc and
5836 config.split_by_file to -1.
5837 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5838 Change split_by_file to bfd_size_type.
5840 2000-09-02 Nick Clifton <nickc@redhat.com>
5842 * configure.in: Increase version number to 2.10.91.
5843 * NEWS: Mention new ability to support removal of duplicate DWARF2
5845 * configure: Regenerate.
5846 * aclocal.m4: Regenerate.
5847 * config.in: Regenerate.
5849 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5851 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5853 * scripttempl/elf32avr.sc: Ditto.
5854 * scripttempl/elfd10v.sc: Ditto.
5855 * scripttempl/elfd30v.sc: Ditto.
5856 * scripttempl/elfi370.sc: Ditto.
5857 * scripttempl/elfm68hc11.sc: Ditto.
5858 * scripttempl/elfm68hc12.sc: Ditto.
5859 * scripttempl/elfi386beos.sc: Ditto.
5860 * scripttempl/v850.sc: Ditto.
5862 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5864 * acinclude.m4: Include libtool and gettext macros from the
5866 * aclocal.m4, configure: Rebuilt.
5868 2000-08-25 Nick Clifton <nickc@redhat.com>
5870 * ldlang.c (open_output): When choosing the target for a
5871 particular endianness, do nothing if the target is not
5874 2000-08-25 H.J. Lu <hjl@gnu.org>
5876 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5877 check -rpath nor LD_RUN_PATH for cross link.
5878 * ld.texinfo: Document the change.
5880 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5882 * NEWS: Mention support for CRIS.
5884 2000-08-23 H.J. Lu <hjl@gnu.org>
5886 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5887 the current runpath list from bfd_elf_get_runpath_list ()
5890 2000-08-22 H.J. Lu <hjl@gnu.org>
5892 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5893 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5894 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5895 trace_file_tries is non-zero.
5896 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5897 if trace_file_tries is non-zero.
5899 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5902 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5904 * NEWS: Mention i860 support.
5906 2000-08-14 Andreas Schwab <schwab@suse.de>
5908 * scripttempl/elf.sc: Fix last change to use correct comment
5911 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5913 * scripttempl/elf.sc: Add a comment giving the correspondence
5914 between sections, per-datum sections, and linkonce sections. Make
5915 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5918 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5920 * emulparams/elf32_i860.sh: New file.
5921 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5922 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5923 (eelf32_i860.c): New rule.
5924 * Makefile.in: Regenerate.
5926 2000-08-10 Nick Clifton <nickc@cygnus.com>
5928 * emulparams/mipspe.sh (ENTRY): Add definition.
5930 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5932 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5935 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5937 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5938 the final size of .bss section.
5939 * scripttempl/elfm68hc12.sc: Likewise.
5941 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5943 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5944 gld${EMULATION_NAME}_parse_args for consistency. Combine
5945 lastoptind and prevoptind vars, and keep track of last optind.
5946 (gld_${EMULATION_NAME}_list_options): Rename to
5947 gld${EMULATION_NAME}_list_options.
5949 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5951 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5952 (i586-sco-sysv5uw7.1.0).
5954 2000-07-27 H.J. Lu <hjl@gnu.org>
5956 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5957 (PARSE_AND_LIST_PROLOGUE): New.
5958 (PARSE_AND_LIST_LONGOPTS): Likewise.
5959 (PARSE_AND_LIST_OPTIONS): Likewise.
5960 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5961 (PARSE_AND_LIST_EPILOGUE): Likewise.
5963 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5965 * emultempl/armelf.em: Elide functions common to elf32.em,
5966 ie. most of the file.
5967 (arm_elf_after_open): New. Do arm specific things then call
5968 gld${EMULATION_NAME}_after_open.
5969 (arm_elf_before_allocation): New. Call
5970 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5971 (PARSE_AND_LIST_PROLOGUE): Define.
5972 (PARSE_AND_LIST_SHORTOPTS): Define.
5973 (PARSE_AND_LIST_LONGOPTS): Define.
5974 (PARSE_AND_LIST_OPTIONS): Define.
5975 (PARSE_AND_LIST_ARGS_CASES): Define.
5976 (LDEMUL_AFTER_OPEN): Define.
5977 (LDEMUL_BEFORE_ALLOCATION): Define.
5978 (LDEMUL_BEFORE_PARSE): Define.
5979 (LDEMUL_FINISH): Define.
5981 * emultempl/hppaelf.em: Similarly zap most of this file.
5982 (hppaelf_add_stub_section): Prototype.
5983 (hppaelf_layaout_sections_again): Prototype.
5984 (hook_in_stub): Prototype.
5985 (LDEMUL_SET_OUTPUT_ARCH): Define.
5986 (LDEMUL_FINISH): Define.
5987 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5989 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5990 (EXTRA_EM_FILE): New.
5991 * emulparams/armelf_linux.sh: Likewise.
5992 * emulparams/armelf_linux26.sh: Likewise.
5993 * emulparams/hppalinux.sh: Likewise.
5994 * emulparams/hppaelf.sh: Likewise.
5997 * emultempl/elf32.em: Fix formatting.
5998 (EXTRA_EM_FILE): Source it.
5999 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
6000 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
6001 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
6002 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
6003 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
6004 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
6005 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
6006 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
6007 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
6008 allow functions in this file to be overridden.
6009 (PARSE_AND_LIST_SHORTOPTS): Handle it.
6011 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
6013 * emultempl/elf32.em: Reorganize file.
6015 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
6017 * emulparams/elf64alpha.sh: Implement "-taso" emulation
6018 specific option to fit 64-bit executable in the lower
6019 31-bit address range. This is done by changing start
6020 address of .interp (the very first section of executable)
6021 and then setting EF_ALPHA_32BIT elf header flag.
6023 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6025 * emultempl/m68kcoff.em: New file.
6026 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
6027 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
6029 * Makefile.in: Regenerate.
6031 2000-07-20 H.J. Lu <hjl@gnu.org>
6033 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
6034 and "disable-new-dtags" to stop getopt from treating -d/-e as
6035 abbreviations for these options.
6037 2000-07-20 H.J. Lu <hjl@gnu.org>
6039 * ld.texinfo: Add documentation for --disable-new-dtags and
6042 * ldmain.c (main): Initialize link_info.new_dtags to false.
6044 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
6045 --disable-new-dtags and --enable-new-dtags.
6046 (gld_${EMULATION_NAME}_list_options): Likewise.
6048 2000-07-05 Kenneth Block <krblock@computer.org>
6050 * lexsup.c: Add optional style to demangle switch
6051 * ld.texinfo: Document optional style to demangle switch.
6053 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6055 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
6057 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
6058 Regenerate dependencies.
6059 * Makefile.in: Rebuild.
6060 * configure.tgt (cris-*-*): New target.
6061 * emulparams/crisaout.sh, emulparams/criself.sh,
6062 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
6063 * po/POTFILES.in, po/ld.pot: Regenerate.
6065 2000-07-20 H.J. Lu <hjl@gnu.org>
6067 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
6068 Print out ignored -z options.
6070 2000-07-19 H.J. Lu <hjl@gnu.org>
6072 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
6073 (PARSE_AND_LIST_PROLOGUE): New.
6074 (PARSE_AND_LIST_LONGOPTS): Likewise.
6075 (PARSE_AND_LIST_OPTIONS): Likewise.
6076 (PARSE_AND_LIST_ARGS_CASES): Likewise.
6078 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
6080 * lexsup.c (ld_options): Comment out 'z'.
6081 (parse_args): Likewise.
6083 * emultempl/elf32.em: Include "elf/common.h".
6084 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
6086 (gld_${EMULATION_NAME}_list_options): Likewise.
6088 * ld.texinfo: Add documentation for the recognized -z options.
6090 2000-07-19 H.J. Lu <hjl@gnu.org>
6092 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
6093 bfd_elf_set_dt_needed_soname ().
6095 2000-07-18 DJ Delorie <dj@cygnus.com>
6097 * pe-dll.c (pe_dll_id_target): check object target name also
6099 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
6101 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
6102 ${INIT_END} if relocating.
6103 (.fini): Likewise ${FINI_START} and ${FINI_END}.
6105 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
6107 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
6108 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
6109 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
6110 errors introduced by the old dynamic lib search order.
6112 2000-07-17 DJ Delorie <dj@cygnus.com>
6114 * pe-dll.c (process_def_file): auto-export data items also
6115 (pe_process_import_defs): also see if _imp_ form needed
6117 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6119 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
6120 for dll import libraries
6122 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
6124 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
6125 gcc 2.95.2 and later.
6127 2000-07-11 Kazu Hirata <kazu@hxi.com>
6129 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
6132 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6134 * ldemul.h (struct lang_input_statement_struct): Remove forward
6136 (struct search_dirs): Likewise.
6137 * ldfile.h (struct lang_input_statement_struct): Likewise.
6138 Protect file from multiple inclusion.
6139 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
6140 declaration from macro to file scope.
6142 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
6143 * ldgram.y: Likewise here.
6144 * ldlang.c: And here.
6145 * ldmain.c: And here.
6146 * mpw-elfmips.c: And here.
6147 * mpw-eppcmac.c: And here.
6148 * emultempl/aix.em: And here.
6149 * emultempl/armcoff.em: And here.
6150 * emultempl/armelf.em: And here.
6151 * emultempl/armelf_oabi.em: And here.
6152 * emultempl/beos.em: And here.
6153 * emultempl/elf32.em: And here.
6154 * emultempl/hppaelf.em: And here.
6155 * emultempl/linux.em: And here.
6156 * emultempl/lnk960.em: And here.
6157 * emultempl/pe.em: And here.
6158 * emultempl/sunos.em: And here.
6159 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
6160 * mpw-idtmips.c: Ditto.
6161 * emultempl/generic.em: Ditto.
6162 * emultempl/gld960.em: Ditto.
6163 * emultempl/gld960c.em: Ditto.
6164 * emultempl/mipsecoff.em: Ditto.
6165 * emultempl/ticoff.em: Ditto.
6166 * emultempl/vanilla.em: Ditto.
6168 * pe-dll.c: Include ldfile.h
6169 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
6171 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
6172 arguments to bfd_elf32_size_dynamic_sections call.
6173 (gldelf32ebmip_place_orphan): Add missing arguments to
6174 lang_leave_output_section_statement call.
6176 2000-07-10 H.J. Lu <hjl@gnu.org>
6178 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
6180 (strhash): Likewise.
6181 (compute_dll_image_base): Likewise.
6182 (pe_undef_found_sym): Likewise.
6183 (pe_undef_cdecl_match): Likewise.
6184 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
6185 argument "arch" with ATTRIBUTE_UNUSED.
6187 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6189 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
6191 From Ryan Bradetich <rbradetich@uswest.net>
6192 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
6194 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6196 Changes to create multiple linker stubs, positioned immediately
6197 before the section where they are required.
6198 * emultempl/hppaelf.em: Include elf32-hppa.h.
6199 (stub_sec, file_chain): Delete.
6200 (hppaelf_create_output_section_statements): Don't make a stub
6202 (hook_stub_info): New struct.
6203 (hook_in_stub): New function.
6204 (hppaelf_add_stub_section): New function.
6205 (hppaelf_finish): Do nothing for relocateable links. Modify the
6206 call to elf32_hppa_size_stubs. Move code for updating section
6208 (hppaelf_layaout_sections_again): ..to here, a new function.
6210 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
6211 broken list handling. Pass in a pointer to the list.
6212 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
6214 (hppaelf_before_parse): Prototype.
6215 (hppaelf_set_output_arch): Prototype.
6216 (hppaelf_create_output_section_statements): Prototype.
6217 (hppaelf_delete_padding_statements): Prototype.
6218 (hppaelf_finish): Prototype.
6221 * emultempl/hppaelf.em: Include ctype.h.
6222 (struct orphan_save): New.
6223 (gld${EMULATION_NAME}_place_orphan): New.
6224 (output_rel_find): New.
6225 (hppaelf_get_script): Update from elf32.em.
6226 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
6227 Change emulation_name field to "${EMULATION_NAME}". Add
6228 gld${EMULATION_NAME}_place_orphan.
6230 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
6231 ehppalinux.o, sort it. Regenerate dependencies.
6232 (ehppalinux.c): Depend on hppaelf.em
6233 * Makefile.in: Regenerate.
6235 * configure.tgt: targ_emul=hppalinux for hppa*linux
6237 * emulparams/hppalinux.sh: New.
6238 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
6240 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6242 * lexsup.c (parse_args): Copy section name.
6244 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
6246 * emultempl/pe.em: institute the following search order for
6247 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
6248 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
6249 static lib (libfoo.a) if none of the above are found.
6251 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
6253 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
6254 (longopts): New --{enable,disable}-auto-image-base options.
6255 (gld_${EMULATION_NAME}_list_options): Document.
6256 (gld_${EMULATION_NAME}_parse): Handle.
6257 (strhash): New static function.
6258 (compute_dll_image_base): New static function.
6259 (gld_${EMULATION_NAME}_set_symbols): Use.
6261 2000-07-05 DJ Delorie <dj@redhat.com>
6265 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6267 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
6268 * emulparams/elf32btsmip.sh: New file.
6269 * Makefile.am: Add traditional mips target.
6270 * Makefile.in: Rebuild.
6272 2000-07-01 H.J. Lu <hjl@gnu.org>
6274 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
6275 automake to use YLWRAP.
6276 * Makefile.in: Rebuild.
6278 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6280 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6281 (CLEANFILES): Add DEPA.
6282 * Makefile.in: Regenerate.
6284 2000-06-30 Timothy Wall <twall@ppc>
6286 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
6287 the page in the upper octet of the address.
6289 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6291 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
6293 2000-06-24 Alan Modra <alan@linuxcare.com.au>
6295 * NEWS: arm-elf does --gc-sections too.
6297 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6299 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6301 * Makefile.in: Regenerate.
6303 2000-06-21 H.J. Lu <hjl@gnu.org>
6305 * Makefile.am: Rebuild dependency.
6306 * Makefile.in: Rebuild.
6308 2000-06-20 H.J. Lu <hjl@gnu.org>
6310 * Makefile.am: Rebuild dependency.
6311 * Makefile.in: Rebuild.
6313 2000-06-20 Timothy Wall <twall@cygnus.com>
6315 * scripttempl/tic54xcoff.sc: New.
6316 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
6317 * gen-doc.texi: Add flag for TI COFF.
6318 * ld.texinfo: Add documentation for TI COFF handling switches.
6319 * emultempl/ticoff.em: New. TI COFF handling.
6320 * configure.tgt: Add tic54x target.
6321 * Makefile.am: Add tic54x target.
6322 * Makefile.in: Ditto.
6324 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6326 * ldmain.c (set_scripts_dir): Correct pointer comparison when
6327 checking for backslashes.
6329 2000-06-19 Alan Modra <alan@linuxcare.com.au>
6331 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
6333 2000-06-18 Alan Modra <alan@linuxcare.com.au>
6335 * NEWS: Update list of targets supporting --gc-sections.
6337 * scripttempl/elf.sc: KEEP .eh_frame contents.
6338 * scripttempl/elfd30v.sc: Same here.
6340 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6342 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
6344 * Makefile.in: Rebuild.
6345 * configure.tgt: Recognize m68hc12 and m68hc11.
6346 * scripttempl/elfm68hc12.sc: New file.
6347 * emulparams/m68hc12elfb: New emulation.
6348 * emulparams/m68hc12elf: New emulation.
6349 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
6350 (includes a memory.x script to define the ROM and RAM banks).
6351 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
6352 New configuration files for support of Motorola 68hc11
6354 2000-06-15 Alan Modra <alan@linuxcare.com.au>
6356 * ldmain.c (main): Only change SEC_READONLY for final link.
6358 2000-06-13 H.J. Lu <hjl@gnu.org>
6360 * configure: Regenerate.
6362 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6364 * configure.in (VERSION): Update to show this is the CVS mainline.
6366 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6368 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6369 input objects to be ECOFF.
6370 (check_sections): einfo takes %B, not %P, to print a BFD name.
6372 2000-06-05 Michael Matz <matz@ifh.de>
6374 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6377 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6379 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
6381 * emulparams/avr1200.sh (STACK): Define as 0.
6382 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6383 * emulparams/avr4433.sh (STACK): Likewise.
6384 * emulparams/avr44x4.sh (STACK): Likewise.
6385 * emulparams/avr85xx.sh (STACK): Likewise.
6386 * emulparams/avrmega103.sh (STACK): Likewise.
6387 * emulparams/avrmega161.sh (STACK): Likewise.
6388 * emulparams/avrmega603.sh (STACK): Likewise.
6389 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6390 (__stack): Define from ${STACK} for main().
6392 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6394 * Makefile.am: Update dependencies with "make dep-am"
6395 * Makefile.in: Regenerate.
6397 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6399 * ldmain.c: Include filenames.h.
6400 (set_scripts_dir): Support backslashes in program name.
6402 2000-05-22 Igor Shevlyakov <igor@windriver.com>
6404 * ldmain.c (main): When deciding if ".text" section should be
6405 read-only, don't forget to reset SEC_READONLY because it
6406 could be already set.
6408 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6410 * ld.1: Add documentation for new command line option:
6411 --section-start <sectionname>=<sectionorg>
6412 This is a generic version of -Ttext etc. which accepts
6413 any section name as a parameter instead of just text/data/
6415 * ld.texinfo: More docs.
6417 * lexsup.c: (parse_args): Recognize new command line option.
6418 (ld_options): Add new option.
6420 2000-05-18 H.J. Lu <hjl@gnu.org>
6422 * lexsup.c (parse_args): `i' == `r', not `q'.
6424 2000-05-18 Jeffrey A Law (law@cygnus.com)
6426 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6428 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6429 Rick Gorton <gorton@scrugs.lkg.dec.com>
6431 Add support for '-q' == '--emit-relocs' switch.
6432 * ldmain.c (main): Default to false.
6433 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6434 * NEWS: Describe the emitrelocations switch.
6435 * ld.texinfo: Describe the emitrelocations switch.
6437 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6439 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6440 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6441 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6444 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6446 * lexsup.c (parse_args): Update the year in the copyright notice.
6448 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6450 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6451 Replace defines with those from intl/libgettext.h to quieten gcc
6454 2000-05-10 H.J. Lu <hjl@gnu.org>
6456 * ldlang.c (open_input_bfds): Don't load the same file within
6457 a group again if the whole archive has been loaded already.
6459 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6461 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6462 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6465 2000-05-01 Jim Wilson <wilson@cygnus.com>
6467 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6469 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6470 host "ia64-*-linux-gnu*".
6472 2000-04-29 Andreas Jaeger <aj@suse.de>
6474 * ld.h: Correctly check GCC version.
6476 2000-04-25 Jeffrey A Law (law@cygnus.com)
6478 * Makefile.am: Add PA64 support. Add missing dependencies for
6480 * Makefile.in: Rebuilt.
6481 * configure.tgt: Add PA64 support (currently disabled).
6483 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6485 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6486 (output_rel_find): New function.
6487 (hold_section, hold_use): Delete.
6488 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6489 hold_interp): Make local to place_orphan.
6490 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6491 rather than place_section to find possible previous use of orphan.
6492 Similarly find the place-holder output sections. Use returned
6493 value from lang_enter_output_section_statement rather than calling
6494 lang_output_section_statement_lookup.
6495 * emultempl/armelf.em: Same here.
6496 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6498 * ldlang.c (lang_enter_output_section_statement): Return output
6500 * ldlang.h (lang_enter_output_section_statement): Change
6503 * ldlang.h (lang_output_section_statement): Export it.
6504 * ldlang.c (lang_output_section_statement): Ditto.
6506 2000-04-24 Nick Clifton <nickc@cygnus.com>
6508 * ld.texinfo (Output Section Data): Add note that section data
6509 commands cannot appear outside of section directives.
6511 2000-04-2 Matthew Green <mrg@cygnus.com>
6513 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6515 2000-04-21 Richard Henderson <rth@cygnus.com>
6516 David Mosberger <davidm@hpl.hp.com>
6518 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6519 (eelf64_ia64.c): New rule.
6520 * Makefile.in: Rebuild.
6521 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6522 * emulparams/elf64_ia64.sh: New file.
6524 2000-04-21 Richard Henderson <rth@cygnus.com>
6526 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6528 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6530 * dep-in.sed: Match space at start of file name, not at end.
6532 2000-04-18 H.J. Lu <hjl@gnu.org>
6534 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6535 lang_leave_output_section_statement () after calling
6536 lang_enter_output_section_statement ().
6537 * emultempl/armelf.em: Likewise.
6539 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6541 * emultempl/elf32.em (struct orphan_save): Add section field.
6542 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6543 better order, and place first orphan section as we did before the
6544 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6545 Don't call make_bfd_section here, let wild_doit do the job for us.
6546 Don't build a statement list when we'll only throw it away.
6547 * emultempl/armelf.em: Ditto.
6548 * emultempl/pe.em: Similarly.
6550 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6552 * scripttempl/elfppc.sc: Remove.
6553 * emulparams/elf32ppc.sh: Use elf.sc.
6554 * emulparams/elf32lppc.sh: Use elf.sc.
6555 * emulparams/elf32ppclinux.sh: Use elf.sc.
6556 * emulparams/elf32ppcsim.sh: New file.
6557 * emulparams/elf32lppcsim.sh: New file.
6558 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6559 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6560 * Makefile.in: Regenerate.
6561 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6563 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6565 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6566 ~SEC_ALLOC sections too. Init start address of debug sections.
6567 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6568 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6569 Also set all relocateable section start addresses.
6571 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6573 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6574 Add new BSS_PLT variable for when .plt need not be contained in
6575 the file. Move _etext so that it is also after .fini, and provide
6576 both etext and _etext with a leading underscore. Mark the start
6579 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6581 * emultempl/elf32.em (struct orphan_save): New.
6582 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6583 hold_interp): Make them struct orphan_save.
6584 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6585 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6586 the end of the relevant section list. Also add associated section
6587 statements to the end of any previous orphan statements.
6588 * emultempl/armelf.em: Similarly.
6589 * emultempl/pe.em: Similarly.
6591 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6593 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6595 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6597 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6598 --enable-build-warnings option.
6599 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6600 * Makefile.in, configure: Re-generate.
6602 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6604 * po/ld.pot: Regenerate.
6606 * lexsup.c (help): Restore translated part of bug string.
6608 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6609 (DEP): Quote when passing vars to sub-make. Add warning message
6611 (DEP1): Rewrite for "gcc -MM".
6612 (CLEANFILES): Add DEP2.
6613 Update dependencies.
6614 * Makefile.in: Regenerate.
6616 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6618 * ld.h: #include "bin-bugs.h"
6619 * lexsup.c (help): Use REPORT_BUGS_TO.
6621 2000-03-27 Denis Chertykov <denisc@overta.ru>
6623 * configure.tgt (avr-*-*): New target support.
6624 * Makefile.am: Likewise.
6625 * scripttempl/elf32avr.sc: New script file.
6626 * emulparams/avr1200.sh: New file.
6627 * emulparams/avr23xx.sh: New file.
6628 * emulparams/avr4433.sh New file.
6629 * emulparams/avr44x4.sh New file.
6630 * emulparams/avr85xx.sh New file.
6631 * emulparams/avrmega103.sh New file.
6632 * emulparams/avrmega161.sh New file.
6633 * emulparams/avrmega603.sh New file.
6634 * Makefile.in: Regenerate.
6636 2000-03-09 Andreas Jaeger <aj@suse.de>
6638 * Makefile.am (check-DEJAGNU): Also unset LANG.
6639 * Makefile.in: Rebuild.
6641 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6643 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6646 2000-03-02 H.J. Lu <hjl@gnu.org>
6648 * emulparams/elf32mcore.sh: Include "getopt.h".
6650 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6652 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6654 2000-03-01 H.J. Lu <hjl@gnu.org>
6656 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6657 * emulparams/shpe.sh: Likewise.
6659 2000-03-01 Nick Clifton <nickc@cygnus.com>
6661 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6662 to unused parameters.
6664 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6665 functions only used by DLL code.
6666 (_place_orphan): Initialise 'dollar'.
6668 2000-03-01 H.J. Lu <hjl@gnu.org>
6670 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6671 indicate if the undefined symbol is a fatal error or not.
6672 Don't delete the output file if "fatal" is false.
6674 2000-02-29 H.J. Lu <hjl@gnu.org>
6676 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6677 Set LC_COLLATE and LC_ALL to null and export them. It is for
6678 sort which expects the C locale.
6679 Add $(LIBS) to all $(HOSTING_LIBS).
6680 * Makefile.in: Rebuild.
6682 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6684 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6685 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6686 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6687 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6688 find_potential_libraries.
6690 2000-02-28 Jim Blandy <jimb@redhat.com>
6692 * ldgram.y (exclude_name_list): Don't require a comma to separate
6693 list entries; the lexer considers commas to be valid part of a
6694 filename, so in something like `foo, bar' the comma is considered
6695 part of the first filename, `foo,'.
6696 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6698 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6700 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6701 host "i[3456]86-*-freebsdelf*".
6703 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6705 * scripttempl/i386go32.sc: Move misplaced semicolons.
6707 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6709 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6710 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6711 (eelf64hppa.c, ehppaelf.c): Remove targets.
6712 * Makefile.in: Rebuild.
6714 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6716 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6717 GNU/Linux/sparc, but keep the default as 32.
6719 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6720 it default if sparcv9 or sparc64.
6722 2000-02-24 Nick Clifton <nickc@cygnus.com>
6724 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6725 * Makefile.in: Regenerate.
6726 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6728 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6729 find_potential_libraries.
6730 * ldemul.c (ldemul_find_potential_libraries): New function.
6732 * ldfile.c (ldfile_open_file_search): Allow function to be
6734 (ldfile_open_file): Call ldemul_find_potential_libraries.
6735 * ldfile.h: Add prototype for ldfile_open_file_search.
6737 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6739 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6740 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6742 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6743 (gld_X_find_potential_libraries): New function. Search for
6744 libraries called "*.lib".
6746 * scripttempl/pe.sc: Add .pdata section.
6748 2000-02-23 Richard Henderson <rth@cygnus.com>
6750 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6751 Add and use memory regions.
6753 2000-02-23 Linas Vepstas (linas@linas.org)
6755 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6757 * Makefile.am: Add support for Linux/IBM 370.
6758 * configure.tgt: Likewise.
6760 * Makefile.in: Regenerate.
6762 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6764 * ldlang.c (print_input_section, print_data_statement,
6765 print_reloc_statement, print_padding_statement, insert_pad,
6766 size_input_section, lang_check_section_addresses,
6767 lang_size_sections, lang_do_assignments, lang_set_startof,
6768 lang_one_common): Change `opb' to unsigned.
6769 (lang_do_assignments): Also change `size' to unsigned.
6771 2000-02-16 Richard Henderson <rth@cygnus.com>
6773 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6775 2000-02-16 Timothy Wall <twall@cygnus.com>
6777 * mri.c (mri_draw_tree): Add default LMA region argument to call
6778 to lang_leave_output_section_statement.
6779 * ldlang.h: Update prototypes with LMA region arguments.
6780 * ldlang.c (lang_size_sections): Encapsulate region bounds
6781 checking in os_check_region call.
6782 (os_check_region): New function.
6783 (lang_output_section_statement_lookup): Initialize lma_region.
6784 (lang_leave_output_section_statement): Add LMA region argument.
6785 (lang_leave_overlay): Ditto.
6786 * ldgram.y: Handle LMA region syntax.
6787 * ld.texinfo (Output Section Description): Describe LMA region usage.
6788 * emultempl/armelf.em (gld$place_orphan): Add default value for
6789 lma region in call to lang_leave_output_section_statement.
6790 * emultempl/elf32.em (gld$place_orphan): Add default value for
6791 lma region in call to lang_leave_output_section_statement.
6792 * emultempl/pe.em (gld$place_orphan): Add default value for
6793 lma region in call to lang_leave_output_section_statement.
6796 2000-02-04 Timothy Wall <twall@redhat.com>
6798 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6799 octets when calculating section end addresses.
6801 2000-02-04 Timothy Wall <twall@redhat.com>
6803 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6805 2000-02-03 Timothy Wall <twall@redhat.com>
6807 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6809 * ldlang.c (print_input_section, print_data_statement,
6810 print_reloc_statement, print_padding_statement): Print target
6811 address values and section sizes as bytes, not octets.
6812 (insert_pad) Calculate padding size in octets, and adjust "dot"
6814 (size_input_section) Always adjust "dot" by bytes, not octets.
6815 (lang_check_section_addresses, lang_do_assignments) Adjust
6816 "dot" by bytes, not octets. Use the larger of the directive size
6817 or octets_per_byte for the number of octets actually allocated in
6819 (lang_set_startof) Make sure STARTOF returns a target address.
6820 (lang_one_common) Record size changes in octets.
6821 (lang_abs_symbol_at_end_of) Section end symbol's value is
6822 recorded in target bytes.
6823 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6824 to be clear about behavior when an octet is smaller than one byte.
6826 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6828 * ldcref.c (output_cref): Don't pass message strings to printf
6832 * ldmisc.c (vfinfo): Same here.
6835 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6837 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6838 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6839 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6840 Add missing NULL initialisers, and comments.
6842 2000-01-21 Nick Clifton <nickc@cygnus.com>
6844 * ldlang.c (lang_size_sections): Fix typo in comment.
6846 2000-01-18 H.J. Lu <hjl@gnu.org>
6848 * ldlang.c (lang_size_sections): Also update the current
6849 address of a region if the SEC_NEVER_LOAD bit is not set.
6851 2000-01-10 Philip Blundell <pb@futuretv.com>
6853 * configure.tgt (arm*-*-conix*): New target.
6855 2000-01-07 Nick Clifton <nickc@cygnus.com>
6857 * ld.texinfo (Options): Remind users to preceed linker command
6858 line switches with -Wl, (or whatever is appropriate) if it is
6859 being invoked by a comnpiler driver program.
6860 Fix description of the behaviour of the -n command line switch.
6862 2000-01-05 Catherine Moore <clm@cygnus.com>
6864 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6866 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6867 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6868 (exclude_name_list): New.
6869 ldlang.c (walk_wild_section): Support list of excluded files.
6870 (print_wild_statement): Likewise.
6871 (lang_add_wild): Likewise.
6872 * ldlang.h (lang_wild_statement_type): Likewise.
6873 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6875 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6877 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6878 (process_def_file): Use.
6879 (pe_dll_compat_implib): New variable.
6882 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6883 pe_dll_compat_implib.
6885 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6886 compat-implib options.
6887 (gld_${EMULATION_NAME}_list_options): List new options.
6888 (gld_${EMULATION_NAME}_parse_args): Handle.
6890 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6893 * deffilep.y (opt_name): Allow "." in name.
6895 For older changes see ChangeLog-9899
6901 version-control: never