merge from gcc
[binutils.git] / ld / ChangeLog
blob2666cbf6a3f1c9e1cdbc2352aa09b7fc2a519831
1 2003-12-19  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3         Add m32r-linux and PIC support.  Add new ABI that uses RELA.
4         * Makefile.am: Added em32rlelf.c, em32relf_linux.c,
5         em32rlelf_linux.c.
6         * Makefile.in: Regenerate.
7         * configure.tgt (m32r*-*-linux*, m32r*le-*-linux*, m32r*le-*-*):Added.
8         * emulparams/m32relf_linux.sh: Added.
9         * emulparams/m32rlelf.sh: Ditto.
10         * emulparams/m32rlelf_linux.sh: Ditto.
11         * NEWS: Mention support m32r Linux.
13 2003-12-18  Eric Youngdale  <eric@mkssoftware.com>
14             Nick Clifton  <nickc@redhat.com>
16         * emultempl/pe.em (_after_open): When scanning MS import
17         libraries allow for the possible presence of static objects.
18           
19 2003-12-07  H.J. Lu  <hongjiu.lu@intel.com>
21         * ldlang.c (lang_vers_match): Pass "DMGL_PARAMS | DMGL_ANSI" to
22         cplus_demangle.
24 2003-12-07  Kazu Hirata  <kazu@cs.umass.edu>
26         * ldemul.c: Convert to ISO-C.
27         * ldver.c: Likewise.
29 2003-12-06  Kazu Hirata  <kazu@cs.umass.edu>
31         * lexsup.c (is_num): Remove.
33 2003-12-05  Dmitry Semyonov  <Dmitry.Semyonov@oktet.ru>
35         * pe-dll.c (generate_reloc): Remap ARM_26D relocation from 5 to
36         0.  This fixes "bad fixup" error generated by MS linker.
38 2003-12-04  H.J. Lu  <hongjiu.lu@intel.com>
40         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Set
41         link_info.need_relax_finalize to TRUE.
43         * ldlang.c (lang_process): Use link_info.need_relax_finalize
44         instead of link_info.relax_finalizing.
45         * ldmain.c (main): Likewise.
46         
47 2003-12-04  Dmitry Semyonov  <Dmitry.Semyonov@oktet.ru>
49         * armpe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
51 2003-12-04  Alan Modra  <amodra@bigpond.net.au>
53         * ldlang.c (lang_do_assignments): Function return is void.
54         * ldlang.h (lang_do_assignments): Ditto.
55         * emultempl/netbsd.em (gld${EMULATION_NAME}_before_parse): Declare.
56         * Makefile.am (ens32knbsd.c): Depend on netbsd.em.
57         * Makefile.in: Regenerate.
59 2003-12-03  Dave Airlie  <airlied@linux.ie>
61         * configure.tgt: Add vax-linux-gnu target.
63 2003-12-03  Dmitry Diky  <diwil@mail.ru>
64         
65         * scripttempl/elf32msp430.sc (HEAP_SECTION_MSP430): New section for
66         forthcoming devices.
67         (_etext): provide this defenition for all scripts.
69 2003-12-02  Kazu Hirata  <kazu@cs.umass.edu>
71         * emultempl/beos.em: Remove ARGSUSED.
73 2003-12-03  Alan Modra  <amodra@bigpond.net.au>
75         * emultempl/pe.em (pe_fixup_stdcalls): Update for renamed
76         bfd_link_hash_entry field "next" -> "und_next".
77         (pe_find_data_imports): Likewise.
78         (gld_${EMULATION_NAME}_after_open): Likewise.
79         * emultempl/sunos.em (before_allocation): Likewise.
81 2003-12-02  Nick Clifton  <nickc@redhat.com>
83         * ld.texinfo (Options): --ignore-all is no longer the default
84         behaviour for shared libraries and dynamic executables.
86 2003-12-02  Alan Modra  <amodra@bigpond.net.au>
88         * Makefile.am: Run "make dep-am".
89         * Makefile.in: Regenerate.
91 2003-12-02  Alan Modra  <amodra@bigpond.net.au>
93         * ldmain.c (main): Remove mpc860c0 code.
94         * lexsup.c (enum option_values): Delete OPTION_MPC860C0.
95         (ld_options): Delete mpc860c0 entry.
96         (parse_args): Likewise.
98 2003-12-01  Alan Modra  <amodra@bigpond.net.au>
100         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Test
101         hash table type rather than testing creator flavour.
102         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
103         Only create stub_file bfd if hash table creator is as expected.
104         (gld${EMULATION_NAME}_finish): Test stub_file.
106 2003-11-28  Marcel Moolenaar  <marcel@xcllnt.net>
108         * emulparams/elf64_ia64_fbsd.sh (TEXT_START_ADDR): Define.
109         (DATA_ADDR): Unset.
111 2003-11-18  James E Wilson  <wilson@specifixinc.com>
113         * ldlang.c (lang_process): Move lang_reset_memory_regions call after
114         lang_do_assignments call.
116         * emulparams/elf64_ia64.sh (OTHER_PLT_RELOC_SECTIONS): Include
117         .rela.opd if -pie.
119 2003-11-10  Jonathan Wilson <jonwil@tpgi.com.au>
121         * scripttempl/pe.sc: Add support for TLS sections.
123 2003-11-09  Alan Modra  <amodra@bigpond.net.au>
125         * configure.host (HOSTING_LIBS): Group libgcc and libc with
126         --start-group, --end-group pair.
127         (*-*-netbsd*, am33_2.0-*-linux*): Use the default HOSTING_LIBS.
128         (am33_2.0-*-linux*): Edit default HOSTING_CRT0.
129         (arm*-*-linux-gnu*): Remove extraneous '*' in sed expression.
130         (hppa*64*-*-linux*, hppa*-*-linux*): Remove target specific case.
132 2003-11-07  Jonathan R. Grant  <jg-binutils@jguk.org>
134         * ldfile.c (ldfile_open_file): Use "No such file" error message.
136 2003-11-06  Bruno Rohee  <bruno@rohee.com>
138         * ls.texinfo: Fix "the the" typo.
140 2003-11-05  Alan Modra  <amodra@bigpond.net.au>
142         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Only do
143         pe_dll_extra_pe_debug stuff when DLL_SUPPORT defined.
144         (pr_sym): Move inside #ifdef DLL_SUPPORT.
146         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Zap
147         unused variable.
149         * emulparams/elf32_i860.sh (TEXT_START_ADDR): Define.
151 2003-11-04  Alan Modra  <amodra@bigpond.net.au>
153         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Call
154         _bfd_elf_tls_setup.
156 2003-10-31  Nick Clifton  <nickc@redhat.com>
158         * ldlang.c (lookup_name): When looking for a previously loaded
159         file compare the local_sym_name not the filename, as the
160         filename might have been transformed via the search directory
161         path lookup.
162         If the sought-for file has not been found in the input file
163         chain then create a new node with the search_dirs_flag set so
164         that the entire set of directory paths will be scanned for it.
166 2003-10-30  Andrew Cagney  <cagney@redhat.com>
168         * emultempl/pe.em, pe-dll.c: Replace "struct symbol_cache_entry"
169         with "struct bfd_symbol".
171 2003-10-30 Phil Edwards <phil@codesourcery.com>
173         * Makefile.am (ALL_EMULATIONS): Add elf32mipswindiss.o.
174         (eelf32mipswindiss.c): New target.
175         * Makefile.in:  Regenerated.
176         * emulparams/elf32mipswindiss.sh:  New file.
177         * configure.tgt (i[3-7]86-*-vxworks*, arm-*-vxworks, sh-*-vxworks,
178         mips*-*-vxworks*):  Use ELF now.
179         (mips*-*-windiss):  New stanza, use elf32mipswindiss.
181 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
183         * scripttempl/elfm68hc12.sc: Define eeprom memory region.
185 2003-10-25  Kazu Hirata  <kazu@cs.umass.edu>
187         * ChangeLog-9197: Fix typos.
188         * NEWS: Likewise.
189         * ld.texinfo: Likewise.
190         * ldlang.c: Fix comment typos.
192 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
194         * ldlang.c (lang_vers_match): Fix a typo.
196 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
198         * ldlang.c (lang_vers_match): Check demangled symbols.
200 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
202         * ldlang.c (lang_vers_match): Check "symbol" instead of
203         "wildcard" and "pattern". Fix a typo.
204         (lang_finalize_version_expr_head): Likewise.
205         (lang_register_vers_node): Likewise.
206         (realsymbol): New function.
207         (lang_new_vers_pattern): Set "symbol" and remove "wildcard".
209         * ldlex.l (V_IDENTIFIER): Allow '\\'.
211 2003-10-24  Nick Clifton  <nickc@redhat.com>
213         * emultempl/m68hc1xelf.em (before_allocation): Add missing second
214         parameter to lang_memory_region_lookup.
216 2003-10-22  Jakub Jelinek  <jakub@redhat.com>
218         * ldlang.c: Include hashtab.h.
219         (lang_vers_match_lang_c, lang_vers_match_lang_cplusplus,
220         lang_vers_match_lang_java): Remove.
221         (lang_vers_match): New function.
222         (lang_new_vers_pattern): Initialize wildcard and mask
223         fields, don't initialize match.
224         (lang_new_vers_node): Use xcalloc.  Adjust for globals and
225         locals field type changes.  Set match field.
226         (version_expr_head_hash, version_expr_head_eq): New functions.
227         (lang_finalize_version_expr_head): New function.
228         (lang_register_vers_node): Call lang_finalize_version_expr_head.
229         Search in hash table if not wildcard when looking for duplicates.
230         * emultempl/ppc64elf.em (new_vers_pattern): Don't bother with
231         duplicate checking.  Initialize all fields of dot_entry from entry
232         with the exception of pattern and next.
234 2003-10-21  Nick Clifton  <nickc@redhat.com>
236         * ldlang.c (lang_memory_region_lookup): Add second parameter -
237         create - which is true if the region is being created.  Issue
238         appropriate warning messages for finding and not finding
239         already created regions.
240         (lang_memory_default): Use DEFAULT_MEMORY_REGION.
241         (lang_leave_overlay_section): Likewise.
242         (lang_size_sections_1): Likewise.
243         Pass second parameter to lang_memory_region_lookup.
244         (lang_get_regions): Likewise.
245         * ldlang.h (DEFAULT_MEMORY_REGION): Define.
246         Update prototype for lang_memory_region_lookup.
247         * ldgram.y: Pass second parameter to lang_memory_region_lookup.
248         Use DEFAULT_MEMORY_REGION instead of "*default".
250 2003-10-20  Andrew Cagney  <cagney@redhat.com>
252         * pe-dll.c: Replace "struct sec" with "struct bfd_section".
254 2003-10-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
256         * Makefile.am: Remove old (before GCC 3.3) emulations for AVR
257         target: avr1200, avr23xx, avr4433, avr44x4, avr85xx, avrmega103,
258         avrmega161, avrmega603.  Default to avr2.
259         * Makefile.in: Regenerate.
260         * configure.tgt: Likewise.
261         * emulparams/avr1200.sh: Remove.
262         * emulparams/avr23xx.sh: Remove.
263         * emulparams/avr4433.sh: Remove.
264         * emulparams/avr44x4.sh: Remove.
265         * emulparams/avr85xx.sh: Remove.
266         * emulparams/avrmega103.sh: Remove.
267         * emulparams/avrmega161.sh: Remove.
268         * emulparams/avrmega603.sh: Remove.
269         * scripttempl/elf32avr.sc: Remove.
271 2003-10-19  Andreas Schwab  <schwab@suse.de>
273         * emultempl/ticoff.em (gld_${EMULATION_NAME}_list_options): Add
274         newline to message.
276         * deffilep.y: Remove commas from %token lines.
278 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
280         * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
281         relaxation always; don't exclude relocatable linking.  Adjust for
282         _bfd_mmix_prepare_linker_allocated_gregs renamed to
283         _bfd_mmix_before_linker_allocation.
284         (mmix_after_allocation): Adjust for
285         _bfd_mmix_finalize_linker_allocated_gregs renamed to
286         _bfd_mmix_after_linker_allocation.
287         * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
289         * ldlang.c (lang_size_sections): Last, set _cooked_size for output
290         sections.
292 2003-10-16  Alan Modra  <amodra@bigpond.net.au>
294         * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove.  Use
295         GENSCRIPTS and GEN_DEPENDS in place of these.
296         * Makefile.in: Regenerate.
297         * genscripts_extra.sh: Delete.  Merge extra functionality to..
298         * genscripts.sh: ..here.
300         * emulparams/gld960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Define.
301         * emulparams/gld960coff.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
302         * emulparams/lnk960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
303         * emulparams/m88kbcs.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
304         * emulparams/vanilla.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
306 2003-10-16  Alan Modra  <amodra@bigpond.net.au>
308         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Don't
309         use $EMULATION_NAME to call bfd function.
311 2003-10-14  Danny Smith  <dannysmith@users.sourceforge.net>
313         * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
314         to identify data symbols.
316 2003-10-13  Richard Sandiford  <rsandifo@redhat.com>
318         * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
319         definition from elf64btsmip.sh.
320         (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
321         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
322         * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
323         * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
324         (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
325         Define __program_header_table in terms of __elf_header.
327 2003-10-10  H.J. Lu  <hongjiu.lu@intel.com>
329         * Makefile.am (eelf64_ia64.c): Also depend on
330         $(srcdir)/emultempl/ia64elf.em.
331         * Makefile.in: Regenerated.
333         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
335         * emultempl/ia64elf.em: New.
337 2003-10-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
339         * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
341 2003-10-11  Hans-Peter Nilsson  <hp@bitrange.com>
343         * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
344         defined before the statement using DEFINED yield 1.
345         * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
346         call lang_track_definedness on symbol.  In subsequent phases, use
347         lang_symbol_definition_iteration and lang_statement_iteration to
348         check whether the symbol was defined before the current statement.
349         (exp_fold_tree) <case etree_assign et al>: Call
350         lang_update_definedness before updating symbol type when setting
351         symbol.
352         * ldlang.c (lang_definedness_table): New variable.
353         (lang_definedness_newfunc, lang_track_definedness)
354         (lang_symbol_definition_iteration, lang_update_definedness): New
355         functions.
356         (lang_init): Initialize lang_definedness_table and
357         lang_statement_iteration.
358         (lang_finish): Destroy bfd_hash_table_free.
359         (lang_size_sections): Increment lang_statement_iteration.
360         (lang_do_assignments_1): New function with former
361         lang_do_assignments contents.  Change recursive calls to call this
362         function.
363         (lang_do_assignments): Evacuate contents.  Increment
364         lang_statement_iteration, then just call lang_do_assignments_1.
365         * ldlang.h (struct lang_definedness_hash_entry)
366         (lang_statement_iteration, lang_track_definedness)
367         (lang_symbol_definition_iteration, lang_update_definedness):
368         Declare.
370 2003-10-09  H.J. Lu  <hongjiu.lu@intel.com>
372         * scripttempl/elf.sc (__executable_start): Provide.
374 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
376         * emulparams/armelf.sh: Define NO_SMALL_DATA.
377         * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
378         emulparams/armnto.sh: Likewise.
380 2003-10-08  Alexandre Oliva  <aoliva@redhat.com>
382         * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
383         whether to skip test for no memory region.
385 2003-10-08  Nick Clifton  <nickc@redhat.com>
387         * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
388         describing defaults.  Change default to report unresolved symbols
389         in object files as well.
391 2003-10-08  Hans-Peter Nilsson  <hp@bitrange.com>
393         * ldexp.c (fold_name) <case DEFINED>: Set section of result to
394         abs_output_section.
396 2003-10-07  Bob Wilson  <bob.wilson@acm.org>
398         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
399         OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
400         zero for relocatable links.
402 2003-10-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
404         * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
406 2003-10-07  Nathan Sidwell  <nathan@codesourcery.com>
408         * ldwrite.c (unsplittable_name): New.
409         (clone_section): Strip existing numeric suffix. Only truncate names
410         for coff targets.
411         (split_sections): Use unsplittable_name.
413 2003-10-06  Nick Clifton  <nickc@redhat.com>
415         * lexsup.c (parse_args): Report unresolved symbols in shared
416         libraries when creating a dynamic executable.  This is a
417         restoration of the default behaviour for previous versions of
418         the linker.
420 2003-10-06  Matt Thomas <matt@3am-software.com>
422         * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
423         * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
425 2003-10-06  Robert Millan  <robertmh@gnu.org>
427         * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
429 2003-10-02  Ivan Warren <ivan@vmfacility.fr>
431         * pe-dll.c (make_one): Correct sym def order & pick right sym for
432         .idata$7 reloc.
434 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
436         * NEWS: Add an indication of the cutoff for 2.14.
438 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
440         * ldmain.c (get_emulation): Ignore "-mips64r2".
442 2003-09-03  Robert Millan  <robertmh@gnu.org>
444         * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
445         triplet.
446         * configure.tgt: Likewise.
448 2003-08-29  Jafa  <jafa@silicondust.com>
450         * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
452 2003-08-21  Nick Clifton  <nickc@redhat.com>
454         * po/tr.po: Updated Turkish translation.
456 2003-08-20  Nick Clifton  <nickc@redhat.com>
458         * ldmain.c: Initialise the new fields in bfd_link_info to
459         NOT_YET_SET.
460         * lexsup.c (enum option_values): New enum.  Use this to
461         replace the hand coded values for the long switch options.
462         (ld_options): Add 'unresolved-symbols',
463         'warn-unresolved-symbols' and 'error-unresolved-symbols'.
464         (parse_args): Handle the new switches.  Set the values of
465         unresolved_symbols_in_objects and
466         unresolved_symbols_in_shared_libs appropriately.  If they were
467         not initialised by the command line, install default values.
468         * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
469         -z defs to use the new fields in bfd_link_info.
470         * ld.texinfo: Document the new switches.
471         * NEWS: Mention this feature.
473 2003-08-15 Dmitry Diky <diwil@mail.ru>
475         * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
476         calls genscripts_extra.sh.
477         Rearrange all msp430 depends using this script.
478         * Makefile.in: Regenerate.
479         * genscripts_extra.sh: New file: Similar to genscripts.sh, except
480         that the script to be run to generate the emulations can be passed
481         as an optional parameter instead of being computed from the
482         emulation name.
483         * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
484         definitions into one file.
485         * emulparams/msp430x*.sh: Removed.
487 2003-08-15  Nick Clifton  <nickc@redhat.com>
489         * ld.texinfo (Options): Put keywords for the -z option into a
490         table.  Add more text describing what the -z now option does.
492 2003-08-14  Alan Modra  <amodra@bigpond.net.au>
494         * dep-in.sed: Remove libintl.h.
495         * Makefile.am (POTFILES.in): Unset LC_COLLATE.
496         * Makefile.in: Regenerate.
498 2003-08-13  Alan Modra  <amodra@bigpond.net.au>
500         * genscripts.sh (libpath.exp): Only generate for first emulation.
501         (LIB_PATH): Correct order of paths.  Don't add $tool_lib when
502         already present or when LIB_PATH is set to ":".
504 2003-08-12  Ian Lance Taylor  <ian@airs.com>
506         * ldmain.c (undefined_symbol): Change parameter name from `fatal'
507         to `error'.  If only a warning, put warning in the reported
508         string.  Consistently set failure flag when not a warning.
510 2003-08-08 Dmitry Diky <diwil@mail.ru>
512         * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
513         gcc order.
514         * Makefile.in: Regenerate.
515         * configure.tgt: Add extra emulations.
516         * emulparams/msp430xE423.sh: New file.
517         * emulparams/msp430xE427.sh: New file.
518         * emulparams/msp430xW425.sh: New file.
519         * emulparams/msp430xE425.sh: New file.
520         * emulparams/msp430xW423.sh: New file.
521         * emulparams/msp430xW427.sh: New file.
523 2003-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
525         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
526         Change second (cmdline) arg to lang_add_entry to FALSE.
527         (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
529 2003-08-05  Christian Groessler  <chris@groessler.org>
530             Jason Eckhardt  <jle@rice.edu>
532         * configure.tgt: Recognize new target i860-*-coff.
533         * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
534         (ecoff_i860.c): New rule.
535         * emulparams/coff_i860.sh: New file.
536         * scripttempl/i860coff.sc: New file.
537         * Makefile.in: Regenerate.
539 2003-08-04  Nick Clifton  <nickc@redhat.com>
541         * emultempl/elf32.em (before_allocation): Prepend "warning: "
542         to messages produced for .gnu.warning.SYMBOL sections.
544 2003-08-04  Alan Modra  <amodra@bigpond.net.au>
546         * emultempl/elf32.em (output_rel_find): Add "isdyn" param.  Put
547         .rel.dyn before other reloc sections.  Don't stop looking for reloc
548         sections on finding one that isn't allocated.  Match .rel even when
549         placing .rela and vice versa, when setting last_rel and
550         last_rel_alloc for the first time.  If no reloc sections in script,
551         prefer allocated section over non-alloc.
552         (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
554 2003-07-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
556         * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
557         section for shared library.
558         * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
559         * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
561 2003-07-29  Stephane Carrez  <stcarrez@nerim.fr>
563         * scripttempl/elfm68hc12.sc: Add gcc_except_table.
564         * scripttempl/elfm68hc11.sc: Likewise.
566 2003-07-28  Alan Modra  <amodra@bigpond.net.au>
568         * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
570         * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
572 2003-07-27  Alan Modra  <amodra@bigpond.net.au>
574         * ld.texinfo: Typo fixes.  Document SUBALIGN.
575         * ldgram.y (opt_subalign): Add.
576         * ldlex.l (SUBALIGN): Recognize.
577         * ldlang.c (overlay_subalign): New var.
578         (lang_enter_overlay): Add subalign param.
579         (lang_enter_overlay_section): Pass overlay_subalign to
580         lang_enter_output_section_statement.
581         * ldlang.h (lang_enter_overlay): Update.
583 2003-07-24  Nick Clifton  <nickc@redhat.com>
585         * po/fr.po: Updated French translation.
587 2003-07-23  Stephane Carrez  <stcarrez@nerim.fr>
589         * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
590         account .tramp sections;
591         * scripttempl/elfm68hc12.sc: Likewise.
593 2003-07-17  Charles Wilson  <cwilson@ece.gatech.edu>
595         * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
597 2003-07-17  Nick Clifton  <nickc@redhat.com>
599         * po/es.po: New Spanish translation.
601 2003-07-11  Alan Modra  <amodra@bigpond.net.au>
603         * po/ld.pot: Regenerate.
605 2003-07-10  Bob Wilson  <bob.wilson@acm.org>
607         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
608         with new .got.loc section.
609         (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
610         non-relocating links.
611         (OTHER_SECTIONS): Add .xt.lit here.  Change it to keep linkonce
612         sections separate for non-relocating links; likewise for .xt.insn.
614 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
616         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
617         * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
618         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
619         * configure.host (am33_2.0-*-linux*): Added.
620         * configure.tgt (am33_2.0-*-linux*): Likewise.
621         * emulparams/elf32am33lin.sh: New.
622         * Makefile.am (eelf32am33lin.c): New rule.
623         * Makefile.in: Rebuilt.
625 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
627         2001-04-17  Alexandre Oliva  <aoliva@redhat.com>
628         * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
629         (GENERATE_SHLIB_SCRIPT): Likewise.
631 2003-07-10  Alan Modra  <amodra@bigpond.net.au>
633         * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
634         (GOT): Define.
635         * emultempl/ppc64elf.em (stub_added): New static var.
636         (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
637         (ppc_add_stub_section): Set stub_added.
638         (gld${EMULATION_NAME}_finish): Look for .got rather than .toc.  Adjust
639         ppc64_elf_size_stubs call and test for stubs.
640         * scripttempl/elf.sc (GOT): Define and use.
642 2003-07-08  J"orn Rennecke <joern.rennecke@superh.com>
644         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
645         Allow second call from ldemul_finish.
647 2003-07-04  J"orn Rennecke <joern.rennecke@superh.com>
649         * emulparams/shelf32.sh (STACK_ADDR): Don't define.
650         (OTHER_SECTIONS): Include .stack.
651         * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
653 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
655         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
656         .opd if -pie.
657         (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
658         * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
659         if -pie.
661 2003-06-28  Alan Modra  <amodra@bigpond.net.au>
663         * ld.h: Convert to C90, remove unnecessary prototypes and casts.
664         Replace PTR with void *.  Formatting.
665         * ldcref.c: Likewise.
666         * ldctor.c: Likewise.
667         * ldctor.h: Likewise.
668         * ldemul.h: Likewise.
669         * ldexp.c: Likewise.
670         * ldexp.h: Likewise.
671         * ldfile.c: Likewise.
672         * ldfile.h: Likewise.
673         * ldlang.c: Likewise.
674         * ldlang.h: Likewise.
675         * ldlex.h: Likewise.
676         * ldlex.l: Likewise.
677         * ldmain.c: Likewise.
678         * ldmain.h: Likewise.
679         * ldmisc.c: Likewise.
680         * ldmisc.h: Likewise.
681         * ldver.h: Likewise.
682         * ldwrite.c: Likewise.
683         * ldwrite.h: Likewise.
684         * lexsup.c: Likewise.
685         * mri.c: Likewise.
686         * mri.h: Likewise.
687         * pe-dll.c: Likewise.
688         * pe-dll.h: Likewise.
689         * deffilep.y: Likewise.
690         * deffile.h: Likewise.  Don't include ansidecl.h.
691         * emulparams/elf32mcore.sh: Remove unnecessary cast.
692         * emultempl/m68kcoff.em: Likewise.
693         * emultempl/m68kelf.em: Likewise.
694         * emultempl/ticoff.em: Remove lang_add_output_format declaration.
695         * sysdep.h: Don't include ansidecl.h.
696         * Makefile.am: Run "make dep-am".
697         * Makefile.in: Regenerate.
699 2003-06-27  Nick Clifton  <nickc@redhat.com>
701         * deffilep.y (def_file_add_directive): Cope with NUL seperated
702         directives.  Fix reporting of unparseable directives.
703         (def_error): Check for a NULL def_filename.
705 2003-06-27  Alan Modra  <amodra@bigpond.net.au>
707         * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
708         and casts.  Replace PTR with void *.  Formatting.
709         * emultempl/alphaelf.em: Likewise.
710         * emultempl/armcoff.em: Likewise.
711         * emultempl/armelf.em: Likewise.
712         * emultempl/armelf_oabi.em: Likewise.
713         * emultempl/beos.em: Likewise.
714         * emultempl/elf32.em: Likewise.
715         * emultempl/generic.em: Likewise.
716         * emultempl/gld960.em: Likewise.
717         * emultempl/gld960c.em: Likewise.
718         * emultempl/hppaelf.em: Likewise.
719         * emultempl/linux.em: Likewise.
720         * emultempl/lnk960.em: Likewise.
721         * emultempl/m68hc1xelf.em: Likewise.
722         * emultempl/m68kcoff.em: Likewise.
723         * emultempl/m68kelf.em: Likewise.
724         * emultempl/mipsecoff.em: Likewise.
725         * emultempl/mipself.em: Likewise.
726         * emultempl/mmix-elfnmmo.em: Likewise.
727         * emultempl/mmixelf.em: Likewise.
728         * emultempl/mmo.em: Likewise.
729         * emultempl/needrelax.em: Likewise.
730         * emultempl/netbsd.em: Likewise.
731         * emultempl/pe.em: Likewise.
732         * emultempl/sh64elf.em: Likewise.
733         * emultempl/sunos.em: Likewise.
734         * emultempl/ticoff.em: Likewise.
735         * emultempl/vanilla.em: Likewise.
736         * emultempl/xtensaelf.em: Likewise.
737         * Makefile.am: Correct dependencies.
738         * Makefile.in: Regenerate.
740 2003-06-25  Alan Modra  <amodra@bigpond.net.au>
742         * ld.texinfo: Correct spelling of "relocatable".
743         * ldctor.c: Likewise.
744         * ldexp.c: Likewise.
745         * ldfile.c: Likewise.
746         * ldint.texinfo: Likewise.
747         * ldlang.c: Likewise.
748         * ldmain.c: Likewise.
749         * ldwrite.c: Likewise.
750         * lexsup.c: Likewise.
751         * emultempl/aix.em: Likewise.
752         * emultempl/alphaelf.em: Likewise.
753         * emultempl/armcoff.em: Likewise.
754         * emultempl/armelf_oabi.em: Likewise.
755         * emultempl/beos.em: Likewise.
756         * emultempl/elf32.em: Likewise.
757         * emultempl/generic.em: Likewise.
758         * emultempl/gld960.em: Likewise.
759         * emultempl/gld960c.em: Likewise.
760         * emultempl/hppaelf.em: Likewise.
761         * emultempl/linux.em: Likewise.
762         * emultempl/lnk960.em: Likewise.
763         * emultempl/m68hc1xelf.em: Likewise.
764         * emultempl/m68kcoff.em: Likewise.
765         * emultempl/m68kelf.em: Likewise.
766         * emultempl/mipsecoff.em: Likewise.
767         * emultempl/mipself.em: Likewise.
768         * emultempl/mmix-elfnmmo.em: Likewise.
769         * emultempl/mmo.em: Likewise.
770         * emultempl/needrelax.em: Likewise.
771         * emultempl/pe.em: Likewise.
772         * emultempl/ppc64elf.em: Likewise.
773         * emultempl/sh64elf.em: Likewise.
774         * emultempl/sunos.em: Likewise.
775         * emultempl/ticoff.em: Likewise.
776         * emultempl/xtensaelf.em: Likewise.
778 2003-06-24  Alan Modra  <amodra@bigpond.net.au>
780         * emultempl/ppc32elf.em: Convert to C90.
782 2003-06-20  Alan Modra  <amodra@bigpond.net.au>
784         * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
785         unnecessary prototypes and casts.
787 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
789         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
790         statistics from ppc64_elf_build_stubs.
792 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
794         * emultempl/ppc64elf.em (build_section_lists): Check return status
795         from ppc64_elf_next_input_section.
797 2003-06-17  H.J. Lu <hongjiu.lu@intel.com>
799         * ldlang.c (section_already_linked): Put back assignment of
800         kept_section.
802 2003-06-17  Rainer Keuchel  <rkeuchel@allgeier.com>
804         * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
805         reloc.
807 2003-06-17  Loren James Rittle  <rittle@latour.rsch.comm.mot.com>
809         * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
810         if not produced by gcc.
812 2003-06-16  Hans-Peter Nilsson  <hp@axis.com>
814         * configure.tgt: Add specific case for cris-*-linux-gnu*
815         with crislinux emulation only.
817 2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
819         * configure.tgt: Add i386-netbsd-gnu target.
821 2003-06-12  Richard Sandiford  <rsandifo@redhat.com>
823         * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
824         to $targ_extra_libpath.
826 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
828         * po/Make-in (DESTDIR): New.
829         (install-data-yes): Support $(DESTDIR).
830         (uninstall): Likewise.
832 2003-06-10  Doug Evans  <dje@sebabeach.org>
834         * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
835         * Makefile.in: Regenerate.
837 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
839         * configure.tgt (h8300*): Add h8300sxn emulations.
840         * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
841         (eh8300sxn.c, eh8300sxnelf.c): New rules.
842         * Makefile.in: Regenerate.
843         * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
844         * scripttempl/h8300sxn.sc: New file.
846 2003-06-10  Alan Modra  <amodra@bigpond.net.au>
848         * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
849         CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
851 2003-06-08  Alan Modra  <amodra@bigpond.net.au>
853         * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
854         (build_toc_list): New function.
855         (gld${EMULATION_NAME}_finish): Call build_toc_list and
856         ppc64_elf_reinit_toc.  Adjust ppc64_elf_build_stubs call.
857         (OPTION_STUBSYMS): Define.
858         (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
859         (PARSE_AND_LIST_OPTIONS): Document.
860         (PARSE_AND_LIST_ARGS_CASES): Handle.
862 2003-06-05  Roland McGrath  <roland@redhat.com>
864         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
865         extra \t in -z noexecstack line.
867 2003-05-23  Jakub Jelinek  <jakub@redhat.com>
869         * ldgram.y (phdr_type): Grok PT_GNU_STACK.
870         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
871         -z execstack and -z noexecstack.
872         (gld${EMULATION_NAME}_list_options): Likewise.
873         * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
875 2003-06-03  Michael Snyder  <msnyder@redhat.com>
876         and Bernd Schmidt   <bernds@redhat.com>
877         and Alexandre Oliva <aoliva@redhat.com>
879         * Makefile.am: Add new emulations for h8300sx.
880         * Makefile.in: Regenerate.
881         * configure.tgt: Add new emulations.
882         * emulparams/h8300sx.sh: New emulation.
883         * emulparams/h8300sxelf.sh: Ditto.
884         * scripttempl/h8300sx.sc: Ditto.
886 2003-06-03  H.J. Lu <hongjiu.lu@intel.com>
888         * ldmisc.c: Include "bfdlink.h".
889         (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
890         and -LD_DEFINITION_IN_DISCARDED_SECTION.
892         * Makefile.am: Rebuild dependency.
893         * Makefile.in: Regenerated.
895 2003-06-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
897         * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
898         * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
900 2003-06-02  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
902         * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
903         sorted alphabetically, instead of exported_symbols, which is
904         sorted by ordinal.
906 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
907             Jakub Jelinek  <jakub@redhat.com>
909         * lexsup.c (OPTION_PIE): Define.
910         (ld_options): Add -pie and --pic-executable options.
911         (parse_args): Handle OPTION_PIE.
912         * ldmain.c (main): Initialize link_info.pie and
913         link_info.executable.
914         * genscripts.sh: Generate PIE scripts.
915         * ld.texinfo: Document -pie and --pic-executable options.
916         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
917         (gld${EMULATION_NAME}_place_orphan): Likewise.
918         (gld${EMULATION_NAME}_get_script): Include PIE scripts.
919         * scripttempl/elf.sc: In PIE scripts set . the same way as in
920         shared scripts.
921         * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
922         * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
923         * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
924         * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
925         * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
926         * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
927         * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
928         * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
929         * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
930         * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
931         * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
933 2003-05-30  H.J. Lu <hongjiu.lu@intel.com>
935         * genscripts.sh: Create tmpdir/libpath.exp.
937 2003-05-30  Nick Clifton  <nickc@redhat.com>
939         * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
940         with a test for a NULL bfd_for_interworking.
942 2003-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
944         * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
945         correctly for more recent versions of NetBSD.
946         (alpha*-*-netbsd*): Remove.
947         (i[3-7]86-*-netbsd*): Remove.
949 2003-05-29  Nick Clifton  <nickc@redhat.com>
951         * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
953 2003-05-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
955         * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
956         trap on pointer crops.
958 2003-05-21  Marcus Comstedt  <marcus@mc.pp.se>
960         * configure.tgt: Check for a target triplet of shl-...-netbsdelf
961         as well as shle-...-netbsdelf.
963 2003-05-16  Kelley Cook  <kelleycook@wideopenwest.com>
965         * configure.host: Accept i[3-7]86 variants.
966         * configure.tgt: Likewise.
968 2003-05-15  H.J. Lu <hongjiu.lu@intel.com>
970         * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
972 2003-05-09  Daniel Jacobowitz  <drow@mvista.com>
974         * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
975         (earmelfb.c, earmelfb_linux.c): New rules.
976         * Makefile.in: Regenerated.
977         * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
978         * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
980 2003-05-09  Nick Clifton  <nickc@redhat.com>
982         * ldlang.c (lang_size_sections_1): Default to generating a
983         fatal error message if a loadable section is not allocated
984         to a memory region when regions are defined.
986 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
988         * Makefile.am (em68hc11elf.c): Correct dependencies.
989         (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
990         * Makefile.in: Regenerate.
991         * emultempl/elf32.em (find_exp_assignment): Adjust for changed
992         bfd_elf_record_link_assignment name.
994 2003-05-07  Alexandre Oliva  <aoliva@redhat.com>
996         * ldmain.h (overflow_cutoff_limit): Declare.
997         * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
998         (reloc_overflow): Limit error messages based on it.
999         * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
1000         unlimited.
1002 2003-05-05  Alan Modra  <amodra@bigpond.net.au>
1004         * ldlex.l: Accept C style comments in version scripts.
1006 2003-04-28  H.J. Lu <hjl@gnu.org>
1008         * ldlang.c (lang_process): Add the relax finalize pass.
1010         * ldmain.c (main): Initialize link_info.relax_finalizing to
1011         FALSE.
1013 2003-04-24  Roland McGrath  <roland@redhat.com>
1015         * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
1016         If a name string is unknown, give an error rather than crashing later.
1018 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1020         * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
1021         eh8300hnelf.o, eh8300snelf.o and respective rules.
1022         * Makefile.in: Regenerate.
1023         * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
1024         * emulparams/h8300hn.sh: New
1025         * emulparams/h8300sn.sh: New
1026         * emulparams/h8300hnelf.sh: New
1027         * emulparams/h8300snelf.sh: New
1028         * scripttempl/h8300hn.sc: new
1029         * scripttempl/h8300sn.sc: new
1031 2003-04-23  H.J. Lu <hjl@gnu.org>
1033         * ldmain.c (link_callbacks): Initialize error_handler.
1035         * ldmisc.c (error_handler): New function.
1037         * ldmisc.h (error_handler): New prototype.
1039 2003-04-21  Stephane Carrez  <stcarrez@nerim.fr>
1041         * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
1042         * emulparams/m68hc11elfb.sh: Likewise.
1043         * emulparams/m68hc12elf.sh: Likewise.
1044         * emulparams/m68hc12elfb.sh: Likewise.
1046 2003-04-19  Stephane Carrez  <stcarrez@nerim.fr>
1048         * emultempl/m68hc1xelf.em: New file to generate far trampolines on
1049         68HC11 and 68HC12.
1050         (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
1051         generate.
1052         (LDEMUL_FINISH): Override to generate the trampolines after gc and
1053         linker relaxation.
1054         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
1055         stub file for trampolines.
1056         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
1057         --no-trampoline and --bank-window to control the memory bank window.
1059 2003-04-18  H.J. Lu <hjl@gnu.org>
1061         * ldfile.c (ldfile_add_library_path): Remove the unused
1062         variable.
1064 2003-04-18  Andrew Haley  <aph@cambridge.redhat.com>
1066         * scripttempl/xstormy16.sc (__data, __rdata): New.
1068 2003-04-16  Nick Clifton  <nickc@redhat.com>
1070         * scripttempl/xstormy16.sc: Add .jcr section mapping.
1072 2003-04-15  H.J. Lu <hjl@gnu.org>
1074         From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
1076         * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
1078 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
1080         * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
1081         * ld.texinfo: Likewise.
1083 2003-04-14  Alan Modra  <amodra@bigpond.net.au>
1085         From Prashanth Tamraparni <prashanth_t@in.ibm.com>
1086         * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
1087         other variants of crtbegin.o, crtend.o.
1088         (DTOR): Likewise.
1089         * scripttempl/crisaout.sc (ctors, dtors): Likewise.
1090         * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
1091         * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
1092         * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
1093         * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
1094         * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
1095         * scripttempl/mmo.sc (ctors, dtors): Likewise.
1096         * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
1098 2003-04-09   Dmitry Diky  <diwil@mail.ru>
1100         * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
1101         sections to respect C++  constructor/destructor. Add ctors/dtors
1102         start/stop definitions.
1103         * scripttempl/elf32msp430_3.sc: Likewise.
1105 2003-04-06  Nick Clifton  <nickc@redhat.com>
1107         * ld.texinfo (Options): Add a reminder of the target specific
1108         nature to the description of the i386 PE specific options, for
1109         readers who have not read all the way through the manual.
1111 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
1113         * configure.tgt: Fixed bug in list of targ_extra_emuls.
1114         * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
1115         cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
1116         * emulparams/tic3xcoff_onchip.sh: Ditto
1117         * emulparams/tic4xcoff.sh: Ditto
1118         * scripttempl/tic4xcoff.sc: Ditto
1120 2003-04-03  Nick Clifton  <nickc@redhat.com>
1122         * NEWS: Mention support for Xtensa architecture.
1124 2003-04-02  Nick Clifton  <nickc@redhat.com>
1126         * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
1128 2003-04-01  Danny Smith <dannysmith@users.sourceforge.net>
1130         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1131         Don't call pe_dll_build_section() if link_info.relocateable.
1132         (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
1133         if link_info.relocateable.
1135 2003-04-01  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
1137         * pe-dll.c (process_def_file): Don't create an export
1138         section if there are no exports and we're building an exe
1139         (pe_dll_build_sections): Ditto
1140         (pe_dll_fill_sections): Conditionalize setting
1141         abfd->dll true on info->shared
1142         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
1143         If i386pe or armpe, call pe_dll_build_section()
1144         for both exe's and dll's, not just dll's.
1145         (gld_${EMULATION_NAME}_finish): For all targets except
1146         shpe and mipspe, call pe_dll_fill_sections() for both
1147         exe's and dll's, not just dll's.
1149 2003-04-02  Bob Wilson  <bob.wilson@acm.org>
1151         * emulparams/xtensa-config.sh: Remove comment indicating that this is
1152         a generated file.
1154 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
1156         * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
1157         (eelf32xtensa.c): New target.
1158         * Makefile.in: Regenerate.
1159         * configure.tgt: Handle xtensa-*-*.
1160         * gen-doc.texi: Set XTENSA variable.
1161         * ld.texinfo: Set XTENSA variable.  Add new Xtensa node.
1162         * emulparams/elf32xtensa.sh: New file.
1163         * emulparams/xtensa-config.sh: Likewise.
1164         * emultempl/xtensaelf.em: Likewise.
1165         * scripttempl/elfxtensa.sc: Likewise.
1167 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
1169         * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
1170         targ_extra_libpath.  Add elf64ppc to ppc targ_extra_libpath
1171         if --enable-64-bit-bfd.
1173 2003-04-01  Nick Clifton  <nickc@redhat.com>
1175         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
1176         note section.
1177         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
1178         name of note section.
1180 2003-03-31  Alexandre Oliva  <aoliva@redhat.com>
1182         * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
1183         --section-start.
1185 2003-03-31  David Heine  <dlheine@suif.stanford.edu>
1187         * ldfile.c (ldfile_add_library_path): Always allocate space for
1188         the filename.
1189         * ldlang.c (lang_register_vers_node): Free the node if it cannot
1190         be used.
1191         * ldmain.c (set_scripts_dir): Always free the constructed
1192         directory name.
1193         (add_keepsyms_file): Fix memory leak.
1194         * ldmisc.c (vfinfo): Likewise.
1195         * lexsup.c (parse_args): Likewise.
1197 2003-03-25  Stan Cox   <scox@redhat.com>
1198             Nick Clifton  <nickc@redhat.com>
1200         Contribute support for Intel's iWMMXt chip - an ARM variant:
1202         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
1203         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
1204         * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
1205         (.bss): Likewise.
1207 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
1209         * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
1210         * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
1211         (main): Initialize them.
1212         * ldfile.c: Include pathnames.h.
1213         (is_sysrooted_pathname): New.
1214         (ldfile_add_library_path): Use it.
1215         (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.  Don't
1216         search_dirs if given an absolute pathname.
1217         (ldfile_open_file): Issue error message for sysrooted
1218         absolute pathnames.
1219         * Makefile.am: Updated dependencies.
1220         * Makefile.in: Rebuild.
1222 2003-03-24  Daniel Néri  <dne@mayonnaise.net>
1224         * ld.texinfo: Rename all occurances of C54X to TIC54X.
1226 2003-03-19  Andreas Schwab  <schwab@suse.de>
1228         * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
1229         eof.
1231 2003-03-18  Danny Smith  <dannysmith@users.sourceforge.net>
1233         * deffilep.y (opt_base): If no number given, set to default
1234         (-1), not 0.
1236 2003-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
1238         * deffilep.y (def_import): Use default extension of "dll"
1239         if no extension provided in parsed IMPORT definition.
1241         * deffilep.y (def_lex): Revert 2003-03-12 change.
1242         (dot_name): New id type and rule.
1243         (expline): Use instead of ID.
1244         (opt_equal_name): Likewise.
1246 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1248         * deffilep.y (def_lex): Accept '.' as valid non-lead char.
1250 2003-03-07  Christopher Faylor  <cgf@redhat.com>
1252         * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
1253         apparent accidental removal on 2003-01-06.
1255 2003-03-04  Dmitry Diky  <diwil@mail.ru>
1257         * Makefile.am: Add new devices x1122 x1132 emulation
1258         * configure.tgt: Likewise.
1259         * Makefile.in: Regenerate.
1260         * emulparams/msp430x1122.sh: New file.
1261         * emulparams/msp430x1132.sh: New file.
1263 2003-03-03  Alexandre Oliva  <aoliva@redhat.com>
1265         * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
1266         well.
1268         * ldfile.h (struct search_dirs): Added sysrooted field.
1269         * ldlang.h (struct lang_input_statement_struct): Likewise.
1270         * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
1271         (ldfile_open_file_search): Look for sysrooted filename starting
1272         with / in ld_sysroot instead of in the current directory.  Clear
1273         sysrooted flag if it's found in the current directory.  Set it
1274         from the search directory's sysrooted flag where it is found
1275         otherwise.
1276         * ldlang.c (ldlang_sysrooted_script): New static variable.
1277         (new_afile): Mark search_file_enums as sysrooted if
1278         ldlang_sysrooted_script.
1279         (load_symbols): Set ldlang_sysrooted_script according to the
1280         script's sysrooted field while processing it.
1281         * ld.texinfo: Document INPUT behavior in sysroot.
1283 2003-03-02  Danny Smith  <dannysmith@users.sourceforge.net>
1285         * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
1287 2003-03-03  Alan Modra  <amodra@bigpond.net.au>
1289         * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
1290         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1291         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
1292         PARSE_AND_LIST_EPILOGUE): Don't define.
1293         * emultempl/alphaelf.em: New file.
1295 2003-03-01  Alan Modra  <amodra@bigpond.net.au>
1297         * ldemul.c: Include getopt.h.
1298         * emultempl/elf32.em: Include getopt.h earlier.
1299         * emultempl/ticoff.em: Likewise.
1301 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
1303         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
1304         support when scripts read from files.
1306 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
1308         * ldemul.c (ldemul_parse_args): Return FALSE by default.
1309         * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
1310         comment.
1312         * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
1313         (ldemul_parse_args): Return bfd_boolean.  Formatting.
1314         * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
1315         (ldemul_parse_args): Adjust.
1316         (struct ld_emulation_xfer_struct): Add add_options and handle_option.
1317         Return bfd_boolean from parse_args.
1318         * lexsup.c (parse_args): Malloc shortopts, longopts and
1319         really_longopts.  Call ldemul_add_options and ldemul_handle_option.
1320         * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
1321         gld${EMULATION_NAME}_parse_args.
1322         (gld${EMULATION_NAME}_handle_option): Likewise.
1323         (ld_${EMULATION_NAME}_emulation): Adjust initializer.
1324         * emultempl/armcoff.em: As for aix.em, but remove parse_args.
1325         * emultempl/beos.em: Likewise.
1326         * emultempl/pe.em: Likewise.
1327         * emultempl/ticoff.em: Likewise.
1328         * emultempl/elf32.em: Likewise.  Don't duplicate long options either.
1329         (gld${EMULATION_NAME}_add_sysroot): Prototype.
1330         * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
1331         options.
1332         * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1333         * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1334         * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1335         * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
1336         initializer.
1337         * emultempl/generic.em: Likewise.
1338         * emultempl/gld960.em: Likewise.
1339         * emultempl/gld960c.em: Likewise.
1340         * emultempl/linux.em: Likewise.
1341         * emultempl/lnk960.em: Likewise.
1342         * emultempl/m68kcoff.em: Likewise.
1343         * emultempl/mipsecoff.em: Likewise.
1344         * emultempl/sunos.em: Likewise.
1345         * emultempl/vanilla.em: Likewise.
1346         * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
1348 2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
1350         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
1351         memory allocation error.
1353         * Makefile.am (ldmain.o): Define TOOLBINDIR.
1354         * Makefile.in: Rebuilt.
1355         * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
1357 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
1359         * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
1360         call os_region_check when it is set.
1361         (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
1362         lang_size_sections_1.
1363         (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
1364         only for the last call, not on every relaxation iteration.
1365         * ldlang.h (lang_size_sections): Update prototype.
1366         * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
1367         to lang_size_sections.
1368         (pe_exe_fill_sections): Likewise.
1369         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
1370         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1371         * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
1372         (ppc_layout_sections_again): Likewise.
1374 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
1376         * gen-doc.texi: Set ARM and HPPA variables.
1377         * ld.texinfo: Fix typos and obvious texinfo mistakes.  Make section
1378         title capitalization more consistent.  Add missing menu entries for
1379         machine-specific sections and conditionalize them consistently.
1380         Conditionalize text that is irrelevant when SingleFormat is set.
1381         Add @group divisions to improve page breaks in long examples.
1382         Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
1383         is correct.  Remove "FIXME" comment about not using
1384         @raisesections/@lowersections.  Use @raisesections/@lowersections
1385         consistently for machine-specific sections.  Change to be more polite
1386         about poor bug reports.  Replace FDL appendix with include of fdl.texi.
1387         Move WIN32 node to match its order in the menus.
1388         * fdl.texi: New file.
1390 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
1392         * configure.in (TARGET_SYSTEM_ROOT): Set default to
1393         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
1394         '${exec_prefix}' (in addition to the expansion thereof) as
1395         relocatable.
1396         * configure: Rebuilt.
1398 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
1400         * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
1402 2003-02-20  Harri Porten  <porten@kde.org>
1404         * ldgram.y (vers_defns): Allow optional trailing semicolon in
1405         EXTERN NAME block;
1407 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
1409         * emultempl/ppc32elf.em: New file.
1410         * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1411         * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1412         (eelf32lppcnto.c): Likewise.
1413         (eelf32lppcsim.c): Likewise.
1414         (eelf32ppcnto.c): Likewise.
1415         (eelf32ppc.c): Likewise.
1416         (eelf32ppc_fbsd.c): Likewise.
1417         (eelf32ppcsim.c): Likewise.
1418         (eelf32ppclinux.c): Likewise.
1419         * Makefile.in: Regenerate.
1421 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
1423         * ld.texinfo: Remove spaces between @samp and opening brace.
1425 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
1427         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1428         hash creator.
1429         (ppc_before_allocation): Don't do optimizations if wrong hash table.
1430         (gld${EMULATION_NAME}_finish): Ditto.
1432 2003-02-17  Nick Clifton  <nickc@redhat.com>
1434         * ldmain.c (main) Default allow_shlib_undefined to true.
1435         * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1436         (parse_args): Parse the new switch.
1437         * ld.texinfo: Document new switch and default behaviour of
1438         allowing undefined symbols in shared libraries.
1440 2003-02-11 Dmitry Diky  <diwil@mail.ru>
1442         * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1443         * scripttempl/elf32msp430_3.sc: Likewise.
1445 2003-02-11  Uwe Stieber  <uwe@wwws.de>
1447         * configure.tgt: Add support for kaOS as cross build target
1448         system.
1450 2003-02-10  John Daivid Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1452         * hppaelf.em (group_size): Change default back to 1.
1454 2003-02-09  Alan Modra  <amodra@bigpond.net.au>
1456         * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1458 2003-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1460         * hppaelf.em (group_size): Change default to -1.
1462 2003-02-07  Nick Clifton  <nickc@redhat.com>
1464         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1465         opt.
1466         (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1467         no-pipeline-knowledge.  This will prevent the getopt package from
1468         thinking that there are any shorter abbreviations for
1469         --no-pipeline-knowledge.
1471 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
1473         * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1474         which already have it.  Avoid duplicates.
1476 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
1478         * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1479         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1480         * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1482 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
1484         * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1485         call ppc64_elf_tls_optimize.
1487 2003-02-03  Daniel Jacobowitz  <drow@mvista.com>
1489         * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1490         outside of GNU/Linux conditional.
1492 2003-01-28  Ralf Habacker  <ralf.habacker@freenet.de>
1494         * deffilep.y (def_get_module): New function: locate an already
1495         added module.
1496         * deffile.h (def_get_module): New prototype.
1497         * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1498         a dll multiple times.
1500 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
1502         * emultempl/sh64elf.em: Include elf32-sh64.h.
1503         (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1504         sh64_elf_section_data.
1505         (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1507 2003-01-23  Wu Yongwei  <adah@netstd.com>
1509         * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1510         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1511         cross-80th-column-margin "an" to the next line.
1513 2003-01-21  Nick Clifton  <nickc@redhat.com>
1515         * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1516         * emulparams/tic3xcoff_onchip.sh: ...this.
1517         * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1518         * Makefile.in: Regenerate.
1520 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
1522         * configure.tgt: Handle i[3456]86-*-aros*
1524 2003-01-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
1526         * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1527         * Makefile.in: Regenerate
1528         * configure.tgt: Added extra target emulations
1529         * emulparams/tic3xcoff.sh: Remove old settings
1530         * emulparams/tic4xcoff.sh: Ditto
1531         * emulparams/tic3xcoff-onchip.sh: Added new
1532         * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1533         * scripttempl/tic3xcoff.sc: Remove
1535 2003-01-17  Andreas Jaeger  <aj@suse.de>
1537         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1538         skip ':'.
1540 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
1542         * Makefile.in: Regenerate.
1544 2002-01-14  Charles Wilson  <cwilson@ece.gatech.edu>
1546         * ld.texinfo (node WIN32): Some clarifications
1547         and formatting fixups.
1549 2003-01-09  Chris Demetriou  <cgd@broadcom.com>
1551         * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1552         order, and handle (ignore) -mips32r2.
1554 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
1556         * ldmain.c (main): Make sure ld_sysroot is initialized.
1558 2003-01-06  Daniel Jacobowitz  <drow@mvista.com>
1560         * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1562         * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1563         (GENSCRIPTS): Add @use_sysroot@.
1564         * Makefile.in: Regenerated.
1565         * configure.host: Move setting of NATIVE_LIB_DIRS to...
1566         * configure.tgt: ... here.  Use ${target} instead of ${host}
1567         for NATIVE_LIB_DIRS.
1568         * configure.in: Add --with-sysroot.
1569         * configure: Regenerated.
1570         * genscripts.sh: Accept use_sysroot option.  Set new variables
1571         NATIVE and USE_LIBPATH.  Prepend "=" to directory names if
1572         $use_sysroot.  Don't search $tool_lib if $use_sysroot.
1573         * ldfile.c (ldfile_add_library_path): Handle leading '='.
1574         * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1575         (ld_sysroot): New variable.
1576         (main): Initialize ld_sysroot.
1577         * ldmain.h (ld_sysroot): New extern.
1578         * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1579         searching $EMULATION_LIBPATH.
1580         (gld${EMULATION_NAME}_add_sysroot): New function.
1581         (gld${EMULATION_NAME}_check_ld_so_conf): Use it.  Honor ld_sysroot.
1582         (gld${EMULATION_NAME}_after_open): Likewise.  Only search
1583         environment variables if $NATIVE.
1584         * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1585         * NEWS: Mention --with-sysroot.
1587         * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1588         instead of setting LIB_PATH.
1589         * emulparams/elf32ppc.sh: Likewise.
1590         * emulparams/elf64_s390.sh: Likewise.
1591         * emulparams/elf64_sparc.sh: Likewise.
1592         * emulparams/elf64ppc.sh: Likewise.
1593         * emulparams/elf_x86_64.sh: Likewise.
1595         * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1596         * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1598 2003-01-03  Charles Wilson  <cwilson@ece.gatech.edu>
1600         * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1602 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
1604         * Makefile.am (ldmain.o): Pass BINDIR.
1605         * Makefile.in: Regenerated.
1606         * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1607         search path.
1609 2003-01-02  Ben Elliston  <bje@redhat.com>
1611         * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1612         (eelf32iq2000.c): New target.
1613         * Makefile.in: Regenerate.
1614         * configure.tgt: Handle iq2000-*-elf.
1615         * emulparams/elf32iq10.sh: New file.
1616         * emulparams/elf32iq2000.sh: New file.
1617         * scripttempl/iq2000.sc: New file.
1619 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1621         * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1622         and _pei386_runtime_relocator to the exclude list.
1624 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
1626         * ldfile.c: Fix comment typos.
1627         * ldlang.c: Likewise.
1628         * mri.c: Likewise.
1629         * pe-dll.c: Likewise.
1631 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
1633         Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1634         * Makefile.am (ld.1): Depend on configdoc.texi
1635         and ldver.texi.
1636         * Makefile.in: Regenerated.
1638 2002-12-24  Dmitry Diky  <diwil@mail.ru>
1640         * Makefile.am: Add msp430 target.
1641         * configure.tgt: Likewise.
1642         * Makefile.in: Regenerate.
1643         * emulparams/msp430x???.sh: New files.  Linker script parameters
1644         for various msp430 configurations.
1645         * gen-doc.texi: Enable msp430 documenation.
1646         * ld.texinfo: Document msp430 sections.
1647         * scripttempl/elf32msp430.sc: New file.  Linker script for msp430.
1648         * scripttempl/elf32msp430_3.sc: New file.  Linker script for msp430.
1650 2002-12-30  Ralf Habacker  <Ralf.Habacker@freenet.de>
1651             Charles Wilson  <cwilson@ece.gatech.edu>
1653         * config.in (HAVE_REALPATH): New entry.
1654         (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1656 2002-12-30  Ralf Habacker  <ralf.habacker@freenet.de>
1658         * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1659         symbols'.
1661 2002-12-23  Alan Modra  <amodra@bigpond.net.au>
1663         * ldmain.c (main): Init "strip_discarded".
1664         * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1665         (OPTION_NO_STRIP_DISCARDED): Define.
1666         (ld_options): Add "strip-discarded" and "no-strip-discarded".
1667         (parse_args): Handle them.
1669 2002-12-23  Nick Clifton  <nickc@redhat.com>
1671         * ld.h (struct args_type): Add new field
1672         'accept_unknown_input_architecture'.
1673         * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1674         to false.
1675         * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1676         bfd_arch_get_compatible.
1677         * ldfile.c (ldfile_try_open_bfd): Likewise.
1678         * lexsup.c (ld_options): Add new command line switch
1679         --accept-unknown-input-architecture and its inverse.
1680         (parse_args): Handle --accept-unknown-input-architecture.
1681         * ld.texinfo: Document new linker option.
1682         * NEWS: Mention new linker option.
1684 2002-12-20  Alan Modra  <amodra@bigpond.net.au>
1686         * ldmain.c (main): Re-order link_info initialization.  Init all
1687         fields.
1689 2002-12-19  Charles Wilson  <cwilson@ece.gatech.edu>
1691         * ld.texinfo: Clarify and extend the documentation
1692         in the Machine Dependent, WIN32 section.
1694 2002-12-18  Ralf Habacker  <ralf.habacker@freenet.de>
1696         * ld.texinfo: Add win32 machine depending section.
1697         * gen-doc.texi: Enable win32 machine depending section.
1699         * configure.host: Add win32 library search path.
1701 2002-12-17  Ralf Habacker  <ralf.habacker@freenet.de>
1703         * emultempl/pe.em (pe_find_data_imports): Don't search for data
1704         import when auto-import is disabled.
1706 2002-12-17  Danny Smith  <dannysmith@users.sourceforge.net>
1708         * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1709         account for trailing '\0'.
1711 2002-12-17  Nick Clifton  <nickc@redhat.com>
1713         * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1714         so that it is not confused with -c.
1716 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
1717             Charles Wilson  <cwilson@ece.gatech.edu>
1719         * configure.in: Add check for realpath function.
1720         * configure: Regenerate.
1721         * config.in: Regenerate.
1722         * aclocal.m4: Regenerate.
1723         * deffile.h: Add .data field to def_file_import
1724         structure.
1725         * pe-dll.c (pe_proces_import_defs): Use .data field of
1726         def_file_import structure to initialize flag_data field of
1727         def_file_export structure.
1728         (pe_implied_import_dll): New variables exp_funcbase and
1729         [data|bss]_[start|end].  Use DLL's internal name to set dll_name,
1730         not filename (which may be a symlink).  Scan the sections and
1731         initialize [data|bss]_[start|end].  When scanning the export
1732         table, skip _nm_ symbols, and mark any symbols whose rva indicates
1733         that it is in the .bss or .data sections as data.
1734         * sysdep.h: Include limits.h and sys/param.h, and define
1735         LD_PATHMAX as appropriate.  Also define REALPATH as realpath if it
1736         exists, NULL otherwise.
1737         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1738         pe_process_import_defs before pe_find_data_imports, so that
1739         auto-import will check the virtual implib as well as "real"
1740         implibs.
1741         (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1742         symlinks to their target; check that the target's extension is
1743         .dll before calling pe_implied_import_dll(), not the filename
1744         itself (which may be a symlink).
1746 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
1748         * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1749         (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1750         list too.
1752 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
1754         * ldlang.h: Formatting.
1756 2002-12-07  Alan Modra  <amodra@bigpond.net.au>
1758         * ldlang.c (init_os): Ensure sections mentioned in load_base
1759         are initialized.
1761 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
1763         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1764         load_base for orphans that follow a section with load_base set.
1766 2002-12-01  H.J. Lu <hjl@gnu.org>
1768         * ld.texinfo: Remove the extra `;' in sample version script.
1770 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
1772         * configure.host: Correct dynamic-linker for powerpc64 hosts.
1774         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1775         * Makefile.in: Regenerate.
1777         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1778         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1779         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1780         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1781         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1782         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1783         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1784         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1785         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1786         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1787         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1788         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
1789         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
1791 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
1793         * configure.host: Fix generic FreeBSD configuration entry.
1795 2002-11-27  H.J. Lu <hjl@gnu.org>
1797         * ld.texinfo: Add the missing `;' to sample version scripts.
1799 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
1801         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1803 2002-11-14  Egor Duda  <deo@logos-m.ru>
1805         * ldmain.c (main): Make runtime relocs disabled by default. Remove
1806         assignment which has no effect.
1807         * pe-dll.h (pe_create_import_fixup): Change prototype.
1808         * pe-dll.c (make_runtime_pseudo_reloc): New function.
1809         (pe_create_runtime_relocator_reference): Ditto.
1810         (pe_create_import_fixup): Handle relocations with non-zero addends.
1811         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1812         --disable-runtime-pseudo-reloc.
1813         (make_import_fixup): Handle relocations with non-zero addends. Create
1814         an external reference to _pei386_runtime_relocator symbol if at least
1815         one pseudo reloc was created.
1816         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1817         --disable-runtime-pseudo-reloc options.
1819 2002-11-12  Earl Chew <earl_chew@agilent.com>
1821         * ldlang.c (lang_add_section): Discard debugging sections that have
1822         been marked SEC_EXCLUDE.
1824 2002-11-12  Nick Clifton  <nickc@redhat.com>
1826         * configure.in (ALL_LINGUAS): Add da.
1827         * configure: Regenerate.
1828         * po/da.po: New Danish translation.
1830 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
1832         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1833         (LDEMUL_BEFORE_ALLOCATION): Define.
1834         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1835         linking.
1836         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1838 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1840         * configure.tgt (LIB_PATH): Default to searching w32api directory under
1841         cygwin.
1843 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
1845         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1846         of restricted auto-export libs.
1848 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
1850         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1851         creative library naming instances like, e.g., libstdc++-2.a.
1853 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
1855         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1856         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1858 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
1860         * deffilep.y (def_lex): Handle '@' as first character of an ID.
1861         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1862         (make_one): Don't prefix decorated fastcall symbols with '_'.
1863         (pe_process_import_defs): Likewise.
1864         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1865         symbols to cdecl names or vise-versa.
1867 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
1869         * pe-dll.c (process_def_file): Handle fastcall symbols when
1870         generating undecorated aliases.  Don't prefix decorated fastcall
1871         symbols with '_'.
1872         (fill_exported_offsets): Don't prefix decorated fastcall symbols
1873         with '_'.
1875 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
1877         * emultempl/aix.em: Use include <> for generated headers.
1878         * emultempl/beos.em: Likewise.
1879         * emultempl/elf32.em: Likewise.
1880         * emultempl/pe.em: Likewise.
1881         * ldctor.c: Likewise.
1882         * ldexp.c: Likewise.
1883         * ldfile.c: Likewise.
1884         * ldlang.c: Likewise.
1885         * ldlex.c: Likewise.
1886         * ldlex.l: Likewise.
1887         * ldmain.c: Likewise.
1888         * ldmisc.c: Likewise.
1889         * ldwrite.c: Likewise.
1890         * lexsup.c: Likewise.
1891         * mri.c: Likewise.
1892         * pe-dll.c: Likewise.
1894 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
1896         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1897         sections into .rel{,a}.dyn.
1899 2002-10-23  Nick Clifton  <nickc@redhat.com>
1901         * lexsup.c (OPTION_NO_OMAGIC): Define.
1902         (ld_options): Add "no-omagic" option.
1903         (parse_args): Parse --no-omagic.
1904         * ld.texinfo: Document --no-omagic.
1905         * NEWS: Mention new option.
1907 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
1909         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1910         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1912 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
1914         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1915         emulation name.  Set LIB_PATH only for native tools, and
1916         search the ABI-specific versions of NATIVE_LIB_DIRS before the
1917         .../lib variants, not instead of them.  Mostly copied from...
1918         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
1919         * emulparams/elf64bmip-defs.sh: Backed out.
1920         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1921         * emulparams/elf64btsmip.sh: Likewise.
1922         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1923         TEXT_DYNAMIC): Removed.
1925 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
1927         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1928         (GENERATE_SHLIB_SCRIPT): Set to yes.
1929         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1930         * emulparams/elf32bmipn32.sh: here.
1931         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1932         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1933         * emulparams/elf64bmip-defs.sh: New file.  Extend
1934         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1935         * emulparams/elf64bmip.sh: Bring in definitions from
1936         elf64bmip-defs.sh.
1937         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1938         settings.
1939         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1940         * emulparams/elf64btsmip.sh: Bring in definitions from
1941         elf64bmip-defs.sh.
1942         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1943         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1945 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
1947         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1948         (s390-*-linux*): Add elf64_s390 emulation if want64.
1949         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1950         genscript.sh changes.
1951         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1952         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1954 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
1956         * ldlang.c (load_symbols): Revert last change.
1958 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
1960         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1961         just_syms_flag.
1962         (lang_reasonable_defaults): Don't compare against false.
1963         (size_input_section): Likewise.
1964         (lang_size_sections_1): Likewise.
1965         (lang_do_assignments): Likewise.
1966         (lang_add_output): Likewise.
1968         * Makefile.am: Run "make dep-am".
1969         * Makefile.in: Regenerate.
1970         * ldver.c: #include "bfdver.h".
1972 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
1974         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1975         .finiN section.
1976         * scripttempl/elfm68hc12.sc: Likewise.
1978 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
1980         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1982         * ldgram.y (memory_spec): Provide empty action.
1983         (section <NAME>): Likewise.
1985 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
1987         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1988         they have OUTPUT_FORMAT not matching actual output format.
1989         * ldlang.c (lang_get_output_target): New function.
1990         (open_output): Use it.
1991         * ldlang.h (lang_get_output_target): New prototype.
1993 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
1995         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1996         when orphan is .rel, .rela when orphan is .rela.
1997         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1998         first.  Remove outsecname var.
2000 2002-10-09  Richard Shann <richard.shann@superh.com>
2001             Stephen Clarke <stephen.clarke@superh.com>
2003         * Makefile.am: Add eshelf32_linux.o and
2004         eshlelf32_linux.o, new emulations for sh64 Linux.
2005         * Makefile.in: Regenerate.
2006         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
2007         * emulparams/shelf32_linux.sh: New file.
2008         * emulparams/shlelf32_linux.sh: New file.
2010 2002-10-08  H.J. Lu <hjl@gnu.org>
2012         * ldlang.c (lang_file_exist): Removed.
2013         (new_afile): Revert the last change.
2014         * ldlang.h (lang_file_exist): Removed.
2015         * lexsup.c (parse_args): Revert the last change.
2017 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
2019         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
2020         auto-import symbols.
2021         (make_one): Create _nm_<symbol> for data only.
2023 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
2025         * ldlang.c (lang_file_exist): New function.
2026         (new_afile): Abort if the filename to be added matches the linker
2027         output filename.
2028         * ldlang.h: Add prototype for lang_file_exist.
2029         * lexsup.c (parse_args): Abort if the output filename matches
2030         one of the input filenames.
2032 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
2034         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
2036 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
2038         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
2039         * scripttempl/elfm68hc11.sc: Likewise.
2040         * scripttempl/elfm68hc12.sc: Likewise.
2042         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
2043         reloc sections just before .rel.plt/.rela.plt.
2044         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
2045         Only put loadable reloc sections in hold_rel.
2047 2002-09-29  H.J. Lu <hjl@gnu.org>
2049         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
2051 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
2053         From "Anita Kulkarni" <AnitaK@kpit.com>
2054         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
2055         sections.
2057 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
2059         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
2060         TARGET_PAGE_SIZE.
2061         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
2062         SEGMENT_SIZE alignment.
2063         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
2064         (SEGMENT_SIZE): Define.
2066         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
2067         (fold_binary): Correct abs - non-abs case.
2068         (fold_trinary): New.  Split out from exp_fold_tree.
2070 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
2072         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
2073         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
2074         for start of .data, instead align up to 256M boundary.
2075         * scripttempl/aix.sc: Likewise.
2077 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
2079         * scripttempl/i386go32.sc: Handle bss unique sections.
2081 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
2083         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
2085 2002-09-17  Stan Cox  <scox@redhat.com>
2087         * emulparams/elf32bmipn32-defs.sh: New file.
2088         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
2089         * emulparams/elf32btsmipn32.sh: Likewise.
2090         * emulparams/elf64bmip.sh: Likewise.
2091         * emulparams/elf64btsmip.sh: Likewise.
2093 2002-09-16  Bruno Haible  <bruno@clisp.org>
2095         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
2096         elf32-i386-freebsd.
2097         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
2098         elf64-alpha-freebsd.
2100 2002-09-11  Nick Clifton  <nickc@redhat.com>
2102         * NEWS: New TI port supports both C4x and C3x series of DSPs.
2104         * po/tr.po: Updated Turkish translation.
2106 2002-09-06  Jeffrey A Law  (law@redhat.com)
2108         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
2110 2002-09-02  Nick Clifton  <nickc@redhat.com>
2112         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
2113         __ep.
2114         * emulparams/v850.sh (TEMPLATE_NAME): Define.
2116 2002-08-30  Nick Clifton  <nickc@redhat.com>
2118         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
2119         used.  Change INSN to start at 0x01000000 and extend for
2120         256K (ignoring holes).  Start the STACK on a word aligned
2121         boundary.
2122         (.rodata): Start it at the READONLY_START_ADDR.
2124 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
2126         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
2128 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
2130         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
2131         added makefile targets for this file.
2132         * Makefile.in: Regenerate.
2133         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
2134         * NEWS: Mention new port.
2136 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2138         * emulparams/tic3xcoff.sh: New file.
2139         * emulparams/tic4xcoff.sh: New file.
2140         * scripttempl/tic3xcoff.sc: New file.
2141         * scripttempl/tic4xcoff.sc: New file.
2143 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
2145         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
2146         strtoul and strtoull with bfd_scan_vma.
2147         (gld${EMULATION_NAME}_read_file): Likewise.
2149 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
2151         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
2153 2002-08-27  Egor Duda  <deo@logos-m.ru>
2155         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
2156         Add symbols for application to access them.
2158 2002-08-27  Nick Clifton  <nickc@redhat.com>
2160         * emultempl/armelf.em: Revert this patch, it is not needed.
2162         2002-08-22  Adam Nemet  <anemet@lnxw.com>
2164 2002-08-20 Dan Kegel <dank@kegel.com>
2166         * configure.in: added --with-lib-path argument to ld's configure
2167         to set LIB_PATH.
2168         * NEWS: Document new switch.
2169         * README: Mention new switch.
2170         * configure: Regenerate.
2171         * Makefile.in: Regenerate.
2173         Based on this patch:
2174         2001-04-25  Christopher Faylor <cgf@cygnus.com>
2176         * Makefile.in (LIB_PATH): Make configurable.
2177         (GENSCRIPTS): Set LIB_PATH in environment.
2178         * configure.in: Substitute LIB_PATH.
2180 2002-08-22  Adam Nemet  <anemet@lnxw.com>
2182         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
2183         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
2184         depending on the type of the function.
2185         (arm_elf_convert_thumb_symbol_to_address): New function.
2187 2002-08-22  Graeme Peterson  <gp@qnx.com>
2189         * Makefile.am: Add esh{l}elf_nto.o files.
2190         * Makefile.in: Regenerate.
2191         * configure.tgt: Add support for sh-**-nto* targets.
2192         * emulparams/shelf_nto.sh: New file.
2193         * emulparams/shlelf_nto.sh: New file.
2195 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2197         * ldlang.c (offsetof): Define if not defined.
2199 2002-08-14  H.J. Lu <hjl@gnu.org>
2201         * configure.tgt: Always enable 64bit emulations for 32bit
2202         Linux/mips.
2204 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
2206         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
2207         (MAXPAGESIZE): Set to 1.
2209         * ld.h (ALIGN_N): Delete.
2210         * ldexp.h (align_n): Declare.
2211         * ldexp.c (align_n): New function.
2212         (fold_binary): Use align_n instead of ALIGN_N.
2213         (exp_fold_tree): Likewise.
2214         * ldlang.c (lang_size_sections_1): Likewise.
2215         (lang_one_common): Likewise.
2216         * ld.texinfo (ALIGN): Remove power of 2 restriction.
2218 2002-07-31  Graeme Peterson  <gp@qnx.com>
2220         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
2221         * Makefile.am: Add eelf32{l}ppcnto.o files.
2222         * Makefile.in: Regenerate.
2223         * emulparams/elf32lppcnto.sh: New file.
2224         * emulparams/elf32ppcnto.sh: New file.
2226 2002-08-07  H.J. Lu <hjl@gnu.org>
2228         * ld.texinfo: Document --no-undefined-version.
2230         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
2231         `script.' fields to 0.
2233         * ldmain.c (main): Initialize the allow_undefined_version to
2234         true.
2236         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
2237         (ld_options): Add --no-undefined-version.
2238         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
2240 2002-08-07  Nick Clifton  <nickc@redhat.com>
2242         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
2243         an interworking bfd if there are input bfds. (107501)
2245 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
2247         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
2248         2002-05-10 change.
2250 2002-08-01  Nick Clifton  <nickc@redhat.com>
2252         * emulparams/armelf.sh: Revert previous delta.
2253         * scripttempl/elf.sc: Revert previous delta.
2255 2002-07-31  H.J. Lu <hjl@gnu.org>
2257         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
2258         --enable-64-bit-bfd.
2260 2002-07-31  H.J. Lu <hjl@gnu.org>
2262         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
2263         64bit BFD is selected.
2265 2002-07-31  H.J. Lu <hjl@gnu.org>
2267         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
2268         if 64bit BFD is selected.
2270 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2272         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
2273         link_info.common_skip_ar_aymbols.
2274         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
2276         * ldmain.c (main): Initialize new field
2277         link_info.common_skip_ar_aymbols.
2279 2002-07-31  Adam Nemet  <anemet@lnxw.com>
2281         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
2282         to .plt.thumb.
2283         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
2284         used.
2286 2002-07-31  Nick Clifton  <nickc@redhat.com>
2288         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2289         of the PDP-11 and 2.11BSD a.out support.
2291 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2293         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
2294         for n32 ABI support.
2295         * Makefile.in: Regenerate.
2296         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
2297         n32 ABI emulations for these 64 bit targets.
2298         * emulparams/elf32bmipn32.sh: Expand comment.
2299         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
2300         n32 ABI.
2301         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
2303 2002-07-30  Graeme Peterson  <gp@qnx.com>
2305         * configure.tgt: Add support for arm-*-nto target.
2306         * Makefile.am: Add earmnto.o file.
2307         * Makefile.in: Regenerate.
2308         * NEWS: Mention port of ARM support to QNX.
2309         * emulparams/armnto.sh: New file.
2311 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
2313         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
2314         for relocatable link.
2315         (lang_size_sections_1): Don't make .tbss zero size for relocatable
2316         link.
2318 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
2320         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
2321         (STACK_ADDR): New.
2323 2002-07-25  Nick Clifton  <nickc@redhat.com>
2325         * po/sv.po: Updated Swedish translation.
2326         * po/es.po: Updated Spanish translation.
2327         * po/fr.po: Updated French translation.
2329 2002-07-24  Nick Clifton  <nickc@redhat.com>
2331         * po/sv.po: Updated Swedish translation.
2332         * po/es.po: Updated Spanish translation.
2334 2002-07-23  Nick Clifton  <nickc@redhat.com>
2336         * po/fr.po: Updated French translation.
2338 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
2340         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2341         bomb on /DISCARD/ input section.
2342         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2343         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2345 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
2347         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
2348         output section.
2350 2002-07-16  Denis Chertykov  <denisc@overta.ru>
2351             Nick Clifton  <nickc@redhat.com>
2352             Frank Ch. Eigler  <fche@redhat.com>
2353             John Healy  <jhealy@redhat.com>
2355         * configure.tgt: Add support for ip2k-elf.
2356         * Makefile.am: Add support for ip2k-elf.
2357         * Makefile.in: Regenerate.
2358         * emulparams/elf32ip2k.sh: New file.
2359         * scripttempl/ip2k.sc: New file
2360         * NEWS: Mention support for new port.
2362 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
2364         * NEWS: Add 'Changes in 2.13'.
2366 2002-07-14  H.J. Lu <hjl@gnu.org>
2368         * ld.texinfo: Document a .symver takes precedence over a
2369         version script.
2371 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
2373         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
2374         (COMMONPAGESIZE): Define.
2376 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
2378         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
2380 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
2382         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
2383         powerpc-*-openbsd* and sparc64-*-openbsd*.
2384         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
2385         * Makefile.in: Regenerate.
2386         * emulparams/hppaobsd.sh: New file.
2388 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
2390         * ldlang.c (print_wild_statement): Fix output formatting.
2392 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
2394         * ldlang.c: (strip_excluded_output_sections): New function.
2395         (lang_process): Call it.
2396         (lang_size_sections_1): Revert 2002-06-10 change.
2398 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
2400         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2401         Run "make dep-am".
2402         * Makefile.in: Regenerate.
2404 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
2406         * ldfile.c (ldfile_try_open_bfd): Formatting.
2408         * ldmisc.c (demangle): Move so that it doesn't intrude between
2409         vfinfo comment and body.  Add comment.
2411 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2413         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2415 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
2417         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2418         * ldlang.c (entry_sym): Likewise.
2419         (ldlang_undef_chain_list_type): Likewise.
2420         (lang_finish): Adjust references to entry_symbol.
2421         (lang_add_entry): Likewise.
2422         (lang_gc_sections): Use link_info.gc_sym_list.
2423         (lang_process): Set link_info.gc_sym_list.
2424         * ldlex.l: Include bfdlink.h.
2425         * ldmain.c (main): Init link_info.gc_sym_list.
2426         * emultempl/aix.em: Adjust references to entry_symbol.
2427         * emultempl/armcoff.em: Likewise.
2428         * emultempl/armelf.em: Likewise.
2429         * emultempl/pe.em: Likewise.
2430         * emultempl/ppc64elf.em (ppc_after_open): New function.
2431         (LDEMUL_AFTER_OPEN): Define.
2432         * emulparams/elf64ppc.sh: KEEP .opd sections.
2434 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2436         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2437         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2438         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2439         (EEPROM_START_ADDR): Define.
2440         (EEPROM_MEMORY): Define.
2441         * emulparams/m68hc12elf.sh: Likewise.
2442         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2443         section to put soft registers in .page0.
2444         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2446 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2448         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2449         section.  Add ${RELOCATING-0}.
2451 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
2453         * emulparams/shelf.sh (STACK_ADDR): Don't define.
2454         (OTHER_SECTIONS): Define.
2455         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2456         (OTHER_SECTIONS): Undef.
2458 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
2460         * ldmisc.c (demangle): Restore dots stripped from sym name.
2462 2002-06-25  H.J. Lu <hjl@gnu.org>
2464         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2465         * Makefile.in: Regenerated.
2467 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
2469         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2470         the size of attached object files, to allow make the object files
2471         available via FTP or HTTP and to mention that the mail will be
2472         sent to a mailing list.
2474 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
2476         * configure.host (romp): Drop support.
2478 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
2480         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2481         section flags for SEC_DATA, rather than for SEC_CODE being unset.
2483 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
2485         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2486         format specifier used to print BFD name.
2488 2002-06-18  Dave Brolley  <brolley@redhat.com>
2490         From Catherine Moore, Michael Meissner, Jim Blandy:
2491         * emulparams/elf32frv.sh: New file.
2492         * configure.tgt: Support frv-*-*.
2493         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2494         (eelf32frv.c): New target.
2496 2002-06-17  Tom Rix  <trix@redhat.com>
2498         * emultempl/elf32.em: gld*_get_script: Check for
2499         GENERATE_COMBRELOC_SCRIPT.
2500         * scripttempl/elfd10v.sc : Fix STACK and INSN.
2501         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2503 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
2505         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2507 2002-06-12  H.J. Lu <hjl@gnu.org>
2509         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2510         false if xvec doesn't match.
2512 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2514         * ldlang.c (lang_size_sections_1): Skip removed output sections.
2516 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
2518         * ldexp.c: Replace CONST with const.
2519         * ldfile.c: Likewise.
2520         * ldfile.h: Likewise.
2521         * ldlex.l: Likewise.
2522         * mri.c: Likewise.
2523         * pe-dll.h: Likewise.
2525 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2527         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2529 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
2531         * ldmain.c (main): initialize link_info.pei386_auto_import
2532         to -1 == implicit enable.
2533         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2534         initialize link_info.pei386_auto_import to -1 == implicit
2535         enable.
2536         (gld_${EMULATION_NAME}_parse_args): When processing
2537         --enable-auto-import and --disable-auto-import options, use
2538         '1' and '0' instead of 'true' and 'false'.
2539         (pe_find_data_imports): Only issue message about auto-import
2540         when the feature is implicitly enabled.  Downgrade message to
2541         informational instead of warning.
2543 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2545         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2547 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2549         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2550         HOSTING_CRT0 and HOSTING_LIBS.
2552 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
2554         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2556 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
2558         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2559         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2561 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2563         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2564         SEC_EXCLUDE sections when doing a relocatable link.
2566 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2568         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2569         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2570         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2571         (eshlelf64_nbsd.c): New rules.
2572         * Makefile.in: Regenerate.
2573         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2574         (sh64-*-netbsd*): New targets.
2575         * emulparams/shelf32_nbsd.sh: New file.
2576         * emulparams/shelf64_nbsd.sh: New file.
2577         * emulparams/shlelf32_nbsd.sh: New file.
2578         * emulparams/shlelf64_nbsd.sh: New file.
2580 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
2582         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
2584 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2586         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2587         C++ constructors/destructors, loosely based on the m68hc11 port.
2589 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
2591         * Makefile.in: Regenerate.
2592         * aclocal.m4: Regenerate.
2593         * config.in: Regenerate.
2594         * configure: Regenerate.
2596 2002-05-31  Graeme Peterson  <gp@qnx.com>
2598         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2599         (ei386nto.c): Add rule.
2600         * Makefile.in: Regenerate.
2601         * configure.tgt: Add i[3456]86-*-nto-qnx*.
2602         * emulparams/i386nto.sh: New file.
2604 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2606         * NEWS: Add entry for VAX ELF support.
2608 2002-05-29  Matt Thomas  <matt@3am-software.com>
2609             Jason Thorpe  <thorpej@wasabisystems.com>
2611         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2612         (eelf32vax.c)
2613         (evaxnbsd.c): New rules.
2614         * Makefile.in: Regenerate.
2615         * configure.tgt (vax-*-netbsdelf*)
2616         (vax-*-netbsdaout*)
2617         (vax-*-netbsd*): New targets.
2618         * emulparams/elf32vax.sh: New file.
2619         * emulparams/vaxnbsd.sh: New file.
2621 2002-05-29  Adam Nemet  <anemet@lnxw.com>
2623         * emultempl/armelf.em (arm_elf_after_open): Don't determine
2624         bfd_for_interwork, instead add glue sections to each input bfd.
2625         (bfd_for_interwork): New global.
2626         (arm_elf_set_bfd_for_interworking): New function.
2627         (arm_elf_before_allocation): Use it.
2629 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
2631         * Makefile.am: Add DLX make target.
2632         * configure.tgt: Add DLX configuration.
2633         * Makefile.in: Regenerate.
2634         * emulparams/elf32_dlx.sh: New file
2635         * scripttempl/dlx.sc: New file
2637 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
2639         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2640         * Makefile.in: Regenerate.
2641         * emulparams/elf_chaos.sh: Use elf_chaos script.
2642         * scripttempl/elf_chaos.sc: New file.
2644 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
2646         * ldlang.c (lang_size_sections_1): Move check for conflicting load
2647         addresses and regions from here...
2648         (lang_get_regions): ...to this new function.
2649         (lang_leave_output_section_statement): Use lang_get_regions.
2650         (lang_leave_overlay): Likewise.
2651         * mri.c (mri_draw_tree): Pass null as last argument to
2652         lang_leave_output_section_statement.
2653         * emultempl/elf32.em (gld*_place_orphan): Likewise.
2654         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2655         * emultempl/pe.em (gld*_place_orphan): Likewise.
2657 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
2659         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2661 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
2663         * ldemul.c: Fix formatting.
2664         * ldfile.c: Likewise.
2665         * pe-dll.c: Likewise.
2666         * pe-dll.h: Likewise.
2668 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
2670         * ldlang.c (lang_process): Formatting, grammar.
2672         * ldlex.l: Use #include "" instead of <> for local header files.
2674 2002-05-24  TAMURA Kent <kent@netbsd.org>
2676         * configure.tgt: Add a target for i386-netbsdpe.
2678 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2680         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2681         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2682         output section if necessary.  Handle .tbss.
2683         (lang_size_sections): Clear _raw_size for .tbss section
2684         (it allocates space in PT_TLS segment only).
2685         * ldwrite.c (build_link_order): Build link order for .tbss too.
2687 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
2689         * configure.in: Correct spelling of AC_PREREQ.
2691 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2693         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2694         default.
2695         (autofilter_objlist): Add crtbegin.o, crtend.o.
2697 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2699         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2700         (longopts): Add new option --exclude-libs.
2701         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2702         (gld_${EMULATION_NAME}_parse_args): Use it.
2703         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2704         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2705         from whole archives.
2706         (pe_dll_add_excludes): Set excludes->type.
2707         (auto_export): Add new variable libname and set to archive basename if
2708         abfd.  Use it when filtering default and user-specified libarary
2709         excludes.  Let string "ALL" mean all libs when filtering user-specified
2710         libs.
2711         * ld.texinfo: Document --exclude-libs.
2713 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2715         * ldemul.c (ldemul_new_vers_pattern): New function.
2716         * ldemul.h (ldemul_new_vers_pattern): Declare.
2717         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2718         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2719         * emultempl/ppc64elf.em (dotsyms): New static var.
2720         (gld${EMULATION_NAME}_new_vers_pattern): New function.
2721         (LDEMUL_NEW_VERS_PATTERN): Define.
2722         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2723         (PARSE_AND_LIST_LONGOPTS): Likewise.
2724         (PARSE_AND_LIST_ARGS_CASES): Handle them.
2725         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2726         initialiser.
2727         * emultempl/armcoff.em: Likewise.
2728         * emultempl/armelf_oabi.em: Likewise.
2729         * emultempl/beos.em: Likewise.
2730         * emultempl/elf32.em: Likewise.
2731         * emultempl/generic.em: Likewise.
2732         * emultempl/gld960.em: Likewise.
2733         * emultempl/gld960c.em: Likewise.
2734         * emultempl/linux.em: Likewise.
2735         * emultempl/lnk960.em: Likewise.
2736         * emultempl/m68kcoff.em: Likewise.
2737         * emultempl/mipsecoff.em: Likewise.
2738         * emultempl/pe.em: Likewise.
2739         * emultempl/sunos.em: Likewise.
2740         * emultempl/ticoff.em: Likewise.
2741         * emultempl/vanilla.em: Likewise.
2743 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2745         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2746         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
2747         (LIB_SEARCH_DIRS): No need to use "tr".
2748         (COMPILE_IN): Only set for native targets.
2749         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2750         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2751         * configure.tgt (powerpc*): Set tdir_*.
2752         (powerpcle*): Correct targ_extra_emuls.
2753         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2754         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2756 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2758         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2759         calling lang_add_entry.
2761 2002-05-21  H.J. Lu  (hjl@gnu.org)
2763         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2764         "-z muldefs".
2765         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2767         * ld.texinfo: Updated for --allow-multiple-definition and
2768         "-z muldefs".
2770         * ldmain.c (main): Initialize the allow_multiple_definition
2771         field to false.
2773         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2774         (ld_options): Add --allow-multiple-definition.
2775         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2777 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
2779         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2780         (earmelfb_nbsd.c): New rule.
2781         * Makefile.in: Regenerate.
2782         * configure.tgt (armeb-*-netbsdelf*): New target.
2783         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2784         (arm-*-netbsd*): Likewise.
2785         * emulparams/armelfb_nbsd.sh: New file.
2787 2002-05-18  Tom Rix  <trix@redhat.com>
2789         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2790         support.
2792 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2794         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2795         * Makefile.in: Regenerate.
2796         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2798 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2800         * emulparams/avr1.sh: New file.
2801         * emulparams/avr2.sh: New file.
2802         * emulparams/avr3.sh: New file.
2803         * emulparams/avr4.sh: New file.
2804         * emulparams/avr5.sh: New file.
2805         * scripttempl/avr.sc: New file.
2807 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
2809         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2810         (lang_place_orphans): Abort if just_syms_flag.
2812 2002-05-10  Tom Rix  <trix@redhat.com>
2814         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2815         architecture and machine information in the output bfd.
2816         (gld*_before_parse): Remove old arch and machine code.
2817         (choose_target): Rename to gld*_choose_target.
2818         (rtld): Change type to int.
2819         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2820         objects in XCOFF archives.
2821         * ldfile.h: Update copyright date.
2823 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2825         * ldmain.c (main): Enable -z combreloc by default.
2827 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
2829         * Makefile.am: Honour DESTDIR.
2830         * Makefile.in: Regenerate.
2832 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
2834         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2835         (lang_enter_overlay): Remove the last two parameters.
2836         (lang_leave_overlay): Take them here instead.
2837         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2838         (section): Pass LMA and crossref flag to lang_leave_overlay rather
2839         than lang_enter_overlay.
2840         * ldlang.c (lang_memory_region_lookup): Return null for null names.
2841         (lang_output_section_statement_lookup): Initialize update_dot_tree.
2842         (lang_size_sections_1): Evaluate it.
2843         (lang_leave_output_section_statement): Rework LMA lookup.
2844         (overlay_lma, overlay_nocrossrefs): Remove.
2845         (lang_enter_overlay): Remove LMA and crossref arguments.
2846         (lang_enter_overlay_section): Don't set the LMA here.
2847         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
2848         assignment to the last section's update_dot_tree.  Unconditionally
2849         use the load and run-time regions specified in the OVERLAY statement.
2850         Likewise the first section's LMA.  Only set the other sections' LMAs
2851         when no load region is given.
2853 2002-05-06  Nick Clifton <nickc@redhat.com>
2855         * po/sv.po: New translation.
2857 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
2859         * emultempl/hppaelf.em (build_section_lists): New function.
2860         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2861         and build_section_lists.
2863 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2865         * ld.h: Fix formatting.
2866         * ldexp.c: Likewise.
2867         * ldfile.c: Likewise.
2868         * ldlang.c: Likewise.
2869         * ldmain.c: Likewise.
2870         * lexsup.c: Likewise.
2871         * pe-dll.c: Likewise.
2873 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
2875         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2876         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
2877         (build_section_lists): Do output_section tests here.
2879 2002-04-30  Tom Rix  <trix@redhat.com>
2881         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2883 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
2885         Long branch stubs, multiple stub sections.
2886         * emultempl/ppc64elf.em: Include ldctor.h.
2887         (stub_file): New var.
2888         (group_size): New var.
2889         (ppc_create_output_section_statements): New function.
2890         (struct hook_stub_info): New.
2891         (hook_in_stub): New function.
2892         (ppc_add_stub_section): New function.
2893         (ppc_layout_sections_again): New function.
2894         (build_section_lists): New function.
2895         (gld${EMULATION_NAME}_finish): Rewrite.
2896         (real_func): New var.
2897         (ppc_for_each_input_file_wrapper): New function.
2898         (ppc_lang_for_each_input_file): New function.
2899         (lang_for_each_input_file): Define.
2900         (PARSE_AND_LIST_PROLOGUE): Define.
2901         (PARSE_AND_LIST_LONGOPTS): Define.
2902         (PARSE_AND_LIST_OPTIONS): Define.
2903         (PARSE_AND_LIST_ARGS_CASES): Define.
2904         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2906 2002-04-30  Tom Rix  <trix@redhat.com>
2908         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2909         -blibpath, -bnolibpath support.
2911 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
2913         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2914         (eelf32ppcwindiss.c): New target.
2915         * Makefile.in: Regenerated.
2916         * configure.tgt: Add support for powerpc-*-windiss.
2917         * emulparams/elf32ppcwindiss.sh: New file.
2919 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
2921         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2922         * ldexp.c (exp_print_token): Add "infix_p" argument.
2923         (exp_print_tree): Update accordingly.
2925 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
2927         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2928         * Makefile.in: Regenerate.
2929         * mpw-elfmips.c: Delete.
2930         * mpw-eppcmac.c: Delete.
2931         * mpw-esh.c: Delete.
2932         * mpw-idtmips.c: Delete.
2934 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
2936         * emulparams/shelf32.sh (MACHINE): Now sh5.
2938 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2940         * ldgram.y: Fix syntax warning.
2942 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
2944         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2945         to prevent "-n" from being taken as an abbreviation for
2946         "--no-pipeline-knowledge".
2948 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2950         * ldlang.c (lang_size_sections_1): Don't complain about
2951         SEC_NEVER_LOAD sections having no memory region specified.
2953         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2955 2002-04-07  matthew green  <mrg@redhat.com>
2957         * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2959 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2961         * dep-in.sed: Cope with absolute paths.
2962         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2963         Run "make dep-am".
2964         * Makefile.in: Regenerate.
2966 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2968         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2970 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2972         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2973         is smaller than maximum, round dot up to common page boundary.
2975 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2977         * configure.host: Set up for generic hosts first, then tweak as
2978         necessary in more specific targets.
2979         (HOSTING_LIBS): Include libgcc_eh.a if found.
2981 2002-03-23  Andreas Jaeger  <aj@suse.de>
2983         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2985 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
2987         * Makefile.am: Run "make dep-am".
2988         * Makefile.in: Regenerate.
2990 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
2992         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2994 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
2996         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2997         add the symbol to the linker hash table immediately.
2998         (lang_place_undefineds): Split symbol creation out..
2999         (insert_undefined): ..to here.
3001 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
3003         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
3004         the contents of the buffer returned from basename function will are
3005         getting overwritten while still being used.
3007 2002-03-18  Jan Hubicka  <jh@suse.cz>
3008             Andreas Jaeger  <aj@suse.de>
3009             Andreas Schwab  <schwab@suse.de>
3011         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
3012         * elf_x86_64.sh (ARCH): Set to i386:x86-64
3013         set libraries to default to lib64 paths.
3015 2002-03-18  Tom Rix  <trix@redhat.com>
3017         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
3018         * configure.tgt : Same.
3019         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
3020         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
3021         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
3022         emulation parameters for better -b32, -b64 support.
3023         * emulparms/aixrs6.sh : Same.
3024         * emulparms/ppcmacos.sh : Same.
3025         * emultempl/aix.em (choose_target) : Use new emulation parameters
3026         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
3027         * Makefile.in : Regenerate.
3029 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
3031         * po/fr.po: Updated version.
3033 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
3035         * ldmain.c (main): Move .text readonly flag fudges from here..
3036         * ldlang.c (lang_process): ..to here.
3038 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
3040         * ldlang.c (lang_check): Remove the word size check added in last
3041         change.  Treat emitrelocations case as for relocatable links.
3043 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
3045         * po/fr.po: Updated version.
3047 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
3049         * ldlang.c (lang_check): Do relocatable link checks first, so that
3050         warn_mismatch can't override.  Check compatible and word size too.
3052 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
3054         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
3056 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3058         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
3059         DATA_SEGMENT_ALIGN.
3061 2002-03-04  H.J. Lu <hjl@gnu.org>
3063         * scripttempl/elf.sc: Put .preinit_array, .init_array and
3064         .fini_array in the data segment.
3066 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
3068         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
3070 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
3072         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
3073         .init_array, and .fini_array.
3075 2002-02-20  Andreas Schwab  <schwab@suse.de>
3077         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
3078         .IA64_unwind* in a relocatable link.
3080 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
3082         * NEWS: Mark 2.12 branch.
3084 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3086         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
3087         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
3089 2002-02-18  Tom Rix  <trix@redhat.com>
3091         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
3092         (gld*_before_allocation): Same.
3093         (gld*_create_output_section_statements): Generate
3094         __rtinit if run time linking.  Add librtl.a to the link.
3095         (gld*_read_file): Clean.
3097 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
3099         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
3101 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
3103         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
3104         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
3105         and eelf64alpha_fbsd.
3106         * Makefile.in: Regenerate.
3107         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
3108         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
3109         use a FreeBSD-specific emulation rather than the psABI one.
3110         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
3111         for all FreeBSD ELF systems.
3112         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
3113         emulation.
3114         * emulparams/elf32ppc_fbsd.sh: Likewise.
3115         * emulparams/elf64_ia64_fbsd.sh: Likewise.
3116         * emulparams/elf64_sparc_fbsd.sh: Likewise.
3117         * emulparams/elf64alpha_fbsd.sh: Likewise.
3118         * emulparams/elf_i386_fbsd.sh: Likewise.
3119         * emulparams/elf_x86_64_fbsd.sh: Likewise.
3121 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
3123         * po/tr.po: Updated version.
3125 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
3127         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
3128         (FILL): Likewise.
3130 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
3132         * emultempl/mmo.em (mmo_after_open): Don't call
3133         _bfd_mmix_check_all_relocs when producing ELF output.
3135 2002-02-15  Richard Henderson  <rth@redhat.com>
3137         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
3138         definition.  Emit a unop+nop pair.
3140 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
3142         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
3143         for presence of .MMIX.reg_contents.linker_allocated before early
3144         exit.
3146         * NEWS: Mention support for MMIX.
3148 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
3150         Support arbitrary length fill patterns.
3151         * ld.texinfo (Output Section Fill): Describe fill expressions.
3152         (FILL): Refer to the above.
3153         * ldexp.h (etree_value_type): Add "str" field.
3154         (union etree_union): Add "str" to "value" struct.
3155         (exp_bigintop): Declare.
3156         (exp_get_fill): Declare.
3157         * ldexp.c: Include "safe-ctype.h".
3158         (exp_intop): Set value.str to NULL.
3159         (exp_bigintop): New function.
3160         (new_rel): Pass in "str", and set new.str from it.
3161         (new_rel_from_section): Set new.str to NULL.
3162         (fold_name): Adjust calls to new_rel.
3163         (exp_fold_tree): Likewise.
3164         (exp_get_fill): New function.
3165         * ldgram.y (struct big_int bigint, fill_type *fill): New.
3166         (INT): Returns a "bigint".  Adjust all code handling INTs.
3167         (fill_opt): Returns a "fill".
3168         (fill_exp): Split out of fill_opt, use for FILL.
3169         * ldlang.h (struct _fill_type): New.
3170         (fill_type): Move typedef to ldexp.h.
3171         (lang_output_section_statement_type): "fill" is now a pointer.
3172         (lang_fill_statement_type): Likewise.
3173         (lang_padding_statement_type): Likewise.
3174         (lang_add_fill): Now takes a "fill_type *" param.
3175         (lang_leave_output_section_statement): Likewise.
3176         (lang_do_assignments): Likewise.
3177         (lang_size_sections): Likewise.
3178         (lang_leave_overlay_section): Likewise.
3179         (lang_leave_overlay): Likewise.
3180         * ldlang.c: Include ldgram.h after ldexp.h.
3181         (lang_output_section_statement_lookup): Adjust for fill_type change.
3182         (print_fill_statement): Likewise.
3183         (print_padding_statement): Likewise.
3184         (insert_pad): Now takes a "fill_type *" arg.
3185         (size_input_section): Likewise.
3186         (lang_size_sections_1): Likewise.
3187         (lang_size_sections): Likewise.
3188         (lang_do_assignments): Likewise.
3189         (lang_add_fill): Likewise.
3190         (lang_leave_output_section_statement): Likewise.
3191         (lang_leave_overlay_section): Likewise.
3192         (lang_leave_overlay): Likewise.
3193         Adjust all callers of the above function.
3194         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
3195         starting with "0X" as well as "0x".  Return bigint.str for hex
3196         numbers starting with "0x" or "0X", zero bigint.str otherwise.
3197         Always use base 16 for numbers starting with "$".
3198         * ldmain.c: Include ldgram.h after ldexp.h.
3199         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
3200         of bfd_fill_link_order.
3201         * pe-dll.c: Adjust lang_do_assignments calls.
3202         * emultempl/elf32.em: Likewise.
3203         * emultempl/hppaelf.em: Likewise.
3204         * emultempl/ppc64elf.em: Likewise.
3205         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
3206         lang_add_assignment call.
3207         * emultempl/pe.em: Likewise.
3209 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
3211         * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
3212         * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
3213         the pattern in question is not a regexp.
3214         * ldlang.c: Likewise.
3215         * ldlang.h: Likewise.
3216         * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
3218 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
3220         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3221         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3222         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
3223         * ldexp.c (exp_data_seg): New variable.
3224         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
3225         (fold_binary): Handle DATA_SEGMENT_ALIGN.
3226         (exp_fold_tree): Handle DATA_SEGMENT_END.
3227         Pass allocation_done when recursing instead of hardcoding
3228         lang_allocating_phase_enum.
3229         * ldexp.h (exp_data_seg): New.
3230         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
3231         (lang_size_sections): New.
3232         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
3233         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
3234         if COMMONPAGESIZE is defined.
3235         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
3236         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
3237         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
3238         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
3239         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
3240         libraries only.
3242 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
3244         * Makefile.in: Regenerate.
3246 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
3248         * lexsup.c: Remove strtoul declaration.
3250 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
3252         * ldmain.c: Add prototype for main ().
3253         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
3254         * emultempl/lnk960.em (lnk960_choose_target): Function should
3255         take two arguments.
3257 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
3259         * ldlang.c (entry_section): New initialised variable.
3260         (lang_finish): Use it.
3261         * ldlang.h (entry_section): Declare.
3262         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
3263         entry_section to ".opd".
3265 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
3267         * ld.texinfo (Options): Add back in -nostdlib documentation,
3268         which had been inadvertently removed.
3270 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
3272         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
3273         register section vma to a sane value after emitting error.  Make
3274         fatal conditions cause program exit when emitting message.
3276 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
3278         * configure.tgt: Add or32-*-rtems target.
3280 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
3282         Contribute sh64-elf.
3283         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3284         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
3285         in OTHER_RELOCATABLE_SECTIONS.
3286         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
3287         * emulparams/shelf32.sh (STACK_ADDR): Define.
3288         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
3289         (OTHER_SECTIONS): this.  Removed stack settings.
3290         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
3291         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
3292         2001-03-12  DJ Delorie  <dj@redhat.com>
3293         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
3294         relaxing if any shmedia or mixed sections are found.
3295         2001-03-07  DJ Delorie  <dj@redhat.com>
3296         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
3297         einfo.  Gracefully decline to output to non-elf formats.
3298         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
3299         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
3300         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
3301         * emulparams/shelf32.sh: Ditto.
3302         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
3303         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
3304         comment.
3305         2001-01-10  Ben Elliston  <bje@redhat.com>
3306         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
3307         non-portable shell constructs. From Hans-Peter Nilsson.
3308         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
3309         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
3310         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
3311         dependencies to the shell script include chain.
3312         * Makefile.in: Regenerate.
3313         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
3314         * emultempl/sh64elf.em: Update and tweak comments.
3315         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
3316         make a .cranges section SEC_IN_MEMORY.
3317         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3318         * emultempl/sh64elf.em
3319         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
3320         .cranges section found to be necessary; continue and set stored
3321         section contents flags for sections with non-mixed contents.
3322         Use a struct sh64_section_data container and sh64_elf_section_data
3323         to store contents-type flags.
3324         Remove unused update of "isec".
3325         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
3326         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
3327         access contents-type flags.  Assert that the associated container
3328         is initialized.  Use that container, not elf_gp_size, to hold size
3329         of linker-generated cranges contents.
3330         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
3331         * emultempl/sh64elf.em
3332         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
3333         there's already a .cranges section.  When section flag difference
3334         is found, don't NULL-check cranges a second time.  Tweak comments.
3335         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
3336         merging, not max size, as size of ld-generated .cranges contents.
3337         Don't set ELF section flags in output section.  When checking for
3338         needed .cranges descriptors, don't use a variable; compare
3339         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
3340         comments.
3341         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
3342         * emultempl/sh64elf.em: New file.
3343         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
3344         * Makefile.in: Regenerate.
3345         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
3346         (OTHER_RELOCATING_SECTIONS): Ditto.
3347         (EXTRA_EM_FILE): New, set to sh64elf if not set.
3348         * emulparams/shlelf32.sh: Stub out all settings except
3349         OUTPUT_FORMAT.  Source shelf32.sh.
3350         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
3351         OTHER_RELOCATING_SECTIONS.
3352         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
3353         * emulparams/shlelf64.sh: Stub out all settings except
3354         OUTPUT_FORMAT.  Source shelf64.sh.
3355         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
3356         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
3357         .cranges section.
3358         (DATA_START_SYMBOLS): Define, provide ___data.
3359         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
3360         for consecutive .data section.
3361         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
3362         section after .data section.
3363         * emulparams/shlelf64.sh: Ditto.
3364         * emulparams/shelf32.sh: Ditto.
3365         (ALIGNMENT): Define to 8.
3366         * emulparams/shelf32.sh: Ditto.
3367         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3368         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
3369         built-in linker scripts.
3370         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3371         * emulparams/shlelf64.sh: New.
3372         * emulparams/shelf64.sh: New.
3373         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
3374         targ_extra_emuls.
3375         * Makefile.am: Add support for shlelf64 and shelf64.
3376         * Makefile.in: Regenerate.
3377         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
3378         * configure.tgt (sh64-*-elf*): Add shelf as default.
3379         Add shlelf to targ_extra_emuls.
3380         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
3381         * emulparams/shelf32.sh: New file.
3382         * emulparams/shlelf32.sh: New file.
3383         * Makefile.am: Add support for shlelf32 and shelf32.
3384         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
3385         * Makefile.in: Regenerate.
3387 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
3389         * ldlang.c (lang_reset_memory_regions): Rename from
3390         reset_memory_regions.  Change all callers.  Make public.
3391         * ldlang.h (lang_reset_memory_regions): Prototype.
3392         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
3393         lang_reset_memory_regions before lang_size_sections.
3394         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3395         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
3397 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
3399         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
3400         arithmetic when checking for too many global registers.
3402 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
3404         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3405         (ehppanbsd.c): New rule.
3406         * Makefile.in: Regenerate.
3407         * configure.tgt (hppa*-*-netbsd*): New target.
3408         * emulparams/hppalinux.sh: Add comment to check other files
3409         that source this file it is modified, and list which
3410         files that do.
3411         * emulparams/hppanbsd.sh: New file.
3413 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
3415         * scripttempl/xstormy16.sc: Don't allocate extra space for the
3416         stack.
3418 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
3420         Support on-demand global register allocation from
3421         R_MMIX_BASE_PLUS_OFFSET relocs.
3422         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3423         mmix_set_reg_section_vma.  Call
3424         _bfd_mmix_finalize_linker_allocated_gregs.
3425         (mmix_before_allocation): New function.
3426         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3427         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3428         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3429         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3430         before .MMIX.reg_contents.
3431         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3432         (mmo_after_open): New function.
3433         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3434         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
3435         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3437 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
3439         * emulparams/or32.sh: New file.
3440         * emulparams/or32elf.sh: New file.
3441         * scripttempl/or32.sc: New file.
3442         * configure.tgt : Add support for or32.
3443         * configure: Regenerate
3444         * Makefile.am: Add support for or32.
3445         * Makefile.in: Regenerate.
3446         * NEWS: Mention support for or32.
3447         * po/ld.pot: Regenerate.
3449 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
3450             Mitch Lichtenberg  <mpl@broadcom.com>
3452         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3453         * emultempl/mipself.em: New file to handle MIPS ELF embedded
3454         reloc creation (ld --embedded-relocs).
3456 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
3458         * configure: Regenerated.
3460 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
3462         * Makefile.am (install): Depend on install-info.
3463         * Makefile.in: Regenerate.
3465 2002-01-26  Christian Rose  <menthos@menthos.com>
3467         * ldmain.c (main): Use full sentences to ease translation.
3469 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
3471         * po/fr.po: Updated version.
3473 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
3475         * po/es.po: Updated version.
3477 2002-01-25  Andreas Jaeger  <aj@suse.de>
3479         * ldlex.l (yy_input): Correct error check.
3481 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
3483         * ldmisc.c (demangle): Put back dots when string not demangled.
3485 2002-01-22  Richard Henderson  <rth@redhat.com>
3487         * emulparams/elf64alpha.sh (NOP): Use unop.
3489 2002-01-21  Andreas Jaeger  <aj@suse.de>
3491         * ldlex.l: Use fread instead of read.
3493 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3495         * configure.tgt (ia64-*-netbsd*): New target.
3497 2002-01-21  H.J. Lu <hjl@gnu.org>
3499         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3500         0.
3501         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3503 2002-01-18  Andreas Jaeger  <aj@suse.de>
3505         * ldver.c (ldversion): Update year.
3507 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3509         * po/ld.pot: Regenerate.
3511 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
3513         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3514         * Makefile.in: Regenerate.
3515         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3516         * emultempl/ppc64elf.em: New file.
3518 2002-01-15  DJ Delorie  <dj@redhat.com>
3520         * scripttempl/pe.sc: Add support for constructor priorities.
3522 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3524         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3525         * emulparams/avr23xx.sh: Likewise.
3526         * emulparams/avr4433.sh: Likewise.
3527         * emulparams/avr44x4.sh: Likewise.
3528         * emulparams/avr85xx.sh: Likewise.
3529         * emulparams/avrmega103.sh: Likewise.
3530         * emulparams/avrmega161.sh: Likewise.
3531         * emulparams/avrmega603.sh: Likewise.
3532         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3534 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
3536         * ldlang.c (walk_wild_section): Exclude object file if enclosing
3537         archive is excluded.
3539 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
3541         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3542         (eshelf_nbsd.c): New rule.
3543         (eshlelf_nbsd.c): New rule.
3544         * Makefile.in: Regenerate.
3545         * configure.tgt (sh*le-*-netbsdelf*): New target.
3546         (sh*-*-netbsdelf*): New target.
3547         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3548         * emulparams/shelf_nbsd.sh: New emulation.
3549         * emulparams/shlelf_nbsd.sh: New emulation.
3551 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
3553         * po/es.po: New file: Spanish translation.
3554         * configure.in (ALL_LINGUAS): Add es.
3555         * configure: Regenerate.
3557 2002-01-06  John Marshall  <jmarshall@acm.org>
3559         * ld.texinfo: Note that --emit-relocs is currently only
3560         implemented for ELF.
3562 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
3564         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3565         of bfd_section_list_remove and bfd_section_list_insert macros.
3566         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3567         * emultempl/mmo.em (mmo_place_orphan): Likewise.
3569 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
3571         * configure.tgt (x86_64-*-netbsd*): New target.
3573 2001-12-21  Tom Rix  <trix@redhat.com>
3575         (gld*_create_output_section_statements): New function.
3576         For -binitfini support.
3577         * emultempl/aix.em (gld*_before_parse): Fix comment.
3578         * emultempl/aix.em (gld*_parse_args): Fix comment.
3580 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
3582         * configure.tgt (mips*-dec-netbsd*): Delete alias for
3583         mips*el-*-netbsd*.
3584         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3586         * configure.tgt (arm-*-netbsdelf*): Add target.
3587         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3588         * emulparams/armelf_nbsd.sh: Added.
3589         * Makefile.am: Add rules for earmelf_nbsd.
3590         * Makefile.in: Regenerate.
3592 2001-12-19  Andreas Jaeger  <aj@suse.de>,
3593             Susanne Oberhauser <froh@suse.de>
3595         * configure.host: Add rules for x86_64-*linux-gnu.  Change
3596         s390x-linux entry to use gcc to report configuration, replace gcc
3597         with $CC in s390-linux
3599 2001-12-19  Andreas Jaeger  <aj@suse.de>
3601         * ld.texinfo (VERSION): Fix markup.
3603 2001-12-18  matthew green  <mrg@eterna.com.au>
3605         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3606         (m68kelfnbsd.c): New rule.
3607         * Makefile.in: Regenerate.
3608         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3609         (m68*-*-netbsd*4k*): .. this.
3610         (m68*-*-netbsdelf*): New target.
3611         (m68*-*-netbsd*): Also include ELF support.
3612         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3613         * emulparams/m68kelfnbsd.sh: New emulation.
3615 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
3617         * ldgram.y (vers_node): Support anonymous version tags.
3618         * ldlang.c (lang_register_vers_node): Ensure anonymous version
3619         tag is not defined together with non-anonymous versions.
3620         * ld.texinfo: Document it.
3622 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
3624         * po/tr.po: New file: Turkish translation.
3625         * configure.in (ALL_LINGUAS): Add tr.
3626         * configure: Regenerate.
3628 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
3630         * Makefile.am: Add rules for eelf64alpha_nbsd.
3631         * Makefile.in: Regenerate.
3632         * configure.tgt (alpha*-*-netbsd*): Set
3633         targ_emul to elf64alpha_nbsd.
3634         * emulparams/elf64alpha_nbsd.sh: Added.
3636 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
3638         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3639         section_tail when fiddling with section list.
3640         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3641         broken into separate strings to make translation easier.
3642         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3643         fiddling with section list.
3644         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3646 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
3648         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3650 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
3652         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3654 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
3656         * emultempl/elf32.em (finish): Supply output_bfd
3657         to bfd_elf*_discard_info.
3658         (OPTION_EH_FRAME_HDR): Define.
3659         (longopts): Add --eh-frame-hdr.
3660         (parse_args): Handle it.
3661         (list_options): Add --eh-frame-hdr to help.
3662         * emultempl/hppaelf.em (finish): Supply output_bfd
3663         to bfd_elf*_discard_info.
3664         * scripttempl/elf.sc (.eh_frame_hdr): Add.
3666 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
3668         * lexsup.c (parse_args): Don't pass shortopts to second call to
3669         getopt functions.  Restore optind rather than decrementing before
3670         second call.  Remove errind as it now duplicates last_optind.
3672 2001-12-11  Christopher Faylor  <cgf@redhat.com>
3674         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3676 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
3677             Richard Henderson  <rth@redhat.com>
3679         * Makefile.am: Add support for xstormy16.
3680         * configure.tgt: Add support for xstormy16.
3681         * Makefile.in: Regenerate.
3682         * emulparams/elf32xstormy16.sh: New file.
3683         * scripttempl/xstormy16.sc: New file.
3685 2001-10-01  Christopher Faylor <cgf@cygnus.com>
3687         * Makefile.in (LIB_PATH): Make configurable.
3688         (GENSCRIPTS): Set LIB_PATH in environment.
3689         * configure.in: Substitute LIB_PATH.
3690         * configure: Regenerate.
3691         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3692         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3694 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
3696         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3697         describing the -N option so that it is easier to translate into
3698         foreign languages.
3700 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
3702         * emultempl/pe.em (..._list_options): Replace multiple fprintf
3703         statements describing a single option with a single, newline
3704         escaped fprintf.  This allows better translation into other
3705         languages.
3707         * ldmain.c (add_archive_element): Combine multiple strings
3708         into a single string to permit better translation into other
3709         languages.
3711 2001-12-05  Tom Rix  <trix@redhat.com>
3713         * Makefile.am: Remove eaixppc64.
3714         * Makefile.in: Regenerate.
3716 2001-12-04  Tom Rix  <trix@redhat.com>
3718         * emultempl/aix.em (choose_target): Change default target to
3719         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
3720         warning.
3721         (gld*_read_file): Fix typo.
3722         (change_symbol_mode): Add prototype.
3723         (is_syscall): Same.
3725         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3726         * emulparams/aixrs6.sh : Same.
3727         * emulparams/ppcmacos.sh : Same.
3728         * emulparams/aixppc64.sh : Delete file.
3729         * emultempl/aix.em : Formatting changes.
3731 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
3733         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3734         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3735         __Sbss.
3736         (OTHER_END_SYMBOLS): Fix formatting.
3737         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3738         (OTHER_END_SYMBOLS): Fix formatting.
3740 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
3742         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3744 2001-12-02  Tom Rix  <trix@redhat.com>
3746         * configure.tgt : Remove eaixppc64 emulations.
3747         * Makefile.in : Remove eaixppc64.c
3748         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3749         (ldemul_default_target): Same.
3750         * emultempl/gld960.em (gld960_choose_target): Same.
3751         * emultempl/gld960c.em (gld960_choose_target): Same.
3752         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3753         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3754         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3755         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3756         * emultempl/aix.em (choose_target): New function.  Handle emulation of
3757         -b32 and -b64.
3759 2001-11-27  H.J. Lu <hjl@gnu.org>
3761         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3762         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3763         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3764         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3765         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3766         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3767         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3768         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3770         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3771         is not empty.
3772         (SDATA): Likewise.
3773         (REL_SDATA): Likewise.
3774         (REL_SBSS): Likewise.
3775         (REL_SDATA2): Likewise.
3776         (REL_SBSS2): Likewise.
3777         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3778         (SDATA2): Likewise.
3780 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3782         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3783         destructor in rom.
3784         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3786 2001-11-22  H.J. Lu  <hjl@gnu.org>
3788         * Makefile.in: Regenerated with automake based on automake
3789         1.4-8 in RedHat 7.1.
3791 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
3793         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3794         (config.status): Delete rule.
3795         Add extra dependencies to cover sourced emulparams files.
3796         * Makefile.in: Regenerate.
3798         * scripttempl/elf.sc: Order <section>, <section>.* and
3799         corresponding linkonce sections as seen in input files.
3800         Formatting fixes.  Zero vma of all sections if not relocating.
3801         (STACK): Define and insert if STACK_ADDR defined.
3802         (OTHER_RELOCATING_SECTIONS): Delete.
3803         (OTHER_END_SYMBOLS): Define.
3804         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3805         (OTHER_READWRITE_SECTIONS): Likewise.
3806         (OTHER_GOT_SECTIONS): Likewise.
3807         (OTHER_SDATA_SECTIONS): Likewise.
3808         (OTHER_BSS_SECTIONS): Likewise.
3809         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3810         (OTHER_READWRITE_SECTIONS): Likewise.
3811         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3812         (OTHER_READWRITE_SECTIONS): Likewise.
3814         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3815         (STACK_ADDR): Define.
3816         * emulparams/armelf_oabi.sh: As for armelf.sh.
3817         * emulparams/elf32mcore.sh: As for armelf.sh.
3818         * emulparams/h8300elf.sh: As for armelf.sh.
3819         * emulparams/mn10200.sh: As for armelf.sh.
3820         * emulparams/shelf.sh: As for armelf.sh.
3822         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3823         (OTHER_END_SYMBOLS): Define.
3824         * emulparams/m32relf.sh: As for elf32fr30.sh.
3825         * emulparams/h8300helf.sh: As for elf32fr30.sh.
3826         * emulparams/h8300self.sh: As for elf32fr30.sh.
3828         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3829         defines with RELOCATING test.
3830         (OTHER_SDATA_SECTIONS): Likewise.
3831         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3832         (OTHER_END_SYMBOLS): ..this.
3833         * emulparams/crislinux.sh: As for criself.sh.
3835         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3836         if not relocating.
3837         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3838         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
3839         normal and linkonce sections as seen in input files.
3840         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3841         (TEXT_DYNAMIC): Likewise.
3842         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3843         (OTHER_SDATA_SECTIONS): Likewise.
3844         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3845         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3846         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3847         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3848         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3849         (OTHER_PLT_RELOC_SECTIONS): Likewise.
3850         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
3851         sections as seen in input files.
3852         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3853         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3854         if not relocating.
3855         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3856         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3857         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3858         (OTHER_SECTIONS): Instead, use this..
3859         (OTHER_END_SYMBOLS): ..and this.
3861         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3862         * emulparams/elf32bsmip.sh: Likewise.
3863         * emulparams/elf32btsmip.sh: Likewise.
3864         * emulparams/elf32ebmip.sh: Likewise.
3865         * emulparams/elf32lmip.sh: Likewise.
3866         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3867         * emulparams/elf32lsmip.sh: Likewise.
3868         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3869         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3870         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3871         * emulparams/elf64btsmip.sh: Likewise.
3872         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3873         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3874         * emulparams/elf32ppclinux.sh: Likewise.
3875         * emulparams/elf32ppcsim.sh: Likewise.
3876         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3877         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3878         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3879         * emulparams/h8300self.sh: Likewise.
3880         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3881         * emulparams/sh.sh: Comment.
3882         * emulparams/shl.sh: Source sh.sh, remove duplicates.
3883         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3884         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3886 2001-11-21  David Heine <dlheine@tensilica.com>
3887             Alan Modra  <amodra@bigpond.net.au>
3889         * ldlang.c (map_input_to_output_sections): Replace "break"
3890         accidentally removed with 2001-08-03 change.
3891         (lang_gc_sections_1): Likewise.
3893 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
3895         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3897 2001-11-20  Angela Marie Thomas <angela@redhat.com>
3899         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3900         of false when calling lang_size_sections.
3901         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3903 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
3905         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3906         function when LDEMUL_FINISH isn't set to the same name.  Don't
3907         call ${LDEMUL_FINISH}.
3908         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3909         * emultempl/armelf.em (arm_elf_finish): Call
3910         gld${EMULATION_NAME}_finish.
3911         * emultempl/hppaelf.em (hppaelf_finish): Rename to
3912         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
3913         hppaelf_layout_sections_again if necessary.
3914         (need_laying_out): New var.
3915         (hppaelf_layaout_sections_again): Rename to
3916         hppaelf_layout_sections_again.  Clear need_laying_out.
3917         (PARSE_AND_LIST_OPTIONS): Format text.
3919 2001-11-14  H.J. Lu  <hjl@gnu.org>
3921         * emultempl/armelf.em (arm_elf_finish): Renamed from
3922         gld${EMULATION_NAME}_finish.
3923         (LDEMUL_FINISH): Set to arm_elf_finish.
3925 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
3927         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3928         (struct ld_emulation_xfer_struct): Use it.
3930 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
3932         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3933         additional symbols referenced by newer crt0.o files from HP.
3935 2001-11-12  Anthony Green  <green@redhat.com>
3937         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3939 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
3941         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3942         * Makefile.in: Regenerate.
3944 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3946         * ld.texinfo: Use @command for commands, @option for options.
3947         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3948         the page man title.
3949         * Makefile.in: Rebuild.
3951 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
3953         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3954         Add support for targets.
3956 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
3958         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3959         * configure: Regernate.
3960         * po/fr.po: New file.
3961         * po/sv.po: New file.
3963 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
3965         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3966         as little endian default and to support big endian.
3968 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
3970         * ld.texinfo (Options): Document new option, -nostdlib.
3971         * lexsup.c (OPTION_NOSTDLIB): New definition.
3972         (ld_options): Add entry for "nostdlib".
3973         (parse_args): Handle OPTIONS_NOSTDLIB.
3974         * ldfile.c (ldfile_add_library_path): Don't add directories
3975         to the search path if they weren't specified on the command line
3976         and -nostdlib was specified.
3977         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3979 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
3981         * lexsup.c (parse_args): Prevent infinite parsing loop when
3982         "-rpath.a" is specified on the command line.
3983         Replace calls to fprintf with calls to einfo.
3985 2001-10-31  John Marshall  <jmarshall@acm.org>
3987         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3988         appear only once across all the linker scripts involved in a link
3989         invocation no longer applies.  Make the documentation reflect
3990         that.
3992 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
3994         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3995         targets.
3996         (sh-*-linux*): Added targ_extra_libpath.
3998 2001-10-31  David Heine  <dlheine@tensilica.com>
4000         * ldlang.c (lang_size_sections): Keep a valid output_offset field
4001         for padding statements.
4003 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
4005         * configure.tgt (mmix-*-*): New target.
4006         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
4007         Add dependencies to match.
4008         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
4009         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
4010         scripttempl/mmo.sc: New files.
4011         * gen-doc.texi: @set MMIX.
4012         * ld.texinfo: Ditto.
4013         [MMIX] Add MMIX node.
4014         * Makefile.in: Regenerate.
4016 2001-10-29  Kazu Hirata  <kazu@hxi.com>
4018         * ldlang.c: Fix a comment typo.
4020 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
4022         * configure.host: Move alpha*-*-linux-gnu* entry to generic
4023         entries, and match *-*-linux*.
4025 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
4027         * ldgram.y (mri_script_command): Surround processing of INCLUDE
4028         with ldlex_script, ldlex_popstate.
4029         (ifile_p1): Likewise.
4030         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
4031         correct slot.
4032         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
4033         to 1.  Don't BEGIN(SCRIPT).
4034         (lex_redirect): Similarly.
4035         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
4037 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
4039         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
4040         __EH_FRAME_END__ and accept eh frames into data section.
4041         Add ctor and dtor sections.
4043 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4045         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
4046         (auto-export): Fix indentation.
4048 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4050         * pe-dll.c (autofilter_objectlist): Add startup objects
4051         for profiling.
4052         (auto-export): Constify char * p.
4053         Extract file basename and use strcmp rather than ststr
4054         for object lookup.
4056 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
4058         * ldmain.c (get_emulation): Improve comment about the handling
4059         of -mipsN options.
4061 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
4063         * po/POTFILES.in: Regenerate.
4065 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
4067         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
4068         -z nocopyreloc and -z nocombreloc usage strings.
4070 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
4072         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
4073         in usage.
4075 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
4077         * scripttempl/armaout.sc: Place .bss section after end of aligned
4078         data section to match behaviour of aout code in constructrion of
4079         header.
4081 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4083         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
4084         startup files for mingw32 dlls to list.
4086 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
4088         * emultempl/elf32.em: Fix shell 'if' usage for portability.
4090 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
4092         * configure.tgt (targ): Add arm9e-*-elf.
4094 2001-10-05  H.J. Lu  <hjl@gnu.org>
4096         * genscripts.sh: Fix a typo in the last change.
4098 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
4100         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
4101         -z nocombreloc in usage.
4103 2001-10-03  Jim Blandy  <jimb@redhat.com>
4105         * genscripts.sh: Include a comment at the top of each generated
4106         script, explaining its purpose.
4108 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
4110         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
4111         * NEWS: Mention -z nocopyreloc.
4112         * ld.texinfo (Options): Describe nocopyreloc.
4114 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
4116         * configure: Regenerate.
4118 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
4120         * ldver.h (ld_program_version): Remove declaration.
4121         * lexsup.c (parse_args): Move printing of copyright message..
4122         * ldver.c (ldversion): .. to here.
4123         Use BFD_VERSION_STRING in place of BFD_VERSION.
4124         (ld_program_version): Remove.
4125         * Makefile.am (Makefile): Depend on bfd/configure.in.
4126         Run "make dep-am".
4127         * Makefile.in: Regenerate.
4129 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
4131         * Makefile.am: Update dependencies with "make dep-am".
4132         * Makefile.in: Regenerate.
4134 2001-09-29  John Reiser  <jreiser@BitWagon.com>
4136         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
4137         * lexsup.c: Add --no-define-common commandline option.
4138         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
4139         * ldlex.l: Likewise.
4140         * ld.h: Add command_line.inhibit_common_definition.
4141         * ldmain.c (main): Initialize.
4142         * ld.texinfo: Document.
4144 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
4146         * ldlang.c (section_already_linked): Remove assignment to kept_section.
4148 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
4150         * ldmisc.c (USE_STDARG): Remove.
4151         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
4152         (einfo): Likewise.
4153         (minfo): Likewise.
4154         (lfinfo): Likewise.
4156         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
4157         declarations.  Update copyright.
4159 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
4161         * pe-dll.c: Remove obsoleted declaration of
4162         pe_get_data_import_dll_name.
4163         (pe_create_import_fixup): Fix thinko.
4165         * ld.texinfo(enable-auto-import): Clarify the explanation.
4167 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
4169         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
4170         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
4171         DLL_SUPPORT controlled code.
4173 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
4175         * emultempl/pe.em(pe_data_import_dll): Make static.
4176         (pe_get_data_import_dll_name): New accessor function.
4177         * pe-dll.c(pe_create_import_fixup): call
4178         pe_get_data_import_dll_name() from pe.em, instead of
4179         directly accessing pe_data_import_dll variable from pe.em.
4181 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
4183         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
4184         (def_file_add_directive): Use ISSPACE instead of isspace.
4185         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
4186         isdigit/isxdigit/isalpha/isalnum.
4187         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
4188         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
4189         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
4190         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
4191         isalnum.
4192         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
4193         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
4194         isupper/tolower.
4195         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
4196         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
4197         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
4198         (ctor_prio): Use ISDIGIT instead of isdigit.
4199         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
4200         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
4201         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
4202         isupper/tolower.
4203         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
4204         (stricpy): Use TOLOWER instead of isupper/tolower.
4205         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
4206         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
4207         (lex_warn_invalid): Use ISPRINT instead of isprint.
4208         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
4209         (main): For gettext, also set the LC_CTYPE locate facet.
4210         (add_keepsyms_file): Use ISSPACE instead of isspace.
4211         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
4212         (is_num, parse_args): Use ISDIGIT instead of isdigit.
4213         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
4214         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
4215         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
4216         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
4217         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
4218         (quoteput): Use ISSPACE instead of isspace.
4219         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
4220         instead of isalnum.
4222 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
4224         * deffilep.y (def_stash_module): Constify "name" param.
4226         * pe-dll.c: Replace CONST with const throughout.
4227         (quick_symbol): Constify "n1", "n2", "n3" params.
4228         (make_singleton_name_thunk): Constify "import" param.  Make
4229         "buffer_len" a size_t.
4230         (make_import_fixup_entry): Constify "name", "fixup_name",
4231         "dll_symname" params.
4232         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
4233         (pe_get32): Likewise.
4234         (pe_implied_import_dll): Likewise.
4236         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
4237         (sort_by_section_name): Likewise.
4239         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
4240         (make_import_fixup): Cast printf arg, rel->address to long rather
4241         than int.
4242         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
4244 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
4246         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
4247         defines BufferSize.  Increase buffer size by one.
4249 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
4251         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
4253 2001-09-14  Kevin Lo <kevlo@openbsd.org>
4255         * configure.tgt: Add arm-openbsd target.
4257 2001-09-12  H.J. Lu  <hjl@gnu.org>
4259         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
4260         eelf64lppc.o to ...
4261         (ALL_64_EMULATIONS): Here.
4262         * Makefile.in: Regenerated.
4264 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4266         * emultempl/pe.em(make_import_fixup): change signature to
4267         take asection as well as arelec; we need this for proper
4268         error reporting.  Only call pe_create_import_fixup() if
4269         there is no attempt to add a constant addend to the reloc;
4270         otherwise, report error condition.
4271         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
4272         since final argument is a pointer to make_import_fixup().
4273         Change call to cb() to match make_import_fixup() signature.
4274         (make_import_fixup_mark): make buffer_len unsigned.
4275         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
4277 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
4279         * ld.texinfo: add verbose documentation for auto-import
4280         direct-addressing workaround, to compliment the terse
4281         error message.
4283 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
4285         * scripttempl/v850.sc: Add gcc_except_table sections.
4287 2001-09-11  Jeffrey A Law  (law@cygnus.com)
4289         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
4290         * emulparams/h8300self.sh: Similarly.
4292 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
4294         * ld.texinfo (Options, --stack): Correct default value for stack
4295         reserve.
4297 2001-09-05  Tom Rix <trix@redhat.com>
4299         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
4301 2001-09-03  Andreas Jaeger  <aj@suse.de>
4303         * emultempl/beos.em: Declare prototypes for comparions functions,
4304         adjust definitions.
4306 2001-09-02  Andreas Jaeger  <aj@suse.de>
4308         * emultempl/aix.em: Add missing prototype.
4309         * emultempl/lnk960.em: Likewise.
4310         * emultempl/vanilla.em: Likewise.
4311         * emultempl/armcoff.em: Likewise.
4312         * emultempl/armelf_oabi.em: Likewise.
4313         * emultempl/beos.em: Likewise.
4314         * emultempl/gld960c.em: Likewise.
4315         * emultempl/gld960.em: Likewise.
4317         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
4318         for prototype declaration.
4320 2001-08-31  Eric Christopher  <echristo@redhat.com>
4321             Jason Eckhardt  <jle@redhat.com>
4323         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
4325 2001-08-31  Andreas Jaeger  <aj@suse.de>
4327         * emultempl/pe.em: Add missing prototypes.
4328         (gld_${EMULATION_NAME}_after_open): Remove extra args to
4329         pe_find_data_imports.
4330         (pr_sym): Add unused attribute.
4332 2001-08-29  Joel Sherrill <joel@OARcorp.com>
4334         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
4335         default from coff to elf.
4337 2001-08-29  Jeff Law <law@redhat.com>
4339         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
4340         ARCH specification.
4341         * emulparams/h8300self.sh: Similarly.
4343 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
4345         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
4346         eh8300self.o .
4347         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
4348         * configure.tgt (h8300-*-elf*): New case.
4349         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
4350         * emulparams/h8300self.sh: New file.
4351         * Makefile.in: Regenerated.
4353 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
4355         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
4356         with macro name.
4358 2001-08-27  Linus Nordberg  <linus@swox.com>
4359             Alan Modra  <amodra@bigpond.net.au>
4361         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
4362         (eelf64ppc.c, eelf64lppc.c): Add make targets.
4363         Run "make dep-am"
4364         * Makefile.in: Regenerate.
4365         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
4366         entries to correct alphabetical position.
4367         * emulparams/elf64ppc.sh: New.
4368         * emulparams/elf64lppc.sh: New.
4370 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
4372         * ldmain.c (main): Declare BSIZE as static.
4374 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
4376         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4377         into .rel.dyn resp. .rela.dyn if combreloc.
4378         (get_script): If .x linker script is equal to .xn, only put it
4379         once into the binary.
4380         Add .xc and .xsc scripts.
4381         (parse_args): Handle -z combreloc and -z nocombreloc.
4382         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
4383         For .xc and .xsc scripts put all .rel* or .rela* input sections
4384         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
4385         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
4386         is elf.
4387         Strip trailing whitespace from script.
4388         Generate .xc and .xsc scripts if requested.
4389         * ldmain.c (main): Initialize link_info.combreloc and
4390         link_info.spare_dynamic_tags.
4391         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
4392         (ld_options): Add --spare-dynamic-tags option.
4393         (parse_args): Likewise.
4394         * ld.texinfo: Document -z combreloc and -z nocombreloc.
4395         * ldint.texinfo: Document .xc and .xsc linker scripts.
4396         * NEWS: Add notes about -z combreloc and SHF_MERGE.
4398 2001-08-22  H.J. Lu  <hjl@gnu.org>
4400         * emulparams/elf32fr30.sh: Add a newline.
4402 2001-08-21  Andreas Jaeger  <aj@suse.de>
4404         * deffilep.y: Add missing prototypes.
4405         * pe-dll.c: Likewise.
4407 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
4409         * ldlang.c (insert_pad): Fix typos in last patch.
4411         * ldlang.c: When traversing lang_statement_union_type lists,
4412         consistently use "header.next" rather than "next".
4413         * mpw-eppcmac.c: Likewise.
4414         * emultempl/beos.em: Likewise.
4415         * emultempl/hppaelf.em: Likewise.
4416         * emultempl/pe.em: Likewise.
4417         * ldlang.h (union lang_statement_union): Remove "next" field.
4419         * ldlang.c (insert_pad): Use offsetof macro.
4420         (lang_size_sections): Always neuter padding statements.
4421         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4423         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4424         passed to lang_size_sections.
4425         (pe_exe_fill_sections): Likewise.
4426         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4427         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4429 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
4431         * emultempl/aix.em: Formatting fixes.
4433 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
4435         * ldlang.c (insert_pad): Make use of an existing pad statement if
4436         available.  Move code calculating alignment, adjusting section
4437         alignment power, and adjusting dot to ..
4438         (size_input_section): .. here.  Remove unused relax param.
4439         (lang_size_sections): Change boolean `relax' param to boolean *.
4440         Adjust call to size_input_section.  Make use of insert_pad to
4441         place pad after the assignment statement.  If relaxing, zap
4442         padding statements.
4443         (reset_memory_regions): Reset output_bfd section sizes too.
4444         (relax_again): Move to..
4445         (lang_process): ..here.  Adjust call to lang_size_sections, and
4446         remove duplicated code.
4447         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4449 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
4451         * ld.texinfo: Document that fill values now use the four least
4452         significant bytes.
4453         * emulparams/elf32fr30.sh (NOP): Update.
4454         * emulparams/elf32mcore.sh: Likewise.
4455         * emulparams/elf64_s390.sh: Likewise.
4456         * emulparams/elf_i386.sh: Likewise.
4457         * emulparams/elf_i386_be.sh: Likewise.
4458         * emulparams/elf_i386_chaos.sh: Likewise.
4459         * emulparams/elf_i386_ldso.sh: Likewise.
4460         * emulparams/elf_s390.sh: Likewise.
4461         * emulparams/elf_x86_64.sh: Likewise.
4462         * emulparams/i386moss.sh: Likewise.
4463         * emulparams/i386nw.sh: Likewise.
4464         * emulparams/m68kelf.sh: Likewise.
4465         * scripttempl/elf.sc: Update NOP comment.
4466         * scripttempl/elfi370.sc: Likewise.
4467         * scripttempl/elfm68hc11.sc: Likewise.
4468         * scripttempl/elfm68hc12.sc: Likewise.
4469         * scripttempl/nw.sc: Likewise.
4471 2001-08-15  Tom Rix <trix@redhat.com>
4473         * ldgram.y (saved_script_handle): Initialize to NULL.
4474         * ldmain.c (main): Change check on saved_script_handle.
4476 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
4478         * emultempl/elf32.em: Formatting fixes.
4479         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
4480         looking at sec->owner.
4481         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4482         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
4483         unused code, and reorganize orphan section placement code.
4485         * ldlang.c (wild_doit): Rename to lang_add_section.
4486         * ldlang.h: Here too.
4487         * mpw-elfmips.c: And here.
4488         * emultempl/beos.em: And here.
4489         * emultempl/elf32.em: And here.
4490         * emultempl/hppaelf.em: And here.
4491         * emultempl/pe.em: And here.
4493 2001-08-13  Richard Henderson  <rth@redhat.com>
4495         * emultempl/needrelax.em: New file.
4496         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4497         * Makefile.am (eelf64_ia64.c): Depend on it.
4498         * Makefile.in: Rebuild.
4500 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
4502         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4503         output_section is set non-NULL.
4505         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4506         `true' for SEC_EXCLUDE sections so that the generic code doesn't
4507         needlessly create an output_section_statement.  Treat a correctly
4508         named output_section_statement with NULL bfd_section as compatible.
4510 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
4512         * emultempl/generic.em: Support EXTRA_EM_FILE.
4513         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4514         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4515         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4516         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4517         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4518         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4519         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4520         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4521         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4522         LDEMUL_FIND_POTENTIAL_LIBRARIES.
4524 2001-08-12  Richard Henderson  <rth@redhat.com>
4526         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4527         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4528         scripttempl/v850.sc: Keep .jcr data.
4530 2001-08-12  H.J. Lu  <hjl@gnu.org>
4531             Andrew Haley  <aph@cambridge.redhat.com>
4532             Nick Clifton  <nickc@redhat.com>
4534         * ldgram.y (had_script): Change name to saved_script_handle.
4535         Change type to file handle.
4536         * ld.h (had_script): Rename and retype.
4537         * ldfile.c (ldfile_open_command_file): Save the file handle
4538         used in saved_script_handle.
4539         * lexsup.c (parse_args): Do not allow -c option to alter
4540         saved_script_handle.
4541         * ldmain.c (main): Print out the linker script used if
4542         --verbose is given.  Check saved_script_handle to obtain the
4543         external linker script used, or if NULL, dump the builtin
4544         script.
4545         * ld.texinfo: Document that --verbose now dumps the linker
4546         script used, regardless of whether it was an internal or an
4547         external script.
4549 2001-08-10  Andreas Jaeger  <aj@suse.de>
4551         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4552         to build warnings.
4553         * configure: Regenerate.
4555 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
4557         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4559         * scripttempl/elf.sc: Move non-text .dynamic section before
4560         .plt/.got/.sdata* group.
4561         (OTHER_GOT_SECTIONS): Move to immediately after .got.
4562         (OTHER_SDATA_SECTIONS): Add.
4563         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4564         OTHER_GOT_SECTIONS.
4565         * emulparams/crislinux.sh: Likewise.
4566         * emulparams/elf32b4300.sh: Likewise.
4567         * emulparams/elf32bmip.sh: Likewise.
4568         * emulparams/elf32bmipn32.sh: Likewise.
4569         * emulparams/elf32bsmip.sh: Likewise.
4570         * emulparams/elf32btsmip.sh: Likewise.
4571         * emulparams/elf32ebmip.sh: Likewise.
4572         * emulparams/elf32elmip.sh: Likewise.
4573         * emulparams/elf32l4300.sh: Likewise.
4574         * emulparams/elf32lmip.sh: Likewise.
4575         * emulparams/elf32lsmip.sh: Likewise.
4576         * emulparams/elf32ltsmip.sh: Likewise.
4577         * emulparams/elf64bmip.sh: Likewise.
4578         * emulparams/elf64btsmip.sh: Likewise.
4579         * emulparams/elf64ltsmip.sh: Likewise.
4581 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
4583         * genscripts.sh: Source the emulparams script before each output
4584         script is generated so that variables like `RELOCATING' may affect
4585         variables defined in the emulparams script.
4587 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
4589         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4590         order.
4592         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4593         ie. iterate over wild_statement.section_list.
4594         (gld${EMULATION_NAME}_place_orphan): Likewise.
4596 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4598         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4599         .fini[0-4] sections used by _exit
4600         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4601         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4602         * scripttempl/elfm68hc11.sc: Likewise.
4604 2001-08-03  H.J. Lu  <hjl@gnu.org>
4606         * emultempl/beos.em (init): Add the missing initialization.
4608 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
4610         * ld.texinfo (Input Section Basics): Clarify ordering of output
4611         sections.
4612         * ldlang.c (callback_t): Add wildcard_list param.
4613         (walk_wild_section): Remove "section" param.  Rewrite for
4614         lang_wild_statement_type change.  Remove unique_section_p test.
4615         (walk_wild_file): Remove "section" param.
4616         (walk_wild): Remove "section" and "file" params.
4617         (lang_gc_wild): Likewise.
4618         (wild): Likewise.  Modify for lang_wild_statement_type change.
4619         (wild_sort): Likewise.  Add "sec" param.
4620         (gc_section_callback): Likewise.
4621         (output_section_callback): Likewise.  Do unique_section_p test.
4622         (map_input_to_output_sections): Modify call to wild.
4623         (lang_gc_sections_1): Likewise.
4624         (print_wild_statement): Modify for lang_wild_statement_type
4625         change.
4626         (lang_add_wild): Replace filename, filenames_sorted param with
4627         filespec.  Replace section_name, sections_sorted,
4628         exclude_filename_list with section_list.
4629         * ldlang.h (lang_add_wild): Here too.
4630         (lang_wild_statement_type): Replace section_name, sections_sorted,
4631         and exclude_filename_list with section_list.
4632         * ldgram.y (current_file): Delete.
4633         (%union): Add wildcard_list.
4634         (file_NAME_list): Set type to wildcard_list.  Build a linked list
4635         rather than calling lang_add_wild for each entry.
4636         (input_section_spec_no_keep): Call lang_add_wild here instead.
4637         * ld.h (struct wildcard_list): Declare.
4638         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4640 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
4642         * ldmain.c (main): initialize link_info.pei386_auto_import
4643         * pe-dll.c: new tables for auto-export filtering
4644         (auto_export): change API, pass abfd for contextual filtering.
4645         Loop thru tables of excluded symbols instead of comparing
4646         "by hand".
4648 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
4650         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4651         static variable current_sec (static struct sec *). Add
4652         forward declaration for add_bfd_to_link.
4653         (process_def_file): Don't export undefined symbols. Do not
4654         export symbols starting with  "_imp__".  Call auto_export()
4655         with new API.
4656         (pe_walk_relocs_of_symbol): New function.
4657         (generate_reloc): add optional extra debugging
4658         (pe_dll_generate_def_file): eliminate extraneous initial blank
4659         line in output
4660         (make_one): enlarge symtab to make room for __nm__ symbols
4661         (DATA auto-import support).
4662         (make_singleton_name_thunk): New function.
4663         (make_import_fixup_mark): New function.
4664         (make_import_fixup_entry): New function.
4665         (pe_create_import_fixup): New function.
4666         (add_bfd_to_link): Specify that 'name' argument is a CONST
4667         char *.
4668         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4669         declare new functions pe_walk_relocs_of_symbol and
4670         pe_create_import_fixup.
4671         * emultempl/pe.em: add new options --enable-auto-import,
4672         --disable-auto-import, and --enable-extra-pe-debug.
4673         (make_import_fixup): New function.
4674         (pe_find_data_imports): New function.
4675         (pr_sym): New function.
4676         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4677         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
4678         CODE.
4680 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
4682         * ld.texinfo: add additional documentation for
4683         --export-all-symbols.  Document --out-implib,
4684         --enable-auto-image-base, --disable-auto-image-base,
4685         --dll-search-prefix, --enable-auto-import, and
4686         --disable-auto-import.
4687         * ldint.texinfo: Add detailed documentation on auto-import
4688         implementation.
4690 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
4692         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4693         example.
4695 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
4697         * Makefile.am: Update dependencies with "make dep-am".
4698         * Makefile.in: Regenerate
4700 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
4702         * ldcref.c (check_section_sym_xref): New function.
4703         (check_nocrossrefs): Call it.
4704         (check_nocrossref): Interate over h->refs here instead of..
4705         (check_refs): ..here.  Pass in the symbol name, section, and bfd
4706         rather than hash_entry pointers.
4707         (struct check_refs_info): Keep symbol name rather than hash entry.
4708         Remove "same".
4709         (check_reloc_refs): Tweak for above changes in check_refs_info.
4710         Only report references to section syms when symname is NULL to
4711         prevent duplicate messages for the same reloc.
4713 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
4715         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4716         available.  Do not print NULL trees.
4717         (exp_print_token): Print unknown tokens with values > 126 as
4718         decimal values not ASCII characters.
4720         * ldlang.c (lang_leave_overlay): If a region is specified assign
4721         it to all sections inside the overlay unless they have been
4722         assigned to the own, non-default, memory region.
4724         * README: Add header for consistency with other README files.
4726 2001-07-14  H.J. Lu  <hjl@gnu.org>
4728         * emultempl/elf32.em (output_prev_sec_find): Never return
4729         bfd_abs_section_ptr, bfd_com_section_ptr nor
4730         bfd_und_section_ptr.
4732 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
4734         * Makefile.am (em32relf.c): Change dependency from generic.em to
4735         elf32.em.
4736         * Makefile.in: Regenerate.
4738 2001-07-14  matthew green  <mrg@eterna.com.au>
4740         * configure.tgt (i386-*-netbsdelf*): New target.
4741         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4743 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
4745         * emultempl/elf32.em (output_prev_sec_find): New.
4746         (place_orphan): Use it.
4748 2001-07-11  H.J. Lu  <hjl@gnu.org>
4750         * ldmain.c (main): Fix typos in the last change.
4752 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
4754         * ldmain.c (main): Disallow -F and -f without -shared.
4756 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
4758         * emultempl/pe.em (after_open): Check for the output_bfd not
4759         having any coff_data structure allocated to it.
4761 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
4763         * emultempl/elf32.em: Do not assuming that contents of the buffer
4764         returned from basename function will remain unchanged accross other
4765         function calls.
4767 2001-07-03  H.J. Lu  <hjl@gnu.org>
4769         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4770         2001-07-03. It creates dynamic entries even for static binaries.
4772 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
4774         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4775         (DYNAMIC): Use it to reserve few dynamic entries for
4776         post-linking tools.
4778 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
4780         * emulparams/hppa64linux.sh: New file.
4781         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4782         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4783         (ehppa64linux.c): Add rule to make it.
4784         Run "make dep-am".
4785         * Makefile.in: Regenerate.
4787 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
4789         * ld.texinfo (Options, -r): Mention restrictions when using
4790         different object formats.
4792 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
4794         * ldlang.c (lang_check): Emit fatal error if relocatable link
4795         between different object flavours with relocations in input.
4797 2001-06-19  H.J. Lu  <hjl@gnu.org>
4799         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4800         (--version-script): Mention the language support.
4802 2001-06-19  H.J. Lu <hjl@gnu.org>
4804         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4806 2001-06-18  H.J. Lu <hjl@gnu.org>
4808         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4809         (diststuff): Add $(MANS).
4810         * Makefile.in: Regenerated.
4812         * ld.1: Removed.
4814 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
4816         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4817         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4818         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4819         * ld.h (args_type): Remove member export_dynamic.  All users
4820         changed to use struct bfd_link_info member.
4822         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4823         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4824         * Makefile.in: Regenerate.
4826 2001-06-18  H.J. Lu  <hjl@gnu.org>
4828         * ldlang.c (init_os): Add the newline to the einfo call.
4829         (lang_check): Likewise.
4830         (lang_do_version_exports_section): Likewise.
4832 2001-06-15  H.J. Lu  <hjl@gnu.org>
4834         * lexsup.c (parse_args); Save optind to report unrecognized
4835         option.
4837 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
4839         * ldlang.c (lang_check): Emit fatal error if relocatable link
4840         between different object flavours.
4842         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4843         Set new link_info member export_dynamic.
4844         * ldmain.c (main): Initialize new link_info member export_dynamic.
4846 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
4848         * ldlang.c (walk_wild): Only call walk_wild_file if
4849         lookup_name returns something.
4850         (lookup_name): If load_symbols fails, return NULL.
4851         (load_symbols): Change to a boolean function.
4852         (open_input_bfds): If load_symbols fails then do not make the
4853         executable.
4855 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
4857         * ldlang.c (record_bfd_errors): Remove.
4859         * emultempl/aix.em: Fix copyright dates.
4861 2001-06-07  Andreas Jaeger  <aj@suse.de>
4863         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4864         (TEXT_START_ADDR): Likewise.
4866 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
4868         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4870 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4872         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4874 2001-05-31  H.J. Lu  <hjl@gnu.org>
4876         * ldlang.c (open_input_bfds): Don't change the bfd error
4877         handler whilst loading symbols.
4879 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
4881         * configure.tgt: Remove i370-mvs architecture, it is not currently
4882         supported.
4884 2001-05-25  H.J. Lu  <hjl@gnu.org>
4886         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4887         like emulparams/aixppc.sh.
4889 2001-05-25  H.J. Lu  <hjl@gnu.org>
4891         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4892         setting of output_filename after bfd_scan_arch.
4893         * emultempl/pe.em: Likewise.
4895 2001-05-25  H.J. Lu  <hjl@gnu.org>
4897         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4898         like emulparams/aixppc.sh.
4900         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4901         instead of ${srcdir}/emultempl/stringify.sed.
4903 2001-05-25  Timothy Wall  <twall@oculustech.com>
4905         * emulparams/elf64_aix.sh: Change settings to match IBM linker
4906         output.
4908 2001-05-25  Alan Modra  <amodra@one.net.au>
4910         * configure.host: Replace linuxoldld with linux*oldld.
4911         * configure.tgt: Likewise.
4913 2001-05-24  H.J. Lu  <hjl@gnu.org>
4915         * emultempl/stringify.sed: Removed again.
4917 2001-05-24  H.J. Lu  <hjl@gnu.org>
4919         * emultempl/aix.em (OUTPUT_ARCH): Defined.
4920         (gld${EMULATION_NAME}_before_parse): Initialize
4921         ldfile_output_architecture, ldfile_output_machine and
4922         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4923         * emultempl/beos.em: Likewise.
4924         * emultempl/elf32.em: Likewise.
4925         * emultempl/linux.em: Likewise.
4926         * emultempl/mipsecoff.em: Likewise.
4927         * emultempl/pe.em: Likewise.
4928         * emultempl/sunos.em: Likewise.
4930 2001-05-24 Tom Rix <trix@redhat.com>
4932         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4933         udate import file format.
4934         (change_symbol_mode) New, same
4935         (is_syscall) New, same
4936         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4937         * emulparams/aixppc64.sh : same
4938         * emulparams/aixrs6.sh : same
4939         * emulparams/ppcmacos.sh : same
4940         * emultempl/aix.em : use strtoull to parse options
4941         * Makefile.am : add eaixppc64 emulation for xcoff64
4942         * Makefile.in : same
4943         * configure.tgt : same
4945         * scripttempl/aix.sc : default text section offset to 0x10000000
4946         default data section offset to 0x20000000
4947         add .sv3264 and .sv64 pseudo sections
4948         loader and debug sections use the currect section offset.
4950         * emultempl/aix.em : Add xcoff64 support
4951         Add -binitfini support
4952         (gld${EMULATION_NAME}_before_parse) -binitfini
4953         (gld${EMULATION_NAME}_parse_args) same
4954         (gld${EMULATION_NAME}_before_allocation) format change for special
4955         sections
4957         * emulparams/aixppc64.sh : New file for xcoff64 support
4959 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
4961         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4962         variable to avoid non-portable shell construct.
4964 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4966         * ldmain.c (get_emulation): Add -mips5 command line argument.
4968 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
4970         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4971         (ELF_INTERPRETER_NAME): Define it.
4972         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4973         it.
4974         * configure.tgt (targ_emul, targ_extra_emuls)
4975         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4976         as primary, elf_i386 as extra.
4977         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4978         (eelf_i386_ldso.c): New rule.
4979         * Makefile.in: Rebuilt.
4981 2001-05-22  Nick Clifton  <nickc@redhat.com>
4983         * lexsup.c (ld_options): Allow -I to be an alias for
4984         --dynamic-linker.  This is for Solaris compatability.
4985         * ld.texinfo: Document that -I can be used.
4986         * ld.1: Regenerate.
4988 2001-05-16  Alan Modra  <amodra@one.net.au>
4990         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4991         whether an input section is the first one assigned to an output
4992         section.
4993         Assorted formatting fixes.
4995 2001-05-14  DJ Delorie  <dj@delorie.com>
4997         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4998         * Makefile.in: Ditto.
5000 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
5002         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
5003         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
5004         output sections.
5005         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
5007 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
5009         * ldlang.c (lang_process): Call bfd_merge_sections.
5011 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5013         * ldgram.y: Fix typo.
5015 2001-05-03  H.J. Lu  <hjl@gnu.org>
5017         * emultempl/elf32.em: Include "libiberty.h".
5018         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
5019         basename of the bfd filename.
5020         (gld${EMULATION_NAME}_stat_needed): Likewise.
5021         (gld${EMULATION_NAME}_try_needed): Likewise.
5022         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
5024 2001-05-02  H.J. Lu  <hjl@gnu.org>
5026         * emultempl/pe.em: Include <ctype.h>.
5028 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
5030         * emulparams/elf32openrisc.sh: New file.
5032         * Makefile.am: Add OpenRISC target.
5033         * Makefile.in: Regenerated.
5035         * configure.tgt: Add openrisc-*-* mapping.
5037 2001-05-02  Nick Clifton  <nickc@redhat.com>
5039         * emultempl/aix.em: Replace buystring with xstrdup.
5040         * emultempl/beos.em: Replace buystring with xstrdup.
5042 2001-05-02  H.J. Lu  <hjl@gnu.org>
5044         * ldfile.c: Include "libiberty.h".
5045         * ldlex.l: Likewise.
5047         * ldmisc.c (buystring): Removed.
5048         * ldmisc.h: Likewise.
5050         * ldfile.c: Replace buystring with xstrdup.
5051         * ldlang.c: Likewise.
5052         * ldlex.l: Likewise.
5053         * ldmain.c: Likewise.
5054         * ldmisc.c: Likewise.
5055         * lexsup.c: Likewise.
5056         * mpw-eppcmac.c: Likewise.
5058 2001-04-30  Andreas Jaeger  <aj@suse.de>
5060         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
5062 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5064         * ldlang.c (load_symbols): Give emulation a chance
5065         to process unrecognized file before fatal error is
5066         reported, not after.
5068 2001-04-27  Sean McNeil <sean@mcneil.com>
5070         * configure.tgt: Add arm-vxworks target.
5071         * scripttempl/armcoff.sc: Support .text or .data as a section name
5072         prefix.
5073         Define _etext.
5075 2001-04-13  J.T. Conklin  <jtc@redback.com>
5077         * ld.texinfo: Document --fatal-warnings.
5078         * ld.1: Regenerate.
5080         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
5081         warnings have been turned into errors.
5082         * lexsup.c (OPTION_WARN_FATAL): Define.
5083         (ld_options): Entry for --fatal-warnings.
5084         (parse_args): Handle OPTION_WARN_FATAL.
5085         * ld.h (ld_config_type): Add fatal_warnings field.
5087 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
5089         * ldmain.c (main): Default to discard_sec_merge.
5090         * lexsup.c (OPTION_DISCARD_NONE): Define.
5091         (ld_options): Add --discard-none.
5092         (parse_args): Handle OPTION_DISCARD_NONE.
5093         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
5094         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
5095         all its input sections match.
5097 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
5099         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
5100         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
5101         (eelf32ltsmip.c): New target.
5102         (eelf64btsmip.c): Likewise.
5103         (eelf64ltsmip.c): Likewise.
5104         * Makefile.in: Regenerated.
5106         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
5107         target.
5108         (mips*-*-linux-gnu*): Likewise.
5110         * emulparams/elf32ltsmip.sh: New. Traditional little endian
5111         MIPS taget.
5112         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
5113         target.
5114         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
5115         endian target.
5117 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
5119         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
5120         correct value of __Stext here.
5121         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
5122         .startup section.
5124         * emulparams/crislinux.sh: Remove FIXME.
5126 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
5128         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
5129         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
5131 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
5133         * configure.tgt (cris-*-*): Change default emulation to criself.
5134         (cris-*-*aout*): New rule.
5136 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
5138         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
5139         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
5141 2001-03-26  Andreas Jaeger  <aj@suse.de>
5143         * ld.texinfo (Overview): Fix syntax in texi code.
5145 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5147         * ld.texinfo: Put @c man indications to generate the ld man page.
5148         When generating man, define all the variables.  Define SEEALSO
5149         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
5150         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
5151         (ld.1): Generate from ld.texinfo.
5152         * Makefile.in: Regenerate.
5154 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
5156         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
5157         and '-fdata-sections'. Set the VMA of STABS sections to zero.
5159 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
5161         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
5162         is an absolute path look only for this file and not along the path.
5164 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
5166         * emultempl/elf32.em (OPTION_GROUP): New macro.
5167         Add new option Bgroup to longopts.
5168         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
5169         (gld*_list_options): Add -Bgroup and -z defs.
5170         * ld.1: Document -Bgroup and -z defs.
5171         * ld.texinfo: Likewise.
5173 2001-03-07  Michael Meissner  <meissner@redhat.com>
5175         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
5176         with sections created by -fdata-sections.
5177         (.dynbss,.bss): Ditto.
5179 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
5181         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
5182         after_allocation_default, not gld..._before_allocation.
5184 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
5186         * configure.in (BFD_VERSION): New.
5187         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
5188         * configure: Regenerate.
5189         * Makefile.am: Run "make dep-am"
5190         * Makefile.in: Regenerate.
5192 2001-02-26  Timothy Wall  <twall@cygnus.com>
5194         * emulparams/elf64_aix.sh: Add additional read-only sections;
5195         uncomment lines which are now required.
5197 2001-02-26  H.J. Lu  <hjl@gnu.org>
5199         * ldlang.c (open_input_bfds): Set the bfd error handler so
5200         that problems can be caught whilst loading symbols.
5201         (record_bfd_errors): New function: Report BFD errors and mark
5202         the executable output as being invalid.
5204 2001-02-22  Timothy Wall  <twall@cygnus.com>
5206         * configure.host: Add configuration for ia64-*-aix*.
5207         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
5208         Add dependencies for eelf64_aix.c.
5209         * Makefile.in: Regenerate.
5210         * configure.tgt: Add ia64-*-aix* mapping.
5211         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
5213 2001-02-20  H.J. Lu  <hjl@gnu.org>
5215         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
5216         false if we found the file.
5218 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
5220         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
5221         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
5223 2001-02-18  lars brinkhoff  <lars@nocrew.org>
5225         * Makefile.am: Add PDP-11 target.
5226         * configure.tgt: Likewise.
5227         * emulparams/pdp11.sh: New file.
5229 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
5231         * configure.host: Add a generic FreeBSD configuration entry such that
5232         all [modern] FreeBSD systems on all platforms will look the same.
5234 2001-02-14  H.J. Lu  <hjl@gnu.org>
5236         * configure.tgt: Remove mention of earmelf_linux26.
5238 2001-02-13  Richard Henderson  <rth@redhat.com>
5240         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
5242 2001-02-13  H.J. Lu  <hjl@gnu.org>
5244         * ldexp.h (node_type): Add etree_provided.
5245         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
5246         type to etree_provided if defined by PROVIDE. Allow updating
5247         for etree_provided.
5248         (exp_print_tree): Handle etree_provided.
5249         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
5250         etree_provided.
5252 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
5254         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
5255         .IA_64.unwind.* pattern to unwind table section and
5256         .IA_64.unwind_info* pattern to unwind info section.
5258 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5260         * Makefile.am: Add linux target for S/390.
5261         * Makefile.in: Likewise.
5262         * configure.host: Likewise.
5263         * configure.tgt: Likewise.
5264         * emulparams/elf64_s390.sh: New file.
5265         * emulparams/elf_s390.sh: New file.
5267 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
5269         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
5270         targ_extra_libpath.
5271         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
5273 2001-02-06  Philip Blundell  <philb@gnu.org>
5275         * Makefile.am: Remove mention of earmelf_linux26.
5276         * Makefile.in: Regenerate.
5278 2001-02-04  Philip Blundell  <philb@gnu.org>
5280         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
5281         * emulparams/armelf_linux26.sh: Delete.
5282         * configure.tgt: Remove mention of armelf_linux26 emulation.
5284 2001-02-01  Nick Clifton  <nickc@redhat.com>
5286         * ld.1: Replace occurances of -oformat with --oformat.
5288 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
5290         * ldlang.c (lang_leave_overlay): Don't set lma_region when
5291         load_base is specified.
5293 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
5295         * emultempl/elf32.em: Correct spelling in comments and listed
5296         options.
5298 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
5300         * ldlang.c (lang_leave_overlay): Only set lma_region from the
5301         default for the first section of a group of overlay sections.
5303 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
5305         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
5306         * Makefile.in: Regenerate.
5307         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
5308         Check for null tool_dir.
5310 2001-01-16  Jim Wilson  <wilson@redhat.com>
5312         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
5313         and IA_64.unwind.info.
5315 2001-01-16  H.J. Lu  <hjl@gnu.org>
5317         * ldlang.c (lang_check): Merge the private data only if the
5318         input file has contents.
5320 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
5322         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
5324         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
5325         enabling search for libmilli.  On a relocatable link, make .text
5326         sections unique.
5327         (LDEMUL_AFTER_PARSE): Define.
5328         (hppaelf_finish): Correct spelling of relocatable in comments.
5330         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5331         rummage through the script for sections on the unique list.
5332         Correct length of strncmp for ".note".
5333         (gld${EMULATION_NAME}_check_needed): Rearrange function.
5335         * ldlang.c (unique_section_list): New var.
5336         (unique_section_p): New function.
5337         (walk_wild_section): Don't match sections on unique_section_list.
5338         (lang_add_unique): New function.
5339         Correct spelling of relocatable in comments.
5341         * ldlang.h (struct unique_sections): Declare.
5342         (unique_section_list): Declare.
5343         (unique_section_p): Declare.
5344         (lang_add_unique): Declare.
5346         * lexsup.c (ld_options): Allow --unique to take an optional arg.
5347         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
5349         * ld.texinfo (--unique): Update.
5351 2001-01-13  Nick Clifton  <nickc@redhat.com>
5353         * lexsup.c (parse_args): Remove spurious white space.
5355 2001-01-12  Nick Clifton  <nickc@redhat.com>
5357         * lexsup.c (parse_args): Update copyright date.
5359 2001-01-12  Philip Blundell  <pb@futuretv.com>
5361         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
5363 2001-01-10  Kazu Hirata  <kazu@hxi.com>
5365         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
5366         * scripttempl/h8300h.sc: Fix formatting.
5367         * scripttempl/h8300s.sc: Likewise.
5368         * scripttempl/h8500.sc: Likewise.
5369         * scripttempl/h8500b.sc: Likewise.
5370         * scripttempl/h8500c.sc: Likewise.
5371         * scripttempl/h8500m.sc: Likewise.
5372         * scripttempl/h8500s.sc: Likewise.
5374 2000-01-07  David O'Brien  <obrien@BSDi.com>
5376         * emultempl/elf32.em: Only perform Linux ld hints processing when
5377         targeting Linux.
5379 2001-01-07  Philip Blundell  <philb@gnu.org>
5381         * ld.texinfo (Bug Reporting): Update email address for reports.
5383 2000-12-31  Nick Clifton  <nickc@redhat.com>
5385         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
5386         options by checking for a return value of '?' not -1.
5388 2000-12-28  Nick Clifton  <nickc@redhat.com>
5390         * lexsup.c (struct ld_option): Add new enum value:
5391         EXACTLY_TWO_DASHES.
5392         (ld_options[]): Change -omagic, -output and -oformat options
5393         to be EXACTLY_TWO_DASHES.
5394         (OUTPUT_COUNT): Use ARRAY_SIZE.
5395         (parse_args): Change parameter 'argc' to unsigned.
5396         Place EXACTLY_TWO_DASHES options into new really_longopts
5397         array.
5398         If getopt_long_only fails, try calling getopt_long using the
5399         really_longopts array.
5400         (help): Print a double dash for both EXACTLY_TWO_DASHES and
5401         TWO_DASHES options.
5403         * ldlex.h: Fix prototype of parse_args.
5405         * ld.texinfo: Document that long options starting with 'o'
5406         must be preceeded by two dashes.  Change example of a single
5407         dashed long option from -oformat to -trace-symbol.
5409 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5411         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5412         (longopts[]): New --no-default-excludes option.
5413         (gld_${EMULATION_NAME}_list_options): Document.
5414         (gld_${EMULATION_NAME}_parse_args): Handle.
5416 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5418         * ldlang.c (new_stat): Revert the last beautification with "innocent"
5419         whitespace, it breaks the K&R C preprocessor.
5421 2000-12-11  DJ Delorie  <dj@redhat.com>
5423         * ld.texinfo: Add notes about --whole-archive and gcc.
5425 2000-11-18  Fred Fish  <fnf@be.com>
5427         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5428         (ld_options): Entry for --allow-shlib-undefined.
5429         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5430         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5431         to false.
5432         * ld.texinfo: Document new command line switch.
5434 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
5436         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5437         .fixup is actually read/write.
5438         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5439         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5440         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5442 2000-12-11  Jan Hubicka  <jh@suse.cz>
5444         * NEWS: Add note about x86_64 architecture.
5446 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
5448         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5449         Set DWARF2 sections to a VMA of zero.
5451 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
5453         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5454         New targets.
5455         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5456         (sparc*-*-rtems*): Switched from a.out to ELF.
5458 2000-11-30  Jan Hubicka  <jh@suse.cz>
5460         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5461         (eelf_x86_64.c): New.
5462         * Makefile.in: Regenerate.
5463         * configure.tgt: Add support for x86_64-*-linux-gnu*.
5464         * emulparams/elf_x86_64.sh: New.
5466 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
5468         * emulparams/crislinux.sh (ENTRY): Change back to _start.
5469         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5471         * scripttempl/crisaout.sc: Change all RELOCATING not related to
5472         merging non-a.out sections into CONSTRUCTING.
5474 2000-11-28  Nick Clifton  <nickc@redhat.com>
5476         * ld.1 (COPYING): Mention that the GNU Free Documentation
5477         License is present in the sources, but not the output, and
5478         also available from the GNU website.
5479         (GNU Free Documentation License): Comment out this section.
5481 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
5483         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5484         does not use them.
5486 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
5488         * ld.1: Remove old date so it does not give the impression the manpage
5489         is way out of date.
5491 2000-11-24  Nick Clifton  <nickc@redhat.com>
5493         * configure.tgt (xscale-coff): Add target.
5494         (xscale-elf): Add target.
5496 2000-11-24  Fred Fish  <fnf@be.com>
5498         * ldmain.c (main): Remove redundant init of config.make_executable
5499         to true.
5501 2000-11-15  Richard Henderson  <rth@redhat.com>
5503         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5505 2000-11-14  Kazu Hirata  <kazu@hxi.com>
5507         * scripttempl/h8300.sc: Fix formatting.
5508         * scripttempl/h8300h.sc: Likewise.
5509         * scripttempl/h8300s.sc: Likewise.
5511 2000-11-14  Denis Chertykov  <denisc@overta.ru>
5513         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5515 2000-11-09  Philip Blundell  <pb@futuretv.com>
5517         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5518         around orphan sections whose names can be represented in C.
5520 2000-11-07  Jim Wilson  <wilson@redhat.com>
5522         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5523         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
5525 2000-11-06  Nick Clifton  <nickc@redhat.com>
5527         * ld.texinfo: Add GNU Free Documentation License.
5528         * ldint.texinfo: Add GNU Free Documentation License.
5529         * ld.1: Add GNU Free Documentation License.
5531 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
5533         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5534         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5536         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5537         Move 2000-11-02 Makefile.in changes to this file.
5538         * Makefile.in: Regenerate.
5540 2000-11-03  Nick Clifton  <nickc@redhat.com>
5542         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5543         constructors and destructors.
5544         * scripttempl/h8300h.sc: Ditto.
5545         * scripttempl/h8300s.sc: Ditto.
5546         * scripttempl/h8500.sc: Ditto.
5547         * scripttempl/h8500b.sc: Ditto.
5548         * scripttempl/h8500c.sc: Ditto.
5549         * scripttempl/h8500m.sc: Ditto.
5550         * scripttempl/h8500s.sc: Ditto.
5551         * scripttempl/v850.sc: Ditto.
5552         * scripttempl/w65.sc: Ditto.
5553         * scripttempl/z8000.sc: Ditto.
5555 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
5557         * Makefile.in (e_i386_chaos.c): New rule.
5558         (ALL_EMULATIONS): Added e_i386_chaos.o.
5559         * emulparams/elf_i386_chaos.sh: New file.
5560         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5562 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
5564         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5565         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5566         Fix sed invocation, so that it coped with '/' in Solaris 64bit
5567         library path suffix.
5568         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5570 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
5572         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5573         for consecutive sections.
5575 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
5577         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5578         options.
5579         * ld.texinfo: Added notes about this new option.
5581 2000-10-16  Nick Clifton  <nickc@redhat.com>
5583         * emultempl/pe.em (_after_open): Add tests of return values from
5584         bfd functions.  Emit appropriate error messages if necessary.
5586 2000-10-13  Nick Clifton  <nickc@redhat.com>
5588         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5589         local variables - they are not used, but leave in the call to
5590         bfd_canonicalize_symtab.
5591         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5592         pe_dll_search_prefix.
5594 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
5596         * emultempl/pe.em (pe_dll_search_prefix): New variable,
5597         (longopts): New --dll-search-prefix option.
5598         (gld_${EMULATION_NAME}_list_options): Document.
5599         (gld_${EMULATION_NAME}_parse_args): Handle.
5600         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5601         dynamically, search for a dll named '<prefix><basename>.dll'
5602         in preference to 'lib<basename>.dll' if --dll-search-prefix
5603         is specified.
5605 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
5607         * ldlang.c (section_already_linked): Set kept_section instead of
5608         sec->comdat->sec.
5610 2000-10-10  Kazu Hirata  <kazu@hxi.com>
5612         * deffile.h: Fix formatting.
5613         * lexsup.c: Likewise.
5614         * mri.c: Likewise.
5616 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5618         * pe-dll.c (make_one): Do not generate code thunk for DATA
5619         exports.
5620         (process_def_file): deduce DATA flag for auto-export sumbols.
5622 2000-10-09  Kazu Hirata  <kazu@hxi.com>
5624         * ld.h: Fix formatting.
5625         * ldcref.c: Likewise.
5626         * ldctor.h: Likewise.
5627         * ldemul.c: Likewise.
5628         * ldemul.h: Likewise.
5629         * ldexp.c: Likewise.
5630         * ldexp.h: Likewise.
5631         * ldfile.c: Likewise.
5632         * ldfile.h: Likewise.
5633         * ldlang.c: Likewise.
5634         * ldlang.h: Likewise.
5635         * ldmain.c: Likewise.
5636         * pe-dll.c: Likewise.
5638         * pe-dll.c: Revert some formatting fixes.
5640 2000-10-08  Kazu Hirata  <kazu@hxi.com>
5642         * pe-dll.c: Fix formatting.
5644 2000-10-05  Kazu Hirata  <kazu@hxi.com>
5646         * ldlang.c: Fix formatting.
5648 2000-10-03  DJ Delorie  <dj@redhat.com>
5650         * pe-dll.c (fill_edata): initialize entire block
5651         (make_one): fill in correct section.
5653 2000-10-03  Kazu Hirata  <kazu@hxi.com>
5655         * ldexp.c: Fix formatting.
5657 2000-10-02  DJ Delorie  <dj@redhat.com>
5659         * emultempl/pe.em (gld_*_after_open): detect case where there two
5660         import libraries for same dll; rename one to ensure proper link
5661         order.
5663         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5664         typo
5665         (generate_edata): fix typo
5667 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
5669         * scripttempl/crisaout.sc (ENTRY): Now __start.
5670         (.text): Add default setting for __start.
5671         Remove CONSTRUCTORS handling.
5672         (/DISCARD/): Add .gnu.warning.*.
5673         * emulparams/crislinux.sh (ENTRY): Now __start.
5674         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5675         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5676         (ENTRY): Now __start.
5677         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5678         (EXECUTABLE_SYMBOLS): Add default setting for __start.
5680 2000-09-29  Kazu Hirata  <kazu@hxi.com>
5682         * deffile.h: Fix formatting.
5683         * ld.h: Likewise.
5684         * ldcref.c: Likewise.
5685         * ldctor.c: Likewise.
5686         * ldctor.h: Likewise.
5687         * ldemul.c: Likewise.
5688         * ldemul.h: Likewise.
5689         * ldexp.c: Likewise.
5690         * ldexp.h: Likewise.
5691         * ldfile.c: Likewise.
5692         * ldfile.h: Likewise.
5693         * ldlang.c: Likewise.
5694         * ldlang.h: Likewise.
5695         * lexsup.c: Likewise.
5696         * mri.c: Likewise.
5697         * pe-dll.c: Likewise.
5699 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5701         * pe-dll.c (process_def_file): Uninitialized data wasn't
5702         exported with --export-all-symbols switch.
5704 2000-09-28  DJ Delorie  <dj@redhat.com>
5706         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5707         noname work properly.
5709 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
5711         * ld.texinfo (HPPA ELF32): New section.
5713         * emultempl/hppaelf.em (group_size): New.
5714         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5715         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5716         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
5717         options to prevent abbreviations matching.
5718         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
5719         (PARSE_AND_LIST_ARGS_CASES): Handle it.
5721 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5723         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5724         on the m68*-*-elf target.  Make it support COFF input objects.
5726 2000-09-21  Kazu Hirata  <kazu@hxi.com>
5728         * ldmain.c: Fix formatting.
5729         * ldmisc.c: Likewise.
5730         * ldver.c: Likewise.
5731         * ldwrite.c: Likewise.
5733 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
5735         * ldwrite.c (clone_section): Silence gcc warnings.
5737 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
5739         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5740         out of memory failure.
5742         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5743         (clone_section): Handle out of memory failures.  Rename var to
5744         avoid c++ reserved word.
5746 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
5748         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5749         stub_name param to stub_sec_name.
5750         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5752 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5754         * emultempl/m68kelf.em: New file.
5755         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5756         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5757         * Makefile.in: Regenerate.
5759 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
5761         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5762         only as needed.
5764 2000-09-13  Nick Clifton  <nickc@redhat.com>
5766         * ldmain.c (multiple_definition): Disable relaxation if
5767         multiple symbol definitions are encountered - otherwise the
5768         linker could abort with an assertion failure.
5770 2000-09-10  Nick Clifton  <nickc@redhat.com>
5772         * mri.c: Fix formatting.
5774 2000-09-07  H.J. Lu  <hjl@gnu.org>
5776         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5777         * configure: Rebuild.
5779 2000-09-07  H.J. Lu  <hjl@gnu.org>
5781         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5782         * Makefile.in: Rebuild.
5784 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
5786         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5787         broken list handling.  Create __start_SECNAME and __stop_SECNAME
5788         when no place-holder.  Add some comments.  Test both SEC_CODE and
5789         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5790         Handle case where no output section statement created.
5792 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
5794         * configure.tgt (sh-*-linux*): Added.
5795         * Makefile.am: Added eshelf_linux and eshlelf_linux.
5796         * Makefile.in: Rebuilt.
5797         * emulparams/shelf_linux.sh: New file.
5798         * emulparams/shlelf_linux.sh: New file.
5800 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
5802         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5803         try shuffling sections when the orphan happens to be the place
5804         holder.  Keep count of unique section names generated so we speed
5805         the search for a new name.
5807 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
5809         * configure: Rebuilt with new libtool.m4.
5811 2000-09-05  Nick Clifton  <nickc@redhat.com>
5813         * Makefile.in: Regenerate.
5814         * aclocal.m4: Regenerate.
5815         * configure: Regenerate.
5816         * config.in: Regenerate.
5817         * po/ld.pot: Regenerate.
5819         * ldint.texinfo: Remove CVS revision marker - it foils local
5820         comparisons.
5822         * emultempl/ticoff.em: Remove extraneous comma.
5824 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
5826         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5827         to stub section flags.
5828         (hppa_for_each_input_file_wrapper): New.
5829         (hppa_lang_for_each_input_file): New.
5830         (lang_for_each_input_file): Define to call above.
5831         (multi_subspace): New.
5832         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5833         (PARSE_AND_LIST_PROLOGUE): Define.
5834         (PARSE_AND_LIST_LONGOPTS): Define.
5835         (PARSE_AND_LIST_OPTIONS): Define.
5836         (PARSE_AND_LIST_ARGS_CASES): Define.
5837         (hppaelf_finish): Call elf32_hppa_set_gp.
5838         (hppaelf_set_output_arch): Remove.
5839         (LDEMUL_SET_OUTPUT_ARCH): Remove.
5841         * emulparams/hppalinux.sh (ELFSIZE): Define.
5842         (MACHINE): Define.
5843         (OTHER_READONLY_SECTIONS): Define.
5844         (DATA_PLT): Define.
5845         (GENERATE_SHLIB_SCRIPT): Define.
5847         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
5848         to const throughout.  Change `void *' to `PTR' throughout.
5849         (lang_memory_default): Function is local to file, add `static'.
5851         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5852         (ehppalinux.c): Likewise.
5853         (earmelf.c): Likewise.
5854         (earmelf_linux.c): Likewise.
5855         (earmelf_linux26.c): Likewise.
5856         * Makefile.in: Regenerate.
5858         * ld.h (ld_config_type): Add unique_orphan_sections.
5859         * lexsup.c (OPTION_UNIQUE): Define.
5860         (ld_options): Add "--unique".
5861         (parse_args): Handle it.
5862         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5863         search for an existing output section if unique_orphan_sections is
5864         set.  Make use of bfd_get_unique_section_name rather than
5865         duplicating code here.
5866         * ld.texinfo: Describe --unique.
5868         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5869         optional arg to split-by-file.
5870         (parse_args): Handle them.
5871         * ld.texinfo: Update description of these options.
5872         * ldwrite.c (clone_section): Pass in the section name.  Replace
5873         local code with bfd_get_unique_section_name.
5874         (split_sections): Tidy code and comments.  Use a list traversal
5875         more appropriate to the list construction.  Handle cooked section
5876         sizes.  Split when split_by_reloc reached rather than exceeded.
5877         Track section size and split when split_by_file reached.  Fix
5878         link_order_tail (even though it's not used).
5879         (ldwrite): Modify condition for calling split_sections to suit
5880         changed split_by_reloc and split_by_file.
5881         * ldmain.c (main): Init config.split_by_reloc and
5882         config.split_by_file to -1.
5883         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5884         Change split_by_file to bfd_size_type.
5886 2000-09-02  Nick Clifton  <nickc@redhat.com>
5888         * configure.in: Increase version number to 2.10.91.
5889         * NEWS: Mention new ability to support removal of duplicate DWARF2
5890         debug information.
5891         * configure: Regenerate.
5892         * aclocal.m4: Regenerate.
5893         * config.in: Regenerate.
5895 2000-09-02  Daniel Berlin <dberlin@redhat.com>
5897         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5898         sections.
5899         * scripttempl/elf32avr.sc: Ditto.
5900         * scripttempl/elfd10v.sc: Ditto.
5901         * scripttempl/elfd30v.sc: Ditto.
5902         * scripttempl/elfi370.sc: Ditto.
5903         * scripttempl/elfm68hc11.sc: Ditto.
5904         * scripttempl/elfm68hc12.sc: Ditto.
5905         * scripttempl/elfi386beos.sc: Ditto.
5906         * scripttempl/v850.sc: Ditto.
5908 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
5910         * acinclude.m4: Include libtool and gettext macros from the
5911         top level.
5912         * aclocal.m4, configure: Rebuilt.
5914 2000-08-25  Nick Clifton  <nickc@redhat.com>
5916         * ldlang.c (open_output): When choosing the target for a
5917         particular endianness, do nothing if the target is not
5918         supported.
5920 2000-08-25  H.J. Lu  <hjl@gnu.org>
5922         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5923         check -rpath nor LD_RUN_PATH for cross link.
5924         * ld.texinfo: Document the change.
5926 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
5928         * NEWS: Mention support for CRIS.
5930 2000-08-23  H.J. Lu  <hjl@gnu.org>
5932         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5933         the current runpath list from bfd_elf_get_runpath_list ()
5934         before search.
5936 2000-08-22  H.J. Lu  <hjl@gnu.org>
5938         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5939         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5940         LD_LIBRARY_PATH for native linker. Display the needed DSO if
5941         trace_file_tries is non-zero.
5942         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5943         if trace_file_tries is non-zero.
5945         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5946         * NEWS: Mention it.
5948 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
5950         * NEWS: Mention i860 support.
5952 2000-08-14  Andreas Schwab  <schwab@suse.de>
5954         * scripttempl/elf.sc: Fix last change to use correct comment
5955         syntax.
5957 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
5959         * scripttempl/elf.sc: Add a comment giving the correspondence
5960         between sections, per-datum sections, and linkonce sections.  Make
5961         the comment true even for .bss, .sdata, .sdata2, .sbss, and
5962         .sbss2.
5964 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
5966         * emulparams/elf32_i860.sh: New file.
5967         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5968         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5969         (eelf32_i860.c): New rule.
5970         * Makefile.in: Regenerate.
5972 2000-08-10  Nick Clifton  <nickc@cygnus.com>
5974         * emulparams/mipspe.sh (ENTRY): Add definition.
5976 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
5978         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5979         in error message.
5981 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5983         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5984         the final size of .bss section.
5985         * scripttempl/elfm68hc12.sc: Likewise.
5987 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
5989         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5990         gld${EMULATION_NAME}_parse_args for consistency.  Combine
5991         lastoptind and prevoptind vars, and keep track of last optind.
5992         (gld_${EMULATION_NAME}_list_options): Rename to
5993         gld${EMULATION_NAME}_list_options.
5995 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
5997         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5998         (i586-sco-sysv5uw7.1.0).
6000 2000-07-27  H.J. Lu  <hjl@gnu.org>
6002         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
6003         (PARSE_AND_LIST_PROLOGUE): New.
6004         (PARSE_AND_LIST_LONGOPTS): Likewise.
6005         (PARSE_AND_LIST_OPTIONS): Likewise.
6006         (PARSE_AND_LIST_ARGS_CASES): Likewise.
6007         (PARSE_AND_LIST_EPILOGUE): Likewise.
6009 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
6011         * emultempl/armelf.em: Elide functions common to elf32.em,
6012         ie. most of the file.
6013         (arm_elf_after_open): New.  Do arm specific things then call
6014         gld${EMULATION_NAME}_after_open.
6015         (arm_elf_before_allocation): New.  Call
6016         gld${EMULATION_NAME}_before_allocation then do arm specifics.
6017         (PARSE_AND_LIST_PROLOGUE): Define.
6018         (PARSE_AND_LIST_SHORTOPTS): Define.
6019         (PARSE_AND_LIST_LONGOPTS): Define.
6020         (PARSE_AND_LIST_OPTIONS): Define.
6021         (PARSE_AND_LIST_ARGS_CASES): Define.
6022         (LDEMUL_AFTER_OPEN): Define.
6023         (LDEMUL_BEFORE_ALLOCATION): Define.
6024         (LDEMUL_BEFORE_PARSE): Define.
6025         (LDEMUL_FINISH): Define.
6027         * emultempl/hppaelf.em: Similarly zap most of this file.
6028         (hppaelf_add_stub_section): Prototype.
6029         (hppaelf_layaout_sections_again): Prototype.
6030         (hook_in_stub): Prototype.
6031         (LDEMUL_SET_OUTPUT_ARCH): Define.
6032         (LDEMUL_FINISH): Define.
6033         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
6035         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
6036         (EXTRA_EM_FILE): New.
6037         * emulparams/armelf_linux.sh: Likewise.
6038         * emulparams/armelf_linux26.sh: Likewise.
6039         * emulparams/hppalinux.sh: Likewise.
6040         * emulparams/hppaelf.sh: Likewise.
6041         (NOP): Define.
6043         * emultempl/elf32.em: Fix formatting.
6044         (EXTRA_EM_FILE): Source it.
6045         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
6046         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
6047         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
6048         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
6049         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
6050         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
6051         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
6052         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
6053         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
6054         allow functions in this file to be overridden.
6055         (PARSE_AND_LIST_SHORTOPTS): Handle it.
6057         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
6059         * emultempl/elf32.em: Reorganize file.
6061 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
6063         * emulparams/elf64alpha.sh: Implement "-taso" emulation
6064         specific option to fit 64-bit executable in the lower
6065         31-bit address range.  This is done by changing start
6066         address of .interp (the very first section of executable)
6067         and then setting EF_ALPHA_32BIT elf header flag.
6069 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
6071         * emultempl/m68kcoff.em: New file.
6072         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
6073         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
6074         generic.em.
6075         * Makefile.in: Regenerate.
6077 2000-07-20  H.J. Lu  <hjl@gnu.org>
6079         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
6080         and "disable-new-dtags" to stop getopt from treating -d/-e as
6081         abbreviations for these options.
6083 2000-07-20  H.J. Lu  <hjl@gnu.org>
6085         * ld.texinfo: Add documentation for --disable-new-dtags and
6086         --enable-new-dtags.
6088         * ldmain.c (main): Initialize link_info.new_dtags to false.
6090         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
6091         --disable-new-dtags and --enable-new-dtags.
6092         (gld_${EMULATION_NAME}_list_options): Likewise.
6094 2000-07-05  Kenneth Block  <krblock@computer.org>
6096         * lexsup.c: Add optional style to demangle switch
6097         * ld.texinfo: Document optional style to demangle switch.
6099 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
6101         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
6102         ecrislinux.o.
6103         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
6104         Regenerate dependencies.
6105         * Makefile.in: Rebuild.
6106         * configure.tgt (cris-*-*): New target.
6107         * emulparams/crisaout.sh, emulparams/criself.sh,
6108         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
6109         * po/POTFILES.in, po/ld.pot: Regenerate.
6111 2000-07-20  H.J. Lu  <hjl@gnu.org>
6113         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
6114         Print out ignored -z options.
6116 2000-07-19  H.J. Lu  <hjl@gnu.org>
6118         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
6119         (PARSE_AND_LIST_PROLOGUE): New.
6120         (PARSE_AND_LIST_LONGOPTS): Likewise.
6121         (PARSE_AND_LIST_OPTIONS): Likewise.
6122         (PARSE_AND_LIST_ARGS_CASES): Likewise.
6124         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
6126         * lexsup.c (ld_options): Comment out 'z'.
6127         (parse_args): Likewise.
6129         * emultempl/elf32.em: Include "elf/common.h".
6130         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
6131         options.
6132         (gld_${EMULATION_NAME}_list_options): Likewise.
6134         * ld.texinfo: Add documentation for the recognized -z options.
6136 2000-07-19  H.J. Lu  <hjl@gnu.org>
6138         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
6139         bfd_elf_set_dt_needed_soname ().
6141 2000-07-18  DJ Delorie  <dj@cygnus.com>
6143         * pe-dll.c (pe_dll_id_target): check object target name also
6145 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
6147         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
6148         ${INIT_END} if relocating.
6149         (.fini): Likewise ${FINI_START} and ${FINI_END}.
6151 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
6153         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
6154         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
6155         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
6156         errors introduced by the old dynamic lib search order.
6158 2000-07-17  DJ Delorie  <dj@cygnus.com>
6160         * pe-dll.c (process_def_file): auto-export data items also
6161         (pe_process_import_defs): also see if _imp_ form needed
6163 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
6165         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
6166         for dll import libraries
6168 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
6170         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
6171         gcc 2.95.2 and later.
6173 2000-07-11  Kazu Hirata  <kazu@hxi.com>
6175         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
6176         message.
6178 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
6180         * ldemul.h (struct lang_input_statement_struct): Remove forward
6181         declaration.
6182         (struct search_dirs): Likewise.
6183         * ldfile.h (struct lang_input_statement_struct): Likewise.
6184         Protect file from multiple inclusion.
6185         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
6186         declaration from macro to file scope.
6188         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
6189         * ldgram.y: Likewise here.
6190         * ldlang.c: And here.
6191         * ldmain.c: And here.
6192         * mpw-elfmips.c: And here.
6193         * mpw-eppcmac.c: And here.
6194         * emultempl/aix.em: And here.
6195         * emultempl/armcoff.em: And here.
6196         * emultempl/armelf.em: And here.
6197         * emultempl/armelf_oabi.em: And here.
6198         * emultempl/beos.em: And here.
6199         * emultempl/elf32.em: And here.
6200         * emultempl/hppaelf.em: And here.
6201         * emultempl/linux.em: And here.
6202         * emultempl/lnk960.em: And here.
6203         * emultempl/pe.em: And here.
6204         * emultempl/sunos.em: And here.
6205         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
6206         * mpw-idtmips.c: Ditto.
6207         * emultempl/generic.em: Ditto.
6208         * emultempl/gld960.em: Ditto.
6209         * emultempl/gld960c.em: Ditto.
6210         * emultempl/mipsecoff.em: Ditto.
6211         * emultempl/ticoff.em: Ditto.
6212         * emultempl/vanilla.em: Ditto.
6214         * pe-dll.c: Include ldfile.h
6215         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
6217         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
6218         arguments to bfd_elf32_size_dynamic_sections call.
6219         (gldelf32ebmip_place_orphan): Add missing arguments to
6220         lang_leave_output_section_statement call.
6222 2000-07-10  H.J. Lu  <hjl@gnu.org>
6224         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
6225         DLL_SUPPORT.
6226         (strhash): Likewise.
6227         (compute_dll_image_base): Likewise.
6228         (pe_undef_found_sym): Likewise.
6229         (pe_undef_cdecl_match): Likewise.
6230         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
6231         argument "arch" with ATTRIBUTE_UNUSED.
6233 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
6235         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
6237         From  Ryan Bradetich  <rbradetich@uswest.net>
6238         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
6240 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
6242         Changes to create multiple linker stubs, positioned immediately
6243         before the section where they are required.
6244         * emultempl/hppaelf.em: Include elf32-hppa.h.
6245         (stub_sec, file_chain): Delete.
6246         (hppaelf_create_output_section_statements): Don't make a stub
6247         section here.
6248         (hook_stub_info): New struct.
6249         (hook_in_stub): New function.
6250         (hppaelf_add_stub_section): New function.
6251         (hppaelf_finish): Do nothing for relocateable links.  Modify the
6252         call to elf32_hppa_size_stubs.  Move code for updating section
6253         layout from here...
6254         (hppaelf_layaout_sections_again): ..to here, a new function.
6256         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
6257         broken list handling.  Pass in a pointer to the list.
6258         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
6259         for above changes.
6260         (hppaelf_before_parse): Prototype.
6261         (hppaelf_set_output_arch): Prototype.
6262         (hppaelf_create_output_section_statements): Prototype.
6263         (hppaelf_delete_padding_statements): Prototype.
6264         (hppaelf_finish): Prototype.
6266         Merge from elf32.em
6267         * emultempl/hppaelf.em: Include ctype.h.
6268         (struct orphan_save): New.
6269         (gld${EMULATION_NAME}_place_orphan): New.
6270         (output_rel_find): New.
6271         (hppaelf_get_script): Update from elf32.em.
6272         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
6273         Change emulation_name field to "${EMULATION_NAME}".  Add
6274         gld${EMULATION_NAME}_place_orphan.
6276         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
6277         ehppalinux.o, sort it.  Regenerate dependencies.
6278         (ehppalinux.c): Depend on hppaelf.em
6279         * Makefile.in: Regenerate.
6281         * configure.tgt: targ_emul=hppalinux for hppa*linux
6283         * emulparams/hppalinux.sh: New.
6284         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
6286 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
6288         * lexsup.c (parse_args): Copy section name.
6290 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
6292         * emultempl/pe.em: institute the following search order for
6293         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
6294         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
6295         static lib (libfoo.a) if none of the above are found.
6297 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
6299         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
6300         (longopts): New --{enable,disable}-auto-image-base options.
6301         (gld_${EMULATION_NAME}_list_options): Document.
6302         (gld_${EMULATION_NAME}_parse): Handle.
6303         (strhash): New static function.
6304         (compute_dll_image_base): New static function.
6305         (gld_${EMULATION_NAME}_set_symbols): Use.
6307 2000-07-05  DJ Delorie  <dj@redhat.com>
6309         * MAINTAINERS: new
6311 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
6313         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
6314         * emulparams/elf32btsmip.sh: New file.
6315         * Makefile.am: Add traditional mips target.
6316         * Makefile.in: Rebuild.
6318 2000-07-01  H.J. Lu  <hjl@gnu.org>
6320         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
6321         automake to use YLWRAP.
6322         * Makefile.in: Rebuild.
6324 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
6326         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
6327         (CLEANFILES): Add DEPA.
6328         * Makefile.in: Regenerate.
6330 2000-06-30  Timothy Wall  <twall@ppc>
6332         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
6333         the page in the upper octet of the address.
6335 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
6337         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
6339 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
6341         * NEWS: arm-elf does --gc-sections too.
6343 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
6345         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6346         find one.
6347         * Makefile.in: Regenerate.
6349 2000-06-21  H.J. Lu  <hjl@gnu.org>
6351         * Makefile.am: Rebuild dependency.
6352         * Makefile.in: Rebuild.
6354 2000-06-20  H.J. Lu  <hjl@gnu.org>
6356         * Makefile.am: Rebuild dependency.
6357         * Makefile.in: Rebuild.
6359 2000-06-20  Timothy Wall  <twall@cygnus.com>
6361         * scripttempl/tic54xcoff.sc: New.
6362         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
6363         * gen-doc.texi: Add flag for TI COFF.
6364         * ld.texinfo: Add documentation for TI COFF handling switches.
6365         * emultempl/ticoff.em: New. TI COFF handling.
6366         * configure.tgt: Add tic54x target.
6367         * Makefile.am: Add tic54x target.
6368         * Makefile.in: Ditto.
6370 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
6372         * ldmain.c (set_scripts_dir): Correct pointer comparison when
6373         checking for backslashes.
6375 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
6377         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
6379 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
6381         * NEWS: Update list of targets supporting --gc-sections.
6383         * scripttempl/elf.sc: KEEP .eh_frame contents.
6384         * scripttempl/elfd30v.sc: Same here.
6386 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
6388         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
6389         and m68hc11 (elf).
6390         * Makefile.in: Rebuild.
6391         * configure.tgt: Recognize m68hc12 and m68hc11.
6392         * scripttempl/elfm68hc12.sc: New file.
6393         * emulparams/m68hc12elfb: New emulation.
6394         * emulparams/m68hc12elf: New emulation.
6395         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
6396         (includes a memory.x script to define the ROM and RAM banks).
6397         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
6398         New configuration files for support of Motorola 68hc11
6400 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
6402         * ldmain.c (main): Only change SEC_READONLY for final link.
6404 2000-06-13  H.J. Lu  <hjl@gnu.org>
6406         * configure: Regenerate.
6408 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
6410         * configure.in (VERSION): Update to show this is the CVS mainline.
6412 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
6414         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6415         input objects to be ECOFF.
6416         (check_sections): einfo takes %B, not %P, to print a BFD name.
6418 2000-06-05  Michael Matz <matz@ifh.de>
6420         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6421         version scripts.
6423         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6425 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
6427         * emulparams/avr1200.sh (STACK): Define as 0.
6428         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6429         * emulparams/avr4433.sh (STACK): Likewise.
6430         * emulparams/avr44x4.sh (STACK): Likewise.
6431         * emulparams/avr85xx.sh (STACK): Likewise.
6432         * emulparams/avrmega103.sh (STACK): Likewise.
6433         * emulparams/avrmega161.sh (STACK): Likewise.
6434         * emulparams/avrmega603.sh (STACK): Likewise.
6435         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6436         (__stack): Define from ${STACK} for main().
6438 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
6440         * Makefile.am: Update dependencies with "make dep-am"
6441         * Makefile.in: Regenerate.
6443 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
6445         * ldmain.c: Include filenames.h.
6446         (set_scripts_dir): Support backslashes in program name.
6448 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
6450         * ldmain.c (main): When deciding if ".text" section should be
6451         read-only, don't forget to reset SEC_READONLY because it
6452         could be already set.
6454 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
6456         * ld.1: Add documentation for new command line option:
6457         --section-start <sectionname>=<sectionorg>
6458         This is a generic version of -Ttext etc. which accepts
6459         any section name as a parameter instead of just text/data/
6460         bss.
6461         * ld.texinfo: More docs.
6462         * NEWS: More docs.
6463         * lexsup.c: (parse_args): Recognize new command line option.
6464         (ld_options): Add new option.
6466 2000-05-18  H.J. Lu  <hjl@gnu.org>
6468         * lexsup.c (parse_args): `i' == `r', not `q'.
6470 2000-05-18  Jeffrey A Law  (law@cygnus.com)
6472         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6474 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
6475               Rick Gorton          <gorton@scrugs.lkg.dec.com>
6477         Add support for '-q' == '--emit-relocs' switch.
6478         * ldmain.c (main): Default to false.
6479         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6480         * NEWS: Describe the emitrelocations switch.
6481         * ld.texinfo: Describe the emitrelocations switch.
6483 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
6485         * emultempl/pe.em (_open_dynamic_archive): New function: Search
6486         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6487         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6488         link options.
6490 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
6492         * lexsup.c (parse_args): Update the year in the copyright notice.
6494 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
6496         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6497         Replace defines with those from intl/libgettext.h to quieten gcc
6498         warnings.
6500 2000-05-10  H.J. Lu  <hjl@gnu.org>
6502         * ldlang.c (open_input_bfds): Don't load the same file within
6503         a group again if the whole archive has been loaded already.
6505 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
6507         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6508         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6509         strtoul.
6511 2000-05-01  Jim Wilson  <wilson@cygnus.com>
6513         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6515         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6516         host "ia64-*-linux-gnu*".
6518 2000-04-29  Andreas Jaeger  <aj@suse.de>
6520         * ld.h: Correctly check GCC version.
6522 2000-04-25  Jeffrey A Law  (law@cygnus.com)
6524         * Makefile.am: Add PA64 support.  Add missing dependencies for
6525         PA32 elf support.
6526         * Makefile.in: Rebuilt.
6527         * configure.tgt: Add PA64 support (currently disabled).
6529 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
6531         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6532         (output_rel_find): New function.
6533         (hold_section, hold_use): Delete.
6534         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6535         hold_interp): Make local to place_orphan.
6536         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6537         rather than place_section to find possible previous use of orphan.
6538         Similarly find the place-holder output sections.  Use returned
6539         value from lang_enter_output_section_statement rather than calling
6540         lang_output_section_statement_lookup.
6541         * emultempl/armelf.em: Same here.
6542         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6544         * ldlang.c (lang_enter_output_section_statement): Return output
6545         section statement.
6546         * ldlang.h (lang_enter_output_section_statement): Change
6547         declaration too.
6549         * ldlang.h (lang_output_section_statement): Export it.
6550         * ldlang.c (lang_output_section_statement): Ditto.
6552 2000-04-24  Nick Clifton  <nickc@cygnus.com>
6554         * ld.texinfo (Output Section Data): Add note that section data
6555         commands cannot appear outside of section directives.
6557 2000-04-2  Matthew Green  <mrg@cygnus.com>
6559         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6561 2000-04-21  Richard Henderson  <rth@cygnus.com>
6562             David Mosberger  <davidm@hpl.hp.com>
6564         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6565         (eelf64_ia64.c): New rule.
6566         * Makefile.in: Rebuild.
6567         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6568         * emulparams/elf64_ia64.sh: New file.
6570 2000-04-21  Richard Henderson  <rth@cygnus.com>
6572         * scripttempl/elfd30v.sc: Place .gcc_except_table.
6574 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
6576         * dep-in.sed: Match space at start of file name, not at end.
6578 2000-04-18  H.J. Lu  <hjl@gnu.org>
6580         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6581         lang_leave_output_section_statement () after calling
6582         lang_enter_output_section_statement ().
6583         * emultempl/armelf.em: Likewise.
6585 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
6587         * emultempl/elf32.em (struct orphan_save): Add section field.
6588         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6589         better order, and place first orphan section as we did before the
6590         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
6591         Don't call make_bfd_section here, let wild_doit do the job for us.
6592         Don't build a statement list when we'll only throw it away.
6593         * emultempl/armelf.em: Ditto.
6594         * emultempl/pe.em: Similarly.
6596 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
6598         * scripttempl/elfppc.sc: Remove.
6599         * emulparams/elf32ppc.sh: Use elf.sc.
6600         * emulparams/elf32lppc.sh: Use elf.sc.
6601         * emulparams/elf32ppclinux.sh: Use elf.sc.
6602         * emulparams/elf32ppcsim.sh: New file.
6603         * emulparams/elf32lppcsim.sh: New file.
6604         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
6605         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6606         * Makefile.in: Regenerate.
6607         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6609 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
6611         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6612         ~SEC_ALLOC sections too.  Init start address of debug sections.
6613         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6614         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6615         Also set all relocateable section start addresses.
6617 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
6619         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6620         Add new BSS_PLT variable for when .plt need not be contained in
6621         the file.  Move _etext so that it is also after .fini, and provide
6622         both etext and _etext with a leading underscore.  Mark the start
6623         and end of .sbss.
6625 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
6627         * emultempl/elf32.em (struct orphan_save): New.
6628         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6629         hold_interp): Make them struct orphan_save.
6630         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6631         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6632         the end of the relevant section list.  Also add associated section
6633         statements to the end of any previous orphan statements.
6634         * emultempl/armelf.em: Similarly.
6635         * emultempl/pe.em: Similarly.
6637 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
6639         * ld.texinfo (Simple Example): Remove extraneous paragraph.
6641 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
6643         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
6644         --enable-build-warnings option.
6645         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6646         * Makefile.in, configure: Re-generate.
6648 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
6650         * po/ld.pot: Regenerate.
6652         * lexsup.c (help): Restore translated part of bug string.
6654         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6655         (DEP): Quote when passing vars to sub-make.  Add warning message
6656         to end.
6657         (DEP1): Rewrite for "gcc -MM".
6658         (CLEANFILES): Add DEP2.
6659         Update dependencies.
6660         * Makefile.in: Regenerate.
6662 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
6664         * ld.h: #include "bin-bugs.h"
6665         * lexsup.c (help): Use REPORT_BUGS_TO.
6667 2000-03-27  Denis Chertykov  <denisc@overta.ru>
6669         * configure.tgt (avr-*-*): New target support.
6670         * Makefile.am: Likewise.
6671         * scripttempl/elf32avr.sc: New script file.
6672         * emulparams/avr1200.sh: New file.
6673         * emulparams/avr23xx.sh: New file.
6674         * emulparams/avr4433.sh New file.
6675         * emulparams/avr44x4.sh New file.
6676         * emulparams/avr85xx.sh New file.
6677         * emulparams/avrmega103.sh New file.
6678         * emulparams/avrmega161.sh New file.
6679         * emulparams/avrmega603.sh New file.
6680         * Makefile.in: Regenerate.
6682 2000-03-09  Andreas Jaeger  <aj@suse.de>
6684         * Makefile.am (check-DEJAGNU): Also unset LANG.
6685         * Makefile.in: Rebuild.
6687 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
6689         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6690         archive.
6692 2000-03-02  H.J. Lu  <hjl@gnu.org>
6694         * emulparams/elf32mcore.sh: Include "getopt.h".
6696 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
6698         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6700 2000-03-01  H.J. Lu  <hjl@gnu.org>
6702         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6703         * emulparams/shpe.sh: Likewise.
6705 2000-03-01  Nick Clifton  <nickc@cygnus.com>
6707         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6708         to unused parameters.
6710         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6711         functions only used by DLL code.
6712         (_place_orphan): Initialise 'dollar'.
6714 2000-03-01  H.J. Lu  <hjl@gnu.org>
6716         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6717         indicate if the undefined symbol is a fatal error or not.
6718         Don't delete the output file if "fatal" is false.
6720 2000-02-29  H.J. Lu  <hjl@gnu.org>
6722         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6723         Set LC_COLLATE and LC_ALL to null and export them. It is for
6724         sort which expects the C locale.
6725         Add $(LIBS) to all $(HOSTING_LIBS).
6726         * Makefile.in: Rebuild.
6728 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
6730         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6731         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6732         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6733         (ld_emulation_xfer_struct): Add missing NULL initialiser for
6734         find_potential_libraries.
6736 2000-02-28  Jim Blandy  <jimb@redhat.com>
6738         * ldgram.y (exclude_name_list): Don't require a comma to separate
6739         list entries; the lexer considers commas to be valid part of a
6740         filename, so in something like `foo, bar' the comma is considered
6741         part of the first filename, `foo,'.
6742         * ld.texinfo: Update section on EXCLUDE_FILE lists.
6744 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
6746         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6747         host "i[3456]86-*-freebsdelf*".
6749 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
6751         * scripttempl/i386go32.sc: Move misplaced semicolons.
6753 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
6755         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6756         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6757         (eelf64hppa.c, ehppaelf.c): Remove targets.
6758         * Makefile.in: Rebuild.
6760 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6762         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6763         GNU/Linux/sparc, but keep the default as 32.
6765         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
6766         it default if sparcv9 or sparc64.
6768 2000-02-24  Nick Clifton  <nickc@cygnus.com>
6770         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6771         * Makefile.in: Regenerate.
6772         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6774         * ldemul.h (ld_emulation_xfer_struct): Add new field:
6775         find_potential_libraries.
6776         * ldemul.c (ldemul_find_potential_libraries): New function.
6778         * ldfile.c (ldfile_open_file_search): Allow function to be
6779         exported.
6780         (ldfile_open_file): Call ldemul_find_potential_libraries.
6781         * ldfile.h: Add prototype for ldfile_open_file_search.
6783         * pe-dll.c: Add support for ARM, MIPS and SH targets.
6785         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
6786         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
6788         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6789         (gld_X_find_potential_libraries): New function.  Search for
6790         libraries called "*.lib".
6792         * scripttempl/pe.sc: Add .pdata section.
6794 2000-02-23  Richard Henderson  <rth@cygnus.com>
6796         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6797         Add and use memory regions.
6799 2000-02-23  Linas Vepstas (linas@linas.org)
6801         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6803         * Makefile.am: Add support for Linux/IBM 370.
6804         * configure.tgt: Likewise.
6806         * Makefile.in: Regenerate.
6808 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
6810         * ldlang.c (print_input_section, print_data_statement,
6811         print_reloc_statement, print_padding_statement, insert_pad,
6812         size_input_section, lang_check_section_addresses,
6813         lang_size_sections, lang_do_assignments, lang_set_startof,
6814         lang_one_common): Change `opb' to unsigned.
6815         (lang_do_assignments): Also change `size' to unsigned.
6817 2000-02-16  Richard Henderson  <rth@cygnus.com>
6819         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6821 2000-02-16  Timothy Wall  <twall@cygnus.com>
6823         * mri.c (mri_draw_tree): Add default LMA region argument to call
6824         to lang_leave_output_section_statement.
6825         * ldlang.h: Update prototypes with LMA region arguments.
6826         * ldlang.c (lang_size_sections): Encapsulate region bounds
6827         checking in os_check_region call.
6828         (os_check_region): New function.
6829         (lang_output_section_statement_lookup): Initialize lma_region.
6830         (lang_leave_output_section_statement): Add LMA region argument.
6831         (lang_leave_overlay): Ditto.
6832         * ldgram.y: Handle LMA region syntax.
6833         * ld.texinfo (Output Section Description): Describe LMA region usage.
6834         * emultempl/armelf.em (gld$place_orphan): Add default value for
6835         lma region in call to lang_leave_output_section_statement.
6836         * emultempl/elf32.em (gld$place_orphan): Add default value for
6837         lma region in call to lang_leave_output_section_statement.
6838         * emultempl/pe.em (gld$place_orphan): Add default value for
6839         lma region in call to lang_leave_output_section_statement.
6842 2000-02-04  Timothy Wall  <twall@redhat.com>
6844         * ldlang.c (lang_check_section_addresses): Use bytes instead of
6845         octets when calculating section end addresses.
6847 2000-02-04  Timothy Wall  <twall@redhat.com>
6849         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6851 2000-02-03  Timothy Wall <twall@redhat.com>
6853         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6854         octet count.
6855         * ldlang.c (print_input_section, print_data_statement,
6856         print_reloc_statement, print_padding_statement): Print target
6857         address values and section sizes as bytes, not octets.
6858         (insert_pad) Calculate padding size in octets, and adjust "dot"
6859         by bytes.
6860         (size_input_section) Always adjust "dot" by bytes, not octets.
6861         (lang_check_section_addresses, lang_do_assignments) Adjust
6862         "dot" by bytes, not octets.  Use the larger of the directive size
6863         or octets_per_byte for the number of octets actually allocated in
6864         the output section.
6865         (lang_set_startof) Make sure STARTOF returns a target address.
6866         (lang_one_common) Record size changes in octets.
6867         (lang_abs_symbol_at_end_of) Section end symbol's value is
6868         recorded in target bytes.
6869         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6870         to be clear about behavior when an octet is smaller than one byte.
6872 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
6874         * ldcref.c (output_cref): Don't pass message strings to printf
6875         as format arg.
6876         Update copyright.
6878         * ldmisc.c (vfinfo): Same here.
6879         Update copyright.
6881 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
6883         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6884         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6885         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6886         Add missing NULL initialisers, and comments.
6888 2000-01-21  Nick Clifton  <nickc@cygnus.com>
6890         * ldlang.c (lang_size_sections): Fix typo in comment.
6892 2000-01-18  H.J. Lu  <hjl@gnu.org>
6894         * ldlang.c (lang_size_sections): Also update the current
6895         address of a region if the SEC_NEVER_LOAD bit is not set.
6897 2000-01-10  Philip Blundell  <pb@futuretv.com>
6899         * configure.tgt (arm*-*-conix*): New target.
6901 2000-01-07  Nick Clifton  <nickc@cygnus.com>
6903         * ld.texinfo (Options): Remind users to preceed linker command
6904         line switches with -Wl, (or whatever is appropriate) if it is
6905         being invoked by a comnpiler driver program.
6906         Fix description of the behaviour of the -n command line switch.
6908 2000-01-05  Catherine Moore  <clm@cygnus.com>
6910         * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6911         (name_list): New.
6912         * ld.texinfo (EXCLUDE_FILE): Update documentation.
6913         * ldgram.y (wildcard_spec): Support a list of excluded_files.
6914         (exclude_name_list): New.
6915         ldlang.c (walk_wild_section): Support list of excluded files.
6916         (print_wild_statement): Likewise.
6917         (lang_add_wild): Likewise.
6918         * ldlang.h (lang_wild_statement_type): Likewise.
6919         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6921 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
6923         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6924         (process_def_file): Use.
6925         (pe_dll_compat_implib): New variable.
6926         (make_one): Use.
6928         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6929         pe_dll_compat_implib.
6931         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6932         compat-implib options.
6933         (gld_${EMULATION_NAME}_list_options): List new options.
6934         (gld_${EMULATION_NAME}_parse_args): Handle.
6936         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6937         dll.
6939         * deffilep.y (opt_name): Allow "." in name.
6941 For older changes see ChangeLog-9899
6943 Local Variables:
6944 mode: change-log
6945 left-margin: 8
6946 fill-column: 74
6947 version-control: never
6948 End: