2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / ld / ChangeLog
blobf8efc4d4c5c11d489551100ca391d82a2bd0afe5
1 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
3         * ldlang.c (lang_vers_match): Check demangled symbols.
5 2003-10-24  H.J. Lu  <hongjiu.lu@intel.com>
7         * ldlang.c (lang_vers_match): Check "symbol" instead of
8         "wildcard" and "pattern". Fix a typo.
9         (lang_finalize_version_expr_head): Likewise.
10         (lang_register_vers_node): Likewise.
11         (realsymbol): New function.
12         (lang_new_vers_pattern): Set "symbol" and remove "wildcard".
14         * ldlex.l (V_IDENTIFIER): Allow '\\'.
16 2003-10-24  Nick Clifton  <nickc@redhat.com>
18         * emultempl/m68hc1xelf.em (before_allocation): Add missing second
19         parameter to lang_memory_region_lookup.
21 2003-10-22  Jakub Jelinek  <jakub@redhat.com>
23         * ldlang.c: Include hashtab.h.
24         (lang_vers_match_lang_c, lang_vers_match_lang_cplusplus,
25         lang_vers_match_lang_java): Remove.
26         (lang_vers_match): New function.
27         (lang_new_vers_pattern): Initialize wildcard and mask
28         fields, don't initialize match.
29         (lang_new_vers_node): Use xcalloc.  Adjust for globals and
30         locals field type changes.  Set match field.
31         (version_expr_head_hash, version_expr_head_eq): New functions.
32         (lang_finalize_version_expr_head): New function.
33         (lang_register_vers_node): Call lang_finalize_version_expr_head.
34         Search in hash table if not wildcard when looking for duplicates.
35         * emultempl/ppc64elf.em (new_vers_pattern): Don't bother with
36         duplicate checking.  Initialize all fields of dot_entry from entry
37         with the exception of pattern and next.
39 2003-10-21  Nick Clifton  <nickc@redhat.com>
41         * ldlang.c (lang_memory_region_lookup): Add second parameter -
42         create - which is true if the region is being created.  Issue
43         appropriate warning messages for finding and not finding
44         already created regions.
45         (lang_memory_default): Use DEFAULT_MEMORY_REGION.
46         (lang_leave_overlay_section): Likewise.
47         (lang_size_sections_1): Likewise.
48         Pass second parameter to lang_memory_region_lookup.
49         (lang_get_regions): Likewise.
50         * ldlang.h (DEFAULT_MEMORY_REGION): Define.
51         Update prototype for lang_memory_region_lookup.        
52         * ldgram.y: Pass second parameter to lang_memory_region_lookup.
53         Use DEFAULT_MEMORY_REGION instead of "*default".
54         
55 2003-10-20  Andrew Cagney  <cagney@redhat.com>
57         * pe-dll.c: Replace "struct sec" with "struct bfd_section".
59 2003-10-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
61         * Makefile.am: Remove old (before GCC 3.3) emulations for AVR
62         target: avr1200, avr23xx, avr4433, avr44x4, avr85xx, avrmega103,
63         avrmega161, avrmega603.  Default to avr2.
64         * Makefile.in: Regenerate.
65         * configure.tgt: Likewise.
66         * emulparams/avr1200.sh: Remove.
67         * emulparams/avr23xx.sh: Remove.
68         * emulparams/avr4433.sh: Remove.
69         * emulparams/avr44x4.sh: Remove.
70         * emulparams/avr85xx.sh: Remove.
71         * emulparams/avrmega103.sh: Remove.
72         * emulparams/avrmega161.sh: Remove.
73         * emulparams/avrmega603.sh: Remove.
74         * scripttempl/elf32avr.sc: Remove.
76 2003-10-19  Andreas Schwab  <schwab@suse.de>
78         * emultempl/ticoff.em (gld_${EMULATION_NAME}_list_options): Add
79         newline to message.
81         * deffilep.y: Remove commas from %token lines.
83 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
85         * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
86         relaxation always; don't exclude relocatable linking.  Adjust for
87         _bfd_mmix_prepare_linker_allocated_gregs renamed to
88         _bfd_mmix_before_linker_allocation.
89         (mmix_after_allocation): Adjust for
90         _bfd_mmix_finalize_linker_allocated_gregs renamed to
91         _bfd_mmix_after_linker_allocation.
92         * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
94         * ldlang.c (lang_size_sections): Last, set _cooked_size for output
95         sections.
97 2003-10-16  Alan Modra  <amodra@bigpond.net.au>
99         * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove.  Use
100         GENSCRIPTS and GEN_DEPENDS in place of these.
101         * Makefile.in: Regenerate.
102         * genscripts_extra.sh: Delete.  Merge extra functionality to..
103         * genscripts.sh: ..here.
105         * emulparams/gld960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Define.
106         * emulparams/gld960coff.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
107         * emulparams/lnk960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
108         * emulparams/m88kbcs.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
109         * emulparams/vanilla.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
111 2003-10-16  Alan Modra  <amodra@bigpond.net.au>
113         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Don't
114         use $EMULATION_NAME to call bfd function.
116 2003-10-14  Danny Smith  <dannysmith@users.sourceforge.net>  
118         * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
119         to identify data symbols.
121 2003-10-13  Richard Sandiford  <rsandifo@redhat.com>
123         * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
124         definition from elf64btsmip.sh.
125         (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
126         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
127         * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
128         * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
129         (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
130         Define __program_header_table in terms of __elf_header.
132 2003-10-10  H.J. Lu  <hongjiu.lu@intel.com>
134         * Makefile.am (eelf64_ia64.c): Also depend on
135         $(srcdir)/emultempl/ia64elf.em.
136         * Makefile.in: Regenerated.
138         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
140         * emultempl/ia64elf.em: New.
142 2003-10-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
144         * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
146 2003-10-11  Hans-Peter Nilsson  <hp@bitrange.com>
148         * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
149         defined before the statement using DEFINED yield 1.
150         * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
151         call lang_track_definedness on symbol.  In subsequent phases, use
152         lang_symbol_definition_iteration and lang_statement_iteration to
153         check whether the symbol was defined before the current statement.
154         (exp_fold_tree) <case etree_assign et al>: Call
155         lang_update_definedness before updating symbol type when setting
156         symbol.
157         * ldlang.c (lang_definedness_table): New variable.
158         (lang_definedness_newfunc, lang_track_definedness)
159         (lang_symbol_definition_iteration, lang_update_definedness): New
160         functions.
161         (lang_init): Initialize lang_definedness_table and
162         lang_statement_iteration.
163         (lang_finish): Destroy bfd_hash_table_free.
164         (lang_size_sections): Increment lang_statement_iteration.
165         (lang_do_assignments_1): New function with former
166         lang_do_assignments contents.  Change recursive calls to call this
167         function.
168         (lang_do_assignments): Evacuate contents.  Increment
169         lang_statement_iteration, then just call lang_do_assignments_1.
170         * ldlang.h (struct lang_definedness_hash_entry)
171         (lang_statement_iteration, lang_track_definedness)
172         (lang_symbol_definition_iteration, lang_update_definedness):
173         Declare.
175 2003-10-09  H.J. Lu  <hongjiu.lu@intel.com>
177         * scripttempl/elf.sc (__executable_start): Provide.
179 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
181         * emulparams/armelf.sh: Define NO_SMALL_DATA.
182         * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
183         emulparams/armnto.sh: Likewise.
185 2003-10-08  Alexandre Oliva  <aoliva@redhat.com>
187         * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
188         whether to skip test for no memory region.
190 2003-10-08  Nick Clifton  <nickc@redhat.com>
192         * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
193         describing defaults.  Change default to report unresolved symbols
194         in object files as well.
196 2003-10-08  Hans-Peter Nilsson  <hp@bitrange.com>
198         * ldexp.c (fold_name) <case DEFINED>: Set section of result to
199         abs_output_section.
201 2003-10-07  Bob Wilson  <bob.wilson@acm.org>
203         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
204         OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
205         zero for relocatable links.
207 2003-10-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
209         * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
211 2003-10-07  Nathan Sidwell  <nathan@codesourcery.com>
213         * ldwrite.c (unsplittable_name): New.
214         (clone_section): Strip existing numeric suffix. Only truncate names
215         for coff targets.
216         (split_sections): Use unsplittable_name.
218 2003-10-06  Nick Clifton  <nickc@redhat.com>
220         * lexsup.c (parse_args): Report unresolved symbols in shared
221         libraries when creating a dynamic executable.  This is a
222         restoration of the default behaviour for previous versions of
223         the linker.
225 2003-10-06  Matt Thomas <matt@3am-software.com>
227         * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
228         * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
230 2003-10-06  Robert Millan  <robertmh@gnu.org>
232         * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
234 2003-10-02  Ivan Warren <ivan@vmfacility.fr>
236         * pe-dll.c (make_one): Correct sym def order & pick right sym for
237         .idata$7 reloc.
239 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
241         * NEWS: Add an indication of the cutoff for 2.14.
243 2003-09-30  Chris Demetriou  <cgd@broadcom.com>
245         * ldmain.c (get_emulation): Ignore "-mips64r2".
247 2003-09-03  Robert Millan  <robertmh@gnu.org>
249         * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
250         triplet.
251         * configure.tgt: Likewise.
253 2003-08-29  Jafa  <jafa@silicondust.com>
255         * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
257 2003-08-21  Nick Clifton  <nickc@redhat.com>
259         * po/tr.po: Updated Turkish translation.
261 2003-08-20  Nick Clifton  <nickc@redhat.com>
263         * ldmain.c: Initialise the new fields in bfd_link_info to
264         NOT_YET_SET.
265         * lexsup.c (enum option_values): New enum.  Use this to
266         replace the handed coded values for the long switch options.
267         (ld_options): Add 'unresolved-symbols',
268         'warn-unresolved-symbols' and 'error-unresolved-symbols'.
269         (parse_args): Handle the new switches.  Set the values of
270         unresolved_symbols_in_objects and
271         unresolved_symbols_in_shared_libs appropriately.  If they were
272         not initialised by the command line, install default values.
273         * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
274         -z defs to use the new fields in bfd_link_info.
275         * ld.texinfo: Document the new switches.
276         * NEWS: Mention this feature.
278 2003-08-15 Dmitry Diky <diwil@mail.ru>
279         
280         * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
281         calls genscripts_extra.sh.
282         Rearrange all msp430 depends using this script.
283         * Makefile.in: Regenerate.
284         * genscripts_extra.sh: New file: Similar to genscripts.sh, except
285         that the script to be run to generate the emulations can be passed
286         as an optional parameter instead of being computed from the
287         emulation name.
288         * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
289         definitions into one file.
290         * emulparams/msp430x*.sh: Removed.
292 2003-08-15  Nick Clifton  <nickc@redhat.com>
294         * ld.texinfo (Options): Put keywords for the -z option into a
295         table.  Add more text describing what the -z now option does.
297 2003-08-14  Alan Modra  <amodra@bigpond.net.au>
299         * dep-in.sed: Remove libintl.h.
300         * Makefile.am (POTFILES.in): Unset LC_COLLATE.
301         * Makefile.in: Regenerate.
303 2003-08-13  Alan Modra  <amodra@bigpond.net.au>
305         * genscripts.sh (libpath.exp): Only generate for first emulation.
306         (LIB_PATH): Correct order of paths.  Don't add $tool_lib when
307         already present or when LIB_PATH is set to ":".
309 2003-08-12  Ian Lance Taylor  <ian@airs.com>
311         * ldmain.c (undefined_symbol): Change parameter name from `fatal'
312         to `error'.  If only a warning, put warning in the reported
313         string.  Consistently set failure flag when not a warning.
315 2003-08-08 Dmitry Diky <diwil@mail.ru>
317         * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
318         gcc order.
319         * Makefile.in: Regenerate.
320         * configure.tgt: Add extra emulations.
321         * emulparams/msp430xE423.sh: New file.
322         * emulparams/msp430xE427.sh: New file.
323         * emulparams/msp430xW425.sh: New file.
324         * emulparams/msp430xE425.sh: New file.  
325         * emulparams/msp430xW423.sh: New file.  
326         * emulparams/msp430xW427.sh: New file.
328 2003-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
330         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
331         Change second (cmdline) arg to lang_add_entry to FALSE.
332         (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
334 2003-08-05  Christian Groessler  <chris@groessler.org>
335             Jason Eckhardt  <jle@rice.edu>
337         * configure.tgt: Recognize new target i860-*-coff.
338         * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
339         (ecoff_i860.c): New rule.
340         * emulparams/coff_i860.sh: New file.
341         * scripttempl/i860coff.sc: New file.
342         * Makefile.in: Regenerate.
344 2003-08-04  Nick Clifton  <nickc@redhat.com>
346         * emultempl/elf32.em (before_allocation): Prepend "warning: "
347         to messages produced for .gnu.warning.SYMBOL sections.
349 2003-08-04  Alan Modra  <amodra@bigpond.net.au>
351         * emultempl/elf32.em (output_rel_find): Add "isdyn" param.  Put
352         .rel.dyn before other reloc sections.  Don't stop looking for reloc
353         sections on finding one that isn't allocated.  Match .rel even when
354         placing .rela and vice versa, when setting last_rel and
355         last_rel_alloc for the first time.  If no reloc sections in script,
356         prefer allocated section over non-alloc.
357         (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
359 2003-07-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
361         * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
362         section for shared library.
363         * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
364         * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
366 2003-07-29  Stephane Carrez  <stcarrez@nerim.fr>
368         * scripttempl/elfm68hc12.sc: Add gcc_except_table.
369         * scripttempl/elfm68hc11.sc: Likewise.
371 2003-07-28  Alan Modra  <amodra@bigpond.net.au>
373         * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
375         * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
377 2003-07-27  Alan Modra  <amodra@bigpond.net.au>
379         * ld.texinfo: Typo fixes.  Document SUBALIGN.
380         * ldgram.y (opt_subalign): Add.
381         * ldlex.l (SUBALIGN): Recognize.
382         * ldlang.c (overlay_subalign): New var.
383         (lang_enter_overlay): Add subalign param.
384         (lang_enter_overlay_section): Pass overlay_subalign to
385         lang_enter_output_section_statement.
386         * ldlang.h (lang_enter_overlay): Update.
388 2003-07-24  Nick Clifton  <nickc@redhat.com>
390         * po/fr.po: Updated French translation.
392 2003-07-23  Stephane Carrez  <stcarrez@nerim.fr>
394         * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
395         account .tramp sections;
396         * scripttempl/elfm68hc12.sc: Likewise.
398 2003-07-17  Charles Wilson  <cwilson@ece.gatech.edu>
400         * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
402 2003-07-17  Nick Clifton  <nickc@redhat.com>
404         * po/es.po: New Spanish translation.
406 2003-07-11  Alan Modra  <amodra@bigpond.net.au>
408         * po/ld.pot: Regenerate.
410 2003-07-10  Bob Wilson  <bob.wilson@acm.org>
412         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
413         with new .got.loc section.
414         (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
415         non-relocating links.
416         (OTHER_SECTIONS): Add .xt.lit here.  Change it to keep linkonce
417         sections separate for non-relocating links; likewise for .xt.insn.
419 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
421         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
422         * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
423         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
424         * configure.host (am33_2.0-*-linux*): Added.
425         * configure.tgt (am33_2.0-*-linux*): Likewise.
426         * emulparams/elf32am33lin.sh: New.
427         * Makefile.am (eelf32am33lin.c): New rule.
428         * Makefile.in: Rebuilt.
430 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
432         2001-04-17  Alexandre Oliva  <aoliva@redhat.com>
433         * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
434         (GENERATE_SHLIB_SCRIPT): Likewise.
436 2003-07-10  Alan Modra  <amodra@bigpond.net.au>
438         * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
439         (GOT): Define.
440         * emultempl/ppc64elf.em (stub_added): New static var.
441         (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
442         (ppc_add_stub_section): Set stub_added.
443         (gld${EMULATION_NAME}_finish): Look for .got rather than .toc.  Adjust
444         ppc64_elf_size_stubs call and test for stubs.
445         * scripttempl/elf.sc (GOT): Define and use.
447 2003-07-08  J"orn Rennecke <joern.rennecke@superh.com>
449         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
450         Allow second call from ldemul_finish.
452 2003-07-04  J"orn Rennecke <joern.rennecke@superh.com>
454         * emulparams/shelf32.sh (STACK_ADDR): Don't define.
455         (OTHER_SECTIONS): Include .stack.
456         * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
458 2003-07-02  Jakub Jelinek  <jakub@redhat.com>
460         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
461         .opd if -pie.
462         (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
463         * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
464         if -pie.
466 2003-06-28  Alan Modra  <amodra@bigpond.net.au>
468         * ld.h: Convert to C90, remove unnecessary prototypes and casts.
469         Replace PTR with void *.  Formatting.
470         * ldcref.c: Likewise.
471         * ldctor.c: Likewise.
472         * ldctor.h: Likewise.
473         * ldemul.h: Likewise.
474         * ldexp.c: Likewise.
475         * ldexp.h: Likewise.
476         * ldfile.c: Likewise.
477         * ldfile.h: Likewise.
478         * ldlang.c: Likewise.
479         * ldlang.h: Likewise.
480         * ldlex.h: Likewise.
481         * ldlex.l: Likewise.
482         * ldmain.c: Likewise.
483         * ldmain.h: Likewise.
484         * ldmisc.c: Likewise.
485         * ldmisc.h: Likewise.
486         * ldver.h: Likewise.
487         * ldwrite.c: Likewise.
488         * ldwrite.h: Likewise.
489         * lexsup.c: Likewise.
490         * mri.c: Likewise.
491         * mri.h: Likewise.
492         * pe-dll.c: Likewise.
493         * pe-dll.h: Likewise.
494         * deffilep.y: Likewise.
495         * deffile.h: Likewise.  Don't include ansidecl.h.
496         * emulparams/elf32mcore.sh: Remove unnecessary cast.
497         * emultempl/m68kcoff.em: Likewise.
498         * emultempl/m68kelf.em: Likewise.
499         * emultempl/ticoff.em: Remove lang_add_output_format declaration.
500         * sysdep.h: Don't include ansidecl.h.
501         * Makefile.am: Run "make dep-am".
502         * Makefile.in: Regenerate.
504 2003-06-27  Nick Clifton  <nickc@redhat.com>
506         * deffilep.y (def_file_add_directive): Cope with NUL seperated
507         directives.  Fix reporting of unparseable directives.
508         (def_error): Check for a NULL def_filename.
510 2003-06-27  Alan Modra  <amodra@bigpond.net.au>
512         * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
513         and casts.  Replace PTR with void *.  Formatting.
514         * emultempl/alphaelf.em: Likewise.
515         * emultempl/armcoff.em: Likewise.
516         * emultempl/armelf.em: Likewise.
517         * emultempl/armelf_oabi.em: Likewise.
518         * emultempl/beos.em: Likewise.
519         * emultempl/elf32.em: Likewise.
520         * emultempl/generic.em: Likewise.
521         * emultempl/gld960.em: Likewise.
522         * emultempl/gld960c.em: Likewise.
523         * emultempl/hppaelf.em: Likewise.
524         * emultempl/linux.em: Likewise.
525         * emultempl/lnk960.em: Likewise.
526         * emultempl/m68hc1xelf.em: Likewise.
527         * emultempl/m68kcoff.em: Likewise.
528         * emultempl/m68kelf.em: Likewise.
529         * emultempl/mipsecoff.em: Likewise.
530         * emultempl/mipself.em: Likewise.
531         * emultempl/mmix-elfnmmo.em: Likewise.
532         * emultempl/mmixelf.em: Likewise.
533         * emultempl/mmo.em: Likewise.
534         * emultempl/needrelax.em: Likewise.
535         * emultempl/netbsd.em: Likewise.
536         * emultempl/pe.em: Likewise.
537         * emultempl/sh64elf.em: Likewise.
538         * emultempl/sunos.em: Likewise.
539         * emultempl/ticoff.em: Likewise.
540         * emultempl/vanilla.em: Likewise.
541         * emultempl/xtensaelf.em: Likewise.
542         * Makefile.am: Correct dependencies.
543         * Makefile.in: Regenerate.
545 2003-06-25  Alan Modra  <amodra@bigpond.net.au>
547         * ld.texinfo: Correct spelling of "relocatable".
548         * ldctor.c: Likewise.
549         * ldexp.c: Likewise.
550         * ldfile.c: Likewise.
551         * ldint.texinfo: Likewise.
552         * ldlang.c: Likewise.
553         * ldmain.c: Likewise.
554         * ldwrite.c: Likewise.
555         * lexsup.c: Likewise.
556         * emultempl/aix.em: Likewise.
557         * emultempl/alphaelf.em: Likewise.
558         * emultempl/armcoff.em: Likewise.
559         * emultempl/armelf_oabi.em: Likewise.
560         * emultempl/beos.em: Likewise.
561         * emultempl/elf32.em: Likewise.
562         * emultempl/generic.em: Likewise.
563         * emultempl/gld960.em: Likewise.
564         * emultempl/gld960c.em: Likewise.
565         * emultempl/hppaelf.em: Likewise.
566         * emultempl/linux.em: Likewise.
567         * emultempl/lnk960.em: Likewise.
568         * emultempl/m68hc1xelf.em: Likewise.
569         * emultempl/m68kcoff.em: Likewise.
570         * emultempl/m68kelf.em: Likewise.
571         * emultempl/mipsecoff.em: Likewise.
572         * emultempl/mipself.em: Likewise.
573         * emultempl/mmix-elfnmmo.em: Likewise.
574         * emultempl/mmo.em: Likewise.
575         * emultempl/needrelax.em: Likewise.
576         * emultempl/pe.em: Likewise.
577         * emultempl/ppc64elf.em: Likewise.
578         * emultempl/sh64elf.em: Likewise.
579         * emultempl/sunos.em: Likewise.
580         * emultempl/ticoff.em: Likewise.
581         * emultempl/xtensaelf.em: Likewise.
583 2003-06-24  Alan Modra  <amodra@bigpond.net.au>
585         * emultempl/ppc32elf.em: Convert to C90.
587 2003-06-20  Alan Modra  <amodra@bigpond.net.au>
589         * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
590         unnecessary prototypes and casts.
592 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
594         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
595         statistics from ppc64_elf_build_stubs.
597 2003-06-19  Alan Modra  <amodra@bigpond.net.au>
599         * emultempl/ppc64elf.em (build_section_lists): Check return status
600         from ppc64_elf_next_input_section.
602 2003-06-17  H.J. Lu <hongjiu.lu@intel.com>
604         * ldlang.c (section_already_linked): Put back assignment of
605         kept_section.
607 2003-06-17  Rainer Keuchel  <rkeuchel@allgeier.com>
609         * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
610         reloc.
612 2003-06-17  Loren James Rittle  <rittle@latour.rsch.comm.mot.com>
614         * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
615         if not produced by gcc.
617 2003-06-16  Hans-Peter Nilsson  <hp@axis.com>
619         * configure.tgt: Add specific case for cris-*-linux-gnu*
620         with crislinux emulation only.
622 2003-06-13  Robert Millan  <zeratul2@wanadoo.es>
624         * configure.tgt: Add i386-netbsd-gnu target.
626 2003-06-12  Richard Sandiford  <rsandifo@redhat.com>
628         * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
629         to $targ_extra_libpath.
631 2003-06-11  H.J. Lu <hongjiu.lu@intel.com>
633         * po/Make-in (DESTDIR): New.
634         (install-data-yes): Support $(DESTDIR).
635         (uninstall): Likewise.
637 2003-06-10  Doug Evans  <dje@sebabeach.org>
639         * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
640         * Makefile.in: Regenerate.
642 2003-06-10  Richard Sandiford  <rsandifo@redhat.com>
644         * configure.tgt (h8300*): Add h8300sxn emulations.
645         * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
646         (eh8300sxn.c, eh8300sxnelf.c): New rules.
647         * Makefile.in: Regenerate.
648         * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
649         * scripttempl/h8300sxn.sc: New file.
651 2003-06-10  Alan Modra  <amodra@bigpond.net.au>
653         * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
654         CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
656 2003-06-08  Alan Modra  <amodra@bigpond.net.au>
658         * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
659         (build_toc_list): New function.
660         (gld${EMULATION_NAME}_finish): Call build_toc_list and
661         ppc64_elf_reinit_toc.  Adjust ppc64_elf_build_stubs call.
662         (OPTION_STUBSYMS): Define.
663         (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
664         (PARSE_AND_LIST_OPTIONS): Document.
665         (PARSE_AND_LIST_ARGS_CASES): Handle.
667 2003-06-05  Roland McGrath  <roland@redhat.com>
669         * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
670         extra \t in -z noexecstack line.
672 2003-05-23  Jakub Jelinek  <jakub@redhat.com>
674         * ldgram.y (phdr_type): Grok PT_GNU_STACK.
675         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
676         -z execstack and -z noexecstack.
677         (gld${EMULATION_NAME}_list_options): Likewise.
678         * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
680 2003-06-03  Michael Snyder  <msnyder@redhat.com>
681         and Bernd Schmidt   <bernds@redhat.com>
682         and Alexandre Oliva <aoliva@redhat.com>
684         * Makefile.am: Add new emulations for h8300sx.
685         * Makefile.in: Regenerate.
686         * configure.tgt: Add new emulations.
687         * emulparams/h8300sx.sh: New emulation.
688         * emulparams/h8300sxelf.sh: Ditto.
689         * scripttempl/h8300sx.sc: Ditto.
691 2003-06-03  H.J. Lu <hongjiu.lu@intel.com>
693         * ldmisc.c: Include "bfdlink.h".
694         (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
695         and -LD_DEFINITION_IN_DISCARDED_SECTION.
697         * Makefile.am: Rebuild dependency.
698         * Makefile.in: Regenerated.
700 2003-06-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
702         * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
703         * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
705 2003-06-02  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
707         * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
708         sorted alphabetically, instead of exported_symbols, which is
709         sorted by ordinal.
711 2003-05-30  Ulrich Drepper  <drepper@redhat.com>
712             Jakub Jelinek  <jakub@redhat.com>
714         * lexsup.c (OPTION_PIE): Define.
715         (ld_options): Add -pie and --pic-executable options.
716         (parse_args): Handle OPTION_PIE.
717         * ldmain.c (main): Initialize link_info.pie and
718         link_info.executable.
719         * genscripts.sh: Generate PIE scripts.
720         * ld.texinfo: Document -pie and --pic-executable options.
721         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
722         (gld${EMULATION_NAME}_place_orphan): Likewise.
723         (gld${EMULATION_NAME}_get_script): Include PIE scripts.
724         * scripttempl/elf.sc: In PIE scripts set . the same way as in
725         shared scripts.
726         * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
727         * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
728         * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
729         * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
730         * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
731         * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
732         * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
733         * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
734         * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
735         * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
736         * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
738 2003-05-30  H.J. Lu <hongjiu.lu@intel.com>
740         * genscripts.sh: Create tmpdir/libpath.exp.
742 2003-05-30  Nick Clifton  <nickc@redhat.com>
744         * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
745         with a test for a NULL bfd_for_interworking.
747 2003-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
749         * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
750         correctly for more recent versions of NetBSD.
751         (alpha*-*-netbsd*): Remove.
752         (i[3-7]86-*-netbsd*): Remove.
754 2003-05-29  Nick Clifton  <nickc@redhat.com>
756         * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
758 2003-05-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
760         * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
761         trap on pointer crops.
763 2003-05-21  Marcus Comstedt  <marcus@mc.pp.se>
765         * configure.tgt: Check for a target triplet of shl-...-netbsdelf
766         as well as shle-...-netbsdelf.
768 2003-05-16  Kelley Cook  <kelleycook@wideopenwest.com>
770         * configure.host: Accept i[3-7]86 variants.
771         * configure.tgt: Likewise.
773 2003-05-15  H.J. Lu <hongjiu.lu@intel.com>
775         * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
777 2003-05-09  Daniel Jacobowitz  <drow@mvista.com>
779         * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
780         (earmelfb.c, earmelfb_linux.c): New rules.
781         * Makefile.in: Regenerated.
782         * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
783         * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
785 2003-05-09  Nick Clifton  <nickc@redhat.com>
787         * ldlang.c (lang_size_sections_1): Default to generating a
788         fatal error message if a loadable section is not allocated
789         to a memory region when regions are defined.
791 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
793         * Makefile.am (em68hc11elf.c): Correct dependencies.
794         (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
795         * Makefile.in: Regenerate.
796         * emultempl/elf32.em (find_exp_assignment): Adjust for changed
797         bfd_elf_record_link_assignment name.
799 2003-05-07  Alexandre Oliva  <aoliva@redhat.com>
801         * ldmain.h (overflow_cutoff_limit): Declare.
802         * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
803         (reloc_overflow): Limit error messages based on it.
804         * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
805         unlimited.
807 2003-05-05  Alan Modra  <amodra@bigpond.net.au>
809         * ldlex.l: Accept C style comments in version scripts.
811 2003-04-28  H.J. Lu <hjl@gnu.org>
813         * ldlang.c (lang_process): Add the relax finalize pass.
815         * ldmain.c (main): Initialize link_info.relax_finalizing to
816         FALSE.
818 2003-04-24  Roland McGrath  <roland@redhat.com>
820         * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
821         If a name string is unknown, give an error rather than crashing later.
823 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
825         * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
826         eh8300hnelf.o, eh8300snelf.o and respective rules.
827         * Makefile.in: Regenerate.
828         * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
829         * emulparams/h8300hn.sh: New
830         * emulparams/h8300sn.sh: New
831         * emulparams/h8300hnelf.sh: New
832         * emulparams/h8300snelf.sh: New
833         * scripttempl/h8300hn.sc: new
834         * scripttempl/h8300sn.sc: new
836 2003-04-23  H.J. Lu <hjl@gnu.org>
838         * ldmain.c (link_callbacks): Initialize error_handler.
840         * ldmisc.c (error_handler): New function.
842         * ldmisc.h (error_handler): New prototype.
844 2003-04-21  Stephane Carrez  <stcarrez@nerim.fr>
846         * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
847         * emulparams/m68hc11elfb.sh: Likewise.
848         * emulparams/m68hc12elf.sh: Likewise.
849         * emulparams/m68hc12elfb.sh: Likewise.
851 2003-04-19  Stephane Carrez  <stcarrez@nerim.fr>
853         * emultempl/m68hc1xelf.em: New file to generate far trampolines on
854         68HC11 and 68HC12.
855         (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
856         generate.
857         (LDEMUL_FINISH): Override to generate the trampolines after gc and
858         linker relaxation.
859         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
860         stub file for trampolines.
861         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
862         --no-trampoline and --bank-window to control the memory bank window.
864 2003-04-18  H.J. Lu <hjl@gnu.org>
866         * ldfile.c (ldfile_add_library_path): Remove the unused
867         variable.
869 2003-04-18  Andrew Haley  <aph@cambridge.redhat.com>
871         * scripttempl/xstormy16.sc (__data, __rdata): New.
873 2003-04-16  Nick Clifton  <nickc@redhat.com>
875         * scripttempl/xstormy16.sc: Add .jcr section mapping.
877 2003-04-15  H.J. Lu <hjl@gnu.org>
879         From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
881         * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
883 2003-04-15  Rohit Kumar Srivastava <rohits@kpitcummins.com>
885         * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
886         * ld.texinfo: Likewise.
888 2003-04-14  Alan Modra  <amodra@bigpond.net.au>
890         From Prashanth Tamraparni <prashanth_t@in.ibm.com>
891         * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
892         other variants of crtbegin.o, crtend.o.
893         (DTOR): Likewise.
894         * scripttempl/crisaout.sc (ctors, dtors): Likewise.
895         * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
896         * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
897         * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
898         * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
899         * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
900         * scripttempl/mmo.sc (ctors, dtors): Likewise.
901         * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
903 2003-04-09   Dmitry Diky  <diwil@mail.ru>
905         * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
906         sections to respect C++  constructor/destructor. Add ctors/dtors
907         start/stop definitions.
908         * scripttempl/elf32msp430_3.sc: Likewise.
910 2003-04-06  Nick Clifton  <nickc@redhat.com>
912         * ld.texinfo (Options): Add a reminder of the target specific
913         nature to the description of the i386 PE specific options, for
914         readers who have not read all the way through the manual.
916 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
918         * configure.tgt: Fixed bug in list of targ_extra_emuls.
919         * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
920         cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
921         * emulparams/tic3xcoff_onchip.sh: Ditto
922         * emulparams/tic4xcoff.sh: Ditto
923         * scripttempl/tic4xcoff.sc: Ditto
925 2003-04-03  Nick Clifton  <nickc@redhat.com>
927         * NEWS: Mention support for Xtensa architecture.
929 2003-04-02  Nick Clifton  <nickc@redhat.com>
931         * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
933 2003-04-01  Danny Smith <dannysmith@users.sourceforge.net>
935         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
936         Don't call pe_dll_build_section() if link_info.relocateable.
937         (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
938         if link_info.relocateable.
940 2003-04-01  Fabrizio Gennari  <fabrizio.ge@tiscalinet.it>
942         * pe-dll.c (process_def_file): Don't create an export
943         section if there are no exports and we're building an exe
944         (pe_dll_build_sections): Ditto
945         (pe_dll_fill_sections): Conditionalize setting
946         abfd->dll true on info->shared
947         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
948         If i386pe or armpe, call pe_dll_build_section()
949         for both exe's and dll's, not just dll's.
950         (gld_${EMULATION_NAME}_finish): For all targets except
951         shpe and mipspe, call pe_dll_fill_sections() for both
952         exe's and dll's, not just dll's.
954 2003-04-02  Bob Wilson  <bob.wilson@acm.org>
956         * emulparams/xtensa-config.sh: Remove comment indicating that this is
957         a generated file.
959 2003-04-01  Bob Wilson  <bob.wilson@acm.org>
961         * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
962         (eelf32xtensa.c): New target.
963         * Makefile.in: Regenerate.
964         * configure.tgt: Handle xtensa-*-*.
965         * gen-doc.texi: Set XTENSA variable.
966         * ld.texinfo: Set XTENSA variable.  Add new Xtensa node.
967         * emulparams/elf32xtensa.sh: New file.
968         * emulparams/xtensa-config.sh: Likewise.
969         * emultempl/xtensaelf.em: Likewise.
970         * scripttempl/elfxtensa.sc: Likewise.
972 2003-04-01  Jakub Jelinek  <jakub@redhat.com>
974         * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
975         targ_extra_libpath.  Add elf64ppc to ppc targ_extra_libpath
976         if --enable-64-bit-bfd.
978 2003-04-01  Nick Clifton  <nickc@redhat.com>
980         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
981         note section.
982         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
983         name of note section.
985 2003-03-31  Alexandre Oliva  <aoliva@redhat.com>
987         * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
988         --section-start.
990 2003-03-31  David Heine  <dlheine@suif.stanford.edu>
992         * ldfile.c (ldfile_add_library_path): Always allocate space for
993         the filename.
994         * ldlang.c (lang_register_vers_node): Free the node if it cannot
995         be used.
996         * ldmain.c (set_scripts_dir): Always free the constructed
997         directory name.
998         (add_keepsyms_file): Fix memory leak.
999         * ldmisc.c (vfinfo): Likewise.
1000         * lexsup.c (parse_args): Likewise.
1002 2003-03-25  Stan Cox   <scox@redhat.com>
1003             Nick Clifton  <nickc@redhat.com>
1005         Contribute support for Intel's iWMMXt chip - an ARM variant:
1007         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
1008         * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
1009         * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
1010         (.bss): Likewise.
1012 2003-03-25  Alexandre Oliva  <aoliva@redhat.com>
1014         * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
1015         * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
1016         (main): Initialize them.
1017         * ldfile.c: Include pathnames.h.
1018         (is_sysrooted_pathname): New.
1019         (ldfile_add_library_path): Use it.
1020         (ldfile_open_file_search): Likewise.  Use IS_ABSOLUTE_PATH.  Don't
1021         search_dirs if given an absolute pathname.
1022         (ldfile_open_file): Issue error message for sysrooted
1023         absolute pathnames.
1024         * Makefile.am: Updated dependencies.
1025         * Makefile.in: Rebuild.
1027 2003-03-24  Daniel Néri  <dne@mayonnaise.net>
1029         * ld.texinfo: Rename all occurances of C54X to TIC54X.
1031 2003-03-19  Andreas Schwab  <schwab@suse.de>
1033         * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
1034         eof.
1036 2003-03-18  Danny Smith  <dannysmith@users.sourceforge.net>
1038         * deffilep.y (opt_base): If no number given, set to default
1039         (-1), not 0.
1041 2003-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
1043         * deffilep.y (def_import): Use default extension of "dll"
1044         if no extension provided in parsed IMPORT definition.
1046         * deffilep.y (def_lex): Revert 2003-03-12 change.
1047         (dot_name): New id type and rule.
1048         (expline): Use instead of ID.
1049         (opt_equal_name): Likewise.
1051 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1053         * deffilep.y (def_lex): Accept '.' as valid non-lead char.
1055 2003-03-07  Christopher Faylor  <cgf@redhat.com>
1057         * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
1058         apparent accidental removal on 2003-01-06.
1060 2003-03-04  Dmitry Diky  <diwil@mail.ru>
1062         * Makefile.am: Add new devices x1122 x1132 emulation
1063         * configure.tgt: Likewise.
1064         * Makefile.in: Regenerate.
1065         * emulparams/msp430x1122.sh: New file.
1066         * emulparams/msp430x1132.sh: New file.
1068 2003-03-03  Alexandre Oliva  <aoliva@redhat.com>
1070         * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
1071         well.
1073         * ldfile.h (struct search_dirs): Added sysrooted field.
1074         * ldlang.h (struct lang_input_statement_struct): Likewise.
1075         * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
1076         (ldfile_open_file_search): Look for sysrooted filename starting
1077         with / in ld_sysroot instead of in the current directory.  Clear
1078         sysrooted flag if it's found in the current directory.  Set it
1079         from the search directory's sysrooted flag where it is found
1080         otherwise.
1081         * ldlang.c (ldlang_sysrooted_script): New static variable.
1082         (new_afile): Mark search_file_enums as sysrooted if
1083         ldlang_sysrooted_script.
1084         (load_symbols): Set ldlang_sysrooted_script according to the
1085         script's sysrooted field while processing it.
1086         * ld.texinfo: Document INPUT behavior in sysroot.
1088 2003-03-02  Danny Smith  <dannysmith@users.sourceforge.net>
1090         * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
1092 2003-03-03  Alan Modra  <amodra@bigpond.net.au>
1094         * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
1095         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1096         PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
1097         PARSE_AND_LIST_EPILOGUE): Don't define.
1098         * emultempl/alphaelf.em: New file.
1100 2003-03-01  Alan Modra  <amodra@bigpond.net.au>
1102         * ldemul.c: Include getopt.h.
1103         * emultempl/elf32.em: Include getopt.h earlier.
1104         * emultempl/ticoff.em: Likewise.
1106 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
1108         * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
1109         support when scripts read from files.
1111 2003-02-28  Alan Modra  <amodra@bigpond.net.au>
1113         * ldemul.c (ldemul_parse_args): Return FALSE by default.
1114         * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
1115         comment.
1117         * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
1118         (ldemul_parse_args): Return bfd_boolean.  Formatting.
1119         * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
1120         (ldemul_parse_args): Adjust.
1121         (struct ld_emulation_xfer_struct): Add add_options and handle_option.
1122         Return bfd_boolean from parse_args.
1123         * lexsup.c (parse_args): Malloc shortopts, longopts and
1124         really_longopts.  Call ldemul_add_options and ldemul_handle_option.
1125         * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
1126         gld${EMULATION_NAME}_parse_args.
1127         (gld${EMULATION_NAME}_handle_option): Likewise.
1128         (ld_${EMULATION_NAME}_emulation): Adjust initializer.
1129         * emultempl/armcoff.em: As for aix.em, but remove parse_args.
1130         * emultempl/beos.em: Likewise.
1131         * emultempl/pe.em: Likewise.
1132         * emultempl/ticoff.em: Likewise.
1133         * emultempl/elf32.em: Likewise.  Don't duplicate long options either.
1134         (gld${EMULATION_NAME}_add_sysroot): Prototype.
1135         * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
1136         options.
1137         * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1138         * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1139         * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1140         * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
1141         initializer.
1142         * emultempl/generic.em: Likewise.
1143         * emultempl/gld960.em: Likewise.
1144         * emultempl/gld960c.em: Likewise.
1145         * emultempl/linux.em: Likewise.
1146         * emultempl/lnk960.em: Likewise.
1147         * emultempl/m68kcoff.em: Likewise.
1148         * emultempl/mipsecoff.em: Likewise.
1149         * emultempl/sunos.em: Likewise.
1150         * emultempl/vanilla.em: Likewise.
1151         * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
1153 2003-02-25  Alexandre Oliva  <aoliva@redhat.com>
1155         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
1156         memory allocation error.
1158         * Makefile.am (ldmain.o): Define TOOLBINDIR.
1159         * Makefile.in: Rebuilt.
1160         * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
1162 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
1164         * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
1165         call os_region_check when it is set.
1166         (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
1167         lang_size_sections_1.
1168         (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
1169         only for the last call, not on every relaxation iteration.
1170         * ldlang.h (lang_size_sections): Update prototype.
1171         * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
1172         to lang_size_sections.
1173         (pe_exe_fill_sections): Likewise.
1174         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
1175         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1176         * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
1177         (ppc_layout_sections_again): Likewise.
1179 2003-02-21  Bob Wilson  <bob.wilson@acm.org>
1181         * gen-doc.texi: Set ARM and HPPA variables.
1182         * ld.texinfo: Fix typos and obvious texinfo mistakes.  Make section
1183         title capitalization more consistent.  Add missing menu entries for
1184         machine-specific sections and conditionalize them consistently.
1185         Conditionalize text that is irrelevant when SingleFormat is set.
1186         Add @group divisions to improve page breaks in long examples.
1187         Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
1188         is correct.  Remove "FIXME" comment about not using
1189         @raisesections/@lowersections.  Use @raisesections/@lowersections
1190         consistently for machine-specific sections.  Change to be more polite
1191         about poor bug reports.  Replace FDL appendix with include of fdl.texi.
1192         Move WIN32 node to match its order in the menus.
1193         * fdl.texi: New file.
1195 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
1197         * configure.in (TARGET_SYSTEM_ROOT): Set default to
1198         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
1199         '${exec_prefix}' (in addition to the expansion thereof) as
1200         relocatable.
1201         * configure: Rebuilt.
1203 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
1205         * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
1207 2003-02-20  Harri Porten  <porten@kde.org>
1209         * ldgram.y (vers_defns): Allow optional trailing semicolon in
1210         EXTERN NAME block;
1212 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
1214         * emultempl/ppc32elf.em: New file.
1215         * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1216         * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1217         (eelf32lppcnto.c): Likewise.
1218         (eelf32lppcsim.c): Likewise.
1219         (eelf32ppcnto.c): Likewise.
1220         (eelf32ppc.c): Likewise.
1221         (eelf32ppc_fbsd.c): Likewise.
1222         (eelf32ppcsim.c): Likewise.
1223         (eelf32ppclinux.c): Likewise.
1224         * Makefile.in: Regenerate.
1226 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
1228         * ld.texinfo: Remove spaces between @samp and opening brace.
1230 2003-02-18  Alan Modra  <amodra@bigpond.net.au>
1232         * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1233         hash creator.
1234         (ppc_before_allocation): Don't do optimizations if wrong hash table.
1235         (gld${EMULATION_NAME}_finish): Ditto.
1237 2003-02-17  Nick Clifton  <nickc@redhat.com>
1239         * ldmain.c (main) Default allow_shlib_undefined to true.
1240         * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1241         (parse_args): Parse the new switch.
1242         * ld.texinfo: Document new switch and default behaviour of
1243         allowing undefined symbols in shared libraries.
1245 2003-02-11 Dmitry Diky  <diwil@mail.ru>
1247         * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1248         * scripttempl/elf32msp430_3.sc: Likewise.
1250 2003-02-11  Uwe Stieber  <uwe@wwws.de>
1252         * configure.tgt: Add support for kaOS as cross build target
1253         system.
1255 2003-02-10  John Daivid Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1257         * hppaelf.em (group_size): Change default back to 1.
1259 2003-02-09  Alan Modra  <amodra@bigpond.net.au>
1261         * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1263 2003-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1265         * hppaelf.em (group_size): Change default to -1.
1267 2003-02-07  Nick Clifton  <nickc@redhat.com>
1269         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1270         opt.
1271         (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1272         no-pipeline-knowledge.  This will prevent the getopt package from
1273         thinking that there are any shorter abbreviations for
1274         --no-pipeline-knowledge.
1276 2003-02-07  Jakub Jelinek  <jakub@redhat.com>
1278         * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1279         which already have it.  Avoid duplicates.
1281 2003-02-06  Jakub Jelinek  <jakub@redhat.com>
1283         * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1284         * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1285         * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1287 2003-02-05  Alan Modra  <amodra@bigpond.net.au>
1289         * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1290         call ppc64_elf_tls_optimize.
1292 2003-02-03  Daniel Jacobowitz  <drow@mvista.com>
1294         * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1295         outside of GNU/Linux conditional.
1297 2003-01-28  Ralf Habacker  <ralf.habacker@freenet.de>
1299         * deffilep.y (def_get_module): New function: locate an already
1300         added module.
1301         * deffile.h (def_get_module): New prototype.
1302         * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1303         a dll multiple times.
1305 2003-01-23  Alan Modra  <amodra@bigpond.net.au>
1307         * emultempl/sh64elf.em: Include elf32-sh64.h.
1308         (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1309         sh64_elf_section_data.
1310         (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1312 2003-01-23  Wu Yongwei  <adah@netstd.com>
1314         * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1315         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1316         cross-80th-column-margin "an" to the next line.
1318 2003-01-21  Nick Clifton  <nickc@redhat.com>
1320         * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1321         * emulparams/tic3xcoff_onchip.sh: ...this.
1322         * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1323         * Makefile.in: Regenerate.
1325 2003-01-21  Fabio Alemagna  <falemagn@aros.org>
1327         * configure.tgt: Handle i[3456]86-*-aros*
1329 2003-01-19  Svein E. Seldal  <Svein.Seldal@solidas.com>
1331         * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1332         * Makefile.in: Regenerate
1333         * configure.tgt: Added extra target emulations
1334         * emulparams/tic3xcoff.sh: Remove old settings
1335         * emulparams/tic4xcoff.sh: Ditto
1336         * emulparams/tic3xcoff-onchip.sh: Added new
1337         * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1338         * scripttempl/tic3xcoff.sc: Remove
1340 2003-01-17  Andreas Jaeger  <aj@suse.de>
1342         * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1343         skip ':'.
1345 2003-01-16  Alan Modra  <amodra@bigpond.net.au>
1347         * Makefile.in: Regenerate.
1349 2002-01-14  Charles Wilson  <cwilson@ece.gatech.edu>
1351         * ld.texinfo (node WIN32): Some clarifications
1352         and formatting fixups.
1354 2003-01-09  Chris Demetriou  <cgd@broadcom.com>
1356         * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1357         order, and handle (ignore) -mips32r2.
1359 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
1361         * ldmain.c (main): Make sure ld_sysroot is initialized.
1363 2003-01-06  Daniel Jacobowitz  <drow@mvista.com>
1365         * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1367         * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1368         (GENSCRIPTS): Add @use_sysroot@.
1369         * Makefile.in: Regenerated.
1370         * configure.host: Move setting of NATIVE_LIB_DIRS to...
1371         * configure.tgt: ... here.  Use ${target} instead of ${host}
1372         for NATIVE_LIB_DIRS.
1373         * configure.in: Add --with-sysroot.
1374         * configure: Regenerated.
1375         * genscripts.sh: Accept use_sysroot option.  Set new variables
1376         NATIVE and USE_LIBPATH.  Prepend "=" to directory names if
1377         $use_sysroot.  Don't search $tool_lib if $use_sysroot.
1378         * ldfile.c (ldfile_add_library_path): Handle leading '='.
1379         * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1380         (ld_sysroot): New variable.
1381         (main): Initialize ld_sysroot.
1382         * ldmain.h (ld_sysroot): New extern.
1383         * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1384         searching $EMULATION_LIBPATH.
1385         (gld${EMULATION_NAME}_add_sysroot): New function.
1386         (gld${EMULATION_NAME}_check_ld_so_conf): Use it.  Honor ld_sysroot.
1387         (gld${EMULATION_NAME}_after_open): Likewise.  Only search
1388         environment variables if $NATIVE.
1389         * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1390         * NEWS: Mention --with-sysroot.
1392         * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1393         instead of setting LIB_PATH.
1394         * emulparams/elf32ppc.sh: Likewise.
1395         * emulparams/elf64_s390.sh: Likewise.
1396         * emulparams/elf64_sparc.sh: Likewise.
1397         * emulparams/elf64ppc.sh: Likewise.
1398         * emulparams/elf_x86_64.sh: Likewise.
1400         * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1401         * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1403 2003-01-03  Charles Wilson  <cwilson@ece.gatech.edu>
1405         * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1407 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
1409         * Makefile.am (ldmain.o): Pass BINDIR.
1410         * Makefile.in: Regenerated.
1411         * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1412         search path.
1414 2003-01-02  Ben Elliston  <bje@redhat.com>
1416         * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1417         (eelf32iq2000.c): New target.
1418         * Makefile.in: Regenerate.
1419         * configure.tgt: Handle iq2000-*-elf.
1420         * emulparams/elf32iq10.sh: New file.
1421         * emulparams/elf32iq2000.sh: New file.
1422         * scripttempl/iq2000.sc: New file.
1424 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1426         * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1427         and _pei386_runtime_relocator to the exclude list.
1429 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
1431         * ldfile.c: Fix comment typos.
1432         * ldlang.c: Likewise.
1433         * mri.c: Likewise.
1434         * pe-dll.c: Likewise.
1436 2003-01-01  Daniel Jacobowitz  <drow@mvista.com>
1438         Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1439         * Makefile.am (ld.1): Depend on configdoc.texi
1440         and ldver.texi.
1441         * Makefile.in: Regenerated.
1443 2002-12-24  Dmitry Diky  <diwil@mail.ru>
1445         * Makefile.am: Add msp430 target.
1446         * configure.tgt: Likewise.
1447         * Makefile.in: Regenerate.
1448         * emulparams/msp430x???.sh: New files.  Linker script parameters
1449         for various msp430 configurations.
1450         * gen-doc.texi: Enable msp430 documenation.
1451         * ld.texinfo: Document msp430 sections.
1452         * scripttempl/elf32msp430.sc: New file.  Linker script for msp430.
1453         * scripttempl/elf32msp430_3.sc: New file.  Linker script for msp430.
1455 2002-12-30  Ralf Habacker  <Ralf.Habacker@freenet.de>
1456             Charles Wilson  <cwilson@ece.gatech.edu>
1458         * config.in (HAVE_REALPATH): New entry.
1459         (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1461 2002-12-30  Ralf Habacker  <ralf.habacker@freenet.de>
1463         * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1464         symbols'.
1466 2002-12-23  Alan Modra  <amodra@bigpond.net.au>
1468         * ldmain.c (main): Init "strip_discarded".
1469         * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1470         (OPTION_NO_STRIP_DISCARDED): Define.
1471         (ld_options): Add "strip-discarded" and "no-strip-discarded".
1472         (parse_args): Handle them.
1474 2002-12-23  Nick Clifton  <nickc@redhat.com>
1476         * ld.h (struct args_type): Add new field
1477         'accept_unknown_input_architecture'.
1478         * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1479         to false.
1480         * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1481         bfd_arch_get_compatible.
1482         * ldfile.c (ldfile_try_open_bfd): Likewise.
1483         * lexsup.c (ld_options): Add new command line switch
1484         --accept-unknown-input-architecture and its inverse.
1485         (parse_args): Handle --accept-unknown-input-architecture.
1486         * ld.texinfo: Document new linker option.
1487         * NEWS: Mention new linker option.
1489 2002-12-20  Alan Modra  <amodra@bigpond.net.au>
1491         * ldmain.c (main): Re-order link_info initialization.  Init all
1492         fields.
1494 2002-12-19  Charles Wilson  <cwilson@ece.gatech.edu>
1496         * ld.texinfo: Clarify and extend the documentation
1497         in the Machine Dependent, WIN32 section.
1499 2002-12-18  Ralf Habacker  <ralf.habacker@freenet.de>
1501         * ld.texinfo: Add win32 machine depending section.
1502         * gen-doc.texi: Enable win32 machine depending section.
1504         * configure.host: Add win32 library search path.
1506 2002-12-17  Ralf Habacker  <ralf.habacker@freenet.de>
1508         * emultempl/pe.em (pe_find_data_imports): Don't search for data
1509         import when auto-import is disabled.
1511 2002-12-17  Danny Smith  <dannysmith@users.sourceforge.net>
1513         * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1514         account for trailing '\0'.
1516 2002-12-17  Nick Clifton  <nickc@redhat.com>
1518         * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1519         so that it is not confused with -c.
1521 2002-12-13  Ralf Habacker  <Ralf.Habacker@freenet.de>
1522             Charles Wilson  <cwilson@ece.gatech.edu>
1524         * configure.in: Add check for realpath function.
1525         * configure: Regenerate.
1526         * config.in: Regenerate.
1527         * aclocal.m4: Regenerate.
1528         * deffile.h: Add .data field to def_file_import
1529         structure.
1530         * pe-dll.c (pe_proces_import_defs): Use .data field of
1531         def_file_import structure to initialize flag_data field of
1532         def_file_export structure.
1533         (pe_implied_import_dll): New variables exp_funcbase and
1534         [data|bss]_[start|end].  Use DLL's internal name to set dll_name,
1535         not filename (which may be a symlink).  Scan the sections and
1536         initialize [data|bss]_[start|end].  When scanning the export
1537         table, skip _nm_ symbols, and mark any symbols whose rva indicates
1538         that it is in the .bss or .data sections as data.
1539         * sysdep.h: Include limits.h and sys/param.h, and define
1540         LD_PATHMAX as appropriate.  Also define REALPATH as realpath if it
1541         exists, NULL otherwise.
1542         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1543         pe_process_import_defs before pe_find_data_imports, so that
1544         auto-import will check the virtual implib as well as "real"
1545         implibs.
1546         (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1547         symlinks to their target; check that the target's extension is
1548         .dll before calling pe_implied_import_dll(), not the filename
1549         itself (which may be a symlink).
1551 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
1553         * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1554         (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1555         list too.
1557 2002-12-08  Alan Modra  <amodra@bigpond.net.au>
1559         * ldlang.h: Formatting.
1561 2002-12-07  Alan Modra  <amodra@bigpond.net.au>
1563         * ldlang.c (init_os): Ensure sections mentioned in load_base
1564         are initialized.
1566 2002-12-05  Alan Modra  <amodra@bigpond.net.au>
1568         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1569         load_base for orphans that follow a section with load_base set.
1571 2002-12-01  H.J. Lu <hjl@gnu.org>
1573         * ld.texinfo: Remove the extra `;' in sample version script.
1575 2002-11-30  Alan Modra  <amodra@bigpond.net.au>
1577         * configure.host: Correct dynamic-linker for powerpc64 hosts.
1579         * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1580         * Makefile.in: Regenerate.
1582         * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1583         ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1584         ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1585         emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1586         emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1587         emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1588         emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1589         emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1590         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1591         emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1592         emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1593         boolean with bfd_boolean, true with TRUE, false with FALSE.  Simplify
1594         comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
1596 2002-11-27  David O'Brien  <obrien@FreeBSD.org>
1598         * configure.host: Fix generic FreeBSD configuration entry.
1600 2002-11-27  H.J. Lu <hjl@gnu.org>
1602         * ld.texinfo: Add the missing `;' to sample version scripts.
1604 2002-11-20  Alan Modra  <amodra@bigpond.net.au>
1606         * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1608 2002-11-14  Egor Duda  <deo@logos-m.ru>
1610         * ldmain.c (main): Make runtime relocs disabled by default. Remove
1611         assignment which has no effect.
1612         * pe-dll.h (pe_create_import_fixup): Change prototype.
1613         * pe-dll.c (make_runtime_pseudo_reloc): New function.
1614         (pe_create_runtime_relocator_reference): Ditto.
1615         (pe_create_import_fixup): Handle relocations with non-zero addends.
1616         * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1617         --disable-runtime-pseudo-reloc.
1618         (make_import_fixup): Handle relocations with non-zero addends. Create
1619         an external reference to _pei386_runtime_relocator symbol if at least
1620         one pseudo reloc was created.
1621         * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1622         --disable-runtime-pseudo-reloc options.
1624 2002-11-12  Earl Chew <earl_chew@agilent.com>
1626         * ldlang.c (lang_add_section): Discard debugging sections that have
1627         been marked SEC_EXCLUDE.
1629 2002-11-12  Nick Clifton  <nickc@redhat.com>
1631         * configure.in (ALL_LINGUAS): Add da.
1632         * configure: Regenerate.
1633         * po/da.po: New Danish translation.
1635 2002-11-12  Alan Modra  <amodra@bigpond.net.au>
1637         * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1638         (LDEMUL_BEFORE_ALLOCATION): Define.
1639         (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1640         linking.
1641         * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1643 2002-11-11  Christopher Faylor  <cgf@redhat.com>
1645         * configure.tgt (LIB_PATH): Default to searching w32api directory under
1646         cygwin.
1648 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
1650         * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1651         of restricted auto-export libs.
1653 2002-11-11  Charles Wilson  <cwilson@ece.gatech.edu>
1655         * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1656         creative library naming instances like, e.g., libstdc++-2.a.
1658 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
1660         * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1661         * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1663 2002-11-07  Danny Smith  <dannysmith@users.sourceforge.net>
1665         * deffilep.y (def_lex): Handle '@' as first character of an ID.
1666         * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1667         (make_one): Don't prefix decorated fastcall symbols with '_'.
1668         (pe_process_import_defs): Likewise.
1669         * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1670         symbols to cdecl names or vise-versa.
1672 2002-10-13  Eric Kohl  <ekohl@rz-online.de>
1674         * pe-dll.c (process_def_file): Handle fastcall symbols when
1675         generating undecorated aliases.  Don't prefix decorated fastcall
1676         symbols with '_'.
1677         (fill_exported_offsets): Don't prefix decorated fastcall symbols
1678         with '_'.
1680 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
1682         * emultempl/aix.em: Use include <> for generated headers.
1683         * emultempl/beos.em: Likewise.
1684         * emultempl/elf32.em: Likewise.
1685         * emultempl/pe.em: Likewise.
1686         * ldctor.c: Likewise.
1687         * ldexp.c: Likewise.
1688         * ldfile.c: Likewise.
1689         * ldlang.c: Likewise.
1690         * ldlex.c: Likewise.
1691         * ldlex.l: Likewise.
1692         * ldmain.c: Likewise.
1693         * ldmisc.c: Likewise.
1694         * ldwrite.c: Likewise.
1695         * lexsup.c: Likewise.
1696         * mri.c: Likewise.
1697         * pe-dll.c: Likewise.
1699 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
1701         * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1702         sections into .rel{,a}.dyn.
1704 2002-10-23  Nick Clifton  <nickc@redhat.com>
1706         * lexsup.c (OPTION_NO_OMAGIC): Define.
1707         (ld_options): Add "no-omagic" option.
1708         (parse_args): Parse --no-omagic.
1709         * ld.texinfo: Document --no-omagic.
1710         * NEWS: Mention new option.
1712 2002-10-21  Danny Smith  <dannysmith@users.sourceforeg.net>
1714         * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1715         __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1717 2002-10-22  Alexandre Oliva  <aoliva@redhat.com>
1719         * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1720         emulation name.  Set LIB_PATH only for native tools, and
1721         search the ABI-specific versions of NATIVE_LIB_DIRS before the
1722         .../lib variants, not instead of them.  Mostly copied from...
1723         * emulparams/elf32ppc.sh: ... here.  Fixed typo.
1724         * emulparams/elf64bmip-defs.sh: Backed out.
1725         * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1726         * emulparams/elf64btsmip.sh: Likewise.
1727         (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1728         TEXT_DYNAMIC): Removed.
1730 2002-10-17  Alexandre Oliva  <aoliva@redhat.com>
1732         * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1733         (GENERATE_SHLIB_SCRIPT): Set to yes.
1734         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1735         * emulparams/elf32bmipn32.sh: here.
1736         (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1737         * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1738         * emulparams/elf64bmip-defs.sh: New file.  Extend
1739         elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1740         * emulparams/elf64bmip.sh: Bring in definitions from
1741         elf64bmip-defs.sh.
1742         (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1743         settings.
1744         (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1745         * emulparams/elf64btsmip.sh: Bring in definitions from
1746         elf64bmip-defs.sh.
1747         (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1748         (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1750 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
1752         * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1753         (s390-*-linux*): Add elf64_s390 emulation if want64.
1754         * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1755         genscript.sh changes.
1756         * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1757         * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1759 2002-10-15  Alan Modra  <amodra@bigpond.net.au>
1761         * ldlang.c (load_symbols): Revert last change.
1763 2002-10-14  Alan Modra  <amodra@bigpond.net.au>
1765         * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1766         just_syms_flag.
1767         (lang_reasonable_defaults): Don't compare against false.
1768         (size_input_section): Likewise.
1769         (lang_size_sections_1): Likewise.
1770         (lang_do_assignments): Likewise.
1771         (lang_add_output): Likewise.
1773         * Makefile.am: Run "make dep-am".
1774         * Makefile.in: Regenerate.
1775         * ldver.c: #include "bfdver.h".
1777 2002-10-13  Stephane Carrez  <stcarrez@nerim.fr>
1779         * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1780         .finiN section.
1781         * scripttempl/elfm68hc12.sc: Likewise.
1783 2002-10-11  Alan Modra  <amodra@bigpond.net.au>
1785         * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1787         * ldgram.y (memory_spec): Provide empty action.
1788         (section <NAME>): Likewise.
1790 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
1792         * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1793         they have OUTPUT_FORMAT not matching actual output format.
1794         * ldlang.c (lang_get_output_target): New function.
1795         (open_output): Use it.
1796         * ldlang.h (lang_get_output_target): New prototype.
1798 2002-10-10  Alan Modra  <amodra@bigpond.net.au>
1800         * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1801         when orphan is .rel, .rela when orphan is .rela.
1802         (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1803         first.  Remove outsecname var.
1805 2002-10-09  Richard Shann <richard.shann@superh.com>
1806             Stephen Clarke <stephen.clarke@superh.com>
1808         * Makefile.am: Add eshelf32_linux.o and
1809         eshlelf32_linux.o, new emulations for sh64 Linux.
1810         * Makefile.in: Regenerate.
1811         * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1812         * emulparams/shelf32_linux.sh: New file.
1813         * emulparams/shlelf32_linux.sh: New file.
1815 2002-10-08  H.J. Lu <hjl@gnu.org>
1817         * ldlang.c (lang_file_exist): Removed.
1818         (new_afile): Revert the last change.
1819         * ldlang.h (lang_file_exist): Removed.
1820         * lexsup.c (parse_args): Revert the last change.
1822 2002-10-07  Ralf Habacker  <Ralf.Habacker@freenet.de>
1824         * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1825         auto-import symbols.
1826         (make_one): Create _nm_<symbol> for data only.
1828 2002-10-05  Elias Athanasopoulos  <eathan@otenet.gr>
1830         * ldlang.c (lang_file_exist): New function.
1831         (new_afile): Abort if the filename to be added matches the linker
1832         output filename.
1833         * ldlang.h: Add prototype for lang_file_exist.
1834         * lexsup.c (parse_args): Abort if the output filename matches
1835         one of the input filenames.
1837 2002-10-02  Alan Modra  <amodra@bigpond.net.au>
1839         * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1841 2002-09-30  Alan Modra  <amodra@bigpond.net.au>
1843         * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1844         * scripttempl/elfm68hc11.sc: Likewise.
1845         * scripttempl/elfm68hc12.sc: Likewise.
1847         * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1848         reloc sections just before .rel.plt/.rela.plt.
1849         (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1850         Only put loadable reloc sections in hold_rel.
1852 2002-09-29  H.J. Lu <hjl@gnu.org>
1854         * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1856 2002-09-25  Daniel Jacobowitz  <drow@mvista.com>
1858         From "Anita Kulkarni" <AnitaK@kpit.com>
1859         * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1860         sections.
1862 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
1864         * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1865         TARGET_PAGE_SIZE.
1866         * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1867         SEGMENT_SIZE alignment.
1868         * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1869         (SEGMENT_SIZE): Define.
1871         * ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
1872         (fold_binary): Correct abs - non-abs case.
1873         (fold_trinary): New.  Split out from exp_fold_tree.
1875 2002-09-24  Alan Modra  <amodra@bigpond.net.au>
1877         * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1878         * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1879         for start of .data, instead align up to 256M boundary.
1880         * scripttempl/aix.sc: Likewise.
1882 2002-09-22  Mark Elbrecht  <snowball3@softhome.net>
1884         * scripttempl/i386go32.sc: Handle bss unique sections.
1886 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
1888         * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1890 2002-09-17  Stan Cox  <scox@redhat.com>
1892         * emulparams/elf32bmipn32-defs.sh: New file.
1893         * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1894         * emulparams/elf32btsmipn32.sh: Likewise.
1895         * emulparams/elf64bmip.sh: Likewise.
1896         * emulparams/elf64btsmip.sh: Likewise.
1898 2002-09-16  Bruno Haible  <bruno@clisp.org>
1900         * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1901         elf32-i386-freebsd.
1902         * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1903         elf64-alpha-freebsd.
1905 2002-09-11  Nick Clifton  <nickc@redhat.com>
1907         * NEWS: New TI port supports both C4x and C3x series of DSPs.
1909         * po/tr.po: Updated Turkish translation.
1911 2002-09-06  Jeffrey A Law  (law@redhat.com)
1913         * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1915 2002-09-02  Nick Clifton  <nickc@redhat.com>
1917         * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1918         __ep.
1919         * emulparams/v850.sh (TEMPLATE_NAME): Define.
1921 2002-08-30  Nick Clifton  <nickc@redhat.com>
1923         * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1924         used.  Change INSN to start at 0x01000000 and extend for
1925         256K (ignoring holes).  Start the STACK on a word aligned
1926         boundary.
1927         (.rodata): Start it at the READONLY_START_ADDR.
1929 2002-08-30  Alan Modra  <amodra@bigpond.net.au>
1931         * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1933 2002-08-28  Svein E. Seldal  <Svein.Seldal@solidas.com>
1935         * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1936         added makefile targets for this file.
1937         * Makefile.in: Regenerate.
1938         * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1939         * NEWS: Mention new port.
1941 2002-08-28  Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1943         * emulparams/tic3xcoff.sh: New file.
1944         * emulparams/tic4xcoff.sh: New file.
1945         * scripttempl/tic3xcoff.sc: New file.
1946         * scripttempl/tic4xcoff.sc: New file.
1948 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1950         * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1951         strtoul and strtoull with bfd_scan_vma.
1952         (gld${EMULATION_NAME}_read_file): Likewise.
1954 2002-08-28  Alan Modra  <amodra@bigpond.net.au>
1956         * configure.tgt: Remove h8[35]00-*-hms*.  Add h8500-*-rtems*.
1958 2002-08-27  Egor Duda  <deo@logos-m.ru>
1960         * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1961         Add symbols for application to access them.
1963 2002-08-27  Nick Clifton  <nickc@redhat.com>
1965         * emultempl/armelf.em: Revert this patch, it is not needed.
1967         2002-08-22  Adam Nemet  <anemet@lnxw.com>
1969 2002-08-20 Dan Kegel <dank@kegel.com>
1971         * configure.in: added --with-lib-path argument to ld's configure
1972         to set LIB_PATH.
1973         * NEWS: Document new switch.
1974         * README: Mention new switch.
1975         * configure: Regenerate.
1976         * Makefile.in: Regenerate.
1978         Based on this patch:
1979         2001-04-25  Christopher Faylor <cgf@cygnus.com>
1981         * Makefile.in (LIB_PATH): Make configurable.
1982         (GENSCRIPTS): Set LIB_PATH in environment.
1983         * configure.in: Substitute LIB_PATH.
1985 2002-08-22  Adam Nemet  <anemet@lnxw.com>
1987         * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1988         (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1989         depending on the type of the function.
1990         (arm_elf_convert_thumb_symbol_to_address): New function.
1992 2002-08-22  Graeme Peterson  <gp@qnx.com>
1994         * Makefile.am: Add esh{l}elf_nto.o files.
1995         * Makefile.in: Regenerate.
1996         * configure.tgt: Add support for sh-**-nto* targets.
1997         * emulparams/shelf_nto.sh: New file.
1998         * emulparams/shlelf_nto.sh: New file.
2000 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2002         * ldlang.c (offsetof): Define if not defined.
2004 2002-08-14  H.J. Lu <hjl@gnu.org>
2006         * configure.tgt: Always enable 64bit emulations for 32bit
2007         Linux/mips.
2009 2002-08-13  Alan Modra  <amodra@bigpond.net.au>
2011         * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
2012         (MAXPAGESIZE): Set to 1.
2014         * ld.h (ALIGN_N): Delete.
2015         * ldexp.h (align_n): Declare.
2016         * ldexp.c (align_n): New function.
2017         (fold_binary): Use align_n instead of ALIGN_N.
2018         (exp_fold_tree): Likewise.
2019         * ldlang.c (lang_size_sections_1): Likewise.
2020         (lang_one_common): Likewise.
2021         * ld.texinfo (ALIGN): Remove power of 2 restriction.
2023 2002-07-31  Graeme Peterson  <gp@qnx.com>
2025         * configure.tgt: Add support for powerpc{le}-*-nto* targets.
2026         * Makefile.am: Add eelf32{l}ppcnto.o files.
2027         * Makefile.in: Regenerate.
2028         * emulparams/elf32lppcnto.sh: New file.
2029         * emulparams/elf32ppcnto.sh: New file.
2031 2002-08-07  H.J. Lu <hjl@gnu.org>
2033         * ld.texinfo: Document --no-undefined-version.
2035         * ldlang.c (lang_new_vers_pattern): Set the `symver' and
2036         `script.' fields to 0.
2038         * ldmain.c (main): Initialize the allow_undefined_version to
2039         true.
2041         * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
2042         (ld_options): Add --no-undefined-version.
2043         (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
2045 2002-08-07  Nick Clifton  <nickc@redhat.com>
2047         * emultempl/armelf.em (arm_elf_before_allocation): Only search for
2048         an interworking bfd if there are input bfds. (107501)
2050 2002-08-06  Alan Modra  <amodra@bigpond.net.au>
2052         * emultempl/aix.em (gld*_before_parse): Set default arch.  Reverts
2053         2002-05-10 change.
2055 2002-08-01  Nick Clifton  <nickc@redhat.com>
2057         * emulparams/armelf.sh: Revert previous delta.
2058         * scripttempl/elf.sc: Revert previous delta.
2060 2002-07-31  H.J. Lu <hjl@gnu.org>
2062         * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
2063         --enable-64-bit-bfd.
2065 2002-07-31  H.J. Lu <hjl@gnu.org>
2067         * configure.tgt: Enable x86-64 emulation for Linux/i386 if
2068         64bit BFD is selected.
2070 2002-07-31  H.J. Lu <hjl@gnu.org>
2072         * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
2073         if 64bit BFD is selected.
2075 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
2077         * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
2078         link_info.common_skip_ar_aymbols.
2079         * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
2081         * ldmain.c (main): Initialize new field
2082         link_info.common_skip_ar_aymbols.
2084 2002-07-31  Adam Nemet  <anemet@lnxw.com>
2086         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable.  Set it
2087         to .plt.thumb.
2088         * scripttempl/elf.sc: Comment it.  Use the same way as ${PLT} is
2089         used.
2091 2002-07-31  Nick Clifton  <nickc@redhat.com>
2093         * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2094         of the PDP-11 and 2.11BSD a.out support.
2096 2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2098         * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
2099         for n32 ABI support.
2100         * Makefile.in: Regenerate.
2101         * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
2102         n32 ABI emulations for these 64 bit targets.
2103         * emulparams/elf32bmipn32.sh: Expand comment.
2104         * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
2105         n32 ABI.
2106         * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
2108 2002-07-30  Graeme Peterson  <gp@qnx.com>
2110         * configure.tgt: Add support for arm-*-nto target.
2111         * Makefile.am: Add earmnto.o file.
2112         * Makefile.in: Regenerate.
2113         * NEWS: Mention port of ARM support to QNX.
2114         * emulparams/armnto.sh: New file.
2116 2002-07-30  Jakub Jelinek  <jakub@redhat.com>
2118         * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
2119         for relocatable link.
2120         (lang_size_sections_1): Don't make .tbss zero size for relocatable
2121         link.
2123 2002-07-26  Bernd Schmidt  <bernds@redhat.com>
2125         * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
2126         (STACK_ADDR): New.
2128 2002-07-25  Nick Clifton  <nickc@redhat.com>
2130         * po/sv.po: Updated Swedish translation.
2131         * po/es.po: Updated Spanish translation.
2132         * po/fr.po: Updated French translation.
2134 2002-07-24  Nick Clifton  <nickc@redhat.com>
2136         * po/sv.po: Updated Swedish translation.
2137         * po/es.po: Updated Spanish translation.
2139 2002-07-23  Nick Clifton  <nickc@redhat.com>
2141         * po/fr.po: Updated French translation.
2143 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
2145         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2146         bomb on /DISCARD/ input section.
2147         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2148         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2150 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
2152         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
2153         output section.
2155 2002-07-16  Denis Chertykov  <denisc@overta.ru>
2156             Nick Clifton  <nickc@redhat.com>
2157             Frank Ch. Eigler  <fche@redhat.com>
2158             John Healy  <jhealy@redhat.com>
2160         * configure.tgt: Add support for ip2k-elf.
2161         * Makefile.am: Add support for ip2k-elf.
2162         * Makefile.in: Regenerate.
2163         * emulparams/elf32ip2k.sh: New file.
2164         * scripttempl/ip2k.sc: New file
2165         * NEWS: Mention support for new port.
2167 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
2169         * NEWS: Add 'Changes in 2.13'.
2171 2002-07-14  H.J. Lu <hjl@gnu.org>
2173         * ld.texinfo: Document a .symver takes precedence over a
2174         version script.
2176 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
2178         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
2179         (COMMONPAGESIZE): Define.
2181 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
2183         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
2185 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
2187         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
2188         powerpc-*-openbsd* and sparc64-*-openbsd*.
2189         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
2190         * Makefile.in: Regenerate.
2191         * emulparams/hppaobsd.sh: New file.
2193 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
2195         * ldlang.c (print_wild_statement): Fix output formatting.
2197 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
2199         * ldlang.c: (strip_excluded_output_sections): New function.
2200         (lang_process): Call it.
2201         (lang_size_sections_1): Revert 2002-06-10 change.
2203 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
2205         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2206         Run "make dep-am".
2207         * Makefile.in: Regenerate.
2209 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
2211         * ldfile.c (ldfile_try_open_bfd): Formatting.
2213         * ldmisc.c (demangle): Move so that it doesn't intrude between
2214         vfinfo comment and body.  Add comment.
2216 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2218         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2220 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
2222         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2223         * ldlang.c (entry_sym): Likewise.
2224         (ldlang_undef_chain_list_type): Likewise.
2225         (lang_finish): Adjust references to entry_symbol.
2226         (lang_add_entry): Likewise.
2227         (lang_gc_sections): Use link_info.gc_sym_list.
2228         (lang_process): Set link_info.gc_sym_list.
2229         * ldlex.l: Include bfdlink.h.
2230         * ldmain.c (main): Init link_info.gc_sym_list.
2231         * emultempl/aix.em: Adjust references to entry_symbol.
2232         * emultempl/armcoff.em: Likewise.
2233         * emultempl/armelf.em: Likewise.
2234         * emultempl/pe.em: Likewise.
2235         * emultempl/ppc64elf.em (ppc_after_open): New function.
2236         (LDEMUL_AFTER_OPEN): Define.
2237         * emulparams/elf64ppc.sh: KEEP .opd sections.
2239 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
2241         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2242         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2243         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2244         (EEPROM_START_ADDR): Define.
2245         (EEPROM_MEMORY): Define.
2246         * emulparams/m68hc12elf.sh: Likewise.
2247         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2248         section to put soft registers in .page0.
2249         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2251 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2253         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2254         section.  Add ${RELOCATING-0}.
2256 2002-06-26  J"orn Rennecke <joern.rennecke@superh.com>
2258         * emulparams/shelf.sh (STACK_ADDR): Don't define.
2259         (OTHER_SECTIONS): Define.
2260         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2261         (OTHER_SECTIONS): Undef.
2263 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
2265         * ldmisc.c (demangle): Restore dots stripped from sym name.
2267 2002-06-25  H.J. Lu <hjl@gnu.org>
2269         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2270         * Makefile.in: Regenerated.
2272 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
2274         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2275         the size of attached object files, to allow make the object files
2276         available via FTP or HTTP and to mention that the mail will be
2277         sent to a mailing list.
2279 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
2281         * configure.host (romp): Drop support.
2283 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
2285         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2286         section flags for SEC_DATA, rather than for SEC_CODE being unset.
2288 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
2290         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2291         format specifier used to print BFD name.
2293 2002-06-18  Dave Brolley  <brolley@redhat.com>
2295         From Catherine Moore, Michael Meissner, Jim Blandy:
2296         * emulparams/elf32frv.sh: New file.
2297         * configure.tgt: Support frv-*-*.
2298         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2299         (eelf32frv.c): New target.
2301 2002-06-17  Tom Rix  <trix@redhat.com>
2303         * emultempl/elf32.em: gld*_get_script: Check for
2304         GENERATE_COMBRELOC_SCRIPT.
2305         * scripttempl/elfd10v.sc : Fix STACK and INSN.
2306         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2308 2002-06-13  J"orn Rennecke <joern.rennecke@superh.com>
2310         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2312 2002-06-12  H.J. Lu <hjl@gnu.org>
2314         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2315         false if xvec doesn't match.
2317 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2319         * ldlang.c (lang_size_sections_1): Skip removed output sections.
2321 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
2323         * ldexp.c: Replace CONST with const.
2324         * ldfile.c: Likewise.
2325         * ldfile.h: Likewise.
2326         * ldlex.l: Likewise.
2327         * mri.c: Likewise.
2328         * pe-dll.h: Likewise.
2330 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2332         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2334 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
2336         * ldmain.c (main): initialize link_info.pei386_auto_import
2337         to -1 == implicit enable.
2338         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2339         initialize link_info.pei386_auto_import to -1 == implicit
2340         enable.
2341         (gld_${EMULATION_NAME}_parse_args): When processing
2342         --enable-auto-import and --disable-auto-import options, use
2343         '1' and '0' instead of 'true' and 'false'.
2344         (pe_find_data_imports): Only issue message about auto-import
2345         when the feature is implicitly enabled.  Downgrade message to
2346         informational instead of warning.
2348 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
2350         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2352 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2354         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2355         HOSTING_CRT0 and HOSTING_LIBS.
2357 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
2359         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2361 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
2363         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2364         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2366 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2368         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2369         SEC_EXCLUDE sections when doing a relocatable link.
2371 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2373         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2374         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2375         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2376         (eshlelf64_nbsd.c): New rules.
2377         * Makefile.in: Regenerate.
2378         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2379         (sh64-*-netbsd*): New targets.
2380         * emulparams/shelf32_nbsd.sh: New file.
2381         * emulparams/shelf64_nbsd.sh: New file.
2382         * emulparams/shlelf32_nbsd.sh: New file.
2383         * emulparams/shlelf64_nbsd.sh: New file.
2385 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
2387         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
2389 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2391         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2392         C++ constructors/destructors, loosely based on the m68hc11 port.
2394 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
2396         * Makefile.in: Regenerate.
2397         * aclocal.m4: Regenerate.
2398         * config.in: Regenerate.
2399         * configure: Regenerate.
2401 2002-05-31  Graeme Peterson  <gp@qnx.com>
2403         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2404         (ei386nto.c): Add rule.
2405         * Makefile.in: Regenerate.
2406         * configure.tgt: Add i[3456]86-*-nto-qnx*.
2407         * emulparams/i386nto.sh: New file.
2409 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2411         * NEWS: Add entry for VAX ELF support.
2413 2002-05-29  Matt Thomas  <matt@3am-software.com>
2414             Jason Thorpe  <thorpej@wasabisystems.com>
2416         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2417         (eelf32vax.c)
2418         (evaxnbsd.c): New rules.
2419         * Makefile.in: Regenerate.
2420         * configure.tgt (vax-*-netbsdelf*)
2421         (vax-*-netbsdaout*)
2422         (vax-*-netbsd*): New targets.
2423         * emulparams/elf32vax.sh: New file.
2424         * emulparams/vaxnbsd.sh: New file.
2426 2002-05-29  Adam Nemet  <anemet@lnxw.com>
2428         * emultempl/armelf.em (arm_elf_after_open): Don't determine
2429         bfd_for_interwork, instead add glue sections to each input bfd.
2430         (bfd_for_interwork): New global.
2431         (arm_elf_set_bfd_for_interworking): New function.
2432         (arm_elf_before_allocation): Use it.
2434 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
2436         * Makefile.am: Add DLX make target.
2437         * configure.tgt: Add DLX configuration.
2438         * Makefile.in: Regenerate.
2439         * emulparams/elf32_dlx.sh: New file
2440         * scripttempl/dlx.sc: New file
2442 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
2444         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2445         * Makefile.in: Regenerate.
2446         * emulparams/elf_chaos.sh: Use elf_chaos script.
2447         * scripttempl/elf_chaos.sc: New file.
2449 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
2451         * ldlang.c (lang_size_sections_1): Move check for conflicting load
2452         addresses and regions from here...
2453         (lang_get_regions): ...to this new function.
2454         (lang_leave_output_section_statement): Use lang_get_regions.
2455         (lang_leave_overlay): Likewise.
2456         * mri.c (mri_draw_tree): Pass null as last argument to
2457         lang_leave_output_section_statement.
2458         * emultempl/elf32.em (gld*_place_orphan): Likewise.
2459         * emultempl/mmo.em (mmo_place_orphan): Likewise.
2460         * emultempl/pe.em (gld*_place_orphan): Likewise.
2462 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
2464         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2466 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
2468         * ldemul.c: Fix formatting.
2469         * ldfile.c: Likewise.
2470         * pe-dll.c: Likewise.
2471         * pe-dll.h: Likewise.
2473 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
2475         * ldlang.c (lang_process): Formatting, grammar.
2477         * ldlex.l: Use #include "" instead of <> for local header files.
2479 2002-05-24  TAMURA Kent <kent@netbsd.org>
2481         * configure.tgt: Add a target for i386-netbsdpe.
2483 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2485         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2486         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2487         output section if necessary.  Handle .tbss.
2488         (lang_size_sections): Clear _raw_size for .tbss section
2489         (it allocates space in PT_TLS segment only).
2490         * ldwrite.c (build_link_order): Build link order for .tbss too.
2492 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
2494         * configure.in: Correct spelling of AC_PREREQ.
2496 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2498         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2499         default.
2500         (autofilter_objlist): Add crtbegin.o, crtend.o.
2502 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2504         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2505         (longopts): Add new option --exclude-libs.
2506         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2507         (gld_${EMULATION_NAME}_parse_args): Use it.
2508         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2509         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2510         from whole archives.
2511         (pe_dll_add_excludes): Set excludes->type.
2512         (auto_export): Add new variable libname and set to archive basename if
2513         abfd.  Use it when filtering default and user-specified libarary
2514         excludes.  Let string "ALL" mean all libs when filtering user-specified
2515         libs.
2516         * ld.texinfo: Document --exclude-libs.
2518 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2520         * ldemul.c (ldemul_new_vers_pattern): New function.
2521         * ldemul.h (ldemul_new_vers_pattern): Declare.
2522         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2523         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2524         * emultempl/ppc64elf.em (dotsyms): New static var.
2525         (gld${EMULATION_NAME}_new_vers_pattern): New function.
2526         (LDEMUL_NEW_VERS_PATTERN): Define.
2527         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2528         (PARSE_AND_LIST_LONGOPTS): Likewise.
2529         (PARSE_AND_LIST_ARGS_CASES): Handle them.
2530         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2531         initialiser.
2532         * emultempl/armcoff.em: Likewise.
2533         * emultempl/armelf_oabi.em: Likewise.
2534         * emultempl/beos.em: Likewise.
2535         * emultempl/elf32.em: Likewise.
2536         * emultempl/generic.em: Likewise.
2537         * emultempl/gld960.em: Likewise.
2538         * emultempl/gld960c.em: Likewise.
2539         * emultempl/linux.em: Likewise.
2540         * emultempl/lnk960.em: Likewise.
2541         * emultempl/m68kcoff.em: Likewise.
2542         * emultempl/mipsecoff.em: Likewise.
2543         * emultempl/pe.em: Likewise.
2544         * emultempl/sunos.em: Likewise.
2545         * emultempl/ticoff.em: Likewise.
2546         * emultempl/vanilla.em: Likewise.
2548 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2550         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2551         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
2552         (LIB_SEARCH_DIRS): No need to use "tr".
2553         (COMPILE_IN): Only set for native targets.
2554         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2555         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2556         * configure.tgt (powerpc*): Set tdir_*.
2557         (powerpcle*): Correct targ_extra_emuls.
2558         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2559         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2561 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
2563         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2564         calling lang_add_entry.
2566 2002-05-21  H.J. Lu  (hjl@gnu.org)
2568         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2569         "-z muldefs".
2570         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2572         * ld.texinfo: Updated for --allow-multiple-definition and
2573         "-z muldefs".
2575         * ldmain.c (main): Initialize the allow_multiple_definition
2576         field to false.
2578         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2579         (ld_options): Add --allow-multiple-definition.
2580         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2582 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
2584         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2585         (earmelfb_nbsd.c): New rule.
2586         * Makefile.in: Regenerate.
2587         * configure.tgt (armeb-*-netbsdelf*): New target.
2588         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2589         (arm-*-netbsd*): Likewise.
2590         * emulparams/armelfb_nbsd.sh: New file.
2592 2002-05-18  Tom Rix  <trix@redhat.com>
2594         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2595         support.
2597 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2599         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2600         * Makefile.in: Regenerate.
2601         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2603 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2605         * emulparams/avr1.sh: New file.
2606         * emulparams/avr2.sh: New file.
2607         * emulparams/avr3.sh: New file.
2608         * emulparams/avr4.sh: New file.
2609         * emulparams/avr5.sh: New file.
2610         * scripttempl/avr.sc: New file.
2612 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
2614         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2615         (lang_place_orphans): Abort if just_syms_flag.
2617 2002-05-10  Tom Rix  <trix@redhat.com>
2619         * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2620         architecture and machine information in the output bfd.
2621         (gld*_before_parse): Remove old arch and machine code.
2622         (choose_target): Rename to gld*_choose_target.
2623         (rtld): Change type to int.
2624         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2625         objects in XCOFF archives.
2626         * ldfile.h: Update copyright date.
2628 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2630         * ldmain.c (main): Enable -z combreloc by default.
2632 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
2634         * Makefile.am: Honour DESTDIR.
2635         * Makefile.in: Regenerate.
2637 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
2639         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2640         (lang_enter_overlay): Remove the last two parameters.
2641         (lang_leave_overlay): Take them here instead.
2642         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2643         (section): Pass LMA and crossref flag to lang_leave_overlay rather
2644         than lang_enter_overlay.
2645         * ldlang.c (lang_memory_region_lookup): Return null for null names.
2646         (lang_output_section_statement_lookup): Initialize update_dot_tree.
2647         (lang_size_sections_1): Evaluate it.
2648         (lang_leave_output_section_statement): Rework LMA lookup.
2649         (overlay_lma, overlay_nocrossrefs): Remove.
2650         (lang_enter_overlay): Remove LMA and crossref arguments.
2651         (lang_enter_overlay_section): Don't set the LMA here.
2652         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
2653         assignment to the last section's update_dot_tree.  Unconditionally
2654         use the load and run-time regions specified in the OVERLAY statement.
2655         Likewise the first section's LMA.  Only set the other sections' LMAs
2656         when no load region is given.
2658 2002-05-06  Nick Clifton <nickc@redhat.com>
2660         * po/sv.po: New translation.
2662 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
2664         * emultempl/hppaelf.em (build_section_lists): New function.
2665         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2666         and build_section_lists.
2668 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2670         * ld.h: Fix formatting.
2671         * ldexp.c: Likewise.
2672         * ldfile.c: Likewise.
2673         * ldlang.c: Likewise.
2674         * ldmain.c: Likewise.
2675         * lexsup.c: Likewise.
2676         * pe-dll.c: Likewise.
2678 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
2680         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2681         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
2682         (build_section_lists): Do output_section tests here.
2684 2002-04-30  Tom Rix  <trix@redhat.com>
2686         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2688 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
2690         Long branch stubs, multiple stub sections.
2691         * emultempl/ppc64elf.em: Include ldctor.h.
2692         (stub_file): New var.
2693         (group_size): New var.
2694         (ppc_create_output_section_statements): New function.
2695         (struct hook_stub_info): New.
2696         (hook_in_stub): New function.
2697         (ppc_add_stub_section): New function.
2698         (ppc_layout_sections_again): New function.
2699         (build_section_lists): New function.
2700         (gld${EMULATION_NAME}_finish): Rewrite.
2701         (real_func): New var.
2702         (ppc_for_each_input_file_wrapper): New function.
2703         (ppc_lang_for_each_input_file): New function.
2704         (lang_for_each_input_file): Define.
2705         (PARSE_AND_LIST_PROLOGUE): Define.
2706         (PARSE_AND_LIST_LONGOPTS): Define.
2707         (PARSE_AND_LIST_OPTIONS): Define.
2708         (PARSE_AND_LIST_ARGS_CASES): Define.
2709         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2711 2002-04-30  Tom Rix  <trix@redhat.com>
2713         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2714         -blibpath, -bnolibpath support.
2716 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
2718         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2719         (eelf32ppcwindiss.c): New target.
2720         * Makefile.in: Regenerated.
2721         * configure.tgt: Add support for powerpc-*-windiss.
2722         * emulparams/elf32ppcwindiss.sh: New file.
2724 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
2726         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2727         * ldexp.c (exp_print_token): Add "infix_p" argument.
2728         (exp_print_tree): Update accordingly.
2730 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
2732         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2733         * Makefile.in: Regenerate.
2734         * mpw-elfmips.c: Delete.
2735         * mpw-eppcmac.c: Delete.
2736         * mpw-esh.c: Delete.
2737         * mpw-idtmips.c: Delete.
2739 2002-04-17  J"orn Rennecke <joern.rennecke@superh.com>
2741         * emulparams/shelf32.sh (MACHINE): Now sh5.
2743 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2745         * ldgram.y: Fix syntax warning.
2747 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
2749         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2750         to prevent "-n" from being taken as an abbreviation for
2751         "--no-pipeline-knowledge".
2753 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2755         * ldlang.c (lang_size_sections_1): Don't complain about
2756         SEC_NEVER_LOAD sections having no memory region specified.
2758         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2760 2002-04-07  matthew green  <mrg@redhat.com>
2762         * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2764 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2766         * dep-in.sed: Cope with absolute paths.
2767         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2768         Run "make dep-am".
2769         * Makefile.in: Regenerate.
2771 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2773         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2775 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2777         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2778         is smaller than maximum, round dot up to common page boundary.
2780 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
2782         * configure.host: Set up for generic hosts first, then tweak as
2783         necessary in more specific targets.
2784         (HOSTING_LIBS): Include libgcc_eh.a if found.
2786 2002-03-23  Andreas Jaeger  <aj@suse.de>
2788         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2790 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
2792         * Makefile.am: Run "make dep-am".
2793         * Makefile.in: Regenerate.
2795 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
2797         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2799 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
2801         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2802         add the symbol to the linker hash table immediately.
2803         (lang_place_undefineds): Split symbol creation out..
2804         (insert_undefined): ..to here.
2806 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
2808         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2809         the contents of the buffer returned from basename function will are
2810         getting overwritten while still being used.
2812 2002-03-18  Jan Hubicka  <jh@suse.cz>
2813             Andreas Jaeger  <aj@suse.de>
2814             Andreas Schwab  <schwab@suse.de>
2816         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2817         * elf_x86_64.sh (ARCH): Set to i386:x86-64
2818         set libraries to default to lib64 paths.
2820 2002-03-18  Tom Rix  <trix@redhat.com>
2822         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2823         * configure.tgt : Same.
2824         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2825         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2826         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2827         emulation parameters for better -b32, -b64 support.
2828         * emulparms/aixrs6.sh : Same.
2829         * emulparms/ppcmacos.sh : Same.
2830         * emultempl/aix.em (choose_target) : Use new emulation parameters
2831         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2832         * Makefile.in : Regenerate.
2834 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
2836         * po/fr.po: Updated version.
2838 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
2840         * ldmain.c (main): Move .text readonly flag fudges from here..
2841         * ldlang.c (lang_process): ..to here.
2843 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
2845         * ldlang.c (lang_check): Remove the word size check added in last
2846         change.  Treat emitrelocations case as for relocatable links.
2848 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
2850         * po/fr.po: Updated version.
2852 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
2854         * ldlang.c (lang_check): Do relocatable link checks first, so that
2855         warn_mismatch can't override.  Check compatible and word size too.
2857 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
2859         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2861 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
2863         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2864         DATA_SEGMENT_ALIGN.
2866 2002-03-04  H.J. Lu <hjl@gnu.org>
2868         * scripttempl/elf.sc: Put .preinit_array, .init_array and
2869         .fini_array in the data segment.
2871 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
2873         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2875 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
2877         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2878         .init_array, and .fini_array.
2880 2002-02-20  Andreas Schwab  <schwab@suse.de>
2882         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2883         .IA64_unwind* in a relocatable link.
2885 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
2887         * NEWS: Mark 2.12 branch.
2889 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2891         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2892         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2894 2002-02-18  Tom Rix  <trix@redhat.com>
2896         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2897         (gld*_before_allocation): Same.
2898         (gld*_create_output_section_statements): Generate
2899         __rtinit if run time linking.  Add librtl.a to the link.
2900         (gld*_read_file): Clean.
2902 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2904         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2906 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
2908         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2909         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2910         and eelf64alpha_fbsd.
2911         * Makefile.in: Regenerate.
2912         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2913         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2914         use a FreeBSD-specific emulation rather than the psABI one.
2915         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2916         for all FreeBSD ELF systems.
2917         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2918         emulation.
2919         * emulparams/elf32ppc_fbsd.sh: Likewise.
2920         * emulparams/elf64_ia64_fbsd.sh: Likewise.
2921         * emulparams/elf64_sparc_fbsd.sh: Likewise.
2922         * emulparams/elf64alpha_fbsd.sh: Likewise.
2923         * emulparams/elf_i386_fbsd.sh: Likewise.
2924         * emulparams/elf_x86_64_fbsd.sh: Likewise.
2926 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
2928         * po/tr.po: Updated version.
2930 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
2932         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2933         (FILL): Likewise.
2935 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
2937         * emultempl/mmo.em (mmo_after_open): Don't call
2938         _bfd_mmix_check_all_relocs when producing ELF output.
2940 2002-02-15  Richard Henderson  <rth@redhat.com>
2942         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2943         definition.  Emit a unop+nop pair.
2945 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
2947         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2948         for presence of .MMIX.reg_contents.linker_allocated before early
2949         exit.
2951         * NEWS: Mention support for MMIX.
2953 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
2955         Support arbitrary length fill patterns.
2956         * ld.texinfo (Output Section Fill): Describe fill expressions.
2957         (FILL): Refer to the above.
2958         * ldexp.h (etree_value_type): Add "str" field.
2959         (union etree_union): Add "str" to "value" struct.
2960         (exp_bigintop): Declare.
2961         (exp_get_fill): Declare.
2962         * ldexp.c: Include "safe-ctype.h".
2963         (exp_intop): Set value.str to NULL.
2964         (exp_bigintop): New function.
2965         (new_rel): Pass in "str", and set new.str from it.
2966         (new_rel_from_section): Set new.str to NULL.
2967         (fold_name): Adjust calls to new_rel.
2968         (exp_fold_tree): Likewise.
2969         (exp_get_fill): New function.
2970         * ldgram.y (struct big_int bigint, fill_type *fill): New.
2971         (INT): Returns a "bigint".  Adjust all code handling INTs.
2972         (fill_opt): Returns a "fill".
2973         (fill_exp): Split out of fill_opt, use for FILL.
2974         * ldlang.h (struct _fill_type): New.
2975         (fill_type): Move typedef to ldexp.h.
2976         (lang_output_section_statement_type): "fill" is now a pointer.
2977         (lang_fill_statement_type): Likewise.
2978         (lang_padding_statement_type): Likewise.
2979         (lang_add_fill): Now takes a "fill_type *" param.
2980         (lang_leave_output_section_statement): Likewise.
2981         (lang_do_assignments): Likewise.
2982         (lang_size_sections): Likewise.
2983         (lang_leave_overlay_section): Likewise.
2984         (lang_leave_overlay): Likewise.
2985         * ldlang.c: Include ldgram.h after ldexp.h.
2986         (lang_output_section_statement_lookup): Adjust for fill_type change.
2987         (print_fill_statement): Likewise.
2988         (print_padding_statement): Likewise.
2989         (insert_pad): Now takes a "fill_type *" arg.
2990         (size_input_section): Likewise.
2991         (lang_size_sections_1): Likewise.
2992         (lang_size_sections): Likewise.
2993         (lang_do_assignments): Likewise.
2994         (lang_add_fill): Likewise.
2995         (lang_leave_output_section_statement): Likewise.
2996         (lang_leave_overlay_section): Likewise.
2997         (lang_leave_overlay): Likewise.
2998         Adjust all callers of the above function.
2999         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
3000         starting with "0X" as well as "0x".  Return bigint.str for hex
3001         numbers starting with "0x" or "0X", zero bigint.str otherwise.
3002         Always use base 16 for numbers starting with "$".
3003         * ldmain.c: Include ldgram.h after ldexp.h.
3004         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
3005         of bfd_fill_link_order.
3006         * pe-dll.c: Adjust lang_do_assignments calls.
3007         * emultempl/elf32.em: Likewise.
3008         * emultempl/hppaelf.em: Likewise.
3009         * emultempl/ppc64elf.em: Likewise.
3010         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
3011         lang_add_assignment call.
3012         * emultempl/pe.em: Likewise.
3014 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
3016         * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
3017         * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
3018         the pattern in question is not a regexp.
3019         * ldlang.c: Likewise.
3020         * ldlang.h: Likewise.
3021         * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
3023 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
3025         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3026         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3027         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
3028         * ldexp.c (exp_data_seg): New variable.
3029         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
3030         (fold_binary): Handle DATA_SEGMENT_ALIGN.
3031         (exp_fold_tree): Handle DATA_SEGMENT_END.
3032         Pass allocation_done when recursing instead of hardcoding
3033         lang_allocating_phase_enum.
3034         * ldexp.h (exp_data_seg): New.
3035         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
3036         (lang_size_sections): New.
3037         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
3038         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
3039         if COMMONPAGESIZE is defined.
3040         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
3041         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
3042         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
3043         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
3044         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
3045         libraries only.
3047 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
3049         * Makefile.in: Regenerate.
3051 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
3053         * lexsup.c: Remove strtoul declaration.
3055 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
3057         * ldmain.c: Add prototype for main ().
3058         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
3059         * emultempl/lnk960.em (lnk960_choose_target): Function should
3060         take two arguments.
3062 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
3064         * ldlang.c (entry_section): New initialised variable.
3065         (lang_finish): Use it.
3066         * ldlang.h (entry_section): Declare.
3067         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
3068         entry_section to ".opd".
3070 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
3072         * ld.texinfo (Options): Add back in -nostdlib documentation,
3073         which had been inadvertently removed.
3075 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
3077         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
3078         register section vma to a sane value after emitting error.  Make
3079         fatal conditions cause program exit when emitting message.
3081 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
3083         * configure.tgt: Add or32-*-rtems target.
3085 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
3087         Contribute sh64-elf.
3088         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3089         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
3090         in OTHER_RELOCATABLE_SECTIONS.
3091         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
3092         * emulparams/shelf32.sh (STACK_ADDR): Define.
3093         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
3094         (OTHER_SECTIONS): this.  Removed stack settings.
3095         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
3096         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
3097         2001-03-12  DJ Delorie  <dj@redhat.com>
3098         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
3099         relaxing if any shmedia or mixed sections are found.
3100         2001-03-07  DJ Delorie  <dj@redhat.com>
3101         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
3102         einfo.  Gracefully decline to output to non-elf formats.
3103         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
3104         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
3105         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
3106         * emulparams/shelf32.sh: Ditto.
3107         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
3108         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
3109         comment.
3110         2001-01-10  Ben Elliston  <bje@redhat.com>
3111         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
3112         non-portable shell constructs. From Hans-Peter Nilsson.
3113         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
3114         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
3115         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
3116         dependencies to the shell script include chain.
3117         * Makefile.in: Regenerate.
3118         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
3119         * emultempl/sh64elf.em: Update and tweak comments.
3120         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
3121         make a .cranges section SEC_IN_MEMORY.
3122         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3123         * emultempl/sh64elf.em
3124         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
3125         .cranges section found to be necessary; continue and set stored
3126         section contents flags for sections with non-mixed contents.
3127         Use a struct sh64_section_data container and sh64_elf_section_data
3128         to store contents-type flags.
3129         Remove unused update of "isec".
3130         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
3131         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
3132         access contents-type flags.  Assert that the associated container
3133         is initialized.  Use that container, not elf_gp_size, to hold size
3134         of linker-generated cranges contents.
3135         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
3136         * emultempl/sh64elf.em
3137         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
3138         there's already a .cranges section.  When section flag difference
3139         is found, don't NULL-check cranges a second time.  Tweak comments.
3140         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
3141         merging, not max size, as size of ld-generated .cranges contents.
3142         Don't set ELF section flags in output section.  When checking for
3143         needed .cranges descriptors, don't use a variable; compare
3144         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
3145         comments.
3146         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
3147         * emultempl/sh64elf.em: New file.
3148         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
3149         * Makefile.in: Regenerate.
3150         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
3151         (OTHER_RELOCATING_SECTIONS): Ditto.
3152         (EXTRA_EM_FILE): New, set to sh64elf if not set.
3153         * emulparams/shlelf32.sh: Stub out all settings except
3154         OUTPUT_FORMAT.  Source shelf32.sh.
3155         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
3156         OTHER_RELOCATING_SECTIONS.
3157         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
3158         * emulparams/shlelf64.sh: Stub out all settings except
3159         OUTPUT_FORMAT.  Source shelf64.sh.
3160         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
3161         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
3162         .cranges section.
3163         (DATA_START_SYMBOLS): Define, provide ___data.
3164         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
3165         for consecutive .data section.
3166         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
3167         section after .data section.
3168         * emulparams/shlelf64.sh: Ditto.
3169         * emulparams/shelf32.sh: Ditto.
3170         (ALIGNMENT): Define to 8.
3171         * emulparams/shelf32.sh: Ditto.
3172         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
3173         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
3174         built-in linker scripts.
3175         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
3176         * emulparams/shlelf64.sh: New.
3177         * emulparams/shelf64.sh: New.
3178         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
3179         targ_extra_emuls.
3180         * Makefile.am: Add support for shlelf64 and shelf64.
3181         * Makefile.in: Regenerate.
3182         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
3183         * configure.tgt (sh64-*-elf*): Add shelf as default.
3184         Add shlelf to targ_extra_emuls.
3185         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
3186         * emulparams/shelf32.sh: New file.
3187         * emulparams/shlelf32.sh: New file.
3188         * Makefile.am: Add support for shlelf32 and shelf32.
3189         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
3190         * Makefile.in: Regenerate.
3192 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
3194         * ldlang.c (lang_reset_memory_regions): Rename from
3195         reset_memory_regions.  Change all callers.  Make public.
3196         * ldlang.h (lang_reset_memory_regions): Prototype.
3197         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
3198         lang_reset_memory_regions before lang_size_sections.
3199         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3200         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
3202 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
3204         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
3205         arithmetic when checking for too many global registers.
3207 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
3209         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3210         (ehppanbsd.c): New rule.
3211         * Makefile.in: Regenerate.
3212         * configure.tgt (hppa*-*-netbsd*): New target.
3213         * emulparams/hppalinux.sh: Add comment to check other files
3214         that source this file it is modified, and list which
3215         files that do.
3216         * emulparams/hppanbsd.sh: New file.
3218 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
3220         * scripttempl/xstormy16.sc: Don't allocate extra space for the
3221         stack.
3223 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
3225         Support on-demand global register allocation from
3226         R_MMIX_BASE_PLUS_OFFSET relocs.
3227         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3228         mmix_set_reg_section_vma.  Call
3229         _bfd_mmix_finalize_linker_allocated_gregs.
3230         (mmix_before_allocation): New function.
3231         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3232         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3233         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3234         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3235         before .MMIX.reg_contents.
3236         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3237         (mmo_after_open): New function.
3238         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3239         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
3240         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3242 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
3244         * emulparams/or32.sh: New file.
3245         * emulparams/or32elf.sh: New file.
3246         * scripttempl/or32.sc: New file.
3247         * configure.tgt : Add support for or32.
3248         * configure: Regenerate
3249         * Makefile.am: Add support for or32.
3250         * Makefile.in: Regenerate.
3251         * NEWS: Mention support for or32.
3252         * po/ld.pot: Regenerate.
3254 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
3255             Mitch Lichtenberg  <mpl@broadcom.com>
3257         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3258         * emultempl/mipself.em: New file to handle MIPS ELF embedded
3259         reloc creation (ld --embedded-relocs).
3261 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
3263         * configure: Regenerated.
3265 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
3267         * Makefile.am (install): Depend on install-info.
3268         * Makefile.in: Regenerate.
3270 2002-01-26  Christian Rose  <menthos@menthos.com>
3272         * ldmain.c (main): Use full sentences to ease translation.
3274 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
3276         * po/fr.po: Updated version.
3278 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
3280         * po/es.po: Updated version.
3282 2002-01-25  Andreas Jaeger  <aj@suse.de>
3284         * ldlex.l (yy_input): Correct error check.
3286 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
3288         * ldmisc.c (demangle): Put back dots when string not demangled.
3290 2002-01-22  Richard Henderson  <rth@redhat.com>
3292         * emulparams/elf64alpha.sh (NOP): Use unop.
3294 2002-01-21  Andreas Jaeger  <aj@suse.de>
3296         * ldlex.l: Use fread instead of read.
3298 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3300         * configure.tgt (ia64-*-netbsd*): New target.
3302 2002-01-21  H.J. Lu <hjl@gnu.org>
3304         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3305         0.
3306         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3308 2002-01-18  Andreas Jaeger  <aj@suse.de>
3310         * ldver.c (ldversion): Update year.
3312 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
3314         * po/ld.pot: Regenerate.
3316 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
3318         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3319         * Makefile.in: Regenerate.
3320         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3321         * emultempl/ppc64elf.em: New file.
3323 2002-01-15  DJ Delorie  <dj@redhat.com>
3325         * scripttempl/pe.sc: Add support for constructor priorities.
3327 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3329         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3330         * emulparams/avr23xx.sh: Likewise.
3331         * emulparams/avr4433.sh: Likewise.
3332         * emulparams/avr44x4.sh: Likewise.
3333         * emulparams/avr85xx.sh: Likewise.
3334         * emulparams/avrmega103.sh: Likewise.
3335         * emulparams/avrmega161.sh: Likewise.
3336         * emulparams/avrmega603.sh: Likewise.
3337         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3339 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
3341         * ldlang.c (walk_wild_section): Exclude object file if enclosing
3342         archive is excluded.
3344 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
3346         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3347         (eshelf_nbsd.c): New rule.
3348         (eshlelf_nbsd.c): New rule.
3349         * Makefile.in: Regenerate.
3350         * configure.tgt (sh*le-*-netbsdelf*): New target.
3351         (sh*-*-netbsdelf*): New target.
3352         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3353         * emulparams/shelf_nbsd.sh: New emulation.
3354         * emulparams/shlelf_nbsd.sh: New emulation.
3356 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
3358         * po/es.po: New file: Spanish translation.
3359         * configure.in (ALL_LINGUAS): Add es.
3360         * configure: Regenerate.
3362 2002-01-06  John Marshall  <jmarshall@acm.org>
3364         * ld.texinfo: Note that --emit-relocs is currently only
3365         implemented for ELF.
3367 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
3369         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3370         of bfd_section_list_remove and bfd_section_list_insert macros.
3371         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3372         * emultempl/mmo.em (mmo_place_orphan): Likewise.
3374 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
3376         * configure.tgt (x86_64-*-netbsd*): New target.
3378 2001-12-21  Tom Rix  <trix@redhat.com>
3380         (gld*_create_output_section_statements): New function.
3381         For -binitfini support.
3382         * emultempl/aix.em (gld*_before_parse): Fix comment.
3383         * emultempl/aix.em (gld*_parse_args): Fix comment.
3385 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
3387         * configure.tgt (mips*-dec-netbsd*): Delete alias for
3388         mips*el-*-netbsd*.
3389         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3391         * configure.tgt (arm-*-netbsdelf*): Add target.
3392         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3393         * emulparams/armelf_nbsd.sh: Added.
3394         * Makefile.am: Add rules for earmelf_nbsd.
3395         * Makefile.in: Regenerate.
3397 2001-12-19  Andreas Jaeger  <aj@suse.de>,
3398             Susanne Oberhauser <froh@suse.de>
3400         * configure.host: Add rules for x86_64-*linux-gnu.  Change
3401         s390x-linux entry to use gcc to report configuration, replace gcc
3402         with $CC in s390-linux
3404 2001-12-19  Andreas Jaeger  <aj@suse.de>
3406         * ld.texinfo (VERSION): Fix markup.
3408 2001-12-18  matthew green  <mrg@eterna.com.au>
3410         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3411         (m68kelfnbsd.c): New rule.
3412         * Makefile.in: Regenerate.
3413         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3414         (m68*-*-netbsd*4k*): .. this.
3415         (m68*-*-netbsdelf*): New target.
3416         (m68*-*-netbsd*): Also include ELF support.
3417         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3418         * emulparams/m68kelfnbsd.sh: New emulation.
3420 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
3422         * ldgram.y (vers_node): Support anonymous version tags.
3423         * ldlang.c (lang_register_vers_node): Ensure anonymous version
3424         tag is not defined together with non-anonymous versions.
3425         * ld.texinfo: Document it.
3427 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
3429         * po/tr.po: New file: Turkish translation.
3430         * configure.in (ALL_LINGUAS): Add tr.
3431         * configure: Regenerate.
3433 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
3435         * Makefile.am: Add rules for eelf64alpha_nbsd.
3436         * Makefile.in: Regenerate.
3437         * configure.tgt (alpha*-*-netbsd*): Set
3438         targ_emul to elf64alpha_nbsd.
3439         * emulparams/elf64alpha_nbsd.sh: Added.
3441 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
3443         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3444         section_tail when fiddling with section list.
3445         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3446         broken into separate strings to make translation easier.
3447         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3448         fiddling with section list.
3449         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3451 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
3453         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3455 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
3457         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3459 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
3461         * emultempl/elf32.em (finish): Supply output_bfd
3462         to bfd_elf*_discard_info.
3463         (OPTION_EH_FRAME_HDR): Define.
3464         (longopts): Add --eh-frame-hdr.
3465         (parse_args): Handle it.
3466         (list_options): Add --eh-frame-hdr to help.
3467         * emultempl/hppaelf.em (finish): Supply output_bfd
3468         to bfd_elf*_discard_info.
3469         * scripttempl/elf.sc (.eh_frame_hdr): Add.
3471 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
3473         * lexsup.c (parse_args): Don't pass shortopts to second call to
3474         getopt functions.  Restore optind rather than decrementing before
3475         second call.  Remove errind as it now duplicates last_optind.
3477 2001-12-11  Christopher Faylor  <cgf@redhat.com>
3479         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3481 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
3482             Richard Henderson  <rth@redhat.com>
3484         * Makefile.am: Add support for xstormy16.
3485         * configure.tgt: Add support for xstormy16.
3486         * Makefile.in: Regenerate.
3487         * emulparams/elf32xstormy16.sh: New file.
3488         * scripttempl/xstormy16.sc: New file.
3490 2001-10-01  Christopher Faylor <cgf@cygnus.com>
3492         * Makefile.in (LIB_PATH): Make configurable.
3493         (GENSCRIPTS): Set LIB_PATH in environment.
3494         * configure.in: Substitute LIB_PATH.
3495         * configure: Regenerate.
3496         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3497         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3499 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
3501         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3502         describing the -N option so that it is easier to translate into
3503         foreign languages.
3505 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
3507         * emultempl/pe.em (..._list_options): Replace multiple fprintf
3508         statements describing a single option with a single, newline
3509         escaped fprintf.  This allows better translation into other
3510         languages.
3512         * ldmain.c (add_archive_element): Combine multiple strings
3513         into a single string to permit better translation into other
3514         languages.
3516 2001-12-05  Tom Rix  <trix@redhat.com>
3518         * Makefile.am: Remove eaixppc64.
3519         * Makefile.in: Regenerate.
3521 2001-12-04  Tom Rix  <trix@redhat.com>
3523         * emultempl/aix.em (choose_target): Change default target to
3524         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
3525         warning.
3526         (gld*_read_file): Fix typo.
3527         (change_symbol_mode): Add prototype.
3528         (is_syscall): Same.
3530         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3531         * emulparams/aixrs6.sh : Same.
3532         * emulparams/ppcmacos.sh : Same.
3533         * emulparams/aixppc64.sh : Delete file.
3534         * emultempl/aix.em : Formatting changes.
3536 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
3538         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3539         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3540         __Sbss.
3541         (OTHER_END_SYMBOLS): Fix formatting.
3542         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3543         (OTHER_END_SYMBOLS): Fix formatting.
3545 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
3547         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3549 2001-12-02  Tom Rix  <trix@redhat.com>
3551         * configure.tgt : Remove eaixppc64 emulations.
3552         * Makefile.in : Remove eaixppc64.c
3553         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3554         (ldemul_default_target): Same.
3555         * emultempl/gld960.em (gld960_choose_target): Same.
3556         * emultempl/gld960c.em (gld960_choose_target): Same.
3557         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3558         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3559         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3560         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3561         * emultempl/aix.em (choose_target): New function.  Handle emulation of
3562         -b32 and -b64.
3564 2001-11-27  H.J. Lu <hjl@gnu.org>
3566         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3567         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3568         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3569         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3570         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3571         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3572         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3573         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3575         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3576         is not empty.
3577         (SDATA): Likewise.
3578         (REL_SDATA): Likewise.
3579         (REL_SBSS): Likewise.
3580         (REL_SDATA2): Likewise.
3581         (REL_SBSS2): Likewise.
3582         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3583         (SDATA2): Likewise.
3585 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3587         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3588         destructor in rom.
3589         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3591 2001-11-22  H.J. Lu  <hjl@gnu.org>
3593         * Makefile.in: Regenerated with automake based on automake
3594         1.4-8 in RedHat 7.1.
3596 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
3598         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3599         (config.status): Delete rule.
3600         Add extra dependencies to cover sourced emulparams files.
3601         * Makefile.in: Regenerate.
3603         * scripttempl/elf.sc: Order <section>, <section>.* and
3604         corresponding linkonce sections as seen in input files.
3605         Formatting fixes.  Zero vma of all sections if not relocating.
3606         (STACK): Define and insert if STACK_ADDR defined.
3607         (OTHER_RELOCATING_SECTIONS): Delete.
3608         (OTHER_END_SYMBOLS): Define.
3609         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3610         (OTHER_READWRITE_SECTIONS): Likewise.
3611         (OTHER_GOT_SECTIONS): Likewise.
3612         (OTHER_SDATA_SECTIONS): Likewise.
3613         (OTHER_BSS_SECTIONS): Likewise.
3614         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3615         (OTHER_READWRITE_SECTIONS): Likewise.
3616         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3617         (OTHER_READWRITE_SECTIONS): Likewise.
3619         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3620         (STACK_ADDR): Define.
3621         * emulparams/armelf_oabi.sh: As for armelf.sh.
3622         * emulparams/elf32mcore.sh: As for armelf.sh.
3623         * emulparams/h8300elf.sh: As for armelf.sh.
3624         * emulparams/mn10200.sh: As for armelf.sh.
3625         * emulparams/shelf.sh: As for armelf.sh.
3627         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3628         (OTHER_END_SYMBOLS): Define.
3629         * emulparams/m32relf.sh: As for elf32fr30.sh.
3630         * emulparams/h8300helf.sh: As for elf32fr30.sh.
3631         * emulparams/h8300self.sh: As for elf32fr30.sh.
3633         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3634         defines with RELOCATING test.
3635         (OTHER_SDATA_SECTIONS): Likewise.
3636         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3637         (OTHER_END_SYMBOLS): ..this.
3638         * emulparams/crislinux.sh: As for criself.sh.
3640         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3641         if not relocating.
3642         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3643         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
3644         normal and linkonce sections as seen in input files.
3645         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3646         (TEXT_DYNAMIC): Likewise.
3647         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3648         (OTHER_SDATA_SECTIONS): Likewise.
3649         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3650         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3651         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3652         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3653         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3654         (OTHER_PLT_RELOC_SECTIONS): Likewise.
3655         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
3656         sections as seen in input files.
3657         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3658         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3659         if not relocating.
3660         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3661         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3662         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3663         (OTHER_SECTIONS): Instead, use this..
3664         (OTHER_END_SYMBOLS): ..and this.
3666         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3667         * emulparams/elf32bsmip.sh: Likewise.
3668         * emulparams/elf32btsmip.sh: Likewise.
3669         * emulparams/elf32ebmip.sh: Likewise.
3670         * emulparams/elf32lmip.sh: Likewise.
3671         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3672         * emulparams/elf32lsmip.sh: Likewise.
3673         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3674         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3675         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3676         * emulparams/elf64btsmip.sh: Likewise.
3677         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3678         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3679         * emulparams/elf32ppclinux.sh: Likewise.
3680         * emulparams/elf32ppcsim.sh: Likewise.
3681         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3682         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3683         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3684         * emulparams/h8300self.sh: Likewise.
3685         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3686         * emulparams/sh.sh: Comment.
3687         * emulparams/shl.sh: Source sh.sh, remove duplicates.
3688         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3689         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3691 2001-11-21  David Heine <dlheine@tensilica.com>
3692             Alan Modra  <amodra@bigpond.net.au>
3694         * ldlang.c (map_input_to_output_sections): Replace "break"
3695         accidentally removed with 2001-08-03 change.
3696         (lang_gc_sections_1): Likewise.
3698 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
3700         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3702 2001-11-20  Angela Marie Thomas <angela@redhat.com>
3704         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3705         of false when calling lang_size_sections.
3706         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3708 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
3710         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3711         function when LDEMUL_FINISH isn't set to the same name.  Don't
3712         call ${LDEMUL_FINISH}.
3713         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3714         * emultempl/armelf.em (arm_elf_finish): Call
3715         gld${EMULATION_NAME}_finish.
3716         * emultempl/hppaelf.em (hppaelf_finish): Rename to
3717         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
3718         hppaelf_layout_sections_again if necessary.
3719         (need_laying_out): New var.
3720         (hppaelf_layaout_sections_again): Rename to
3721         hppaelf_layout_sections_again.  Clear need_laying_out.
3722         (PARSE_AND_LIST_OPTIONS): Format text.
3724 2001-11-14  H.J. Lu  <hjl@gnu.org>
3726         * emultempl/armelf.em (arm_elf_finish): Renamed from
3727         gld${EMULATION_NAME}_finish.
3728         (LDEMUL_FINISH): Set to arm_elf_finish.
3730 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
3732         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3733         (struct ld_emulation_xfer_struct): Use it.
3735 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
3737         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3738         additional symbols referenced by newer crt0.o files from HP.
3740 2001-11-12  Anthony Green  <green@redhat.com>
3742         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3744 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
3746         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3747         * Makefile.in: Regenerate.
3749 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3751         * ld.texinfo: Use @command for commands, @option for options.
3752         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3753         the page man title.
3754         * Makefile.in: Rebuild.
3756 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
3758         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3759         Add support for targets.
3761 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
3763         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3764         * configure: Regernate.
3765         * po/fr.po: New file.
3766         * po/sv.po: New file.
3768 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
3770         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3771         as little endian default and to support big endian.
3773 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
3775         * ld.texinfo (Options): Document new option, -nostdlib.
3776         * lexsup.c (OPTION_NOSTDLIB): New definition.
3777         (ld_options): Add entry for "nostdlib".
3778         (parse_args): Handle OPTIONS_NOSTDLIB.
3779         * ldfile.c (ldfile_add_library_path): Don't add directories
3780         to the search path if they weren't specified on the command line
3781         and -nostdlib was specified.
3782         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3784 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
3786         * lexsup.c (parse_args): Prevent infinite parsing loop when
3787         "-rpath.a" is specified on the command line.
3788         Replace calls to fprintf with calls to einfo.
3790 2001-10-31  John Marshall  <jmarshall@acm.org>
3792         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3793         appear only once across all the linker scripts involved in a link
3794         invocation no longer applies.  Make the documentation reflect
3795         that.
3797 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
3799         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3800         targets.
3801         (sh-*-linux*): Added targ_extra_libpath.
3803 2001-10-31  David Heine  <dlheine@tensilica.com>
3805         * ldlang.c (lang_size_sections): Keep a valid output_offset field
3806         for padding statements.
3808 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
3810         * configure.tgt (mmix-*-*): New target.
3811         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3812         Add dependencies to match.
3813         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3814         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3815         scripttempl/mmo.sc: New files.
3816         * gen-doc.texi: @set MMIX.
3817         * ld.texinfo: Ditto.
3818         [MMIX] Add MMIX node.
3819         * Makefile.in: Regenerate.
3821 2001-10-29  Kazu Hirata  <kazu@hxi.com>
3823         * ldlang.c: Fix a comment typo.
3825 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
3827         * configure.host: Move alpha*-*-linux-gnu* entry to generic
3828         entries, and match *-*-linux*.
3830 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
3832         * ldgram.y (mri_script_command): Surround processing of INCLUDE
3833         with ldlex_script, ldlex_popstate.
3834         (ifile_p1): Likewise.
3835         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
3836         correct slot.
3837         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
3838         to 1.  Don't BEGIN(SCRIPT).
3839         (lex_redirect): Similarly.
3840         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3842 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
3844         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3845         __EH_FRAME_END__ and accept eh frames into data section.
3846         Add ctor and dtor sections.
3848 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3850         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3851         (auto-export): Fix indentation.
3853 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3855         * pe-dll.c (autofilter_objectlist): Add startup objects
3856         for profiling.
3857         (auto-export): Constify char * p.
3858         Extract file basename and use strcmp rather than ststr
3859         for object lookup.
3861 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
3863         * ldmain.c (get_emulation): Improve comment about the handling
3864         of -mipsN options.
3866 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
3868         * po/POTFILES.in: Regenerate.
3870 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
3872         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3873         -z nocopyreloc and -z nocombreloc usage strings.
3875 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
3877         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3878         in usage.
3880 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
3882         * scripttempl/armaout.sc: Place .bss section after end of aligned
3883         data section to match behaviour of aout code in constructrion of
3884         header.
3886 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3888         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3889         startup files for mingw32 dlls to list.
3891 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
3893         * emultempl/elf32.em: Fix shell 'if' usage for portability.
3895 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
3897         * configure.tgt (targ): Add arm9e-*-elf.
3899 2001-10-05  H.J. Lu  <hjl@gnu.org>
3901         * genscripts.sh: Fix a typo in the last change.
3903 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
3905         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3906         -z nocombreloc in usage.
3908 2001-10-03  Jim Blandy  <jimb@redhat.com>
3910         * genscripts.sh: Include a comment at the top of each generated
3911         script, explaining its purpose.
3913 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
3915         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3916         * NEWS: Mention -z nocopyreloc.
3917         * ld.texinfo (Options): Describe nocopyreloc.
3919 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
3921         * configure: Regenerate.
3923 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
3925         * ldver.h (ld_program_version): Remove declaration.
3926         * lexsup.c (parse_args): Move printing of copyright message..
3927         * ldver.c (ldversion): .. to here.
3928         Use BFD_VERSION_STRING in place of BFD_VERSION.
3929         (ld_program_version): Remove.
3930         * Makefile.am (Makefile): Depend on bfd/configure.in.
3931         Run "make dep-am".
3932         * Makefile.in: Regenerate.
3934 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
3936         * Makefile.am: Update dependencies with "make dep-am".
3937         * Makefile.in: Regenerate.
3939 2001-09-29  John Reiser  <jreiser@BitWagon.com>
3941         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3942         * lexsup.c: Add --no-define-common commandline option.
3943         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3944         * ldlex.l: Likewise.
3945         * ld.h: Add command_line.inhibit_common_definition.
3946         * ldmain.c (main): Initialize.
3947         * ld.texinfo: Document.
3949 2001-09-29  Alan Modra  <amodra@bigpond.net.au>
3951         * ldlang.c (section_already_linked): Remove assignment to kept_section.
3953 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
3955         * ldmisc.c (USE_STDARG): Remove.
3956         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3957         (einfo): Likewise.
3958         (minfo): Likewise.
3959         (lfinfo): Likewise.
3961         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3962         declarations.  Update copyright.
3964 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3966         * pe-dll.c: Remove obsoleted declaration of
3967         pe_get_data_import_dll_name.
3968         (pe_create_import_fixup): Fix thinko.
3970         * ld.texinfo(enable-auto-import): Clarify the explanation.
3972 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
3974         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3975         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3976         DLL_SUPPORT controlled code.
3978 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
3980         * emultempl/pe.em(pe_data_import_dll): Make static.
3981         (pe_get_data_import_dll_name): New accessor function.
3982         * pe-dll.c(pe_create_import_fixup): call
3983         pe_get_data_import_dll_name() from pe.em, instead of
3984         directly accessing pe_data_import_dll variable from pe.em.
3986 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
3988         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3989         (def_file_add_directive): Use ISSPACE instead of isspace.
3990         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3991         isdigit/isxdigit/isalpha/isalnum.
3992         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3993         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3994         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3995         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3996         isalnum.
3997         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3998         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3999         isupper/tolower.
4000         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
4001         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
4002         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
4003         (ctor_prio): Use ISDIGIT instead of isdigit.
4004         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
4005         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
4006         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
4007         isupper/tolower.
4008         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
4009         (stricpy): Use TOLOWER instead of isupper/tolower.
4010         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
4011         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
4012         (lex_warn_invalid): Use ISPRINT instead of isprint.
4013         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
4014         (main): For gettext, also set the LC_CTYPE locate facet.
4015         (add_keepsyms_file): Use ISSPACE instead of isspace.
4016         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
4017         (is_num, parse_args): Use ISDIGIT instead of isdigit.
4018         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
4019         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
4020         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
4021         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
4022         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
4023         (quoteput): Use ISSPACE instead of isspace.
4024         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
4025         instead of isalnum.
4027 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
4029         * deffilep.y (def_stash_module): Constify "name" param.
4031         * pe-dll.c: Replace CONST with const throughout.
4032         (quick_symbol): Constify "n1", "n2", "n3" params.
4033         (make_singleton_name_thunk): Constify "import" param.  Make
4034         "buffer_len" a size_t.
4035         (make_import_fixup_entry): Constify "name", "fixup_name",
4036         "dll_symname" params.
4037         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
4038         (pe_get32): Likewise.
4039         (pe_implied_import_dll): Likewise.
4041         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
4042         (sort_by_section_name): Likewise.
4044         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
4045         (make_import_fixup): Cast printf arg, rel->address to long rather
4046         than int.
4047         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
4049 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
4051         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
4052         defines BufferSize.  Increase buffer size by one.
4054 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
4056         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
4058 2001-09-14  Kevin Lo <kevlo@openbsd.org>
4060         * configure.tgt: Add arm-openbsd target.
4062 2001-09-12  H.J. Lu  <hjl@gnu.org>
4064         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
4065         eelf64lppc.o to ...
4066         (ALL_64_EMULATIONS): Here.
4067         * Makefile.in: Regenerated.
4069 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4071         * emultempl/pe.em(make_import_fixup): change signature to
4072         take asection as well as arelec; we need this for proper
4073         error reporting.  Only call pe_create_import_fixup() if
4074         there is no attempt to add a constant addend to the reloc;
4075         otherwise, report error condition.
4076         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
4077         since final argument is a pointer to make_import_fixup().
4078         Change call to cb() to match make_import_fixup() signature.
4079         (make_import_fixup_mark): make buffer_len unsigned.
4080         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
4082 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
4084         * ld.texinfo: add verbose documentation for auto-import
4085         direct-addressing workaround, to compliment the terse
4086         error message.
4088 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
4090         * scripttempl/v850.sc: Add gcc_except_table sections.
4092 2001-09-11  Jeffrey A Law  (law@cygnus.com)
4094         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
4095         * emulparams/h8300self.sh: Similarly.
4097 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
4099         * ld.texinfo (Options, --stack): Correct default value for stack
4100         reserve.
4102 2001-09-05  Tom Rix <trix@redhat.com>
4104         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
4106 2001-09-03  Andreas Jaeger  <aj@suse.de>
4108         * emultempl/beos.em: Declare prototypes for comparions functions,
4109         adjust definitions.
4111 2001-09-02  Andreas Jaeger  <aj@suse.de>
4113         * emultempl/aix.em: Add missing prototype.
4114         * emultempl/lnk960.em: Likewise.
4115         * emultempl/vanilla.em: Likewise.
4116         * emultempl/armcoff.em: Likewise.
4117         * emultempl/armelf_oabi.em: Likewise.
4118         * emultempl/beos.em: Likewise.
4119         * emultempl/gld960c.em: Likewise.
4120         * emultempl/gld960.em: Likewise.
4122         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
4123         for prototype declaration.
4125 2001-08-31  Eric Christopher  <echristo@redhat.com>
4126             Jason Eckhardt  <jle@redhat.com>
4128         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
4130 2001-08-31  Andreas Jaeger  <aj@suse.de>
4132         * emultempl/pe.em: Add missing prototypes.
4133         (gld_${EMULATION_NAME}_after_open): Remove extra args to
4134         pe_find_data_imports.
4135         (pr_sym): Add unused attribute.
4137 2001-08-29  Joel Sherrill <joel@OARcorp.com>
4139         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
4140         default from coff to elf.
4142 2001-08-29  Jeff Law <law@redhat.com>
4144         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
4145         ARCH specification.
4146         * emulparams/h8300self.sh: Similarly.
4148 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
4150         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
4151         eh8300self.o .
4152         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
4153         * configure.tgt (h8300-*-elf*): New case.
4154         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
4155         * emulparams/h8300self.sh: New file.
4156         * Makefile.in: Regenerated.
4158 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
4160         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
4161         with macro name.
4163 2001-08-27  Linus Nordberg  <linus@swox.com>
4164             Alan Modra  <amodra@bigpond.net.au>
4166         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
4167         (eelf64ppc.c, eelf64lppc.c): Add make targets.
4168         Run "make dep-am"
4169         * Makefile.in: Regenerate.
4170         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
4171         entries to correct alphabetical position.
4172         * emulparams/elf64ppc.sh: New.
4173         * emulparams/elf64lppc.sh: New.
4175 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
4177         * ldmain.c (main): Declare BSIZE as static.
4179 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
4181         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4182         into .rel.dyn resp. .rela.dyn if combreloc.
4183         (get_script): If .x linker script is equal to .xn, only put it
4184         once into the binary.
4185         Add .xc and .xsc scripts.
4186         (parse_args): Handle -z combreloc and -z nocombreloc.
4187         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
4188         For .xc and .xsc scripts put all .rel* or .rela* input sections
4189         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
4190         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
4191         is elf.
4192         Strip trailing whitespace from script.
4193         Generate .xc and .xsc scripts if requested.
4194         * ldmain.c (main): Initialize link_info.combreloc and
4195         link_info.spare_dynamic_tags.
4196         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
4197         (ld_options): Add --spare-dynamic-tags option.
4198         (parse_args): Likewise.
4199         * ld.texinfo: Document -z combreloc and -z nocombreloc.
4200         * ldint.texinfo: Document .xc and .xsc linker scripts.
4201         * NEWS: Add notes about -z combreloc and SHF_MERGE.
4203 2001-08-22  H.J. Lu  <hjl@gnu.org>
4205         * emulparams/elf32fr30.sh: Add a newline.
4207 2001-08-21  Andreas Jaeger  <aj@suse.de>
4209         * deffilep.y: Add missing prototypes.
4210         * pe-dll.c: Likewise.
4212 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
4214         * ldlang.c (insert_pad): Fix typos in last patch.
4216         * ldlang.c: When traversing lang_statement_union_type lists,
4217         consistently use "header.next" rather than "next".
4218         * mpw-eppcmac.c: Likewise.
4219         * emultempl/beos.em: Likewise.
4220         * emultempl/hppaelf.em: Likewise.
4221         * emultempl/pe.em: Likewise.
4222         * ldlang.h (union lang_statement_union): Remove "next" field.
4224         * ldlang.c (insert_pad): Use offsetof macro.
4225         (lang_size_sections): Always neuter padding statements.
4226         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4228         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4229         passed to lang_size_sections.
4230         (pe_exe_fill_sections): Likewise.
4231         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4232         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4234 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
4236         * emultempl/aix.em: Formatting fixes.
4238 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
4240         * ldlang.c (insert_pad): Make use of an existing pad statement if
4241         available.  Move code calculating alignment, adjusting section
4242         alignment power, and adjusting dot to ..
4243         (size_input_section): .. here.  Remove unused relax param.
4244         (lang_size_sections): Change boolean `relax' param to boolean *.
4245         Adjust call to size_input_section.  Make use of insert_pad to
4246         place pad after the assignment statement.  If relaxing, zap
4247         padding statements.
4248         (reset_memory_regions): Reset output_bfd section sizes too.
4249         (relax_again): Move to..
4250         (lang_process): ..here.  Adjust call to lang_size_sections, and
4251         remove duplicated code.
4252         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4254 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
4256         * ld.texinfo: Document that fill values now use the four least
4257         significant bytes.
4258         * emulparams/elf32fr30.sh (NOP): Update.
4259         * emulparams/elf32mcore.sh: Likewise.
4260         * emulparams/elf64_s390.sh: Likewise.
4261         * emulparams/elf_i386.sh: Likewise.
4262         * emulparams/elf_i386_be.sh: Likewise.
4263         * emulparams/elf_i386_chaos.sh: Likewise.
4264         * emulparams/elf_i386_ldso.sh: Likewise.
4265         * emulparams/elf_s390.sh: Likewise.
4266         * emulparams/elf_x86_64.sh: Likewise.
4267         * emulparams/i386moss.sh: Likewise.
4268         * emulparams/i386nw.sh: Likewise.
4269         * emulparams/m68kelf.sh: Likewise.
4270         * scripttempl/elf.sc: Update NOP comment.
4271         * scripttempl/elfi370.sc: Likewise.
4272         * scripttempl/elfm68hc11.sc: Likewise.
4273         * scripttempl/elfm68hc12.sc: Likewise.
4274         * scripttempl/nw.sc: Likewise.
4276 2001-08-15  Tom Rix <trix@redhat.com>
4278         * ldgram.y (saved_script_handle): Initialize to NULL.
4279         * ldmain.c (main): Change check on saved_script_handle.
4281 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
4283         * emultempl/elf32.em: Formatting fixes.
4284         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
4285         looking at sec->owner.
4286         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4287         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
4288         unused code, and reorganize orphan section placement code.
4290         * ldlang.c (wild_doit): Rename to lang_add_section.
4291         * ldlang.h: Here too.
4292         * mpw-elfmips.c: And here.
4293         * emultempl/beos.em: And here.
4294         * emultempl/elf32.em: And here.
4295         * emultempl/hppaelf.em: And here.
4296         * emultempl/pe.em: And here.
4298 2001-08-13  Richard Henderson  <rth@redhat.com>
4300         * emultempl/needrelax.em: New file.
4301         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4302         * Makefile.am (eelf64_ia64.c): Depend on it.
4303         * Makefile.in: Rebuild.
4305 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
4307         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4308         output_section is set non-NULL.
4310         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4311         `true' for SEC_EXCLUDE sections so that the generic code doesn't
4312         needlessly create an output_section_statement.  Treat a correctly
4313         named output_section_statement with NULL bfd_section as compatible.
4315 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
4317         * emultempl/generic.em: Support EXTRA_EM_FILE.
4318         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4319         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4320         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4321         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4322         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4323         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4324         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4325         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4326         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4327         LDEMUL_FIND_POTENTIAL_LIBRARIES.
4329 2001-08-12  Richard Henderson  <rth@redhat.com>
4331         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4332         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4333         scripttempl/v850.sc: Keep .jcr data.
4335 2001-08-12  H.J. Lu  <hjl@gnu.org>
4336             Andrew Haley  <aph@cambridge.redhat.com>
4337             Nick Clifton  <nickc@redhat.com>
4339         * ldgram.y (had_script): Change name to saved_script_handle.
4340         Change type to file handle.
4341         * ld.h (had_script): Rename and retype.
4342         * ldfile.c (ldfile_open_command_file): Save the file handle
4343         used in saved_script_handle.
4344         * lexsup.c (parse_args): Do not allow -c option to alter
4345         saved_script_handle.
4346         * ldmain.c (main): Print out the linker script used if
4347         --verbose is given.  Check saved_script_handle to obtain the
4348         external linker script used, or if NULL, dump the builtin
4349         script.
4350         * ld.texinfo: Document that --verbose now dumps the linker
4351         script used, regardless of whether it was an internal or an
4352         external script.
4354 2001-08-10  Andreas Jaeger  <aj@suse.de>
4356         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4357         to build warnings.
4358         * configure: Regenerate.
4360 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
4362         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4364         * scripttempl/elf.sc: Move non-text .dynamic section before
4365         .plt/.got/.sdata* group.
4366         (OTHER_GOT_SECTIONS): Move to immediately after .got.
4367         (OTHER_SDATA_SECTIONS): Add.
4368         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4369         OTHER_GOT_SECTIONS.
4370         * emulparams/crislinux.sh: Likewise.
4371         * emulparams/elf32b4300.sh: Likewise.
4372         * emulparams/elf32bmip.sh: Likewise.
4373         * emulparams/elf32bmipn32.sh: Likewise.
4374         * emulparams/elf32bsmip.sh: Likewise.
4375         * emulparams/elf32btsmip.sh: Likewise.
4376         * emulparams/elf32ebmip.sh: Likewise.
4377         * emulparams/elf32elmip.sh: Likewise.
4378         * emulparams/elf32l4300.sh: Likewise.
4379         * emulparams/elf32lmip.sh: Likewise.
4380         * emulparams/elf32lsmip.sh: Likewise.
4381         * emulparams/elf32ltsmip.sh: Likewise.
4382         * emulparams/elf64bmip.sh: Likewise.
4383         * emulparams/elf64btsmip.sh: Likewise.
4384         * emulparams/elf64ltsmip.sh: Likewise.
4386 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
4388         * genscripts.sh: Source the emulparams script before each output
4389         script is generated so that variables like `RELOCATING' may affect
4390         variables defined in the emulparams script.
4392 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
4394         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4395         order.
4397         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4398         ie. iterate over wild_statement.section_list.
4399         (gld${EMULATION_NAME}_place_orphan): Likewise.
4401 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4403         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4404         .fini[0-4] sections used by _exit
4405         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4406         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4407         * scripttempl/elfm68hc11.sc: Likewise.
4409 2001-08-03  H.J. Lu  <hjl@gnu.org>
4411         * emultempl/beos.em (init): Add the missing initialization.
4413 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
4415         * ld.texinfo (Input Section Basics): Clarify ordering of output
4416         sections.
4417         * ldlang.c (callback_t): Add wildcard_list param.
4418         (walk_wild_section): Remove "section" param.  Rewrite for
4419         lang_wild_statement_type change.  Remove unique_section_p test.
4420         (walk_wild_file): Remove "section" param.
4421         (walk_wild): Remove "section" and "file" params.
4422         (lang_gc_wild): Likewise.
4423         (wild): Likewise.  Modify for lang_wild_statement_type change.
4424         (wild_sort): Likewise.  Add "sec" param.
4425         (gc_section_callback): Likewise.
4426         (output_section_callback): Likewise.  Do unique_section_p test.
4427         (map_input_to_output_sections): Modify call to wild.
4428         (lang_gc_sections_1): Likewise.
4429         (print_wild_statement): Modify for lang_wild_statement_type
4430         change.
4431         (lang_add_wild): Replace filename, filenames_sorted param with
4432         filespec.  Replace section_name, sections_sorted,
4433         exclude_filename_list with section_list.
4434         * ldlang.h (lang_add_wild): Here too.
4435         (lang_wild_statement_type): Replace section_name, sections_sorted,
4436         and exclude_filename_list with section_list.
4437         * ldgram.y (current_file): Delete.
4438         (%union): Add wildcard_list.
4439         (file_NAME_list): Set type to wildcard_list.  Build a linked list
4440         rather than calling lang_add_wild for each entry.
4441         (input_section_spec_no_keep): Call lang_add_wild here instead.
4442         * ld.h (struct wildcard_list): Declare.
4443         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4445 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
4447         * ldmain.c (main): initialize link_info.pei386_auto_import
4448         * pe-dll.c: new tables for auto-export filtering
4449         (auto_export): change API, pass abfd for contextual filtering.
4450         Loop thru tables of excluded symbols instead of comparing
4451         "by hand".
4453 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
4455         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4456         static variable current_sec (static struct sec *). Add
4457         forward declaration for add_bfd_to_link.
4458         (process_def_file): Don't export undefined symbols. Do not
4459         export symbols starting with  "_imp__".  Call auto_export()
4460         with new API.
4461         (pe_walk_relocs_of_symbol): New function.
4462         (generate_reloc): add optional extra debugging
4463         (pe_dll_generate_def_file): eliminate extraneous initial blank
4464         line in output
4465         (make_one): enlarge symtab to make room for __nm__ symbols
4466         (DATA auto-import support).
4467         (make_singleton_name_thunk): New function.
4468         (make_import_fixup_mark): New function.
4469         (make_import_fixup_entry): New function.
4470         (pe_create_import_fixup): New function.
4471         (add_bfd_to_link): Specify that 'name' argument is a CONST
4472         char *.
4473         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4474         declare new functions pe_walk_relocs_of_symbol and
4475         pe_create_import_fixup.
4476         * emultempl/pe.em: add new options --enable-auto-import,
4477         --disable-auto-import, and --enable-extra-pe-debug.
4478         (make_import_fixup): New function.
4479         (pe_find_data_imports): New function.
4480         (pr_sym): New function.
4481         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4482         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
4483         CODE.
4485 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
4487         * ld.texinfo: add additional documentation for
4488         --export-all-symbols.  Document --out-implib,
4489         --enable-auto-image-base, --disable-auto-image-base,
4490         --dll-search-prefix, --enable-auto-import, and
4491         --disable-auto-import.
4492         * ldint.texinfo: Add detailed documentation on auto-import
4493         implementation.
4495 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
4497         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4498         example.
4500 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
4502         * Makefile.am: Update dependencies with "make dep-am".
4503         * Makefile.in: Regenerate
4505 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
4507         * ldcref.c (check_section_sym_xref): New function.
4508         (check_nocrossrefs): Call it.
4509         (check_nocrossref): Interate over h->refs here instead of..
4510         (check_refs): ..here.  Pass in the symbol name, section, and bfd
4511         rather than hash_entry pointers.
4512         (struct check_refs_info): Keep symbol name rather than hash entry.
4513         Remove "same".
4514         (check_reloc_refs): Tweak for above changes in check_refs_info.
4515         Only report references to section syms when symname is NULL to
4516         prevent duplicate messages for the same reloc.
4518 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
4520         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4521         available.  Do not print NULL trees.
4522         (exp_print_token): Print unknown tokens with values > 126 as
4523         decimal values not ASCII characters.
4525         * ldlang.c (lang_leave_overlay): If a region is specified assign
4526         it to all sections inside the overlay unless they have been
4527         assigned to the own, non-default, memory region.
4529         * README: Add header for consistency with other README files.
4531 2001-07-14  H.J. Lu  <hjl@gnu.org>
4533         * emultempl/elf32.em (output_prev_sec_find): Never return
4534         bfd_abs_section_ptr, bfd_com_section_ptr nor
4535         bfd_und_section_ptr.
4537 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
4539         * Makefile.am (em32relf.c): Change dependency from generic.em to
4540         elf32.em.
4541         * Makefile.in: Regenerate.
4543 2001-07-14  matthew green  <mrg@eterna.com.au>
4545         * configure.tgt (i386-*-netbsdelf*): New target.
4546         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4548 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
4550         * emultempl/elf32.em (output_prev_sec_find): New.
4551         (place_orphan): Use it.
4553 2001-07-11  H.J. Lu  <hjl@gnu.org>
4555         * ldmain.c (main): Fix typos in the last change.
4557 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
4559         * ldmain.c (main): Disallow -F and -f without -shared.
4561 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
4563         * emultempl/pe.em (after_open): Check for the output_bfd not
4564         having any coff_data structure allocated to it.
4566 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
4568         * emultempl/elf32.em: Do not assuming that contents of the buffer
4569         returned from basename function will remain unchanged accross other
4570         function calls.
4572 2001-07-03  H.J. Lu  <hjl@gnu.org>
4574         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4575         2001-07-03. It creates dynamic entries even for static binaries.
4577 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
4579         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4580         (DYNAMIC): Use it to reserve few dynamic entries for
4581         post-linking tools.
4583 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
4585         * emulparams/hppa64linux.sh: New file.
4586         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4587         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4588         (ehppa64linux.c): Add rule to make it.
4589         Run "make dep-am".
4590         * Makefile.in: Regenerate.
4592 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
4594         * ld.texinfo (Options, -r): Mention restrictions when using
4595         different object formats.
4597 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
4599         * ldlang.c (lang_check): Emit fatal error if relocatable link
4600         between different object flavours with relocations in input.
4602 2001-06-19  H.J. Lu  <hjl@gnu.org>
4604         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4605         (--version-script): Mention the language support.
4607 2001-06-19  H.J. Lu <hjl@gnu.org>
4609         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4611 2001-06-18  H.J. Lu <hjl@gnu.org>
4613         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4614         (diststuff): Add $(MANS).
4615         * Makefile.in: Regenerated.
4617         * ld.1: Removed.
4619 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
4621         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4622         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4623         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4624         * ld.h (args_type): Remove member export_dynamic.  All users
4625         changed to use struct bfd_link_info member.
4627         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4628         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4629         * Makefile.in: Regenerate.
4631 2001-06-18  H.J. Lu  <hjl@gnu.org>
4633         * ldlang.c (init_os): Add the newline to the einfo call.
4634         (lang_check): Likewise.
4635         (lang_do_version_exports_section): Likewise.
4637 2001-06-15  H.J. Lu  <hjl@gnu.org>
4639         * lexsup.c (parse_args); Save optind to report unrecognized
4640         option.
4642 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
4644         * ldlang.c (lang_check): Emit fatal error if relocatable link
4645         between different object flavours.
4647         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4648         Set new link_info member export_dynamic.
4649         * ldmain.c (main): Initialize new link_info member export_dynamic.
4651 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
4653         * ldlang.c (walk_wild): Only call walk_wild_file if
4654         lookup_name returns something.
4655         (lookup_name): If load_symbols fails, return NULL.
4656         (load_symbols): Change to a boolean function.
4657         (open_input_bfds): If load_symbols fails then do not make the
4658         executable.
4660 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
4662         * ldlang.c (record_bfd_errors): Remove.
4664         * emultempl/aix.em: Fix copyright dates.
4666 2001-06-07  Andreas Jaeger  <aj@suse.de>
4668         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4669         (TEXT_START_ADDR): Likewise.
4671 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
4673         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4675 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4677         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4679 2001-05-31  H.J. Lu  <hjl@gnu.org>
4681         * ldlang.c (open_input_bfds): Don't change the bfd error
4682         handler whilst loading symbols.
4684 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
4686         * configure.tgt: Remove i370-mvs architecture, it is not currently
4687         supported.
4689 2001-05-25  H.J. Lu  <hjl@gnu.org>
4691         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4692         like emulparams/aixppc.sh.
4694 2001-05-25  H.J. Lu  <hjl@gnu.org>
4696         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4697         setting of output_filename after bfd_scan_arch.
4698         * emultempl/pe.em: Likewise.
4700 2001-05-25  H.J. Lu  <hjl@gnu.org>
4702         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4703         like emulparams/aixppc.sh.
4705         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4706         instead of ${srcdir}/emultempl/stringify.sed.
4708 2001-05-25  Timothy Wall  <twall@oculustech.com>
4710         * emulparams/elf64_aix.sh: Change settings to match IBM linker
4711         output.
4713 2001-05-25  Alan Modra  <amodra@one.net.au>
4715         * configure.host: Replace linuxoldld with linux*oldld.
4716         * configure.tgt: Likewise.
4718 2001-05-24  H.J. Lu  <hjl@gnu.org>
4720         * emultempl/stringify.sed: Removed again.
4722 2001-05-24  H.J. Lu  <hjl@gnu.org>
4724         * emultempl/aix.em (OUTPUT_ARCH): Defined.
4725         (gld${EMULATION_NAME}_before_parse): Initialize
4726         ldfile_output_architecture, ldfile_output_machine and
4727         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4728         * emultempl/beos.em: Likewise.
4729         * emultempl/elf32.em: Likewise.
4730         * emultempl/linux.em: Likewise.
4731         * emultempl/mipsecoff.em: Likewise.
4732         * emultempl/pe.em: Likewise.
4733         * emultempl/sunos.em: Likewise.
4735 2001-05-24 Tom Rix <trix@redhat.com>
4737         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4738         udate import file format.
4739         (change_symbol_mode) New, same
4740         (is_syscall) New, same
4741         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4742         * emulparams/aixppc64.sh : same
4743         * emulparams/aixrs6.sh : same
4744         * emulparams/ppcmacos.sh : same
4745         * emultempl/aix.em : use strtoull to parse options
4746         * Makefile.am : add eaixppc64 emulation for xcoff64
4747         * Makefile.in : same
4748         * configure.tgt : same
4750         * scripttempl/aix.sc : default text section offset to 0x10000000
4751         default data section offset to 0x20000000
4752         add .sv3264 and .sv64 pseudo sections
4753         loader and debug sections use the currect section offset.
4755         * emultempl/aix.em : Add xcoff64 support
4756         Add -binitfini support
4757         (gld${EMULATION_NAME}_before_parse) -binitfini
4758         (gld${EMULATION_NAME}_parse_args) same
4759         (gld${EMULATION_NAME}_before_allocation) format change for special
4760         sections
4762         * emulparams/aixppc64.sh : New file for xcoff64 support
4764 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
4766         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4767         variable to avoid non-portable shell construct.
4769 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4771         * ldmain.c (get_emulation): Add -mips5 command line argument.
4773 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
4775         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4776         (ELF_INTERPRETER_NAME): Define it.
4777         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4778         it.
4779         * configure.tgt (targ_emul, targ_extra_emuls)
4780         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4781         as primary, elf_i386 as extra.
4782         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4783         (eelf_i386_ldso.c): New rule.
4784         * Makefile.in: Rebuilt.
4786 2001-05-22  Nick Clifton  <nickc@redhat.com>
4788         * lexsup.c (ld_options): Allow -I to be an alias for
4789         --dynamic-linker.  This is for Solaris compatability.
4790         * ld.texinfo: Document that -I can be used.
4791         * ld.1: Regenerate.
4793 2001-05-16  Alan Modra  <amodra@one.net.au>
4795         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4796         whether an input section is the first one assigned to an output
4797         section.
4798         Assorted formatting fixes.
4800 2001-05-14  DJ Delorie  <dj@delorie.com>
4802         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4803         * Makefile.in: Ditto.
4805 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
4807         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4808         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4809         output sections.
4810         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4812 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
4814         * ldlang.c (lang_process): Call bfd_merge_sections.
4816 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4818         * ldgram.y: Fix typo.
4820 2001-05-03  H.J. Lu  <hjl@gnu.org>
4822         * emultempl/elf32.em: Include "libiberty.h".
4823         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4824         basename of the bfd filename.
4825         (gld${EMULATION_NAME}_stat_needed): Likewise.
4826         (gld${EMULATION_NAME}_try_needed): Likewise.
4827         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4829 2001-05-02  H.J. Lu  <hjl@gnu.org>
4831         * emultempl/pe.em: Include <ctype.h>.
4833 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
4835         * emulparams/elf32openrisc.sh: New file.
4837         * Makefile.am: Add OpenRISC target.
4838         * Makefile.in: Regenerated.
4840         * configure.tgt: Add openrisc-*-* mapping.
4842 2001-05-02  Nick Clifton  <nickc@redhat.com>
4844         * emultempl/aix.em: Replace buystring with xstrdup.
4845         * emultempl/beos.em: Replace buystring with xstrdup.
4847 2001-05-02  H.J. Lu  <hjl@gnu.org>
4849         * ldfile.c: Include "libiberty.h".
4850         * ldlex.l: Likewise.
4852         * ldmisc.c (buystring): Removed.
4853         * ldmisc.h: Likewise.
4855         * ldfile.c: Replace buystring with xstrdup.
4856         * ldlang.c: Likewise.
4857         * ldlex.l: Likewise.
4858         * ldmain.c: Likewise.
4859         * ldmisc.c: Likewise.
4860         * lexsup.c: Likewise.
4861         * mpw-eppcmac.c: Likewise.
4863 2001-04-30  Andreas Jaeger  <aj@suse.de>
4865         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4867 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
4869         * ldlang.c (load_symbols): Give emulation a chance
4870         to process unrecognized file before fatal error is
4871         reported, not after.
4873 2001-04-27  Sean McNeil <sean@mcneil.com>
4875         * configure.tgt: Add arm-vxworks target.
4876         * scripttempl/armcoff.sc: Support .text or .data as a section name
4877         prefix.
4878         Define _etext.
4880 2001-04-13  J.T. Conklin  <jtc@redback.com>
4882         * ld.texinfo: Document --fatal-warnings.
4883         * ld.1: Regenerate.
4885         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4886         warnings have been turned into errors.
4887         * lexsup.c (OPTION_WARN_FATAL): Define.
4888         (ld_options): Entry for --fatal-warnings.
4889         (parse_args): Handle OPTION_WARN_FATAL.
4890         * ld.h (ld_config_type): Add fatal_warnings field.
4892 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
4894         * ldmain.c (main): Default to discard_sec_merge.
4895         * lexsup.c (OPTION_DISCARD_NONE): Define.
4896         (ld_options): Add --discard-none.
4897         (parse_args): Handle OPTION_DISCARD_NONE.
4898         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4899         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4900         all its input sections match.
4902 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
4904         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4905         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4906         (eelf32ltsmip.c): New target.
4907         (eelf64btsmip.c): Likewise.
4908         (eelf64ltsmip.c): Likewise.
4909         * Makefile.in: Regenerated.
4911         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4912         target.
4913         (mips*-*-linux-gnu*): Likewise.
4915         * emulparams/elf32ltsmip.sh: New. Traditional little endian
4916         MIPS taget.
4917         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4918         target.
4919         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4920         endian target.
4922 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
4924         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4925         correct value of __Stext here.
4926         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4927         .startup section.
4929         * emulparams/crislinux.sh: Remove FIXME.
4931 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
4933         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4934         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4936 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
4938         * configure.tgt (cris-*-*): Change default emulation to criself.
4939         (cris-*-*aout*): New rule.
4941 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
4943         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4944         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4946 2001-03-26  Andreas Jaeger  <aj@suse.de>
4948         * ld.texinfo (Overview): Fix syntax in texi code.
4950 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4952         * ld.texinfo: Put @c man indications to generate the ld man page.
4953         When generating man, define all the variables.  Define SEEALSO
4954         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
4955         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4956         (ld.1): Generate from ld.texinfo.
4957         * Makefile.in: Regenerate.
4959 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
4961         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4962         and '-fdata-sections'. Set the VMA of STABS sections to zero.
4964 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4966         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4967         is an absolute path look only for this file and not along the path.
4969 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
4971         * emultempl/elf32.em (OPTION_GROUP): New macro.
4972         Add new option Bgroup to longopts.
4973         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4974         (gld*_list_options): Add -Bgroup and -z defs.
4975         * ld.1: Document -Bgroup and -z defs.
4976         * ld.texinfo: Likewise.
4978 2001-03-07  Michael Meissner  <meissner@redhat.com>
4980         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4981         with sections created by -fdata-sections.
4982         (.dynbss,.bss): Ditto.
4984 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
4986         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4987         after_allocation_default, not gld..._before_allocation.
4989 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
4991         * configure.in (BFD_VERSION): New.
4992         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4993         * configure: Regenerate.
4994         * Makefile.am: Run "make dep-am"
4995         * Makefile.in: Regenerate.
4997 2001-02-26  Timothy Wall  <twall@cygnus.com>
4999         * emulparams/elf64_aix.sh: Add additional read-only sections;
5000         uncomment lines which are now required.
5002 2001-02-26  H.J. Lu  <hjl@gnu.org>
5004         * ldlang.c (open_input_bfds): Set the bfd error handler so
5005         that problems can be caught whilst loading symbols.
5006         (record_bfd_errors): New function: Report BFD errors and mark
5007         the executable output as being invalid.
5009 2001-02-22  Timothy Wall  <twall@cygnus.com>
5011         * configure.host: Add configuration for ia64-*-aix*.
5012         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
5013         Add dependencies for eelf64_aix.c.
5014         * Makefile.in: Regenerate.
5015         * configure.tgt: Add ia64-*-aix* mapping.
5016         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
5018 2001-02-20  H.J. Lu  <hjl@gnu.org>
5020         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
5021         false if we found the file.
5023 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
5025         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
5026         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
5028 2001-02-18  lars brinkhoff  <lars@nocrew.org>
5030         * Makefile.am: Add PDP-11 target.
5031         * configure.tgt: Likewise.
5032         * emulparams/pdp11.sh: New file.
5034 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
5036         * configure.host: Add a generic FreeBSD configuration entry such that
5037         all [modern] FreeBSD systems on all platforms will look the same.
5039 2001-02-14  H.J. Lu  <hjl@gnu.org>
5041         * configure.tgt: Remove mention of earmelf_linux26.
5043 2001-02-13  Richard Henderson  <rth@redhat.com>
5045         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
5047 2001-02-13  H.J. Lu  <hjl@gnu.org>
5049         * ldexp.h (node_type): Add etree_provided.
5050         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
5051         type to etree_provided if defined by PROVIDE. Allow updating
5052         for etree_provided.
5053         (exp_print_tree): Handle etree_provided.
5054         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
5055         etree_provided.
5057 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
5059         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
5060         .IA_64.unwind.* pattern to unwind table section and
5061         .IA_64.unwind_info* pattern to unwind info section.
5063 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5065         * Makefile.am: Add linux target for S/390.
5066         * Makefile.in: Likewise.
5067         * configure.host: Likewise.
5068         * configure.tgt: Likewise.
5069         * emulparams/elf64_s390.sh: New file.
5070         * emulparams/elf_s390.sh: New file.
5072 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
5074         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
5075         targ_extra_libpath.
5076         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
5078 2001-02-06  Philip Blundell  <philb@gnu.org>
5080         * Makefile.am: Remove mention of earmelf_linux26.
5081         * Makefile.in: Regenerate.
5083 2001-02-04  Philip Blundell  <philb@gnu.org>
5085         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
5086         * emulparams/armelf_linux26.sh: Delete.
5087         * configure.tgt: Remove mention of armelf_linux26 emulation.
5089 2001-02-01  Nick Clifton  <nickc@redhat.com>
5091         * ld.1: Replace occurances of -oformat with --oformat.
5093 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
5095         * ldlang.c (lang_leave_overlay): Don't set lma_region when
5096         load_base is specified.
5098 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
5100         * emultempl/elf32.em: Correct spelling in comments and listed
5101         options.
5103 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
5105         * ldlang.c (lang_leave_overlay): Only set lma_region from the
5106         default for the first section of a group of overlay sections.
5108 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
5110         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
5111         * Makefile.in: Regenerate.
5112         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
5113         Check for null tool_dir.
5115 2001-01-16  Jim Wilson  <wilson@redhat.com>
5117         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
5118         and IA_64.unwind.info.
5120 2001-01-16  H.J. Lu  <hjl@gnu.org>
5122         * ldlang.c (lang_check): Merge the private data only if the
5123         input file has contents.
5125 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
5127         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
5129         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
5130         enabling search for libmilli.  On a relocatable link, make .text
5131         sections unique.
5132         (LDEMUL_AFTER_PARSE): Define.
5133         (hppaelf_finish): Correct spelling of relocatable in comments.
5135         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5136         rummage through the script for sections on the unique list.
5137         Correct length of strncmp for ".note".
5138         (gld${EMULATION_NAME}_check_needed): Rearrange function.
5140         * ldlang.c (unique_section_list): New var.
5141         (unique_section_p): New function.
5142         (walk_wild_section): Don't match sections on unique_section_list.
5143         (lang_add_unique): New function.
5144         Correct spelling of relocatable in comments.
5146         * ldlang.h (struct unique_sections): Declare.
5147         (unique_section_list): Declare.
5148         (unique_section_p): Declare.
5149         (lang_add_unique): Declare.
5151         * lexsup.c (ld_options): Allow --unique to take an optional arg.
5152         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
5154         * ld.texinfo (--unique): Update.
5156 2001-01-13  Nick Clifton  <nickc@redhat.com>
5158         * lexsup.c (parse_args): Remove spurious white space.
5160 2001-01-12  Nick Clifton  <nickc@redhat.com>
5162         * lexsup.c (parse_args): Update copyright date.
5164 2001-01-12  Philip Blundell  <pb@futuretv.com>
5166         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
5168 2001-01-10  Kazu Hirata  <kazu@hxi.com>
5170         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
5171         * scripttempl/h8300h.sc: Fix formatting.
5172         * scripttempl/h8300s.sc: Likewise.
5173         * scripttempl/h8500.sc: Likewise.
5174         * scripttempl/h8500b.sc: Likewise.
5175         * scripttempl/h8500c.sc: Likewise.
5176         * scripttempl/h8500m.sc: Likewise.
5177         * scripttempl/h8500s.sc: Likewise.
5179 2000-01-07  David O'Brien  <obrien@BSDi.com>
5181         * emultempl/elf32.em: Only perform Linux ld hints processing when
5182         targeting Linux.
5184 2001-01-07  Philip Blundell  <philb@gnu.org>
5186         * ld.texinfo (Bug Reporting): Update email address for reports.
5188 2000-12-31  Nick Clifton  <nickc@redhat.com>
5190         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
5191         options by checking for a return value of '?' not -1.
5193 2000-12-28  Nick Clifton  <nickc@redhat.com>
5195         * lexsup.c (struct ld_option): Add new enum value:
5196         EXACTLY_TWO_DASHES.
5197         (ld_options[]): Change -omagic, -output and -oformat options
5198         to be EXACTLY_TWO_DASHES.
5199         (OUTPUT_COUNT): Use ARRAY_SIZE.
5200         (parse_args): Change parameter 'argc' to unsigned.
5201         Place EXACTLY_TWO_DASHES options into new really_longopts
5202         array.
5203         If getopt_long_only fails, try calling getopt_long using the
5204         really_longopts array.
5205         (help): Print a double dash for both EXACTLY_TWO_DASHES and
5206         TWO_DASHES options.
5208         * ldlex.h: Fix prototype of parse_args.
5210         * ld.texinfo: Document that long options starting with 'o'
5211         must be preceeded by two dashes.  Change example of a single
5212         dashed long option from -oformat to -trace-symbol.
5214 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5216         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5217         (longopts[]): New --no-default-excludes option.
5218         (gld_${EMULATION_NAME}_list_options): Document.
5219         (gld_${EMULATION_NAME}_parse_args): Handle.
5221 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5223         * ldlang.c (new_stat): Revert the last beautification with "innocent"
5224         whitespace, it breaks the K&R C preprocessor.
5226 2000-12-11  DJ Delorie  <dj@redhat.com>
5228         * ld.texinfo: Add notes about --whole-archive and gcc.
5230 2000-11-18  Fred Fish  <fnf@be.com>
5232         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5233         (ld_options): Entry for --allow-shlib-undefined.
5234         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5235         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5236         to false.
5237         * ld.texinfo: Document new command line switch.
5239 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
5241         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5242         .fixup is actually read/write.
5243         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5244         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5245         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5247 2000-12-11  Jan Hubicka  <jh@suse.cz>
5249         * NEWS: Add note about x86_64 architecture.
5251 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
5253         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5254         Set DWARF2 sections to a VMA of zero.
5256 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
5258         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5259         New targets.
5260         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5261         (sparc*-*-rtems*): Switched from a.out to ELF.
5263 2000-11-30  Jan Hubicka  <jh@suse.cz>
5265         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5266         (eelf_x86_64.c): New.
5267         * Makefile.in: Regenerate.
5268         * configure.tgt: Add support for x86_64-*-linux-gnu*.
5269         * emulparams/elf_x86_64.sh: New.
5271 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
5273         * emulparams/crislinux.sh (ENTRY): Change back to _start.
5274         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5276         * scripttempl/crisaout.sc: Change all RELOCATING not related to
5277         merging non-a.out sections into CONSTRUCTING.
5279 2000-11-28  Nick Clifton  <nickc@redhat.com>
5281         * ld.1 (COPYING): Mention that the GNU Free Documentation
5282         License is present in the sources, but not the output, and
5283         also available from the GNU website.
5284         (GNU Free Documentation License): Comment out this section.
5286 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
5288         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5289         does not use them.
5291 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
5293         * ld.1: Remove old date so it does not give the impression the manpage
5294         is way out of date.
5296 2000-11-24  Nick Clifton  <nickc@redhat.com>
5298         * configure.tgt (xscale-coff): Add target.
5299         (xscale-elf): Add target.
5301 2000-11-24  Fred Fish  <fnf@be.com>
5303         * ldmain.c (main): Remove redundant init of config.make_executable
5304         to true.
5306 2000-11-15  Richard Henderson  <rth@redhat.com>
5308         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5310 2000-11-14  Kazu Hirata  <kazu@hxi.com>
5312         * scripttempl/h8300.sc: Fix formatting.
5313         * scripttempl/h8300h.sc: Likewise.
5314         * scripttempl/h8300s.sc: Likewise.
5316 2000-11-14  Denis Chertykov  <denisc@overta.ru>
5318         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5320 2000-11-09  Philip Blundell  <pb@futuretv.com>
5322         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5323         around orphan sections whose names can be represented in C.
5325 2000-11-07  Jim Wilson  <wilson@redhat.com>
5327         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5328         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
5330 2000-11-06  Nick Clifton  <nickc@redhat.com>
5332         * ld.texinfo: Add GNU Free Documentation License.
5333         * ldint.texinfo: Add GNU Free Documentation License.
5334         * ld.1: Add GNU Free Documentation License.
5336 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
5338         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5339         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5341         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5342         Move 2000-11-02 Makefile.in changes to this file.
5343         * Makefile.in: Regenerate.
5345 2000-11-03  Nick Clifton  <nickc@redhat.com>
5347         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5348         constructors and destructors.
5349         * scripttempl/h8300h.sc: Ditto.
5350         * scripttempl/h8300s.sc: Ditto.
5351         * scripttempl/h8500.sc: Ditto.
5352         * scripttempl/h8500b.sc: Ditto.
5353         * scripttempl/h8500c.sc: Ditto.
5354         * scripttempl/h8500m.sc: Ditto.
5355         * scripttempl/h8500s.sc: Ditto.
5356         * scripttempl/v850.sc: Ditto.
5357         * scripttempl/w65.sc: Ditto.
5358         * scripttempl/z8000.sc: Ditto.
5360 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
5362         * Makefile.in (e_i386_chaos.c): New rule.
5363         (ALL_EMULATIONS): Added e_i386_chaos.o.
5364         * emulparams/elf_i386_chaos.sh: New file.
5365         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5367 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
5369         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5370         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5371         Fix sed invocation, so that it coped with '/' in Solaris 64bit
5372         library path suffix.
5373         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5375 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
5377         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5378         for consecutive sections.
5380 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
5382         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5383         options.
5384         * ld.texinfo: Added notes about this new option.
5386 2000-10-16  Nick Clifton  <nickc@redhat.com>
5388         * emultempl/pe.em (_after_open): Add tests of return values from
5389         bfd functions.  Emit appropriate error messages if necessary.
5391 2000-10-13  Nick Clifton  <nickc@redhat.com>
5393         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5394         local variables - they are not used, but leave in the call to
5395         bfd_canonicalize_symtab.
5396         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5397         pe_dll_search_prefix.
5399 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
5401         * emultempl/pe.em (pe_dll_search_prefix): New variable,
5402         (longopts): New --dll-search-prefix option.
5403         (gld_${EMULATION_NAME}_list_options): Document.
5404         (gld_${EMULATION_NAME}_parse_args): Handle.
5405         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5406         dynamically, search for a dll named '<prefix><basename>.dll'
5407         in preference to 'lib<basename>.dll' if --dll-search-prefix
5408         is specified.
5410 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
5412         * ldlang.c (section_already_linked): Set kept_section instead of
5413         sec->comdat->sec.
5415 2000-10-10  Kazu Hirata  <kazu@hxi.com>
5417         * deffile.h: Fix formatting.
5418         * lexsup.c: Likewise.
5419         * mri.c: Likewise.
5421 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5423         * pe-dll.c (make_one): Do not generate code thunk for DATA
5424         exports.
5425         (process_def_file): deduce DATA flag for auto-export sumbols.
5427 2000-10-09  Kazu Hirata  <kazu@hxi.com>
5429         * ld.h: Fix formatting.
5430         * ldcref.c: Likewise.
5431         * ldctor.h: Likewise.
5432         * ldemul.c: Likewise.
5433         * ldemul.h: Likewise.
5434         * ldexp.c: Likewise.
5435         * ldexp.h: Likewise.
5436         * ldfile.c: Likewise.
5437         * ldfile.h: Likewise.
5438         * ldlang.c: Likewise.
5439         * ldlang.h: Likewise.
5440         * ldmain.c: Likewise.
5441         * pe-dll.c: Likewise.
5443         * pe-dll.c: Revert some formatting fixes.
5445 2000-10-08  Kazu Hirata  <kazu@hxi.com>
5447         * pe-dll.c: Fix formatting.
5449 2000-10-05  Kazu Hirata  <kazu@hxi.com>
5451         * ldlang.c: Fix formatting.
5453 2000-10-03  DJ Delorie  <dj@redhat.com>
5455         * pe-dll.c (fill_edata): initialize entire block
5456         (make_one): fill in correct section.
5458 2000-10-03  Kazu Hirata  <kazu@hxi.com>
5460         * ldexp.c: Fix formatting.
5462 2000-10-02  DJ Delorie  <dj@redhat.com>
5464         * emultempl/pe.em (gld_*_after_open): detect case where there two
5465         import libraries for same dll; rename one to ensure proper link
5466         order.
5468         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5469         typo
5470         (generate_edata): fix typo
5472 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
5474         * scripttempl/crisaout.sc (ENTRY): Now __start.
5475         (.text): Add default setting for __start.
5476         Remove CONSTRUCTORS handling.
5477         (/DISCARD/): Add .gnu.warning.*.
5478         * emulparams/crislinux.sh (ENTRY): Now __start.
5479         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5480         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5481         (ENTRY): Now __start.
5482         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5483         (EXECUTABLE_SYMBOLS): Add default setting for __start.
5485 2000-09-29  Kazu Hirata  <kazu@hxi.com>
5487         * deffile.h: Fix formatting.
5488         * ld.h: Likewise.
5489         * ldcref.c: Likewise.
5490         * ldctor.c: Likewise.
5491         * ldctor.h: Likewise.
5492         * ldemul.c: Likewise.
5493         * ldemul.h: Likewise.
5494         * ldexp.c: Likewise.
5495         * ldexp.h: Likewise.
5496         * ldfile.c: Likewise.
5497         * ldfile.h: Likewise.
5498         * ldlang.c: Likewise.
5499         * ldlang.h: Likewise.
5500         * lexsup.c: Likewise.
5501         * mri.c: Likewise.
5502         * pe-dll.c: Likewise.
5504 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
5506         * pe-dll.c (process_def_file): Uninitialized data wasn't
5507         exported with --export-all-symbols switch.
5509 2000-09-28  DJ Delorie  <dj@redhat.com>
5511         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5512         noname work properly.
5514 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
5516         * ld.texinfo (HPPA ELF32): New section.
5518         * emultempl/hppaelf.em (group_size): New.
5519         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5520         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5521         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
5522         options to prevent abbreviations matching.
5523         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
5524         (PARSE_AND_LIST_ARGS_CASES): Handle it.
5526 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5528         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5529         on the m68*-*-elf target.  Make it support COFF input objects.
5531 2000-09-21  Kazu Hirata  <kazu@hxi.com>
5533         * ldmain.c: Fix formatting.
5534         * ldmisc.c: Likewise.
5535         * ldver.c: Likewise.
5536         * ldwrite.c: Likewise.
5538 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
5540         * ldwrite.c (clone_section): Silence gcc warnings.
5542 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
5544         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5545         out of memory failure.
5547         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5548         (clone_section): Handle out of memory failures.  Rename var to
5549         avoid c++ reserved word.
5551 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
5553         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5554         stub_name param to stub_sec_name.
5555         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5557 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5559         * emultempl/m68kelf.em: New file.
5560         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5561         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5562         * Makefile.in: Regenerate.
5564 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
5566         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5567         only as needed.
5569 2000-09-13  Nick Clifton  <nickc@redhat.com>
5571         * ldmain.c (multiple_definition): Disable relaxation if
5572         multiple symbol definitions are encountered - otherwise the
5573         linker could abort with an assertion failure.
5575 2000-09-10  Nick Clifton  <nickc@redhat.com>
5577         * mri.c: Fix formatting.
5579 2000-09-07  H.J. Lu  <hjl@gnu.org>
5581         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5582         * configure: Rebuild.
5584 2000-09-07  H.J. Lu  <hjl@gnu.org>
5586         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5587         * Makefile.in: Rebuild.
5589 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
5591         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5592         broken list handling.  Create __start_SECNAME and __stop_SECNAME
5593         when no place-holder.  Add some comments.  Test both SEC_CODE and
5594         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5595         Handle case where no output section statement created.
5597 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
5599         * configure.tgt (sh-*-linux*): Added.
5600         * Makefile.am: Added eshelf_linux and eshlelf_linux.
5601         * Makefile.in: Rebuilt.
5602         * emulparams/shelf_linux.sh: New file.
5603         * emulparams/shlelf_linux.sh: New file.
5605 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
5607         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5608         try shuffling sections when the orphan happens to be the place
5609         holder.  Keep count of unique section names generated so we speed
5610         the search for a new name.
5612 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
5614         * configure: Rebuilt with new libtool.m4.
5616 2000-09-05  Nick Clifton  <nickc@redhat.com>
5618         * Makefile.in: Regenerate.
5619         * aclocal.m4: Regenerate.
5620         * configure: Regenerate.
5621         * config.in: Regenerate.
5622         * po/ld.pot: Regenerate.
5624         * ldint.texinfo: Remove CVS revision marker - it foils local
5625         comparisons.
5627         * emultempl/ticoff.em: Remove extraneous comma.
5629 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
5631         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5632         to stub section flags.
5633         (hppa_for_each_input_file_wrapper): New.
5634         (hppa_lang_for_each_input_file): New.
5635         (lang_for_each_input_file): Define to call above.
5636         (multi_subspace): New.
5637         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5638         (PARSE_AND_LIST_PROLOGUE): Define.
5639         (PARSE_AND_LIST_LONGOPTS): Define.
5640         (PARSE_AND_LIST_OPTIONS): Define.
5641         (PARSE_AND_LIST_ARGS_CASES): Define.
5642         (hppaelf_finish): Call elf32_hppa_set_gp.
5643         (hppaelf_set_output_arch): Remove.
5644         (LDEMUL_SET_OUTPUT_ARCH): Remove.
5646         * emulparams/hppalinux.sh (ELFSIZE): Define.
5647         (MACHINE): Define.
5648         (OTHER_READONLY_SECTIONS): Define.
5649         (DATA_PLT): Define.
5650         (GENERATE_SHLIB_SCRIPT): Define.
5652         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
5653         to const throughout.  Change `void *' to `PTR' throughout.
5654         (lang_memory_default): Function is local to file, add `static'.
5656         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5657         (ehppalinux.c): Likewise.
5658         (earmelf.c): Likewise.
5659         (earmelf_linux.c): Likewise.
5660         (earmelf_linux26.c): Likewise.
5661         * Makefile.in: Regenerate.
5663         * ld.h (ld_config_type): Add unique_orphan_sections.
5664         * lexsup.c (OPTION_UNIQUE): Define.
5665         (ld_options): Add "--unique".
5666         (parse_args): Handle it.
5667         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5668         search for an existing output section if unique_orphan_sections is
5669         set.  Make use of bfd_get_unique_section_name rather than
5670         duplicating code here.
5671         * ld.texinfo: Describe --unique.
5673         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5674         optional arg to split-by-file.
5675         (parse_args): Handle them.
5676         * ld.texinfo: Update description of these options.
5677         * ldwrite.c (clone_section): Pass in the section name.  Replace
5678         local code with bfd_get_unique_section_name.
5679         (split_sections): Tidy code and comments.  Use a list traversal
5680         more appropriate to the list construction.  Handle cooked section
5681         sizes.  Split when split_by_reloc reached rather than exceeded.
5682         Track section size and split when split_by_file reached.  Fix
5683         link_order_tail (even though it's not used).
5684         (ldwrite): Modify condition for calling split_sections to suit
5685         changed split_by_reloc and split_by_file.
5686         * ldmain.c (main): Init config.split_by_reloc and
5687         config.split_by_file to -1.
5688         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5689         Change split_by_file to bfd_size_type.
5691 2000-09-02  Nick Clifton  <nickc@redhat.com>
5693         * configure.in: Increase version number to 2.10.91.
5694         * NEWS: Mention new ability to support removal of duplicate DWARF2
5695         debug information.
5696         * configure: Regenerate.
5697         * aclocal.m4: Regenerate.
5698         * config.in: Regenerate.
5700 2000-09-02  Daniel Berlin <dberlin@redhat.com>
5702         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5703         sections.
5704         * scripttempl/elf32avr.sc: Ditto.
5705         * scripttempl/elfd10v.sc: Ditto.
5706         * scripttempl/elfd30v.sc: Ditto.
5707         * scripttempl/elfi370.sc: Ditto.
5708         * scripttempl/elfm68hc11.sc: Ditto.
5709         * scripttempl/elfm68hc12.sc: Ditto.
5710         * scripttempl/elfi386beos.sc: Ditto.
5711         * scripttempl/v850.sc: Ditto.
5713 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
5715         * acinclude.m4: Include libtool and gettext macros from the
5716         top level.
5717         * aclocal.m4, configure: Rebuilt.
5719 2000-08-25  Nick Clifton  <nickc@redhat.com>
5721         * ldlang.c (open_output): When choosing the target for a
5722         particular endianness, do nothing if the target is not
5723         supported.
5725 2000-08-25  H.J. Lu  <hjl@gnu.org>
5727         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5728         check -rpath nor LD_RUN_PATH for cross link.
5729         * ld.texinfo: Document the change.
5731 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
5733         * NEWS: Mention support for CRIS.
5735 2000-08-23  H.J. Lu  <hjl@gnu.org>
5737         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5738         the current runpath list from bfd_elf_get_runpath_list ()
5739         before search.
5741 2000-08-22  H.J. Lu  <hjl@gnu.org>
5743         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5744         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5745         LD_LIBRARY_PATH for native linker. Display the needed DSO if
5746         trace_file_tries is non-zero.
5747         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5748         if trace_file_tries is non-zero.
5750         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5751         * NEWS: Mention it.
5753 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
5755         * NEWS: Mention i860 support.
5757 2000-08-14  Andreas Schwab  <schwab@suse.de>
5759         * scripttempl/elf.sc: Fix last change to use correct comment
5760         syntax.
5762 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
5764         * scripttempl/elf.sc: Add a comment giving the correspondence
5765         between sections, per-datum sections, and linkonce sections.  Make
5766         the comment true even for .bss, .sdata, .sdata2, .sbss, and
5767         .sbss2.
5769 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
5771         * emulparams/elf32_i860.sh: New file.
5772         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5773         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5774         (eelf32_i860.c): New rule.
5775         * Makefile.in: Regenerate.
5777 2000-08-10  Nick Clifton  <nickc@cygnus.com>
5779         * emulparams/mipspe.sh (ENTRY): Add definition.
5781 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
5783         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5784         in error message.
5786 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5788         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5789         the final size of .bss section.
5790         * scripttempl/elfm68hc12.sc: Likewise.
5792 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
5794         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5795         gld${EMULATION_NAME}_parse_args for consistency.  Combine
5796         lastoptind and prevoptind vars, and keep track of last optind.
5797         (gld_${EMULATION_NAME}_list_options): Rename to
5798         gld${EMULATION_NAME}_list_options.
5800 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
5802         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5803         (i586-sco-sysv5uw7.1.0).
5805 2000-07-27  H.J. Lu  <hjl@gnu.org>
5807         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5808         (PARSE_AND_LIST_PROLOGUE): New.
5809         (PARSE_AND_LIST_LONGOPTS): Likewise.
5810         (PARSE_AND_LIST_OPTIONS): Likewise.
5811         (PARSE_AND_LIST_ARGS_CASES): Likewise.
5812         (PARSE_AND_LIST_EPILOGUE): Likewise.
5814 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
5816         * emultempl/armelf.em: Elide functions common to elf32.em,
5817         ie. most of the file.
5818         (arm_elf_after_open): New.  Do arm specific things then call
5819         gld${EMULATION_NAME}_after_open.
5820         (arm_elf_before_allocation): New.  Call
5821         gld${EMULATION_NAME}_before_allocation then do arm specifics.
5822         (PARSE_AND_LIST_PROLOGUE): Define.
5823         (PARSE_AND_LIST_SHORTOPTS): Define.
5824         (PARSE_AND_LIST_LONGOPTS): Define.
5825         (PARSE_AND_LIST_OPTIONS): Define.
5826         (PARSE_AND_LIST_ARGS_CASES): Define.
5827         (LDEMUL_AFTER_OPEN): Define.
5828         (LDEMUL_BEFORE_ALLOCATION): Define.
5829         (LDEMUL_BEFORE_PARSE): Define.
5830         (LDEMUL_FINISH): Define.
5832         * emultempl/hppaelf.em: Similarly zap most of this file.
5833         (hppaelf_add_stub_section): Prototype.
5834         (hppaelf_layaout_sections_again): Prototype.
5835         (hook_in_stub): Prototype.
5836         (LDEMUL_SET_OUTPUT_ARCH): Define.
5837         (LDEMUL_FINISH): Define.
5838         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5840         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5841         (EXTRA_EM_FILE): New.
5842         * emulparams/armelf_linux.sh: Likewise.
5843         * emulparams/armelf_linux26.sh: Likewise.
5844         * emulparams/hppalinux.sh: Likewise.
5845         * emulparams/hppaelf.sh: Likewise.
5846         (NOP): Define.
5848         * emultempl/elf32.em: Fix formatting.
5849         (EXTRA_EM_FILE): Source it.
5850         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5851         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5852         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5853         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5854         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5855         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5856         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5857         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5858         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
5859         allow functions in this file to be overridden.
5860         (PARSE_AND_LIST_SHORTOPTS): Handle it.
5862         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5864         * emultempl/elf32.em: Reorganize file.
5866 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
5868         * emulparams/elf64alpha.sh: Implement "-taso" emulation
5869         specific option to fit 64-bit executable in the lower
5870         31-bit address range.  This is done by changing start
5871         address of .interp (the very first section of executable)
5872         and then setting EF_ALPHA_32BIT elf header flag.
5874 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5876         * emultempl/m68kcoff.em: New file.
5877         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5878         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5879         generic.em.
5880         * Makefile.in: Regenerate.
5882 2000-07-20  H.J. Lu  <hjl@gnu.org>
5884         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5885         and "disable-new-dtags" to stop getopt from treating -d/-e as
5886         abbreviations for these options.
5888 2000-07-20  H.J. Lu  <hjl@gnu.org>
5890         * ld.texinfo: Add documentation for --disable-new-dtags and
5891         --enable-new-dtags.
5893         * ldmain.c (main): Initialize link_info.new_dtags to false.
5895         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5896         --disable-new-dtags and --enable-new-dtags.
5897         (gld_${EMULATION_NAME}_list_options): Likewise.
5899 2000-07-05  Kenneth Block  <krblock@computer.org>
5901         * lexsup.c: Add optional style to demangle switch
5902         * ld.texinfo: Document optional style to demangle switch.
5904 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
5906         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5907         ecrislinux.o.
5908         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5909         Regenerate dependencies.
5910         * Makefile.in: Rebuild.
5911         * configure.tgt (cris-*-*): New target.
5912         * emulparams/crisaout.sh, emulparams/criself.sh,
5913         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5914         * po/POTFILES.in, po/ld.pot: Regenerate.
5916 2000-07-20  H.J. Lu  <hjl@gnu.org>
5918         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5919         Print out ignored -z options.
5921 2000-07-19  H.J. Lu  <hjl@gnu.org>
5923         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5924         (PARSE_AND_LIST_PROLOGUE): New.
5925         (PARSE_AND_LIST_LONGOPTS): Likewise.
5926         (PARSE_AND_LIST_OPTIONS): Likewise.
5927         (PARSE_AND_LIST_ARGS_CASES): Likewise.
5929         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5931         * lexsup.c (ld_options): Comment out 'z'.
5932         (parse_args): Likewise.
5934         * emultempl/elf32.em: Include "elf/common.h".
5935         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5936         options.
5937         (gld_${EMULATION_NAME}_list_options): Likewise.
5939         * ld.texinfo: Add documentation for the recognized -z options.
5941 2000-07-19  H.J. Lu  <hjl@gnu.org>
5943         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5944         bfd_elf_set_dt_needed_soname ().
5946 2000-07-18  DJ Delorie  <dj@cygnus.com>
5948         * pe-dll.c (pe_dll_id_target): check object target name also
5950 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
5952         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5953         ${INIT_END} if relocating.
5954         (.fini): Likewise ${FINI_START} and ${FINI_END}.
5956 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
5958         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5959         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5960         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5961         errors introduced by the old dynamic lib search order.
5963 2000-07-17  DJ Delorie  <dj@cygnus.com>
5965         * pe-dll.c (process_def_file): auto-export data items also
5966         (pe_process_import_defs): also see if _imp_ form needed
5968 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
5970         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5971         for dll import libraries
5973 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
5975         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5976         gcc 2.95.2 and later.
5978 2000-07-11  Kazu Hirata  <kazu@hxi.com>
5980         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5981         message.
5983 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
5985         * ldemul.h (struct lang_input_statement_struct): Remove forward
5986         declaration.
5987         (struct search_dirs): Likewise.
5988         * ldfile.h (struct lang_input_statement_struct): Likewise.
5989         Protect file from multiple inclusion.
5990         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5991         declaration from macro to file scope.
5993         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5994         * ldgram.y: Likewise here.
5995         * ldlang.c: And here.
5996         * ldmain.c: And here.
5997         * mpw-elfmips.c: And here.
5998         * mpw-eppcmac.c: And here.
5999         * emultempl/aix.em: And here.
6000         * emultempl/armcoff.em: And here.
6001         * emultempl/armelf.em: And here.
6002         * emultempl/armelf_oabi.em: And here.
6003         * emultempl/beos.em: And here.
6004         * emultempl/elf32.em: And here.
6005         * emultempl/hppaelf.em: And here.
6006         * emultempl/linux.em: And here.
6007         * emultempl/lnk960.em: And here.
6008         * emultempl/pe.em: And here.
6009         * emultempl/sunos.em: And here.
6010         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
6011         * mpw-idtmips.c: Ditto.
6012         * emultempl/generic.em: Ditto.
6013         * emultempl/gld960.em: Ditto.
6014         * emultempl/gld960c.em: Ditto.
6015         * emultempl/mipsecoff.em: Ditto.
6016         * emultempl/ticoff.em: Ditto.
6017         * emultempl/vanilla.em: Ditto.
6019         * pe-dll.c: Include ldfile.h
6020         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
6022         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
6023         arguments to bfd_elf32_size_dynamic_sections call.
6024         (gldelf32ebmip_place_orphan): Add missing arguments to
6025         lang_leave_output_section_statement call.
6027 2000-07-10  H.J. Lu  <hjl@gnu.org>
6029         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
6030         DLL_SUPPORT.
6031         (strhash): Likewise.
6032         (compute_dll_image_base): Likewise.
6033         (pe_undef_found_sym): Likewise.
6034         (pe_undef_cdecl_match): Likewise.
6035         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
6036         argument "arch" with ATTRIBUTE_UNUSED.
6038 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
6040         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
6042         From  Ryan Bradetich  <rbradetich@uswest.net>
6043         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
6045 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
6047         Changes to create multiple linker stubs, positioned immediately
6048         before the section where they are required.
6049         * emultempl/hppaelf.em: Include elf32-hppa.h.
6050         (stub_sec, file_chain): Delete.
6051         (hppaelf_create_output_section_statements): Don't make a stub
6052         section here.
6053         (hook_stub_info): New struct.
6054         (hook_in_stub): New function.
6055         (hppaelf_add_stub_section): New function.
6056         (hppaelf_finish): Do nothing for relocateable links.  Modify the
6057         call to elf32_hppa_size_stubs.  Move code for updating section
6058         layout from here...
6059         (hppaelf_layaout_sections_again): ..to here, a new function.
6061         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
6062         broken list handling.  Pass in a pointer to the list.
6063         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
6064         for above changes.
6065         (hppaelf_before_parse): Prototype.
6066         (hppaelf_set_output_arch): Prototype.
6067         (hppaelf_create_output_section_statements): Prototype.
6068         (hppaelf_delete_padding_statements): Prototype.
6069         (hppaelf_finish): Prototype.
6071         Merge from elf32.em
6072         * emultempl/hppaelf.em: Include ctype.h.
6073         (struct orphan_save): New.
6074         (gld${EMULATION_NAME}_place_orphan): New.
6075         (output_rel_find): New.
6076         (hppaelf_get_script): Update from elf32.em.
6077         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
6078         Change emulation_name field to "${EMULATION_NAME}".  Add
6079         gld${EMULATION_NAME}_place_orphan.
6081         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
6082         ehppalinux.o, sort it.  Regenerate dependencies.
6083         (ehppalinux.c): Depend on hppaelf.em
6084         * Makefile.in: Regenerate.
6086         * configure.tgt: targ_emul=hppalinux for hppa*linux
6088         * emulparams/hppalinux.sh: New.
6089         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
6091 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
6093         * lexsup.c (parse_args): Copy section name.
6095 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
6097         * emultempl/pe.em: institute the following search order for
6098         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
6099         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
6100         static lib (libfoo.a) if none of the above are found.
6102 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
6104         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
6105         (longopts): New --{enable,disable}-auto-image-base options.
6106         (gld_${EMULATION_NAME}_list_options): Document.
6107         (gld_${EMULATION_NAME}_parse): Handle.
6108         (strhash): New static function.
6109         (compute_dll_image_base): New static function.
6110         (gld_${EMULATION_NAME}_set_symbols): Use.
6112 2000-07-05  DJ Delorie  <dj@redhat.com>
6114         * MAINTAINERS: new
6116 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
6118         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
6119         * emulparams/elf32btsmip.sh: New file.
6120         * Makefile.am: Add traditional mips target.
6121         * Makefile.in: Rebuild.
6123 2000-07-01  H.J. Lu  <hjl@gnu.org>
6125         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
6126         automake to use YLWRAP.
6127         * Makefile.in: Rebuild.
6129 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
6131         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
6132         (CLEANFILES): Add DEPA.
6133         * Makefile.in: Regenerate.
6135 2000-06-30  Timothy Wall  <twall@ppc>
6137         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
6138         the page in the upper octet of the address.
6140 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
6142         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
6144 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
6146         * NEWS: arm-elf does --gc-sections too.
6148 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
6150         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6151         find one.
6152         * Makefile.in: Regenerate.
6154 2000-06-21  H.J. Lu  <hjl@gnu.org>
6156         * Makefile.am: Rebuild dependency.
6157         * Makefile.in: Rebuild.
6159 2000-06-20  H.J. Lu  <hjl@gnu.org>
6161         * Makefile.am: Rebuild dependency.
6162         * Makefile.in: Rebuild.
6164 2000-06-20  Timothy Wall  <twall@cygnus.com>
6166         * scripttempl/tic54xcoff.sc: New.
6167         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
6168         * gen-doc.texi: Add flag for TI COFF.
6169         * ld.texinfo: Add documentation for TI COFF handling switches.
6170         * emultempl/ticoff.em: New. TI COFF handling.
6171         * configure.tgt: Add tic54x target.
6172         * Makefile.am: Add tic54x target.
6173         * Makefile.in: Ditto.
6175 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
6177         * ldmain.c (set_scripts_dir): Correct pointer comparison when
6178         checking for backslashes.
6180 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
6182         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
6184 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
6186         * NEWS: Update list of targets supporting --gc-sections.
6188         * scripttempl/elf.sc: KEEP .eh_frame contents.
6189         * scripttempl/elfd30v.sc: Same here.
6191 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
6193         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
6194         and m68hc11 (elf).
6195         * Makefile.in: Rebuild.
6196         * configure.tgt: Recognize m68hc12 and m68hc11.
6197         * scripttempl/elfm68hc12.sc: New file.
6198         * emulparams/m68hc12elfb: New emulation.
6199         * emulparams/m68hc12elf: New emulation.
6200         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
6201         (includes a memory.x script to define the ROM and RAM banks).
6202         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
6203         New configuration files for support of Motorola 68hc11
6205 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
6207         * ldmain.c (main): Only change SEC_READONLY for final link.
6209 2000-06-13  H.J. Lu  <hjl@gnu.org>
6211         * configure: Regenerate.
6213 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
6215         * configure.in (VERSION): Update to show this is the CVS mainline.
6217 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
6219         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6220         input objects to be ECOFF.
6221         (check_sections): einfo takes %B, not %P, to print a BFD name.
6223 2000-06-05  Michael Matz <matz@ifh.de>
6225         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6226         version scripts.
6228         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6230 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
6232         * emulparams/avr1200.sh (STACK): Define as 0.
6233         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6234         * emulparams/avr4433.sh (STACK): Likewise.
6235         * emulparams/avr44x4.sh (STACK): Likewise.
6236         * emulparams/avr85xx.sh (STACK): Likewise.
6237         * emulparams/avrmega103.sh (STACK): Likewise.
6238         * emulparams/avrmega161.sh (STACK): Likewise.
6239         * emulparams/avrmega603.sh (STACK): Likewise.
6240         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6241         (__stack): Define from ${STACK} for main().
6243 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
6245         * Makefile.am: Update dependencies with "make dep-am"
6246         * Makefile.in: Regenerate.
6248 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
6250         * ldmain.c: Include filenames.h.
6251         (set_scripts_dir): Support backslashes in program name.
6253 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
6255         * ldmain.c (main): When deciding if ".text" section should be
6256         read-only, don't forget to reset SEC_READONLY because it
6257         could be already set.
6259 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
6261         * ld.1: Add documentation for new command line option:
6262         --section-start <sectionname>=<sectionorg>
6263         This is a generic version of -Ttext etc. which accepts
6264         any section name as a parameter instead of just text/data/
6265         bss.
6266         * ld.texinfo: More docs.
6267         * NEWS: More docs.
6268         * lexsup.c: (parse_args): Recognize new command line option.
6269         (ld_options): Add new option.
6271 2000-05-18  H.J. Lu  <hjl@gnu.org>
6273         * lexsup.c (parse_args): `i' == `r', not `q'.
6275 2000-05-18  Jeffrey A Law  (law@cygnus.com)
6277         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6279 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
6280               Rick Gorton          <gorton@scrugs.lkg.dec.com>
6282         Add support for '-q' == '--emit-relocs' switch.
6283         * ldmain.c (main): Default to false.
6284         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6285         * NEWS: Describe the emitrelocations switch.
6286         * ld.texinfo: Describe the emitrelocations switch.
6288 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
6290         * emultempl/pe.em (_open_dynamic_archive): New function: Search
6291         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6292         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6293         link options.
6295 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
6297         * lexsup.c (parse_args): Update the year in the copyright notice.
6299 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
6301         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6302         Replace defines with those from intl/libgettext.h to quieten gcc
6303         warnings.
6305 2000-05-10  H.J. Lu  <hjl@gnu.org>
6307         * ldlang.c (open_input_bfds): Don't load the same file within
6308         a group again if the whole archive has been loaded already.
6310 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
6312         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6313         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6314         strtoul.
6316 2000-05-01  Jim Wilson  <wilson@cygnus.com>
6318         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6320         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6321         host "ia64-*-linux-gnu*".
6323 2000-04-29  Andreas Jaeger  <aj@suse.de>
6325         * ld.h: Correctly check GCC version.
6327 2000-04-25  Jeffrey A Law  (law@cygnus.com)
6329         * Makefile.am: Add PA64 support.  Add missing dependencies for
6330         PA32 elf support.
6331         * Makefile.in: Rebuilt.
6332         * configure.tgt: Add PA64 support (currently disabled).
6334 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
6336         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6337         (output_rel_find): New function.
6338         (hold_section, hold_use): Delete.
6339         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6340         hold_interp): Make local to place_orphan.
6341         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6342         rather than place_section to find possible previous use of orphan.
6343         Similarly find the place-holder output sections.  Use returned
6344         value from lang_enter_output_section_statement rather than calling
6345         lang_output_section_statement_lookup.
6346         * emultempl/armelf.em: Same here.
6347         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6349         * ldlang.c (lang_enter_output_section_statement): Return output
6350         section statement.
6351         * ldlang.h (lang_enter_output_section_statement): Change
6352         declaration too.
6354         * ldlang.h (lang_output_section_statement): Export it.
6355         * ldlang.c (lang_output_section_statement): Ditto.
6357 2000-04-24  Nick Clifton  <nickc@cygnus.com>
6359         * ld.texinfo (Output Section Data): Add note that section data
6360         commands cannot appear outside of section directives.
6362 2000-04-2  Matthew Green  <mrg@cygnus.com>
6364         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6366 2000-04-21  Richard Henderson  <rth@cygnus.com>
6367             David Mosberger  <davidm@hpl.hp.com>
6369         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6370         (eelf64_ia64.c): New rule.
6371         * Makefile.in: Rebuild.
6372         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6373         * emulparams/elf64_ia64.sh: New file.
6375 2000-04-21  Richard Henderson  <rth@cygnus.com>
6377         * scripttempl/elfd30v.sc: Place .gcc_except_table.
6379 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
6381         * dep-in.sed: Match space at start of file name, not at end.
6383 2000-04-18  H.J. Lu  <hjl@gnu.org>
6385         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6386         lang_leave_output_section_statement () after calling
6387         lang_enter_output_section_statement ().
6388         * emultempl/armelf.em: Likewise.
6390 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
6392         * emultempl/elf32.em (struct orphan_save): Add section field.
6393         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6394         better order, and place first orphan section as we did before the
6395         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
6396         Don't call make_bfd_section here, let wild_doit do the job for us.
6397         Don't build a statement list when we'll only throw it away.
6398         * emultempl/armelf.em: Ditto.
6399         * emultempl/pe.em: Similarly.
6401 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
6403         * scripttempl/elfppc.sc: Remove.
6404         * emulparams/elf32ppc.sh: Use elf.sc.
6405         * emulparams/elf32lppc.sh: Use elf.sc.
6406         * emulparams/elf32ppclinux.sh: Use elf.sc.
6407         * emulparams/elf32ppcsim.sh: New file.
6408         * emulparams/elf32lppcsim.sh: New file.
6409         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
6410         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6411         * Makefile.in: Regenerate.
6412         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6414 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
6416         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6417         ~SEC_ALLOC sections too.  Init start address of debug sections.
6418         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6419         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6420         Also set all relocateable section start addresses.
6422 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
6424         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6425         Add new BSS_PLT variable for when .plt need not be contained in
6426         the file.  Move _etext so that it is also after .fini, and provide
6427         both etext and _etext with a leading underscore.  Mark the start
6428         and end of .sbss.
6430 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
6432         * emultempl/elf32.em (struct orphan_save): New.
6433         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6434         hold_interp): Make them struct orphan_save.
6435         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6436         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6437         the end of the relevant section list.  Also add associated section
6438         statements to the end of any previous orphan statements.
6439         * emultempl/armelf.em: Similarly.
6440         * emultempl/pe.em: Similarly.
6442 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
6444         * ld.texinfo (Simple Example): Remove extraneous paragraph.
6446 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
6448         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
6449         --enable-build-warnings option.
6450         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6451         * Makefile.in, configure: Re-generate.
6453 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
6455         * po/ld.pot: Regenerate.
6457         * lexsup.c (help): Restore translated part of bug string.
6459         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6460         (DEP): Quote when passing vars to sub-make.  Add warning message
6461         to end.
6462         (DEP1): Rewrite for "gcc -MM".
6463         (CLEANFILES): Add DEP2.
6464         Update dependencies.
6465         * Makefile.in: Regenerate.
6467 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
6469         * ld.h: #include "bin-bugs.h"
6470         * lexsup.c (help): Use REPORT_BUGS_TO.
6472 2000-03-27  Denis Chertykov  <denisc@overta.ru>
6474         * configure.tgt (avr-*-*): New target support.
6475         * Makefile.am: Likewise.
6476         * scripttempl/elf32avr.sc: New script file.
6477         * emulparams/avr1200.sh: New file.
6478         * emulparams/avr23xx.sh: New file.
6479         * emulparams/avr4433.sh New file.
6480         * emulparams/avr44x4.sh New file.
6481         * emulparams/avr85xx.sh New file.
6482         * emulparams/avrmega103.sh New file.
6483         * emulparams/avrmega161.sh New file.
6484         * emulparams/avrmega603.sh New file.
6485         * Makefile.in: Regenerate.
6487 2000-03-09  Andreas Jaeger  <aj@suse.de>
6489         * Makefile.am (check-DEJAGNU): Also unset LANG.
6490         * Makefile.in: Rebuild.
6492 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
6494         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6495         archive.
6497 2000-03-02  H.J. Lu  <hjl@gnu.org>
6499         * emulparams/elf32mcore.sh: Include "getopt.h".
6501 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
6503         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6505 2000-03-01  H.J. Lu  <hjl@gnu.org>
6507         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6508         * emulparams/shpe.sh: Likewise.
6510 2000-03-01  Nick Clifton  <nickc@cygnus.com>
6512         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6513         to unused parameters.
6515         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6516         functions only used by DLL code.
6517         (_place_orphan): Initialise 'dollar'.
6519 2000-03-01  H.J. Lu  <hjl@gnu.org>
6521         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6522         indicate if the undefined symbol is a fatal error or not.
6523         Don't delete the output file if "fatal" is false.
6525 2000-02-29  H.J. Lu  <hjl@gnu.org>
6527         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6528         Set LC_COLLATE and LC_ALL to null and export them. It is for
6529         sort which expects the C locale.
6530         Add $(LIBS) to all $(HOSTING_LIBS).
6531         * Makefile.in: Rebuild.
6533 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
6535         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6536         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6537         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6538         (ld_emulation_xfer_struct): Add missing NULL initialiser for
6539         find_potential_libraries.
6541 2000-02-28  Jim Blandy  <jimb@redhat.com>
6543         * ldgram.y (exclude_name_list): Don't require a comma to separate
6544         list entries; the lexer considers commas to be valid part of a
6545         filename, so in something like `foo, bar' the comma is considered
6546         part of the first filename, `foo,'.
6547         * ld.texinfo: Update section on EXCLUDE_FILE lists.
6549 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
6551         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6552         host "i[3456]86-*-freebsdelf*".
6554 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
6556         * scripttempl/i386go32.sc: Move misplaced semicolons.
6558 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
6560         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6561         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6562         (eelf64hppa.c, ehppaelf.c): Remove targets.
6563         * Makefile.in: Rebuild.
6565 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6567         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6568         GNU/Linux/sparc, but keep the default as 32.
6570         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
6571         it default if sparcv9 or sparc64.
6573 2000-02-24  Nick Clifton  <nickc@cygnus.com>
6575         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6576         * Makefile.in: Regenerate.
6577         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6579         * ldemul.h (ld_emulation_xfer_struct): Add new field:
6580         find_potential_libraries.
6581         * ldemul.c (ldemul_find_potential_libraries): New function.
6583         * ldfile.c (ldfile_open_file_search): Allow function to be
6584         exported.
6585         (ldfile_open_file): Call ldemul_find_potential_libraries.
6586         * ldfile.h: Add prototype for ldfile_open_file_search.
6588         * pe-dll.c: Add support for ARM, MIPS and SH targets.
6590         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
6591         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
6593         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6594         (gld_X_find_potential_libraries): New function.  Search for
6595         libraries called "*.lib".
6597         * scripttempl/pe.sc: Add .pdata section.
6599 2000-02-23  Richard Henderson  <rth@cygnus.com>
6601         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6602         Add and use memory regions.
6604 2000-02-23  Linas Vepstas (linas@linas.org)
6606         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6608         * Makefile.am: Add support for Linux/IBM 370.
6609         * configure.tgt: Likewise.
6611         * Makefile.in: Regenerate.
6613 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
6615         * ldlang.c (print_input_section, print_data_statement,
6616         print_reloc_statement, print_padding_statement, insert_pad,
6617         size_input_section, lang_check_section_addresses,
6618         lang_size_sections, lang_do_assignments, lang_set_startof,
6619         lang_one_common): Change `opb' to unsigned.
6620         (lang_do_assignments): Also change `size' to unsigned.
6622 2000-02-16  Richard Henderson  <rth@cygnus.com>
6624         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6626 2000-02-16  Timothy Wall  <twall@cygnus.com>
6628         * mri.c (mri_draw_tree): Add default LMA region argument to call
6629         to lang_leave_output_section_statement.
6630         * ldlang.h: Update prototypes with LMA region arguments.
6631         * ldlang.c (lang_size_sections): Encapsulate region bounds
6632         checking in os_check_region call.
6633         (os_check_region): New function.
6634         (lang_output_section_statement_lookup): Initialize lma_region.
6635         (lang_leave_output_section_statement): Add LMA region argument.
6636         (lang_leave_overlay): Ditto.
6637         * ldgram.y: Handle LMA region syntax.
6638         * ld.texinfo (Output Section Description): Describe LMA region usage.
6639         * emultempl/armelf.em (gld$place_orphan): Add default value for
6640         lma region in call to lang_leave_output_section_statement.
6641         * emultempl/elf32.em (gld$place_orphan): Add default value for
6642         lma region in call to lang_leave_output_section_statement.
6643         * emultempl/pe.em (gld$place_orphan): Add default value for
6644         lma region in call to lang_leave_output_section_statement.
6647 2000-02-04  Timothy Wall  <twall@redhat.com>
6649         * ldlang.c (lang_check_section_addresses): Use bytes instead of
6650         octets when calculating section end addresses.
6652 2000-02-04  Timothy Wall  <twall@redhat.com>
6654         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6656 2000-02-03  Timothy Wall <twall@redhat.com>
6658         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6659         octet count.
6660         * ldlang.c (print_input_section, print_data_statement,
6661         print_reloc_statement, print_padding_statement): Print target
6662         address values and section sizes as bytes, not octets.
6663         (insert_pad) Calculate padding size in octets, and adjust "dot"
6664         by bytes.
6665         (size_input_section) Always adjust "dot" by bytes, not octets.
6666         (lang_check_section_addresses, lang_do_assignments) Adjust
6667         "dot" by bytes, not octets.  Use the larger of the directive size
6668         or octets_per_byte for the number of octets actually allocated in
6669         the output section.
6670         (lang_set_startof) Make sure STARTOF returns a target address.
6671         (lang_one_common) Record size changes in octets.
6672         (lang_abs_symbol_at_end_of) Section end symbol's value is
6673         recorded in target bytes.
6674         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6675         to be clear about behavior when an octet is smaller than one byte.
6677 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
6679         * ldcref.c (output_cref): Don't pass message strings to printf
6680         as format arg.
6681         Update copyright.
6683         * ldmisc.c (vfinfo): Same here.
6684         Update copyright.
6686 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
6688         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6689         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6690         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6691         Add missing NULL initialisers, and comments.
6693 2000-01-21  Nick Clifton  <nickc@cygnus.com>
6695         * ldlang.c (lang_size_sections): Fix typo in comment.
6697 2000-01-18  H.J. Lu  <hjl@gnu.org>
6699         * ldlang.c (lang_size_sections): Also update the current
6700         address of a region if the SEC_NEVER_LOAD bit is not set.
6702 2000-01-10  Philip Blundell  <pb@futuretv.com>
6704         * configure.tgt (arm*-*-conix*): New target.
6706 2000-01-07  Nick Clifton  <nickc@cygnus.com>
6708         * ld.texinfo (Options): Remind users to preceed linker command
6709         line switches with -Wl, (or whatever is appropriate) if it is
6710         being invoked by a comnpiler driver program.
6711         Fix description of the behaviour of the -n command line switch.
6713 2000-01-05  Catherine Moore  <clm@cygnus.com>
6715         * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6716         (name_list): New.
6717         * ld.texinfo (EXCLUDE_FILE): Update documentation.
6718         * ldgram.y (wildcard_spec): Support a list of excluded_files.
6719         (exclude_name_list): New.
6720         ldlang.c (walk_wild_section): Support list of excluded files.
6721         (print_wild_statement): Likewise.
6722         (lang_add_wild): Likewise.
6723         * ldlang.h (lang_wild_statement_type): Likewise.
6724         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6726 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
6728         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6729         (process_def_file): Use.
6730         (pe_dll_compat_implib): New variable.
6731         (make_one): Use.
6733         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6734         pe_dll_compat_implib.
6736         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6737         compat-implib options.
6738         (gld_${EMULATION_NAME}_list_options): List new options.
6739         (gld_${EMULATION_NAME}_parse_args): Handle.
6741         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6742         dll.
6744         * deffilep.y (opt_name): Allow "." in name.
6746 For older changes see ChangeLog-9899
6748 Local Variables:
6749 mode: change-log
6750 left-margin: 8
6751 fill-column: 74
6752 version-control: never
6753 End: