2001-07-11 Jakub Jelinek <jakub@redhat.com>
[binutils.git] / ld / ChangeLog
blob0e64d1b167602d6d5483013a2f159425acfd5da8
1 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
3         * ldmain.c (main): Disallow -F and -f without -shared.
5 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
7         * emultempl/pe.em (after_open): Check for the output_bfd not
8         having any coff_data structure allocated to it.
10 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
12         * emultempl/elf32.em: Do not assuming that contents of the buffer
13         returned from basename function will remain unchanged accross other
14         function calls.
16 2001-07-03  H.J. Lu  <hjl@gnu.org>
18         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
19         2001-07-03. It creates dynamic entries even for static binaries.
21 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
23         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
24         (DYNAMIC): Use it to reserve few dynamic entries for
25         post-linking tools.
27 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
29         * emulparams/hppa64linux.sh: New file.
30         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
31         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
32         (ehppa64linux.c): Add rule to make it.
33         Run "make dep-am".
34         * Makefile.in: Regenerate.
36 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
38         * ld.texinfo (Options, -r): Mention restrictions when using
39         different object formats.
41 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
43         * ldlang.c (lang_check): Emit fatal error if relocatable link
44         between different object flavours with relocations in input.
46 2001-06-19  H.J. Lu  <hjl@gnu.org>
48         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
49         (--version-script): Mention the language support.
51 2001-06-19  H.J. Lu <hjl@gnu.org>
53         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
55 2001-06-18  H.J. Lu <hjl@gnu.org>
57         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
58         (diststuff): Add $(MANS).
59         * Makefile.in: Regenerated.
61         * ld.1: Removed.
63 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
65         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
66         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
67         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
68         * ld.h (args_type): Remove member export_dynamic.  All users
69         changed to use struct bfd_link_info member.
71         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
72         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
73         * Makefile.in: Regenerate.
75 2001-06-18  H.J. Lu  <hjl@gnu.org>
77         * ldlang.c (init_os): Add the newline to the einfo call.
78         (lang_check): Likewise.
79         (lang_do_version_exports_section): Likewise.
81 2001-06-15  H.J. Lu  <hjl@gnu.org>
83         * lexsup.c (parse_args); Save optind to report unrecognized
84         option.
86 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
88         * ldlang.c (lang_check): Emit fatal error if relocatable link
89         between different object flavours.
91         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
92         Set new link_info member export_dynamic.
93         * ldmain.c (main): Initialize new link_info member export_dynamic.
95 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
97         * ldlang.c (walk_wild): Only call walk_wild_file if
98         lookup_name returns something.
99         (lookup_name): If load_symbols fails, return NULL.
100         (load_symbols): Chnage to a boolean function.
101         (open_input_bfds): If load_symbols fails then do not make the
102         executable.
104 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
106         * ldlang.c (record_bfd_errors): Remove.
108         * emultempl/aix.em: Fix copyright dates.
110 2001-06-07  Andreas Jaeger  <aj@suse.de>
112         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
113         (TEXT_START_ADDR): Likewise.
115 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
117         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
119 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
121         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
123 2001-05-31  H.J. Lu  <hjl@gnu.org>
125         * ldlang.c (open_input_bfds): Don't change the bfd error
126         handler whilst loading symbols.
128 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
130         * configure.tgt: Remove i370-mvs architecture, it is not currently
131         supported.
133 2001-05-25  H.J. Lu  <hjl@gnu.org>
135         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
136         like emulparams/aixppc.sh.
138 2001-05-25  H.J. Lu  <hjl@gnu.org>
140         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
141         setting of output_filename after bfd_scan_arch.
142         * emultempl/pe.em: Likewise.
144 2001-05-25  H.J. Lu  <hjl@gnu.org>
146         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
147         like emulparams/aixppc.sh.
149         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
150         instead of ${srcdir}/emultempl/stringify.sed.
152 2001-05-25  Timothy Wall  <twall@oculustech.com>
154         * emulparams/elf64_aix.sh: Change settings to match IBM linker
155         output.
157 2001-05-25  Alan Modra  <amodra@one.net.au>
159         * configure.host: Replace linuxoldld with linux*oldld.
160         * configure.tgt: Likewise.
162 2001-05-24  H.J. Lu  <hjl@gnu.org>
164         * emultempl/stringify.sed: Removed again.
166 2001-05-24  H.J. Lu  <hjl@gnu.org>
168         * emultempl/aix.em (OUTPUT_ARCH): Defined.
169         (gld${EMULATION_NAME}_before_parse): Initialize
170         ldfile_output_architecture, ldfile_output_machine and
171         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
172         * emultempl/beos.em: Likewise.
173         * emultempl/elf32.em: Likewise.
174         * emultempl/linux.em: Likewise.
175         * emultempl/mipsecoff.em: Likewise.
176         * emultempl/pe.em: Likewise.
177         * emultempl/sunos.em: Likewise.
179 2001-05-24 Tom Rix <trix@redhat.com>
181         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
182         udate import file format.
183         (change_symbol_mode) New, same
184         (is_syscall) New, same
185         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
186         * emulparams/aixppc64.sh : same
187         * emulparams/aixrs6.sh : same
188         * emulparams/ppcmacos.sh : same
189         * emultempl/aix.em : use strtoull to parse options
190         * Makefile.am : add eaixppc64 emulation for xcoff64
191         * Makefile.in : same
192         * configure.tgt : same
194         * scripttempl/aix.sc : default text section offset to 0x10000000
195          default data section offset to 0x20000000
196         add .sv3264 and .sv64 pseudo sections
197         loader and debug sections use the currect section offset.
199         * emultempl/aix.em : Add xcoff64 support
200         Add -binitfini support
201         (gld${EMULATION_NAME}_before_parse) -binitfini
202         (gld${EMULATION_NAME}_parse_args) same
203         (gld${EMULATION_NAME}_before_allocation) format change for special
204         sections
206         * emulparams/aixppc64.sh : New file for xcoff64 support
208 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
210         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
211         variable to avoid non-portable shell construct.
213 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
215         * ldmain.c (get_emulation): Add -mips5 command line argument.
217 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
219         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
220         (ELF_INTERPRETER_NAME): Define it.
221         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
222         it.
223         * configure.tgt (targ_emul, targ_extra_emuls)
224         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
225         as primary, elf_i386 as extra.
226         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
227         (eelf_i386_ldso.c): New rule.
228         * Makefile.in: Rebuilt.
230 2001-05-22  Nick Clifton  <nickc@redhat.com>
232         * lexsup.c (ld_options):  Allow -I to be an alias for
233         --dynamic-linker.  This is for Solaris compatability.
234         * ld.texinfo: Document that -I can be used.
235         * ld.1: Regenerate.
237 2001-05-16  Alan Modra  <amodra@one.net.au>
239         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
240         whether an input section is the first one assigned to an output
241         section.
242         Assorted formatting fixes.
244 2001-05-14  DJ Delorie  <dj@delorie.com>
246         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
247         * Makefile.in: Ditto.
249 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
251         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
252         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
253         output sections.
254         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
256 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
258         * ldlang.c (lang_process): Call bfd_merge_sections.
260 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262         * ldgram.y: Fix typo.
264 2001-05-03  H.J. Lu  <hjl@gnu.org>
266         * emultempl/elf32.em: Include "libiberty.h".
267         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
268         basename of the bfd filename.
269         (gld${EMULATION_NAME}_stat_needed): Likewise.
270         (gld${EMULATION_NAME}_try_needed): Likewise.
271         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
273 2001-05-02  H.J. Lu  <hjl@gnu.org>
275         * emultempl/pe.em: Include <ctype.h>.
277 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
279         * emulparams/elf32openrisc.sh: New file.
281         * Makefile.am: Add OpenRISC target.
282         * Makefile.in: Regenerated.
284         * configure.tgt: Add openrisc-*-* mapping.
286 2001-05-02  Nick Clifton  <nickc@redhat.com>
288         * emultempl/aix.em: Replace buystring with xstrdup.
289         * emultempl/beos.em: Replace buystring with xstrdup.
291 2001-05-02  H.J. Lu  <hjl@gnu.org>
293         * ldfile.c: Include "libiberty.h".
294         * ldlex.l: Likewise.
296         * ldmisc.c (buystring): Removed.
297         * ldmisc.h: Likewise.
299         * ldfile.c: Replace buystring with xstrdup.
300         * ldlang.c: Likewise.
301         * ldlex.l: Likewise.
302         * ldmain.c: Likewise.
303         * ldmisc.c: Likewise.
304         * lexsup.c: Likewise.
305         * mpw-eppcmac.c: Likewise.
307 2001-04-30  Andreas Jaeger  <aj@suse.de>
309         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
311 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
313         * ldlang.c (load_symbols): Give emulation a chance
314         to process unrecognized file before fatal error is
315         reported, not after.
317 2001-04-27  Sean McNeil <sean@mcneil.com>
319         * configure.tgt: Add arm-vxworks target.
320         * scripttempl/armcoff.sc: Support .text or .data as a section name
321         prefix.
322         Define _etext.
324 2001-04-13  J.T. Conklin  <jtc@redback.com>
326         * ld.texinfo: Document --fatal-warnings.
327         * ld.1: Regenerate.
329         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
330         warnings have been turned into errors.
331         * lexsup.c (OPTION_WARN_FATAL): Define.
332         (ld_options): Entry for --fatal-warnings.
333         (parse_args): Handle OPTION_WARN_FATAL.
334         * ld.h (ld_config_type): Add fatal_warnings field.
336 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
338         * ldmain.c (main): Default to discard_sec_merge.
339         * lexsup.c (OPTION_DISCARD_NONE): Define.
340         (ld_options): Add --discard-none.
341         (parse_args): Handle OPTION_DISCARD_NONE.
342         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
343         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
344         all its input sections match.
346 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
348         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
349         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
350         (eelf32ltsmip.c): New target.
351         (eelf64btsmip.c): Likewise.
352         (eelf64ltsmip.c): Likewise.
353         * Makefile.in: Regenerated.
355         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
356         target.
357         (mips*-*-linux-gnu*): Likewise.
359         * emulparams/elf32ltsmip.sh: New. Traditional little endian
360         MIPS taget.
361         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
362         target.
363         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
364         endian target.
366 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
368         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
369         correct value of __Stext here.
370         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
371         .startup section.
373         * emulparams/crislinux.sh: Remove FIXME.
375 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
377         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
378         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
380 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
382         * configure.tgt (cris-*-*): Change default emulation to criself.
383         (cris-*-*aout*): New rule.
385 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
387         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
388         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
390 2001-03-26  Andreas Jaeger  <aj@suse.de>
392         * ld.texinfo (Overview): Fix syntax in texi code.
394 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
396         * ld.texinfo: Put @c man indications to generate the ld man page.
397         When generating man, define all the variables.  Define SEEALSO
398         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
399         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
400         (ld.1): Generate from ld.texinfo.
401         * Makefile.in: Regenerate.
403 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
405         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
406           and '-fdata-sections'. Set the VMA of STABS sections to zero.
408 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
410         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
411         is an absolute path look only for this file and not along the path.
413 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
415         * emultempl/elf32.em (OPTION_GROUP): New macro.
416         Add new option Bgroup to longopts.
417         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
418         (gld*_list_options): Add -Bgroup and -z defs.
419         * ld.1: Document -Bgroup and -z defs.
420         * ld.texinfo: Likewise.
422 2001-03-07  Michael Meissner  <meissner@redhat.com>
424         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
425         with sections created by -fdata-sections.
426         (.dynbss,.bss): Ditto.
428 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
430         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
431         after_allocation_default, not gld..._before_allocation.
433 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
435         * configure.in (BFD_VERSION): New.
436         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
437         * configure: Regenerate.
438         * Makefile.am: Run "make dep-am"
439         * Makefile.in: Regenerate.
441 2001-02-26  Timothy Wall  <twall@cygnus.com>
443         * emulparams/elf64_aix.sh: Add additional read-only sections;
444         uncomment lines which are now required.
446 2001-02-26  H.J. Lu  <hjl@gnu.org>
448         * ldlang.c (open_input_bfds): Set the bfd error handler so
449         that problems can be caught whilst loading symbols.
450         (record_bfd_errors): New function: Report BFD errors and mark
451         the executable output as being invalid.
453 2001-02-22  Timothy Wall  <twall@cygnus.com>
455         * configure.host: Add configuration for ia64-*-aix*.
456         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
457         Add dependencies for eelf64_aix.c.
458         * Makefile.in: Regenerate.
459         * configure.tgt: Add ia64-*-aix* mapping.
460         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
461         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
462         AIX-specific test.
464 2001-02-20  H.J. Lu  <hjl@gnu.org>
466         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
467         false if we found the file.
469 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
471         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
472         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
474 2001-02-18  lars brinkhoff  <lars@nocrew.org>
476         * Makefile.am: Add PDP-11 target.
477         * configure.tgt: Likewise.
478         * emulparams/pdp11.sh: New file.
480 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
482         * configure.host: Add a generic FreeBSD configuration entry such that
483         all [modern] FreeBSD systems on all platforms will look the same.
485 2001-02-14  H.J. Lu  <hjl@gnu.org>
487         * configure.tgt: Remove mention of earmelf_linux26.
489 2001-02-13  Richard Henderson  <rth@redhat.com>
491         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
493 2001-02-13  H.J. Lu  <hjl@gnu.org>
495         * ldexp.h (node_type): Add etree_provided.
496         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
497         type to etree_provided if defined by PROVIDE. Allow updating
498         for etree_provided.
499         (exp_print_tree): Handle etree_provided.
500         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
501         etree_provided.
503 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
505         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
506         .IA_64.unwind.* pattern to unwind table section and
507         .IA_64.unwind_info* pattern to unwind info section.
509 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
511         * Makefile.am: Add linux target for S/390.
512         * Makefile.in: Likewise.
513         * configure.host: Likewise.
514         * configure.tgt: Likewise.
515         * emulparams/elf64_s390.sh: New file.
516         * emulparams/elf_s390.sh: New file.
518 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
520         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
521         targ_extra_libpath.
522         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
524 2001-02-06  Philip Blundell  <philb@gnu.org>
526         * Makefile.am: Remove mention of earmelf_linux26.
527         * Makefile.in: Regenerate.
529 2001-02-04  Philip Blundell  <philb@gnu.org>
531         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
532         * emulparams/armelf_linux26.sh: Delete.
533         * configure.tgt: Remove mention of armelf_linux26 emulation.
535 2001-02-01  Nick Clifton  <nickc@redhat.com>
537         * ld.1: Replace occurances of -oformat with --oformat.
539 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
541         * ldlang.c (lang_leave_overlay): Don't set lma_region when
542         load_base is specified.
544 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
546         * emultempl/elf32.em: Correct spelling in comments and listed
547         options.
549 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
551         * ldlang.c (lang_leave_overlay): Only set lma_region from the
552         default for the first section of a group of overlay sections.
554 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
556         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
557         * Makefile.in: Regenerate.
558         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
559         Check for null tool_dir.
561 2001-01-16  Jim Wilson  <wilson@redhat.com>
563         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
564         and IA_64.unwind.info.
566 2001-01-16  H.J. Lu  <hjl@gnu.org>
568         * ldlang.c (lang_check): Merge the private data only if the
569         input file has contents.
571 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
573         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
575         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
576         enabling search for libmilli.  On a relocatable link, make .text
577         sections unique.
578         (LDEMUL_AFTER_PARSE): Define.
579         (hppaelf_finish): Correct spelling of relocatable in comments.
581         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
582         rummage through the script for sections on the unique list.
583         Correct length of strncmp for ".note".
584         (gld${EMULATION_NAME}_check_needed): Rearrange function.
586         * ldlang.c (unique_section_list): New var.
587         (unique_section_p): New function.
588         (walk_wild_section): Don't match sections on unique_section_list.
589         (lang_add_unique): New function.
590         Correct spelling of relocatable in comments.
592         * ldlang.h (struct unique_sections): Declare.
593         (unique_section_list): Declare.
594         (unique_section_p): Declare.
595         (lang_add_unique): Declare.
597         * lexsup.c (ld_options): Allow --unique to take an optional arg.
598         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
600         * ld.texinfo (--unique): Update.
602 2001-01-13  Nick Clifton  <nickc@redhat.com>
604         * lexsup.c (parse_args): Remove spurious white space.
606 2001-01-12  Nick Clifton  <nickc@redhat.com>
608         * lexsup.c (parse_args): Update copyright date.
610 2001-01-12  Philip Blundell  <pb@futuretv.com>
612         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
614 2001-01-10  Kazu Hirata  <kazu@hxi.com>
616         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
617         * scripttempl/h8300h.sc: Fix formatting.
618         * scripttempl/h8300s.sc: Likewise.
619         * scripttempl/h8500.sc: Likewise.
620         * scripttempl/h8500b.sc: Likewise.
621         * scripttempl/h8500c.sc: Likewise.
622         * scripttempl/h8500m.sc: Likewise.
623         * scripttempl/h8500s.sc: Likewise.
625 2000-01-07  David O'Brien  <obrien@BSDi.com>
627         * emultempl/elf32.em: Only perform Linux ld hints processing when
628         targeting Linux.
630 2001-01-07  Philip Blundell  <philb@gnu.org>
632         * ld.texinfo (Bug Reporting): Update email address for reports.
634 2000-12-31  Nick Clifton  <nickc@redhat.com>
636         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
637         options by checking for a return value of '?' not -1.
639 2000-12-28  Nick Clifton  <nickc@redhat.com>
641         * lexsup.c (struct ld_option): Add new enum value:
642         EXACTLY_TWO_DASHES.
643         (ld_options[]): Change -omagic, -output and -oformat options
644         to be EXACTLY_TWO_DASHES.
645         (OUTPUT_COUNT): Use ARRAY_SIZE.
646         (parse_args): Change parameter 'argc' to unsigned.
647         Place EXACTLY_TWO_DASHES options into new really_longopts
648         array.
649         If getopt_long_only fails, try calling getopt_long using the
650         really_longopts array.
651         (help): Print a double dash for both EXACTLY_TWO_DASHES and
652         TWO_DASHES options.
654         * ldlex.h: Fix prototype of parse_args.
656         * ld.texinfo: Document that long options starting with 'o'
657         must be preceeded by two dashes.  Change example of a single
658         dashed long option from -oformat to -trace-symbol.
660 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
662         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
663         (longopts[]): New --no-default-excludes option.
664         (gld_${EMULATION_NAME}_list_options): Document.
665         (gld_${EMULATION_NAME}_parse_args): Handle.
667 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
669         * ldlang.c (new_stat): Revert the last beautification with "innocent"
670         whitespace, it breaks the K&R C preprocessor.
672 2000-12-11  DJ Delorie  <dj@redhat.com>
674         * ld.texinfo: Add notes about --whole-archive and gcc.
676 2000-11-18  Fred Fish  <fnf@be.com>
678         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
679         (ld_options): Entry for --allow-shlib-undefined.
680         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
681         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
682         to false.
683         * ld.texinfo: Document new command line switch.
685 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
687         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
688         .fixup is actually read/write.
689         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
690         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
691         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
693 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
695         * NEWS: Add note about x86_64 architecture.
697 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
699         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
700         Set DWARF2 sections to a VMA of zero.
702 2000-12-01      Joel Sherrill <joel@OARcorp.com>
704         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
705         New targets.
706         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
707         (sparc*-*-rtems*): Switched from a.out to ELF.
709 2000-11-30  Jan Hubicka  <jh@suse.cz>
711         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
712         (eelf_x86_64.c): New.
713         * Makefile.in: Regenerate.
714         * configure.tgt: Add support for x86_64-*-linux-gnu*.
715         * emulparams/elf_x86_64.sh: New.
717 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
719         * emulparams/crislinux.sh (ENTRY): Change back to _start.
720         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
722         * scripttempl/crisaout.sc: Change all RELOCATING not related to
723         merging non-a.out sections into CONSTRUCTING.
725 2000-11-28  Nick Clifton  <nickc@redhat.com>
727         * ld.1 (COPYING): Mention that the GNU Free Documentation
728         License is present in the sources, but not the output, and
729         also available from the GNU website.
730         (GNU Free Documentation License): Comment out this section.
732 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
734         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
735         does not use them.
737 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
739         * ld.1: Remove old date so it does not give the impression the manpage
740         is way out of date.
742 2000-11-24  Nick Clifton  <nickc@redhat.com>
744         * configure.tgt (xscale-coff): Add target.
745         (xscale-elf): Add target.
747 2000-11-24  Fred Fish  <fnf@be.com>
749         * ldmain.c (main): Remove redundant init of config.make_executable
750         to true.
752 2000-11-15  Richard Henderson  <rth@redhat.com>
754         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
756 2000-11-14  Kazu Hirata  <kazu@hxi.com>
758         * scripttempl/h8300.sc: Fix formatting.
759         * scripttempl/h8300h.sc: Likewise.
760         * scripttempl/h8300s.sc: Likewise.
762 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
764         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
766 2000-11-09  Philip Blundell  <pb@futuretv.com>
768         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
769         around orphan sections whose names can be represented in C.
771 2000-11-07  Jim Wilson  <wilson@redhat.com>
773         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
774         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
776 2000-11-06  Nick Clifton  <nickc@redhat.com>
778         * ld.texinfo: Add GNU Free Documentation License.
779         * ldint.texinfo: Add GNU Free Documentation License.
780         * ld.1: Add GNU Free Documentation License.
782 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
784         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
785         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
787         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
788         Move 2000-11-02 Makefile.in changes to this file.
789         * Makefile.in: Regenerate.
791 2000-11-03  Nick Clifton  <nickc@redhat.com>
793         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
794         constructors and destructors.
795         * scripttempl/h8300h.sc: Ditto.
796         * scripttempl/h8300s.sc: Ditto.
797         * scripttempl/h8500.sc: Ditto.
798         * scripttempl/h8500b.sc: Ditto.
799         * scripttempl/h8500c.sc: Ditto.
800         * scripttempl/h8500m.sc: Ditto.
801         * scripttempl/h8500s.sc: Ditto.
802         * scripttempl/v850.sc: Ditto.
803         * scripttempl/w65.sc: Ditto.
804         * scripttempl/z8000.sc: Ditto.
806 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
808         * Makefile.in (e_i386_chaos.c): New rule.
809         (ALL_EMULATIONS): Added e_i386_chaos.o.
810         * emulparams/elf_i386_chaos.sh: New file.
811         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
813 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
815         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
816         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
817         Fix sed invocation, so that it coped with '/' in Solaris 64bit
818         library path suffix.
819         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
821 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
823         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
824         for consecutive sections.
826 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
828         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
829         options.
830         * ld.texinfo: Added notes about this new option.
832 2000-10-16  Nick Clifton  <nickc@redhat.com>
834         * emultempl/pe.em (_after_open): Add tests of return values from
835         bfd functions.  Emit appropriate error messages if necessary.
837 2000-10-13  Nick Clifton  <nickc@redhat.com>
839         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
840         local variables - they are not used, but leave in the call to
841         bfd_canonicalize_symtab.
842         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
843         pe_dll_search_prefix.
845 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
847         * emultempl/pe.em (pe_dll_search_prefix): New variable,
848         (longopts): New --dll-search-prefix option.
849         (gld_${EMULATION_NAME}_list_options): Document.
850         (gld_${EMULATION_NAME}_parse_args): Handle.
851         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
852         dynamically, search for a dll named '<prefix><basename>.dll'
853         in preference to 'lib<basename>.dll' if --dll-search-prefix
854         is specified.
856 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
858         * ldlang.c (section_already_linked): Set kept_section instead of
859         sec->comdat->sec.
861 2000-10-10  Kazu Hirata  <kazu@hxi.com>
863         * deffile.h: Fix formatting.
864         * lexsup.c: Likewise.
865         * mri.c: Likewise.
867 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
869         * pe-dll.c (make_one): Do not generate code thunk for DATA
870         exports.
871         (process_def_file): deduce DATA flag for auto-export sumbols.
873 2000-10-09  Kazu Hirata  <kazu@hxi.com>
875         * ld.h: Fix formatting.
876         * ldcref.c: Likewise.
877         * ldctor.h: Likewise.
878         * ldemul.c: Likewise.
879         * ldemul.h: Likewise.
880         * ldexp.c: Likewise.
881         * ldexp.h: Likewise.
882         * ldfile.c: Likewise.
883         * ldfile.h: Likewise.
884         * ldlang.c: Likewise.
885         * ldlang.h: Likewise.
886         * ldmain.c: Likewise.
887         * pe-dll.c: Likewise.
889         * pe-dll.c: Revert some formatting fixes.
891 2000-10-08  Kazu Hirata  <kazu@hxi.com>
893         * pe-dll.c: Fix formatting.
895 2000-10-05  Kazu Hirata  <kazu@hxi.com>
897         * ldlang.c: Fix formatting.
899 2000-10-03  DJ Delorie  <dj@redhat.com>
901         * pe-dll.c (fill_edata): initialize entire block
902         (make_one): fill in correct section.
904 2000-10-03  Kazu Hirata  <kazu@hxi.com>
906         * ldexp.c: Fix formatting.
908 2000-10-02  DJ Delorie  <dj@redhat.com>
910         * emultempl/pe.em (gld_*_after_open): detect case where there two
911         import libraries for same dll; rename one to ensure proper link
912         order.
914         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
915         typo
916         (generate_edata): fix typo
918 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
920         * scripttempl/crisaout.sc (ENTRY): Now __start.
921         (.text): Add default setting for __start.
922         Remove CONSTRUCTORS handling.
923         (/DISCARD/): Add .gnu.warning.*.
924         * emulparams/crislinux.sh (ENTRY): Now __start.
925         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
926         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
927         (ENTRY): Now __start.
928         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
929         (EXECUTABLE_SYMBOLS): Add default setting for __start.
931 2000-09-29  Kazu Hirata  <kazu@hxi.com>
933         * deffile.h: Fix formatting.
934         * ld.h: Likewise.
935         * ldcref.c: Likewise.
936         * ldctor.c: Likewise.
937         * ldctor.h: Likewise.
938         * ldemul.c: Likewise.
939         * ldemul.h: Likewise.
940         * ldexp.c: Likewise.
941         * ldexp.h: Likewise.
942         * ldfile.c: Likewise.
943         * ldfile.h: Likewise.
944         * ldlang.c: Likewise.
945         * ldlang.h: Likewise.
946         * lexsup.c: Likewise.
947         * mri.c: Likewise.
948         * pe-dll.c: Likewise.
950 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
952         * pe-dll.c (process_def_file): Uninitialized data wasn't
953         exported with --export-all-symbols switch.
955 2000-09-28  DJ Delorie  <dj@redhat.com>
957         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
958         noname work properly.
960 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
962         * ld.texinfo (HPPA ELF32): New section.
964         * emultempl/hppaelf.em (group_size): New.
965         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
966         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
967         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
968         options to prevent abbreviations matching.
969         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
970         (PARSE_AND_LIST_ARGS_CASES): Handle it.
972 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
974         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
975         on the m68*-*-elf target.  Make it support COFF input objects.
977 2000-09-21  Kazu Hirata  <kazu@hxi.com>
979         * ldmain.c: Fix formatting.
980         * ldmisc.c: Likewise.
981         * ldver.c: Likewise.
982         * ldwrite.c: Likewise.
984 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
986         * ldwrite.c (clone_section): Silence gcc warnings.
988 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
990         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
991         out of memory failure.
993         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
994         (clone_section): Handle out of memory failures.  Rename var to
995         avoid c++ reserved word.
997 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
999         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1000         stub_name param to stub_sec_name.
1001         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1003 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1005         * emultempl/m68kelf.em: New file.
1006         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1007         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1008         * Makefile.in: Regenerate.
1010 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
1012         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1013         only as needed.
1015 2000-09-13  Nick Clifton  <nickc@redhat.com>
1017         * ldmain.c (multiple_definition): Disable relaxation if
1018         multiple symbol definitions are encountered - otherwise the
1019         linker could abort with an assertion failure.
1021 2000-09-10  Nick Clifton  <nickc@redhat.com>
1023         * mri.c: Fix formatting.
1025 2000-09-07  H.J. Lu  <hjl@gnu.org>
1027         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1028         * configure: Rebuild.
1030 2000-09-07  H.J. Lu  <hjl@gnu.org>
1032         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1033         * Makefile.in: Rebuild.
1035 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
1037         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1038         broken list handling.  Create __start_SECNAME and __stop_SECNAME
1039         when no place-holder.  Add some comments.  Test both SEC_CODE and
1040         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1041         Handle case where no output section statement created.
1043 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
1045         * configure.tgt (sh-*-linux*): Added.
1046         * Makefile.am: Added eshelf_linux and eshlelf_linux.
1047         * Makefile.in: Rebuilt.
1048         * emulparams/shelf_linux.sh: New file.
1049         * emulparams/shlelf_linux.sh: New file.
1051 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
1053         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1054         try shuffling sections when the orphan happens to be the place
1055         holder.  Keep count of unique section names generated so we speed
1056         the search for a new name.
1058 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
1060         * configure: Rebuilt with new libtool.m4.
1062 2000-09-05  Nick Clifton  <nickc@redhat.com>
1064         * Makefile.in: Regenerate.
1065         * aclocal.m4: Regenerate.
1066         * configure: Regenerate.
1067         * config.in: Regenerate.
1068         * po/ld.pot: Regenerate.
1070         * ldint.texinfo: Remove CVS revision marker - it foils local
1071         comparisons.
1073         * emultempl/ticoff.em: Remove extraneous comma.
1075 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
1077         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1078         to stub section flags.
1079         (hppa_for_each_input_file_wrapper): New.
1080         (hppa_lang_for_each_input_file): New.
1081         (lang_for_each_input_file): Define to call above.
1082         (multi_subspace): New.
1083         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1084         (PARSE_AND_LIST_PROLOGUE): Define.
1085         (PARSE_AND_LIST_LONGOPTS): Define.
1086         (PARSE_AND_LIST_OPTIONS): Define.
1087         (PARSE_AND_LIST_ARGS_CASES): Define.
1088         (hppaelf_finish): Call elf32_hppa_set_gp.
1089         (hppaelf_set_output_arch): Remove.
1090         (LDEMUL_SET_OUTPUT_ARCH): Remove.
1092         * emulparams/hppalinux.sh (ELFSIZE): Define.
1093         (MACHINE): Define.
1094         (OTHER_READONLY_SECTIONS): Define.
1095         (DATA_PLT): Define.
1096         (GENERATE_SHLIB_SCRIPT): Define.
1098         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
1099         to const throughout.  Change `void *' to `PTR' throughout.
1100         (lang_memory_default): Function is local to file, add `static'.
1102         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1103         (ehppalinux.c): Likewise.
1104         (earmelf.c): Likewise.
1105         (earmelf_linux.c): Likewise.
1106         (earmelf_linux26.c): Likewise.
1107         * Makefile.in: Regenerate.
1109         * ld.h (ld_config_type): Add unique_orphan_sections.
1110         * lexsup.c (OPTION_UNIQUE): Define.
1111         (ld_options): Add "--unique".
1112         (parse_args): Handle it.
1113         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1114         search for an existing output section if unique_orphan_sections is
1115         set.  Make use of bfd_get_unique_section_name rather than
1116         duplicating code here.
1117         * ld.texinfo: Describe --unique.
1119         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1120         optional arg to split-by-file.
1121         (parse_args): Handle them.
1122         * ld.texinfo: Update description of these options.
1123         * ldwrite.c (clone_section): Pass in the section name.  Replace
1124         local code with bfd_get_unique_section_name.
1125         (split_sections): Tidy code and comments.  Use a list traversal
1126         more appropriate to the list construction.  Handle cooked section
1127         sizes.  Split when split_by_reloc reached rather than exceeded.
1128         Track section size and split when split_by_file reached.  Fix
1129         link_order_tail (even though it's not used).
1130         (ldwrite): Modify condition for calling split_sections to suit
1131         changed split_by_reloc and split_by_file.
1132         * ldmain.c (main): Init config.split_by_reloc and
1133         config.split_by_file to -1.
1134         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1135         Change split_by_file to bfd_size_type.
1137 2000-09-02  Nick Clifton  <nickc@redhat.com>
1139         * configure.in: Increase version number to 2.10.91.
1140         * NEWS: Mention new ability to support removal of duplicate DWARF2
1141         debug information.
1142         * configure: Regenerate.
1143         * aclocal.m4: Regenerate.
1144         * config.in: Regenerate.
1146 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1148         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1149         sections.
1150         * scripttempl/elf32avr.sc: Ditto.
1151         * scripttempl/elfd10v.sc: Ditto.
1152         * scripttempl/elfd30v.sc: Ditto.
1153         * scripttempl/elfi370.sc: Ditto.
1154         * scripttempl/elfm68hc11.sc: Ditto.
1155         * scripttempl/elfm68hc12.sc: Ditto.
1156         * scripttempl/elfi386beos.sc: Ditto.
1157         * scripttempl/v850.sc: Ditto.
1159 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1161         * acinclude.m4: Include libtool and gettext macros from the
1162         top level.
1163         * aclocal.m4, configure: Rebuilt.
1165 2000-08-25  Nick Clifton  <nickc@redhat.com>
1167         * ldlang.c (open_output): When choosing the target for a
1168         particular endianness, do nothing if the target is not
1169         supported.
1171 2000-08-25  H.J. Lu  <hjl@gnu.org>
1173         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1174         check -rpath nor LD_RUN_PATH for cross link.
1175         * ld.texinfo: Document the change.
1177 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
1179         * NEWS: Mention support for CRIS.
1181 2000-08-23  H.J. Lu  <hjl@gnu.org>
1183         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1184         the current runpath list from bfd_elf_get_runpath_list ()
1185         before search.
1187 2000-08-22  H.J. Lu  <hjl@gnu.org>
1189         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1190         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1191         LD_LIBRARY_PATH for native linker. Display the needed DSO if
1192         trace_file_tries is non-zero.
1193         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1194         if trace_file_tries is non-zero.
1196         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1197         * NEWS: Mention it.
1199 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
1201         * NEWS: Mention i860 support.
1203 2000-08-14  Andreas Schwab  <schwab@suse.de>
1205         * scripttempl/elf.sc: Fix last change to use correct comment
1206         syntax.
1208 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
1210         * scripttempl/elf.sc: Add a comment giving the correspondence
1211         between sections, per-datum sections, and linkonce sections.  Make
1212         the comment true even for .bss, .sdata, .sdata2, .sbss, and
1213         .sbss2.
1215 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
1217         * emulparams/elf32_i860.sh: New file.
1218         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1219         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1220         (eelf32_i860.c): New rule.
1221         * Makefile.in: Regenerate.
1223 2000-08-10  Nick Clifton  <nickc@cygnus.com>
1225         * emulparams/mipspe.sh (ENTRY): Add definition.
1227 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
1229         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1230         in error message.
1232 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1234         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1235         the final size of .bss section.
1236         * scripttempl/elfm68hc12.sc: Likewise.
1238 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
1240         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1241         gld${EMULATION_NAME}_parse_args for consistency.  Combine
1242         lastoptind and prevoptind vars, and keep track of last optind.
1243         (gld_${EMULATION_NAME}_list_options): Rename to
1244         gld${EMULATION_NAME}_list_options.
1246 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
1248         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1249         (i586-sco-sysv5uw7.1.0).
1251 2000-07-27  H.J. Lu  <hjl@gnu.org>
1253         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1254         (PARSE_AND_LIST_PROLOGUE): New.
1255         (PARSE_AND_LIST_LONGOPTS): Likewise.
1256         (PARSE_AND_LIST_OPTIONS): Likewise.
1257         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1258         (PARSE_AND_LIST_EPILOGUE): Likewise.
1260 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
1262         * emultempl/armelf.em: Elide functions common to elf32.em,
1263         ie. most of the file.
1264         (arm_elf_after_open): New.  Do arm specific things then call
1265         gld${EMULATION_NAME}_after_open.
1266         (arm_elf_before_allocation): New.  Call
1267         gld${EMULATION_NAME}_before_allocation then do arm specifics.
1268         (PARSE_AND_LIST_PROLOGUE): Define.
1269         (PARSE_AND_LIST_SHORTOPTS): Define.
1270         (PARSE_AND_LIST_LONGOPTS): Define.
1271         (PARSE_AND_LIST_OPTIONS): Define.
1272         (PARSE_AND_LIST_ARGS_CASES): Define.
1273         (LDEMUL_AFTER_OPEN): Define.
1274         (LDEMUL_BEFORE_ALLOCATION): Define.
1275         (LDEMUL_BEFORE_PARSE): Define.
1276         (LDEMUL_FINISH): Define.
1278         * emultempl/hppaelf.em: Similarly zap most of this file.
1279         (hppaelf_add_stub_section): Prototype.
1280         (hppaelf_layaout_sections_again): Prototype.
1281         (hook_in_stub): Prototype.
1282         (LDEMUL_SET_OUTPUT_ARCH): Define.
1283         (LDEMUL_FINISH): Define.
1284         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1286         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1287         (EXTRA_EM_FILE): New.
1288         * emulparams/armelf_linux.sh: Likewise.
1289         * emulparams/armelf_linux26.sh: Likewise.
1290         * emulparams/hppalinux.sh: Likewise.
1291         * emulparams/hppaelf.sh: Likewise.
1292         (NOP): Define.
1294         * emultempl/elf32.em: Fix formatting.
1295         (EXTRA_EM_FILE): Source it.
1296         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1297         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1298         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1299         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1300         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1301         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1302         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1303         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1304         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
1305         allow functions in this file to be overridden.
1306         (PARSE_AND_LIST_SHORTOPTS): Handle it.
1308         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1310         * emultempl/elf32.em: Reorganize file.
1312 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
1314         * emulparams/elf64alpha.sh: Implement "-taso" emulation
1315         specific option to fit 64-bit executable in the lower
1316         31-bit address range.  This is done by changing start
1317         address of .interp (the very first section of executable)
1318         and then setting EF_ALPHA_32BIT elf header flag.
1320 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1322         * emultempl/m68kcoff.em: New file.
1323         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1324         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1325         generic.em.
1326         * Makefile.in: Regenerate.
1328 2000-07-20  H.J. Lu  <hjl@gnu.org>
1330         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1331         and "disable-new-dtags" to stop getopt from treating -d/-e as
1332         abbreviations for these options.
1334 2000-07-20  H.J. Lu  <hjl@gnu.org>
1336         * ld.texinfo: Add documentation for --disable-new-dtags and
1337         --enable-new-dtags.
1339         * ldmain.c (main): Initialize link_info.new_dtags to false.
1341         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1342         --disable-new-dtags and --enable-new-dtags.
1343         (gld_${EMULATION_NAME}_list_options): Likewise.
1345 2000-07-05  Kenneth Block  <krblock@computer.org>
1347         * lexsup.c: Add optional style to demangle switch
1348         * ld.texinfo: Document optional style to demangle switch.
1350 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
1352         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1353         ecrislinux.o.
1354         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1355         Regenerate dependencies.
1356         * Makefile.in: Rebuild.
1357         * configure.tgt (cris-*-*): New target.
1358         * emulparams/crisaout.sh, emulparams/criself.sh,
1359         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1360         * po/POTFILES.in, po/ld.pot: Regenerate.
1362 2000-07-20  H.J. Lu  <hjl@gnu.org>
1364         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1365         Print out ignored -z options.
1367 2000-07-19  H.J. Lu  <hjl@gnu.org>
1369         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1370         (PARSE_AND_LIST_PROLOGUE): New.
1371         (PARSE_AND_LIST_LONGOPTS): Likewise.
1372         (PARSE_AND_LIST_OPTIONS): Likewise.
1373         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1375         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1377         * lexsup.c (ld_options): Comment out 'z'.
1378         (parse_args): Likewise.
1380         * emultempl/elf32.em: Include "elf/common.h".
1381         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1382         options.
1383         (gld_${EMULATION_NAME}_list_options): Likewise.
1385         * ld.texinfo: Add documentation for the recognized -z options.
1387 2000-07-19  H.J. Lu  <hjl@gnu.org>
1389         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1390         bfd_elf_set_dt_needed_soname ().
1392 2000-07-18  DJ Delorie  <dj@cygnus.com>
1394         * pe-dll.c (pe_dll_id_target): check object target name also
1396 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
1398         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1399         ${INIT_END} if relocating.
1400         (.fini): Likewise ${FINI_START} and ${FINI_END}.
1402 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
1404         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1405         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1406         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1407         errors introduced by the old dynamic lib search order.
1409 2000-07-17  DJ Delorie  <dj@cygnus.com>
1411         * pe-dll.c (process_def_file): auto-export data items also
1412         (pe_process_import_defs): also see if _imp_ form needed
1414 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
1416         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1417         for dll import libraries
1419 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
1421         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1422         gcc 2.95.2 and later.
1424 2000-07-11  Kazu Hirata  <kazu@hxi.com>
1426         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1427         message.
1429 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1431         * ldemul.h (struct lang_input_statement_struct): Remove forward
1432         declaration.
1433         (struct search_dirs): Likewise.
1434         * ldfile.h (struct lang_input_statement_struct): Likewise.
1435         Protect file from multiple inclusion.
1436         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1437         declaration from macro to file scope.
1439         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1440         * ldgram.y: Likewise here.
1441         * ldlang.c: And here.
1442         * ldmain.c: And here.
1443         * mpw-elfmips.c: And here.
1444         * mpw-eppcmac.c: And here.
1445         * emultempl/aix.em: And here.
1446         * emultempl/armcoff.em: And here.
1447         * emultempl/armelf.em: And here.
1448         * emultempl/armelf_oabi.em: And here.
1449         * emultempl/beos.em: And here.
1450         * emultempl/elf32.em: And here.
1451         * emultempl/hppaelf.em: And here.
1452         * emultempl/linux.em: And here.
1453         * emultempl/lnk960.em: And here.
1454         * emultempl/pe.em: And here.
1455         * emultempl/sunos.em: And here.
1456         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1457         * mpw-idtmips.c: Ditto.
1458         * emultempl/generic.em: Ditto.
1459         * emultempl/gld960.em: Ditto.
1460         * emultempl/gld960c.em: Ditto.
1461         * emultempl/mipsecoff.em: Ditto.
1462         * emultempl/ticoff.em: Ditto.
1463         * emultempl/vanilla.em: Ditto.
1465         * pe-dll.c: Include ldfile.h
1466         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1468         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1469         arguments to bfd_elf32_size_dynamic_sections call.
1470         (gldelf32ebmip_place_orphan): Add missing arguments to
1471         lang_leave_output_section_statement call.
1473 2000-07-10  H.J. Lu  <hjl@gnu.org>
1475         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1476         DLL_SUPPORT.
1477         (strhash): Likewise.
1478         (compute_dll_image_base): Likewise.
1479         (pe_undef_found_sym): Likewise.
1480         (pe_undef_cdecl_match): Likewise.
1481         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1482         argument "arch" with ATTRIBUTE_UNUSED.
1484 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1486         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1488         From  Ryan Bradetich  <rbradetich@uswest.net>
1489         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1491 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
1493         Changes to create multiple linker stubs, positioned immediately
1494         before the section where they are required.
1495         * emultempl/hppaelf.em: Include elf32-hppa.h.
1496         (stub_sec, file_chain): Delete.
1497         (hppaelf_create_output_section_statements): Don't make a stub
1498         section here.
1499         (hook_stub_info): New struct.
1500         (hook_in_stub): New function.
1501         (hppaelf_add_stub_section): New function.
1502         (hppaelf_finish): Do nothing for relocateable links.  Modify the
1503         call to elf32_hppa_size_stubs.  Move code for updating section
1504         layout from here...
1505         (hppaelf_layaout_sections_again): ..to here, a new function.
1507         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1508         broken list handling.  Pass in a pointer to the list.
1509         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1510         for above changes.
1511         (hppaelf_before_parse): Prototype.
1512         (hppaelf_set_output_arch): Prototype.
1513         (hppaelf_create_output_section_statements): Prototype.
1514         (hppaelf_delete_padding_statements): Prototype.
1515         (hppaelf_finish): Prototype.
1517         Merge from elf32.em
1518         * emultempl/hppaelf.em: Include ctype.h.
1519         (struct orphan_save): New.
1520         (gld${EMULATION_NAME}_place_orphan): New.
1521         (output_rel_find): New.
1522         (hppaelf_get_script): Update from elf32.em.
1523         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1524         Change emulation_name field to "${EMULATION_NAME}".  Add
1525         gld${EMULATION_NAME}_place_orphan.
1527         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
1528         ehppalinux.o, sort it.  Regenerate dependencies.
1529         (ehppalinux.c): Depend on hppaelf.em
1530         * Makefile.in: Regenerate.
1532         * configure.tgt: targ_emul=hppalinux for hppa*linux
1534         * emulparams/hppalinux.sh: New.
1535         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1537 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
1539         * lexsup.c (parse_args): Copy section name.
1541 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
1543         * emultempl/pe.em: institute the following search order for
1544         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1545         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
1546         static lib (libfoo.a) if none of the above are found.
1548 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
1550         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1551         (longopts): New --{enable,disable}-auto-image-base options.
1552         (gld_${EMULATION_NAME}_list_options): Document.
1553         (gld_${EMULATION_NAME}_parse): Handle.
1554         (strhash): New static function.
1555         (compute_dll_image_base): New static function.
1556         (gld_${EMULATION_NAME}_set_symbols): Use.
1558 2000-07-05  DJ Delorie  <dj@redhat.com>
1560         * MAINTAINERS: new
1562 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
1564         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1565         * emulparams/elf32btsmip.sh: New file.
1566         * Makefile.am: Add traditional mips target.
1567         * Makefile.in: Rebuild.
1569 2000-07-01  H.J. Lu  <hjl@gnu.org>
1571         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1572         automake to use YLWRAP.
1573         * Makefile.in: Rebuild.
1575 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
1577         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
1578         (CLEANFILES): Add DEPA.
1579         * Makefile.in: Regenerate.
1581 2000-06-30  Timothy Wall  <twall@ppc>
1583         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1584         the page in the upper octet of the address.
1586 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
1588         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1590 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
1592         * NEWS: arm-elf does --gc-sections too.
1594 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
1596         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1597         find one.
1598         * Makefile.in: Regenerate.
1600 2000-06-21  H.J. Lu  <hjl@gnu.org>
1602         * Makefile.am: Rebuild dependency.
1603         * Makefile.in: Rebuild.
1605 2000-06-20  H.J. Lu  <hjl@gnu.org>
1607         * Makefile.am: Rebuild dependency.
1608         * Makefile.in: Rebuild.
1610 2000-06-20  Timothy Wall  <twall@cygnus.com>
1612         * scripttempl/tic54xcoff.sc: New.
1613         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1614         * gen-doc.texi: Add flag for TI COFF.
1615         * ld.texinfo: Add documentation for TI COFF handling switches.
1616         * emultempl/ticoff.em: New. TI COFF handling.
1617         * configure.tgt: Add tic54x target.
1618         * Makefile.am: Add tic54x target.
1619         * Makefile.in: Ditto.
1621 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
1623         * ldmain.c (set_scripts_dir): Correct pointer comparison when
1624         checking for backslashes.
1626 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
1628         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1630 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
1632         * NEWS: Update list of targets supporting --gc-sections.
1634         * scripttempl/elf.sc: KEEP .eh_frame contents.
1635         * scripttempl/elfd30v.sc: Same here.
1637 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
1639         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1640         and m68hc11 (elf).
1641         * Makefile.in: Rebuild.
1642         * configure.tgt: Recognize m68hc12 and m68hc11.
1643         * scripttempl/elfm68hc12.sc: New file.
1644         * emulparams/m68hc12elfb: New emulation.
1645         * emulparams/m68hc12elf: New emulation.
1646         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
1647         (includes a memory.x script to define the ROM and RAM banks).
1648         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1649         New configuration files for support of Motorola 68hc11
1651 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
1653         * ldmain.c (main): Only change SEC_READONLY for final link.
1655 2000-06-13  H.J. Lu  <hjl@gnu.org>
1657         * configure: Regenerate.
1659 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
1661         * configure.in (VERSION): Update to show this is the CVS mainline.
1663 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1665         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1666         input objects to be ECOFF.
1667         (check_sections): einfo takes %B, not %P, to print a BFD name.
1669 2000-06-05  Michael Matz <matz@ifh.de>
1671         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1672         version scripts.
1674         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1676 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
1678         * emulparams/avr1200.sh (STACK): Define as 0.
1679         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1680         * emulparams/avr4433.sh (STACK): Likewise.
1681         * emulparams/avr44x4.sh (STACK): Likewise.
1682         * emulparams/avr85xx.sh (STACK): Likewise.
1683         * emulparams/avrmega103.sh (STACK): Likewise.
1684         * emulparams/avrmega161.sh (STACK): Likewise.
1685         * emulparams/avrmega603.sh (STACK): Likewise.
1686         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1687         (__stack): Define from ${STACK} for main().
1689 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
1691         * Makefile.am: Update dependencies with "make dep-am"
1692         * Makefile.in: Regenerate.
1694 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
1696         * ldmain.c: Include filenames.h.
1697         (set_scripts_dir): Support backslashes in program name.
1699 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
1701         * ldmain.c (main): When deciding if ".text" section should be
1702         read-only, don't forget to reset SEC_READONLY because it
1703         could be already set.
1705 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
1707         * ld.1: Add documentation for new command line option:
1708                 --section-start <sectionname>=<sectionorg>
1709         This is a generic version of -Ttext etc. which accepts
1710         any section name as a parameter instead of just text/data/
1711         bss.
1712         * ld.texinfo: More docs.
1713         * NEWS: More docs.
1714         * lexsup.c: (parse_args): Recognize new command line option.
1715         (ld_options): Add new option.
1717 2000-05-18  H.J. Lu  <hjl@gnu.org>
1719         * lexsup.c (parse_args): `i' == `r', not `q'.
1721 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
1723         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1725 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
1726               Rick Gorton          <gorton@scrugs.lkg.dec.com>
1728         Add support for '-q' == '--emit-relocs' switch.
1729         * ldmain.c (main): Default to false.
1730         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1731         * NEWS: Describe the emitrelocations switch.
1732         * ld.texinfo: Describe the emitrelocations switch.
1734 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
1736         * emultempl/pe.em (_open_dynamic_archive): New function: Search
1737         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1738         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1739         link options.
1741 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
1743         * lexsup.c (parse_args): Update the year in the copyright notice.
1745 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1747         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1748         Replace defines with those from intl/libgettext.h to quieten gcc
1749         warnings.
1751 2000-05-10  H.J. Lu  <hjl@gnu.org>
1753         * ldlang.c (open_input_bfds): Don't load the same file within
1754         a group again if the whole archive has been loaded already.
1756 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
1758         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1759         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1760         strtoul.
1762 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
1764         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1766         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1767         host "ia64-*-linux-gnu*".
1769 2000-04-29  Andreas Jaeger  <aj@suse.de>
1771         * ld.h: Correctly check GCC version.
1773 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
1775         * Makefile.am: Add PA64 support.  Add missing dependencies for
1776         PA32 elf support.
1777         * Makefile.in: Rebuilt.
1778         * configure.tgt: Add PA64 support (currently disabled).
1780 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
1782         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1783         (output_rel_find): New function.
1784         (hold_section, hold_use): Delete.
1785         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1786         hold_interp): Make local to place_orphan.
1787         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1788         rather than place_section to find possible previous use of orphan.
1789         Similarly find the place-holder output sections.  Use returned
1790         value from lang_enter_output_section_statement rather than calling
1791         lang_output_section_statement_lookup.
1792         * emultempl/armelf.em: Same here.
1793         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1795         * ldlang.c (lang_enter_output_section_statement): Return output
1796         section statement.
1797         * ldlang.h (lang_enter_output_section_statement): Change
1798         declaration too.
1800         * ldlang.h (lang_output_section_statement): Export it.
1801         * ldlang.c (lang_output_section_statement): Ditto.
1803 2000-04-24  Nick Clifton  <nickc@cygnus.com>
1805         * ld.texinfo (Output Section Data): Add note that section data
1806         commands cannot appear outside of section directives.
1808 2000-04-2  Matthew Green  <mrg@cygnus.com>
1810         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1812 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
1813                           David Mosberger  <davidm@hpl.hp.com>
1815         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1816         (eelf64_ia64.c): New rule.
1817         * Makefile.in: Rebuild.
1818         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1819         * emulparams/elf64_ia64.sh: New file.
1821 2000-04-21  Richard Henderson  <rth@cygnus.com>
1823         * scripttempl/elfd30v.sc: Place .gcc_except_table.
1825 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
1827         * dep-in.sed: Match space at start of file name, not at end.
1829 2000-04-18  H.J. Lu  <hjl@gnu.org>
1831         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1832         lang_leave_output_section_statement () after calling
1833         lang_enter_output_section_statement ().
1834         * emultempl/armelf.em: Likewise.
1836 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
1838         * emultempl/elf32.em (struct orphan_save): Add section field.
1839         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1840         better order, and place first orphan section as we did before the
1841         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
1842         Don't call make_bfd_section here, let wild_doit do the job for us.
1843         Don't build a statement list when we'll only throw it away.
1844         * emultempl/armelf.em: Ditto.
1845         * emultempl/pe.em: Similarly.
1847 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
1849         * scripttempl/elfppc.sc: Remove.
1850         * emulparams/elf32ppc.sh: Use elf.sc.
1851         * emulparams/elf32lppc.sh: Use elf.sc.
1852         * emulparams/elf32ppclinux.sh: Use elf.sc.
1853         * emulparams/elf32ppcsim.sh: New file.
1854         * emulparams/elf32lppcsim.sh: New file.
1855         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
1856         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1857         * Makefile.in: Regenerate.
1858         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1860 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
1862         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1863         ~SEC_ALLOC sections too.  Init start address of debug sections.
1864         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1865         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1866         Also set all relocateable section start addresses.
1868 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
1870         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1871         Add new BSS_PLT variable for when .plt need not be contained in
1872         the file.  Move _etext so that it is also after .fini, and provide
1873         both etext and _etext with a leading underscore.  Mark the start
1874         and end of .sbss.
1876 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
1878         * emultempl/elf32.em (struct orphan_save): New.
1879         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1880         hold_interp): Make them struct orphan_save.
1881         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1882         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1883         the end of the relevant section list.  Also add associated section
1884         statements to the end of any previous orphan statements.
1885         * emultempl/armelf.em: Similarly.
1886         * emultempl/pe.em: Similarly.
1888 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
1890         * ld.texinfo (Simple Example): Remove extraneous paragraph.
1892 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1894         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1895         --enable-build-warnings option.
1896         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1897         * Makefile.in, configure: Re-generate.
1899 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1901         * po/ld.pot: Regenerate.
1903         * lexsup.c (help): Restore translated part of bug string.
1905         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1906         (DEP): Quote when passing vars to sub-make.  Add warning message
1907         to end.
1908         (DEP1): Rewrite for "gcc -MM".
1909         (CLEANFILES): Add DEP2.
1910         Update dependencies.
1911         * Makefile.in: Regenerate.
1913 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1915         * ld.h: #include "bin-bugs.h"
1916         * lexsup.c (help): Use REPORT_BUGS_TO.
1918 2000-03-27  Denis Chertykov  <denisc@overta.ru>
1920         * configure.tgt (avr-*-*): New target support.
1921         * Makefile.am: Likewise.
1922         * scripttempl/elf32avr.sc: New script file.
1923         * emulparams/avr1200.sh: New file.
1924         * emulparams/avr23xx.sh: New file.
1925         * emulparams/avr4433.sh New file.
1926         * emulparams/avr44x4.sh New file.
1927         * emulparams/avr85xx.sh New file.
1928         * emulparams/avrmega103.sh New file.
1929         * emulparams/avrmega161.sh New file.
1930         * emulparams/avrmega603.sh New file.
1931         * Makefile.in: Regenerate.
1933 2000-03-09  Andreas Jaeger  <aj@suse.de>
1935         * Makefile.am (check-DEJAGNU): Also unset LANG.
1936         * Makefile.in: Rebuild.
1938 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
1940         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1941         archive.
1943 2000-03-02  H.J. Lu  <hjl@gnu.org>
1945         * emulparams/elf32mcore.sh: Include "getopt.h".
1947 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
1949         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1951 2000-03-01  H.J. Lu  <hjl@gnu.org>
1953         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1954         * emulparams/shpe.sh: Likewise.
1956 2000-03-01  Nick Clifton  <nickc@cygnus.com>
1958         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1959         to unused parameters.
1961         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1962         functions only used by DLL code.
1963         (_place_orphan): Initialise 'dollar'.
1965 2000-03-01  H.J. Lu  <hjl@gnu.org>
1967         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1968         indicate if the undefined symbol is a fatal error or not.
1969         Don't delete the output file if "fatal" is false.
1971 2000-02-29  H.J. Lu  <hjl@gnu.org>
1973         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1974         Set LC_COLLATE and LC_ALL to null and export them. It is for
1975         sort which expects the C locale.
1976         Add $(LIBS) to all $(HOSTING_LIBS).
1977         * Makefile.in: Rebuild.
1979 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
1981         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1982         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1983         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1984         (ld_emulation_xfer_struct): Add missing NULL initialiser for
1985         find_potential_libraries.
1987 2000-02-28  Jim Blandy  <jimb@redhat.com>
1989         * ldgram.y (exclude_name_list): Don't require a comma to separate
1990         list entries; the lexer considers commas to be valid part of a
1991         filename, so in something like `foo, bar' the comma is considered
1992         part of the first filename, `foo,'.
1993         * ld.texinfo: Update section on EXCLUDE_FILE lists.
1995 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
1997         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1998         host "i[3456]86-*-freebsdelf*".
2000 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
2002         * scripttempl/i386go32.sc: Move misplaced semicolons.
2004 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
2006         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2007         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2008         (eelf64hppa.c, ehppaelf.c): Remove targets.
2009         * Makefile.in: Rebuild.
2011 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2013         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2014         GNU/Linux/sparc, but keep the default as 32.
2016         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
2017         it default if sparcv9 or sparc64.
2019 2000-02-24  Nick Clifton  <nickc@cygnus.com>
2021         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2022         * Makefile.in: Regenerate.
2023         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2025         * ldemul.h (ld_emulation_xfer_struct): Add new field:
2026         find_potential_libraries.
2027         * ldemul.c (ldemul_find_potential_libraries): New function.
2029         * ldfile.c (ldfile_open_file_search): Allow function to be
2030         exported.
2031         (ldfile_open_file): Call ldemul_find_potential_libraries.
2032         * ldfile.h: Add prototype for ldfile_open_file_search.
2034         * pe-dll.c: Add support for ARM, MIPS and SH targets.
2036         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
2037         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
2039         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2040         (gld_X_find_potential_libraries): New function.  Search for
2041         libraries called "*.lib".
2043         * scripttempl/pe.sc: Add .pdata section.
2045 2000-02-23  Richard Henderson  <rth@cygnus.com>
2047         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2048         Add and use memory regions.
2050 2000-02-23  Linas Vepstas (linas@linas.org)
2052         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2054         * Makefile.am: Add support for Linux/IBM 370.
2055         * configure.tgt: Likewise.
2057         * Makefile.in: Regenerate.
2059 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
2061         * ldlang.c (print_input_section, print_data_statement,
2062         print_reloc_statement, print_padding_statement, insert_pad,
2063         size_input_section, lang_check_section_addresses,
2064         lang_size_sections, lang_do_assignments, lang_set_startof,
2065         lang_one_common): Change `opb' to unsigned.
2066         (lang_do_assignments): Also change `size' to unsigned.
2068 2000-02-16  Richard Henderson  <rth@cygnus.com>
2070         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2072 2000-02-16  Timothy Wall  <twall@cygnus.com>
2074         * mri.c (mri_draw_tree): Add default LMA region argument to call
2075         to lang_leave_output_section_statement.
2076         * ldlang.h: Update prototypes with LMA region arguments.
2077         * ldlang.c (lang_size_sections): Encapsulate region bounds
2078         checking in os_check_region call.
2079         (os_check_region): New function.
2080         (lang_output_section_statement_lookup): Initialize lma_region.
2081         (lang_leave_output_section_statement): Add LMA region argument.
2082         (lang_leave_overlay): Ditto.
2083         * ldgram.y: Handle LMA region syntax.
2084         * ld.texinfo (Output Section Description): Describe LMA region usage.
2085         * emultempl/armelf.em (gld$place_orphan): Add default value for
2086         lma region in call to lang_leave_output_section_statement.
2087         * emultempl/elf32.em (gld$place_orphan): Add default value for
2088         lma region in call to lang_leave_output_section_statement.
2089         * emultempl/pe.em (gld$place_orphan): Add default value for
2090         lma region in call to lang_leave_output_section_statement.
2093 2000-02-04  Timothy Wall  <twall@redhat.com>
2095         * ldlang.c (lang_check_section_addresses): Use bytes instead of
2096         octets when calculating section end addresses.
2098 2000-02-04  Timothy Wall  <twall@redhat.com>
2100         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2102 2000-02-03  Timothy Wall <twall@redhat.com>
2104         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2105         octet count.
2106         * ldlang.c (print_input_section, print_data_statement,
2107         print_reloc_statement, print_padding_statement): Print target
2108         address values and section sizes as bytes, not octets.
2109         (insert_pad) Calculate padding size in octets, and adjust "dot"
2110         by bytes.
2111         (size_input_section) Always adjust "dot" by bytes, not octets.
2112         (lang_check_section_addresses, lang_do_assignments) Adjust
2113         "dot" by bytes, not octets.  Use the larger of the directive size
2114         or octets_per_byte for the number of octets actually allocated in
2115         the output section.
2116         (lang_set_startof) Make sure STARTOF returns a target address.
2117         (lang_one_common) Record size changes in octets.
2118         (lang_abs_symbol_at_end_of) Section end symbol's value is
2119         recorded in target bytes.
2120         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
2121         to be clear about behavior when an octet is smaller than one byte.
2123 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2125         * ldcref.c (output_cref): Don't pass message strings to printf
2126         as format arg.
2127         Update copyright.
2129         * ldmisc.c (vfinfo): Same here.
2130         Update copyright.
2132 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
2134         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2135         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2136         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2137         Add missing NULL initialisers, and comments.
2139         * testsuite/ld-srec/sr3.cc (__rethrow): New.
2141 2000-01-21  Nick Clifton  <nickc@cygnus.com>
2143         * ldlang.c (lang_size_sections): Fix typo in comment.
2145 2000-01-18  H.J. Lu  <hjl@gnu.org>
2147         * ldlang.c (lang_size_sections): Also update the current
2148         address of a region if the SEC_NEVER_LOAD bit is not set.
2150 2000-01-10  Philip Blundell  <pb@futuretv.com>
2152         * configure.tgt (arm*-*-conix*): New target.
2154 2000-01-07  Nick Clifton  <nickc@cygnus.com>
2156         * ld.texinfo (Options): Remind users to preceed linker command
2157         line switches with -Wl, (or whatever is appropriate) if it is
2158         being invoked by a comnpiler driver program.
2159         Fix description of the behaviour of the -n command line switch.
2161 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
2163         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
2164         (name_list): New.
2165         * ld.texinfo (EXCLUDE_FILE): Update documentation.
2166         * ldgram.y (wildcard_spec): Support a list of excluded_files.
2167         (exclude_name_list): New.
2168         ldlang.c (walk_wild_section): Support list of excluded files.
2169         (print_wild_statement): Likewise.
2170         (lang_add_wild): Likewise.
2171         * ldlang.h (lang_wild_statement_type): Likewise.
2172         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2174 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
2176         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2177         (process_def_file): Use.
2178         (pe_dll_compat_implib): New variable.
2179         (make_one): Use.
2181         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2182         pe_dll_compat_implib.
2184         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2185         compat-implib options.
2186         (gld_${EMULATION_NAME}_list_options): List new options.
2187         (gld_${EMULATION_NAME}_parse_args): Handle.
2189         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2190         dll.
2192         * deffilep.y (opt_name): Allow "." in name.
2194 For older changes see ChangeLog-9899
2196 Local Variables:
2197 mode: change-log
2198 left-margin: 8
2199 fill-column: 74
2200 version-control: never
2201 End: