bfd/
[binutils.git] / ld / ChangeLog
blob8167892e26ce662c2e44687dbc543af1434306b9
1 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
3         * ldmain.c (main): Default to discard_sec_merge.
4         * lexsup.c (OPTION_DISCARD_NONE): Define.
5         (ld_options): Add --discard-none.
6         (parse_args): Handle OPTION_DISCARD_NONE.
7         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
8         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
9         all its input sections match.
11 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
13         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
14         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
15         (eelf32ltsmip.c): New target.
16         (eelf64btsmip.c): Likewise.
17         (eelf64ltsmip.c): Likewise.
18         * Makefile.in: Regenerated.
20         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
21         target.
22         (mips*-*-linux-gnu*): Likewise.
24         * emulparams/elf32ltsmip.sh: New. Traditional little endian
25         MIPS taget.
26         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian 
27         target.
28         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
29         endian target.
31 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
33         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
34         correct value of __Stext here.
35         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
36         .startup section.
38         * emulparams/crislinux.sh: Remove FIXME.
40 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
42         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
43         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
45 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
47         * configure.tgt (cris-*-*): Change default emulation to criself.
48         (cris-*-*aout*): New rule.
50 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
52         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
53         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
55 2001-03-26  Andreas Jaeger  <aj@suse.de>
57         * ld.texinfo (Overview): Fix syntax in texi code.
59 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
61         * ld.texinfo: Put @c man indications to generate the ld man page.
62         When generating man, define all the variables.  Define SEEALSO
63         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
64         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
65         (ld.1): Generate from ld.texinfo.
66         * Makefile.in: Regenerate.
68 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
70         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
71           and '-fdata-sections'. Set the VMA of STABS sections to zero.
73 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
75         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
76         is an absolute path look only for this file and not along the path.
78 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
80         * emultempl/elf32.em (OPTION_GROUP): New macro.
81         Add new option Bgroup to longopts.
82         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
83         (gld*_list_options): Add -Bgroup and -z defs.
84         * ld.1: Document -Bgroup and -z defs.
85         * ld.texinfo: Likewise.
87 2001-03-07  Michael Meissner  <meissner@redhat.com>
89         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
90         with sections created by -fdata-sections.
91         (.dynbss,.bss): Ditto.
93 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
95         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
96         after_allocation_default, not gld..._before_allocation.
98 2001-02-28  Matt Hiller  <hiller@redhat.com>
100         * testsuite/ld-scripts/crossref.exp: Initialize flags to
101         [big_or_little_endian].
102         * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
103         in ld invocations.
104         * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
105         -eb, -EL and -el.
106         (is_endian_output_format): New function.
107         (default_ld_link): Set flags to [big_or_little_endian] only if ld
108         is being invoked such that the output format being used is of
109         known endianness.
110         (default_ld_simple_link): Ditto.
112 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
114         * configure.in (BFD_VERSION): New.
115         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
116         * configure: Regenerate.
117         * Makefile.am: Run "make dep-am"
118         * Makefile.in: Regenerate.
120 2001-02-26  Timothy Wall  <twall@cygnus.com>
122         * emulparams/elf64_aix.sh: Add additional read-only sections;
123         uncomment lines which are now required.
125 2001-02-26  H.J. Lu  <hjl@gnu.org>
127         * ldlang.c (open_input_bfds): Set the bfd error handler so
128         that problems can be caught whilst loading symbols.
129         (record_bfd_errors): New function: Report BFD errors and mark
130         the executable output as being invalid.
132 2001-02-22  Timothy Wall  <twall@cygnus.com>
134         * configure.host: Add configuration for ia64-*-aix*.
135         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
136         Add dependencies for eelf64_aix.c.
137         * Makefile.in: Regenerate.
138         * configure.tgt: Add ia64-*-aix* mapping.
139         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
140         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
141         AIX-specific test.
143 2001-02-20  H.J. Lu  <hjl@gnu.org>
145         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
146         false if we found the file.
148 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
150         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
151         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
153 2001-02-18  lars brinkhoff  <lars@nocrew.org>
155         * Makefile.am: Add PDP-11 target.
156         * configure.tgt: Likewise.
157         * emulparams/pdp11.sh: New file.
159 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
161         * configure.host: Add a generic FreeBSD configuration entry such that
162         all [modern] FreeBSD systems on all platforms will look the same.
164 2001-02-14  H.J. Lu  <hjl@gnu.org>
166         * configure.tgt: Remove mention of earmelf_linux26.
168 2001-02-13  Richard Henderson  <rth@redhat.com>
170         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
172 2001-02-13  H.J. Lu  <hjl@gnu.org>
174         * ldexp.h (node_type): Add etree_provided.
175         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
176         type to etree_provided if defined by PROVIDE. Allow updating
177         for etree_provided.
178         (exp_print_tree): Handle etree_provided.
179         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
180         etree_provided.
182 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
184         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
185         .IA_64.unwind.* pattern to unwind table section and
186         .IA_64.unwind_info* pattern to unwind info section.
188 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
190         * Makefile.am: Add linux target for S/390.
191         * Makefile.in: Likewise.
192         * configure.host: Likewise.
193         * configure.tgt: Likewise.
194         * emulparams/elf64_s390.sh: New file.
195         * emulparams/elf_s390.sh: New file.
197 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
199         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
200         targ_extra_libpath.
201         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
203 2001-02-06  Philip Blundell  <philb@gnu.org>
205         * Makefile.am: Remove mention of earmelf_linux26.
206         * Makefile.in: Regenerate.
208 2001-02-04  Philip Blundell  <philb@gnu.org>
210         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
211         * emulparams/armelf_linux26.sh: Delete.
212         * configure.tgt: Remove mention of armelf_linux26 emulation.
214 2001-02-01  Nick Clifton  <nickc@redhat.com>
216         * ld.1: Replace occurances of -oformat with --oformat.
218 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
220         * ldlang.c (lang_leave_overlay): Don't set lma_region when
221         load_base is specified.
223 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
225         * emultempl/elf32.em: Correct spelling in comments and listed
226         options.
228 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
230         * ldlang.c (lang_leave_overlay): Only set lma_region from the
231         default for the first section of a group of overlay sections.
233 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
235         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
236         * Makefile.in: Regenerate.
237         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
238         Check for null tool_dir.
240 2001-01-16  Jim Wilson  <wilson@redhat.com>
242         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
243         and IA_64.unwind.info.
245 2001-01-16  H.J. Lu  <hjl@gnu.org>
247         * ldlang.c (lang_check): Merge the private data only if the
248         input file has contents.
250 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
252         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
254         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
255         enabling search for libmilli.  On a relocatable link, make .text
256         sections unique.
257         (LDEMUL_AFTER_PARSE): Define.
258         (hppaelf_finish): Correct spelling of relocatable in comments.
260         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
261         rummage through the script for sections on the unique list.
262         Correct length of strncmp for ".note".
263         (gld${EMULATION_NAME}_check_needed): Rearrange function.
265         * ldlang.c (unique_section_list): New var.
266         (unique_section_p): New function.
267         (walk_wild_section): Don't match sections on unique_section_list.
268         (lang_add_unique): New function.
269         Correct spelling of relocatable in comments.
271         * ldlang.h (struct unique_sections): Declare.
272         (unique_section_list): Declare.
273         (unique_section_p): Declare.
274         (lang_add_unique): Declare.
276         * lexsup.c (ld_options): Allow --unique to take an optional arg.
277         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
279         * ld.texinfo (--unique): Update.
281 2001-01-13  Nick Clifton  <nickc@redhat.com>
283         * lexsup.c (parse_args): Remove spurious white space.
285 2001-01-12  Nick Clifton  <nickc@redhat.com>
287         * lexsup.c (parse_args): Update copyright date.
289 2001-01-12  Philip Blundell  <pb@futuretv.com>
291         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
293 2001-01-10  Kazu Hirata  <kazu@hxi.com>
295         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
296         * scripttempl/h8300h.sc: Fix formatting.
297         * scripttempl/h8300s.sc: Likewise.
298         * scripttempl/h8500.sc: Likewise.
299         * scripttempl/h8500b.sc: Likewise.
300         * scripttempl/h8500c.sc: Likewise.
301         * scripttempl/h8500m.sc: Likewise.
302         * scripttempl/h8500s.sc: Likewise.
304 2000-01-07  David O'Brien  <obrien@BSDi.com>
306         * emultempl/elf32.em: Only perform Linux ld hints processing when
307         targeting Linux.
309 2001-01-07  Philip Blundell  <philb@gnu.org>
311         * ld.texinfo (Bug Reporting): Update email address for reports.
313 2000-12-31  Nick Clifton  <nickc@redhat.com>
315         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
316         options by checking for a return value of '?' not -1.
318 2000-12-28  Nick Clifton  <nickc@redhat.com>
320         * lexsup.c (struct ld_option): Add new enum value:
321         EXACTLY_TWO_DASHES.
322         (ld_options[]): Change -omagic, -output and -oformat options
323         to be EXACTLY_TWO_DASHES.
324         (OUTPUT_COUNT): Use ARRAY_SIZE.
325         (parse_args): Change parameter 'argc' to unsigned.
326         Place EXACTLY_TWO_DASHES options into new really_longopts
327         array.
328         If getopt_long_only fails, try calling getopt_long using the
329         really_longopts array.
330         (help): Print a double dash for both EXACTLY_TWO_DASHES and
331         TWO_DASHES options.
333         * ldlex.h: Fix prototype of parse_args.
335         * ld.texinfo: Document that long options starting with 'o'
336         must be preceeded by two dashes.  Change example of a single
337         dashed long option from -oformat to -trace-symbol.
339 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
341         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
342         (longopts[]): New --no-default-excludes option.
343         (gld_${EMULATION_NAME}_list_options): Document.
344         (gld_${EMULATION_NAME}_parse_args): Handle.
346 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
348         * ldlang.c (new_stat): Revert the last beautification with "innocent"
349         whitespace, it breaks the K&R C preprocessor.
351 2000-12-11  DJ Delorie  <dj@redhat.com>
353         * ld.texinfo: Add notes about --whole-archive and gcc.
355 2000-11-18  Fred Fish  <fnf@be.com>
357         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
358         (ld_options): Entry for --allow-shlib-undefined.
359         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
360         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
361         to false.
362         * ld.texinfo: Document new command line switch.
364 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
366         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
367         .fixup is actually read/write.
368         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
369         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
370         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
372 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
374         * NEWS: Add note about x86_64 architecture.
376 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
378         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
379         Set DWARF2 sections to a VMA of zero.
381 2000-12-01      Joel Sherrill <joel@OARcorp.com>
383         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
384         New targets.
385         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
386         (sparc*-*-rtems*): Switched from a.out to ELF.
388 2000-11-30  Jan Hubicka  <jh@suse.cz>
390         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
391         (eelf_x86_64.c): New.
392         * Makefile.in: Regenerate.
393         * configure.tgt: Add support for x86_64-*-linux-gnu*.
394         * emulparams/elf_x86_64.sh: New.
396 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
398         * emulparams/crislinux.sh (ENTRY): Change back to _start.
399         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
401         * scripttempl/crisaout.sc: Change all RELOCATING not related to
402         merging non-a.out sections into CONSTRUCTING.
404 2000-11-28  Nick Clifton  <nickc@redhat.com>
406         * ld.1 (COPYING): Mention that the GNU Free Documentation
407         License is present in the sources, but not the output, and
408         also available from the GNU website.
409         (GNU Free Documentation License): Comment out this section.
411 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
413         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
414         does not use them.
416 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
418         * ld.1: Remove old date so it does not give the impression the manpage
419         is way out of date.
421 2000-11-24  Nick Clifton  <nickc@redhat.com>
423         * configure.tgt (xscale-coff): Add target.
424         (xscale-elf): Add target.
426 2000-11-24  Fred Fish  <fnf@be.com>
428         * ldmain.c (main): Remove redundant init of config.make_executable
429         to true.
431 2000-11-15  Richard Henderson  <rth@redhat.com>
433         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
435 2000-11-14  Kazu Hirata  <kazu@hxi.com>
437         * scripttempl/h8300.sc: Fix formatting.
438         * scripttempl/h8300h.sc: Likewise.
439         * scripttempl/h8300s.sc: Likewise.
441 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
443         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
445 2000-11-09  Philip Blundell  <pb@futuretv.com>
447         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
448         around orphan sections whose names can be represented in C.
450 2000-11-07  Jim Wilson  <wilson@redhat.com>
452         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
453         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
455 2000-11-06  Nick Clifton  <nickc@redhat.com>
457         * ld.texinfo: Add GNU Free Documentation License.
458         * ldint.texinfo: Add GNU Free Documentation License.
459         * ld.1: Add GNU Free Documentation License.
461 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
463         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
464         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
466         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
467         Move 2000-11-02 Makefile.in changes to this file.
468         * Makefile.in: Regenerate.
470 2000-11-03  Nick Clifton  <nickc@redhat.com>
472         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
473         constructors and destructors.
474         * scripttempl/h8300h.sc: Ditto.
475         * scripttempl/h8300s.sc: Ditto.
476         * scripttempl/h8500.sc: Ditto.
477         * scripttempl/h8500b.sc: Ditto.
478         * scripttempl/h8500c.sc: Ditto.
479         * scripttempl/h8500m.sc: Ditto.
480         * scripttempl/h8500s.sc: Ditto.
481         * scripttempl/v850.sc: Ditto.
482         * scripttempl/w65.sc: Ditto.
483         * scripttempl/z8000.sc: Ditto.
485 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
487         * Makefile.in (e_i386_chaos.c): New rule.
488         (ALL_EMULATIONS): Added e_i386_chaos.o.
489         * emulparams/elf_i386_chaos.sh: New file.
490         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
492 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
494         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
495         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
496         Fix sed invocation, so that it coped with '/' in Solaris 64bit
497         library path suffix.
498         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
500 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
502         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
503         for consecutive sections.
505 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
507         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
508         options.
509         * ld.texinfo: Added notes about this new option.
511 2000-10-16  Nick Clifton  <nickc@redhat.com>
513         * emultempl/pe.em (_after_open): Add tests of return values from
514         bfd functions.  Emit appropriate error messages if necessary.
516 2000-10-13  Nick Clifton  <nickc@redhat.com>
518         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
519         local variables - they are not used, but leave in the call to
520         bfd_canonicalize_symtab.
521         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
522         pe_dll_search_prefix.
524 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
526         * emultempl/pe.em (pe_dll_search_prefix): New variable,
527         (longopts): New --dll-search-prefix option.
528         (gld_${EMULATION_NAME}_list_options): Document.
529         (gld_${EMULATION_NAME}_parse_args): Handle.
530         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
531         dynamically, search for a dll named '<prefix><basename>.dll'
532         in preference to 'lib<basename>.dll' if --dll-search-prefix
533         is specified.
535 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
537         * ldlang.c (section_already_linked): Set kept_section instead of
538         sec->comdat->sec.
540 2000-10-10  Kazu Hirata  <kazu@hxi.com>
542         * deffile.h: Fix formatting.
543         * lexsup.c: Likewise.
544         * mri.c: Likewise.
546 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
548         * pe-dll.c (make_one): Do not generate code thunk for DATA
549         exports.
550         (process_def_file): deduce DATA flag for auto-export sumbols.
552 2000-10-09  Kazu Hirata  <kazu@hxi.com>
554         * ld.h: Fix formatting.
555         * ldcref.c: Likewise.
556         * ldctor.h: Likewise.
557         * ldemul.c: Likewise.
558         * ldemul.h: Likewise.
559         * ldexp.c: Likewise.
560         * ldexp.h: Likewise.
561         * ldfile.c: Likewise.
562         * ldfile.h: Likewise.
563         * ldlang.c: Likewise.
564         * ldlang.h: Likewise.
565         * ldmain.c: Likewise.
566         * pe-dll.c: Likewise.
568         * pe-dll.c: Revert some formatting fixes.
570 2000-10-08  Kazu Hirata  <kazu@hxi.com>
572         * pe-dll.c: Fix formatting.
574 2000-10-05  Kazu Hirata  <kazu@hxi.com>
576         * ldlang.c: Fix formatting.
578 2000-10-03  DJ Delorie  <dj@redhat.com>
580         * pe-dll.c (fill_edata): initialize entire block
581         (make_one): fill in correct section.
583 2000-10-03  Kazu Hirata  <kazu@hxi.com>
585         * ldexp.c: Fix formatting.
587 2000-10-02  DJ Delorie  <dj@redhat.com>
589         * emultempl/pe.em (gld_*_after_open): detect case where there two
590         import libraries for same dll; rename one to ensure proper link
591         order.
593         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
594         typo
595         (generate_edata): fix typo
597 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
599         * scripttempl/crisaout.sc (ENTRY): Now __start.
600         (.text): Add default setting for __start.
601         Remove CONSTRUCTORS handling.
602         (/DISCARD/): Add .gnu.warning.*.
603         * emulparams/crislinux.sh (ENTRY): Now __start.
604         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
605         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
606         (ENTRY): Now __start.
607         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
608         (EXECUTABLE_SYMBOLS): Add default setting for __start.
610 2000-09-29  Kazu Hirata  <kazu@hxi.com>
612         * deffile.h: Fix formatting.
613         * ld.h: Likewise.
614         * ldcref.c: Likewise.
615         * ldctor.c: Likewise.
616         * ldctor.h: Likewise.
617         * ldemul.c: Likewise.
618         * ldemul.h: Likewise.
619         * ldexp.c: Likewise.
620         * ldexp.h: Likewise.
621         * ldfile.c: Likewise.
622         * ldfile.h: Likewise.
623         * ldlang.c: Likewise.
624         * ldlang.h: Likewise.
625         * lexsup.c: Likewise.
626         * mri.c: Likewise.
627         * pe-dll.c: Likewise.
629 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
631         * pe-dll.c (process_def_file): Uninitialized data wasn't
632         exported with --export-all-symbols switch.
634 2000-09-28  DJ Delorie  <dj@redhat.com>
636         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
637         noname work properly.
639 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
641         * ld.texinfo (HPPA ELF32): New section.
643         * emultempl/hppaelf.em (group_size): New.
644         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
645         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
646         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
647         options to prevent abbreviations matching.
648         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
649         (PARSE_AND_LIST_ARGS_CASES): Handle it.
651 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
653         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
654         on the m68*-*-elf target.  Make it support COFF input objects.
656 2000-09-21  Kazu Hirata  <kazu@hxi.com>
658         * ldmain.c: Fix formatting.
659         * ldmisc.c: Likewise.
660         * ldver.c: Likewise.
661         * ldwrite.c: Likewise.
663 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
665         * ldwrite.c (clone_section): Silence gcc warnings.
667 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
669         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
670         out of memory failure.
672         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
673         (clone_section): Handle out of memory failures.  Rename var to
674         avoid c++ reserved word.
676 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
678         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
679         stub_name param to stub_sec_name.
680         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
682 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
684         * emultempl/m68kelf.em: New file.
685         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
686         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
687         * Makefile.in: Regenerate.
689 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
691         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
692         only as needed.
694 2000-09-13  Nick Clifton  <nickc@redhat.com>
696         * ldmain.c (multiple_definition): Disable relaxation if
697         multiple symbol definitions are encountered - otherwise the
698         linker could abort with an assertion failure.
700 2000-09-10  Nick Clifton  <nickc@redhat.com>
702         * mri.c: Fix formatting.
704 2000-09-07  H.J. Lu  <hjl@gnu.org>
706         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
707         * configure: Rebuild.
709 2000-09-07  H.J. Lu  <hjl@gnu.org>
711         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
712         * Makefile.in: Rebuild.
714 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
716         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
717         broken list handling.  Create __start_SECNAME and __stop_SECNAME
718         when no place-holder.  Add some comments.  Test both SEC_CODE and
719         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
720         Handle case where no output section statement created.
722 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
724         * configure.tgt (sh-*-linux*): Added.
725         * Makefile.am: Added eshelf_linux and eshlelf_linux.
726         * Makefile.in: Rebuilt.
727         * emulparams/shelf_linux.sh: New file.
728         * emulparams/shlelf_linux.sh: New file.
730 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
732         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
733         try shuffling sections when the orphan happens to be the place
734         holder.  Keep count of unique section names generated so we speed
735         the search for a new name.
737 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
739         * configure: Rebuilt with new libtool.m4.
741 2000-09-05  Nick Clifton  <nickc@redhat.com>
743         * Makefile.in: Regenerate.
744         * aclocal.m4: Regenerate.
745         * configure: Regenerate.
746         * config.in: Regenerate.
747         * po/ld.pot: Regenerate.
749         * ldint.texinfo: Remove CVS revision marker - it foils local
750         comparisons.
752         * emultempl/ticoff.em: Remove extraneous comma.
754 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
756         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
757         to stub section flags.
758         (hppa_for_each_input_file_wrapper): New.
759         (hppa_lang_for_each_input_file): New.
760         (lang_for_each_input_file): Define to call above.
761         (multi_subspace): New.
762         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
763         (PARSE_AND_LIST_PROLOGUE): Define.
764         (PARSE_AND_LIST_LONGOPTS): Define.
765         (PARSE_AND_LIST_OPTIONS): Define.
766         (PARSE_AND_LIST_ARGS_CASES): Define.
767         (hppaelf_finish): Call elf32_hppa_set_gp.
768         (hppaelf_set_output_arch): Remove.
769         (LDEMUL_SET_OUTPUT_ARCH): Remove.
771         * emulparams/hppalinux.sh (ELFSIZE): Define.
772         (MACHINE): Define.
773         (OTHER_READONLY_SECTIONS): Define.
774         (DATA_PLT): Define.
775         (GENERATE_SHLIB_SCRIPT): Define.
777         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
778         to const throughout.  Change `void *' to `PTR' throughout.
779         (lang_memory_default): Function is local to file, add `static'.
781         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
782         (ehppalinux.c): Likewise.
783         (earmelf.c): Likewise.
784         (earmelf_linux.c): Likewise.
785         (earmelf_linux26.c): Likewise.
786         * Makefile.in: Regenerate.
788         * ld.h (ld_config_type): Add unique_orphan_sections.
789         * lexsup.c (OPTION_UNIQUE): Define.
790         (ld_options): Add "--unique".
791         (parse_args): Handle it.
792         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
793         search for an existing output section if unique_orphan_sections is
794         set.  Make use of bfd_get_unique_section_name rather than
795         duplicating code here.
796         * ld.texinfo: Describe --unique.
798         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
799         optional arg to split-by-file.
800         (parse_args): Handle them.
801         * ld.texinfo: Update description of these options.
802         * ldwrite.c (clone_section): Pass in the section name.  Replace
803         local code with bfd_get_unique_section_name.
804         (split_sections): Tidy code and comments.  Use a list traversal
805         more appropriate to the list construction.  Handle cooked section
806         sizes.  Split when split_by_reloc reached rather than exceeded.
807         Track section size and split when split_by_file reached.  Fix
808         link_order_tail (even though it's not used).
809         (ldwrite): Modify condition for calling split_sections to suit
810         changed split_by_reloc and split_by_file.
811         * ldmain.c (main): Init config.split_by_reloc and
812         config.split_by_file to -1.
813         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
814         Change split_by_file to bfd_size_type.
816 2000-09-02  Nick Clifton  <nickc@redhat.com>
818         * configure.in: Increase version number to 2.10.91.
819         * NEWS: Mention new ability to support removal of duplicate DWARF2
820         debug information.
821         * configure: Regenerate.
822         * aclocal.m4: Regenerate.
823         * config.in: Regenerate.
825 2000-09-02  Daniel Berlin <dberlin@redhat.com>
827         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
828         sections.
829         * scripttempl/elf32avr.sc: Ditto.
830         * scripttempl/elfd10v.sc: Ditto.
831         * scripttempl/elfd30v.sc: Ditto.
832         * scripttempl/elfi370.sc: Ditto.
833         * scripttempl/elfm68hc11.sc: Ditto.
834         * scripttempl/elfm68hc12.sc: Ditto.
835         * scripttempl/elfi386beos.sc: Ditto.
836         * scripttempl/v850.sc: Ditto.
838 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
840         * acinclude.m4: Include libtool and gettext macros from the
841         top level.
842         * aclocal.m4, configure: Rebuilt.
844 2000-08-25  Nick Clifton  <nickc@redhat.com>
846         * ldlang.c (open_output): When choosing the target for a
847         particular endianness, do nothing if the target is not
848         supported.
850 2000-08-25  H.J. Lu  <hjl@gnu.org>
852         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
853         check -rpath nor LD_RUN_PATH for cross link.
854         * ld.texinfo: Document the change.
856 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
858         * NEWS: Mention support for CRIS.
860 2000-08-23  H.J. Lu  <hjl@gnu.org>
862         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
863         the current runpath list from bfd_elf_get_runpath_list ()
864         before search.
866 2000-08-22  H.J. Lu  <hjl@gnu.org>
868         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
869         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
870         LD_LIBRARY_PATH for native linker. Display the needed DSO if
871         trace_file_tries is non-zero.
872         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
873         if trace_file_tries is non-zero.
875         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
876         * NEWS: Mention it.
878 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
880         * NEWS: Mention i860 support.
882 2000-08-14  Andreas Schwab  <schwab@suse.de>
884         * scripttempl/elf.sc: Fix last change to use correct comment
885         syntax.
887 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
889         * scripttempl/elf.sc: Add a comment giving the correspondence
890         between sections, per-datum sections, and linkonce sections.  Make
891         the comment true even for .bss, .sdata, .sdata2, .sbss, and
892         .sbss2.
894 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
896         * emulparams/elf32_i860.sh: New file.
897         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
898         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
899         (eelf32_i860.c): New rule.
900         * Makefile.in: Regenerate.
902 2000-08-10  Nick Clifton  <nickc@cygnus.com>
904         * emulparams/mipspe.sh (ENTRY): Add definition.
906 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
908         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
909         in error message.
911 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
913         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
914         the final size of .bss section.
915         * scripttempl/elfm68hc12.sc: Likewise.
917 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
919         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
920         gld${EMULATION_NAME}_parse_args for consistency.  Combine
921         lastoptind and prevoptind vars, and keep track of last optind.
922         (gld_${EMULATION_NAME}_list_options): Rename to
923         gld${EMULATION_NAME}_list_options.
925 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
927         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
928         (i586-sco-sysv5uw7.1.0).
930 2000-07-27  H.J. Lu  <hjl@gnu.org>
932         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
933         (PARSE_AND_LIST_PROLOGUE): New.
934         (PARSE_AND_LIST_LONGOPTS): Likewise.
935         (PARSE_AND_LIST_OPTIONS): Likewise.
936         (PARSE_AND_LIST_ARGS_CASES): Likewise.
937         (PARSE_AND_LIST_EPILOGUE): Likewise.
939 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
941         * emultempl/armelf.em: Elide functions common to elf32.em,
942         ie. most of the file.
943         (arm_elf_after_open): New.  Do arm specific things then call
944         gld${EMULATION_NAME}_after_open.
945         (arm_elf_before_allocation): New.  Call
946         gld${EMULATION_NAME}_before_allocation then do arm specifics.
947         (PARSE_AND_LIST_PROLOGUE): Define.
948         (PARSE_AND_LIST_SHORTOPTS): Define.
949         (PARSE_AND_LIST_LONGOPTS): Define.
950         (PARSE_AND_LIST_OPTIONS): Define.
951         (PARSE_AND_LIST_ARGS_CASES): Define.
952         (LDEMUL_AFTER_OPEN): Define.
953         (LDEMUL_BEFORE_ALLOCATION): Define.
954         (LDEMUL_BEFORE_PARSE): Define.
955         (LDEMUL_FINISH): Define.
957         * emultempl/hppaelf.em: Similarly zap most of this file.
958         (hppaelf_add_stub_section): Prototype.
959         (hppaelf_layaout_sections_again): Prototype.
960         (hook_in_stub): Prototype.
961         (LDEMUL_SET_OUTPUT_ARCH): Define.
962         (LDEMUL_FINISH): Define.
963         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
965         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
966         (EXTRA_EM_FILE): New.
967         * emulparams/armelf_linux.sh: Likewise.
968         * emulparams/armelf_linux26.sh: Likewise.
969         * emulparams/hppalinux.sh: Likewise.
970         * emulparams/hppaelf.sh: Likewise.
971         (NOP): Define.
973         * emultempl/elf32.em: Fix formatting.
974         (EXTRA_EM_FILE): Source it.
975         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
976         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
977         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
978         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
979         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
980         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
981         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
982         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
983         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
984         allow functions in this file to be overridden.
985         (PARSE_AND_LIST_SHORTOPTS): Handle it.
987         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
989         * emultempl/elf32.em: Reorganize file.
991 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
993         * emulparams/elf64alpha.sh: Implement "-taso" emulation
994         specific option to fit 64-bit executable in the lower
995         31-bit address range.  This is done by changing start
996         address of .interp (the very first section of executable)
997         and then setting EF_ALPHA_32BIT elf header flag.
999 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1001         * emultempl/m68kcoff.em: New file.
1002         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1003         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1004         generic.em.
1005         * Makefile.in: Regenerate.
1007 2000-07-20  H.J. Lu  <hjl@gnu.org>
1009         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1010         and "disable-new-dtags" to stop getopt from treating -d/-e as
1011         abbreviations for these options.
1013 2000-07-20  H.J. Lu  <hjl@gnu.org>
1015         * ld.texinfo: Add documentation for --disable-new-dtags and
1016         --enable-new-dtags.
1018         * ldmain.c (main): Initialize link_info.new_dtags to false.
1020         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1021         --disable-new-dtags and --enable-new-dtags.
1022         (gld_${EMULATION_NAME}_list_options): Likewise.
1024 2000-07-05  Kenneth Block  <krblock@computer.org>
1026         * lexsup.c: Add optional style to demangle switch
1027         * ld.texinfo: Document optional style to demangle switch.
1029 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
1031         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1032         ecrislinux.o.
1033         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1034         Regenerate dependencies.
1035         * Makefile.in: Rebuild.
1036         * configure.tgt (cris-*-*): New target.
1037         * emulparams/crisaout.sh, emulparams/criself.sh,
1038         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1039         * po/POTFILES.in, po/ld.pot: Regenerate.
1041 2000-07-20  H.J. Lu  <hjl@gnu.org>
1043         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1044         Print out ignored -z options.
1046 2000-07-19  H.J. Lu  <hjl@gnu.org>
1048         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1049         (PARSE_AND_LIST_PROLOGUE): New.
1050         (PARSE_AND_LIST_LONGOPTS): Likewise.
1051         (PARSE_AND_LIST_OPTIONS): Likewise.
1052         (PARSE_AND_LIST_ARGS_CASES): Likewise.
1054         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1056         * lexsup.c (ld_options): Comment out 'z'.
1057         (parse_args): Likewise.
1059         * emultempl/elf32.em: Include "elf/common.h".
1060         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1061         options.
1062         (gld_${EMULATION_NAME}_list_options): Likewise.
1064         * ld.texinfo: Add documentation for the recognized -z options.
1066 2000-07-19  H.J. Lu  <hjl@gnu.org>
1068         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1069         bfd_elf_set_dt_needed_soname ().
1071 2000-07-18  DJ Delorie  <dj@cygnus.com>
1073         * pe-dll.c (pe_dll_id_target): check object target name also
1075 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
1077         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1078         ${INIT_END} if relocating.
1079         (.fini): Likewise ${FINI_START} and ${FINI_END}.
1081 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
1083         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1084         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1085         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1086         errors introduced by the old dynamic lib search order.
1088 2000-07-17  DJ Delorie  <dj@cygnus.com>
1090         * pe-dll.c (process_def_file): auto-export data items also
1091         (pe_process_import_defs): also see if _imp_ form needed
1093 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
1095         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1096         for dll import libraries
1098 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
1100         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1101         gcc 2.95.2 and later.
1103 2000-07-11  Kazu Hirata  <kazu@hxi.com>
1105         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1106         message.
1108 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1110         * ldemul.h (struct lang_input_statement_struct): Remove forward
1111         declaration.
1112         (struct search_dirs): Likewise.
1113         * ldfile.h (struct lang_input_statement_struct): Likewise.
1114         Protect file from multiple inclusion.
1115         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1116         declaration from macro to file scope.
1118         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1119         * ldgram.y: Likewise here.
1120         * ldlang.c: And here.
1121         * ldmain.c: And here.
1122         * mpw-elfmips.c: And here.
1123         * mpw-eppcmac.c: And here.
1124         * emultempl/aix.em: And here.
1125         * emultempl/armcoff.em: And here.
1126         * emultempl/armelf.em: And here.
1127         * emultempl/armelf_oabi.em: And here.
1128         * emultempl/beos.em: And here.
1129         * emultempl/elf32.em: And here.
1130         * emultempl/hppaelf.em: And here.
1131         * emultempl/linux.em: And here.
1132         * emultempl/lnk960.em: And here.
1133         * emultempl/pe.em: And here.
1134         * emultempl/sunos.em: And here.
1135         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1136         * mpw-idtmips.c: Ditto.
1137         * emultempl/generic.em: Ditto.
1138         * emultempl/gld960.em: Ditto.
1139         * emultempl/gld960c.em: Ditto.
1140         * emultempl/mipsecoff.em: Ditto.
1141         * emultempl/ticoff.em: Ditto.
1142         * emultempl/vanilla.em: Ditto.
1144         * pe-dll.c: Include ldfile.h
1145         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1147         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1148         arguments to bfd_elf32_size_dynamic_sections call.
1149         (gldelf32ebmip_place_orphan): Add missing arguments to
1150         lang_leave_output_section_statement call.
1152 2000-07-10  H.J. Lu  <hjl@gnu.org>
1154         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1155         DLL_SUPPORT.
1156         (strhash): Likewise.
1157         (compute_dll_image_base): Likewise.
1158         (pe_undef_found_sym): Likewise.
1159         (pe_undef_cdecl_match): Likewise.
1160         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1161         argument "arch" with ATTRIBUTE_UNUSED.
1163 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
1165         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1167         From  Ryan Bradetich  <rbradetich@uswest.net>
1168         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1170 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
1172         Changes to create multiple linker stubs, positioned immediately
1173         before the section where they are required.
1174         * emultempl/hppaelf.em: Include elf32-hppa.h.
1175         (stub_sec, file_chain): Delete.
1176         (hppaelf_create_output_section_statements): Don't make a stub
1177         section here.
1178         (hook_stub_info): New struct.
1179         (hook_in_stub): New function.
1180         (hppaelf_add_stub_section): New function.
1181         (hppaelf_finish): Do nothing for relocateable links.  Modify the
1182         call to elf32_hppa_size_stubs.  Move code for updating section
1183         layout from here...
1184         (hppaelf_layaout_sections_again): ..to here, a new function.
1186         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1187         broken list handling.  Pass in a pointer to the list.
1188         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1189         for above changes.
1190         (hppaelf_before_parse): Prototype.
1191         (hppaelf_set_output_arch): Prototype.
1192         (hppaelf_create_output_section_statements): Prototype.
1193         (hppaelf_delete_padding_statements): Prototype.
1194         (hppaelf_finish): Prototype.
1196         Merge from elf32.em
1197         * emultempl/hppaelf.em: Include ctype.h.
1198         (struct orphan_save): New.
1199         (gld${EMULATION_NAME}_place_orphan): New.
1200         (output_rel_find): New.
1201         (hppaelf_get_script): Update from elf32.em.
1202         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1203         Change emulation_name field to "${EMULATION_NAME}".  Add
1204         gld${EMULATION_NAME}_place_orphan.
1206         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
1207         ehppalinux.o, sort it.  Regenerate dependencies.
1208         (ehppalinux.c): Depend on hppaelf.em
1209         * Makefile.in: Regenerate.
1211         * configure.tgt: targ_emul=hppalinux for hppa*linux
1213         * emulparams/hppalinux.sh: New.
1214         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1216 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
1218         * lexsup.c (parse_args): Copy section name.
1220 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
1222         * emultempl/pe.em: institute the following search order for
1223         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1224         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
1225         static lib (libfoo.a) if none of the above are found.
1227 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
1229         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1230         (longopts): New --{enable,disable}-auto-image-base options.
1231         (gld_${EMULATION_NAME}_list_options): Document.
1232         (gld_${EMULATION_NAME}_parse): Handle.
1233         (strhash): New static function.
1234         (compute_dll_image_base): New static function.
1235         (gld_${EMULATION_NAME}_set_symbols): Use.
1237 2000-07-05  DJ Delorie  <dj@redhat.com>
1239         * MAINTAINERS: new
1241 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
1243         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1244         * emulparams/elf32btsmip.sh: New file.
1245         * Makefile.am: Add traditional mips target.
1246         * Makefile.in: Rebuild.
1248 2000-07-01  H.J. Lu  <hjl@gnu.org>
1250         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1251         automake to use YLWRAP.
1252         * Makefile.in: Rebuild.
1254 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
1256         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
1257         (CLEANFILES): Add DEPA.
1258         * Makefile.in: Regenerate.
1260 2000-06-30  Timothy Wall  <twall@ppc>
1262         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1263         the page in the upper octet of the address.
1265 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
1267         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1269 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
1271         * NEWS: arm-elf does --gc-sections too.
1273 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
1275         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1276         find one.
1277         * Makefile.in: Regenerate.
1279 2000-06-21  H.J. Lu  <hjl@gnu.org>
1281         * Makefile.am: Rebuild dependency.
1282         * Makefile.in: Rebuild.
1284 2000-06-20  H.J. Lu  <hjl@gnu.org>
1286         * Makefile.am: Rebuild dependency.
1287         * Makefile.in: Rebuild.
1289 2000-06-20  Timothy Wall  <twall@cygnus.com>
1291         * scripttempl/tic54xcoff.sc: New.
1292         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1293         * gen-doc.texi: Add flag for TI COFF.
1294         * ld.texinfo: Add documentation for TI COFF handling switches.
1295         * emultempl/ticoff.em: New. TI COFF handling.
1296         * configure.tgt: Add tic54x target.
1297         * Makefile.am: Add tic54x target.
1298         * Makefile.in: Ditto.
1300 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
1302         * ldmain.c (set_scripts_dir): Correct pointer comparison when
1303         checking for backslashes.
1305 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
1307         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1309 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
1311         * NEWS: Update list of targets supporting --gc-sections.
1313         * scripttempl/elf.sc: KEEP .eh_frame contents.
1314         * scripttempl/elfd30v.sc: Same here.
1316 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
1318         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1319         and m68hc11 (elf).
1320         * Makefile.in: Rebuild.
1321         * configure.tgt: Recognize m68hc12 and m68hc11.
1322         * scripttempl/elfm68hc12.sc: New file.
1323         * emulparams/m68hc12elfb: New emulation.
1324         * emulparams/m68hc12elf: New emulation.
1325         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
1326         (includes a memory.x script to define the ROM and RAM banks).
1327         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1328         New configuration files for support of Motorola 68hc11
1330 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
1332         * ldmain.c (main): Only change SEC_READONLY for final link.
1334 2000-06-13  H.J. Lu  <hjl@gnu.org>
1336         * configure: Regenerate.
1338 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
1340         * configure.in (VERSION): Update to show this is the CVS mainline.
1342 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1344         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1345         input objects to be ECOFF.
1346         (check_sections): einfo takes %B, not %P, to print a BFD name.
1348 2000-06-05  Michael Matz <matz@ifh.de>
1350         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1351         version scripts.
1353         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1355 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
1357         * emulparams/avr1200.sh (STACK): Define as 0.
1358         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1359         * emulparams/avr4433.sh (STACK): Likewise.
1360         * emulparams/avr44x4.sh (STACK): Likewise.
1361         * emulparams/avr85xx.sh (STACK): Likewise.
1362         * emulparams/avrmega103.sh (STACK): Likewise.
1363         * emulparams/avrmega161.sh (STACK): Likewise.
1364         * emulparams/avrmega603.sh (STACK): Likewise.
1365         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1366         (__stack): Define from ${STACK} for main().
1368 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
1370         * Makefile.am: Update dependencies with "make dep-am"
1371         * Makefile.in: Regenerate.
1373 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
1375         * ldmain.c: Include filenames.h.
1376         (set_scripts_dir): Support backslashes in program name.
1378 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
1380         * ldmain.c (main): When deciding if ".text" section should be
1381         read-only, don't forget to reset SEC_READONLY because it
1382         could be already set.
1384 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
1386         * ld.1: Add documentation for new command line option:
1387                 --section-start <sectionname>=<sectionorg>
1388         This is a generic version of -Ttext etc. which accepts
1389         any section name as a parameter instead of just text/data/
1390         bss.
1391         * ld.texinfo: More docs.
1392         * NEWS: More docs.
1393         * lexsup.c: (parse_args): Recognize new command line option.
1394         (ld_options): Add new option.
1396 2000-05-18  H.J. Lu  <hjl@gnu.org>
1398         * lexsup.c (parse_args): `i' == `r', not `q'.
1400 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
1402         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1404 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
1405               Rick Gorton          <gorton@scrugs.lkg.dec.com>
1407         Add support for '-q' == '--emit-relocs' switch.
1408         * ldmain.c (main): Default to false.
1409         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1410         * NEWS: Describe the emitrelocations switch.
1411         * ld.texinfo: Describe the emitrelocations switch.
1413 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
1415         * emultempl/pe.em (_open_dynamic_archive): New function: Search
1416         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1417         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1418         link options.
1420 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
1422         * lexsup.c (parse_args): Update the year in the copyright notice.
1424 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
1426         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1427         Replace defines with those from intl/libgettext.h to quieten gcc
1428         warnings.
1430 2000-05-10  H.J. Lu  <hjl@gnu.org>
1432         * ldlang.c (open_input_bfds): Don't load the same file within
1433         a group again if the whole archive has been loaded already.
1435 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
1437         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1438         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1439         strtoul.
1441 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
1443         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1445         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1446         host "ia64-*-linux-gnu*".
1448 2000-04-29  Andreas Jaeger  <aj@suse.de>
1450         * ld.h: Correctly check GCC version.
1452 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
1454         * Makefile.am: Add PA64 support.  Add missing dependencies for
1455         PA32 elf support.
1456         * Makefile.in: Rebuilt.
1457         * configure.tgt: Add PA64 support (currently disabled).
1459 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
1461         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1462         (output_rel_find): New function.
1463         (hold_section, hold_use): Delete.
1464         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1465         hold_interp): Make local to place_orphan.
1466         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1467         rather than place_section to find possible previous use of orphan.
1468         Similarly find the place-holder output sections.  Use returned
1469         value from lang_enter_output_section_statement rather than calling
1470         lang_output_section_statement_lookup.
1471         * emultempl/armelf.em: Same here.
1472         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1474         * ldlang.c (lang_enter_output_section_statement): Return output
1475         section statement.
1476         * ldlang.h (lang_enter_output_section_statement): Change
1477         declaration too.
1479         * ldlang.h (lang_output_section_statement): Export it.
1480         * ldlang.c (lang_output_section_statement): Ditto.
1482 2000-04-24  Nick Clifton  <nickc@cygnus.com>
1484         * ld.texinfo (Output Section Data): Add note that section data
1485         commands cannot appear outside of section directives.
1487 2000-04-2  Matthew Green  <mrg@cygnus.com>
1489         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1491 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
1492                           David Mosberger  <davidm@hpl.hp.com>
1494         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1495         (eelf64_ia64.c): New rule.
1496         * Makefile.in: Rebuild.
1497         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1498         * emulparams/elf64_ia64.sh: New file.
1500 2000-04-21  Richard Henderson  <rth@cygnus.com>
1502         * scripttempl/elfd30v.sc: Place .gcc_except_table.
1504 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
1506         * dep-in.sed: Match space at start of file name, not at end.
1508 2000-04-18  H.J. Lu  <hjl@gnu.org>
1510         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1511         lang_leave_output_section_statement () after calling
1512         lang_enter_output_section_statement ().
1513         * emultempl/armelf.em: Likewise.
1515 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
1517         * emultempl/elf32.em (struct orphan_save): Add section field.
1518         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1519         better order, and place first orphan section as we did before the
1520         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
1521         Don't call make_bfd_section here, let wild_doit do the job for us.
1522         Don't build a statement list when we'll only throw it away.
1523         * emultempl/armelf.em: Ditto.
1524         * emultempl/pe.em: Similarly.
1526 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
1528         * scripttempl/elfppc.sc: Remove.
1529         * emulparams/elf32ppc.sh: Use elf.sc.
1530         * emulparams/elf32lppc.sh: Use elf.sc.
1531         * emulparams/elf32ppclinux.sh: Use elf.sc.
1532         * emulparams/elf32ppcsim.sh: New file.
1533         * emulparams/elf32lppcsim.sh: New file.
1534         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
1535         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1536         * Makefile.in: Regenerate.
1537         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1539 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
1541         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1542         ~SEC_ALLOC sections too.  Init start address of debug sections.
1543         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1544         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1545         Also set all relocateable section start addresses.
1547 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
1549         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1550         Add new BSS_PLT variable for when .plt need not be contained in
1551         the file.  Move _etext so that it is also after .fini, and provide
1552         both etext and _etext with a leading underscore.  Mark the start
1553         and end of .sbss.
1555 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
1557         * emultempl/elf32.em (struct orphan_save): New.
1558         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1559         hold_interp): Make them struct orphan_save.
1560         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1561         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1562         the end of the relevant section list.  Also add associated section
1563         statements to the end of any previous orphan statements.
1564         * emultempl/armelf.em: Similarly.
1565         * emultempl/pe.em: Similarly.
1567 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
1569         * ld.texinfo (Simple Example): Remove extraneous paragraph.
1571 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
1573         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
1574         --enable-build-warnings option.
1575         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1576         * Makefile.in, configure: Re-generate.
1578 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
1580         * po/ld.pot: Regenerate.
1582         * lexsup.c (help): Restore translated part of bug string.
1584         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1585         (DEP): Quote when passing vars to sub-make.  Add warning message
1586         to end.
1587         (DEP1): Rewrite for "gcc -MM".
1588         (CLEANFILES): Add DEP2.
1589         Update dependencies.
1590         * Makefile.in: Regenerate.
1592 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
1594         * ld.h: #include "bin-bugs.h"
1595         * lexsup.c (help): Use REPORT_BUGS_TO.
1597 2000-03-27  Denis Chertykov  <denisc@overta.ru>
1599         * configure.tgt (avr-*-*): New target support.
1600         * Makefile.am: Likewise.
1601         * scripttempl/elf32avr.sc: New script file.
1602         * emulparams/avr1200.sh: New file.
1603         * emulparams/avr23xx.sh: New file.
1604         * emulparams/avr4433.sh New file.
1605         * emulparams/avr44x4.sh New file.
1606         * emulparams/avr85xx.sh New file.
1607         * emulparams/avrmega103.sh New file.
1608         * emulparams/avrmega161.sh New file.
1609         * emulparams/avrmega603.sh New file.
1610         * Makefile.in: Regenerate.
1612 2000-03-09  Andreas Jaeger  <aj@suse.de>
1614         * Makefile.am (check-DEJAGNU): Also unset LANG.
1615         * Makefile.in: Rebuild.
1617 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
1619         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1620         archive.
1622 2000-03-02  H.J. Lu  <hjl@gnu.org>
1624         * emulparams/elf32mcore.sh: Include "getopt.h".
1626 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
1628         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1630 2000-03-01  H.J. Lu  <hjl@gnu.org>
1632         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1633         * emulparams/shpe.sh: Likewise.
1635 2000-03-01  Nick Clifton  <nickc@cygnus.com>
1637         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1638         to unused parameters.
1640         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1641         functions only used by DLL code.
1642         (_place_orphan): Initialise 'dollar'.
1644 2000-03-01  H.J. Lu  <hjl@gnu.org>
1646         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1647         indicate if the undefined symbol is a fatal error or not.
1648         Don't delete the output file if "fatal" is false.
1650 2000-02-29  H.J. Lu  <hjl@gnu.org>
1652         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1653         Set LC_COLLATE and LC_ALL to null and export them. It is for
1654         sort which expects the C locale.
1655         Add $(LIBS) to all $(HOSTING_LIBS).
1656         * Makefile.in: Rebuild.
1658 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
1660         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1661         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1662         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1663         (ld_emulation_xfer_struct): Add missing NULL initialiser for
1664         find_potential_libraries.
1666 2000-02-28  Jim Blandy  <jimb@redhat.com>
1668         * ldgram.y (exclude_name_list): Don't require a comma to separate
1669         list entries; the lexer considers commas to be valid part of a
1670         filename, so in something like `foo, bar' the comma is considered
1671         part of the first filename, `foo,'.
1672         * ld.texinfo: Update section on EXCLUDE_FILE lists.
1674 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
1676         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1677         host "i[3456]86-*-freebsdelf*".
1679 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
1681         * scripttempl/i386go32.sc: Move misplaced semicolons.
1683 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
1685         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1686         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1687         (eelf64hppa.c, ehppaelf.c): Remove targets.
1688         * Makefile.in: Rebuild.
1690 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1692         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1693         GNU/Linux/sparc, but keep the default as 32.
1695         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
1696         it default if sparcv9 or sparc64.
1698 2000-02-24  Nick Clifton  <nickc@cygnus.com>
1700         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1701         * Makefile.in: Regenerate.
1702         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1704         * ldemul.h (ld_emulation_xfer_struct): Add new field:
1705         find_potential_libraries.
1706         * ldemul.c (ldemul_find_potential_libraries): New function.
1708         * ldfile.c (ldfile_open_file_search): Allow function to be
1709         exported.
1710         (ldfile_open_file): Call ldemul_find_potential_libraries.
1711         * ldfile.h: Add prototype for ldfile_open_file_search.
1713         * pe-dll.c: Add support for ARM, MIPS and SH targets.
1715         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
1716         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
1718         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1719         (gld_X_find_potential_libraries): New function.  Search for
1720         libraries called "*.lib".
1722         * scripttempl/pe.sc: Add .pdata section.
1724 2000-02-23  Richard Henderson  <rth@cygnus.com>
1726         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1727         Add and use memory regions.
1729 2000-02-23  Linas Vepstas (linas@linas.org)
1731         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1733         * Makefile.am: Add support for Linux/IBM 370.
1734         * configure.tgt: Likewise.
1736         * Makefile.in: Regenerate.
1738 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
1740         * ldlang.c (print_input_section, print_data_statement,
1741         print_reloc_statement, print_padding_statement, insert_pad,
1742         size_input_section, lang_check_section_addresses,
1743         lang_size_sections, lang_do_assignments, lang_set_startof,
1744         lang_one_common): Change `opb' to unsigned.
1745         (lang_do_assignments): Also change `size' to unsigned.
1747 2000-02-16  Richard Henderson  <rth@cygnus.com>
1749         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1751 2000-02-16  Timothy Wall  <twall@cygnus.com>
1753         * mri.c (mri_draw_tree): Add default LMA region argument to call
1754         to lang_leave_output_section_statement.
1755         * ldlang.h: Update prototypes with LMA region arguments.
1756         * ldlang.c (lang_size_sections): Encapsulate region bounds
1757         checking in os_check_region call.
1758         (os_check_region): New function.
1759         (lang_output_section_statement_lookup): Initialize lma_region.
1760         (lang_leave_output_section_statement): Add LMA region argument.
1761         (lang_leave_overlay): Ditto.
1762         * ldgram.y: Handle LMA region syntax.
1763         * ld.texinfo (Output Section Description): Describe LMA region usage.
1764         * emultempl/armelf.em (gld$place_orphan): Add default value for
1765         lma region in call to lang_leave_output_section_statement.
1766         * emultempl/elf32.em (gld$place_orphan): Add default value for
1767         lma region in call to lang_leave_output_section_statement.
1768         * emultempl/pe.em (gld$place_orphan): Add default value for
1769         lma region in call to lang_leave_output_section_statement.
1772 2000-02-04  Timothy Wall  <twall@redhat.com>
1774         * ldlang.c (lang_check_section_addresses): Use bytes instead of
1775         octets when calculating section end addresses.
1777 2000-02-04  Timothy Wall  <twall@redhat.com>
1779         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1781 2000-02-03  Timothy Wall <twall@redhat.com>
1783         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1784         octet count.
1785         * ldlang.c (print_input_section, print_data_statement,
1786         print_reloc_statement, print_padding_statement): Print target
1787         address values and section sizes as bytes, not octets.
1788         (insert_pad) Calculate padding size in octets, and adjust "dot"
1789         by bytes.
1790         (size_input_section) Always adjust "dot" by bytes, not octets.
1791         (lang_check_section_addresses, lang_do_assignments) Adjust
1792         "dot" by bytes, not octets.  Use the larger of the directive size
1793         or octets_per_byte for the number of octets actually allocated in
1794         the output section.
1795         (lang_set_startof) Make sure STARTOF returns a target address.
1796         (lang_one_common) Record size changes in octets.
1797         (lang_abs_symbol_at_end_of) Section end symbol's value is
1798         recorded in target bytes.
1799         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
1800         to be clear about behavior when an octet is smaller than one byte.
1802 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
1804         * ldcref.c (output_cref): Don't pass message strings to printf
1805         as format arg.
1806         Update copyright.
1808         * ldmisc.c (vfinfo): Same here.
1809         Update copyright.
1811 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
1813         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1814         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1815         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1816         Add missing NULL initialisers, and comments.
1818         * testsuite/ld-srec/sr3.cc (__rethrow): New.
1820 2000-01-21  Nick Clifton  <nickc@cygnus.com>
1822         * ldlang.c (lang_size_sections): Fix typo in comment.
1824 2000-01-18  H.J. Lu  <hjl@gnu.org>
1826         * ldlang.c (lang_size_sections): Also update the current
1827         address of a region if the SEC_NEVER_LOAD bit is not set.
1829 2000-01-10  Philip Blundell  <pb@futuretv.com>
1831         * configure.tgt (arm*-*-conix*): New target.
1833 2000-01-07  Nick Clifton  <nickc@cygnus.com>
1835         * ld.texinfo (Options): Remind users to preceed linker command
1836         line switches with -Wl, (or whatever is appropriate) if it is
1837         being invoked by a comnpiler driver program.
1838         Fix description of the behaviour of the -n command line switch.
1840 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
1842         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
1843         (name_list): New.
1844         * ld.texinfo (EXCLUDE_FILE): Update documentation.
1845         * ldgram.y (wildcard_spec): Support a list of excluded_files.
1846         (exclude_name_list): New.
1847         ldlang.c (walk_wild_section): Support list of excluded files.
1848         (print_wild_statement): Likewise.
1849         (lang_add_wild): Likewise.
1850         * ldlang.h (lang_wild_statement_type): Likewise.
1851         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1853 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
1855         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1856         (process_def_file): Use.
1857         (pe_dll_compat_implib): New variable.
1858         (make_one): Use.
1860         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1861         pe_dll_compat_implib.
1863         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1864         compat-implib options.
1865         (gld_${EMULATION_NAME}_list_options): List new options.
1866         (gld_${EMULATION_NAME}_parse_args): Handle.
1868         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1869         dll.
1871         * deffilep.y (opt_name): Allow "." in name.
1873 For older changes see ChangeLog-9899
1875 Local Variables:
1876 mode: change-log
1877 left-margin: 8
1878 fill-column: 74
1879 version-control: never
1880 End: