daily update
[binutils.git] / ld / ChangeLog
blobf1701025b485dfc0a3d7c927facaa62c568e23c9
1 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
3         * ldlang.c (lang_size_sections_1): Skip removed output sections.
5 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
7         * ldexp.c: Replace CONST with const.
8         * ldfile.c: Likewise.
9         * ldfile.h: Likewise.
10         * ldlex.l: Likewise.
11         * mri.c: Likewise.
12         * pe-dll.h: Likewise.
14 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
16         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
18 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
20         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
21         to -1 == implicit enable.
22         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
23         initialize link_info.pei386_auto_import to -1 == implicit
24         enable.
25         (gld_${EMULATION_NAME}_parse_args): When processing
26         --enable-auto-import and --disable-auto-import options, use
27         '1' and '0' instead of 'true' and 'false'.
28         (pe_find_data_imports): Only issue message about auto-import
29         when the feature is implicitly enabled.  Downgrade message to
30         informational instead of warning.
32 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
34         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
36 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
38         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
39         HOSTING_CRT0 and HOSTING_LIBS.
41 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
43         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
45 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
47         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
48         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
50 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
52         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
53         SEC_EXCLUDE sections when doing a relocatable link.
55 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
57         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
58         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
59         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
60         (eshlelf64_nbsd.c): New rules.
61         * Makefile.in: Regenerate.
62         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
63         (sh64-*-netbsd*): New targets.
64         * emulparams/shelf32_nbsd.sh: New file.
65         * emulparams/shelf64_nbsd.sh: New file.
66         * emulparams/shlelf32_nbsd.sh: New file.
67         * emulparams/shlelf64_nbsd.sh: New file.
69 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
71         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
73 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
75         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
76         C++ constructors/destructors, loosely based on the m68hc11 port.
78 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
80         * Makefile.in: Regenerate.
81         * aclocal.m4: Regenerate.
82         * config.in: Regenerate.
83         * configure: Regenerate.
85 2002-05-31  Graeme Peterson  <gp@qnx.com>
87         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
88         (ei386nto.c): Add rule.
89         * Makefile.in: Regenerate.
90         * configure.tgt: Add i[3456]86-*-nto-qnx*.
91         * emulparams/i386nto.sh: New file.
93 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
95         * NEWS: Add entry for VAX ELF support.
97 2002-05-29  Matt Thomas  <matt@3am-software.com>
98             Jason Thorpe  <thorpej@wasabisystems.com>
100         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
101         (eelf32vax.c)
102         (evaxnbsd.c): New rules.
103         * Makefile.in: Regenerate.
104         * configure.tgt (vax-*-netbsdelf*)
105         (vax-*-netbsdaout*)
106         (vax-*-netbsd*): New targets.
107         * emulparams/elf32vax.sh: New file.
108         * emulparams/vaxnbsd.sh: New file.
110 2002-05-29  Adam Nemet  <anemet@lnxw.com>
112         * emultempl/armelf.em (arm_elf_after_open): Don't determine
113         bfd_for_interwork, instead add glue sections to each input bfd.
114         (bfd_for_interwork): New global.
115         (arm_elf_set_bfd_for_interworking): New function.
116         (arm_elf_before_allocation): Use it.
118 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
120         * Makefile.am: Add DLX make target.
121         * configure.tgt: Add DLX configuration.
122         * Makefile.in: Regenerate.
123         * emulparams/elf32_dlx.sh: New file
124         * scripttempl/dlx.sc: New file
126 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
128         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
129         * Makefile.in: Regenerate.
130         * emulparams/elf_chaos.sh: Use elf_chaos script.
131         * scripttempl/elf_chaos.sc: New file.
133 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
135         * ldlang.c (lang_size_sections_1): Move check for conflicting load
136         addresses and regions from here...
137         (lang_get_regions): ...to this new function.
138         (lang_leave_output_section_statement): Use lang_get_regions.
139         (lang_leave_overlay): Likewise.
140         * mri.c (mri_draw_tree): Pass null as last argument to
141         lang_leave_output_section_statement.
142         * emultempl/elf32.em (gld*_place_orphan): Likewise.
143         * emultempl/mmo.em (mmo_place_orphan): Likewise.
144         * emultempl/pe.em (gld*_place_orphan): Likewise.
146 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
148         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
150 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
152         * ldemul.c: Fix formatting.
153         * ldfile.c: Likewise.
154         * pe-dll.c: Likewise.
155         * pe-dll.h: Likewise.
157 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
159         * ldlang.c (lang_process): Formatting, grammar.
161         * ldlex.l: Use #include "" instead of <> for local header files.
163 2002-05-24  TAMURA Kent <kent@netbsd.org>
165         * configure.tgt: Add a target for i386-netbsdpe.
167 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
169         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
170         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
171         output section if necessary.  Handle .tbss.
172         (lang_size_sections): Clear _raw_size for .tbss section
173         (it allocates space in PT_TLS segment only).
174         * ldwrite.c (build_link_order): Build link order for .tbss too.
176 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
178         * configure.in: Correct spelling of AC_PREREQ.
180 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
182         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
183         default.
184         (autofilter_objlist): Add crtbegin.o, crtend.o.
186 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
188         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
189         (longopts): Add new option --exclude-libs.
190         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
191         (gld_${EMULATION_NAME}_parse_args): Use it.
192         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
193         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
194         from whole archives.
195         (pe_dll_add_excludes): Set excludes->type.
196         (auto_export): Add new variable libname and set to archive basename if
197         abfd.  Use it when filtering default and user-specified libarary
198         excludes.  Let string "ALL" mean all libs when filtering user-specified
199         libs.
200         * ld.texinfo: Document --exclude-libs.
202 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
204         * ldemul.c (ldemul_new_vers_pattern): New function.
205         * ldemul.h (ldemul_new_vers_pattern): Declare.
206         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
207         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
208         * emultempl/ppc64elf.em (dotsyms): New static var.
209         (gld${EMULATION_NAME}_new_vers_pattern): New function.
210         (LDEMUL_NEW_VERS_PATTERN): Define.
211         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
212         (PARSE_AND_LIST_LONGOPTS): Likewise.
213         (PARSE_AND_LIST_ARGS_CASES): Handle them.
214         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
215         initialiser.
216         * emultempl/armcoff.em: Likewise.
217         * emultempl/armelf_oabi.em: Likewise.
218         * emultempl/beos.em: Likewise.
219         * emultempl/elf32.em: Likewise.
220         * emultempl/generic.em: Likewise.
221         * emultempl/gld960.em: Likewise.
222         * emultempl/gld960c.em: Likewise.
223         * emultempl/linux.em: Likewise.
224         * emultempl/lnk960.em: Likewise.
225         * emultempl/m68kcoff.em: Likewise.
226         * emultempl/mipsecoff.em: Likewise.
227         * emultempl/pe.em: Likewise.
228         * emultempl/sunos.em: Likewise.
229         * emultempl/ticoff.em: Likewise.
230         * emultempl/vanilla.em: Likewise.
232 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
234         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
235         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
236         (LIB_SEARCH_DIRS): No need to use "tr".
237         (COMPILE_IN): Only set for native targets.
238         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
239         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
240         * configure.tgt (powerpc*): Set tdir_*.
241         (powerpcle*): Correct targ_extra_emuls.
242         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
243         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
245 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
247         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
248         calling lang_add_entry.
250 2002-05-21  H.J. Lu  (hjl@gnu.org)
252         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
253         "-z muldefs".
254         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
256         * ld.texinfo: Updated for --allow-multiple-definition and
257         "-z muldefs".
259         * ldmain.c (main): Initialize the allow_multiple_definition
260         field to false.
262         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
263         (ld_options): Add --allow-multiple-definition.
264         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
266 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
268         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
269         (earmelfb_nbsd.c): New rule.
270         * Makefile.in: Regenerate. 
271         * configure.tgt (armeb-*-netbsdelf*): New target.
272         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls. 
273         (arm-*-netbsd*): Likewise.
274         * emulparams/armelfb_nbsd.sh: New file.
276 2002-05-18  Tom Rix  <trix@redhat.com>
278         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib 
279         support.
281 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
283         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
284         * Makefile.in: Regenerate.
285         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
287 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
289         * emulparams/avr1.sh: New file.
290         * emulparams/avr2.sh: New file.
291         * emulparams/avr3.sh: New file.
292         * emulparams/avr4.sh: New file.
293         * emulparams/avr5.sh: New file.
294         * scripttempl/avr.sc: New file.
296 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
298         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
299         (lang_place_orphans): Abort if just_syms_flag.
301 2002-05-10  Tom Rix  <trix@redhat.com>
303         * emultempl/aix.em: (gld*_set_output_arch): New function. Use 
304         architecture and machine information in the output bfd.
305         (gld*_before_parse): Remove old arch and machine code.
306         (choose_target): Rename to gld*_choose_target.
307         (rtld): Change type to int. 
308         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for 
309         objects in XCOFF archives.
310         * ldfile.h: Update copyright date.
312 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
314         * ldmain.c (main): Enable -z combreloc by default.
316 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
318         * Makefile.am: Honour DESTDIR.
319         * Makefile.in: Regenerate.
321 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
323         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
324         (lang_enter_overlay): Remove the last two parameters.
325         (lang_leave_overlay): Take them here instead.
326         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
327         (section): Pass LMA and crossref flag to lang_leave_overlay rather
328         than lang_enter_overlay.
329         * ldlang.c (lang_memory_region_lookup): Return null for null names.
330         (lang_output_section_statement_lookup): Initialize update_dot_tree.
331         (lang_size_sections_1): Evaluate it.
332         (lang_leave_output_section_statement): Rework LMA lookup.
333         (overlay_lma, overlay_nocrossrefs): Remove.
334         (lang_enter_overlay): Remove LMA and crossref arguments.
335         (lang_enter_overlay_section): Don't set the LMA here.
336         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
337         assignment to the last section's update_dot_tree.  Unconditionally
338         use the load and run-time regions specified in the OVERLAY statement.
339         Likewise the first section's LMA.  Only set the other sections' LMAs
340         when no load region is given.
342 2002-05-06  Nick Clifton <nickc@redhat.com>
344         * po/sv.po: New translation.
346 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
348         * emultempl/hppaelf.em (build_section_lists): New function.
349         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
350         and build_section_lists.
352 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
354         * ld.h: Fix formatting.
355         * ldexp.c: Likewise.
356         * ldfile.c: Likewise.
357         * ldlang.c: Likewise.
358         * ldmain.c: Likewise.
359         * lexsup.c: Likewise.
360         * pe-dll.c: Likewise.
362 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
364         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
365         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
366         (build_section_lists): Do output_section tests here.
368 2002-04-30  Tom Rix  <trix@redhat.com>
370         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
372 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
374         Long branch stubs, multiple stub sections.
375         * emultempl/ppc64elf.em: Include ldctor.h.
376         (stub_file): New var.
377         (group_size): New var.
378         (ppc_create_output_section_statements): New function.
379         (struct hook_stub_info): New.
380         (hook_in_stub): New function.
381         (ppc_add_stub_section): New function.
382         (ppc_layout_sections_again): New function.
383         (build_section_lists): New function.
384         (gld${EMULATION_NAME}_finish): Rewrite.
385         (real_func): New var.
386         (ppc_for_each_input_file_wrapper): New function.
387         (ppc_lang_for_each_input_file): New function.
388         (lang_for_each_input_file): Define.
389         (PARSE_AND_LIST_PROLOGUE): Define.
390         (PARSE_AND_LIST_LONGOPTS): Define.
391         (PARSE_AND_LIST_OPTIONS): Define.
392         (PARSE_AND_LIST_ARGS_CASES): Define.
393         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
395 2002-04-30  Tom Rix  <trix@redhat.com>
397         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add 
398         -blibpath, -bnolibpath support. 
400 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
402         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
403         (eelf32ppcwindiss.c): New target.
404         * Makefile.in: Regenerated.
405         * configure.tgt: Add support for powerpc-*-windiss.
406         * emulparams/elf32ppcwindiss.sh: New file.
407         
408 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
410         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
411         * ldexp.c (exp_print_token): Add "infix_p" argument.
412         (exp_print_tree): Update accordingly.
414 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
416         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
417         * Makefile.in: Regenerate.
418         * mpw-elfmips.c: Delete.
419         * mpw-eppcmac.c: Delete.
420         * mpw-esh.c: Delete.
421         * mpw-idtmips.c: Delete.
423 Wed Apr 17 19:23:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
425         * emulparams/shelf32.sh (MACHINE): Now sh5.
427 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
429         * ldgram.y: Fix syntax warning.
431 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
433         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
434         to prevent "-n" from being taken as an abbreviation for
435         "--no-pipeline-knowledge".
437 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
439         * ldlang.c (lang_size_sections_1): Don't complain about
440         SEC_NEVER_LOAD sections having no memory region specified.
442         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
444 2002-04-07  matthew green  <mrg@redhat.com>
446         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
448 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
450         * dep-in.sed: Cope with absolute paths.
451         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
452         Run "make dep-am".
453         * Makefile.in: Regenerate.
455 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
457         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
459 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
461         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
462         is smaller than maximum, round dot up to common page boundary.
464 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
466         * configure.host: Set up for generic hosts first, then tweak as
467         necessary in more specific targets.
468         (HOSTING_LIBS): Include libgcc_eh.a if found.
470 2002-03-23  Andreas Jaeger  <aj@suse.de>
472         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
474 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
476         * Makefile.am: Run "make dep-am".
477         * Makefile.in: Regenerate.
479 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
481         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
483 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
485         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
486         add the symbol to the linker hash table immediately.
487         (lang_place_undefineds): Split symbol creation out..
488         (insert_undefined): ..to here.
490 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
492         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
493         the contents of the buffer returned from basename function will are
494         getting overwritten while still being used.
496 Mon Mar 18 17:38:39 CET 2002  Jan Hubicka  <jh@suse.cz>
497                               Andreas Jaeger  <aj@suse.de>
498                               Andreas Schwab  <schwab@suse.de>
500         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
501         * elf_x86_64.sh (ARCH): Set to i386:x86-64
502         set libraries to default to lib64 paths.
504 2002-03-18  Tom Rix  <trix@redhat.com>
506         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
507         * configure.tgt : Same.
508         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
509         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
510         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
511         emulation parameters for better -b32, -b64 support.
512         * emulparms/aixrs6.sh : Same.
513         * emulparms/ppcmacos.sh : Same.
514         * emultempl/aix.em (choose_target) : Use new emulation parameters
515         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
516         * Makefile.in : Regenerate.
518 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
520         * po/fr.po: Updated version.
522 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
524         * ldmain.c (main): Move .text readonly flag fudges from here..
525         * ldlang.c (lang_process): ..to here.
527 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
529         * ldlang.c (lang_check): Remove the word size check added in last
530         change.  Treat emitrelocations case as for relocatable links.
532 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
534         * po/fr.po: Updated version.
536 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
538         * ldlang.c (lang_check): Do relocatable link checks first, so that
539         warn_mismatch can't override.  Check compatible and word size too.
541 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
543         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
545 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
547         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
548         DATA_SEGMENT_ALIGN.
550 2002-03-04  H.J. Lu <hjl@gnu.org>
552         * scripttempl/elf.sc: Put .preinit_array, .init_array and
553         .fini_array in the data segment.
555 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
557         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
559 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
561         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
562         .init_array, and .fini_array.
564 2002-02-20  Andreas Schwab  <schwab@suse.de>
566         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
567         .IA64_unwind* in a relocatable link.
569 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
571         * NEWS: Mark 2.12 branch.
573 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
575         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
576         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
578 2002-02-18  Tom Rix  <trix@redhat.com>
580         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
581         (gld*_before_allocation): Same.
582         (gld*_create_output_section_statements): Generate
583         __rtinit if run time linking.  Add librtl.a to the link.
584         (gld*_read_file): Clean.
586 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
588         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
590 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
592         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
593         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
594         and eelf64alpha_fbsd.
595         * Makefile.in: Regenerate.
596         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
597         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
598         use a FreeBSD-specific emulation rather than the psABI one.
599         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
600         for all FreeBSD ELF systems.
601         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
602         emulation.
603         * emulparams/elf32ppc_fbsd.sh: Likewise.
604         * emulparams/elf64_ia64_fbsd.sh: Likewise.
605         * emulparams/elf64_sparc_fbsd.sh: Likewise.
606         * emulparams/elf64alpha_fbsd.sh: Likewise.
607         * emulparams/elf_i386_fbsd.sh: Likewise.
608         * emulparams/elf_x86_64_fbsd.sh: Likewise.
610 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
612         * po/tr.po: Updated version.
614 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
616         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
617         (FILL): Likewise.
619 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
621         * emultempl/mmo.em (mmo_after_open): Don't call
622         _bfd_mmix_check_all_relocs when producing ELF output.
624 2002-02-15  Richard Henderson  <rth@redhat.com>
626         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
627         definition.  Emit a unop+nop pair.
629 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
631         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
632         for presence of .MMIX.reg_contents.linker_allocated before early
633         exit.
635         * NEWS: Mention support for MMIX.
637 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
639         Support arbitrary length fill patterns.
640         * ld.texinfo (Output Section Fill): Describe fill expressions.
641         (FILL): Refer to the above.
642         * ldexp.h (etree_value_type): Add "str" field.
643         (union etree_union): Add "str" to "value" struct.
644         (exp_bigintop): Declare.
645         (exp_get_fill): Declare.
646         * ldexp.c: Include "safe-ctype.h".
647         (exp_intop): Set value.str to NULL.
648         (exp_bigintop): New function.
649         (new_rel): Pass in "str", and set new.str from it.
650         (new_rel_from_section): Set new.str to NULL.
651         (fold_name): Adjust calls to new_rel.
652         (exp_fold_tree): Likewise.
653         (exp_get_fill): New function.
654         * ldgram.y (struct big_int bigint, fill_type *fill): New.
655         (INT): Returns a "bigint".  Adjust all code handling INTs.
656         (fill_opt): Returns a "fill".
657         (fill_exp): Split out of fill_opt, use for FILL.
658         * ldlang.h (struct _fill_type): New.
659         (fill_type): Move typedef to ldexp.h.
660         (lang_output_section_statement_type): "fill" is now a pointer.
661         (lang_fill_statement_type): Likewise.
662         (lang_padding_statement_type): Likewise.
663         (lang_add_fill): Now takes a "fill_type *" param.
664         (lang_leave_output_section_statement): Likewise.
665         (lang_do_assignments): Likewise.
666         (lang_size_sections): Likewise.
667         (lang_leave_overlay_section): Likewise.
668         (lang_leave_overlay): Likewise.
669         * ldlang.c: Include ldgram.h after ldexp.h.
670         (lang_output_section_statement_lookup): Adjust for fill_type change.
671         (print_fill_statement): Likewise.
672         (print_padding_statement): Likewise.
673         (insert_pad): Now takes a "fill_type *" arg.
674         (size_input_section): Likewise.
675         (lang_size_sections_1): Likewise.
676         (lang_size_sections): Likewise.
677         (lang_do_assignments): Likewise.
678         (lang_add_fill): Likewise.
679         (lang_leave_output_section_statement): Likewise.
680         (lang_leave_overlay_section): Likewise.
681         (lang_leave_overlay): Likewise.
682         Adjust all callers of the above function.
683         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
684         starting with "0X" as well as "0x".  Return bigint.str for hex
685         numbers starting with "0x" or "0X", zero bigint.str otherwise.
686         Always use base 16 for numbers starting with "$".
687         * ldmain.c: Include ldgram.h after ldexp.h.
688         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
689         of bfd_fill_link_order.
690         * pe-dll.c: Adjust lang_do_assignments calls.
691         * emultempl/elf32.em: Likewise.
692         * emultempl/hppaelf.em: Likewise.
693         * emultempl/ppc64elf.em: Likewise.
694         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
695         lang_add_assignment call.
696         * emultempl/pe.em: Likewise.
698 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
700         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
701         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
702         the pattern in question is not a regexp.
703         * ldlang.c:  Likewise.
704         * ldlang.h:  Likewise.
705         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
707 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
709         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
710         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
711         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
712         * ldexp.c (exp_data_seg): New variable.
713         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
714         (fold_binary): Handle DATA_SEGMENT_ALIGN.
715         (exp_fold_tree): Handle DATA_SEGMENT_END.
716         Pass allocation_done when recursing instead of hardcoding
717         lang_allocating_phase_enum.
718         * ldexp.h (exp_data_seg): New.
719         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
720         (lang_size_sections): New.
721         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
722         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
723         if COMMONPAGESIZE is defined.
724         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
725         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
726         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
727         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
728         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
729         libraries only.
731 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
733         * Makefile.in: Regenerate.
735 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
737         * lexsup.c: Remove strtoul declaration.
739 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
741         * ldmain.c: Add prototype for main ().
742         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
743         * emultempl/lnk960.em (lnk960_choose_target): Function should
744         take two arguments.
746 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
748         * ldlang.c (entry_section): New initialised variable.
749         (lang_finish): Use it.
750         * ldlang.h (entry_section): Declare.
751         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
752         entry_section to ".opd".
754 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
756         * ld.texinfo (Options): Add back in -nostdlib documentation,
757         which had been inadvertently removed.
759 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
761         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
762         register section vma to a sane value after emitting error.  Make
763         fatal conditions cause program exit when emitting message.
765 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
767         * configure.tgt: Add or32-*-rtems target.
769 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
771         Contribute sh64-elf.
772         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
773         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
774         in OTHER_RELOCATABLE_SECTIONS.
775         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
776         * emulparams/shelf32.sh (STACK_ADDR): Define.
777         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
778         (OTHER_SECTIONS): this.  Removed stack settings.
779         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
780         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
781         2001-03-12  DJ Delorie  <dj@redhat.com>
782         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
783         relaxing if any shmedia or mixed sections are found.
784         2001-03-07  DJ Delorie  <dj@redhat.com>
785         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
786         einfo.  Gracefully decline to output to non-elf formats.
787         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
788         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
789         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
790         * emulparams/shelf32.sh: Ditto.
791         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
792         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
793         comment.
794         2001-01-10  Ben Elliston  <bje@redhat.com>
795         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
796         non-portable shell constructs. From Hans-Peter Nilsson.
797         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
798         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
799         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
800         dependencies to the shell script include chain.
801         * Makefile.in: Regenerate.
802         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
803         * emultempl/sh64elf.em: Update and tweak comments.
804         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
805         make a .cranges section SEC_IN_MEMORY.
806         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
807         * emultempl/sh64elf.em
808         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
809         .cranges section found to be necessary; continue and set stored
810         section contents flags for sections with non-mixed contents.
811         Use a struct sh64_section_data container and sh64_elf_section_data
812         to store contents-type flags.
813         Remove unused update of "isec".
814         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
815         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
816         access contents-type flags.  Assert that the associated container
817         is initialized.  Use that container, not elf_gp_size, to hold size
818         of linker-generated cranges contents.
819         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
820         * emultempl/sh64elf.em
821         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
822         there's already a .cranges section.  When section flag difference
823         is found, don't NULL-check cranges a second time.  Tweak comments.
824         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
825         merging, not max size, as size of ld-generated .cranges contents.
826         Don't set ELF section flags in output section.  When checking for
827         needed .cranges descriptors, don't use a variable; compare
828         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
829         comments.
830         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
831         * emultempl/sh64elf.em: New file.
832         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
833         * Makefile.in: Regenerate.
834         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
835         (OTHER_RELOCATING_SECTIONS): Ditto.
836         (EXTRA_EM_FILE): New, set to sh64elf if not set.
837         * emulparams/shlelf32.sh: Stub out all settings except
838         OUTPUT_FORMAT.  Source shelf32.sh.
839         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
840         OTHER_RELOCATING_SECTIONS.
841         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
842         * emulparams/shlelf64.sh: Stub out all settings except
843         OUTPUT_FORMAT.  Source shelf64.sh.
844         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
845         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
846         .cranges section.
847         (DATA_START_SYMBOLS): Define, provide ___data.
848         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
849         for consecutive .data section.
850         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
851         section after .data section.
852         * emulparams/shlelf64.sh: Ditto.
853         * emulparams/shelf32.sh: Ditto.
854         (ALIGNMENT): Define to 8.
855         * emulparams/shelf32.sh: Ditto.
856         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
857         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
858         built-in linker scripts.
859         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
860         * emulparams/shlelf64.sh: New.
861         * emulparams/shelf64.sh: New.
862         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
863         targ_extra_emuls.
864         * Makefile.am: Add support for shlelf64 and shelf64.
865         * Makefile.in: Regenerate.
866         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
867         * configure.tgt (sh64-*-elf*): Add shelf as default.
868         Add shlelf to targ_extra_emuls.
869         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
870         * emulparams/shelf32.sh: New file.
871         * emulparams/shlelf32.sh: New file.
872         * Makefile.am: Add support for shlelf32 and shelf32.
873         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
874         * Makefile.in: Regenerate.
876 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
878         * ldlang.c (lang_reset_memory_regions): Rename from
879         reset_memory_regions.  Change all callers.  Make public.
880         * ldlang.h (lang_reset_memory_regions): Prototype.
881         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
882         lang_reset_memory_regions before lang_size_sections.
883         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
884         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
886 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
888         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
889         arithmetic when checking for too many global registers.
891 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
893         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
894         (ehppanbsd.c): New rule.
895         * Makefile.in: Regenerate.
896         * configure.tgt (hppa*-*-netbsd*): New target.
897         * emulparams/hppalinux.sh: Add comment to check other files
898         that source this file it is modified, and list which
899         files that do.
900         * emulparams/hppanbsd.sh: New file.
902 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
904         * scripttempl/xstormy16.sc: Don't allocate extra space for the
905         stack.
907 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
909         Support on-demand global register allocation from
910         R_MMIX_BASE_PLUS_OFFSET relocs.
911         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
912         mmix_set_reg_section_vma.  Call
913         _bfd_mmix_finalize_linker_allocated_gregs.
914         (mmix_before_allocation): New function.
915         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
916         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
917         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
918         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
919         before .MMIX.reg_contents.
920         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
921         (mmo_after_open): New function.
922         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
923         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
924         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
926 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
928         * emulparams/or32.sh: New file.
929         * emulparams/or32elf.sh: New file.
930         * scripttempl/or32.sc: New file.
931         * configure.tgt : Add support for or32.
932         * configure: Regenerate
933         * Makefile.am: Add support for or32.
934         * Makefile.in: Regenerate.
935         * NEWS: Mention support for or32.
936         * po/ld.pot: Regenerate.
938 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
939             Mitch Lichtenberg  <mpl@broadcom.com>
941         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
942         * emultempl/mipself.em: New file to handle MIPS ELF embedded
943         reloc creation (ld --embedded-relocs).
945 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
947         * configure: Regenerated.
949 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
951         * Makefile.am (install): Depend on install-info.
952         * Makefile.in: Regenerate.
954 2002-01-26  Christian Rose  <menthos@menthos.com>
956         * ldmain.c (main): Use full sentences to ease translation.
958 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
960         * po/fr.po: Updated version.
962 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
964         * po/es.po: Updated version.
966 2002-01-25  Andreas Jaeger  <aj@suse.de>
968         * ldlex.l (yy_input): Correct error check.
970 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
972         * ldmisc.c (demangle): Put back dots when string not demangled.
974 2002-01-22  Richard Henderson  <rth@redhat.com>
976         * emulparams/elf64alpha.sh (NOP): Use unop.
978 2002-01-21  Andreas Jaeger  <aj@suse.de>
980         * ldlex.l: Use fread instead of read.
982 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
984         * configure.tgt (ia64-*-netbsd*): New target.
986 2002-01-21  H.J. Lu <hjl@gnu.org>
988         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
989         0.
990         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
992 2002-01-18  Andreas Jaeger  <aj@suse.de>
994         * ldver.c (ldversion): Update year.
996 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
998         * po/ld.pot: Regenerate.
1000 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1002         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1003         * Makefile.in: Regenerate.
1004         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1005         * emultempl/ppc64elf.em: New file.
1007 2002-01-15  DJ Delorie  <dj@redhat.com>
1009         * scripttempl/pe.sc: Add support for constructor priorities.
1011 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1013         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1014         * emulparams/avr23xx.sh: Likewise.
1015         * emulparams/avr4433.sh: Likewise.
1016         * emulparams/avr44x4.sh: Likewise.
1017         * emulparams/avr85xx.sh: Likewise.
1018         * emulparams/avrmega103.sh: Likewise.
1019         * emulparams/avrmega161.sh: Likewise.
1020         * emulparams/avrmega603.sh: Likewise.
1021         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1023 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1025         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1026         archive is excluded.
1028 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1030         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1031         (eshelf_nbsd.c): New rule.
1032         (eshlelf_nbsd.c): New rule.
1033         * Makefile.in: Regenerate.
1034         * configure.tgt (sh*le-*-netbsdelf*): New target.
1035         (sh*-*-netbsdelf*): New target.
1036         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1037         * ld/emulparams/shelf_nbsd.sh: New emulation.
1038         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1040 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1042         * po/es.po: New file: Spanish translation.
1043         * configure.in (ALL_LINGUAS): Add es.
1044         * configure: Regenerate.
1046 2002-01-06  John Marshall  <jmarshall@acm.org>
1048         * ld.texinfo: Note that --emit-relocs is currently only
1049         implemented for ELF.
1051 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1053         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1054         of bfd_section_list_remove and bfd_section_list_insert macros.
1055         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1056         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1058 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1060         * configure.tgt (x86_64-*-netbsd*): New target.
1062 2001-12-21  Tom Rix  <trix@redhat.com>
1064         (gld*_create_output_section_statements): New function.
1065         For -binitfini support.
1066         * emultempl/aix.em (gld*_before_parse): Fix comment.
1067         * emultempl/aix.em (gld*_parse_args): Fix comment.
1069 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1071         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1072         mips*el-*-netbsd*.
1073         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1075         * configure.tgt (arm-*-netbsdelf*): Add target.
1076         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1077         * emulparams/armelf_nbsd.sh: Added.
1078         * Makefile.am: Add rules for earmelf_nbsd.
1079         * Makefile.in: Regenerate.
1081 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1082             Susanne Oberhauser <froh@suse.de>
1084         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1085         s390x-linux entry to use gcc to report configuration, replace gcc
1086         with $CC in s390-linux
1088 2001-12-19  Andreas Jaeger  <aj@suse.de>
1090         * ld.texinfo (VERSION): Fix markup.
1092 2001-12-18  matthew green  <mrg@eterna.com.au>
1094         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1095         (m68kelfnbsd.c): New rule.
1096         * Makefile.in: Regenerate.
1097         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1098         (m68*-*-netbsd*4k*): .. this.
1099         (m68*-*-netbsdelf*): New target.
1100         (m68*-*-netbsd*): Also include ELF support.
1101         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1102         * emulparams/m68kelfnbsd.sh: New emulation.
1104 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1106         * ldgram.y (vers_node): Support anonymous version tags.
1107         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1108         tag is not defined together with non-anonymous versions.
1109         * ld.texinfo: Document it.
1111 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1113         * po/tr.po: New file: Turkish translation.
1114         * configure.in (ALL_LINGUAS): Add tr.
1115         * configure: Regenerate.
1117 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1119         * Makefile.am: Add rules for eelf64alpha_nbsd.
1120         * Makefile.in: Regenerate.
1121         * configure.tgt (alpha*-*-netbsd*): Set
1122         targ_emul to elf64alpha_nbsd.
1123         * emulparams/elf64alpha_nbsd.sh: Added.
1125 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1127         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1128         section_tail when fiddling with section list.
1129         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1130         broken into separate strings to make translation easier.
1131         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1132         fiddling with section list.
1133         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1135 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1137         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1139 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1141         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1143 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1145         * emultempl/elf32.em (finish): Supply output_bfd
1146         to bfd_elf*_discard_info.
1147         (OPTION_EH_FRAME_HDR): Define.
1148         (longopts): Add --eh-frame-hdr.
1149         (parse_args): Handle it.
1150         (list_options): Add --eh-frame-hdr to help.
1151         * emultempl/hppaelf.em (finish): Supply output_bfd
1152         to bfd_elf*_discard_info.
1153         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1155 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1157         * lexsup.c (parse_args): Don't pass shortopts to second call to
1158         getopt functions.  Restore optind rather than decrementing before
1159         second call.  Remove errind as it now duplicates last_optind.
1161 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1163         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1165 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1166             Richard Henderson  <rth@redhat.com>
1168         * Makefile.am: Add support for xstormy16.
1169         * configure.tgt: Add support for xstormy16.
1170         * Makefile.in: Regenerate.
1171         * emulparams/elf32xstormy16.sh: New file.
1172         * scripttempl/xstormy16.sc: New file.
1174 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1176         * Makefile.in (LIB_PATH): Make configurable.
1177         (GENSCRIPTS): Set LIB_PATH in environment.
1178         * configure.in: Substitute LIB_PATH.
1179         * configure: Regenerate.
1180         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1181         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1183 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1185         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1186         describing the -N option so that it is easier to translate into
1187         foreign languages.
1189 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1191         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1192         statements describing a single option with a single, newline
1193         escaped fprintf.  This allows better translation into other
1194         languages.
1196         * ldmain.c (add_archive_element): Combine multiple strings
1197         into a single string to permit better translation into other
1198         languages.
1200 2001-12-05  Tom Rix  <trix@redhat.com>
1202         * Makefile.am: Remove eaixppc64.
1203         * Makefile.in: Regenerate.
1205 2001-12-04  Tom Rix  <trix@redhat.com>
1207         * emultempl/aix.em (choose_target): Change default target to
1208         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1209         warning.
1210         (gld*_read_file):  Fix typo.
1211         (change_symbol_mode): Add prototype.
1212         (is_syscall): Same.
1214         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1215         * emulparams/aixrs6.sh : Same.
1216         * emulparams/ppcmacos.sh : Same.
1217         * emulparams/aixppc64.sh : Delete file.
1218         * emultempl/aix.em : Formatting changes.
1220 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1222         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1223         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1224         __Sbss.
1225         (OTHER_END_SYMBOLS): Fix formatting.
1226         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1227         (OTHER_END_SYMBOLS): Fix formatting.
1229 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1231         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1233 2001-12-02  Tom Rix  <trix@redhat.com>
1235         * configure.tgt : Remove eaixppc64 emulations.
1236         * Makefile.in : Remove eaixppc64.c
1237         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1238         (ldemul_default_target): Same.
1239         * emultempl/gld960.em (gld960_choose_target):  Same.
1240         * emultempl/gld960c.em (gld960_choose_target):  Same.
1241         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1242         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1243         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1244         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1245         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1246         -b32 and -b64.
1248 2001-11-27  H.J. Lu <hjl@gnu.org>
1250         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1251         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1252         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1253         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1254         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1255         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1256         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1257         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1259         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1260         is not empty.
1261         (SDATA): Likewise.
1262         (REL_SDATA): Likewise.
1263         (REL_SBSS): Likewise.
1264         (REL_SDATA2): Likewise.
1265         (REL_SBSS2): Likewise.
1266         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1267         (SDATA2): Likewise.
1269 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1271         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1272         destructor in rom.
1273         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1275 2001-11-22  H.J. Lu  <hjl@gnu.org>
1277         * Makefile.in: Regenerated with automake based on automake
1278         1.4-8 in RedHat 7.1.
1280 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1282         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1283         (config.status): Delete rule.
1284         Add extra dependencies to cover sourced emulparams files.
1285         * Makefile.in: Regenerate.
1287         * scripttempl/elf.sc: Order <section>, <section>.* and
1288         corresponding linkonce sections as seen in input files.
1289         Formatting fixes.  Zero vma of all sections if not relocating.
1290         (STACK): Define and insert if STACK_ADDR defined.
1291         (OTHER_RELOCATING_SECTIONS): Delete.
1292         (OTHER_END_SYMBOLS): Define.
1293         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1294         (OTHER_READWRITE_SECTIONS): Likewise.
1295         (OTHER_GOT_SECTIONS): Likewise.
1296         (OTHER_SDATA_SECTIONS): Likewise.
1297         (OTHER_BSS_SECTIONS): Likewise.
1298         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1299         (OTHER_READWRITE_SECTIONS): Likewise.
1300         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1301         (OTHER_READWRITE_SECTIONS): Likewise
1303         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1304         (STACK_ADDR): Define.
1305         * emulparams/armelf_oabi.sh: As for armelf.sh.
1306         * emulparams/elf32mcore.sh: As for armelf.sh.
1307         * emulparams/h8300elf.sh: As for armelf.sh.
1308         * emulparams/mn10200.sh: As for armelf.sh.
1309         * emulparams/shelf.sh: As for armelf.sh.
1311         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1312         (OTHER_END_SYMBOLS): Define.
1313         * emulparams/m32relf.sh: As for elf32fr30.sh.
1314         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1315         * emulparams/h8300self.sh: As for elf32fr30.sh.
1317         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1318         defines with RELOCATING test.
1319         (OTHER_SDATA_SECTIONS): Likewise.
1320         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1321         (OTHER_END_SYMBOLS): ..this.
1322         * emulparams/crislinux.sh: As for criself.sh.
1324         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1325         if not relocating.
1326         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1327         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1328         normal and linkonce sections as seen in input files.
1329         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1330         (TEXT_DYNAMIC): Likewise.
1331         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1332         (OTHER_SDATA_SECTIONS): Likewise.
1333         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1334         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1335         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1336         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1337         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1338         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1339         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1340         sections as seen in input files.
1341         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1342         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1343         if not relocating.
1344         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1345         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1346         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1347         (OTHER_SECTIONS): Instead, use this..
1348         (OTHER_END_SYMBOLS): ..and this.
1350         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1351         * emulparams/elf32bsmip.sh: Likewise.
1352         * emulparams/elf32btsmip.sh: Likewise.
1353         * emulparams/elf32ebmip.sh: Likewise.
1354         * emulparams/elf32lmip.sh: Likewise.
1355         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1356         * emulparams/elf32lsmip.sh: Likewise.
1357         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1358         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1359         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1360         * emulparams/elf64btsmip.sh: Likewise.
1361         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1362         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1363         * emulparams/elf32ppclinux.sh: Likewise.
1364         * emulparams/elf32ppcsim.sh: Likewise.
1365         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1366         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1367         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1368         * emulparams/h8300self.sh: Likewise.
1369         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1370         * emulparams/sh.sh: Comment.
1371         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1372         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1373         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1375 2001-11-21  David Heine <dlheine@tensilica.com>
1376             Alan Modra  <amodra@bigpond.net.au>
1378         * ldlang.c (map_input_to_output_sections): Replace "break"
1379         accidentally removed with 2001-08-03 change.
1380         (lang_gc_sections_1): Likewise.
1382 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1384         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1386 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1388         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1389         of false when calling lang_size_sections.
1390         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1392 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1394         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1395         function when LDEMUL_FINISH isn't set to the same name.  Don't
1396         call ${LDEMUL_FINISH}.
1397         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1398         * emultempl/armelf.em (arm_elf_finish): Call
1399         gld${EMULATION_NAME}_finish.
1400         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1401         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1402         hppaelf_layout_sections_again if necessary.
1403         (need_laying_out): New var.
1404         (hppaelf_layaout_sections_again): Rename to
1405         hppaelf_layout_sections_again.  Clear need_laying_out.
1406         (PARSE_AND_LIST_OPTIONS): Format text.
1408 2001-11-14  H.J. Lu  <hjl@gnu.org>
1410         * emultempl/armelf.em (arm_elf_finish): Renamed from
1411         gld${EMULATION_NAME}_finish.
1412         (LDEMUL_FINISH): Set to arm_elf_finish.
1414 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1416         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1417         (struct ld_emulation_xfer_struct): Use it.
1419 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1421         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1422         additional symbols referenced by newer crt0.o files from HP.
1424 2001-11-12  Anthony Green  <green@redhat.com>
1426         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1428 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1430         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1431         * Makefile.in: Regenerate.
1433 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1435         * ld.texinfo: Use @command for commands, @option for options.
1436         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1437         the page man title.
1438         * Makefile.in: Rebuild.
1440 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1442         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1443         Add support for targets.
1445 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1447         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1448         * configure: Regernate.
1449         * po/fr.po: New file.
1450         * po/sv.po: New file.
1452 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1454         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1455         as little endian default and to support big endian.
1457 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1459         * ld.texinfo (Options): Document new option, -nostdlib.
1460         * lexsup.c (OPTION_NOSTDLIB): New definition.
1461         (ld_options): Add entry for "nostdlib".
1462         (parse_args): Handle OPTIONS_NOSTDLIB.
1463         * ldfile.c (ldfile_add_library_path): Don't add directories
1464         to the search path if they weren't specified on the command line
1465         and -nostdlib was specified.
1466         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1468 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1470         * lexsup.c (parse_args): Prevent infinite parsing loop when
1471         "-rpath.a" is specified on the command line.
1472         Replace calls to fprintf with calls to einfo.
1474 2001-10-31  John Marshall  <jmarshall@acm.org>
1476         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1477         appear only once across all the linker scripts involved in a link
1478         invocation no longer applies.  Make the documentation reflect
1479         that.
1481 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1483         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1484         targets.
1485         (sh-*-linux*): Added targ_extra_libpath.
1487 2001-10-31  David Heine  <dlheine@tensilica.com>
1489         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1490         for padding statements.
1492 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1494         * configure.tgt (mmix-*-*): New target.
1495         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1496         Add dependencies to match.
1497         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1498         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1499         scripttempl/mmo.sc: New files.
1500         * gen-doc.texi: @set MMIX.
1501         * ld.texinfo: Ditto.
1502         [MMIX] Add MMIX node.
1503         * Makefile.in: Regenerate.
1505 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1507         * ldlang.c: Fix a comment typo.
1509 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1511         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1512         entries, and match *-*-linux*.
1514 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1516         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1517         with ldlex_script, ldlex_popstate.
1518         (ifile_p1): Likewise.
1519         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1520         correct slot.
1521         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1522         to 1.  Don't BEGIN(SCRIPT).
1523         (lex_redirect): Similarly.
1524         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1526 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1528         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1529         __EH_FRAME_END__ and accept eh frames into data section.
1530         Add ctor and dtor sections.
1532 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1534         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1535         (auto-export): Fix indentation.
1537 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1539         * pe-dll.c (autofilter_objectlist):  Add startup objects
1540         for profiling.
1541         (auto-export): Constify char * p.
1542         Extract file basename and use strcmp rather than ststr
1543         for object lookup.
1545 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1547         * ldmain.c (get_emulation): Improve comment about the handling
1548         of -mipsN options.
1550 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1552         * po/POTFILES.in: Regenerate.
1554 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1556         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1557         -z nocopyreloc and -z nocombreloc usage strings.
1559 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1561         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1562         in usage.
1564 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1566         * scripttempl/armaout.sc: Place .bss section after end of aligned
1567         data section to match behaviour of aout code in constructrion of
1568         header.
1570 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1572         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1573         startup files for mingw32 dlls to list.
1575 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1577         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1579 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
1581         * configure.tgt (targ): Add arm9e-*-elf.
1583 2001-10-05  H.J. Lu  <hjl@gnu.org>
1585         * genscripts.sh: Fix a typo in the last change.
1587 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
1589         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1590         -z nocombreloc in usage.
1592 2001-10-03  Jim Blandy  <jimb@redhat.com>
1594         * genscripts.sh: Include a comment at the top of each generated
1595         script, explaining its purpose.
1597 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
1599         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1600         * NEWS: Mention -z nocopyreloc.
1601         * ld.texinfo (Options): Describe nocopyreloc.
1603 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
1605         * configure: Regenerate.
1607 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
1609         * ldver.h (ld_program_version): Remove declaration.
1610         * lexsup.c (parse_args): Move printing of copyright message..
1611         * ldver.c (ldversion): .. to here.
1612         Use BFD_VERSION_STRING in place of BFD_VERSION.
1613         (ld_program_version): Remove.
1614         * Makefile.am (Makefile): Depend on bfd/configure.in.
1615         Run "make dep-am".
1616         * Makefile.in: Regenerate.
1618 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1620         * Makefile.am: Update dependencies with "make dep-am".
1621         * Makefile.in: Regenerate.
1623 2001-09-29  John Reiser  <jreiser@BitWagon.com>
1625         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1626         * lexsup.c: Add --no-define-common commandline option.
1627         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1628         * ldlex.l: Likewise.
1629         * ld.h: Add command_line.inhibit_common_definition.
1630         * ldmain.c (main): Initialize.
1631         * ld.texinfo: Document.
1633 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
1635         * ldmisc.c (USE_STDARG): Remove.
1636         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1637         (einfo): Likewise.
1638         (minfo): Likewise.
1639         (lfinfo): Likewise.
1641         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1642         declarations.  Update copyright.
1644 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1646         * pe-dll.c: Remove obsoleted declaration of
1647         pe_get_data_import_dll_name.
1648         (pe_create_import_fixup): Fix thinko.
1650         * ld.texinfo(enable-auto-import): Clarify the explanation.
1652 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
1654         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1655         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1656         DLL_SUPPORT controlled code.
1658 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1660         * emultempl/pe.em(pe_data_import_dll): Make static.
1661         (pe_get_data_import_dll_name): New accessor function.
1662         * pe-dll.c(pe_create_import_fixup): call
1663         pe_get_data_import_dll_name() from pe.em, instead of
1664         directly accessing pe_data_import_dll variable from pe.em.
1666 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
1668         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1669         (def_file_add_directive): Use ISSPACE instead of isspace.
1670         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1671         isdigit/isxdigit/isalpha/isalnum.
1672         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1673         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1674         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1675         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1676         isalnum.
1677         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1678         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1679         isupper/tolower.
1680         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1681         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1682         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1683         (ctor_prio): Use ISDIGIT instead of isdigit.
1684         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1685         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1686         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1687         isupper/tolower.
1688         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1689         (stricpy): Use TOLOWER instead of isupper/tolower.
1690         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1691         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1692         (lex_warn_invalid): Use ISPRINT instead of isprint.
1693         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1694         (main): For gettext, also set the LC_CTYPE locate facet.
1695         (add_keepsyms_file): Use ISSPACE instead of isspace.
1696         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1697         (is_num, parse_args): Use ISDIGIT instead of isdigit.
1698         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1699         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1700         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1701         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1702         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1703         (quoteput): Use ISSPACE instead of isspace.
1704         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1705         instead of isalnum.
1707 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
1709         * deffilep.y (def_stash_module): Constify "name" param.
1711         * pe-dll.c: Replace CONST with const throughout.
1712         (quick_symbol): Constify "n1", "n2", "n3" params.
1713         (make_singleton_name_thunk): Constify "import" param.  Make
1714         "buffer_len" a size_t.
1715         (make_import_fixup_entry): Constify "name", "fixup_name",
1716         "dll_symname" params.
1717         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
1718         (pe_get32): Likewise.
1719         (pe_implied_import_dll): Likewise.
1721         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1722         (sort_by_section_name): Likewise.
1724         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1725         (make_import_fixup): Cast printf arg, rel->address to long rather
1726         than int.
1727         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1729 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
1731         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1732         defines BufferSize.  Increase buffer size by one.
1734 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
1736         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1738 2001-09-14  Kevin Lo <kevlo@openbsd.org>
1740         * configure.tgt: Add arm-openbsd target.
1742 2001-09-12  H.J. Lu  <hjl@gnu.org>
1744         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1745         eelf64lppc.o to ...
1746         (ALL_64_EMULATIONS): Here.
1747         * Makefile.in: Regenerated.
1749 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1751         * emultempl/pe.em(make_import_fixup): change signature to
1752         take asection as well as arelec; we need this for proper
1753         error reporting.  Only call pe_create_import_fixup() if
1754         there is no attempt to add a constant addend to the reloc;
1755         otherwise, report error condition.
1756         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1757         since final argument is a pointer to make_import_fixup().
1758         Change call to cb() to match make_import_fixup() signature.
1759         (make_import_fixup_mark): make buffer_len unsigned.
1760         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1762 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
1764         * ld.texinfo: add verbose documentation for auto-import
1765         direct-addressing workaround, to compliment the terse
1766         error message.
1768 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
1770         * scripttempl/v850.sc: Add gcc_except_table sections.
1772 2001-09-11  Jeffrey A Law  (law@cygnus.com)
1774         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1775         * emulparams/h8300self.sh: Similarly.
1777 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1779         * ld.texinfo (Options, --stack): Correct default value for stack
1780         reserve.
1782 2001-09-05  Tom Rix <trix@redhat.com>
1784         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1786 2001-09-03  Andreas Jaeger  <aj@suse.de>
1788         * emultempl/beos.em: Declare prototypes for comparions functions,
1789         adjust definitions.
1791 2001-09-02  Andreas Jaeger  <aj@suse.de>
1793         * emultempl/aix.em: Add missing prototype.
1794         * emultempl/lnk960.em: Likewise.
1795         * emultempl/vanilla.em: Likewise.
1796         * emultempl/armcoff.em: Likewise.
1797         * emultempl/armelf_oabi.em: Likewise.
1798         * emultempl/beos.em: Likewise.
1799         * emultempl/gld960c.em: Likewise.
1800         * emultempl/gld960.em: Likewise.
1802         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1803         for prototype declaration.
1805 2001-08-31  Eric Christopher  <echristo@redhat.com>
1806             Jason Eckhardt  <jle@redhat.com>
1808         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1810 2001-08-31  Andreas Jaeger  <aj@suse.de>
1812         * emultempl/pe.em: Add missing prototypes.
1813         (gld_${EMULATION_NAME}_after_open): Remove extra args to
1814         pe_find_data_imports.
1815         (pr_sym): Add unused attribute.
1817 2001-08-29  Joel Sherrill <joel@OARcorp.com>
1819         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1820         default from coff to elf.
1822 2001-08-29  Jeff Law <law@redhat.com>
1824         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
1825         ARCH specification.
1826         * emulparams/h8300self.sh: Similarly.
1828 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
1830         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1831         eh8300self.o .
1832         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1833         * configure.tgt (h8300-*-elf*): New case.
1834         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1835         * emulparams/h8300self.sh: New file.
1836         * Makefile.in: Regenerated.
1838 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
1840         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1841         with macro name.
1843 2001-08-27  Linus Nordberg  <linus@swox.com>
1844             Alan Modra  <amodra@bigpond.net.au>
1846         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1847         (eelf64ppc.c, eelf64lppc.c): Add make targets.
1848         Run "make dep-am"
1849         * Makefile.in: Regenerate.
1850         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
1851         entries to correct alphabetical position.
1852         * emulparams/elf64ppc.sh: New.
1853         * emulparams/elf64lppc.sh: New.
1855 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
1857         * ldmain.c (main): Declare BSIZE as static.
1859 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1861         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1862         into .rel.dyn resp. .rela.dyn if combreloc.
1863         (get_script): If .x linker script is equal to .xn, only put it
1864         once into the binary.
1865         Add .xc and .xsc scripts.
1866         (parse_args): Handle -z combreloc and -z nocombreloc.
1867         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1868         For .xc and .xsc scripts put all .rel* or .rela* input sections
1869         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1870         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1871         is elf.
1872         Strip trailing whitespace from script.
1873         Generate .xc and .xsc scripts if requested.
1874         * ldmain.c (main): Initialize link_info.combreloc and
1875         link_info.spare_dynamic_tags.
1876         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1877         (ld_options): Add --spare-dynamic-tags option.
1878         (parse_args): Likewise.
1879         * ld.texinfo: Document -z combreloc and -z nocombreloc.
1880         * ldint.texinfo: Document .xc and .xsc linker scripts.
1881         * NEWS: Add notes about -z combreloc and SHF_MERGE.
1883 2001-08-22  H.J. Lu  <hjl@gnu.org>
1885         * emulparams/elf32fr30.sh: Add a newline.
1887 2001-08-21  Andreas Jaeger  <aj@suse.de>
1889         * deffilep.y: Add missing prototypes.
1890         * pe-dll.c: Likewise.
1892 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
1894         * ldlang.c (insert_pad): Fix typos in last patch.
1896         * ldlang.c: When traversing lang_statement_union_type lists,
1897         consistently use "header.next" rather than "next".
1898         * mpw-eppcmac.c: Likewise.
1899         * emultempl/beos.em: Likewise.
1900         * emultempl/hppaelf.em: Likewise.
1901         * emultempl/pe.em: Likewise.
1902         * ldlang.h (union lang_statement_union): Remove "next" field.
1904         * ldlang.c (insert_pad): Use offsetof macro.
1905         (lang_size_sections): Always neuter padding statements.
1906         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1908         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1909         passed to lang_size_sections.
1910         (pe_exe_fill_sections): Likewise.
1911         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1912         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1914 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
1916         * emultempl/aix.em: Formatting fixes.
1918 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
1920         * ldlang.c (insert_pad): Make use of an existing pad statement if
1921         available.  Move code calculating alignment, adjusting section
1922         alignment power, and adjusting dot to ..
1923         (size_input_section): .. here.  Remove unused relax param.
1924         (lang_size_sections): Change boolean `relax' param to boolean *.
1925         Adjust call to size_input_section.  Make use of insert_pad to
1926         place pad after the assignment statement.  If relaxing, zap
1927         padding statements.
1928         (reset_memory_regions): Reset output_bfd section sizes too.
1929         (relax_again): Move to..
1930         (lang_process): ..here.  Adjust call to lang_size_sections, and
1931         remove duplicated code.
1932         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1934 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
1936         * ld.texinfo: Document that fill values now use the four least
1937         significant bytes.
1938         * emulparams/elf32fr30.sh (NOP): Update.
1939         * emulparams/elf32mcore.sh: Likewise.
1940         * emulparams/elf64_s390.sh: Likewise.
1941         * emulparams/elf_i386.sh: Likewise.
1942         * emulparams/elf_i386_be.sh: Likewise.
1943         * emulparams/elf_i386_chaos.sh: Likewise.
1944         * emulparams/elf_i386_ldso.sh: Likewise.
1945         * emulparams/elf_s390.sh: Likewise.
1946         * emulparams/elf_x86_64.sh: Likewise.
1947         * emulparams/i386moss.sh: Likewise.
1948         * emulparams/i386nw.sh: Likewise.
1949         * emulparams/m68kelf.sh: Likewise.
1950         * scripttempl/elf.sc: Update NOP comment.
1951         * scripttempl/elfi370.sc: Likewise.
1952         * scripttempl/elfm68hc11.sc: Likewise.
1953         * scripttempl/elfm68hc12.sc: Likewise.
1954         * scripttempl/nw.sc: Likewise.
1956 2001-08-15  Tom Rix <trix@redhat.com>
1958         * ldgram.y (saved_script_handle): Initialize to NULL.
1959         * ldmain.c (main): Change check on saved_script_handle.
1961 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
1963         * emultempl/elf32.em: Formatting fixes.
1964         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
1965         looking at sec->owner.
1966         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1967         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
1968         unused code, and reorganize orphan section placement code.
1970         * ldlang.c (wild_doit): Rename to lang_add_section.
1971         * ldlang.h: Here too.
1972         * mpw-elfmips.c: And here.
1973         * emultempl/beos.em: And here.
1974         * emultempl/elf32.em: And here.
1975         * emultempl/hppaelf.em: And here.
1976         * emultempl/pe.em: And here.
1978 2001-08-13  Richard Henderson  <rth@redhat.com>
1980         * emultempl/needrelax.em: New file.
1981         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1982         * Makefile.am (eelf64_ia64.c): Depend on it.
1983         * Makefile.in: Rebuild.
1985 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
1987         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1988         output_section is set non-NULL.
1990         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1991         `true' for SEC_EXCLUDE sections so that the generic code doesn't
1992         needlessly create an output_section_statement.  Treat a correctly
1993         named output_section_statement with NULL bfd_section as compatible.
1995 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
1997         * emultempl/generic.em: Support EXTRA_EM_FILE.
1998         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1999         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2000         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2001         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2002         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2003         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2004         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2005         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2006         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2007         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2009 2001-08-12  Richard Henderson  <rth@redhat.com>
2011         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2012         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2013         scripttempl/v850.sc: Keep .jcr data.
2015 2001-08-12  H.J. Lu  <hjl@gnu.org>
2016             Andrew Haley  <aph@cambridge.redhat.com>
2017             Nick Clifton  <nickc@redhat.com>
2019         * ldgram.y (had_script): Change name to saved_script_handle.
2020         Change type to file handle.
2021         * ld.h (had_script): Rename and retype.
2022         * ldfile.c (ldfile_open_command_file): Save the file handle
2023         used in saved_script_handle.
2024         * lexsup.c (parse_args): Do not allow -c option to alter
2025         saved_script_handle.
2026         * ldmain.c (main): Print out the linker script used if
2027         --verbose is given.  Check saved_script_handle to obtain the
2028         external linker script used, or if NULL, dump the builtin
2029         script.
2030         * ld.texinfo: Document that --verbose now dumps the linker
2031         script used, regardless of whether it was an internal or an
2032         external script.
2034 2001-08-10  Andreas Jaeger  <aj@suse.de>
2036         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2037         to build warnings.
2038         * configure: Regenerate.
2040 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2042         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2044         * scripttempl/elf.sc: Move non-text .dynamic section before
2045         .plt/.got/.sdata* group.
2046         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2047         (OTHER_SDATA_SECTIONS): Add.
2048         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2049         OTHER_GOT_SECTIONS.
2050         * emulparams/crislinux.sh: Likewise.
2051         * emulparams/elf32b4300.sh: Likewise.
2052         * emulparams/elf32bmip.sh: Likewise.
2053         * emulparams/elf32bmipn32.sh: Likewise.
2054         * emulparams/elf32bsmip.sh: Likewise.
2055         * emulparams/elf32btsmip.sh: Likewise.
2056         * emulparams/elf32ebmip.sh: Likewise.
2057         * emulparams/elf32elmip.sh: Likewise.
2058         * emulparams/elf32l4300.sh: Likewise.
2059         * emulparams/elf32lmip.sh: Likewise.
2060         * emulparams/elf32lsmip.sh: Likewise.
2061         * emulparams/elf32ltsmip.sh: Likewise.
2062         * emulparams/elf64bmip.sh: Likewise.
2063         * emulparams/elf64btsmip.sh: Likewise.
2064         * emulparams/elf64ltsmip.sh: Likewise.
2066 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2068         * genscripts.sh: Source the emulparams script before each output
2069         script is generated so that variables like `RELOCATING' may affect
2070         variables defined in the emulparams script.
2072 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2074         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2075         order.
2077         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2078         ie. iterate over wild_statement.section_list.
2079         (gld${EMULATION_NAME}_place_orphan): Likewise.
2081 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2083         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2084         .fini[0-4] sections used by _exit
2085         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2086         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2087         * scripttempl/elfm68hc11.sc: Likewise.
2089 2001-08-03  H.J. Lu  <hjl@gnu.org>
2091         * emultempl/beos.em (init): Add the missing initialization.
2093 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2095         * ld.texinfo (Input Section Basics): Clarify ordering of output
2096         sections.
2097         * ldlang.c (callback_t): Add wildcard_list param.
2098         (walk_wild_section): Remove "section" param.  Rewrite for
2099         lang_wild_statement_type change.  Remove unique_section_p test.
2100         (walk_wild_file): Remove "section" param.
2101         (walk_wild): Remove "section" and "file" params.
2102         (lang_gc_wild): Likewise.
2103         (wild): Likewise.  Modify for lang_wild_statement_type change.
2104         (wild_sort): Likewise.  Add "sec" param.
2105         (gc_section_callback): Likewise.
2106         (output_section_callback): Likewise.  Do unique_section_p test.
2107         (map_input_to_output_sections): Modify call to wild.
2108         (lang_gc_sections_1): Likewise.
2109         (print_wild_statement): Modify for lang_wild_statement_type
2110         change.
2111         (lang_add_wild): Replace filename, filenames_sorted param with
2112         filespec.  Replace section_name, sections_sorted,
2113         exclude_filename_list with section_list.
2114         * ldlang.h (lang_add_wild): Here too.
2115         (lang_wild_statement_type): Replace section_name, sections_sorted,
2116         and exclude_filename_list with section_list.
2117         * ldgram.y (current_file): Delete.
2118         (%union): Add wildcard_list.
2119         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2120         rather than calling lang_add_wild for each entry.
2121         (input_section_spec_no_keep): Call lang_add_wild here instead.
2122         * ld.h (struct wildcard_list): Declare.
2123         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2125 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2127         * ldmain.c (main): initialize link_info.pei386_auto_import
2128         * pe-dll.c: new tables for auto-export filtering
2129         (auto_export): change API, pass abfd for contextual filtering.
2130         Loop thru tables of excluded symbols instead of comparing
2131         "by hand".
2133 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2135         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2136         static variable current_sec (static struct sec *). Add
2137         forward declaration for add_bfd_to_link.
2138         (process_def_file): Don't export undefined symbols. Do not
2139         export symbols starting with  "_imp__".  Call auto_export()
2140         with new API.
2141         (pe_walk_relocs_of_symbol): New function.
2142         (generate_reloc): add optional extra debugging
2143         (pe_dll_generate_def_file): eliminate extraneous initial blank
2144         line in output
2145         (make_one): enlarge symtab to make room for __nm__ symbols
2146         (DATA auto-import support).
2147         (make_singleton_name_thunk): New function.
2148         (make_import_fixup_mark): New function.
2149         (make_import_fixup_entry): New function.
2150         (pe_create_import_fixup): New function.
2151         (add_bfd_to_link): Specify that 'name' argument is a CONST
2152         char *.
2153         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2154         declare new functions pe_walk_relocs_of_symbol and
2155         pe_create_import_fixup.
2156         * emultempl/pe.em: add new options --enable-auto-import,
2157         --disable-auto-import, and --enable-extra-pe-debug.
2158         (make_import_fixup): New function.
2159         (pe_find_data_imports): New function.
2160         (pr_sym): New function.
2161         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2162         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2163         CODE.
2165 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2167         * ld.texinfo: add additional documentation for
2168         --export-all-symbols.  Document --out-implib,
2169         --enable-auto-image-base, --disable-auto-image-base,
2170         --dll-search-prefix, --enable-auto-import, and
2171         --disable-auto-import.
2172         * ldint.texinfo: Add detailed documentation on auto-import
2173         implementation.
2175 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2177         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2178         example.
2180 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2182         * Makefile.am: Update dependencies with "make dep-am".
2183         * Makefile.in: Regenerate
2185 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2187         * ldcref.c (check_section_sym_xref): New function.
2188         (check_nocrossrefs): Call it.
2189         (check_nocrossref): Interate over h->refs here instead of..
2190         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2191         rather than hash_entry pointers.
2192         (struct check_refs_info): Keep symbol name rather than hash entry.
2193         Remove "same".
2194         (check_reloc_refs): Tweak for above changes in check_refs_info.
2195         Only report references to section syms when symname is NULL to
2196         prevent duplicate messages for the same reloc.
2198 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2200         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2201         available.  Do not print NULL trees.
2202         (exp_print_token): Print unknown tokens with values > 126 as
2203         decimal values not ASCII characters.
2205         * ldlang.c (lang_leave_overlay): If a region is specified assign
2206         it to all sections inside the overlay unless they have been
2207         assigned to the own, non-default, memory region.
2209         * README: Add header for consistency with other README files.
2211 2001-07-14  H.J. Lu  <hjl@gnu.org>
2213         * emultempl/elf32.em (output_prev_sec_find): Never return
2214         bfd_abs_section_ptr, bfd_com_section_ptr nor
2215         bfd_und_section_ptr.
2217 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2219         * Makefile.am (em32relf.c): Change dependency from generic.em to
2220         elf32.em.
2221         * Makefile.in: Regenerate.
2223 2001-07-14  matthew green  <mrg@eterna.com.au>
2225         * configure.tgt (i386-*-netbsdelf*): New target.
2226         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2228 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2230         * emultempl/elf32.em (output_prev_sec_find): New.
2231         (place_orphan): Use it.
2233 2001-07-11  H.J. Lu  <hjl@gnu.org>
2235         * ldmain.c (main): Fix typos in the last change.
2237 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2239         * ldmain.c (main): Disallow -F and -f without -shared.
2241 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2243         * emultempl/pe.em (after_open): Check for the output_bfd not
2244         having any coff_data structure allocated to it.
2246 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2248         * emultempl/elf32.em: Do not assuming that contents of the buffer
2249         returned from basename function will remain unchanged accross other
2250         function calls.
2252 2001-07-03  H.J. Lu  <hjl@gnu.org>
2254         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2255         2001-07-03. It creates dynamic entries even for static binaries.
2257 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2259         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2260         (DYNAMIC): Use it to reserve few dynamic entries for
2261         post-linking tools.
2263 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2265         * emulparams/hppa64linux.sh: New file.
2266         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2267         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2268         (ehppa64linux.c): Add rule to make it.
2269         Run "make dep-am".
2270         * Makefile.in: Regenerate.
2272 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2274         * ld.texinfo (Options, -r): Mention restrictions when using
2275         different object formats.
2277 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2279         * ldlang.c (lang_check): Emit fatal error if relocatable link
2280         between different object flavours with relocations in input.
2282 2001-06-19  H.J. Lu  <hjl@gnu.org>
2284         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2285         (--version-script): Mention the language support.
2287 2001-06-19  H.J. Lu <hjl@gnu.org>
2289         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2291 2001-06-18  H.J. Lu <hjl@gnu.org>
2293         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2294         (diststuff): Add $(MANS).
2295         * Makefile.in: Regenerated.
2297         * ld.1: Removed.
2299 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2301         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2302         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2303         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2304         * ld.h (args_type): Remove member export_dynamic.  All users
2305         changed to use struct bfd_link_info member.
2307         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2308         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2309         * Makefile.in: Regenerate.
2311 2001-06-18  H.J. Lu  <hjl@gnu.org>
2313         * ldlang.c (init_os): Add the newline to the einfo call.
2314         (lang_check): Likewise.
2315         (lang_do_version_exports_section): Likewise.
2317 2001-06-15  H.J. Lu  <hjl@gnu.org>
2319         * lexsup.c (parse_args); Save optind to report unrecognized
2320         option.
2322 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2324         * ldlang.c (lang_check): Emit fatal error if relocatable link
2325         between different object flavours.
2327         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2328         Set new link_info member export_dynamic.
2329         * ldmain.c (main): Initialize new link_info member export_dynamic.
2331 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2333         * ldlang.c (walk_wild): Only call walk_wild_file if
2334         lookup_name returns something.
2335         (lookup_name): If load_symbols fails, return NULL.
2336         (load_symbols): Change to a boolean function.
2337         (open_input_bfds): If load_symbols fails then do not make the
2338         executable.
2340 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2342         * ldlang.c (record_bfd_errors): Remove.
2344         * emultempl/aix.em: Fix copyright dates.
2346 2001-06-07  Andreas Jaeger  <aj@suse.de>
2348         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2349         (TEXT_START_ADDR): Likewise.
2351 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2353         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2355 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2357         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2359 2001-05-31  H.J. Lu  <hjl@gnu.org>
2361         * ldlang.c (open_input_bfds): Don't change the bfd error
2362         handler whilst loading symbols.
2364 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2366         * configure.tgt: Remove i370-mvs architecture, it is not currently
2367         supported.
2369 2001-05-25  H.J. Lu  <hjl@gnu.org>
2371         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2372         like emulparams/aixppc.sh.
2374 2001-05-25  H.J. Lu  <hjl@gnu.org>
2376         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2377         setting of output_filename after bfd_scan_arch.
2378         * emultempl/pe.em: Likewise.
2380 2001-05-25  H.J. Lu  <hjl@gnu.org>
2382         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2383         like emulparams/aixppc.sh.
2385         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2386         instead of ${srcdir}/emultempl/stringify.sed.
2388 2001-05-25  Timothy Wall  <twall@oculustech.com>
2390         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2391         output.
2393 2001-05-25  Alan Modra  <amodra@one.net.au>
2395         * configure.host: Replace linuxoldld with linux*oldld.
2396         * configure.tgt: Likewise.
2398 2001-05-24  H.J. Lu  <hjl@gnu.org>
2400         * emultempl/stringify.sed: Removed again.
2402 2001-05-24  H.J. Lu  <hjl@gnu.org>
2404         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2405         (gld${EMULATION_NAME}_before_parse): Initialize
2406         ldfile_output_architecture, ldfile_output_machine and
2407         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2408         * emultempl/beos.em: Likewise.
2409         * emultempl/elf32.em: Likewise.
2410         * emultempl/linux.em: Likewise.
2411         * emultempl/mipsecoff.em: Likewise.
2412         * emultempl/pe.em: Likewise.
2413         * emultempl/sunos.em: Likewise.
2415 2001-05-24 Tom Rix <trix@redhat.com>
2417         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2418         udate import file format.
2419         (change_symbol_mode) New, same
2420         (is_syscall) New, same
2421         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2422         * emulparams/aixppc64.sh : same
2423         * emulparams/aixrs6.sh : same
2424         * emulparams/ppcmacos.sh : same
2425         * emultempl/aix.em : use strtoull to parse options
2426         * Makefile.am : add eaixppc64 emulation for xcoff64
2427         * Makefile.in : same
2428         * configure.tgt : same
2430         * scripttempl/aix.sc : default text section offset to 0x10000000
2431         default data section offset to 0x20000000
2432         add .sv3264 and .sv64 pseudo sections
2433         loader and debug sections use the currect section offset.
2435         * emultempl/aix.em : Add xcoff64 support
2436         Add -binitfini support
2437         (gld${EMULATION_NAME}_before_parse) -binitfini
2438         (gld${EMULATION_NAME}_parse_args) same
2439         (gld${EMULATION_NAME}_before_allocation) format change for special
2440         sections
2442         * emulparams/aixppc64.sh : New file for xcoff64 support
2444 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2446         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2447         variable to avoid non-portable shell construct.
2449 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2451         * ldmain.c (get_emulation): Add -mips5 command line argument.
2453 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2455         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2456         (ELF_INTERPRETER_NAME): Define it.
2457         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2458         it.
2459         * configure.tgt (targ_emul, targ_extra_emuls)
2460         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2461         as primary, elf_i386 as extra.
2462         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2463         (eelf_i386_ldso.c): New rule.
2464         * Makefile.in: Rebuilt.
2466 2001-05-22  Nick Clifton  <nickc@redhat.com>
2468         * lexsup.c (ld_options):  Allow -I to be an alias for
2469         --dynamic-linker.  This is for Solaris compatability.
2470         * ld.texinfo: Document that -I can be used.
2471         * ld.1: Regenerate.
2473 2001-05-16  Alan Modra  <amodra@one.net.au>
2475         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2476         whether an input section is the first one assigned to an output
2477         section.
2478         Assorted formatting fixes.
2480 2001-05-14  DJ Delorie  <dj@delorie.com>
2482         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2483         * Makefile.in: Ditto.
2485 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2487         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2488         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2489         output sections.
2490         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2492 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2494         * ldlang.c (lang_process): Call bfd_merge_sections.
2496 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2498         * ldgram.y: Fix typo.
2500 2001-05-03  H.J. Lu  <hjl@gnu.org>
2502         * emultempl/elf32.em: Include "libiberty.h".
2503         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2504         basename of the bfd filename.
2505         (gld${EMULATION_NAME}_stat_needed): Likewise.
2506         (gld${EMULATION_NAME}_try_needed): Likewise.
2507         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2509 2001-05-02  H.J. Lu  <hjl@gnu.org>
2511         * emultempl/pe.em: Include <ctype.h>.
2513 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2515         * emulparams/elf32openrisc.sh: New file.
2517         * Makefile.am: Add OpenRISC target.
2518         * Makefile.in: Regenerated.
2520         * configure.tgt: Add openrisc-*-* mapping.
2522 2001-05-02  Nick Clifton  <nickc@redhat.com>
2524         * emultempl/aix.em: Replace buystring with xstrdup.
2525         * emultempl/beos.em: Replace buystring with xstrdup.
2527 2001-05-02  H.J. Lu  <hjl@gnu.org>
2529         * ldfile.c: Include "libiberty.h".
2530         * ldlex.l: Likewise.
2532         * ldmisc.c (buystring): Removed.
2533         * ldmisc.h: Likewise.
2535         * ldfile.c: Replace buystring with xstrdup.
2536         * ldlang.c: Likewise.
2537         * ldlex.l: Likewise.
2538         * ldmain.c: Likewise.
2539         * ldmisc.c: Likewise.
2540         * lexsup.c: Likewise.
2541         * mpw-eppcmac.c: Likewise.
2543 2001-04-30  Andreas Jaeger  <aj@suse.de>
2545         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2547 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2549         * ldlang.c (load_symbols): Give emulation a chance
2550         to process unrecognized file before fatal error is
2551         reported, not after.
2553 2001-04-27  Sean McNeil <sean@mcneil.com>
2555         * configure.tgt: Add arm-vxworks target.
2556         * scripttempl/armcoff.sc: Support .text or .data as a section name
2557         prefix.
2558         Define _etext.
2560 2001-04-13  J.T. Conklin  <jtc@redback.com>
2562         * ld.texinfo: Document --fatal-warnings.
2563         * ld.1: Regenerate.
2565         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2566         warnings have been turned into errors.
2567         * lexsup.c (OPTION_WARN_FATAL): Define.
2568         (ld_options): Entry for --fatal-warnings.
2569         (parse_args): Handle OPTION_WARN_FATAL.
2570         * ld.h (ld_config_type): Add fatal_warnings field.
2572 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2574         * ldmain.c (main): Default to discard_sec_merge.
2575         * lexsup.c (OPTION_DISCARD_NONE): Define.
2576         (ld_options): Add --discard-none.
2577         (parse_args): Handle OPTION_DISCARD_NONE.
2578         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2579         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2580         all its input sections match.
2582 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
2584         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2585         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2586         (eelf32ltsmip.c): New target.
2587         (eelf64btsmip.c): Likewise.
2588         (eelf64ltsmip.c): Likewise.
2589         * Makefile.in: Regenerated.
2591         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2592         target.
2593         (mips*-*-linux-gnu*): Likewise.
2595         * emulparams/elf32ltsmip.sh: New. Traditional little endian
2596         MIPS taget.
2597         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2598         target.
2599         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2600         endian target.
2602 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
2604         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2605         correct value of __Stext here.
2606         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2607         .startup section.
2609         * emulparams/crislinux.sh: Remove FIXME.
2611 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
2613         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2614         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2616 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
2618         * configure.tgt (cris-*-*): Change default emulation to criself.
2619         (cris-*-*aout*): New rule.
2621 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
2623         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2624         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2626 2001-03-26  Andreas Jaeger  <aj@suse.de>
2628         * ld.texinfo (Overview): Fix syntax in texi code.
2630 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2632         * ld.texinfo: Put @c man indications to generate the ld man page.
2633         When generating man, define all the variables.  Define SEEALSO
2634         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
2635         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2636         (ld.1): Generate from ld.texinfo.
2637         * Makefile.in: Regenerate.
2639 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
2641         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2642         and '-fdata-sections'. Set the VMA of STABS sections to zero.
2644 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2646         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2647         is an absolute path look only for this file and not along the path.
2649 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2651         * emultempl/elf32.em (OPTION_GROUP): New macro.
2652         Add new option Bgroup to longopts.
2653         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2654         (gld*_list_options): Add -Bgroup and -z defs.
2655         * ld.1: Document -Bgroup and -z defs.
2656         * ld.texinfo: Likewise.
2658 2001-03-07  Michael Meissner  <meissner@redhat.com>
2660         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2661         with sections created by -fdata-sections.
2662         (.dynbss,.bss): Ditto.
2664 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
2666         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2667         after_allocation_default, not gld..._before_allocation.
2669 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
2671         * configure.in (BFD_VERSION): New.
2672         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2673         * configure: Regenerate.
2674         * Makefile.am: Run "make dep-am"
2675         * Makefile.in: Regenerate.
2677 2001-02-26  Timothy Wall  <twall@cygnus.com>
2679         * emulparams/elf64_aix.sh: Add additional read-only sections;
2680         uncomment lines which are now required.
2682 2001-02-26  H.J. Lu  <hjl@gnu.org>
2684         * ldlang.c (open_input_bfds): Set the bfd error handler so
2685         that problems can be caught whilst loading symbols.
2686         (record_bfd_errors): New function: Report BFD errors and mark
2687         the executable output as being invalid.
2689 2001-02-22  Timothy Wall  <twall@cygnus.com>
2691         * configure.host: Add configuration for ia64-*-aix*.
2692         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2693         Add dependencies for eelf64_aix.c.
2694         * Makefile.in: Regenerate.
2695         * configure.tgt: Add ia64-*-aix* mapping.
2696         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2697         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2698         AIX-specific test.
2700 2001-02-20  H.J. Lu  <hjl@gnu.org>
2702         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2703         false if we found the file.
2705 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
2707         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2708         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2710 2001-02-18  lars brinkhoff  <lars@nocrew.org>
2712         * Makefile.am: Add PDP-11 target.
2713         * configure.tgt: Likewise.
2714         * emulparams/pdp11.sh: New file.
2716 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
2718         * configure.host: Add a generic FreeBSD configuration entry such that
2719         all [modern] FreeBSD systems on all platforms will look the same.
2721 2001-02-14  H.J. Lu  <hjl@gnu.org>
2723         * configure.tgt: Remove mention of earmelf_linux26.
2725 2001-02-13  Richard Henderson  <rth@redhat.com>
2727         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2729 2001-02-13  H.J. Lu  <hjl@gnu.org>
2731         * ldexp.h (node_type): Add etree_provided.
2732         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2733         type to etree_provided if defined by PROVIDE. Allow updating
2734         for etree_provided.
2735         (exp_print_tree): Handle etree_provided.
2736         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2737         etree_provided.
2739 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
2741         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2742         .IA_64.unwind.* pattern to unwind table section and
2743         .IA_64.unwind_info* pattern to unwind info section.
2745 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2747         * Makefile.am: Add linux target for S/390.
2748         * Makefile.in: Likewise.
2749         * configure.host: Likewise.
2750         * configure.tgt: Likewise.
2751         * emulparams/elf64_s390.sh: New file.
2752         * emulparams/elf_s390.sh: New file.
2754 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2756         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2757         targ_extra_libpath.
2758         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2760 2001-02-06  Philip Blundell  <philb@gnu.org>
2762         * Makefile.am: Remove mention of earmelf_linux26.
2763         * Makefile.in: Regenerate.
2765 2001-02-04  Philip Blundell  <philb@gnu.org>
2767         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2768         * emulparams/armelf_linux26.sh: Delete.
2769         * configure.tgt: Remove mention of armelf_linux26 emulation.
2771 2001-02-01  Nick Clifton  <nickc@redhat.com>
2773         * ld.1: Replace occurances of -oformat with --oformat.
2775 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
2777         * ldlang.c (lang_leave_overlay): Don't set lma_region when
2778         load_base is specified.
2780 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
2782         * emultempl/elf32.em: Correct spelling in comments and listed
2783         options.
2785 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
2787         * ldlang.c (lang_leave_overlay): Only set lma_region from the
2788         default for the first section of a group of overlay sections.
2790 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
2792         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2793         * Makefile.in: Regenerate.
2794         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2795         Check for null tool_dir.
2797 2001-01-16  Jim Wilson  <wilson@redhat.com>
2799         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2800         and IA_64.unwind.info.
2802 2001-01-16  H.J. Lu  <hjl@gnu.org>
2804         * ldlang.c (lang_check): Merge the private data only if the
2805         input file has contents.
2807 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
2809         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2811         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2812         enabling search for libmilli.  On a relocatable link, make .text
2813         sections unique.
2814         (LDEMUL_AFTER_PARSE): Define.
2815         (hppaelf_finish): Correct spelling of relocatable in comments.
2817         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2818         rummage through the script for sections on the unique list.
2819         Correct length of strncmp for ".note".
2820         (gld${EMULATION_NAME}_check_needed): Rearrange function.
2822         * ldlang.c (unique_section_list): New var.
2823         (unique_section_p): New function.
2824         (walk_wild_section): Don't match sections on unique_section_list.
2825         (lang_add_unique): New function.
2826         Correct spelling of relocatable in comments.
2828         * ldlang.h (struct unique_sections): Declare.
2829         (unique_section_list): Declare.
2830         (unique_section_p): Declare.
2831         (lang_add_unique): Declare.
2833         * lexsup.c (ld_options): Allow --unique to take an optional arg.
2834         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2836         * ld.texinfo (--unique): Update.
2838 2001-01-13  Nick Clifton  <nickc@redhat.com>
2840         * lexsup.c (parse_args): Remove spurious white space.
2842 2001-01-12  Nick Clifton  <nickc@redhat.com>
2844         * lexsup.c (parse_args): Update copyright date.
2846 2001-01-12  Philip Blundell  <pb@futuretv.com>
2848         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2850 2001-01-10  Kazu Hirata  <kazu@hxi.com>
2852         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
2853         * scripttempl/h8300h.sc: Fix formatting.
2854         * scripttempl/h8300s.sc: Likewise.
2855         * scripttempl/h8500.sc: Likewise.
2856         * scripttempl/h8500b.sc: Likewise.
2857         * scripttempl/h8500c.sc: Likewise.
2858         * scripttempl/h8500m.sc: Likewise.
2859         * scripttempl/h8500s.sc: Likewise.
2861 2000-01-07  David O'Brien  <obrien@BSDi.com>
2863         * emultempl/elf32.em: Only perform Linux ld hints processing when
2864         targeting Linux.
2866 2001-01-07  Philip Blundell  <philb@gnu.org>
2868         * ld.texinfo (Bug Reporting): Update email address for reports.
2870 2000-12-31  Nick Clifton  <nickc@redhat.com>
2872         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2873         options by checking for a return value of '?' not -1.
2875 2000-12-28  Nick Clifton  <nickc@redhat.com>
2877         * lexsup.c (struct ld_option): Add new enum value:
2878         EXACTLY_TWO_DASHES.
2879         (ld_options[]): Change -omagic, -output and -oformat options
2880         to be EXACTLY_TWO_DASHES.
2881         (OUTPUT_COUNT): Use ARRAY_SIZE.
2882         (parse_args): Change parameter 'argc' to unsigned.
2883         Place EXACTLY_TWO_DASHES options into new really_longopts
2884         array.
2885         If getopt_long_only fails, try calling getopt_long using the
2886         really_longopts array.
2887         (help): Print a double dash for both EXACTLY_TWO_DASHES and
2888         TWO_DASHES options.
2890         * ldlex.h: Fix prototype of parse_args.
2892         * ld.texinfo: Document that long options starting with 'o'
2893         must be preceeded by two dashes.  Change example of a single
2894         dashed long option from -oformat to -trace-symbol.
2896 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2898         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2899         (longopts[]): New --no-default-excludes option.
2900         (gld_${EMULATION_NAME}_list_options): Document.
2901         (gld_${EMULATION_NAME}_parse_args): Handle.
2903 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2905         * ldlang.c (new_stat): Revert the last beautification with "innocent"
2906         whitespace, it breaks the K&R C preprocessor.
2908 2000-12-11  DJ Delorie  <dj@redhat.com>
2910         * ld.texinfo: Add notes about --whole-archive and gcc.
2912 2000-11-18  Fred Fish  <fnf@be.com>
2914         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2915         (ld_options): Entry for --allow-shlib-undefined.
2916         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2917         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2918         to false.
2919         * ld.texinfo: Document new command line switch.
2921 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
2923         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2924         .fixup is actually read/write.
2925         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2926         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2927         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2929 2000-12-11  Jan Hubicka  <jh@suse.cz>
2931         * NEWS: Add note about x86_64 architecture.
2933 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
2935         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2936         Set DWARF2 sections to a VMA of zero.
2938 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
2940         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2941         New targets.
2942         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2943         (sparc*-*-rtems*): Switched from a.out to ELF.
2945 2000-11-30  Jan Hubicka  <jh@suse.cz>
2947         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2948         (eelf_x86_64.c): New.
2949         * Makefile.in: Regenerate.
2950         * configure.tgt: Add support for x86_64-*-linux-gnu*.
2951         * emulparams/elf_x86_64.sh: New.
2953 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
2955         * emulparams/crislinux.sh (ENTRY): Change back to _start.
2956         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2958         * scripttempl/crisaout.sc: Change all RELOCATING not related to
2959         merging non-a.out sections into CONSTRUCTING.
2961 2000-11-28  Nick Clifton  <nickc@redhat.com>
2963         * ld.1 (COPYING): Mention that the GNU Free Documentation
2964         License is present in the sources, but not the output, and
2965         also available from the GNU website.
2966         (GNU Free Documentation License): Comment out this section.
2968 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
2970         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2971         does not use them.
2973 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
2975         * ld.1: Remove old date so it does not give the impression the manpage
2976         is way out of date.
2978 2000-11-24  Nick Clifton  <nickc@redhat.com>
2980         * configure.tgt (xscale-coff): Add target.
2981         (xscale-elf): Add target.
2983 2000-11-24  Fred Fish  <fnf@be.com>
2985         * ldmain.c (main): Remove redundant init of config.make_executable
2986         to true.
2988 2000-11-15  Richard Henderson  <rth@redhat.com>
2990         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2992 2000-11-14  Kazu Hirata  <kazu@hxi.com>
2994         * scripttempl/h8300.sc: Fix formatting.
2995         * scripttempl/h8300h.sc: Likewise.
2996         * scripttempl/h8300s.sc: Likewise.
2998 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3000         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3002 2000-11-09  Philip Blundell  <pb@futuretv.com>
3004         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3005         around orphan sections whose names can be represented in C.
3007 2000-11-07  Jim Wilson  <wilson@redhat.com>
3009         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3010         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3012 2000-11-06  Nick Clifton  <nickc@redhat.com>
3014         * ld.texinfo: Add GNU Free Documentation License.
3015         * ldint.texinfo: Add GNU Free Documentation License.
3016         * ld.1: Add GNU Free Documentation License.
3018 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3020         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3021         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3023         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3024         Move 2000-11-02 Makefile.in changes to this file.
3025         * Makefile.in: Regenerate.
3027 2000-11-03  Nick Clifton  <nickc@redhat.com>
3029         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3030         constructors and destructors.
3031         * scripttempl/h8300h.sc: Ditto.
3032         * scripttempl/h8300s.sc: Ditto.
3033         * scripttempl/h8500.sc: Ditto.
3034         * scripttempl/h8500b.sc: Ditto.
3035         * scripttempl/h8500c.sc: Ditto.
3036         * scripttempl/h8500m.sc: Ditto.
3037         * scripttempl/h8500s.sc: Ditto.
3038         * scripttempl/v850.sc: Ditto.
3039         * scripttempl/w65.sc: Ditto.
3040         * scripttempl/z8000.sc: Ditto.
3042 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3044         * Makefile.in (e_i386_chaos.c): New rule.
3045         (ALL_EMULATIONS): Added e_i386_chaos.o.
3046         * emulparams/elf_i386_chaos.sh: New file.
3047         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3049 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3051         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3052         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3053         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3054         library path suffix.
3055         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3057 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3059         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3060         for consecutive sections.
3062 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3064         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3065         options.
3066         * ld.texinfo: Added notes about this new option.
3068 2000-10-16  Nick Clifton  <nickc@redhat.com>
3070         * emultempl/pe.em (_after_open): Add tests of return values from
3071         bfd functions.  Emit appropriate error messages if necessary.
3073 2000-10-13  Nick Clifton  <nickc@redhat.com>
3075         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3076         local variables - they are not used, but leave in the call to
3077         bfd_canonicalize_symtab.
3078         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3079         pe_dll_search_prefix.
3081 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3083         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3084         (longopts): New --dll-search-prefix option.
3085         (gld_${EMULATION_NAME}_list_options): Document.
3086         (gld_${EMULATION_NAME}_parse_args): Handle.
3087         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3088         dynamically, search for a dll named '<prefix><basename>.dll'
3089         in preference to 'lib<basename>.dll' if --dll-search-prefix
3090         is specified.
3092 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3094         * ldlang.c (section_already_linked): Set kept_section instead of
3095         sec->comdat->sec.
3097 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3099         * deffile.h: Fix formatting.
3100         * lexsup.c: Likewise.
3101         * mri.c: Likewise.
3103 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3105         * pe-dll.c (make_one): Do not generate code thunk for DATA
3106         exports.
3107         (process_def_file): deduce DATA flag for auto-export sumbols.
3109 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3111         * ld.h: Fix formatting.
3112         * ldcref.c: Likewise.
3113         * ldctor.h: Likewise.
3114         * ldemul.c: Likewise.
3115         * ldemul.h: Likewise.
3116         * ldexp.c: Likewise.
3117         * ldexp.h: Likewise.
3118         * ldfile.c: Likewise.
3119         * ldfile.h: Likewise.
3120         * ldlang.c: Likewise.
3121         * ldlang.h: Likewise.
3122         * ldmain.c: Likewise.
3123         * pe-dll.c: Likewise.
3125         * pe-dll.c: Revert some formatting fixes.
3127 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3129         * pe-dll.c: Fix formatting.
3131 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3133         * ldlang.c: Fix formatting.
3135 2000-10-03  DJ Delorie  <dj@redhat.com>
3137         * pe-dll.c (fill_edata): initialize entire block
3138         (make_one): fill in correct section.
3140 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3142         * ldexp.c: Fix formatting.
3144 2000-10-02  DJ Delorie  <dj@redhat.com>
3146         * emultempl/pe.em (gld_*_after_open): detect case where there two
3147         import libraries for same dll; rename one to ensure proper link
3148         order.
3150         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3151         typo
3152         (generate_edata): fix typo
3154 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3156         * scripttempl/crisaout.sc (ENTRY): Now __start.
3157         (.text): Add default setting for __start.
3158         Remove CONSTRUCTORS handling.
3159         (/DISCARD/): Add .gnu.warning.*.
3160         * emulparams/crislinux.sh (ENTRY): Now __start.
3161         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3162         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3163         (ENTRY): Now __start.
3164         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3165         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3167 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3169         * deffile.h: Fix formatting.
3170         * ld.h: Likewise.
3171         * ldcref.c: Likewise.
3172         * ldctor.c: Likewise.
3173         * ldctor.h: Likewise.
3174         * ldemul.c: Likewise.
3175         * ldemul.h: Likewise.
3176         * ldexp.c: Likewise.
3177         * ldexp.h: Likewise.
3178         * ldfile.c: Likewise.
3179         * ldfile.h: Likewise.
3180         * ldlang.c: Likewise.
3181         * ldlang.h: Likewise.
3182         * lexsup.c: Likewise.
3183         * mri.c: Likewise.
3184         * pe-dll.c: Likewise.
3186 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3188         * pe-dll.c (process_def_file): Uninitialized data wasn't
3189         exported with --export-all-symbols switch.
3191 2000-09-28  DJ Delorie  <dj@redhat.com>
3193         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3194         noname work properly.
3196 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3198         * ld.texinfo (HPPA ELF32): New section.
3200         * emultempl/hppaelf.em (group_size): New.
3201         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3202         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3203         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3204         options to prevent abbreviations matching.
3205         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3206         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3208 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3210         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3211         on the m68*-*-elf target.  Make it support COFF input objects.
3213 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3215         * ldmain.c: Fix formatting.
3216         * ldmisc.c: Likewise.
3217         * ldver.c: Likewise.
3218         * ldwrite.c: Likewise.
3220 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3222         * ldwrite.c (clone_section): Silence gcc warnings.
3224 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3226         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3227         out of memory failure.
3229         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3230         (clone_section): Handle out of memory failures.  Rename var to
3231         avoid c++ reserved word.
3233 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3235         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3236         stub_name param to stub_sec_name.
3237         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3239 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3241         * emultempl/m68kelf.em: New file.
3242         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3243         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3244         * Makefile.in: Regenerate.
3246 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3248         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3249         only as needed.
3251 2000-09-13  Nick Clifton  <nickc@redhat.com>
3253         * ldmain.c (multiple_definition): Disable relaxation if
3254         multiple symbol definitions are encountered - otherwise the
3255         linker could abort with an assertion failure.
3257 2000-09-10  Nick Clifton  <nickc@redhat.com>
3259         * mri.c: Fix formatting.
3261 2000-09-07  H.J. Lu  <hjl@gnu.org>
3263         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3264         * configure: Rebuild.
3266 2000-09-07  H.J. Lu  <hjl@gnu.org>
3268         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3269         * Makefile.in: Rebuild.
3271 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3273         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3274         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3275         when no place-holder.  Add some comments.  Test both SEC_CODE and
3276         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3277         Handle case where no output section statement created.
3279 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3281         * configure.tgt (sh-*-linux*): Added.
3282         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3283         * Makefile.in: Rebuilt.
3284         * emulparams/shelf_linux.sh: New file.
3285         * emulparams/shlelf_linux.sh: New file.
3287 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3289         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3290         try shuffling sections when the orphan happens to be the place
3291         holder.  Keep count of unique section names generated so we speed
3292         the search for a new name.
3294 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3296         * configure: Rebuilt with new libtool.m4.
3298 2000-09-05  Nick Clifton  <nickc@redhat.com>
3300         * Makefile.in: Regenerate.
3301         * aclocal.m4: Regenerate.
3302         * configure: Regenerate.
3303         * config.in: Regenerate.
3304         * po/ld.pot: Regenerate.
3306         * ldint.texinfo: Remove CVS revision marker - it foils local
3307         comparisons.
3309         * emultempl/ticoff.em: Remove extraneous comma.
3311 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3313         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3314         to stub section flags.
3315         (hppa_for_each_input_file_wrapper): New.
3316         (hppa_lang_for_each_input_file): New.
3317         (lang_for_each_input_file): Define to call above.
3318         (multi_subspace): New.
3319         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3320         (PARSE_AND_LIST_PROLOGUE): Define.
3321         (PARSE_AND_LIST_LONGOPTS): Define.
3322         (PARSE_AND_LIST_OPTIONS): Define.
3323         (PARSE_AND_LIST_ARGS_CASES): Define.
3324         (hppaelf_finish): Call elf32_hppa_set_gp.
3325         (hppaelf_set_output_arch): Remove.
3326         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3328         * emulparams/hppalinux.sh (ELFSIZE): Define.
3329         (MACHINE): Define.
3330         (OTHER_READONLY_SECTIONS): Define.
3331         (DATA_PLT): Define.
3332         (GENERATE_SHLIB_SCRIPT): Define.
3334         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3335         to const throughout.  Change `void *' to `PTR' throughout.
3336         (lang_memory_default): Function is local to file, add `static'.
3338         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3339         (ehppalinux.c): Likewise.
3340         (earmelf.c): Likewise.
3341         (earmelf_linux.c): Likewise.
3342         (earmelf_linux26.c): Likewise.
3343         * Makefile.in: Regenerate.
3345         * ld.h (ld_config_type): Add unique_orphan_sections.
3346         * lexsup.c (OPTION_UNIQUE): Define.
3347         (ld_options): Add "--unique".
3348         (parse_args): Handle it.
3349         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3350         search for an existing output section if unique_orphan_sections is
3351         set.  Make use of bfd_get_unique_section_name rather than
3352         duplicating code here.
3353         * ld.texinfo: Describe --unique.
3355         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3356         optional arg to split-by-file.
3357         (parse_args): Handle them.
3358         * ld.texinfo: Update description of these options.
3359         * ldwrite.c (clone_section): Pass in the section name.  Replace
3360         local code with bfd_get_unique_section_name.
3361         (split_sections): Tidy code and comments.  Use a list traversal
3362         more appropriate to the list construction.  Handle cooked section
3363         sizes.  Split when split_by_reloc reached rather than exceeded.
3364         Track section size and split when split_by_file reached.  Fix
3365         link_order_tail (even though it's not used).
3366         (ldwrite): Modify condition for calling split_sections to suit
3367         changed split_by_reloc and split_by_file.
3368         * ldmain.c (main): Init config.split_by_reloc and
3369         config.split_by_file to -1.
3370         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3371         Change split_by_file to bfd_size_type.
3373 2000-09-02  Nick Clifton  <nickc@redhat.com>
3375         * configure.in: Increase version number to 2.10.91.
3376         * NEWS: Mention new ability to support removal of duplicate DWARF2
3377         debug information.
3378         * configure: Regenerate.
3379         * aclocal.m4: Regenerate.
3380         * config.in: Regenerate.
3382 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3384         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3385         sections.
3386         * scripttempl/elf32avr.sc: Ditto.
3387         * scripttempl/elfd10v.sc: Ditto.
3388         * scripttempl/elfd30v.sc: Ditto.
3389         * scripttempl/elfi370.sc: Ditto.
3390         * scripttempl/elfm68hc11.sc: Ditto.
3391         * scripttempl/elfm68hc12.sc: Ditto.
3392         * scripttempl/elfi386beos.sc: Ditto.
3393         * scripttempl/v850.sc: Ditto.
3395 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3397         * acinclude.m4: Include libtool and gettext macros from the
3398         top level.
3399         * aclocal.m4, configure: Rebuilt.
3401 2000-08-25  Nick Clifton  <nickc@redhat.com>
3403         * ldlang.c (open_output): When choosing the target for a
3404         particular endianness, do nothing if the target is not
3405         supported.
3407 2000-08-25  H.J. Lu  <hjl@gnu.org>
3409         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3410         check -rpath nor LD_RUN_PATH for cross link.
3411         * ld.texinfo: Document the change.
3413 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3415         * NEWS: Mention support for CRIS.
3417 2000-08-23  H.J. Lu  <hjl@gnu.org>
3419         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3420         the current runpath list from bfd_elf_get_runpath_list ()
3421         before search.
3423 2000-08-22  H.J. Lu  <hjl@gnu.org>
3425         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3426         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3427         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3428         trace_file_tries is non-zero.
3429         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3430         if trace_file_tries is non-zero.
3432         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3433         * NEWS: Mention it.
3435 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3437         * NEWS: Mention i860 support.
3439 2000-08-14  Andreas Schwab  <schwab@suse.de>
3441         * scripttempl/elf.sc: Fix last change to use correct comment
3442         syntax.
3444 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3446         * scripttempl/elf.sc: Add a comment giving the correspondence
3447         between sections, per-datum sections, and linkonce sections.  Make
3448         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3449         .sbss2.
3451 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3453         * emulparams/elf32_i860.sh: New file.
3454         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3455         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3456         (eelf32_i860.c): New rule.
3457         * Makefile.in: Regenerate.
3459 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3461         * emulparams/mipspe.sh (ENTRY): Add definition.
3463 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3465         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3466         in error message.
3468 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3470         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3471         the final size of .bss section.
3472         * scripttempl/elfm68hc12.sc: Likewise.
3474 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3476         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3477         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3478         lastoptind and prevoptind vars, and keep track of last optind.
3479         (gld_${EMULATION_NAME}_list_options): Rename to
3480         gld${EMULATION_NAME}_list_options.
3482 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3484         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3485         (i586-sco-sysv5uw7.1.0).
3487 2000-07-27  H.J. Lu  <hjl@gnu.org>
3489         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3490         (PARSE_AND_LIST_PROLOGUE): New.
3491         (PARSE_AND_LIST_LONGOPTS): Likewise.
3492         (PARSE_AND_LIST_OPTIONS): Likewise.
3493         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3494         (PARSE_AND_LIST_EPILOGUE): Likewise.
3496 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3498         * emultempl/armelf.em: Elide functions common to elf32.em,
3499         ie. most of the file.
3500         (arm_elf_after_open): New.  Do arm specific things then call
3501         gld${EMULATION_NAME}_after_open.
3502         (arm_elf_before_allocation): New.  Call
3503         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3504         (PARSE_AND_LIST_PROLOGUE): Define.
3505         (PARSE_AND_LIST_SHORTOPTS): Define.
3506         (PARSE_AND_LIST_LONGOPTS): Define.
3507         (PARSE_AND_LIST_OPTIONS): Define.
3508         (PARSE_AND_LIST_ARGS_CASES): Define.
3509         (LDEMUL_AFTER_OPEN): Define.
3510         (LDEMUL_BEFORE_ALLOCATION): Define.
3511         (LDEMUL_BEFORE_PARSE): Define.
3512         (LDEMUL_FINISH): Define.
3514         * emultempl/hppaelf.em: Similarly zap most of this file.
3515         (hppaelf_add_stub_section): Prototype.
3516         (hppaelf_layaout_sections_again): Prototype.
3517         (hook_in_stub): Prototype.
3518         (LDEMUL_SET_OUTPUT_ARCH): Define.
3519         (LDEMUL_FINISH): Define.
3520         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3522         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3523         (EXTRA_EM_FILE): New.
3524         * emulparams/armelf_linux.sh: Likewise.
3525         * emulparams/armelf_linux26.sh: Likewise.
3526         * emulparams/hppalinux.sh: Likewise.
3527         * emulparams/hppaelf.sh: Likewise.
3528         (NOP): Define.
3530         * emultempl/elf32.em: Fix formatting.
3531         (EXTRA_EM_FILE): Source it.
3532         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3533         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3534         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3535         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3536         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3537         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3538         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3539         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3540         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3541         allow functions in this file to be overridden.
3542         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3544         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3546         * emultempl/elf32.em: Reorganize file.
3548 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3550         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3551         specific option to fit 64-bit executable in the lower
3552         31-bit address range.  This is done by changing start
3553         address of .interp (the very first section of executable)
3554         and then setting EF_ALPHA_32BIT elf header flag.
3556 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3558         * emultempl/m68kcoff.em: New file.
3559         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3560         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3561         generic.em.
3562         * Makefile.in: Regenerate.
3564 2000-07-20  H.J. Lu  <hjl@gnu.org>
3566         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3567         and "disable-new-dtags" to stop getopt from treating -d/-e as
3568         abbreviations for these options.
3570 2000-07-20  H.J. Lu  <hjl@gnu.org>
3572         * ld.texinfo: Add documentation for --disable-new-dtags and
3573         --enable-new-dtags.
3575         * ldmain.c (main): Initialize link_info.new_dtags to false.
3577         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3578         --disable-new-dtags and --enable-new-dtags.
3579         (gld_${EMULATION_NAME}_list_options): Likewise.
3581 2000-07-05  Kenneth Block  <krblock@computer.org>
3583         * lexsup.c: Add optional style to demangle switch
3584         * ld.texinfo: Document optional style to demangle switch.
3586 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3588         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3589         ecrislinux.o.
3590         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3591         Regenerate dependencies.
3592         * Makefile.in: Rebuild.
3593         * configure.tgt (cris-*-*): New target.
3594         * emulparams/crisaout.sh, emulparams/criself.sh,
3595         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3596         * po/POTFILES.in, po/ld.pot: Regenerate.
3598 2000-07-20  H.J. Lu  <hjl@gnu.org>
3600         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3601         Print out ignored -z options.
3603 2000-07-19  H.J. Lu  <hjl@gnu.org>
3605         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3606         (PARSE_AND_LIST_PROLOGUE): New.
3607         (PARSE_AND_LIST_LONGOPTS): Likewise.
3608         (PARSE_AND_LIST_OPTIONS): Likewise.
3609         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3611         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3613         * lexsup.c (ld_options): Comment out 'z'.
3614         (parse_args): Likewise.
3616         * emultempl/elf32.em: Include "elf/common.h".
3617         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3618         options.
3619         (gld_${EMULATION_NAME}_list_options): Likewise.
3621         * ld.texinfo: Add documentation for the recognized -z options.
3623 2000-07-19  H.J. Lu  <hjl@gnu.org>
3625         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3626         bfd_elf_set_dt_needed_soname ().
3628 2000-07-18  DJ Delorie  <dj@cygnus.com>
3630         * pe-dll.c (pe_dll_id_target): check object target name also
3632 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
3634         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3635         ${INIT_END} if relocating.
3636         (.fini): Likewise ${FINI_START} and ${FINI_END}.
3638 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
3640         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3641         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3642         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3643         errors introduced by the old dynamic lib search order.
3645 2000-07-17  DJ Delorie  <dj@cygnus.com>
3647         * pe-dll.c (process_def_file): auto-export data items also
3648         (pe_process_import_defs): also see if _imp_ form needed
3650 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3652         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3653         for dll import libraries
3655 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
3657         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3658         gcc 2.95.2 and later.
3660 2000-07-11  Kazu Hirata  <kazu@hxi.com>
3662         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3663         message.
3665 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3667         * ldemul.h (struct lang_input_statement_struct): Remove forward
3668         declaration.
3669         (struct search_dirs): Likewise.
3670         * ldfile.h (struct lang_input_statement_struct): Likewise.
3671         Protect file from multiple inclusion.
3672         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3673         declaration from macro to file scope.
3675         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3676         * ldgram.y: Likewise here.
3677         * ldlang.c: And here.
3678         * ldmain.c: And here.
3679         * mpw-elfmips.c: And here.
3680         * mpw-eppcmac.c: And here.
3681         * emultempl/aix.em: And here.
3682         * emultempl/armcoff.em: And here.
3683         * emultempl/armelf.em: And here.
3684         * emultempl/armelf_oabi.em: And here.
3685         * emultempl/beos.em: And here.
3686         * emultempl/elf32.em: And here.
3687         * emultempl/hppaelf.em: And here.
3688         * emultempl/linux.em: And here.
3689         * emultempl/lnk960.em: And here.
3690         * emultempl/pe.em: And here.
3691         * emultempl/sunos.em: And here.
3692         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3693         * mpw-idtmips.c: Ditto.
3694         * emultempl/generic.em: Ditto.
3695         * emultempl/gld960.em: Ditto.
3696         * emultempl/gld960c.em: Ditto.
3697         * emultempl/mipsecoff.em: Ditto.
3698         * emultempl/ticoff.em: Ditto.
3699         * emultempl/vanilla.em: Ditto.
3701         * pe-dll.c: Include ldfile.h
3702         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3704         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3705         arguments to bfd_elf32_size_dynamic_sections call.
3706         (gldelf32ebmip_place_orphan): Add missing arguments to
3707         lang_leave_output_section_statement call.
3709 2000-07-10  H.J. Lu  <hjl@gnu.org>
3711         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3712         DLL_SUPPORT.
3713         (strhash): Likewise.
3714         (compute_dll_image_base): Likewise.
3715         (pe_undef_found_sym): Likewise.
3716         (pe_undef_cdecl_match): Likewise.
3717         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3718         argument "arch" with ATTRIBUTE_UNUSED.
3720 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3722         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3724         From  Ryan Bradetich  <rbradetich@uswest.net>
3725         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3727 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
3729         Changes to create multiple linker stubs, positioned immediately
3730         before the section where they are required.
3731         * emultempl/hppaelf.em: Include elf32-hppa.h.
3732         (stub_sec, file_chain): Delete.
3733         (hppaelf_create_output_section_statements): Don't make a stub
3734         section here.
3735         (hook_stub_info): New struct.
3736         (hook_in_stub): New function.
3737         (hppaelf_add_stub_section): New function.
3738         (hppaelf_finish): Do nothing for relocateable links.  Modify the
3739         call to elf32_hppa_size_stubs.  Move code for updating section
3740         layout from here...
3741         (hppaelf_layaout_sections_again): ..to here, a new function.
3743         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3744         broken list handling.  Pass in a pointer to the list.
3745         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3746         for above changes.
3747         (hppaelf_before_parse): Prototype.
3748         (hppaelf_set_output_arch): Prototype.
3749         (hppaelf_create_output_section_statements): Prototype.
3750         (hppaelf_delete_padding_statements): Prototype.
3751         (hppaelf_finish): Prototype.
3753         Merge from elf32.em
3754         * emultempl/hppaelf.em: Include ctype.h.
3755         (struct orphan_save): New.
3756         (gld${EMULATION_NAME}_place_orphan): New.
3757         (output_rel_find): New.
3758         (hppaelf_get_script): Update from elf32.em.
3759         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3760         Change emulation_name field to "${EMULATION_NAME}".  Add
3761         gld${EMULATION_NAME}_place_orphan.
3763         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
3764         ehppalinux.o, sort it.  Regenerate dependencies.
3765         (ehppalinux.c): Depend on hppaelf.em
3766         * Makefile.in: Regenerate.
3768         * configure.tgt: targ_emul=hppalinux for hppa*linux
3770         * emulparams/hppalinux.sh: New.
3771         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3773 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
3775         * lexsup.c (parse_args): Copy section name.
3777 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
3779         * emultempl/pe.em: institute the following search order for
3780         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3781         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
3782         static lib (libfoo.a) if none of the above are found.
3784 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
3786         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3787         (longopts): New --{enable,disable}-auto-image-base options.
3788         (gld_${EMULATION_NAME}_list_options): Document.
3789         (gld_${EMULATION_NAME}_parse): Handle.
3790         (strhash): New static function.
3791         (compute_dll_image_base): New static function.
3792         (gld_${EMULATION_NAME}_set_symbols): Use.
3794 2000-07-05  DJ Delorie  <dj@redhat.com>
3796         * MAINTAINERS: new
3798 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
3800         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3801         * emulparams/elf32btsmip.sh: New file.
3802         * Makefile.am: Add traditional mips target.
3803         * Makefile.in: Rebuild.
3805 2000-07-01  H.J. Lu  <hjl@gnu.org>
3807         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3808         automake to use YLWRAP.
3809         * Makefile.in: Rebuild.
3811 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
3813         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
3814         (CLEANFILES): Add DEPA.
3815         * Makefile.in: Regenerate.
3817 2000-06-30  Timothy Wall  <twall@ppc>
3819         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3820         the page in the upper octet of the address.
3822 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3824         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3826 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
3828         * NEWS: arm-elf does --gc-sections too.
3830 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
3832         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3833         find one.
3834         * Makefile.in: Regenerate.
3836 2000-06-21  H.J. Lu  <hjl@gnu.org>
3838         * Makefile.am: Rebuild dependency.
3839         * Makefile.in: Rebuild.
3841 2000-06-20  H.J. Lu  <hjl@gnu.org>
3843         * Makefile.am: Rebuild dependency.
3844         * Makefile.in: Rebuild.
3846 2000-06-20  Timothy Wall  <twall@cygnus.com>
3848         * scripttempl/tic54xcoff.sc: New.
3849         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3850         * gen-doc.texi: Add flag for TI COFF.
3851         * ld.texinfo: Add documentation for TI COFF handling switches.
3852         * emultempl/ticoff.em: New. TI COFF handling.
3853         * configure.tgt: Add tic54x target.
3854         * Makefile.am: Add tic54x target.
3855         * Makefile.in: Ditto.
3857 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
3859         * ldmain.c (set_scripts_dir): Correct pointer comparison when
3860         checking for backslashes.
3862 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
3864         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3866 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
3868         * NEWS: Update list of targets supporting --gc-sections.
3870         * scripttempl/elf.sc: KEEP .eh_frame contents.
3871         * scripttempl/elfd30v.sc: Same here.
3873 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
3875         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3876         and m68hc11 (elf).
3877         * Makefile.in: Rebuild.
3878         * configure.tgt: Recognize m68hc12 and m68hc11.
3879         * scripttempl/elfm68hc12.sc: New file.
3880         * emulparams/m68hc12elfb: New emulation.
3881         * emulparams/m68hc12elf: New emulation.
3882         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
3883         (includes a memory.x script to define the ROM and RAM banks).
3884         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3885         New configuration files for support of Motorola 68hc11
3887 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
3889         * ldmain.c (main): Only change SEC_READONLY for final link.
3891 2000-06-13  H.J. Lu  <hjl@gnu.org>
3893         * configure: Regenerate.
3895 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
3897         * configure.in (VERSION): Update to show this is the CVS mainline.
3899 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3901         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3902         input objects to be ECOFF.
3903         (check_sections): einfo takes %B, not %P, to print a BFD name.
3905 2000-06-05  Michael Matz <matz@ifh.de>
3907         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3908         version scripts.
3910         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3912 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
3914         * emulparams/avr1200.sh (STACK): Define as 0.
3915         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3916         * emulparams/avr4433.sh (STACK): Likewise.
3917         * emulparams/avr44x4.sh (STACK): Likewise.
3918         * emulparams/avr85xx.sh (STACK): Likewise.
3919         * emulparams/avrmega103.sh (STACK): Likewise.
3920         * emulparams/avrmega161.sh (STACK): Likewise.
3921         * emulparams/avrmega603.sh (STACK): Likewise.
3922         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3923         (__stack): Define from ${STACK} for main().
3925 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
3927         * Makefile.am: Update dependencies with "make dep-am"
3928         * Makefile.in: Regenerate.
3930 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
3932         * ldmain.c: Include filenames.h.
3933         (set_scripts_dir): Support backslashes in program name.
3935 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
3937         * ldmain.c (main): When deciding if ".text" section should be
3938         read-only, don't forget to reset SEC_READONLY because it
3939         could be already set.
3941 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
3943         * ld.1: Add documentation for new command line option:
3944                 --section-start <sectionname>=<sectionorg>
3945         This is a generic version of -Ttext etc. which accepts
3946         any section name as a parameter instead of just text/data/
3947         bss.
3948         * ld.texinfo: More docs.
3949         * NEWS: More docs.
3950         * lexsup.c: (parse_args): Recognize new command line option.
3951         (ld_options): Add new option.
3953 2000-05-18  H.J. Lu  <hjl@gnu.org>
3955         * lexsup.c (parse_args): `i' == `r', not `q'.
3957 2000-05-18  Jeffrey A Law  (law@cygnus.com)
3959         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3961 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
3962               Rick Gorton          <gorton@scrugs.lkg.dec.com>
3964         Add support for '-q' == '--emit-relocs' switch.
3965         * ldmain.c (main): Default to false.
3966         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3967         * NEWS: Describe the emitrelocations switch.
3968         * ld.texinfo: Describe the emitrelocations switch.
3970 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
3972         * emultempl/pe.em (_open_dynamic_archive): New function: Search
3973         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3974         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3975         link options.
3977 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
3979         * lexsup.c (parse_args): Update the year in the copyright notice.
3981 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
3983         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3984         Replace defines with those from intl/libgettext.h to quieten gcc
3985         warnings.
3987 2000-05-10  H.J. Lu  <hjl@gnu.org>
3989         * ldlang.c (open_input_bfds): Don't load the same file within
3990         a group again if the whole archive has been loaded already.
3992 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
3994         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3995         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3996         strtoul.
3998 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4000         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4002         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4003         host "ia64-*-linux-gnu*".
4005 2000-04-29  Andreas Jaeger  <aj@suse.de>
4007         * ld.h: Correctly check GCC version.
4009 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4011         * Makefile.am: Add PA64 support.  Add missing dependencies for
4012         PA32 elf support.
4013         * Makefile.in: Rebuilt.
4014         * configure.tgt: Add PA64 support (currently disabled).
4016 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4018         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4019         (output_rel_find): New function.
4020         (hold_section, hold_use): Delete.
4021         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4022         hold_interp): Make local to place_orphan.
4023         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4024         rather than place_section to find possible previous use of orphan.
4025         Similarly find the place-holder output sections.  Use returned
4026         value from lang_enter_output_section_statement rather than calling
4027         lang_output_section_statement_lookup.
4028         * emultempl/armelf.em: Same here.
4029         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4031         * ldlang.c (lang_enter_output_section_statement): Return output
4032         section statement.
4033         * ldlang.h (lang_enter_output_section_statement): Change
4034         declaration too.
4036         * ldlang.h (lang_output_section_statement): Export it.
4037         * ldlang.c (lang_output_section_statement): Ditto.
4039 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4041         * ld.texinfo (Output Section Data): Add note that section data
4042         commands cannot appear outside of section directives.
4044 2000-04-2  Matthew Green  <mrg@cygnus.com>
4046         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4048 2000-04-21  Richard Henderson  <rth@cygnus.com>
4049             David Mosberger  <davidm@hpl.hp.com>
4051         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4052         (eelf64_ia64.c): New rule.
4053         * Makefile.in: Rebuild.
4054         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4055         * emulparams/elf64_ia64.sh: New file.
4057 2000-04-21  Richard Henderson  <rth@cygnus.com>
4059         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4061 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4063         * dep-in.sed: Match space at start of file name, not at end.
4065 2000-04-18  H.J. Lu  <hjl@gnu.org>
4067         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4068         lang_leave_output_section_statement () after calling
4069         lang_enter_output_section_statement ().
4070         * emultempl/armelf.em: Likewise.
4072 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4074         * emultempl/elf32.em (struct orphan_save): Add section field.
4075         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4076         better order, and place first orphan section as we did before the
4077         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4078         Don't call make_bfd_section here, let wild_doit do the job for us.
4079         Don't build a statement list when we'll only throw it away.
4080         * emultempl/armelf.em: Ditto.
4081         * emultempl/pe.em: Similarly.
4083 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4085         * scripttempl/elfppc.sc: Remove.
4086         * emulparams/elf32ppc.sh: Use elf.sc.
4087         * emulparams/elf32lppc.sh: Use elf.sc.
4088         * emulparams/elf32ppclinux.sh: Use elf.sc.
4089         * emulparams/elf32ppcsim.sh: New file.
4090         * emulparams/elf32lppcsim.sh: New file.
4091         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4092         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4093         * Makefile.in: Regenerate.
4094         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4096 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4098         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4099         ~SEC_ALLOC sections too.  Init start address of debug sections.
4100         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4101         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4102         Also set all relocateable section start addresses.
4104 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4106         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4107         Add new BSS_PLT variable for when .plt need not be contained in
4108         the file.  Move _etext so that it is also after .fini, and provide
4109         both etext and _etext with a leading underscore.  Mark the start
4110         and end of .sbss.
4112 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4114         * emultempl/elf32.em (struct orphan_save): New.
4115         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4116         hold_interp): Make them struct orphan_save.
4117         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4118         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4119         the end of the relevant section list.  Also add associated section
4120         statements to the end of any previous orphan statements.
4121         * emultempl/armelf.em: Similarly.
4122         * emultempl/pe.em: Similarly.
4124 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4126         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4128 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4130         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4131         --enable-build-warnings option.
4132         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4133         * Makefile.in, configure: Re-generate.
4135 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4137         * po/ld.pot: Regenerate.
4139         * lexsup.c (help): Restore translated part of bug string.
4141         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4142         (DEP): Quote when passing vars to sub-make.  Add warning message
4143         to end.
4144         (DEP1): Rewrite for "gcc -MM".
4145         (CLEANFILES): Add DEP2.
4146         Update dependencies.
4147         * Makefile.in: Regenerate.
4149 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4151         * ld.h: #include "bin-bugs.h"
4152         * lexsup.c (help): Use REPORT_BUGS_TO.
4154 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4156         * configure.tgt (avr-*-*): New target support.
4157         * Makefile.am: Likewise.
4158         * scripttempl/elf32avr.sc: New script file.
4159         * emulparams/avr1200.sh: New file.
4160         * emulparams/avr23xx.sh: New file.
4161         * emulparams/avr4433.sh New file.
4162         * emulparams/avr44x4.sh New file.
4163         * emulparams/avr85xx.sh New file.
4164         * emulparams/avrmega103.sh New file.
4165         * emulparams/avrmega161.sh New file.
4166         * emulparams/avrmega603.sh New file.
4167         * Makefile.in: Regenerate.
4169 2000-03-09  Andreas Jaeger  <aj@suse.de>
4171         * Makefile.am (check-DEJAGNU): Also unset LANG.
4172         * Makefile.in: Rebuild.
4174 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4176         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4177         archive.
4179 2000-03-02  H.J. Lu  <hjl@gnu.org>
4181         * emulparams/elf32mcore.sh: Include "getopt.h".
4183 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4185         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4187 2000-03-01  H.J. Lu  <hjl@gnu.org>
4189         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4190         * emulparams/shpe.sh: Likewise.
4192 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4194         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4195         to unused parameters.
4197         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4198         functions only used by DLL code.
4199         (_place_orphan): Initialise 'dollar'.
4201 2000-03-01  H.J. Lu  <hjl@gnu.org>
4203         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4204         indicate if the undefined symbol is a fatal error or not.
4205         Don't delete the output file if "fatal" is false.
4207 2000-02-29  H.J. Lu  <hjl@gnu.org>
4209         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4210         Set LC_COLLATE and LC_ALL to null and export them. It is for
4211         sort which expects the C locale.
4212         Add $(LIBS) to all $(HOSTING_LIBS).
4213         * Makefile.in: Rebuild.
4215 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4217         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4218         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4219         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4220         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4221         find_potential_libraries.
4223 2000-02-28  Jim Blandy  <jimb@redhat.com>
4225         * ldgram.y (exclude_name_list): Don't require a comma to separate
4226         list entries; the lexer considers commas to be valid part of a
4227         filename, so in something like `foo, bar' the comma is considered
4228         part of the first filename, `foo,'.
4229         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4231 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4233         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4234         host "i[3456]86-*-freebsdelf*".
4236 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4238         * scripttempl/i386go32.sc: Move misplaced semicolons.
4240 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4242         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4243         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4244         (eelf64hppa.c, ehppaelf.c): Remove targets.
4245         * Makefile.in: Rebuild.
4247 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4249         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4250         GNU/Linux/sparc, but keep the default as 32.
4252         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4253         it default if sparcv9 or sparc64.
4255 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4257         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4258         * Makefile.in: Regenerate.
4259         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4261         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4262         find_potential_libraries.
4263         * ldemul.c (ldemul_find_potential_libraries): New function.
4265         * ldfile.c (ldfile_open_file_search): Allow function to be
4266         exported.
4267         (ldfile_open_file): Call ldemul_find_potential_libraries.
4268         * ldfile.h: Add prototype for ldfile_open_file_search.
4270         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4272         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4273         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4275         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4276         (gld_X_find_potential_libraries): New function.  Search for
4277         libraries called "*.lib".
4279         * scripttempl/pe.sc: Add .pdata section.
4281 2000-02-23  Richard Henderson  <rth@cygnus.com>
4283         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4284         Add and use memory regions.
4286 2000-02-23  Linas Vepstas (linas@linas.org)
4288         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4290         * Makefile.am: Add support for Linux/IBM 370.
4291         * configure.tgt: Likewise.
4293         * Makefile.in: Regenerate.
4295 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4297         * ldlang.c (print_input_section, print_data_statement,
4298         print_reloc_statement, print_padding_statement, insert_pad,
4299         size_input_section, lang_check_section_addresses,
4300         lang_size_sections, lang_do_assignments, lang_set_startof,
4301         lang_one_common): Change `opb' to unsigned.
4302         (lang_do_assignments): Also change `size' to unsigned.
4304 2000-02-16  Richard Henderson  <rth@cygnus.com>
4306         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4308 2000-02-16  Timothy Wall  <twall@cygnus.com>
4310         * mri.c (mri_draw_tree): Add default LMA region argument to call
4311         to lang_leave_output_section_statement.
4312         * ldlang.h: Update prototypes with LMA region arguments.
4313         * ldlang.c (lang_size_sections): Encapsulate region bounds
4314         checking in os_check_region call.
4315         (os_check_region): New function.
4316         (lang_output_section_statement_lookup): Initialize lma_region.
4317         (lang_leave_output_section_statement): Add LMA region argument.
4318         (lang_leave_overlay): Ditto.
4319         * ldgram.y: Handle LMA region syntax.
4320         * ld.texinfo (Output Section Description): Describe LMA region usage.
4321         * emultempl/armelf.em (gld$place_orphan): Add default value for
4322         lma region in call to lang_leave_output_section_statement.
4323         * emultempl/elf32.em (gld$place_orphan): Add default value for
4324         lma region in call to lang_leave_output_section_statement.
4325         * emultempl/pe.em (gld$place_orphan): Add default value for
4326         lma region in call to lang_leave_output_section_statement.
4329 2000-02-04  Timothy Wall  <twall@redhat.com>
4331         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4332         octets when calculating section end addresses.
4334 2000-02-04  Timothy Wall  <twall@redhat.com>
4336         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4338 2000-02-03  Timothy Wall <twall@redhat.com>
4340         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4341         octet count.
4342         * ldlang.c (print_input_section, print_data_statement,
4343         print_reloc_statement, print_padding_statement): Print target
4344         address values and section sizes as bytes, not octets.
4345         (insert_pad) Calculate padding size in octets, and adjust "dot"
4346         by bytes.
4347         (size_input_section) Always adjust "dot" by bytes, not octets.
4348         (lang_check_section_addresses, lang_do_assignments) Adjust
4349         "dot" by bytes, not octets.  Use the larger of the directive size
4350         or octets_per_byte for the number of octets actually allocated in
4351         the output section.
4352         (lang_set_startof) Make sure STARTOF returns a target address.
4353         (lang_one_common) Record size changes in octets.
4354         (lang_abs_symbol_at_end_of) Section end symbol's value is
4355         recorded in target bytes.
4356         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4357         to be clear about behavior when an octet is smaller than one byte.
4359 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4361         * ldcref.c (output_cref): Don't pass message strings to printf
4362         as format arg.
4363         Update copyright.
4365         * ldmisc.c (vfinfo): Same here.
4366         Update copyright.
4368 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4370         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4371         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4372         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4373         Add missing NULL initialisers, and comments.
4375         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4377 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4379         * ldlang.c (lang_size_sections): Fix typo in comment.
4381 2000-01-18  H.J. Lu  <hjl@gnu.org>
4383         * ldlang.c (lang_size_sections): Also update the current
4384         address of a region if the SEC_NEVER_LOAD bit is not set.
4386 2000-01-10  Philip Blundell  <pb@futuretv.com>
4388         * configure.tgt (arm*-*-conix*): New target.
4390 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4392         * ld.texinfo (Options): Remind users to preceed linker command
4393         line switches with -Wl, (or whatever is appropriate) if it is
4394         being invoked by a comnpiler driver program.
4395         Fix description of the behaviour of the -n command line switch.
4397 2000-01-05  Catherine Moore  <clm@cygnus.com>
4399         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4400         (name_list): New.
4401         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4402         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4403         (exclude_name_list): New.
4404         ldlang.c (walk_wild_section): Support list of excluded files.
4405         (print_wild_statement): Likewise.
4406         (lang_add_wild): Likewise.
4407         * ldlang.h (lang_wild_statement_type): Likewise.
4408         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4410 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4412         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4413         (process_def_file): Use.
4414         (pe_dll_compat_implib): New variable.
4415         (make_one): Use.
4417         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4418         pe_dll_compat_implib.
4420         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4421         compat-implib options.
4422         (gld_${EMULATION_NAME}_list_options): List new options.
4423         (gld_${EMULATION_NAME}_parse_args): Handle.
4425         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4426         dll.
4428         * deffilep.y (opt_name): Allow "." in name.
4430 For older changes see ChangeLog-9899
4432 Local Variables:
4433 mode: change-log
4434 left-margin: 8
4435 fill-column: 74
4436 version-control: never
4437 End: