* emulparms/elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
[binutils.git] / ld / ChangeLog
blob4b820ad3dfa0dcebd34382ca1b681a41a3ba6c57
1 2001-06-07  Andreas Jaeger  <aj@suse.de>
3         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4         (TEXT_START_ADDR): Likewise.
6 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
8         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
10 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
12         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
14 2001-05-31  H.J. Lu  <hjl@gnu.org>
16         * ldlang.c (open_input_bfds): Don't change the bfd error
17         handler whilst loading symbols.
19 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
21         * configure.tgt: Remove i370-mvs architecture, it is not currently
22         supported.
24 2001-05-25  H.J. Lu  <hjl@gnu.org>
26         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
27         like emulparams/aixppc.sh.
29 2001-05-25  H.J. Lu  <hjl@gnu.org>
31         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
32         setting of output_filename after bfd_scan_arch.
33         * emultempl/pe.em: Likewise.
35 2001-05-25  H.J. Lu  <hjl@gnu.org>
37         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
38         like emulparams/aixppc.sh.
40         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
41         instead of ${srcdir}/emultempl/stringify.sed.
43 2001-05-25  Timothy Wall  <twall@oculustech.com>
45         * emulparams/elf64_aix.sh: Change settings to match IBM linker
46         output.
48 2001-05-25  Alan Modra  <amodra@one.net.au>
50         * configure.host: Replace linuxoldld with linux*oldld.
51         * configure.tgt: Likewise.
53 2001-05-24  H.J. Lu  <hjl@gnu.org>
55         * emultempl/stringify.sed: Removed again.
57 2001-05-24  H.J. Lu  <hjl@gnu.org>
59         * emultempl/aix.em (OUTPUT_ARCH): Defined.
60         (gld${EMULATION_NAME}_before_parse): Initialize
61         ldfile_output_architecture, ldfile_output_machine and
62         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
63         * emultempl/beos.em: Likewise.
64         * emultempl/elf32.em: Likewise.
65         * emultempl/linux.em: Likewise.
66         * emultempl/mipsecoff.em: Likewise.
67         * emultempl/pe.em: Likewise.
68         * emultempl/sunos.em: Likewise.
70 2001-05-24 Tom Rix <trix@redhat.com>
72         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
73         udate import file format.
74         (change_symbol_mode) New, same
75         (is_syscall) New, same
76         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
77         * emulparams/aixppc64.sh : same
78         * emulparams/aixrs6.sh : same
79         * emulparams/ppcmacos.sh : same
80         * emultempl/aix.em : use strtoull to parse options
81         * Makefile.am : add eaixppc64 emulation for xcoff64
82         * Makefile.in : same
83         * configure.tgt : same
85         * scripttempl/aix.sc : default text section offset to 0x10000000
86          default data section offset to 0x20000000
87         add .sv3264 and .sv64 pseudo sections
88         loader and debug sections use the currect section offset.
90         * emultempl/aix.em : Add xcoff64 support
91         Add -binitfini support
92         (gld${EMULATION_NAME}_before_parse) -binitfini
93         (gld${EMULATION_NAME}_parse_args) same
94         (gld${EMULATION_NAME}_before_allocation) format change for special
95         sections
97         * emulparams/aixppc64.sh : New file for xcoff64 support
99 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
101         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
102         variable to avoid non-portable shell construct.
104 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
106         * ldmain.c (get_emulation): Add -mips5 command line argument.
108 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
110         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
111         (ELF_INTERPRETER_NAME): Define it.
112         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
113         it.
114         * configure.tgt (targ_emul, targ_extra_emuls)
115         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
116         as primary, elf_i386 as extra.
117         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
118         (eelf_i386_ldso.c): New rule.
119         * Makefile.in: Rebuilt.
121 2001-05-22  Nick Clifton  <nickc@redhat.com>
123         * lexsup.c (ld_options):  Allow -I to be an alias for
124         --dynamic-linker.  This is for Solaris compatability.
125         * ld.texinfo: Document that -I can be used.
126         * ld.1: Regenerate.
128 2001-05-16  Alan Modra  <amodra@one.net.au>
130         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
131         whether an input section is the first one assigned to an output
132         section.
133         Assorted formatting fixes.
135 2001-05-14  DJ Delorie  <dj@delorie.com>
137         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
138         * Makefile.in: Ditto.
140 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
142         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
143         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
144         output sections.
145         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
147 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
149         * ldlang.c (lang_process): Call bfd_merge_sections.
151 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
153         * ldgram.y: Fix typo.
155 2001-05-03  H.J. Lu  <hjl@gnu.org>
157         * emultempl/elf32.em: Include "libiberty.h".
158         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
159         basename of the bfd filename.
160         (gld${EMULATION_NAME}_stat_needed): Likewise.
161         (gld${EMULATION_NAME}_try_needed): Likewise.
162         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
164 2001-05-02  H.J. Lu  <hjl@gnu.org>
166         * emultempl/pe.em: Include <ctype.h>.
168 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
170         * emulparams/elf32openrisc.sh: New file.
172         * Makefile.am: Add OpenRISC target.
173         * Makefile.in: Regenerated.
175         * configure.tgt: Add openrisc-*-* mapping.
177 2001-05-02  Nick Clifton  <nickc@redhat.com>
179         * emultempl/aix.em: Replace buystring with xstrdup.
180         * emultempl/beos.em: Replace buystring with xstrdup.
182 2001-05-02  H.J. Lu  <hjl@gnu.org>
184         * ldfile.c: Include "libiberty.h".
185         * ldlex.l: Likewise.
187         * ldmisc.c (buystring): Removed.
188         * ldmisc.h: Likewise.
190         * ldfile.c: Replace buystring with xstrdup.
191         * ldlang.c: Likewise.
192         * ldlex.l: Likewise.
193         * ldmain.c: Likewise.
194         * ldmisc.c: Likewise.
195         * lexsup.c: Likewise.
196         * mpw-eppcmac.c: Likewise.
198 2001-04-30  Andreas Jaeger  <aj@suse.de>
200         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
202 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
204         * ldlang.c (load_symbols): Give emulation a chance
205         to process unrecognized file before fatal error is
206         reported, not after.
208 2001-04-27  Sean McNeil <sean@mcneil.com>
210         * configure.tgt: Add arm-vxworks target.
211         * scripttempl/armcoff.sc: Support .text or .data as a section name
212         prefix.
213         Define _etext.
215 2001-04-13  J.T. Conklin  <jtc@redback.com>
217         * ld.texinfo: Document --fatal-warnings.
218         * ld.1: Regenerate.
220         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
221         warnings have been turned into errors.
222         * lexsup.c (OPTION_WARN_FATAL): Define.
223         (ld_options): Entry for --fatal-warnings.
224         (parse_args): Handle OPTION_WARN_FATAL.
225         * ld.h (ld_config_type): Add fatal_warnings field.
227 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
229         * ldmain.c (main): Default to discard_sec_merge.
230         * lexsup.c (OPTION_DISCARD_NONE): Define.
231         (ld_options): Add --discard-none.
232         (parse_args): Handle OPTION_DISCARD_NONE.
233         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
234         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
235         all its input sections match.
237 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
239         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
240         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
241         (eelf32ltsmip.c): New target.
242         (eelf64btsmip.c): Likewise.
243         (eelf64ltsmip.c): Likewise.
244         * Makefile.in: Regenerated.
246         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
247         target.
248         (mips*-*-linux-gnu*): Likewise.
250         * emulparams/elf32ltsmip.sh: New. Traditional little endian
251         MIPS taget.
252         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
253         target.
254         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
255         endian target.
257 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
259         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
260         correct value of __Stext here.
261         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
262         .startup section.
264         * emulparams/crislinux.sh: Remove FIXME.
266 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
268         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
269         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
271 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
273         * configure.tgt (cris-*-*): Change default emulation to criself.
274         (cris-*-*aout*): New rule.
276 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
278         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
279         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
281 2001-03-26  Andreas Jaeger  <aj@suse.de>
283         * ld.texinfo (Overview): Fix syntax in texi code.
285 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
287         * ld.texinfo: Put @c man indications to generate the ld man page.
288         When generating man, define all the variables.  Define SEEALSO
289         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
290         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
291         (ld.1): Generate from ld.texinfo.
292         * Makefile.in: Regenerate.
294 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
296         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
297           and '-fdata-sections'. Set the VMA of STABS sections to zero.
299 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
301         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
302         is an absolute path look only for this file and not along the path.
304 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
306         * emultempl/elf32.em (OPTION_GROUP): New macro.
307         Add new option Bgroup to longopts.
308         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
309         (gld*_list_options): Add -Bgroup and -z defs.
310         * ld.1: Document -Bgroup and -z defs.
311         * ld.texinfo: Likewise.
313 2001-03-07  Michael Meissner  <meissner@redhat.com>
315         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
316         with sections created by -fdata-sections.
317         (.dynbss,.bss): Ditto.
319 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
321         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
322         after_allocation_default, not gld..._before_allocation.
324 2001-02-28  Matt Hiller  <hiller@redhat.com>
326         * testsuite/ld-scripts/crossref.exp: Initialize flags to
327         [big_or_little_endian].
328         * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
329         in ld invocations.
330         * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
331         -eb, -EL and -el.
332         (is_endian_output_format): New function.
333         (default_ld_link): Set flags to [big_or_little_endian] only if ld
334         is being invoked such that the output format being used is of
335         known endianness.
336         (default_ld_simple_link): Ditto.
338 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
340         * configure.in (BFD_VERSION): New.
341         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
342         * configure: Regenerate.
343         * Makefile.am: Run "make dep-am"
344         * Makefile.in: Regenerate.
346 2001-02-26  Timothy Wall  <twall@cygnus.com>
348         * emulparams/elf64_aix.sh: Add additional read-only sections;
349         uncomment lines which are now required.
351 2001-02-26  H.J. Lu  <hjl@gnu.org>
353         * ldlang.c (open_input_bfds): Set the bfd error handler so
354         that problems can be caught whilst loading symbols.
355         (record_bfd_errors): New function: Report BFD errors and mark
356         the executable output as being invalid.
358 2001-02-22  Timothy Wall  <twall@cygnus.com>
360         * configure.host: Add configuration for ia64-*-aix*.
361         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
362         Add dependencies for eelf64_aix.c.
363         * Makefile.in: Regenerate.
364         * configure.tgt: Add ia64-*-aix* mapping.
365         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
366         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
367         AIX-specific test.
369 2001-02-20  H.J. Lu  <hjl@gnu.org>
371         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
372         false if we found the file.
374 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
376         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
377         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
379 2001-02-18  lars brinkhoff  <lars@nocrew.org>
381         * Makefile.am: Add PDP-11 target.
382         * configure.tgt: Likewise.
383         * emulparams/pdp11.sh: New file.
385 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
387         * configure.host: Add a generic FreeBSD configuration entry such that
388         all [modern] FreeBSD systems on all platforms will look the same.
390 2001-02-14  H.J. Lu  <hjl@gnu.org>
392         * configure.tgt: Remove mention of earmelf_linux26.
394 2001-02-13  Richard Henderson  <rth@redhat.com>
396         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
398 2001-02-13  H.J. Lu  <hjl@gnu.org>
400         * ldexp.h (node_type): Add etree_provided.
401         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
402         type to etree_provided if defined by PROVIDE. Allow updating
403         for etree_provided.
404         (exp_print_tree): Handle etree_provided.
405         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
406         etree_provided.
408 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
410         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
411         .IA_64.unwind.* pattern to unwind table section and
412         .IA_64.unwind_info* pattern to unwind info section.
414 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
416         * Makefile.am: Add linux target for S/390.
417         * Makefile.in: Likewise.
418         * configure.host: Likewise.
419         * configure.tgt: Likewise.
420         * emulparams/elf64_s390.sh: New file.
421         * emulparams/elf_s390.sh: New file.
423 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
425         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
426         targ_extra_libpath.
427         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
429 2001-02-06  Philip Blundell  <philb@gnu.org>
431         * Makefile.am: Remove mention of earmelf_linux26.
432         * Makefile.in: Regenerate.
434 2001-02-04  Philip Blundell  <philb@gnu.org>
436         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
437         * emulparams/armelf_linux26.sh: Delete.
438         * configure.tgt: Remove mention of armelf_linux26 emulation.
440 2001-02-01  Nick Clifton  <nickc@redhat.com>
442         * ld.1: Replace occurances of -oformat with --oformat.
444 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
446         * ldlang.c (lang_leave_overlay): Don't set lma_region when
447         load_base is specified.
449 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
451         * emultempl/elf32.em: Correct spelling in comments and listed
452         options.
454 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
456         * ldlang.c (lang_leave_overlay): Only set lma_region from the
457         default for the first section of a group of overlay sections.
459 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
461         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
462         * Makefile.in: Regenerate.
463         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
464         Check for null tool_dir.
466 2001-01-16  Jim Wilson  <wilson@redhat.com>
468         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
469         and IA_64.unwind.info.
471 2001-01-16  H.J. Lu  <hjl@gnu.org>
473         * ldlang.c (lang_check): Merge the private data only if the
474         input file has contents.
476 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
478         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
480         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
481         enabling search for libmilli.  On a relocatable link, make .text
482         sections unique.
483         (LDEMUL_AFTER_PARSE): Define.
484         (hppaelf_finish): Correct spelling of relocatable in comments.
486         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
487         rummage through the script for sections on the unique list.
488         Correct length of strncmp for ".note".
489         (gld${EMULATION_NAME}_check_needed): Rearrange function.
491         * ldlang.c (unique_section_list): New var.
492         (unique_section_p): New function.
493         (walk_wild_section): Don't match sections on unique_section_list.
494         (lang_add_unique): New function.
495         Correct spelling of relocatable in comments.
497         * ldlang.h (struct unique_sections): Declare.
498         (unique_section_list): Declare.
499         (unique_section_p): Declare.
500         (lang_add_unique): Declare.
502         * lexsup.c (ld_options): Allow --unique to take an optional arg.
503         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
505         * ld.texinfo (--unique): Update.
507 2001-01-13  Nick Clifton  <nickc@redhat.com>
509         * lexsup.c (parse_args): Remove spurious white space.
511 2001-01-12  Nick Clifton  <nickc@redhat.com>
513         * lexsup.c (parse_args): Update copyright date.
515 2001-01-12  Philip Blundell  <pb@futuretv.com>
517         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
519 2001-01-10  Kazu Hirata  <kazu@hxi.com>
521         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
522         * scripttempl/h8300h.sc: Fix formatting.
523         * scripttempl/h8300s.sc: Likewise.
524         * scripttempl/h8500.sc: Likewise.
525         * scripttempl/h8500b.sc: Likewise.
526         * scripttempl/h8500c.sc: Likewise.
527         * scripttempl/h8500m.sc: Likewise.
528         * scripttempl/h8500s.sc: Likewise.
530 2000-01-07  David O'Brien  <obrien@BSDi.com>
532         * emultempl/elf32.em: Only perform Linux ld hints processing when
533         targeting Linux.
535 2001-01-07  Philip Blundell  <philb@gnu.org>
537         * ld.texinfo (Bug Reporting): Update email address for reports.
539 2000-12-31  Nick Clifton  <nickc@redhat.com>
541         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
542         options by checking for a return value of '?' not -1.
544 2000-12-28  Nick Clifton  <nickc@redhat.com>
546         * lexsup.c (struct ld_option): Add new enum value:
547         EXACTLY_TWO_DASHES.
548         (ld_options[]): Change -omagic, -output and -oformat options
549         to be EXACTLY_TWO_DASHES.
550         (OUTPUT_COUNT): Use ARRAY_SIZE.
551         (parse_args): Change parameter 'argc' to unsigned.
552         Place EXACTLY_TWO_DASHES options into new really_longopts
553         array.
554         If getopt_long_only fails, try calling getopt_long using the
555         really_longopts array.
556         (help): Print a double dash for both EXACTLY_TWO_DASHES and
557         TWO_DASHES options.
559         * ldlex.h: Fix prototype of parse_args.
561         * ld.texinfo: Document that long options starting with 'o'
562         must be preceeded by two dashes.  Change example of a single
563         dashed long option from -oformat to -trace-symbol.
565 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
567         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
568         (longopts[]): New --no-default-excludes option.
569         (gld_${EMULATION_NAME}_list_options): Document.
570         (gld_${EMULATION_NAME}_parse_args): Handle.
572 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
574         * ldlang.c (new_stat): Revert the last beautification with "innocent"
575         whitespace, it breaks the K&R C preprocessor.
577 2000-12-11  DJ Delorie  <dj@redhat.com>
579         * ld.texinfo: Add notes about --whole-archive and gcc.
581 2000-11-18  Fred Fish  <fnf@be.com>
583         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
584         (ld_options): Entry for --allow-shlib-undefined.
585         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
586         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
587         to false.
588         * ld.texinfo: Document new command line switch.
590 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
592         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
593         .fixup is actually read/write.
594         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
595         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
596         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
598 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
600         * NEWS: Add note about x86_64 architecture.
602 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
604         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
605         Set DWARF2 sections to a VMA of zero.
607 2000-12-01      Joel Sherrill <joel@OARcorp.com>
609         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
610         New targets.
611         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
612         (sparc*-*-rtems*): Switched from a.out to ELF.
614 2000-11-30  Jan Hubicka  <jh@suse.cz>
616         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
617         (eelf_x86_64.c): New.
618         * Makefile.in: Regenerate.
619         * configure.tgt: Add support for x86_64-*-linux-gnu*.
620         * emulparams/elf_x86_64.sh: New.
622 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
624         * emulparams/crislinux.sh (ENTRY): Change back to _start.
625         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
627         * scripttempl/crisaout.sc: Change all RELOCATING not related to
628         merging non-a.out sections into CONSTRUCTING.
630 2000-11-28  Nick Clifton  <nickc@redhat.com>
632         * ld.1 (COPYING): Mention that the GNU Free Documentation
633         License is present in the sources, but not the output, and
634         also available from the GNU website.
635         (GNU Free Documentation License): Comment out this section.
637 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
639         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
640         does not use them.
642 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
644         * ld.1: Remove old date so it does not give the impression the manpage
645         is way out of date.
647 2000-11-24  Nick Clifton  <nickc@redhat.com>
649         * configure.tgt (xscale-coff): Add target.
650         (xscale-elf): Add target.
652 2000-11-24  Fred Fish  <fnf@be.com>
654         * ldmain.c (main): Remove redundant init of config.make_executable
655         to true.
657 2000-11-15  Richard Henderson  <rth@redhat.com>
659         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
661 2000-11-14  Kazu Hirata  <kazu@hxi.com>
663         * scripttempl/h8300.sc: Fix formatting.
664         * scripttempl/h8300h.sc: Likewise.
665         * scripttempl/h8300s.sc: Likewise.
667 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
669         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
671 2000-11-09  Philip Blundell  <pb@futuretv.com>
673         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
674         around orphan sections whose names can be represented in C.
676 2000-11-07  Jim Wilson  <wilson@redhat.com>
678         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
679         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
681 2000-11-06  Nick Clifton  <nickc@redhat.com>
683         * ld.texinfo: Add GNU Free Documentation License.
684         * ldint.texinfo: Add GNU Free Documentation License.
685         * ld.1: Add GNU Free Documentation License.
687 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
689         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
690         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
692         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
693         Move 2000-11-02 Makefile.in changes to this file.
694         * Makefile.in: Regenerate.
696 2000-11-03  Nick Clifton  <nickc@redhat.com>
698         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
699         constructors and destructors.
700         * scripttempl/h8300h.sc: Ditto.
701         * scripttempl/h8300s.sc: Ditto.
702         * scripttempl/h8500.sc: Ditto.
703         * scripttempl/h8500b.sc: Ditto.
704         * scripttempl/h8500c.sc: Ditto.
705         * scripttempl/h8500m.sc: Ditto.
706         * scripttempl/h8500s.sc: Ditto.
707         * scripttempl/v850.sc: Ditto.
708         * scripttempl/w65.sc: Ditto.
709         * scripttempl/z8000.sc: Ditto.
711 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
713         * Makefile.in (e_i386_chaos.c): New rule.
714         (ALL_EMULATIONS): Added e_i386_chaos.o.
715         * emulparams/elf_i386_chaos.sh: New file.
716         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
718 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
720         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
721         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
722         Fix sed invocation, so that it coped with '/' in Solaris 64bit
723         library path suffix.
724         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
726 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
728         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
729         for consecutive sections.
731 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
733         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
734         options.
735         * ld.texinfo: Added notes about this new option.
737 2000-10-16  Nick Clifton  <nickc@redhat.com>
739         * emultempl/pe.em (_after_open): Add tests of return values from
740         bfd functions.  Emit appropriate error messages if necessary.
742 2000-10-13  Nick Clifton  <nickc@redhat.com>
744         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
745         local variables - they are not used, but leave in the call to
746         bfd_canonicalize_symtab.
747         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
748         pe_dll_search_prefix.
750 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
752         * emultempl/pe.em (pe_dll_search_prefix): New variable,
753         (longopts): New --dll-search-prefix option.
754         (gld_${EMULATION_NAME}_list_options): Document.
755         (gld_${EMULATION_NAME}_parse_args): Handle.
756         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
757         dynamically, search for a dll named '<prefix><basename>.dll'
758         in preference to 'lib<basename>.dll' if --dll-search-prefix
759         is specified.
761 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
763         * ldlang.c (section_already_linked): Set kept_section instead of
764         sec->comdat->sec.
766 2000-10-10  Kazu Hirata  <kazu@hxi.com>
768         * deffile.h: Fix formatting.
769         * lexsup.c: Likewise.
770         * mri.c: Likewise.
772 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
774         * pe-dll.c (make_one): Do not generate code thunk for DATA
775         exports.
776         (process_def_file): deduce DATA flag for auto-export sumbols.
778 2000-10-09  Kazu Hirata  <kazu@hxi.com>
780         * ld.h: Fix formatting.
781         * ldcref.c: Likewise.
782         * ldctor.h: Likewise.
783         * ldemul.c: Likewise.
784         * ldemul.h: Likewise.
785         * ldexp.c: Likewise.
786         * ldexp.h: Likewise.
787         * ldfile.c: Likewise.
788         * ldfile.h: Likewise.
789         * ldlang.c: Likewise.
790         * ldlang.h: Likewise.
791         * ldmain.c: Likewise.
792         * pe-dll.c: Likewise.
794         * pe-dll.c: Revert some formatting fixes.
796 2000-10-08  Kazu Hirata  <kazu@hxi.com>
798         * pe-dll.c: Fix formatting.
800 2000-10-05  Kazu Hirata  <kazu@hxi.com>
802         * ldlang.c: Fix formatting.
804 2000-10-03  DJ Delorie  <dj@redhat.com>
806         * pe-dll.c (fill_edata): initialize entire block
807         (make_one): fill in correct section.
809 2000-10-03  Kazu Hirata  <kazu@hxi.com>
811         * ldexp.c: Fix formatting.
813 2000-10-02  DJ Delorie  <dj@redhat.com>
815         * emultempl/pe.em (gld_*_after_open): detect case where there two
816         import libraries for same dll; rename one to ensure proper link
817         order.
819         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
820         typo
821         (generate_edata): fix typo
823 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
825         * scripttempl/crisaout.sc (ENTRY): Now __start.
826         (.text): Add default setting for __start.
827         Remove CONSTRUCTORS handling.
828         (/DISCARD/): Add .gnu.warning.*.
829         * emulparams/crislinux.sh (ENTRY): Now __start.
830         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
831         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
832         (ENTRY): Now __start.
833         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
834         (EXECUTABLE_SYMBOLS): Add default setting for __start.
836 2000-09-29  Kazu Hirata  <kazu@hxi.com>
838         * deffile.h: Fix formatting.
839         * ld.h: Likewise.
840         * ldcref.c: Likewise.
841         * ldctor.c: Likewise.
842         * ldctor.h: Likewise.
843         * ldemul.c: Likewise.
844         * ldemul.h: Likewise.
845         * ldexp.c: Likewise.
846         * ldexp.h: Likewise.
847         * ldfile.c: Likewise.
848         * ldfile.h: Likewise.
849         * ldlang.c: Likewise.
850         * ldlang.h: Likewise.
851         * lexsup.c: Likewise.
852         * mri.c: Likewise.
853         * pe-dll.c: Likewise.
855 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
857         * pe-dll.c (process_def_file): Uninitialized data wasn't
858         exported with --export-all-symbols switch.
860 2000-09-28  DJ Delorie  <dj@redhat.com>
862         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
863         noname work properly.
865 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
867         * ld.texinfo (HPPA ELF32): New section.
869         * emultempl/hppaelf.em (group_size): New.
870         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
871         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
872         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
873         options to prevent abbreviations matching.
874         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
875         (PARSE_AND_LIST_ARGS_CASES): Handle it.
877 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
879         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
880         on the m68*-*-elf target.  Make it support COFF input objects.
882 2000-09-21  Kazu Hirata  <kazu@hxi.com>
884         * ldmain.c: Fix formatting.
885         * ldmisc.c: Likewise.
886         * ldver.c: Likewise.
887         * ldwrite.c: Likewise.
889 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
891         * ldwrite.c (clone_section): Silence gcc warnings.
893 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
895         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
896         out of memory failure.
898         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
899         (clone_section): Handle out of memory failures.  Rename var to
900         avoid c++ reserved word.
902 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
904         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
905         stub_name param to stub_sec_name.
906         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
908 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
910         * emultempl/m68kelf.em: New file.
911         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
912         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
913         * Makefile.in: Regenerate.
915 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
917         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
918         only as needed.
920 2000-09-13  Nick Clifton  <nickc@redhat.com>
922         * ldmain.c (multiple_definition): Disable relaxation if
923         multiple symbol definitions are encountered - otherwise the
924         linker could abort with an assertion failure.
926 2000-09-10  Nick Clifton  <nickc@redhat.com>
928         * mri.c: Fix formatting.
930 2000-09-07  H.J. Lu  <hjl@gnu.org>
932         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
933         * configure: Rebuild.
935 2000-09-07  H.J. Lu  <hjl@gnu.org>
937         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
938         * Makefile.in: Rebuild.
940 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
942         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
943         broken list handling.  Create __start_SECNAME and __stop_SECNAME
944         when no place-holder.  Add some comments.  Test both SEC_CODE and
945         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
946         Handle case where no output section statement created.
948 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
950         * configure.tgt (sh-*-linux*): Added.
951         * Makefile.am: Added eshelf_linux and eshlelf_linux.
952         * Makefile.in: Rebuilt.
953         * emulparams/shelf_linux.sh: New file.
954         * emulparams/shlelf_linux.sh: New file.
956 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
958         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
959         try shuffling sections when the orphan happens to be the place
960         holder.  Keep count of unique section names generated so we speed
961         the search for a new name.
963 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
965         * configure: Rebuilt with new libtool.m4.
967 2000-09-05  Nick Clifton  <nickc@redhat.com>
969         * Makefile.in: Regenerate.
970         * aclocal.m4: Regenerate.
971         * configure: Regenerate.
972         * config.in: Regenerate.
973         * po/ld.pot: Regenerate.
975         * ldint.texinfo: Remove CVS revision marker - it foils local
976         comparisons.
978         * emultempl/ticoff.em: Remove extraneous comma.
980 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
982         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
983         to stub section flags.
984         (hppa_for_each_input_file_wrapper): New.
985         (hppa_lang_for_each_input_file): New.
986         (lang_for_each_input_file): Define to call above.
987         (multi_subspace): New.
988         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
989         (PARSE_AND_LIST_PROLOGUE): Define.
990         (PARSE_AND_LIST_LONGOPTS): Define.
991         (PARSE_AND_LIST_OPTIONS): Define.
992         (PARSE_AND_LIST_ARGS_CASES): Define.
993         (hppaelf_finish): Call elf32_hppa_set_gp.
994         (hppaelf_set_output_arch): Remove.
995         (LDEMUL_SET_OUTPUT_ARCH): Remove.
997         * emulparams/hppalinux.sh (ELFSIZE): Define.
998         (MACHINE): Define.
999         (OTHER_READONLY_SECTIONS): Define.
1000         (DATA_PLT): Define.
1001         (GENERATE_SHLIB_SCRIPT): Define.
1003         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
1004         to const throughout.  Change `void *' to `PTR' throughout.
1005         (lang_memory_default): Function is local to file, add `static'.
1007         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1008         (ehppalinux.c): Likewise.
1009         (earmelf.c): Likewise.
1010         (earmelf_linux.c): Likewise.
1011         (earmelf_linux26.c): Likewise.
1012         * Makefile.in: Regenerate.
1014         * ld.h (ld_config_type): Add unique_orphan_sections.
1015         * lexsup.c (OPTION_UNIQUE): Define.
1016         (ld_options): Add "--unique".
1017         (parse_args): Handle it.
1018         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1019         search for an existing output section if unique_orphan_sections is
1020         set.  Make use of bfd_get_unique_section_name rather than
1021         duplicating code here.
1022         * ld.texinfo: Describe --unique.
1024         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1025         optional arg to split-by-file.
1026         (parse_args): Handle them.
1027         * ld.texinfo: Update description of these options.
1028         * ldwrite.c (clone_section): Pass in the section name.  Replace
1029         local code with bfd_get_unique_section_name.
1030         (split_sections): Tidy code and comments.  Use a list traversal
1031         more appropriate to the list construction.  Handle cooked section
1032         sizes.  Split when split_by_reloc reached rather than exceeded.
1033         Track section size and split when split_by_file reached.  Fix
1034         link_order_tail (even though it's not used).
1035         (ldwrite): Modify condition for calling split_sections to suit
1036         changed split_by_reloc and split_by_file.
1037         * ldmain.c (main): Init config.split_by_reloc and
1038         config.split_by_file to -1.
1039         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1040         Change split_by_file to bfd_size_type.
1042 2000-09-02  Nick Clifton  <nickc@redhat.com>
1044         * configure.in: Increase version number to 2.10.91.
1045         * NEWS: Mention new ability to support removal of duplicate DWARF2
1046         debug information.
1047         * configure: Regenerate.
1048         * aclocal.m4: Regenerate.
1049         * config.in: Regenerate.
1051 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1053         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1054         sections.
1055         * scripttempl/elf32avr.sc: Ditto.
1056         * scripttempl/elfd10v.sc: Ditto.
1057         * scripttempl/elfd30v.sc: Ditto.
1058         * scripttempl/elfi370.sc: Ditto.
1059         * scripttempl/elfm68hc11.sc: Ditto.
1060         * scripttempl/elfm68hc12.sc: Ditto.
1061         * scripttempl/elfi386beos.sc: Ditto.
1062         * scripttempl/v850.sc: Ditto.
1064 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1066         * acinclude.m4: Include libtool and gettext macros from the
1067         top level.
1068         * aclocal.m4, configure: Rebuilt.
1070 2000-08-25  Nick Clifton  <nickc@redhat.com>
1072         * ldlang.c (open_output): When choosing the target for a
1073         particular endianness, do nothing if the target is not
1074         supported.
1076 2000-08-25  H.J. Lu  <hjl@gnu.org>
1078         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1079         check -rpath nor LD_RUN_PATH for cross link.
1080         * ld.texinfo: Document the change.
1082 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
1084         * NEWS: Mention support for CRIS.
1086 2000-08-23  H.J. Lu  <hjl@gnu.org>
1088         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1089         the current runpath list from bfd_elf_get_runpath_list ()
1090         before search.
1092 2000-08-22  H.J. Lu  <hjl@gnu.org>
1094         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1095         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1096         LD_LIBRARY_PATH for native linker. Display the needed DSO if
1097         trace_file_tries is non-zero.
1098         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1099         if trace_file_tries is non-zero.
1101         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1102         * NEWS: Mention it.
1104 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
1106         * NEWS: Mention i860 support.
1108 2000-08-14  Andreas Schwab  <schwab@suse.de>
1110         * scripttempl/elf.sc: Fix last change to use correct comment
1111         syntax.
1113 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
1115         * scripttempl/elf.sc: Add a comment giving the correspondence
1116         between sections, per-datum sections, and linkonce sections.  Make
1117         the comment true even for .bss, .sdata, .sdata2, .sbss, and
1118         .sbss2.
1120 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
1122         * emulparams/elf32_i860.sh: New file.
1123         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1124         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1125         (eelf32_i860.c): New rule.
1126         * Makefile.in: Regenerate.
1128 2000-08-10  Nick Clifton  <nickc@cygnus.com>
1130         * emulparams/mipspe.sh (ENTRY): Add definition.
1132 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
1134         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1135         in error message.
1137 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1139         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1140         the final size of .bss section.
1141         * scripttempl/elfm68hc12.sc: Likewise.
1143 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
1145         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1146         gld${EMULATION_NAME}_parse_args for consistency.  Combine
1147         lastoptind and prevoptind vars, and keep track of last optind.
1148         (gld_${EMULATION_NAME}_list_options): Rename to
1149         gld${EMULATION_NAME}_list_options.
1151 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
1153         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1154         (i586-sco-sysv5uw7.1.0).
1156 2000-07-27  H.J. Lu  <hjl@gnu.org>
1158         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1159         (PARSE_AND_LIST_PROLOGUE): New.
1160         (PARSE_AND_LIST_LONGOPTS): Likewise.
1161         (PARSE_AND_LIST_OPTIONS): Likewise.
1162         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1163         (PARSE_AND_LIST_EPILOGUE): Likewise.
1165 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
1167         * emultempl/armelf.em: Elide functions common to elf32.em,
1168         ie. most of the file.
1169         (arm_elf_after_open): New.  Do arm specific things then call
1170         gld${EMULATION_NAME}_after_open.
1171         (arm_elf_before_allocation): New.  Call
1172         gld${EMULATION_NAME}_before_allocation then do arm specifics.
1173         (PARSE_AND_LIST_PROLOGUE): Define.
1174         (PARSE_AND_LIST_SHORTOPTS): Define.
1175         (PARSE_AND_LIST_LONGOPTS): Define.
1176         (PARSE_AND_LIST_OPTIONS): Define.
1177         (PARSE_AND_LIST_ARGS_CASES): Define.
1178         (LDEMUL_AFTER_OPEN): Define.
1179         (LDEMUL_BEFORE_ALLOCATION): Define.
1180         (LDEMUL_BEFORE_PARSE): Define.
1181         (LDEMUL_FINISH): Define.
1183         * emultempl/hppaelf.em: Similarly zap most of this file.
1184         (hppaelf_add_stub_section): Prototype.
1185         (hppaelf_layaout_sections_again): Prototype.
1186         (hook_in_stub): Prototype.
1187         (LDEMUL_SET_OUTPUT_ARCH): Define.
1188         (LDEMUL_FINISH): Define.
1189         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1191         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1192         (EXTRA_EM_FILE): New.
1193         * emulparams/armelf_linux.sh: Likewise.
1194         * emulparams/armelf_linux26.sh: Likewise.
1195         * emulparams/hppalinux.sh: Likewise.
1196         * emulparams/hppaelf.sh: Likewise.
1197         (NOP): Define.
1199         * emultempl/elf32.em: Fix formatting.
1200         (EXTRA_EM_FILE): Source it.
1201         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1202         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1203         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1204         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1205         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1206         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1207         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1208         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1209         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
1210         allow functions in this file to be overridden.
1211         (PARSE_AND_LIST_SHORTOPTS): Handle it.
1213         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1215         * emultempl/elf32.em: Reorganize file.
1217 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
1219         * emulparams/elf64alpha.sh: Implement "-taso" emulation
1220         specific option to fit 64-bit executable in the lower
1221         31-bit address range.  This is done by changing start
1222         address of .interp (the very first section of executable)
1223         and then setting EF_ALPHA_32BIT elf header flag.
1225 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1227         * emultempl/m68kcoff.em: New file.
1228         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1229         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1230         generic.em.
1231         * Makefile.in: Regenerate.
1233 2000-07-20  H.J. Lu  <hjl@gnu.org>
1235         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1236         and "disable-new-dtags" to stop getopt from treating -d/-e as
1237         abbreviations for these options.
1239 2000-07-20  H.J. Lu  <hjl@gnu.org>
1241         * ld.texinfo: Add documentation for --disable-new-dtags and
1242         --enable-new-dtags.
1244         * ldmain.c (main): Initialize link_info.new_dtags to false.
1246         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1247         --disable-new-dtags and --enable-new-dtags.
1248         (gld_${EMULATION_NAME}_list_options): Likewise.
1250 2000-07-05  Kenneth Block  <krblock@computer.org>
1252         * lexsup.c: Add optional style to demangle switch
1253         * ld.texinfo: Document optional style to demangle switch.
1255 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
1257         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1258         ecrislinux.o.
1259         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1260         Regenerate dependencies.
1261         * Makefile.in: Rebuild.
1262         * configure.tgt (cris-*-*): New target.
1263         * emulparams/crisaout.sh, emulparams/criself.sh,
1264         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1265         * po/POTFILES.in, po/ld.pot: Regenerate.
1267 2000-07-20  H.J. Lu  <hjl@gnu.org>
1269         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1270         Print out ignored -z options.
1272 2000-07-19  H.J. Lu  <hjl@gnu.org>
1274         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1275         (PARSE_AND_LIST_PROLOGUE): New.
1276         (PARSE_AND_LIST_LONGOPTS): Likewise.
1277         (PARSE_AND_LIST_OPTIONS): Likewise.
1278         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1280         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1282         * lexsup.c (ld_options): Comment out 'z'.
1283         (parse_args): Likewise.
1285         * emultempl/elf32.em: Include "elf/common.h".
1286         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1287         options.
1288         (gld_${EMULATION_NAME}_list_options): Likewise.
1290         * ld.texinfo: Add documentation for the recognized -z options.
1292 2000-07-19  H.J. Lu  <hjl@gnu.org>
1294         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1295         bfd_elf_set_dt_needed_soname ().
1297 2000-07-18  DJ Delorie  <dj@cygnus.com>
1299         * pe-dll.c (pe_dll_id_target): check object target name also
1301 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
1303         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1304         ${INIT_END} if relocating.
1305         (.fini): Likewise ${FINI_START} and ${FINI_END}.
1307 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
1309         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1310         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1311         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1312         errors introduced by the old dynamic lib search order.
1314 2000-07-17  DJ Delorie  <dj@cygnus.com>
1316         * pe-dll.c (process_def_file): auto-export data items also
1317         (pe_process_import_defs): also see if _imp_ form needed
1319 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
1321         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1322         for dll import libraries
1324 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
1326         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1327         gcc 2.95.2 and later.
1329 2000-07-11  Kazu Hirata  <kazu@hxi.com>
1331         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1332         message.
1334 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1336         * ldemul.h (struct lang_input_statement_struct): Remove forward
1337         declaration.
1338         (struct search_dirs): Likewise.
1339         * ldfile.h (struct lang_input_statement_struct): Likewise.
1340         Protect file from multiple inclusion.
1341         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1342         declaration from macro to file scope.
1344         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1345         * ldgram.y: Likewise here.
1346         * ldlang.c: And here.
1347         * ldmain.c: And here.
1348         * mpw-elfmips.c: And here.
1349         * mpw-eppcmac.c: And here.
1350         * emultempl/aix.em: And here.
1351         * emultempl/armcoff.em: And here.
1352         * emultempl/armelf.em: And here.
1353         * emultempl/armelf_oabi.em: And here.
1354         * emultempl/beos.em: And here.
1355         * emultempl/elf32.em: And here.
1356         * emultempl/hppaelf.em: And here.
1357         * emultempl/linux.em: And here.
1358         * emultempl/lnk960.em: And here.
1359         * emultempl/pe.em: And here.
1360         * emultempl/sunos.em: And here.
1361         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1362         * mpw-idtmips.c: Ditto.
1363         * emultempl/generic.em: Ditto.
1364         * emultempl/gld960.em: Ditto.
1365         * emultempl/gld960c.em: Ditto.
1366         * emultempl/mipsecoff.em: Ditto.
1367         * emultempl/ticoff.em: Ditto.
1368         * emultempl/vanilla.em: Ditto.
1370         * pe-dll.c: Include ldfile.h
1371         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1373         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1374         arguments to bfd_elf32_size_dynamic_sections call.
1375         (gldelf32ebmip_place_orphan): Add missing arguments to
1376         lang_leave_output_section_statement call.
1378 2000-07-10  H.J. Lu  <hjl@gnu.org>
1380         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1381         DLL_SUPPORT.
1382         (strhash): Likewise.
1383         (compute_dll_image_base): Likewise.
1384         (pe_undef_found_sym): Likewise.
1385         (pe_undef_cdecl_match): Likewise.
1386         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1387         argument "arch" with ATTRIBUTE_UNUSED.
1389 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1391         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1393         From  Ryan Bradetich  <rbradetich@uswest.net>
1394         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1396 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
1398         Changes to create multiple linker stubs, positioned immediately
1399         before the section where they are required.
1400         * emultempl/hppaelf.em: Include elf32-hppa.h.
1401         (stub_sec, file_chain): Delete.
1402         (hppaelf_create_output_section_statements): Don't make a stub
1403         section here.
1404         (hook_stub_info): New struct.
1405         (hook_in_stub): New function.
1406         (hppaelf_add_stub_section): New function.
1407         (hppaelf_finish): Do nothing for relocateable links.  Modify the
1408         call to elf32_hppa_size_stubs.  Move code for updating section
1409         layout from here...
1410         (hppaelf_layaout_sections_again): ..to here, a new function.
1412         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1413         broken list handling.  Pass in a pointer to the list.
1414         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1415         for above changes.
1416         (hppaelf_before_parse): Prototype.
1417         (hppaelf_set_output_arch): Prototype.
1418         (hppaelf_create_output_section_statements): Prototype.
1419         (hppaelf_delete_padding_statements): Prototype.
1420         (hppaelf_finish): Prototype.
1422         Merge from elf32.em
1423         * emultempl/hppaelf.em: Include ctype.h.
1424         (struct orphan_save): New.
1425         (gld${EMULATION_NAME}_place_orphan): New.
1426         (output_rel_find): New.
1427         (hppaelf_get_script): Update from elf32.em.
1428         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1429         Change emulation_name field to "${EMULATION_NAME}".  Add
1430         gld${EMULATION_NAME}_place_orphan.
1432         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
1433         ehppalinux.o, sort it.  Regenerate dependencies.
1434         (ehppalinux.c): Depend on hppaelf.em
1435         * Makefile.in: Regenerate.
1437         * configure.tgt: targ_emul=hppalinux for hppa*linux
1439         * emulparams/hppalinux.sh: New.
1440         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1442 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
1444         * lexsup.c (parse_args): Copy section name.
1446 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
1448         * emultempl/pe.em: institute the following search order for
1449         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1450         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
1451         static lib (libfoo.a) if none of the above are found.
1453 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
1455         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1456         (longopts): New --{enable,disable}-auto-image-base options.
1457         (gld_${EMULATION_NAME}_list_options): Document.
1458         (gld_${EMULATION_NAME}_parse): Handle.
1459         (strhash): New static function.
1460         (compute_dll_image_base): New static function.
1461         (gld_${EMULATION_NAME}_set_symbols): Use.
1463 2000-07-05  DJ Delorie  <dj@redhat.com>
1465         * MAINTAINERS: new
1467 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
1469         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1470         * emulparams/elf32btsmip.sh: New file.
1471         * Makefile.am: Add traditional mips target.
1472         * Makefile.in: Rebuild.
1474 2000-07-01  H.J. Lu  <hjl@gnu.org>
1476         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1477         automake to use YLWRAP.
1478         * Makefile.in: Rebuild.
1480 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
1482         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
1483         (CLEANFILES): Add DEPA.
1484         * Makefile.in: Regenerate.
1486 2000-06-30  Timothy Wall  <twall@ppc>
1488         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1489         the page in the upper octet of the address.
1491 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
1493         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1495 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
1497         * NEWS: arm-elf does --gc-sections too.
1499 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
1501         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1502         find one.
1503         * Makefile.in: Regenerate.
1505 2000-06-21  H.J. Lu  <hjl@gnu.org>
1507         * Makefile.am: Rebuild dependency.
1508         * Makefile.in: Rebuild.
1510 2000-06-20  H.J. Lu  <hjl@gnu.org>
1512         * Makefile.am: Rebuild dependency.
1513         * Makefile.in: Rebuild.
1515 2000-06-20  Timothy Wall  <twall@cygnus.com>
1517         * scripttempl/tic54xcoff.sc: New.
1518         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1519         * gen-doc.texi: Add flag for TI COFF.
1520         * ld.texinfo: Add documentation for TI COFF handling switches.
1521         * emultempl/ticoff.em: New. TI COFF handling.
1522         * configure.tgt: Add tic54x target.
1523         * Makefile.am: Add tic54x target.
1524         * Makefile.in: Ditto.
1526 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
1528         * ldmain.c (set_scripts_dir): Correct pointer comparison when
1529         checking for backslashes.
1531 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
1533         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1535 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
1537         * NEWS: Update list of targets supporting --gc-sections.
1539         * scripttempl/elf.sc: KEEP .eh_frame contents.
1540         * scripttempl/elfd30v.sc: Same here.
1542 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
1544         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1545         and m68hc11 (elf).
1546         * Makefile.in: Rebuild.
1547         * configure.tgt: Recognize m68hc12 and m68hc11.
1548         * scripttempl/elfm68hc12.sc: New file.
1549         * emulparams/m68hc12elfb: New emulation.
1550         * emulparams/m68hc12elf: New emulation.
1551         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
1552         (includes a memory.x script to define the ROM and RAM banks).
1553         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1554         New configuration files for support of Motorola 68hc11
1556 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
1558         * ldmain.c (main): Only change SEC_READONLY for final link.
1560 2000-06-13  H.J. Lu  <hjl@gnu.org>
1562         * configure: Regenerate.
1564 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
1566         * configure.in (VERSION): Update to show this is the CVS mainline.
1568 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1570         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1571         input objects to be ECOFF.
1572         (check_sections): einfo takes %B, not %P, to print a BFD name.
1574 2000-06-05  Michael Matz <matz@ifh.de>
1576         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1577         version scripts.
1579         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1581 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
1583         * emulparams/avr1200.sh (STACK): Define as 0.
1584         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1585         * emulparams/avr4433.sh (STACK): Likewise.
1586         * emulparams/avr44x4.sh (STACK): Likewise.
1587         * emulparams/avr85xx.sh (STACK): Likewise.
1588         * emulparams/avrmega103.sh (STACK): Likewise.
1589         * emulparams/avrmega161.sh (STACK): Likewise.
1590         * emulparams/avrmega603.sh (STACK): Likewise.
1591         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1592         (__stack): Define from ${STACK} for main().
1594 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
1596         * Makefile.am: Update dependencies with "make dep-am"
1597         * Makefile.in: Regenerate.
1599 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
1601         * ldmain.c: Include filenames.h.
1602         (set_scripts_dir): Support backslashes in program name.
1604 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
1606         * ldmain.c (main): When deciding if ".text" section should be
1607         read-only, don't forget to reset SEC_READONLY because it
1608         could be already set.
1610 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
1612         * ld.1: Add documentation for new command line option:
1613                 --section-start <sectionname>=<sectionorg>
1614         This is a generic version of -Ttext etc. which accepts
1615         any section name as a parameter instead of just text/data/
1616         bss.
1617         * ld.texinfo: More docs.
1618         * NEWS: More docs.
1619         * lexsup.c: (parse_args): Recognize new command line option.
1620         (ld_options): Add new option.
1622 2000-05-18  H.J. Lu  <hjl@gnu.org>
1624         * lexsup.c (parse_args): `i' == `r', not `q'.
1626 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
1628         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1630 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
1631               Rick Gorton          <gorton@scrugs.lkg.dec.com>
1633         Add support for '-q' == '--emit-relocs' switch.
1634         * ldmain.c (main): Default to false.
1635         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1636         * NEWS: Describe the emitrelocations switch.
1637         * ld.texinfo: Describe the emitrelocations switch.
1639 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
1641         * emultempl/pe.em (_open_dynamic_archive): New function: Search
1642         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1643         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1644         link options.
1646 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
1648         * lexsup.c (parse_args): Update the year in the copyright notice.
1650 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1652         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1653         Replace defines with those from intl/libgettext.h to quieten gcc
1654         warnings.
1656 2000-05-10  H.J. Lu  <hjl@gnu.org>
1658         * ldlang.c (open_input_bfds): Don't load the same file within
1659         a group again if the whole archive has been loaded already.
1661 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
1663         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1664         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1665         strtoul.
1667 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
1669         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1671         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1672         host "ia64-*-linux-gnu*".
1674 2000-04-29  Andreas Jaeger  <aj@suse.de>
1676         * ld.h: Correctly check GCC version.
1678 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
1680         * Makefile.am: Add PA64 support.  Add missing dependencies for
1681         PA32 elf support.
1682         * Makefile.in: Rebuilt.
1683         * configure.tgt: Add PA64 support (currently disabled).
1685 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
1687         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1688         (output_rel_find): New function.
1689         (hold_section, hold_use): Delete.
1690         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1691         hold_interp): Make local to place_orphan.
1692         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1693         rather than place_section to find possible previous use of orphan.
1694         Similarly find the place-holder output sections.  Use returned
1695         value from lang_enter_output_section_statement rather than calling
1696         lang_output_section_statement_lookup.
1697         * emultempl/armelf.em: Same here.
1698         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1700         * ldlang.c (lang_enter_output_section_statement): Return output
1701         section statement.
1702         * ldlang.h (lang_enter_output_section_statement): Change
1703         declaration too.
1705         * ldlang.h (lang_output_section_statement): Export it.
1706         * ldlang.c (lang_output_section_statement): Ditto.
1708 2000-04-24  Nick Clifton  <nickc@cygnus.com>
1710         * ld.texinfo (Output Section Data): Add note that section data
1711         commands cannot appear outside of section directives.
1713 2000-04-2  Matthew Green  <mrg@cygnus.com>
1715         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1717 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
1718                           David Mosberger  <davidm@hpl.hp.com>
1720         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1721         (eelf64_ia64.c): New rule.
1722         * Makefile.in: Rebuild.
1723         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1724         * emulparams/elf64_ia64.sh: New file.
1726 2000-04-21  Richard Henderson  <rth@cygnus.com>
1728         * scripttempl/elfd30v.sc: Place .gcc_except_table.
1730 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
1732         * dep-in.sed: Match space at start of file name, not at end.
1734 2000-04-18  H.J. Lu  <hjl@gnu.org>
1736         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1737         lang_leave_output_section_statement () after calling
1738         lang_enter_output_section_statement ().
1739         * emultempl/armelf.em: Likewise.
1741 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
1743         * emultempl/elf32.em (struct orphan_save): Add section field.
1744         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1745         better order, and place first orphan section as we did before the
1746         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
1747         Don't call make_bfd_section here, let wild_doit do the job for us.
1748         Don't build a statement list when we'll only throw it away.
1749         * emultempl/armelf.em: Ditto.
1750         * emultempl/pe.em: Similarly.
1752 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
1754         * scripttempl/elfppc.sc: Remove.
1755         * emulparams/elf32ppc.sh: Use elf.sc.
1756         * emulparams/elf32lppc.sh: Use elf.sc.
1757         * emulparams/elf32ppclinux.sh: Use elf.sc.
1758         * emulparams/elf32ppcsim.sh: New file.
1759         * emulparams/elf32lppcsim.sh: New file.
1760         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
1761         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1762         * Makefile.in: Regenerate.
1763         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1765 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
1767         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1768         ~SEC_ALLOC sections too.  Init start address of debug sections.
1769         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1770         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1771         Also set all relocateable section start addresses.
1773 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
1775         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1776         Add new BSS_PLT variable for when .plt need not be contained in
1777         the file.  Move _etext so that it is also after .fini, and provide
1778         both etext and _etext with a leading underscore.  Mark the start
1779         and end of .sbss.
1781 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
1783         * emultempl/elf32.em (struct orphan_save): New.
1784         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1785         hold_interp): Make them struct orphan_save.
1786         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1787         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1788         the end of the relevant section list.  Also add associated section
1789         statements to the end of any previous orphan statements.
1790         * emultempl/armelf.em: Similarly.
1791         * emultempl/pe.em: Similarly.
1793 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
1795         * ld.texinfo (Simple Example): Remove extraneous paragraph.
1797 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1799         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1800         --enable-build-warnings option.
1801         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1802         * Makefile.in, configure: Re-generate.
1804 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1806         * po/ld.pot: Regenerate.
1808         * lexsup.c (help): Restore translated part of bug string.
1810         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1811         (DEP): Quote when passing vars to sub-make.  Add warning message
1812         to end.
1813         (DEP1): Rewrite for "gcc -MM".
1814         (CLEANFILES): Add DEP2.
1815         Update dependencies.
1816         * Makefile.in: Regenerate.
1818 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1820         * ld.h: #include "bin-bugs.h"
1821         * lexsup.c (help): Use REPORT_BUGS_TO.
1823 2000-03-27  Denis Chertykov  <denisc@overta.ru>
1825         * configure.tgt (avr-*-*): New target support.
1826         * Makefile.am: Likewise.
1827         * scripttempl/elf32avr.sc: New script file.
1828         * emulparams/avr1200.sh: New file.
1829         * emulparams/avr23xx.sh: New file.
1830         * emulparams/avr4433.sh New file.
1831         * emulparams/avr44x4.sh New file.
1832         * emulparams/avr85xx.sh New file.
1833         * emulparams/avrmega103.sh New file.
1834         * emulparams/avrmega161.sh New file.
1835         * emulparams/avrmega603.sh New file.
1836         * Makefile.in: Regenerate.
1838 2000-03-09  Andreas Jaeger  <aj@suse.de>
1840         * Makefile.am (check-DEJAGNU): Also unset LANG.
1841         * Makefile.in: Rebuild.
1843 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
1845         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1846         archive.
1848 2000-03-02  H.J. Lu  <hjl@gnu.org>
1850         * emulparams/elf32mcore.sh: Include "getopt.h".
1852 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
1854         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1856 2000-03-01  H.J. Lu  <hjl@gnu.org>
1858         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1859         * emulparams/shpe.sh: Likewise.
1861 2000-03-01  Nick Clifton  <nickc@cygnus.com>
1863         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1864         to unused parameters.
1866         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1867         functions only used by DLL code.
1868         (_place_orphan): Initialise 'dollar'.
1870 2000-03-01  H.J. Lu  <hjl@gnu.org>
1872         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1873         indicate if the undefined symbol is a fatal error or not.
1874         Don't delete the output file if "fatal" is false.
1876 2000-02-29  H.J. Lu  <hjl@gnu.org>
1878         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1879         Set LC_COLLATE and LC_ALL to null and export them. It is for
1880         sort which expects the C locale.
1881         Add $(LIBS) to all $(HOSTING_LIBS).
1882         * Makefile.in: Rebuild.
1884 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
1886         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1887         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1888         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1889         (ld_emulation_xfer_struct): Add missing NULL initialiser for
1890         find_potential_libraries.
1892 2000-02-28  Jim Blandy  <jimb@redhat.com>
1894         * ldgram.y (exclude_name_list): Don't require a comma to separate
1895         list entries; the lexer considers commas to be valid part of a
1896         filename, so in something like `foo, bar' the comma is considered
1897         part of the first filename, `foo,'.
1898         * ld.texinfo: Update section on EXCLUDE_FILE lists.
1900 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
1902         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1903         host "i[3456]86-*-freebsdelf*".
1905 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
1907         * scripttempl/i386go32.sc: Move misplaced semicolons.
1909 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
1911         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1912         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1913         (eelf64hppa.c, ehppaelf.c): Remove targets.
1914         * Makefile.in: Rebuild.
1916 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1918         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1919         GNU/Linux/sparc, but keep the default as 32.
1921         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
1922         it default if sparcv9 or sparc64.
1924 2000-02-24  Nick Clifton  <nickc@cygnus.com>
1926         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1927         * Makefile.in: Regenerate.
1928         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1930         * ldemul.h (ld_emulation_xfer_struct): Add new field:
1931         find_potential_libraries.
1932         * ldemul.c (ldemul_find_potential_libraries): New function.
1934         * ldfile.c (ldfile_open_file_search): Allow function to be
1935         exported.
1936         (ldfile_open_file): Call ldemul_find_potential_libraries.
1937         * ldfile.h: Add prototype for ldfile_open_file_search.
1939         * pe-dll.c: Add support for ARM, MIPS and SH targets.
1941         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
1942         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
1944         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1945         (gld_X_find_potential_libraries): New function.  Search for
1946         libraries called "*.lib".
1948         * scripttempl/pe.sc: Add .pdata section.
1950 2000-02-23  Richard Henderson  <rth@cygnus.com>
1952         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1953         Add and use memory regions.
1955 2000-02-23  Linas Vepstas (linas@linas.org)
1957         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1959         * Makefile.am: Add support for Linux/IBM 370.
1960         * configure.tgt: Likewise.
1962         * Makefile.in: Regenerate.
1964 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
1966         * ldlang.c (print_input_section, print_data_statement,
1967         print_reloc_statement, print_padding_statement, insert_pad,
1968         size_input_section, lang_check_section_addresses,
1969         lang_size_sections, lang_do_assignments, lang_set_startof,
1970         lang_one_common): Change `opb' to unsigned.
1971         (lang_do_assignments): Also change `size' to unsigned.
1973 2000-02-16  Richard Henderson  <rth@cygnus.com>
1975         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1977 2000-02-16  Timothy Wall  <twall@cygnus.com>
1979         * mri.c (mri_draw_tree): Add default LMA region argument to call
1980         to lang_leave_output_section_statement.
1981         * ldlang.h: Update prototypes with LMA region arguments.
1982         * ldlang.c (lang_size_sections): Encapsulate region bounds
1983         checking in os_check_region call.
1984         (os_check_region): New function.
1985         (lang_output_section_statement_lookup): Initialize lma_region.
1986         (lang_leave_output_section_statement): Add LMA region argument.
1987         (lang_leave_overlay): Ditto.
1988         * ldgram.y: Handle LMA region syntax.
1989         * ld.texinfo (Output Section Description): Describe LMA region usage.
1990         * emultempl/armelf.em (gld$place_orphan): Add default value for
1991         lma region in call to lang_leave_output_section_statement.
1992         * emultempl/elf32.em (gld$place_orphan): Add default value for
1993         lma region in call to lang_leave_output_section_statement.
1994         * emultempl/pe.em (gld$place_orphan): Add default value for
1995         lma region in call to lang_leave_output_section_statement.
1998 2000-02-04  Timothy Wall  <twall@redhat.com>
2000         * ldlang.c (lang_check_section_addresses): Use bytes instead of
2001         octets when calculating section end addresses.
2003 2000-02-04  Timothy Wall  <twall@redhat.com>
2005         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2007 2000-02-03  Timothy Wall <twall@redhat.com>
2009         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2010         octet count.
2011         * ldlang.c (print_input_section, print_data_statement,
2012         print_reloc_statement, print_padding_statement): Print target
2013         address values and section sizes as bytes, not octets.
2014         (insert_pad) Calculate padding size in octets, and adjust "dot"
2015         by bytes.
2016         (size_input_section) Always adjust "dot" by bytes, not octets.
2017         (lang_check_section_addresses, lang_do_assignments) Adjust
2018         "dot" by bytes, not octets.  Use the larger of the directive size
2019         or octets_per_byte for the number of octets actually allocated in
2020         the output section.
2021         (lang_set_startof) Make sure STARTOF returns a target address.
2022         (lang_one_common) Record size changes in octets.
2023         (lang_abs_symbol_at_end_of) Section end symbol's value is
2024         recorded in target bytes.
2025         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
2026         to be clear about behavior when an octet is smaller than one byte.
2028 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2030         * ldcref.c (output_cref): Don't pass message strings to printf
2031         as format arg.
2032         Update copyright.
2034         * ldmisc.c (vfinfo): Same here.
2035         Update copyright.
2037 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
2039         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2040         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2041         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2042         Add missing NULL initialisers, and comments.
2044         * testsuite/ld-srec/sr3.cc (__rethrow): New.
2046 2000-01-21  Nick Clifton  <nickc@cygnus.com>
2048         * ldlang.c (lang_size_sections): Fix typo in comment.
2050 2000-01-18  H.J. Lu  <hjl@gnu.org>
2052         * ldlang.c (lang_size_sections): Also update the current
2053         address of a region if the SEC_NEVER_LOAD bit is not set.
2055 2000-01-10  Philip Blundell  <pb@futuretv.com>
2057         * configure.tgt (arm*-*-conix*): New target.
2059 2000-01-07  Nick Clifton  <nickc@cygnus.com>
2061         * ld.texinfo (Options): Remind users to preceed linker command
2062         line switches with -Wl, (or whatever is appropriate) if it is
2063         being invoked by a comnpiler driver program.
2064         Fix description of the behaviour of the -n command line switch.
2066 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
2068         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
2069         (name_list): New.
2070         * ld.texinfo (EXCLUDE_FILE): Update documentation.
2071         * ldgram.y (wildcard_spec): Support a list of excluded_files.
2072         (exclude_name_list): New.
2073         ldlang.c (walk_wild_section): Support list of excluded files.
2074         (print_wild_statement): Likewise.
2075         (lang_add_wild): Likewise.
2076         * ldlang.h (lang_wild_statement_type): Likewise.
2077         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2079 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
2081         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2082         (process_def_file): Use.
2083         (pe_dll_compat_implib): New variable.
2084         (make_one): Use.
2086         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2087         pe_dll_compat_implib.
2089         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2090         compat-implib options.
2091         (gld_${EMULATION_NAME}_list_options): List new options.
2092         (gld_${EMULATION_NAME}_parse_args): Handle.
2094         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2095         dll.
2097         * deffilep.y (opt_name): Allow "." in name.
2099 For older changes see ChangeLog-9899
2101 Local Variables:
2102 mode: change-log
2103 left-margin: 8
2104 fill-column: 74
2105 version-control: never
2106 End: