2001-05-24 H.J. Lu <hjl@gnu.org>
[binutils.git] / ld / ChangeLog
blob491cd126a6167356df18a3e7fe770241bbdea684
1 2001-05-24  H.J. Lu  <hjl@gnu.org>
3         * emultempl/stringify.sed: Removed again.
5 2001-05-24  H.J. Lu  <hjl@gnu.org>
7         * emultempl/aix.em (OUTPUT_ARCH): Defined.
8         (gld${EMULATION_NAME}_before_parse): Initialize
9         ldfile_output_architecture, ldfile_output_machine and
10         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
11         * emultempl/beos.em: Likewise.
12         * emultempl/elf32.em: Likewise.
13         * emultempl/linux.em: Likewise.
14         * emultempl/mipsecoff.em: Likewise.
15         * emultempl/pe.em: Likewise.
16         * emultempl/sunos.em: Likewise.
18 2001-05-24 Tom Rix <trix@redhat.com>
20         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file) 
21         udate import file format.
22         (change_symbol_mode) New, same
23         (is_syscall) New, same
24         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
25         * emulparams/aixppc64.sh : same
26         * emulparams/aixrs6.sh : same
27         * emulparams/ppcmacos.sh : same
28         * emultempl/aix.em : use strtoull to parse options
29         * Makefile.am : add eaixppc64 emulation for xcoff64
30         * Makefile.in : same
31         * configure.tgt : same
33         * scripttempl/aix.sc : default text section offset to 0x10000000
34          default data section offset to 0x20000000
35         add .sv3264 and .sv64 pseudo sections
36         loader and debug sections use the currect section offset. 
38         * emultempl/aix.em : Add xcoff64 support
39         Add -binitfini support
40         (gld${EMULATION_NAME}_before_parse) -binitfini 
41         (gld${EMULATION_NAME}_parse_args) same
42         (gld${EMULATION_NAME}_before_allocation) format change for special 
43         sections
45         * emulparams/aixppc64.sh : New file for xcoff64 support
46         
47 2000-01-18  H.J. Lu  <hjl@gnu.org>
49 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
51         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
52         variable to avoid non-portable shell construct.
54 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
56         * ldmain.c (get_emulation): Add -mips5 command line argument.
58 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
60         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
61         (ELF_INTERPRETER_NAME): Define it.
62         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
63         it.
64         * configure.tgt (targ_emul, targ_extra_emuls)
65         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
66         as primary, elf_i386 as extra.
67         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
68         (eelf_i386_ldso.c): New rule.
69         * Makefile.in: Rebuilt.
71 2001-05-22  Nick Clifton  <nickc@redhat.com>
73         * lexsup.c (ld_options):  Allow -I to be an alias for
74         --dynamic-linker.  This is for Solaris compatability.
75         * ld.texinfo: Document that -I can be used.
76         * ld.1: Regenerate.
78 2001-05-16  Alan Modra  <amodra@one.net.au>
80         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
81         whether an input section is the first one assigned to an output
82         section.
83         Assorted formatting fixes.
85 2001-05-14  DJ Delorie  <dj@delorie.com>
87         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
88         * Makefile.in: Ditto.
90 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
92         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
93         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
94         output sections.
95         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
97 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
99         * ldlang.c (lang_process): Call bfd_merge_sections.
101 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
103         * ldgram.y: Fix typo.
105 2001-05-03  H.J. Lu  <hjl@gnu.org>
107         * emultempl/elf32.em: Include "libiberty.h".
108         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
109         basename of the bfd filename.
110         (gld${EMULATION_NAME}_stat_needed): Likewise.
111         (gld${EMULATION_NAME}_try_needed): Likewise.
112         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
114 2001-05-02  H.J. Lu  <hjl@gnu.org>
116         * emultempl/pe.em: Include <ctype.h>.
118 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
120         * emulparams/elf32openrisc.sh: New file.
122         * Makefile.am: Add OpenRISC target.
123         * Makefile.in: Regenerated.
125         * configure.tgt: Add openrisc-*-* mapping.
127 2001-05-02  Nick Clifton  <nickc@redhat.com>
129         * emultempl/aix.em: Replace buystring with xstrdup.
130         * emultempl/beos.em: Replace buystring with xstrdup.
131         
132 2001-05-02  H.J. Lu  <hjl@gnu.org>
134         * ldfile.c: Include "libiberty.h".
135         * ldlex.l: Likewise.
137         * ldmisc.c (buystring): Removed.
138         * ldmisc.h: Likewise.
140         * ldfile.c: Replace buystring with xstrdup.
141         * ldlang.c: Likewise.
142         * ldlex.l: Likewise.
143         * ldmain.c: Likewise.
144         * ldmisc.c: Likewise.
145         * lexsup.c: Likewise.
146         * mpw-eppcmac.c: Likewise.
148 2001-04-30  Andreas Jaeger  <aj@suse.de>
150         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
152 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
154         * ldlang.c (load_symbols): Give emulation a chance
155         to process unrecognized file before fatal error is
156         reported, not after.
158 2001-04-27  Sean McNeil <sean@mcneil.com>
160         * configure.tgt: Add arm-vxworks target.
161         * scripttempl/armcoff.sc: Support .text or .data as a section name
162         prefix.
163         Define _etext.
165 2001-04-13  J.T. Conklin  <jtc@redback.com>
167         * ld.texinfo: Document --fatal-warnings.
168         * ld.1: Regenerate.
170         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
171         warnings have been turned into errors.
172         * lexsup.c (OPTION_WARN_FATAL): Define.
173         (ld_options): Entry for --fatal-warnings.
174         (parse_args): Handle OPTION_WARN_FATAL.
175         * ld.h (ld_config_type): Add fatal_warnings field.
177 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
179         * ldmain.c (main): Default to discard_sec_merge.
180         * lexsup.c (OPTION_DISCARD_NONE): Define.
181         (ld_options): Add --discard-none.
182         (parse_args): Handle OPTION_DISCARD_NONE.
183         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
184         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
185         all its input sections match.
187 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
189         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
190         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
191         (eelf32ltsmip.c): New target.
192         (eelf64btsmip.c): Likewise.
193         (eelf64ltsmip.c): Likewise.
194         * Makefile.in: Regenerated.
196         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
197         target.
198         (mips*-*-linux-gnu*): Likewise.
200         * emulparams/elf32ltsmip.sh: New. Traditional little endian
201         MIPS taget.
202         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
203         target.
204         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
205         endian target.
207 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
209         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
210         correct value of __Stext here.
211         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
212         .startup section.
214         * emulparams/crislinux.sh: Remove FIXME.
216 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
218         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
219         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
221 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
223         * configure.tgt (cris-*-*): Change default emulation to criself.
224         (cris-*-*aout*): New rule.
226 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
228         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
229         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
231 2001-03-26  Andreas Jaeger  <aj@suse.de>
233         * ld.texinfo (Overview): Fix syntax in texi code.
235 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
237         * ld.texinfo: Put @c man indications to generate the ld man page.
238         When generating man, define all the variables.  Define SEEALSO
239         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
240         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
241         (ld.1): Generate from ld.texinfo.
242         * Makefile.in: Regenerate.
244 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
246         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
247           and '-fdata-sections'. Set the VMA of STABS sections to zero.
249 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
251         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
252         is an absolute path look only for this file and not along the path.
254 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
256         * emultempl/elf32.em (OPTION_GROUP): New macro.
257         Add new option Bgroup to longopts.
258         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
259         (gld*_list_options): Add -Bgroup and -z defs.
260         * ld.1: Document -Bgroup and -z defs.
261         * ld.texinfo: Likewise.
263 2001-03-07  Michael Meissner  <meissner@redhat.com>
265         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
266         with sections created by -fdata-sections.
267         (.dynbss,.bss): Ditto.
269 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
271         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
272         after_allocation_default, not gld..._before_allocation.
274 2001-02-28  Matt Hiller  <hiller@redhat.com>
276         * testsuite/ld-scripts/crossref.exp: Initialize flags to
277         [big_or_little_endian].
278         * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
279         in ld invocations.
280         * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
281         -eb, -EL and -el.
282         (is_endian_output_format): New function.
283         (default_ld_link): Set flags to [big_or_little_endian] only if ld
284         is being invoked such that the output format being used is of
285         known endianness.
286         (default_ld_simple_link): Ditto.
288 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
290         * configure.in (BFD_VERSION): New.
291         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
292         * configure: Regenerate.
293         * Makefile.am: Run "make dep-am"
294         * Makefile.in: Regenerate.
296 2001-02-26  Timothy Wall  <twall@cygnus.com>
298         * emulparams/elf64_aix.sh: Add additional read-only sections;
299         uncomment lines which are now required.
301 2001-02-26  H.J. Lu  <hjl@gnu.org>
303         * ldlang.c (open_input_bfds): Set the bfd error handler so
304         that problems can be caught whilst loading symbols.
305         (record_bfd_errors): New function: Report BFD errors and mark
306         the executable output as being invalid.
308 2001-02-22  Timothy Wall  <twall@cygnus.com>
310         * configure.host: Add configuration for ia64-*-aix*.
311         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
312         Add dependencies for eelf64_aix.c.
313         * Makefile.in: Regenerate.
314         * configure.tgt: Add ia64-*-aix* mapping.
315         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
316         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
317         AIX-specific test.
319 2001-02-20  H.J. Lu  <hjl@gnu.org>
321         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
322         false if we found the file.
324 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
326         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
327         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
329 2001-02-18  lars brinkhoff  <lars@nocrew.org>
331         * Makefile.am: Add PDP-11 target.
332         * configure.tgt: Likewise.
333         * emulparams/pdp11.sh: New file.
335 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
337         * configure.host: Add a generic FreeBSD configuration entry such that
338         all [modern] FreeBSD systems on all platforms will look the same.
340 2001-02-14  H.J. Lu  <hjl@gnu.org>
342         * configure.tgt: Remove mention of earmelf_linux26.
344 2001-02-13  Richard Henderson  <rth@redhat.com>
346         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
348 2001-02-13  H.J. Lu  <hjl@gnu.org>
350         * ldexp.h (node_type): Add etree_provided.
351         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
352         type to etree_provided if defined by PROVIDE. Allow updating
353         for etree_provided.
354         (exp_print_tree): Handle etree_provided.
355         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
356         etree_provided.
358 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
360         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
361         .IA_64.unwind.* pattern to unwind table section and
362         .IA_64.unwind_info* pattern to unwind info section.
364 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
366         * Makefile.am: Add linux target for S/390.
367         * Makefile.in: Likewise.
368         * configure.host: Likewise.
369         * configure.tgt: Likewise.
370         * emulparams/elf64_s390.sh: New file.
371         * emulparams/elf_s390.sh: New file.
373 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
375         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
376         targ_extra_libpath.
377         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
379 2001-02-06  Philip Blundell  <philb@gnu.org>
381         * Makefile.am: Remove mention of earmelf_linux26.
382         * Makefile.in: Regenerate.
384 2001-02-04  Philip Blundell  <philb@gnu.org>
386         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
387         * emulparams/armelf_linux26.sh: Delete.
388         * configure.tgt: Remove mention of armelf_linux26 emulation.
390 2001-02-01  Nick Clifton  <nickc@redhat.com>
392         * ld.1: Replace occurances of -oformat with --oformat.
394 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
396         * ldlang.c (lang_leave_overlay): Don't set lma_region when
397         load_base is specified.
399 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
401         * emultempl/elf32.em: Correct spelling in comments and listed
402         options.
404 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
406         * ldlang.c (lang_leave_overlay): Only set lma_region from the
407         default for the first section of a group of overlay sections.
409 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
411         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
412         * Makefile.in: Regenerate.
413         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
414         Check for null tool_dir.
416 2001-01-16  Jim Wilson  <wilson@redhat.com>
418         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
419         and IA_64.unwind.info.
421 2001-01-16  H.J. Lu  <hjl@gnu.org>
423         * ldlang.c (lang_check): Merge the private data only if the
424         input file has contents.
426 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
428         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
430         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
431         enabling search for libmilli.  On a relocatable link, make .text
432         sections unique.
433         (LDEMUL_AFTER_PARSE): Define.
434         (hppaelf_finish): Correct spelling of relocatable in comments.
436         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
437         rummage through the script for sections on the unique list.
438         Correct length of strncmp for ".note".
439         (gld${EMULATION_NAME}_check_needed): Rearrange function.
441         * ldlang.c (unique_section_list): New var.
442         (unique_section_p): New function.
443         (walk_wild_section): Don't match sections on unique_section_list.
444         (lang_add_unique): New function.
445         Correct spelling of relocatable in comments.
447         * ldlang.h (struct unique_sections): Declare.
448         (unique_section_list): Declare.
449         (unique_section_p): Declare.
450         (lang_add_unique): Declare.
452         * lexsup.c (ld_options): Allow --unique to take an optional arg.
453         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
455         * ld.texinfo (--unique): Update.
457 2001-01-13  Nick Clifton  <nickc@redhat.com>
459         * lexsup.c (parse_args): Remove spurious white space.
461 2001-01-12  Nick Clifton  <nickc@redhat.com>
463         * lexsup.c (parse_args): Update copyright date.
465 2001-01-12  Philip Blundell  <pb@futuretv.com>
467         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
469 2001-01-10  Kazu Hirata  <kazu@hxi.com>
471         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
472         * scripttempl/h8300h.sc: Fix formatting.
473         * scripttempl/h8300s.sc: Likewise.
474         * scripttempl/h8500.sc: Likewise.
475         * scripttempl/h8500b.sc: Likewise.
476         * scripttempl/h8500c.sc: Likewise.
477         * scripttempl/h8500m.sc: Likewise.
478         * scripttempl/h8500s.sc: Likewise.
480 2000-01-07  David O'Brien  <obrien@BSDi.com>
482         * emultempl/elf32.em: Only perform Linux ld hints processing when
483         targeting Linux.
485 2001-01-07  Philip Blundell  <philb@gnu.org>
487         * ld.texinfo (Bug Reporting): Update email address for reports.
489 2000-12-31  Nick Clifton  <nickc@redhat.com>
491         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
492         options by checking for a return value of '?' not -1.
494 2000-12-28  Nick Clifton  <nickc@redhat.com>
496         * lexsup.c (struct ld_option): Add new enum value:
497         EXACTLY_TWO_DASHES.
498         (ld_options[]): Change -omagic, -output and -oformat options
499         to be EXACTLY_TWO_DASHES.
500         (OUTPUT_COUNT): Use ARRAY_SIZE.
501         (parse_args): Change parameter 'argc' to unsigned.
502         Place EXACTLY_TWO_DASHES options into new really_longopts
503         array.
504         If getopt_long_only fails, try calling getopt_long using the
505         really_longopts array.
506         (help): Print a double dash for both EXACTLY_TWO_DASHES and
507         TWO_DASHES options.
509         * ldlex.h: Fix prototype of parse_args.
511         * ld.texinfo: Document that long options starting with 'o'
512         must be preceeded by two dashes.  Change example of a single
513         dashed long option from -oformat to -trace-symbol.
515 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
517         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
518         (longopts[]): New --no-default-excludes option.
519         (gld_${EMULATION_NAME}_list_options): Document.
520         (gld_${EMULATION_NAME}_parse_args): Handle.
522 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
524         * ldlang.c (new_stat): Revert the last beautification with "innocent"
525         whitespace, it breaks the K&R C preprocessor.
527 2000-12-11  DJ Delorie  <dj@redhat.com>
529         * ld.texinfo: Add notes about --whole-archive and gcc.
531 2000-11-18  Fred Fish  <fnf@be.com>
533         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
534         (ld_options): Entry for --allow-shlib-undefined.
535         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
536         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
537         to false.
538         * ld.texinfo: Document new command line switch.
540 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
542         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
543         .fixup is actually read/write.
544         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
545         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
546         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
548 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
550         * NEWS: Add note about x86_64 architecture.
552 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
554         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
555         Set DWARF2 sections to a VMA of zero.
557 2000-12-01      Joel Sherrill <joel@OARcorp.com>
559         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
560         New targets.
561         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
562         (sparc*-*-rtems*): Switched from a.out to ELF.
564 2000-11-30  Jan Hubicka  <jh@suse.cz>
566         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
567         (eelf_x86_64.c): New.
568         * Makefile.in: Regenerate.
569         * configure.tgt: Add support for x86_64-*-linux-gnu*.
570         * emulparams/elf_x86_64.sh: New.
572 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
574         * emulparams/crislinux.sh (ENTRY): Change back to _start.
575         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
577         * scripttempl/crisaout.sc: Change all RELOCATING not related to
578         merging non-a.out sections into CONSTRUCTING.
580 2000-11-28  Nick Clifton  <nickc@redhat.com>
582         * ld.1 (COPYING): Mention that the GNU Free Documentation
583         License is present in the sources, but not the output, and
584         also available from the GNU website.
585         (GNU Free Documentation License): Comment out this section.
587 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
589         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
590         does not use them.
592 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
594         * ld.1: Remove old date so it does not give the impression the manpage
595         is way out of date.
597 2000-11-24  Nick Clifton  <nickc@redhat.com>
599         * configure.tgt (xscale-coff): Add target.
600         (xscale-elf): Add target.
602 2000-11-24  Fred Fish  <fnf@be.com>
604         * ldmain.c (main): Remove redundant init of config.make_executable
605         to true.
607 2000-11-15  Richard Henderson  <rth@redhat.com>
609         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
611 2000-11-14  Kazu Hirata  <kazu@hxi.com>
613         * scripttempl/h8300.sc: Fix formatting.
614         * scripttempl/h8300h.sc: Likewise.
615         * scripttempl/h8300s.sc: Likewise.
617 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
619         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
621 2000-11-09  Philip Blundell  <pb@futuretv.com>
623         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
624         around orphan sections whose names can be represented in C.
626 2000-11-07  Jim Wilson  <wilson@redhat.com>
628         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
629         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
631 2000-11-06  Nick Clifton  <nickc@redhat.com>
633         * ld.texinfo: Add GNU Free Documentation License.
634         * ldint.texinfo: Add GNU Free Documentation License.
635         * ld.1: Add GNU Free Documentation License.
637 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
639         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
640         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
642         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
643         Move 2000-11-02 Makefile.in changes to this file.
644         * Makefile.in: Regenerate.
646 2000-11-03  Nick Clifton  <nickc@redhat.com>
648         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
649         constructors and destructors.
650         * scripttempl/h8300h.sc: Ditto.
651         * scripttempl/h8300s.sc: Ditto.
652         * scripttempl/h8500.sc: Ditto.
653         * scripttempl/h8500b.sc: Ditto.
654         * scripttempl/h8500c.sc: Ditto.
655         * scripttempl/h8500m.sc: Ditto.
656         * scripttempl/h8500s.sc: Ditto.
657         * scripttempl/v850.sc: Ditto.
658         * scripttempl/w65.sc: Ditto.
659         * scripttempl/z8000.sc: Ditto.
661 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
663         * Makefile.in (e_i386_chaos.c): New rule.
664         (ALL_EMULATIONS): Added e_i386_chaos.o.
665         * emulparams/elf_i386_chaos.sh: New file.
666         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
668 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
670         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
671         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
672         Fix sed invocation, so that it coped with '/' in Solaris 64bit
673         library path suffix.
674         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
676 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
678         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
679         for consecutive sections.
681 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
683         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
684         options.
685         * ld.texinfo: Added notes about this new option.
687 2000-10-16  Nick Clifton  <nickc@redhat.com>
689         * emultempl/pe.em (_after_open): Add tests of return values from
690         bfd functions.  Emit appropriate error messages if necessary.
692 2000-10-13  Nick Clifton  <nickc@redhat.com>
694         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
695         local variables - they are not used, but leave in the call to
696         bfd_canonicalize_symtab.
697         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
698         pe_dll_search_prefix.
700 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
702         * emultempl/pe.em (pe_dll_search_prefix): New variable,
703         (longopts): New --dll-search-prefix option.
704         (gld_${EMULATION_NAME}_list_options): Document.
705         (gld_${EMULATION_NAME}_parse_args): Handle.
706         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
707         dynamically, search for a dll named '<prefix><basename>.dll'
708         in preference to 'lib<basename>.dll' if --dll-search-prefix
709         is specified.
711 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
713         * ldlang.c (section_already_linked): Set kept_section instead of
714         sec->comdat->sec.
716 2000-10-10  Kazu Hirata  <kazu@hxi.com>
718         * deffile.h: Fix formatting.
719         * lexsup.c: Likewise.
720         * mri.c: Likewise.
722 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
724         * pe-dll.c (make_one): Do not generate code thunk for DATA
725         exports.
726         (process_def_file): deduce DATA flag for auto-export sumbols.
728 2000-10-09  Kazu Hirata  <kazu@hxi.com>
730         * ld.h: Fix formatting.
731         * ldcref.c: Likewise.
732         * ldctor.h: Likewise.
733         * ldemul.c: Likewise.
734         * ldemul.h: Likewise.
735         * ldexp.c: Likewise.
736         * ldexp.h: Likewise.
737         * ldfile.c: Likewise.
738         * ldfile.h: Likewise.
739         * ldlang.c: Likewise.
740         * ldlang.h: Likewise.
741         * ldmain.c: Likewise.
742         * pe-dll.c: Likewise.
744         * pe-dll.c: Revert some formatting fixes.
746 2000-10-08  Kazu Hirata  <kazu@hxi.com>
748         * pe-dll.c: Fix formatting.
750 2000-10-05  Kazu Hirata  <kazu@hxi.com>
752         * ldlang.c: Fix formatting.
754 2000-10-03  DJ Delorie  <dj@redhat.com>
756         * pe-dll.c (fill_edata): initialize entire block
757         (make_one): fill in correct section.
759 2000-10-03  Kazu Hirata  <kazu@hxi.com>
761         * ldexp.c: Fix formatting.
763 2000-10-02  DJ Delorie  <dj@redhat.com>
765         * emultempl/pe.em (gld_*_after_open): detect case where there two
766         import libraries for same dll; rename one to ensure proper link
767         order.
769         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
770         typo
771         (generate_edata): fix typo
773 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
775         * scripttempl/crisaout.sc (ENTRY): Now __start.
776         (.text): Add default setting for __start.
777         Remove CONSTRUCTORS handling.
778         (/DISCARD/): Add .gnu.warning.*.
779         * emulparams/crislinux.sh (ENTRY): Now __start.
780         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
781         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
782         (ENTRY): Now __start.
783         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
784         (EXECUTABLE_SYMBOLS): Add default setting for __start.
786 2000-09-29  Kazu Hirata  <kazu@hxi.com>
788         * deffile.h: Fix formatting.
789         * ld.h: Likewise.
790         * ldcref.c: Likewise.
791         * ldctor.c: Likewise.
792         * ldctor.h: Likewise.
793         * ldemul.c: Likewise.
794         * ldemul.h: Likewise.
795         * ldexp.c: Likewise.
796         * ldexp.h: Likewise.
797         * ldfile.c: Likewise.
798         * ldfile.h: Likewise.
799         * ldlang.c: Likewise.
800         * ldlang.h: Likewise.
801         * lexsup.c: Likewise.
802         * mri.c: Likewise.
803         * pe-dll.c: Likewise.
805 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
807         * pe-dll.c (process_def_file): Uninitialized data wasn't
808         exported with --export-all-symbols switch.
810 2000-09-28  DJ Delorie  <dj@redhat.com>
812         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
813         noname work properly.
815 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
817         * ld.texinfo (HPPA ELF32): New section.
819         * emultempl/hppaelf.em (group_size): New.
820         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
821         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
822         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
823         options to prevent abbreviations matching.
824         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
825         (PARSE_AND_LIST_ARGS_CASES): Handle it.
827 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
829         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
830         on the m68*-*-elf target.  Make it support COFF input objects.
832 2000-09-21  Kazu Hirata  <kazu@hxi.com>
834         * ldmain.c: Fix formatting.
835         * ldmisc.c: Likewise.
836         * ldver.c: Likewise.
837         * ldwrite.c: Likewise.
839 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
841         * ldwrite.c (clone_section): Silence gcc warnings.
843 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
845         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
846         out of memory failure.
848         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
849         (clone_section): Handle out of memory failures.  Rename var to
850         avoid c++ reserved word.
852 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
854         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
855         stub_name param to stub_sec_name.
856         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
858 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
860         * emultempl/m68kelf.em: New file.
861         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
862         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
863         * Makefile.in: Regenerate.
865 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
867         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
868         only as needed.
870 2000-09-13  Nick Clifton  <nickc@redhat.com>
872         * ldmain.c (multiple_definition): Disable relaxation if
873         multiple symbol definitions are encountered - otherwise the
874         linker could abort with an assertion failure.
876 2000-09-10  Nick Clifton  <nickc@redhat.com>
878         * mri.c: Fix formatting.
880 2000-09-07  H.J. Lu  <hjl@gnu.org>
882         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
883         * configure: Rebuild.
885 2000-09-07  H.J. Lu  <hjl@gnu.org>
887         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
888         * Makefile.in: Rebuild.
890 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
892         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
893         broken list handling.  Create __start_SECNAME and __stop_SECNAME
894         when no place-holder.  Add some comments.  Test both SEC_CODE and
895         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
896         Handle case where no output section statement created.
898 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
900         * configure.tgt (sh-*-linux*): Added.
901         * Makefile.am: Added eshelf_linux and eshlelf_linux.
902         * Makefile.in: Rebuilt.
903         * emulparams/shelf_linux.sh: New file.
904         * emulparams/shlelf_linux.sh: New file.
906 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
908         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
909         try shuffling sections when the orphan happens to be the place
910         holder.  Keep count of unique section names generated so we speed
911         the search for a new name.
913 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
915         * configure: Rebuilt with new libtool.m4.
917 2000-09-05  Nick Clifton  <nickc@redhat.com>
919         * Makefile.in: Regenerate.
920         * aclocal.m4: Regenerate.
921         * configure: Regenerate.
922         * config.in: Regenerate.
923         * po/ld.pot: Regenerate.
925         * ldint.texinfo: Remove CVS revision marker - it foils local
926         comparisons.
928         * emultempl/ticoff.em: Remove extraneous comma.
930 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
932         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
933         to stub section flags.
934         (hppa_for_each_input_file_wrapper): New.
935         (hppa_lang_for_each_input_file): New.
936         (lang_for_each_input_file): Define to call above.
937         (multi_subspace): New.
938         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
939         (PARSE_AND_LIST_PROLOGUE): Define.
940         (PARSE_AND_LIST_LONGOPTS): Define.
941         (PARSE_AND_LIST_OPTIONS): Define.
942         (PARSE_AND_LIST_ARGS_CASES): Define.
943         (hppaelf_finish): Call elf32_hppa_set_gp.
944         (hppaelf_set_output_arch): Remove.
945         (LDEMUL_SET_OUTPUT_ARCH): Remove.
947         * emulparams/hppalinux.sh (ELFSIZE): Define.
948         (MACHINE): Define.
949         (OTHER_READONLY_SECTIONS): Define.
950         (DATA_PLT): Define.
951         (GENERATE_SHLIB_SCRIPT): Define.
953         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
954         to const throughout.  Change `void *' to `PTR' throughout.
955         (lang_memory_default): Function is local to file, add `static'.
957         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
958         (ehppalinux.c): Likewise.
959         (earmelf.c): Likewise.
960         (earmelf_linux.c): Likewise.
961         (earmelf_linux26.c): Likewise.
962         * Makefile.in: Regenerate.
964         * ld.h (ld_config_type): Add unique_orphan_sections.
965         * lexsup.c (OPTION_UNIQUE): Define.
966         (ld_options): Add "--unique".
967         (parse_args): Handle it.
968         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
969         search for an existing output section if unique_orphan_sections is
970         set.  Make use of bfd_get_unique_section_name rather than
971         duplicating code here.
972         * ld.texinfo: Describe --unique.
974         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
975         optional arg to split-by-file.
976         (parse_args): Handle them.
977         * ld.texinfo: Update description of these options.
978         * ldwrite.c (clone_section): Pass in the section name.  Replace
979         local code with bfd_get_unique_section_name.
980         (split_sections): Tidy code and comments.  Use a list traversal
981         more appropriate to the list construction.  Handle cooked section
982         sizes.  Split when split_by_reloc reached rather than exceeded.
983         Track section size and split when split_by_file reached.  Fix
984         link_order_tail (even though it's not used).
985         (ldwrite): Modify condition for calling split_sections to suit
986         changed split_by_reloc and split_by_file.
987         * ldmain.c (main): Init config.split_by_reloc and
988         config.split_by_file to -1.
989         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
990         Change split_by_file to bfd_size_type.
992 2000-09-02  Nick Clifton  <nickc@redhat.com>
994         * configure.in: Increase version number to 2.10.91.
995         * NEWS: Mention new ability to support removal of duplicate DWARF2
996         debug information.
997         * configure: Regenerate.
998         * aclocal.m4: Regenerate.
999         * config.in: Regenerate.
1001 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1003         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1004         sections.
1005         * scripttempl/elf32avr.sc: Ditto.
1006         * scripttempl/elfd10v.sc: Ditto.
1007         * scripttempl/elfd30v.sc: Ditto.
1008         * scripttempl/elfi370.sc: Ditto.
1009         * scripttempl/elfm68hc11.sc: Ditto.
1010         * scripttempl/elfm68hc12.sc: Ditto.
1011         * scripttempl/elfi386beos.sc: Ditto.
1012         * scripttempl/v850.sc: Ditto.
1014 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1016         * acinclude.m4: Include libtool and gettext macros from the
1017         top level.
1018         * aclocal.m4, configure: Rebuilt.
1020 2000-08-25  Nick Clifton  <nickc@redhat.com>
1022         * ldlang.c (open_output): When choosing the target for a
1023         particular endianness, do nothing if the target is not
1024         supported.
1026 2000-08-25  H.J. Lu  <hjl@gnu.org>
1028         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1029         check -rpath nor LD_RUN_PATH for cross link.
1030         * ld.texinfo: Document the change.
1032 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
1034         * NEWS: Mention support for CRIS.
1036 2000-08-23  H.J. Lu  <hjl@gnu.org>
1038         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1039         the current runpath list from bfd_elf_get_runpath_list ()
1040         before search.
1042 2000-08-22  H.J. Lu  <hjl@gnu.org>
1044         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1045         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1046         LD_LIBRARY_PATH for native linker. Display the needed DSO if
1047         trace_file_tries is non-zero.
1048         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1049         if trace_file_tries is non-zero.
1051         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1052         * NEWS: Mention it.
1054 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
1056         * NEWS: Mention i860 support.
1058 2000-08-14  Andreas Schwab  <schwab@suse.de>
1060         * scripttempl/elf.sc: Fix last change to use correct comment
1061         syntax.
1063 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
1065         * scripttempl/elf.sc: Add a comment giving the correspondence
1066         between sections, per-datum sections, and linkonce sections.  Make
1067         the comment true even for .bss, .sdata, .sdata2, .sbss, and
1068         .sbss2.
1070 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
1072         * emulparams/elf32_i860.sh: New file.
1073         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1074         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1075         (eelf32_i860.c): New rule.
1076         * Makefile.in: Regenerate.
1078 2000-08-10  Nick Clifton  <nickc@cygnus.com>
1080         * emulparams/mipspe.sh (ENTRY): Add definition.
1082 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
1084         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1085         in error message.
1087 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1089         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1090         the final size of .bss section.
1091         * scripttempl/elfm68hc12.sc: Likewise.
1093 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
1095         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1096         gld${EMULATION_NAME}_parse_args for consistency.  Combine
1097         lastoptind and prevoptind vars, and keep track of last optind.
1098         (gld_${EMULATION_NAME}_list_options): Rename to
1099         gld${EMULATION_NAME}_list_options.
1101 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
1103         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1104         (i586-sco-sysv5uw7.1.0).
1106 2000-07-27  H.J. Lu  <hjl@gnu.org>
1108         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1109         (PARSE_AND_LIST_PROLOGUE): New.
1110         (PARSE_AND_LIST_LONGOPTS): Likewise.
1111         (PARSE_AND_LIST_OPTIONS): Likewise.
1112         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1113         (PARSE_AND_LIST_EPILOGUE): Likewise.
1115 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
1117         * emultempl/armelf.em: Elide functions common to elf32.em,
1118         ie. most of the file.
1119         (arm_elf_after_open): New.  Do arm specific things then call
1120         gld${EMULATION_NAME}_after_open.
1121         (arm_elf_before_allocation): New.  Call
1122         gld${EMULATION_NAME}_before_allocation then do arm specifics.
1123         (PARSE_AND_LIST_PROLOGUE): Define.
1124         (PARSE_AND_LIST_SHORTOPTS): Define.
1125         (PARSE_AND_LIST_LONGOPTS): Define.
1126         (PARSE_AND_LIST_OPTIONS): Define.
1127         (PARSE_AND_LIST_ARGS_CASES): Define.
1128         (LDEMUL_AFTER_OPEN): Define.
1129         (LDEMUL_BEFORE_ALLOCATION): Define.
1130         (LDEMUL_BEFORE_PARSE): Define.
1131         (LDEMUL_FINISH): Define.
1133         * emultempl/hppaelf.em: Similarly zap most of this file.
1134         (hppaelf_add_stub_section): Prototype.
1135         (hppaelf_layaout_sections_again): Prototype.
1136         (hook_in_stub): Prototype.
1137         (LDEMUL_SET_OUTPUT_ARCH): Define.
1138         (LDEMUL_FINISH): Define.
1139         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1141         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1142         (EXTRA_EM_FILE): New.
1143         * emulparams/armelf_linux.sh: Likewise.
1144         * emulparams/armelf_linux26.sh: Likewise.
1145         * emulparams/hppalinux.sh: Likewise.
1146         * emulparams/hppaelf.sh: Likewise.
1147         (NOP): Define.
1149         * emultempl/elf32.em: Fix formatting.
1150         (EXTRA_EM_FILE): Source it.
1151         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1152         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1153         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1154         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1155         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1156         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1157         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1158         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1159         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
1160         allow functions in this file to be overridden.
1161         (PARSE_AND_LIST_SHORTOPTS): Handle it.
1163         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1165         * emultempl/elf32.em: Reorganize file.
1167 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
1169         * emulparams/elf64alpha.sh: Implement "-taso" emulation
1170         specific option to fit 64-bit executable in the lower
1171         31-bit address range.  This is done by changing start
1172         address of .interp (the very first section of executable)
1173         and then setting EF_ALPHA_32BIT elf header flag.
1175 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1177         * emultempl/m68kcoff.em: New file.
1178         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1179         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1180         generic.em.
1181         * Makefile.in: Regenerate.
1183 2000-07-20  H.J. Lu  <hjl@gnu.org>
1185         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1186         and "disable-new-dtags" to stop getopt from treating -d/-e as
1187         abbreviations for these options.
1189 2000-07-20  H.J. Lu  <hjl@gnu.org>
1191         * ld.texinfo: Add documentation for --disable-new-dtags and
1192         --enable-new-dtags.
1194         * ldmain.c (main): Initialize link_info.new_dtags to false.
1196         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1197         --disable-new-dtags and --enable-new-dtags.
1198         (gld_${EMULATION_NAME}_list_options): Likewise.
1200 2000-07-05  Kenneth Block  <krblock@computer.org>
1202         * lexsup.c: Add optional style to demangle switch
1203         * ld.texinfo: Document optional style to demangle switch.
1205 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
1207         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1208         ecrislinux.o.
1209         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1210         Regenerate dependencies.
1211         * Makefile.in: Rebuild.
1212         * configure.tgt (cris-*-*): New target.
1213         * emulparams/crisaout.sh, emulparams/criself.sh,
1214         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1215         * po/POTFILES.in, po/ld.pot: Regenerate.
1217 2000-07-20  H.J. Lu  <hjl@gnu.org>
1219         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1220         Print out ignored -z options.
1222 2000-07-19  H.J. Lu  <hjl@gnu.org>
1224         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1225         (PARSE_AND_LIST_PROLOGUE): New.
1226         (PARSE_AND_LIST_LONGOPTS): Likewise.
1227         (PARSE_AND_LIST_OPTIONS): Likewise.
1228         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1230         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1232         * lexsup.c (ld_options): Comment out 'z'.
1233         (parse_args): Likewise.
1235         * emultempl/elf32.em: Include "elf/common.h".
1236         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1237         options.
1238         (gld_${EMULATION_NAME}_list_options): Likewise.
1240         * ld.texinfo: Add documentation for the recognized -z options.
1242 2000-07-19  H.J. Lu  <hjl@gnu.org>
1244         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1245         bfd_elf_set_dt_needed_soname ().
1247 2000-07-18  DJ Delorie  <dj@cygnus.com>
1249         * pe-dll.c (pe_dll_id_target): check object target name also
1251 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
1253         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1254         ${INIT_END} if relocating.
1255         (.fini): Likewise ${FINI_START} and ${FINI_END}.
1257 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
1259         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1260         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1261         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1262         errors introduced by the old dynamic lib search order.
1264 2000-07-17  DJ Delorie  <dj@cygnus.com>
1266         * pe-dll.c (process_def_file): auto-export data items also
1267         (pe_process_import_defs): also see if _imp_ form needed
1269 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
1271         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1272         for dll import libraries
1274 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
1276         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1277         gcc 2.95.2 and later.
1279 2000-07-11  Kazu Hirata  <kazu@hxi.com>
1281         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1282         message.
1284 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1286         * ldemul.h (struct lang_input_statement_struct): Remove forward
1287         declaration.
1288         (struct search_dirs): Likewise.
1289         * ldfile.h (struct lang_input_statement_struct): Likewise.
1290         Protect file from multiple inclusion.
1291         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1292         declaration from macro to file scope.
1294         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1295         * ldgram.y: Likewise here.
1296         * ldlang.c: And here.
1297         * ldmain.c: And here.
1298         * mpw-elfmips.c: And here.
1299         * mpw-eppcmac.c: And here.
1300         * emultempl/aix.em: And here.
1301         * emultempl/armcoff.em: And here.
1302         * emultempl/armelf.em: And here.
1303         * emultempl/armelf_oabi.em: And here.
1304         * emultempl/beos.em: And here.
1305         * emultempl/elf32.em: And here.
1306         * emultempl/hppaelf.em: And here.
1307         * emultempl/linux.em: And here.
1308         * emultempl/lnk960.em: And here.
1309         * emultempl/pe.em: And here.
1310         * emultempl/sunos.em: And here.
1311         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1312         * mpw-idtmips.c: Ditto.
1313         * emultempl/generic.em: Ditto.
1314         * emultempl/gld960.em: Ditto.
1315         * emultempl/gld960c.em: Ditto.
1316         * emultempl/mipsecoff.em: Ditto.
1317         * emultempl/ticoff.em: Ditto.
1318         * emultempl/vanilla.em: Ditto.
1320         * pe-dll.c: Include ldfile.h
1321         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1323         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1324         arguments to bfd_elf32_size_dynamic_sections call.
1325         (gldelf32ebmip_place_orphan): Add missing arguments to
1326         lang_leave_output_section_statement call.
1328 2000-07-10  H.J. Lu  <hjl@gnu.org>
1330         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1331         DLL_SUPPORT.
1332         (strhash): Likewise.
1333         (compute_dll_image_base): Likewise.
1334         (pe_undef_found_sym): Likewise.
1335         (pe_undef_cdecl_match): Likewise.
1336         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1337         argument "arch" with ATTRIBUTE_UNUSED.
1339 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1341         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1343         From  Ryan Bradetich  <rbradetich@uswest.net>
1344         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1346 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
1348         Changes to create multiple linker stubs, positioned immediately
1349         before the section where they are required.
1350         * emultempl/hppaelf.em: Include elf32-hppa.h.
1351         (stub_sec, file_chain): Delete.
1352         (hppaelf_create_output_section_statements): Don't make a stub
1353         section here.
1354         (hook_stub_info): New struct.
1355         (hook_in_stub): New function.
1356         (hppaelf_add_stub_section): New function.
1357         (hppaelf_finish): Do nothing for relocateable links.  Modify the
1358         call to elf32_hppa_size_stubs.  Move code for updating section
1359         layout from here...
1360         (hppaelf_layaout_sections_again): ..to here, a new function.
1362         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1363         broken list handling.  Pass in a pointer to the list.
1364         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1365         for above changes.
1366         (hppaelf_before_parse): Prototype.
1367         (hppaelf_set_output_arch): Prototype.
1368         (hppaelf_create_output_section_statements): Prototype.
1369         (hppaelf_delete_padding_statements): Prototype.
1370         (hppaelf_finish): Prototype.
1372         Merge from elf32.em
1373         * emultempl/hppaelf.em: Include ctype.h.
1374         (struct orphan_save): New.
1375         (gld${EMULATION_NAME}_place_orphan): New.
1376         (output_rel_find): New.
1377         (hppaelf_get_script): Update from elf32.em.
1378         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1379         Change emulation_name field to "${EMULATION_NAME}".  Add
1380         gld${EMULATION_NAME}_place_orphan.
1382         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
1383         ehppalinux.o, sort it.  Regenerate dependencies.
1384         (ehppalinux.c): Depend on hppaelf.em
1385         * Makefile.in: Regenerate.
1387         * configure.tgt: targ_emul=hppalinux for hppa*linux
1389         * emulparams/hppalinux.sh: New.
1390         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1392 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
1394         * lexsup.c (parse_args): Copy section name.
1396 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
1398         * emultempl/pe.em: institute the following search order for
1399         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1400         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
1401         static lib (libfoo.a) if none of the above are found.
1403 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
1405         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1406         (longopts): New --{enable,disable}-auto-image-base options.
1407         (gld_${EMULATION_NAME}_list_options): Document.
1408         (gld_${EMULATION_NAME}_parse): Handle.
1409         (strhash): New static function.
1410         (compute_dll_image_base): New static function.
1411         (gld_${EMULATION_NAME}_set_symbols): Use.
1413 2000-07-05  DJ Delorie  <dj@redhat.com>
1415         * MAINTAINERS: new
1417 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
1419         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1420         * emulparams/elf32btsmip.sh: New file.
1421         * Makefile.am: Add traditional mips target.
1422         * Makefile.in: Rebuild.
1424 2000-07-01  H.J. Lu  <hjl@gnu.org>
1426         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1427         automake to use YLWRAP.
1428         * Makefile.in: Rebuild.
1430 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
1432         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
1433         (CLEANFILES): Add DEPA.
1434         * Makefile.in: Regenerate.
1436 2000-06-30  Timothy Wall  <twall@ppc>
1438         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1439         the page in the upper octet of the address.
1441 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
1443         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1445 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
1447         * NEWS: arm-elf does --gc-sections too.
1449 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
1451         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1452         find one.
1453         * Makefile.in: Regenerate.
1455 2000-06-21  H.J. Lu  <hjl@gnu.org>
1457         * Makefile.am: Rebuild dependency.
1458         * Makefile.in: Rebuild.
1460 2000-06-20  H.J. Lu  <hjl@gnu.org>
1462         * Makefile.am: Rebuild dependency.
1463         * Makefile.in: Rebuild.
1465 2000-06-20  Timothy Wall  <twall@cygnus.com>
1467         * scripttempl/tic54xcoff.sc: New.
1468         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1469         * gen-doc.texi: Add flag for TI COFF.
1470         * ld.texinfo: Add documentation for TI COFF handling switches.
1471         * emultempl/ticoff.em: New. TI COFF handling.
1472         * configure.tgt: Add tic54x target.
1473         * Makefile.am: Add tic54x target.
1474         * Makefile.in: Ditto.
1476 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
1478         * ldmain.c (set_scripts_dir): Correct pointer comparison when
1479         checking for backslashes.
1481 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
1483         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1485 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
1487         * NEWS: Update list of targets supporting --gc-sections.
1489         * scripttempl/elf.sc: KEEP .eh_frame contents.
1490         * scripttempl/elfd30v.sc: Same here.
1492 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
1494         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1495         and m68hc11 (elf).
1496         * Makefile.in: Rebuild.
1497         * configure.tgt: Recognize m68hc12 and m68hc11.
1498         * scripttempl/elfm68hc12.sc: New file.
1499         * emulparams/m68hc12elfb: New emulation.
1500         * emulparams/m68hc12elf: New emulation.
1501         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
1502         (includes a memory.x script to define the ROM and RAM banks).
1503         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1504         New configuration files for support of Motorola 68hc11
1506 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
1508         * ldmain.c (main): Only change SEC_READONLY for final link.
1510 2000-06-13  H.J. Lu  <hjl@gnu.org>
1512         * configure: Regenerate.
1514 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
1516         * configure.in (VERSION): Update to show this is the CVS mainline.
1518 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1520         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1521         input objects to be ECOFF.
1522         (check_sections): einfo takes %B, not %P, to print a BFD name.
1524 2000-06-05  Michael Matz <matz@ifh.de>
1526         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1527         version scripts.
1529         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1531 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
1533         * emulparams/avr1200.sh (STACK): Define as 0.
1534         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1535         * emulparams/avr4433.sh (STACK): Likewise.
1536         * emulparams/avr44x4.sh (STACK): Likewise.
1537         * emulparams/avr85xx.sh (STACK): Likewise.
1538         * emulparams/avrmega103.sh (STACK): Likewise.
1539         * emulparams/avrmega161.sh (STACK): Likewise.
1540         * emulparams/avrmega603.sh (STACK): Likewise.
1541         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1542         (__stack): Define from ${STACK} for main().
1544 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
1546         * Makefile.am: Update dependencies with "make dep-am"
1547         * Makefile.in: Regenerate.
1549 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
1551         * ldmain.c: Include filenames.h.
1552         (set_scripts_dir): Support backslashes in program name.
1554 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
1556         * ldmain.c (main): When deciding if ".text" section should be
1557         read-only, don't forget to reset SEC_READONLY because it
1558         could be already set.
1560 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
1562         * ld.1: Add documentation for new command line option:
1563                 --section-start <sectionname>=<sectionorg>
1564         This is a generic version of -Ttext etc. which accepts
1565         any section name as a parameter instead of just text/data/
1566         bss.
1567         * ld.texinfo: More docs.
1568         * NEWS: More docs.
1569         * lexsup.c: (parse_args): Recognize new command line option.
1570         (ld_options): Add new option.
1572 2000-05-18  H.J. Lu  <hjl@gnu.org>
1574         * lexsup.c (parse_args): `i' == `r', not `q'.
1576 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
1578         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1580 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
1581               Rick Gorton          <gorton@scrugs.lkg.dec.com>
1583         Add support for '-q' == '--emit-relocs' switch.
1584         * ldmain.c (main): Default to false.
1585         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1586         * NEWS: Describe the emitrelocations switch.
1587         * ld.texinfo: Describe the emitrelocations switch.
1589 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
1591         * emultempl/pe.em (_open_dynamic_archive): New function: Search
1592         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1593         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1594         link options.
1596 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
1598         * lexsup.c (parse_args): Update the year in the copyright notice.
1600 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1602         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1603         Replace defines with those from intl/libgettext.h to quieten gcc
1604         warnings.
1606 2000-05-10  H.J. Lu  <hjl@gnu.org>
1608         * ldlang.c (open_input_bfds): Don't load the same file within
1609         a group again if the whole archive has been loaded already.
1611 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
1613         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1614         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1615         strtoul.
1617 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
1619         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1621         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1622         host "ia64-*-linux-gnu*".
1624 2000-04-29  Andreas Jaeger  <aj@suse.de>
1626         * ld.h: Correctly check GCC version.
1628 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
1630         * Makefile.am: Add PA64 support.  Add missing dependencies for
1631         PA32 elf support.
1632         * Makefile.in: Rebuilt.
1633         * configure.tgt: Add PA64 support (currently disabled).
1635 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
1637         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1638         (output_rel_find): New function.
1639         (hold_section, hold_use): Delete.
1640         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1641         hold_interp): Make local to place_orphan.
1642         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1643         rather than place_section to find possible previous use of orphan.
1644         Similarly find the place-holder output sections.  Use returned
1645         value from lang_enter_output_section_statement rather than calling
1646         lang_output_section_statement_lookup.
1647         * emultempl/armelf.em: Same here.
1648         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1650         * ldlang.c (lang_enter_output_section_statement): Return output
1651         section statement.
1652         * ldlang.h (lang_enter_output_section_statement): Change
1653         declaration too.
1655         * ldlang.h (lang_output_section_statement): Export it.
1656         * ldlang.c (lang_output_section_statement): Ditto.
1658 2000-04-24  Nick Clifton  <nickc@cygnus.com>
1660         * ld.texinfo (Output Section Data): Add note that section data
1661         commands cannot appear outside of section directives.
1663 2000-04-2  Matthew Green  <mrg@cygnus.com>
1665         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1667 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
1668                           David Mosberger  <davidm@hpl.hp.com>
1670         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1671         (eelf64_ia64.c): New rule.
1672         * Makefile.in: Rebuild.
1673         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1674         * emulparams/elf64_ia64.sh: New file.
1676 2000-04-21  Richard Henderson  <rth@cygnus.com>
1678         * scripttempl/elfd30v.sc: Place .gcc_except_table.
1680 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
1682         * dep-in.sed: Match space at start of file name, not at end.
1684 2000-04-18  H.J. Lu  <hjl@gnu.org>
1686         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1687         lang_leave_output_section_statement () after calling
1688         lang_enter_output_section_statement ().
1689         * emultempl/armelf.em: Likewise.
1691 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
1693         * emultempl/elf32.em (struct orphan_save): Add section field.
1694         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1695         better order, and place first orphan section as we did before the
1696         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
1697         Don't call make_bfd_section here, let wild_doit do the job for us.
1698         Don't build a statement list when we'll only throw it away.
1699         * emultempl/armelf.em: Ditto.
1700         * emultempl/pe.em: Similarly.
1702 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
1704         * scripttempl/elfppc.sc: Remove.
1705         * emulparams/elf32ppc.sh: Use elf.sc.
1706         * emulparams/elf32lppc.sh: Use elf.sc.
1707         * emulparams/elf32ppclinux.sh: Use elf.sc.
1708         * emulparams/elf32ppcsim.sh: New file.
1709         * emulparams/elf32lppcsim.sh: New file.
1710         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
1711         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1712         * Makefile.in: Regenerate.
1713         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1715 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
1717         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1718         ~SEC_ALLOC sections too.  Init start address of debug sections.
1719         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1720         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1721         Also set all relocateable section start addresses.
1723 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
1725         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1726         Add new BSS_PLT variable for when .plt need not be contained in
1727         the file.  Move _etext so that it is also after .fini, and provide
1728         both etext and _etext with a leading underscore.  Mark the start
1729         and end of .sbss.
1731 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
1733         * emultempl/elf32.em (struct orphan_save): New.
1734         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1735         hold_interp): Make them struct orphan_save.
1736         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1737         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1738         the end of the relevant section list.  Also add associated section
1739         statements to the end of any previous orphan statements.
1740         * emultempl/armelf.em: Similarly.
1741         * emultempl/pe.em: Similarly.
1743 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
1745         * ld.texinfo (Simple Example): Remove extraneous paragraph.
1747 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1749         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1750         --enable-build-warnings option.
1751         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1752         * Makefile.in, configure: Re-generate.
1754 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1756         * po/ld.pot: Regenerate.
1758         * lexsup.c (help): Restore translated part of bug string.
1760         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1761         (DEP): Quote when passing vars to sub-make.  Add warning message
1762         to end.
1763         (DEP1): Rewrite for "gcc -MM".
1764         (CLEANFILES): Add DEP2.
1765         Update dependencies.
1766         * Makefile.in: Regenerate.
1768 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1770         * ld.h: #include "bin-bugs.h"
1771         * lexsup.c (help): Use REPORT_BUGS_TO.
1773 2000-03-27  Denis Chertykov  <denisc@overta.ru>
1775         * configure.tgt (avr-*-*): New target support.
1776         * Makefile.am: Likewise.
1777         * scripttempl/elf32avr.sc: New script file.
1778         * emulparams/avr1200.sh: New file.
1779         * emulparams/avr23xx.sh: New file.
1780         * emulparams/avr4433.sh New file.
1781         * emulparams/avr44x4.sh New file.
1782         * emulparams/avr85xx.sh New file.
1783         * emulparams/avrmega103.sh New file.
1784         * emulparams/avrmega161.sh New file.
1785         * emulparams/avrmega603.sh New file.
1786         * Makefile.in: Regenerate.
1788 2000-03-09  Andreas Jaeger  <aj@suse.de>
1790         * Makefile.am (check-DEJAGNU): Also unset LANG.
1791         * Makefile.in: Rebuild.
1793 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
1795         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1796         archive.
1798 2000-03-02  H.J. Lu  <hjl@gnu.org>
1800         * emulparams/elf32mcore.sh: Include "getopt.h".
1802 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
1804         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1806 2000-03-01  H.J. Lu  <hjl@gnu.org>
1808         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1809         * emulparams/shpe.sh: Likewise.
1811 2000-03-01  Nick Clifton  <nickc@cygnus.com>
1813         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1814         to unused parameters.
1816         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1817         functions only used by DLL code.
1818         (_place_orphan): Initialise 'dollar'.
1820 2000-03-01  H.J. Lu  <hjl@gnu.org>
1822         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1823         indicate if the undefined symbol is a fatal error or not.
1824         Don't delete the output file if "fatal" is false.
1826 2000-02-29  H.J. Lu  <hjl@gnu.org>
1828         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1829         Set LC_COLLATE and LC_ALL to null and export them. It is for
1830         sort which expects the C locale.
1831         Add $(LIBS) to all $(HOSTING_LIBS).
1832         * Makefile.in: Rebuild.
1834 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
1836         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1837         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1838         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1839         (ld_emulation_xfer_struct): Add missing NULL initialiser for
1840         find_potential_libraries.
1842 2000-02-28  Jim Blandy  <jimb@redhat.com>
1844         * ldgram.y (exclude_name_list): Don't require a comma to separate
1845         list entries; the lexer considers commas to be valid part of a
1846         filename, so in something like `foo, bar' the comma is considered
1847         part of the first filename, `foo,'.
1848         * ld.texinfo: Update section on EXCLUDE_FILE lists.
1850 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
1852         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1853         host "i[3456]86-*-freebsdelf*".
1855 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
1857         * scripttempl/i386go32.sc: Move misplaced semicolons.
1859 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
1861         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1862         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1863         (eelf64hppa.c, ehppaelf.c): Remove targets.
1864         * Makefile.in: Rebuild.
1866 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1868         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1869         GNU/Linux/sparc, but keep the default as 32.
1871         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
1872         it default if sparcv9 or sparc64.
1874 2000-02-24  Nick Clifton  <nickc@cygnus.com>
1876         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1877         * Makefile.in: Regenerate.
1878         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1880         * ldemul.h (ld_emulation_xfer_struct): Add new field:
1881         find_potential_libraries.
1882         * ldemul.c (ldemul_find_potential_libraries): New function.
1884         * ldfile.c (ldfile_open_file_search): Allow function to be
1885         exported.
1886         (ldfile_open_file): Call ldemul_find_potential_libraries.
1887         * ldfile.h: Add prototype for ldfile_open_file_search.
1889         * pe-dll.c: Add support for ARM, MIPS and SH targets.
1891         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
1892         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
1894         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1895         (gld_X_find_potential_libraries): New function.  Search for
1896         libraries called "*.lib".
1898         * scripttempl/pe.sc: Add .pdata section.
1900 2000-02-23  Richard Henderson  <rth@cygnus.com>
1902         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1903         Add and use memory regions.
1905 2000-02-23  Linas Vepstas (linas@linas.org)
1907         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1909         * Makefile.am: Add support for Linux/IBM 370.
1910         * configure.tgt: Likewise.
1912         * Makefile.in: Regenerate.
1914 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
1916         * ldlang.c (print_input_section, print_data_statement,
1917         print_reloc_statement, print_padding_statement, insert_pad,
1918         size_input_section, lang_check_section_addresses,
1919         lang_size_sections, lang_do_assignments, lang_set_startof,
1920         lang_one_common): Change `opb' to unsigned.
1921         (lang_do_assignments): Also change `size' to unsigned.
1923 2000-02-16  Richard Henderson  <rth@cygnus.com>
1925         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1927 2000-02-16  Timothy Wall  <twall@cygnus.com>
1929         * mri.c (mri_draw_tree): Add default LMA region argument to call
1930         to lang_leave_output_section_statement.
1931         * ldlang.h: Update prototypes with LMA region arguments.
1932         * ldlang.c (lang_size_sections): Encapsulate region bounds
1933         checking in os_check_region call.
1934         (os_check_region): New function.
1935         (lang_output_section_statement_lookup): Initialize lma_region.
1936         (lang_leave_output_section_statement): Add LMA region argument.
1937         (lang_leave_overlay): Ditto.
1938         * ldgram.y: Handle LMA region syntax.
1939         * ld.texinfo (Output Section Description): Describe LMA region usage.
1940         * emultempl/armelf.em (gld$place_orphan): Add default value for
1941         lma region in call to lang_leave_output_section_statement.
1942         * emultempl/elf32.em (gld$place_orphan): Add default value for
1943         lma region in call to lang_leave_output_section_statement.
1944         * emultempl/pe.em (gld$place_orphan): Add default value for
1945         lma region in call to lang_leave_output_section_statement.
1948 2000-02-04  Timothy Wall  <twall@redhat.com>
1950         * ldlang.c (lang_check_section_addresses): Use bytes instead of
1951         octets when calculating section end addresses.
1953 2000-02-04  Timothy Wall  <twall@redhat.com>
1955         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1957 2000-02-03  Timothy Wall <twall@redhat.com>
1959         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1960         octet count.
1961         * ldlang.c (print_input_section, print_data_statement,
1962         print_reloc_statement, print_padding_statement): Print target
1963         address values and section sizes as bytes, not octets.
1964         (insert_pad) Calculate padding size in octets, and adjust "dot"
1965         by bytes.
1966         (size_input_section) Always adjust "dot" by bytes, not octets.
1967         (lang_check_section_addresses, lang_do_assignments) Adjust
1968         "dot" by bytes, not octets.  Use the larger of the directive size
1969         or octets_per_byte for the number of octets actually allocated in
1970         the output section.
1971         (lang_set_startof) Make sure STARTOF returns a target address.
1972         (lang_one_common) Record size changes in octets.
1973         (lang_abs_symbol_at_end_of) Section end symbol's value is
1974         recorded in target bytes.
1975         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
1976         to be clear about behavior when an octet is smaller than one byte.
1978 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
1980         * ldcref.c (output_cref): Don't pass message strings to printf
1981         as format arg.
1982         Update copyright.
1984         * ldmisc.c (vfinfo): Same here.
1985         Update copyright.
1987 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
1989         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1990         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1991         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1992         Add missing NULL initialisers, and comments.
1994         * testsuite/ld-srec/sr3.cc (__rethrow): New.
1996 2000-01-21  Nick Clifton  <nickc@cygnus.com>
1998         * ldlang.c (lang_size_sections): Fix typo in comment.
2000 2000-01-18  H.J. Lu  <hjl@gnu.org>
2002         * ldlang.c (lang_size_sections): Also update the current
2003         address of a region if the SEC_NEVER_LOAD bit is not set.
2005 2000-01-10  Philip Blundell  <pb@futuretv.com>
2007         * configure.tgt (arm*-*-conix*): New target.
2009 2000-01-07  Nick Clifton  <nickc@cygnus.com>
2011         * ld.texinfo (Options): Remind users to preceed linker command
2012         line switches with -Wl, (or whatever is appropriate) if it is
2013         being invoked by a comnpiler driver program.
2014         Fix description of the behaviour of the -n command line switch.
2016 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
2018         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
2019         (name_list): New.
2020         * ld.texinfo (EXCLUDE_FILE): Update documentation.
2021         * ldgram.y (wildcard_spec): Support a list of excluded_files.
2022         (exclude_name_list): New.
2023         ldlang.c (walk_wild_section): Support list of excluded files.
2024         (print_wild_statement): Likewise.
2025         (lang_add_wild): Likewise.
2026         * ldlang.h (lang_wild_statement_type): Likewise.
2027         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2029 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
2031         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2032         (process_def_file): Use.
2033         (pe_dll_compat_implib): New variable.
2034         (make_one): Use.
2036         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2037         pe_dll_compat_implib.
2039         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2040         compat-implib options.
2041         (gld_${EMULATION_NAME}_list_options): List new options.
2042         (gld_${EMULATION_NAME}_parse_args): Handle.
2044         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2045         dll.
2047         * deffilep.y (opt_name): Allow "." in name.
2049 For older changes see ChangeLog-9899
2051 Local Variables:
2052 mode: change-log
2053 left-margin: 8
2054 fill-column: 74
2055 version-control: never
2056 End: