* ld-scripts/dynamic-sections*: New test.
[binutils.git] / ld / ChangeLog
bloba4555ca28f9216b323ea5aa3f0e9ca6f5f254350
1 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
3         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
5 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
7         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
8         powerpc-*-openbsd* and sparc64-*-openbsd*.
9         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
10         * Makefile.in: Regenerate.
11         * emulparams/hppaobsd.sh: New file.
13 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
15         * ldlang.c (print_wild_statement): Fix output formatting.
17 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
19         * ldlang.c: (strip_excluded_output_sections): New function.
20         (lang_process): Call it.
21         (lang_size_sections_1): Revert 2002-06-10 change.
23 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
25         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
26         Run "make dep-am".
27         * Makefile.in: Regenerate.
29 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
31         * ldfile.c (ldfile_try_open_bfd): Formatting.
33         * ldmisc.c (demangle): Move so that it doesn't intrude between
34         vfinfo comment and body.  Add comment.
36 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
38         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
40 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
42         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
43         * ldlang.c (entry_sym): Likewise.
44         (ldlang_undef_chain_list_type): Likewise.
45         (lang_finish): Adjust references to entry_symbol.
46         (lang_add_entry): Likewise.
47         (lang_gc_sections): Use link_info.gc_sym_list.
48         (lang_process): Set link_info.gc_sym_list.
49         * ldlex.l: Include bfdlink.h.
50         * ldmain.c (main): Init link_info.gc_sym_list.
51         * emultempl/aix.em: Adjust references to entry_symbol.
52         * emultempl/armcoff.em: Likewise.
53         * emultempl/armelf.em: Likewise.
54         * emultempl/pe.em: Likewise.
55         * emultempl/ppc64elf.em (ppc_after_open): New function.
56         (LDEMUL_AFTER_OPEN): Define.
57         * emulparams/elf64ppc.sh: KEEP .opd sections.
59 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
61         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
62         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
63         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
64         (EEPROM_START_ADDR): Define.
65         (EEPROM_MEMORY): Define.
66         * emulparams/m68hc12elf.sh: Likewise.
67         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
68         section to put soft registers in .page0.
69         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
71 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
73         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
74         section.  Add ${RELOCATING-0}.
76 Wed Jun 26 16:33:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
78         * emulparams/shelf.sh (STACK_ADDR): Don't define.
79         (OTHER_SECTIONS): Define.
80         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
81         (OTHER_SECTIONS): Undef.
83 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
85         * ldmisc.c (demangle): Restore dots stripped from sym name.
87 2002-06-25  H.J. Lu <hjl@gnu.org>
89         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
90         * Makefile.in: Regenerated.
92 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
94         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
95         the size of attached object files, to allow make the object files
96         available via FTP or HTTP and to mention that the mail will be
97         sent to a mailing list.
99 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
101         * ld/configure.host (romp): Drop support.
103 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
105         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
106         section flags for SEC_DATA, rather than for SEC_CODE being unset.
108 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
110         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
111         format specifier used to print BFD name.
113 2002-06-18  Dave Brolley  <brolley@redhat.com>
115         From Catherine Moore, Michael Meissner, Jim Blandy:
116         * emulparams/elf32frv.sh: New file.
117         * configure.tgt: Support frv-*-*.
118         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
119         (eelf32frv.c): New target.
121 2002-06-17  Tom Rix  <trix@redhat.com>
123         * emultempl/elf32.em: gld*_get_script:  Check for 
124         GENERATE_COMBRELOC_SCRIPT.
125         * scripttempl/elfd10v.sc : Fix STACK and INSN.
126         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
128 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
130         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
132 2002-06-12  H.J. Lu <hjl@gnu.org>
134         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
135         false if xvec doesn't match.
137 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
139         * ldlang.c (lang_size_sections_1): Skip removed output sections.
141 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
143         * ldexp.c: Replace CONST with const.
144         * ldfile.c: Likewise.
145         * ldfile.h: Likewise.
146         * ldlex.l: Likewise.
147         * mri.c: Likewise.
148         * pe-dll.h: Likewise.
150 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
152         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
154 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
156         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
157         to -1 == implicit enable.
158         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
159         initialize link_info.pei386_auto_import to -1 == implicit
160         enable.
161         (gld_${EMULATION_NAME}_parse_args): When processing
162         --enable-auto-import and --disable-auto-import options, use
163         '1' and '0' instead of 'true' and 'false'.
164         (pe_find_data_imports): Only issue message about auto-import
165         when the feature is implicitly enabled.  Downgrade message to
166         informational instead of warning.
168 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
170         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
172 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
174         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
175         HOSTING_CRT0 and HOSTING_LIBS.
177 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
179         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
181 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
183         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
184         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
186 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
188         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
189         SEC_EXCLUDE sections when doing a relocatable link.
191 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
193         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
194         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
195         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
196         (eshlelf64_nbsd.c): New rules.
197         * Makefile.in: Regenerate.
198         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
199         (sh64-*-netbsd*): New targets.
200         * emulparams/shelf32_nbsd.sh: New file.
201         * emulparams/shelf64_nbsd.sh: New file.
202         * emulparams/shlelf32_nbsd.sh: New file.
203         * emulparams/shlelf64_nbsd.sh: New file.
205 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
207         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
209 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
211         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
212         C++ constructors/destructors, loosely based on the m68hc11 port.
214 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
216         * Makefile.in: Regenerate.
217         * aclocal.m4: Regenerate.
218         * config.in: Regenerate.
219         * configure: Regenerate.
221 2002-05-31  Graeme Peterson  <gp@qnx.com>
223         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
224         (ei386nto.c): Add rule.
225         * Makefile.in: Regenerate.
226         * configure.tgt: Add i[3456]86-*-nto-qnx*.
227         * emulparams/i386nto.sh: New file.
229 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
231         * NEWS: Add entry for VAX ELF support.
233 2002-05-29  Matt Thomas  <matt@3am-software.com>
234             Jason Thorpe  <thorpej@wasabisystems.com>
236         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
237         (eelf32vax.c)
238         (evaxnbsd.c): New rules.
239         * Makefile.in: Regenerate.
240         * configure.tgt (vax-*-netbsdelf*)
241         (vax-*-netbsdaout*)
242         (vax-*-netbsd*): New targets.
243         * emulparams/elf32vax.sh: New file.
244         * emulparams/vaxnbsd.sh: New file.
246 2002-05-29  Adam Nemet  <anemet@lnxw.com>
248         * emultempl/armelf.em (arm_elf_after_open): Don't determine
249         bfd_for_interwork, instead add glue sections to each input bfd.
250         (bfd_for_interwork): New global.
251         (arm_elf_set_bfd_for_interworking): New function.
252         (arm_elf_before_allocation): Use it.
254 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
256         * Makefile.am: Add DLX make target.
257         * configure.tgt: Add DLX configuration.
258         * Makefile.in: Regenerate.
259         * emulparams/elf32_dlx.sh: New file
260         * scripttempl/dlx.sc: New file
262 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
264         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
265         * Makefile.in: Regenerate.
266         * emulparams/elf_chaos.sh: Use elf_chaos script.
267         * scripttempl/elf_chaos.sc: New file.
269 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
271         * ldlang.c (lang_size_sections_1): Move check for conflicting load
272         addresses and regions from here...
273         (lang_get_regions): ...to this new function.
274         (lang_leave_output_section_statement): Use lang_get_regions.
275         (lang_leave_overlay): Likewise.
276         * mri.c (mri_draw_tree): Pass null as last argument to
277         lang_leave_output_section_statement.
278         * emultempl/elf32.em (gld*_place_orphan): Likewise.
279         * emultempl/mmo.em (mmo_place_orphan): Likewise.
280         * emultempl/pe.em (gld*_place_orphan): Likewise.
282 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
284         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
286 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
288         * ldemul.c: Fix formatting.
289         * ldfile.c: Likewise.
290         * pe-dll.c: Likewise.
291         * pe-dll.h: Likewise.
293 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
295         * ldlang.c (lang_process): Formatting, grammar.
297         * ldlex.l: Use #include "" instead of <> for local header files.
299 2002-05-24  TAMURA Kent <kent@netbsd.org>
301         * configure.tgt: Add a target for i386-netbsdpe.
303 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
305         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
306         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
307         output section if necessary.  Handle .tbss.
308         (lang_size_sections): Clear _raw_size for .tbss section
309         (it allocates space in PT_TLS segment only).
310         * ldwrite.c (build_link_order): Build link order for .tbss too.
312 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
314         * configure.in: Correct spelling of AC_PREREQ.
316 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
318         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
319         default.
320         (autofilter_objlist): Add crtbegin.o, crtend.o.
322 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
324         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
325         (longopts): Add new option --exclude-libs.
326         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
327         (gld_${EMULATION_NAME}_parse_args): Use it.
328         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
329         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
330         from whole archives.
331         (pe_dll_add_excludes): Set excludes->type.
332         (auto_export): Add new variable libname and set to archive basename if
333         abfd.  Use it when filtering default and user-specified libarary
334         excludes.  Let string "ALL" mean all libs when filtering user-specified
335         libs.
336         * ld.texinfo: Document --exclude-libs.
338 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
340         * ldemul.c (ldemul_new_vers_pattern): New function.
341         * ldemul.h (ldemul_new_vers_pattern): Declare.
342         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
343         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
344         * emultempl/ppc64elf.em (dotsyms): New static var.
345         (gld${EMULATION_NAME}_new_vers_pattern): New function.
346         (LDEMUL_NEW_VERS_PATTERN): Define.
347         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
348         (PARSE_AND_LIST_LONGOPTS): Likewise.
349         (PARSE_AND_LIST_ARGS_CASES): Handle them.
350         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
351         initialiser.
352         * emultempl/armcoff.em: Likewise.
353         * emultempl/armelf_oabi.em: Likewise.
354         * emultempl/beos.em: Likewise.
355         * emultempl/elf32.em: Likewise.
356         * emultempl/generic.em: Likewise.
357         * emultempl/gld960.em: Likewise.
358         * emultempl/gld960c.em: Likewise.
359         * emultempl/linux.em: Likewise.
360         * emultempl/lnk960.em: Likewise.
361         * emultempl/m68kcoff.em: Likewise.
362         * emultempl/mipsecoff.em: Likewise.
363         * emultempl/pe.em: Likewise.
364         * emultempl/sunos.em: Likewise.
365         * emultempl/ticoff.em: Likewise.
366         * emultempl/vanilla.em: Likewise.
368 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
370         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
371         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
372         (LIB_SEARCH_DIRS): No need to use "tr".
373         (COMPILE_IN): Only set for native targets.
374         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
375         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
376         * configure.tgt (powerpc*): Set tdir_*.
377         (powerpcle*): Correct targ_extra_emuls.
378         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
379         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
381 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
383         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
384         calling lang_add_entry.
386 2002-05-21  H.J. Lu  (hjl@gnu.org)
388         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
389         "-z muldefs".
390         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
392         * ld.texinfo: Updated for --allow-multiple-definition and
393         "-z muldefs".
395         * ldmain.c (main): Initialize the allow_multiple_definition
396         field to false.
398         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
399         (ld_options): Add --allow-multiple-definition.
400         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
402 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
404         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
405         (earmelfb_nbsd.c): New rule.
406         * Makefile.in: Regenerate. 
407         * configure.tgt (armeb-*-netbsdelf*): New target.
408         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls. 
409         (arm-*-netbsd*): Likewise.
410         * emulparams/armelfb_nbsd.sh: New file.
412 2002-05-18  Tom Rix  <trix@redhat.com>
414         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib 
415         support.
417 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
419         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
420         * Makefile.in: Regenerate.
421         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
423 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
425         * emulparams/avr1.sh: New file.
426         * emulparams/avr2.sh: New file.
427         * emulparams/avr3.sh: New file.
428         * emulparams/avr4.sh: New file.
429         * emulparams/avr5.sh: New file.
430         * scripttempl/avr.sc: New file.
432 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
434         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
435         (lang_place_orphans): Abort if just_syms_flag.
437 2002-05-10  Tom Rix  <trix@redhat.com>
439         * emultempl/aix.em: (gld*_set_output_arch): New function. Use 
440         architecture and machine information in the output bfd.
441         (gld*_before_parse): Remove old arch and machine code.
442         (choose_target): Rename to gld*_choose_target.
443         (rtld): Change type to int. 
444         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for 
445         objects in XCOFF archives.
446         * ldfile.h: Update copyright date.
448 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
450         * ldmain.c (main): Enable -z combreloc by default.
452 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
454         * Makefile.am: Honour DESTDIR.
455         * Makefile.in: Regenerate.
457 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
459         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
460         (lang_enter_overlay): Remove the last two parameters.
461         (lang_leave_overlay): Take them here instead.
462         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
463         (section): Pass LMA and crossref flag to lang_leave_overlay rather
464         than lang_enter_overlay.
465         * ldlang.c (lang_memory_region_lookup): Return null for null names.
466         (lang_output_section_statement_lookup): Initialize update_dot_tree.
467         (lang_size_sections_1): Evaluate it.
468         (lang_leave_output_section_statement): Rework LMA lookup.
469         (overlay_lma, overlay_nocrossrefs): Remove.
470         (lang_enter_overlay): Remove LMA and crossref arguments.
471         (lang_enter_overlay_section): Don't set the LMA here.
472         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
473         assignment to the last section's update_dot_tree.  Unconditionally
474         use the load and run-time regions specified in the OVERLAY statement.
475         Likewise the first section's LMA.  Only set the other sections' LMAs
476         when no load region is given.
478 2002-05-06  Nick Clifton <nickc@redhat.com>
480         * po/sv.po: New translation.
482 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
484         * emultempl/hppaelf.em (build_section_lists): New function.
485         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
486         and build_section_lists.
488 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
490         * ld.h: Fix formatting.
491         * ldexp.c: Likewise.
492         * ldfile.c: Likewise.
493         * ldlang.c: Likewise.
494         * ldmain.c: Likewise.
495         * lexsup.c: Likewise.
496         * pe-dll.c: Likewise.
498 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
500         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
501         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
502         (build_section_lists): Do output_section tests here.
504 2002-04-30  Tom Rix  <trix@redhat.com>
506         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
508 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
510         Long branch stubs, multiple stub sections.
511         * emultempl/ppc64elf.em: Include ldctor.h.
512         (stub_file): New var.
513         (group_size): New var.
514         (ppc_create_output_section_statements): New function.
515         (struct hook_stub_info): New.
516         (hook_in_stub): New function.
517         (ppc_add_stub_section): New function.
518         (ppc_layout_sections_again): New function.
519         (build_section_lists): New function.
520         (gld${EMULATION_NAME}_finish): Rewrite.
521         (real_func): New var.
522         (ppc_for_each_input_file_wrapper): New function.
523         (ppc_lang_for_each_input_file): New function.
524         (lang_for_each_input_file): Define.
525         (PARSE_AND_LIST_PROLOGUE): Define.
526         (PARSE_AND_LIST_LONGOPTS): Define.
527         (PARSE_AND_LIST_OPTIONS): Define.
528         (PARSE_AND_LIST_ARGS_CASES): Define.
529         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
531 2002-04-30  Tom Rix  <trix@redhat.com>
533         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add 
534         -blibpath, -bnolibpath support. 
536 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
538         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
539         (eelf32ppcwindiss.c): New target.
540         * Makefile.in: Regenerated.
541         * configure.tgt: Add support for powerpc-*-windiss.
542         * emulparams/elf32ppcwindiss.sh: New file.
543         
544 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
546         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
547         * ldexp.c (exp_print_token): Add "infix_p" argument.
548         (exp_print_tree): Update accordingly.
550 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
552         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
553         * Makefile.in: Regenerate.
554         * mpw-elfmips.c: Delete.
555         * mpw-eppcmac.c: Delete.
556         * mpw-esh.c: Delete.
557         * mpw-idtmips.c: Delete.
559 Wed Apr 17 19:23:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
561         * emulparams/shelf32.sh (MACHINE): Now sh5.
563 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
565         * ldgram.y: Fix syntax warning.
567 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
569         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
570         to prevent "-n" from being taken as an abbreviation for
571         "--no-pipeline-knowledge".
573 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
575         * ldlang.c (lang_size_sections_1): Don't complain about
576         SEC_NEVER_LOAD sections having no memory region specified.
578         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
580 2002-04-07  matthew green  <mrg@redhat.com>
582         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
584 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
586         * dep-in.sed: Cope with absolute paths.
587         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
588         Run "make dep-am".
589         * Makefile.in: Regenerate.
591 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
593         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
595 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
597         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
598         is smaller than maximum, round dot up to common page boundary.
600 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
602         * configure.host: Set up for generic hosts first, then tweak as
603         necessary in more specific targets.
604         (HOSTING_LIBS): Include libgcc_eh.a if found.
606 2002-03-23  Andreas Jaeger  <aj@suse.de>
608         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
610 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
612         * Makefile.am: Run "make dep-am".
613         * Makefile.in: Regenerate.
615 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
617         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
619 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
621         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
622         add the symbol to the linker hash table immediately.
623         (lang_place_undefineds): Split symbol creation out..
624         (insert_undefined): ..to here.
626 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
628         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
629         the contents of the buffer returned from basename function will are
630         getting overwritten while still being used.
632 Mon Mar 18 17:38:39 CET 2002  Jan Hubicka  <jh@suse.cz>
633                               Andreas Jaeger  <aj@suse.de>
634                               Andreas Schwab  <schwab@suse.de>
636         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
637         * elf_x86_64.sh (ARCH): Set to i386:x86-64
638         set libraries to default to lib64 paths.
640 2002-03-18  Tom Rix  <trix@redhat.com>
642         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
643         * configure.tgt : Same.
644         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
645         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
646         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
647         emulation parameters for better -b32, -b64 support.
648         * emulparms/aixrs6.sh : Same.
649         * emulparms/ppcmacos.sh : Same.
650         * emultempl/aix.em (choose_target) : Use new emulation parameters
651         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
652         * Makefile.in : Regenerate.
654 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
656         * po/fr.po: Updated version.
658 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
660         * ldmain.c (main): Move .text readonly flag fudges from here..
661         * ldlang.c (lang_process): ..to here.
663 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
665         * ldlang.c (lang_check): Remove the word size check added in last
666         change.  Treat emitrelocations case as for relocatable links.
668 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
670         * po/fr.po: Updated version.
672 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
674         * ldlang.c (lang_check): Do relocatable link checks first, so that
675         warn_mismatch can't override.  Check compatible and word size too.
677 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
679         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
681 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
683         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
684         DATA_SEGMENT_ALIGN.
686 2002-03-04  H.J. Lu <hjl@gnu.org>
688         * scripttempl/elf.sc: Put .preinit_array, .init_array and
689         .fini_array in the data segment.
691 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
693         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
695 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
697         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
698         .init_array, and .fini_array.
700 2002-02-20  Andreas Schwab  <schwab@suse.de>
702         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
703         .IA64_unwind* in a relocatable link.
705 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
707         * NEWS: Mark 2.12 branch.
709 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
711         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
712         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
714 2002-02-18  Tom Rix  <trix@redhat.com>
716         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
717         (gld*_before_allocation): Same.
718         (gld*_create_output_section_statements): Generate
719         __rtinit if run time linking.  Add librtl.a to the link.
720         (gld*_read_file): Clean.
722 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
724         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
726 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
728         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
729         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
730         and eelf64alpha_fbsd.
731         * Makefile.in: Regenerate.
732         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
733         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
734         use a FreeBSD-specific emulation rather than the psABI one.
735         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
736         for all FreeBSD ELF systems.
737         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
738         emulation.
739         * emulparams/elf32ppc_fbsd.sh: Likewise.
740         * emulparams/elf64_ia64_fbsd.sh: Likewise.
741         * emulparams/elf64_sparc_fbsd.sh: Likewise.
742         * emulparams/elf64alpha_fbsd.sh: Likewise.
743         * emulparams/elf_i386_fbsd.sh: Likewise.
744         * emulparams/elf_x86_64_fbsd.sh: Likewise.
746 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
748         * po/tr.po: Updated version.
750 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
752         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
753         (FILL): Likewise.
755 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
757         * emultempl/mmo.em (mmo_after_open): Don't call
758         _bfd_mmix_check_all_relocs when producing ELF output.
760 2002-02-15  Richard Henderson  <rth@redhat.com>
762         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
763         definition.  Emit a unop+nop pair.
765 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
767         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
768         for presence of .MMIX.reg_contents.linker_allocated before early
769         exit.
771         * NEWS: Mention support for MMIX.
773 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
775         Support arbitrary length fill patterns.
776         * ld.texinfo (Output Section Fill): Describe fill expressions.
777         (FILL): Refer to the above.
778         * ldexp.h (etree_value_type): Add "str" field.
779         (union etree_union): Add "str" to "value" struct.
780         (exp_bigintop): Declare.
781         (exp_get_fill): Declare.
782         * ldexp.c: Include "safe-ctype.h".
783         (exp_intop): Set value.str to NULL.
784         (exp_bigintop): New function.
785         (new_rel): Pass in "str", and set new.str from it.
786         (new_rel_from_section): Set new.str to NULL.
787         (fold_name): Adjust calls to new_rel.
788         (exp_fold_tree): Likewise.
789         (exp_get_fill): New function.
790         * ldgram.y (struct big_int bigint, fill_type *fill): New.
791         (INT): Returns a "bigint".  Adjust all code handling INTs.
792         (fill_opt): Returns a "fill".
793         (fill_exp): Split out of fill_opt, use for FILL.
794         * ldlang.h (struct _fill_type): New.
795         (fill_type): Move typedef to ldexp.h.
796         (lang_output_section_statement_type): "fill" is now a pointer.
797         (lang_fill_statement_type): Likewise.
798         (lang_padding_statement_type): Likewise.
799         (lang_add_fill): Now takes a "fill_type *" param.
800         (lang_leave_output_section_statement): Likewise.
801         (lang_do_assignments): Likewise.
802         (lang_size_sections): Likewise.
803         (lang_leave_overlay_section): Likewise.
804         (lang_leave_overlay): Likewise.
805         * ldlang.c: Include ldgram.h after ldexp.h.
806         (lang_output_section_statement_lookup): Adjust for fill_type change.
807         (print_fill_statement): Likewise.
808         (print_padding_statement): Likewise.
809         (insert_pad): Now takes a "fill_type *" arg.
810         (size_input_section): Likewise.
811         (lang_size_sections_1): Likewise.
812         (lang_size_sections): Likewise.
813         (lang_do_assignments): Likewise.
814         (lang_add_fill): Likewise.
815         (lang_leave_output_section_statement): Likewise.
816         (lang_leave_overlay_section): Likewise.
817         (lang_leave_overlay): Likewise.
818         Adjust all callers of the above function.
819         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
820         starting with "0X" as well as "0x".  Return bigint.str for hex
821         numbers starting with "0x" or "0X", zero bigint.str otherwise.
822         Always use base 16 for numbers starting with "$".
823         * ldmain.c: Include ldgram.h after ldexp.h.
824         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
825         of bfd_fill_link_order.
826         * pe-dll.c: Adjust lang_do_assignments calls.
827         * emultempl/elf32.em: Likewise.
828         * emultempl/hppaelf.em: Likewise.
829         * emultempl/ppc64elf.em: Likewise.
830         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
831         lang_add_assignment call.
832         * emultempl/pe.em: Likewise.
834 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
836         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
837         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
838         the pattern in question is not a regexp.
839         * ldlang.c:  Likewise.
840         * ldlang.h:  Likewise.
841         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
843 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
845         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
846         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
847         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
848         * ldexp.c (exp_data_seg): New variable.
849         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
850         (fold_binary): Handle DATA_SEGMENT_ALIGN.
851         (exp_fold_tree): Handle DATA_SEGMENT_END.
852         Pass allocation_done when recursing instead of hardcoding
853         lang_allocating_phase_enum.
854         * ldexp.h (exp_data_seg): New.
855         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
856         (lang_size_sections): New.
857         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
858         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
859         if COMMONPAGESIZE is defined.
860         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
861         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
862         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
863         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
864         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
865         libraries only.
867 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
869         * Makefile.in: Regenerate.
871 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
873         * lexsup.c: Remove strtoul declaration.
875 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
877         * ldmain.c: Add prototype for main ().
878         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
879         * emultempl/lnk960.em (lnk960_choose_target): Function should
880         take two arguments.
882 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
884         * ldlang.c (entry_section): New initialised variable.
885         (lang_finish): Use it.
886         * ldlang.h (entry_section): Declare.
887         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
888         entry_section to ".opd".
890 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
892         * ld.texinfo (Options): Add back in -nostdlib documentation,
893         which had been inadvertently removed.
895 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
897         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
898         register section vma to a sane value after emitting error.  Make
899         fatal conditions cause program exit when emitting message.
901 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
903         * configure.tgt: Add or32-*-rtems target.
905 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
907         Contribute sh64-elf.
908         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
909         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
910         in OTHER_RELOCATABLE_SECTIONS.
911         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
912         * emulparams/shelf32.sh (STACK_ADDR): Define.
913         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
914         (OTHER_SECTIONS): this.  Removed stack settings.
915         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
916         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
917         2001-03-12  DJ Delorie  <dj@redhat.com>
918         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
919         relaxing if any shmedia or mixed sections are found.
920         2001-03-07  DJ Delorie  <dj@redhat.com>
921         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
922         einfo.  Gracefully decline to output to non-elf formats.
923         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
924         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
925         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
926         * emulparams/shelf32.sh: Ditto.
927         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
928         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
929         comment.
930         2001-01-10  Ben Elliston  <bje@redhat.com>
931         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
932         non-portable shell constructs. From Hans-Peter Nilsson.
933         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
934         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
935         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
936         dependencies to the shell script include chain.
937         * Makefile.in: Regenerate.
938         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
939         * emultempl/sh64elf.em: Update and tweak comments.
940         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
941         make a .cranges section SEC_IN_MEMORY.
942         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
943         * emultempl/sh64elf.em
944         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
945         .cranges section found to be necessary; continue and set stored
946         section contents flags for sections with non-mixed contents.
947         Use a struct sh64_section_data container and sh64_elf_section_data
948         to store contents-type flags.
949         Remove unused update of "isec".
950         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
951         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
952         access contents-type flags.  Assert that the associated container
953         is initialized.  Use that container, not elf_gp_size, to hold size
954         of linker-generated cranges contents.
955         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
956         * emultempl/sh64elf.em
957         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
958         there's already a .cranges section.  When section flag difference
959         is found, don't NULL-check cranges a second time.  Tweak comments.
960         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
961         merging, not max size, as size of ld-generated .cranges contents.
962         Don't set ELF section flags in output section.  When checking for
963         needed .cranges descriptors, don't use a variable; compare
964         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
965         comments.
966         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
967         * emultempl/sh64elf.em: New file.
968         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
969         * Makefile.in: Regenerate.
970         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
971         (OTHER_RELOCATING_SECTIONS): Ditto.
972         (EXTRA_EM_FILE): New, set to sh64elf if not set.
973         * emulparams/shlelf32.sh: Stub out all settings except
974         OUTPUT_FORMAT.  Source shelf32.sh.
975         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
976         OTHER_RELOCATING_SECTIONS.
977         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
978         * emulparams/shlelf64.sh: Stub out all settings except
979         OUTPUT_FORMAT.  Source shelf64.sh.
980         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
981         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
982         .cranges section.
983         (DATA_START_SYMBOLS): Define, provide ___data.
984         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
985         for consecutive .data section.
986         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
987         section after .data section.
988         * emulparams/shlelf64.sh: Ditto.
989         * emulparams/shelf32.sh: Ditto.
990         (ALIGNMENT): Define to 8.
991         * emulparams/shelf32.sh: Ditto.
992         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
993         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
994         built-in linker scripts.
995         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
996         * emulparams/shlelf64.sh: New.
997         * emulparams/shelf64.sh: New.
998         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
999         targ_extra_emuls.
1000         * Makefile.am: Add support for shlelf64 and shelf64.
1001         * Makefile.in: Regenerate.
1002         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1003         * configure.tgt (sh64-*-elf*): Add shelf as default.
1004         Add shlelf to targ_extra_emuls.
1005         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1006         * emulparams/shelf32.sh: New file.
1007         * emulparams/shlelf32.sh: New file.
1008         * Makefile.am: Add support for shlelf32 and shelf32.
1009         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1010         * Makefile.in: Regenerate.
1012 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1014         * ldlang.c (lang_reset_memory_regions): Rename from
1015         reset_memory_regions.  Change all callers.  Make public.
1016         * ldlang.h (lang_reset_memory_regions): Prototype.
1017         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1018         lang_reset_memory_regions before lang_size_sections.
1019         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1020         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1022 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1024         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1025         arithmetic when checking for too many global registers.
1027 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1029         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1030         (ehppanbsd.c): New rule.
1031         * Makefile.in: Regenerate.
1032         * configure.tgt (hppa*-*-netbsd*): New target.
1033         * emulparams/hppalinux.sh: Add comment to check other files
1034         that source this file it is modified, and list which
1035         files that do.
1036         * emulparams/hppanbsd.sh: New file.
1038 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1040         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1041         stack.
1043 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1045         Support on-demand global register allocation from
1046         R_MMIX_BASE_PLUS_OFFSET relocs.
1047         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1048         mmix_set_reg_section_vma.  Call
1049         _bfd_mmix_finalize_linker_allocated_gregs.
1050         (mmix_before_allocation): New function.
1051         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1052         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1053         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1054         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1055         before .MMIX.reg_contents.
1056         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1057         (mmo_after_open): New function.
1058         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1059         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1060         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1062 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1064         * emulparams/or32.sh: New file.
1065         * emulparams/or32elf.sh: New file.
1066         * scripttempl/or32.sc: New file.
1067         * configure.tgt : Add support for or32.
1068         * configure: Regenerate
1069         * Makefile.am: Add support for or32.
1070         * Makefile.in: Regenerate.
1071         * NEWS: Mention support for or32.
1072         * po/ld.pot: Regenerate.
1074 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1075             Mitch Lichtenberg  <mpl@broadcom.com>
1077         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1078         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1079         reloc creation (ld --embedded-relocs).
1081 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1083         * configure: Regenerated.
1085 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1087         * Makefile.am (install): Depend on install-info.
1088         * Makefile.in: Regenerate.
1090 2002-01-26  Christian Rose  <menthos@menthos.com>
1092         * ldmain.c (main): Use full sentences to ease translation.
1094 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1096         * po/fr.po: Updated version.
1098 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1100         * po/es.po: Updated version.
1102 2002-01-25  Andreas Jaeger  <aj@suse.de>
1104         * ldlex.l (yy_input): Correct error check.
1106 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1108         * ldmisc.c (demangle): Put back dots when string not demangled.
1110 2002-01-22  Richard Henderson  <rth@redhat.com>
1112         * emulparams/elf64alpha.sh (NOP): Use unop.
1114 2002-01-21  Andreas Jaeger  <aj@suse.de>
1116         * ldlex.l: Use fread instead of read.
1118 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1120         * configure.tgt (ia64-*-netbsd*): New target.
1122 2002-01-21  H.J. Lu <hjl@gnu.org>
1124         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1125         0.
1126         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1128 2002-01-18  Andreas Jaeger  <aj@suse.de>
1130         * ldver.c (ldversion): Update year.
1132 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1134         * po/ld.pot: Regenerate.
1136 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1138         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1139         * Makefile.in: Regenerate.
1140         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1141         * emultempl/ppc64elf.em: New file.
1143 2002-01-15  DJ Delorie  <dj@redhat.com>
1145         * scripttempl/pe.sc: Add support for constructor priorities.
1147 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1149         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1150         * emulparams/avr23xx.sh: Likewise.
1151         * emulparams/avr4433.sh: Likewise.
1152         * emulparams/avr44x4.sh: Likewise.
1153         * emulparams/avr85xx.sh: Likewise.
1154         * emulparams/avrmega103.sh: Likewise.
1155         * emulparams/avrmega161.sh: Likewise.
1156         * emulparams/avrmega603.sh: Likewise.
1157         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1159 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1161         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1162         archive is excluded.
1164 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1166         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1167         (eshelf_nbsd.c): New rule.
1168         (eshlelf_nbsd.c): New rule.
1169         * Makefile.in: Regenerate.
1170         * configure.tgt (sh*le-*-netbsdelf*): New target.
1171         (sh*-*-netbsdelf*): New target.
1172         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1173         * ld/emulparams/shelf_nbsd.sh: New emulation.
1174         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1176 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1178         * po/es.po: New file: Spanish translation.
1179         * configure.in (ALL_LINGUAS): Add es.
1180         * configure: Regenerate.
1182 2002-01-06  John Marshall  <jmarshall@acm.org>
1184         * ld.texinfo: Note that --emit-relocs is currently only
1185         implemented for ELF.
1187 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1189         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1190         of bfd_section_list_remove and bfd_section_list_insert macros.
1191         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1192         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1194 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1196         * configure.tgt (x86_64-*-netbsd*): New target.
1198 2001-12-21  Tom Rix  <trix@redhat.com>
1200         (gld*_create_output_section_statements): New function.
1201         For -binitfini support.
1202         * emultempl/aix.em (gld*_before_parse): Fix comment.
1203         * emultempl/aix.em (gld*_parse_args): Fix comment.
1205 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1207         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1208         mips*el-*-netbsd*.
1209         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1211         * configure.tgt (arm-*-netbsdelf*): Add target.
1212         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1213         * emulparams/armelf_nbsd.sh: Added.
1214         * Makefile.am: Add rules for earmelf_nbsd.
1215         * Makefile.in: Regenerate.
1217 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1218             Susanne Oberhauser <froh@suse.de>
1220         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1221         s390x-linux entry to use gcc to report configuration, replace gcc
1222         with $CC in s390-linux
1224 2001-12-19  Andreas Jaeger  <aj@suse.de>
1226         * ld.texinfo (VERSION): Fix markup.
1228 2001-12-18  matthew green  <mrg@eterna.com.au>
1230         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1231         (m68kelfnbsd.c): New rule.
1232         * Makefile.in: Regenerate.
1233         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1234         (m68*-*-netbsd*4k*): .. this.
1235         (m68*-*-netbsdelf*): New target.
1236         (m68*-*-netbsd*): Also include ELF support.
1237         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1238         * emulparams/m68kelfnbsd.sh: New emulation.
1240 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1242         * ldgram.y (vers_node): Support anonymous version tags.
1243         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1244         tag is not defined together with non-anonymous versions.
1245         * ld.texinfo: Document it.
1247 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1249         * po/tr.po: New file: Turkish translation.
1250         * configure.in (ALL_LINGUAS): Add tr.
1251         * configure: Regenerate.
1253 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1255         * Makefile.am: Add rules for eelf64alpha_nbsd.
1256         * Makefile.in: Regenerate.
1257         * configure.tgt (alpha*-*-netbsd*): Set
1258         targ_emul to elf64alpha_nbsd.
1259         * emulparams/elf64alpha_nbsd.sh: Added.
1261 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1263         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1264         section_tail when fiddling with section list.
1265         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1266         broken into separate strings to make translation easier.
1267         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1268         fiddling with section list.
1269         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1271 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1273         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1275 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1277         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1279 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1281         * emultempl/elf32.em (finish): Supply output_bfd
1282         to bfd_elf*_discard_info.
1283         (OPTION_EH_FRAME_HDR): Define.
1284         (longopts): Add --eh-frame-hdr.
1285         (parse_args): Handle it.
1286         (list_options): Add --eh-frame-hdr to help.
1287         * emultempl/hppaelf.em (finish): Supply output_bfd
1288         to bfd_elf*_discard_info.
1289         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1291 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1293         * lexsup.c (parse_args): Don't pass shortopts to second call to
1294         getopt functions.  Restore optind rather than decrementing before
1295         second call.  Remove errind as it now duplicates last_optind.
1297 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1299         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1301 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1302             Richard Henderson  <rth@redhat.com>
1304         * Makefile.am: Add support for xstormy16.
1305         * configure.tgt: Add support for xstormy16.
1306         * Makefile.in: Regenerate.
1307         * emulparams/elf32xstormy16.sh: New file.
1308         * scripttempl/xstormy16.sc: New file.
1310 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1312         * Makefile.in (LIB_PATH): Make configurable.
1313         (GENSCRIPTS): Set LIB_PATH in environment.
1314         * configure.in: Substitute LIB_PATH.
1315         * configure: Regenerate.
1316         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1317         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1319 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1321         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1322         describing the -N option so that it is easier to translate into
1323         foreign languages.
1325 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1327         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1328         statements describing a single option with a single, newline
1329         escaped fprintf.  This allows better translation into other
1330         languages.
1332         * ldmain.c (add_archive_element): Combine multiple strings
1333         into a single string to permit better translation into other
1334         languages.
1336 2001-12-05  Tom Rix  <trix@redhat.com>
1338         * Makefile.am: Remove eaixppc64.
1339         * Makefile.in: Regenerate.
1341 2001-12-04  Tom Rix  <trix@redhat.com>
1343         * emultempl/aix.em (choose_target): Change default target to
1344         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1345         warning.
1346         (gld*_read_file):  Fix typo.
1347         (change_symbol_mode): Add prototype.
1348         (is_syscall): Same.
1350         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1351         * emulparams/aixrs6.sh : Same.
1352         * emulparams/ppcmacos.sh : Same.
1353         * emulparams/aixppc64.sh : Delete file.
1354         * emultempl/aix.em : Formatting changes.
1356 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1358         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1359         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1360         __Sbss.
1361         (OTHER_END_SYMBOLS): Fix formatting.
1362         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1363         (OTHER_END_SYMBOLS): Fix formatting.
1365 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1367         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1369 2001-12-02  Tom Rix  <trix@redhat.com>
1371         * configure.tgt : Remove eaixppc64 emulations.
1372         * Makefile.in : Remove eaixppc64.c
1373         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1374         (ldemul_default_target): Same.
1375         * emultempl/gld960.em (gld960_choose_target):  Same.
1376         * emultempl/gld960c.em (gld960_choose_target):  Same.
1377         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1378         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1379         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1380         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1381         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1382         -b32 and -b64.
1384 2001-11-27  H.J. Lu <hjl@gnu.org>
1386         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1387         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1388         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1389         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1390         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1391         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1392         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1393         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1395         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1396         is not empty.
1397         (SDATA): Likewise.
1398         (REL_SDATA): Likewise.
1399         (REL_SBSS): Likewise.
1400         (REL_SDATA2): Likewise.
1401         (REL_SBSS2): Likewise.
1402         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1403         (SDATA2): Likewise.
1405 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1407         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1408         destructor in rom.
1409         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1411 2001-11-22  H.J. Lu  <hjl@gnu.org>
1413         * Makefile.in: Regenerated with automake based on automake
1414         1.4-8 in RedHat 7.1.
1416 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1418         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1419         (config.status): Delete rule.
1420         Add extra dependencies to cover sourced emulparams files.
1421         * Makefile.in: Regenerate.
1423         * scripttempl/elf.sc: Order <section>, <section>.* and
1424         corresponding linkonce sections as seen in input files.
1425         Formatting fixes.  Zero vma of all sections if not relocating.
1426         (STACK): Define and insert if STACK_ADDR defined.
1427         (OTHER_RELOCATING_SECTIONS): Delete.
1428         (OTHER_END_SYMBOLS): Define.
1429         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1430         (OTHER_READWRITE_SECTIONS): Likewise.
1431         (OTHER_GOT_SECTIONS): Likewise.
1432         (OTHER_SDATA_SECTIONS): Likewise.
1433         (OTHER_BSS_SECTIONS): Likewise.
1434         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1435         (OTHER_READWRITE_SECTIONS): Likewise.
1436         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1437         (OTHER_READWRITE_SECTIONS): Likewise
1439         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1440         (STACK_ADDR): Define.
1441         * emulparams/armelf_oabi.sh: As for armelf.sh.
1442         * emulparams/elf32mcore.sh: As for armelf.sh.
1443         * emulparams/h8300elf.sh: As for armelf.sh.
1444         * emulparams/mn10200.sh: As for armelf.sh.
1445         * emulparams/shelf.sh: As for armelf.sh.
1447         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1448         (OTHER_END_SYMBOLS): Define.
1449         * emulparams/m32relf.sh: As for elf32fr30.sh.
1450         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1451         * emulparams/h8300self.sh: As for elf32fr30.sh.
1453         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1454         defines with RELOCATING test.
1455         (OTHER_SDATA_SECTIONS): Likewise.
1456         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1457         (OTHER_END_SYMBOLS): ..this.
1458         * emulparams/crislinux.sh: As for criself.sh.
1460         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1461         if not relocating.
1462         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1463         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1464         normal and linkonce sections as seen in input files.
1465         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1466         (TEXT_DYNAMIC): Likewise.
1467         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1468         (OTHER_SDATA_SECTIONS): Likewise.
1469         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1470         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1471         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1472         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1473         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1474         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1475         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1476         sections as seen in input files.
1477         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1478         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1479         if not relocating.
1480         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1481         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1482         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1483         (OTHER_SECTIONS): Instead, use this..
1484         (OTHER_END_SYMBOLS): ..and this.
1486         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1487         * emulparams/elf32bsmip.sh: Likewise.
1488         * emulparams/elf32btsmip.sh: Likewise.
1489         * emulparams/elf32ebmip.sh: Likewise.
1490         * emulparams/elf32lmip.sh: Likewise.
1491         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1492         * emulparams/elf32lsmip.sh: Likewise.
1493         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1494         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1495         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1496         * emulparams/elf64btsmip.sh: Likewise.
1497         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1498         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1499         * emulparams/elf32ppclinux.sh: Likewise.
1500         * emulparams/elf32ppcsim.sh: Likewise.
1501         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1502         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1503         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1504         * emulparams/h8300self.sh: Likewise.
1505         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1506         * emulparams/sh.sh: Comment.
1507         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1508         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1509         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1511 2001-11-21  David Heine <dlheine@tensilica.com>
1512             Alan Modra  <amodra@bigpond.net.au>
1514         * ldlang.c (map_input_to_output_sections): Replace "break"
1515         accidentally removed with 2001-08-03 change.
1516         (lang_gc_sections_1): Likewise.
1518 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1520         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1522 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1524         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1525         of false when calling lang_size_sections.
1526         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1528 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1530         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1531         function when LDEMUL_FINISH isn't set to the same name.  Don't
1532         call ${LDEMUL_FINISH}.
1533         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1534         * emultempl/armelf.em (arm_elf_finish): Call
1535         gld${EMULATION_NAME}_finish.
1536         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1537         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1538         hppaelf_layout_sections_again if necessary.
1539         (need_laying_out): New var.
1540         (hppaelf_layaout_sections_again): Rename to
1541         hppaelf_layout_sections_again.  Clear need_laying_out.
1542         (PARSE_AND_LIST_OPTIONS): Format text.
1544 2001-11-14  H.J. Lu  <hjl@gnu.org>
1546         * emultempl/armelf.em (arm_elf_finish): Renamed from
1547         gld${EMULATION_NAME}_finish.
1548         (LDEMUL_FINISH): Set to arm_elf_finish.
1550 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1552         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1553         (struct ld_emulation_xfer_struct): Use it.
1555 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1557         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1558         additional symbols referenced by newer crt0.o files from HP.
1560 2001-11-12  Anthony Green  <green@redhat.com>
1562         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1564 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1566         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1567         * Makefile.in: Regenerate.
1569 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1571         * ld.texinfo: Use @command for commands, @option for options.
1572         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1573         the page man title.
1574         * Makefile.in: Rebuild.
1576 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1578         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1579         Add support for targets.
1581 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1583         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1584         * configure: Regernate.
1585         * po/fr.po: New file.
1586         * po/sv.po: New file.
1588 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1590         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1591         as little endian default and to support big endian.
1593 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1595         * ld.texinfo (Options): Document new option, -nostdlib.
1596         * lexsup.c (OPTION_NOSTDLIB): New definition.
1597         (ld_options): Add entry for "nostdlib".
1598         (parse_args): Handle OPTIONS_NOSTDLIB.
1599         * ldfile.c (ldfile_add_library_path): Don't add directories
1600         to the search path if they weren't specified on the command line
1601         and -nostdlib was specified.
1602         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1604 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1606         * lexsup.c (parse_args): Prevent infinite parsing loop when
1607         "-rpath.a" is specified on the command line.
1608         Replace calls to fprintf with calls to einfo.
1610 2001-10-31  John Marshall  <jmarshall@acm.org>
1612         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1613         appear only once across all the linker scripts involved in a link
1614         invocation no longer applies.  Make the documentation reflect
1615         that.
1617 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1619         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1620         targets.
1621         (sh-*-linux*): Added targ_extra_libpath.
1623 2001-10-31  David Heine  <dlheine@tensilica.com>
1625         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1626         for padding statements.
1628 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1630         * configure.tgt (mmix-*-*): New target.
1631         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1632         Add dependencies to match.
1633         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1634         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1635         scripttempl/mmo.sc: New files.
1636         * gen-doc.texi: @set MMIX.
1637         * ld.texinfo: Ditto.
1638         [MMIX] Add MMIX node.
1639         * Makefile.in: Regenerate.
1641 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1643         * ldlang.c: Fix a comment typo.
1645 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1647         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1648         entries, and match *-*-linux*.
1650 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1652         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1653         with ldlex_script, ldlex_popstate.
1654         (ifile_p1): Likewise.
1655         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1656         correct slot.
1657         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1658         to 1.  Don't BEGIN(SCRIPT).
1659         (lex_redirect): Similarly.
1660         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1662 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1664         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1665         __EH_FRAME_END__ and accept eh frames into data section.
1666         Add ctor and dtor sections.
1668 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1670         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1671         (auto-export): Fix indentation.
1673 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1675         * pe-dll.c (autofilter_objectlist):  Add startup objects
1676         for profiling.
1677         (auto-export): Constify char * p.
1678         Extract file basename and use strcmp rather than ststr
1679         for object lookup.
1681 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1683         * ldmain.c (get_emulation): Improve comment about the handling
1684         of -mipsN options.
1686 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1688         * po/POTFILES.in: Regenerate.
1690 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1692         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1693         -z nocopyreloc and -z nocombreloc usage strings.
1695 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1697         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1698         in usage.
1700 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1702         * scripttempl/armaout.sc: Place .bss section after end of aligned
1703         data section to match behaviour of aout code in constructrion of
1704         header.
1706 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1708         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1709         startup files for mingw32 dlls to list.
1711 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1713         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1715 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
1717         * configure.tgt (targ): Add arm9e-*-elf.
1719 2001-10-05  H.J. Lu  <hjl@gnu.org>
1721         * genscripts.sh: Fix a typo in the last change.
1723 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
1725         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1726         -z nocombreloc in usage.
1728 2001-10-03  Jim Blandy  <jimb@redhat.com>
1730         * genscripts.sh: Include a comment at the top of each generated
1731         script, explaining its purpose.
1733 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
1735         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1736         * NEWS: Mention -z nocopyreloc.
1737         * ld.texinfo (Options): Describe nocopyreloc.
1739 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
1741         * configure: Regenerate.
1743 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
1745         * ldver.h (ld_program_version): Remove declaration.
1746         * lexsup.c (parse_args): Move printing of copyright message..
1747         * ldver.c (ldversion): .. to here.
1748         Use BFD_VERSION_STRING in place of BFD_VERSION.
1749         (ld_program_version): Remove.
1750         * Makefile.am (Makefile): Depend on bfd/configure.in.
1751         Run "make dep-am".
1752         * Makefile.in: Regenerate.
1754 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1756         * Makefile.am: Update dependencies with "make dep-am".
1757         * Makefile.in: Regenerate.
1759 2001-09-29  John Reiser  <jreiser@BitWagon.com>
1761         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1762         * lexsup.c: Add --no-define-common commandline option.
1763         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1764         * ldlex.l: Likewise.
1765         * ld.h: Add command_line.inhibit_common_definition.
1766         * ldmain.c (main): Initialize.
1767         * ld.texinfo: Document.
1769 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
1771         * ldmisc.c (USE_STDARG): Remove.
1772         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1773         (einfo): Likewise.
1774         (minfo): Likewise.
1775         (lfinfo): Likewise.
1777         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1778         declarations.  Update copyright.
1780 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1782         * pe-dll.c: Remove obsoleted declaration of
1783         pe_get_data_import_dll_name.
1784         (pe_create_import_fixup): Fix thinko.
1786         * ld.texinfo(enable-auto-import): Clarify the explanation.
1788 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
1790         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1791         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1792         DLL_SUPPORT controlled code.
1794 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1796         * emultempl/pe.em(pe_data_import_dll): Make static.
1797         (pe_get_data_import_dll_name): New accessor function.
1798         * pe-dll.c(pe_create_import_fixup): call
1799         pe_get_data_import_dll_name() from pe.em, instead of
1800         directly accessing pe_data_import_dll variable from pe.em.
1802 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
1804         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1805         (def_file_add_directive): Use ISSPACE instead of isspace.
1806         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1807         isdigit/isxdigit/isalpha/isalnum.
1808         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1809         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1810         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1811         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1812         isalnum.
1813         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1814         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1815         isupper/tolower.
1816         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1817         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1818         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1819         (ctor_prio): Use ISDIGIT instead of isdigit.
1820         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1821         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1822         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1823         isupper/tolower.
1824         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1825         (stricpy): Use TOLOWER instead of isupper/tolower.
1826         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1827         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1828         (lex_warn_invalid): Use ISPRINT instead of isprint.
1829         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1830         (main): For gettext, also set the LC_CTYPE locate facet.
1831         (add_keepsyms_file): Use ISSPACE instead of isspace.
1832         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1833         (is_num, parse_args): Use ISDIGIT instead of isdigit.
1834         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1835         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1836         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1837         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1838         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1839         (quoteput): Use ISSPACE instead of isspace.
1840         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1841         instead of isalnum.
1843 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
1845         * deffilep.y (def_stash_module): Constify "name" param.
1847         * pe-dll.c: Replace CONST with const throughout.
1848         (quick_symbol): Constify "n1", "n2", "n3" params.
1849         (make_singleton_name_thunk): Constify "import" param.  Make
1850         "buffer_len" a size_t.
1851         (make_import_fixup_entry): Constify "name", "fixup_name",
1852         "dll_symname" params.
1853         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
1854         (pe_get32): Likewise.
1855         (pe_implied_import_dll): Likewise.
1857         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1858         (sort_by_section_name): Likewise.
1860         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1861         (make_import_fixup): Cast printf arg, rel->address to long rather
1862         than int.
1863         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1865 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
1867         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1868         defines BufferSize.  Increase buffer size by one.
1870 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
1872         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1874 2001-09-14  Kevin Lo <kevlo@openbsd.org>
1876         * configure.tgt: Add arm-openbsd target.
1878 2001-09-12  H.J. Lu  <hjl@gnu.org>
1880         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1881         eelf64lppc.o to ...
1882         (ALL_64_EMULATIONS): Here.
1883         * Makefile.in: Regenerated.
1885 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1887         * emultempl/pe.em(make_import_fixup): change signature to
1888         take asection as well as arelec; we need this for proper
1889         error reporting.  Only call pe_create_import_fixup() if
1890         there is no attempt to add a constant addend to the reloc;
1891         otherwise, report error condition.
1892         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1893         since final argument is a pointer to make_import_fixup().
1894         Change call to cb() to match make_import_fixup() signature.
1895         (make_import_fixup_mark): make buffer_len unsigned.
1896         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1898 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
1900         * ld.texinfo: add verbose documentation for auto-import
1901         direct-addressing workaround, to compliment the terse
1902         error message.
1904 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
1906         * scripttempl/v850.sc: Add gcc_except_table sections.
1908 2001-09-11  Jeffrey A Law  (law@cygnus.com)
1910         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1911         * emulparams/h8300self.sh: Similarly.
1913 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1915         * ld.texinfo (Options, --stack): Correct default value for stack
1916         reserve.
1918 2001-09-05  Tom Rix <trix@redhat.com>
1920         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1922 2001-09-03  Andreas Jaeger  <aj@suse.de>
1924         * emultempl/beos.em: Declare prototypes for comparions functions,
1925         adjust definitions.
1927 2001-09-02  Andreas Jaeger  <aj@suse.de>
1929         * emultempl/aix.em: Add missing prototype.
1930         * emultempl/lnk960.em: Likewise.
1931         * emultempl/vanilla.em: Likewise.
1932         * emultempl/armcoff.em: Likewise.
1933         * emultempl/armelf_oabi.em: Likewise.
1934         * emultempl/beos.em: Likewise.
1935         * emultempl/gld960c.em: Likewise.
1936         * emultempl/gld960.em: Likewise.
1938         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1939         for prototype declaration.
1941 2001-08-31  Eric Christopher  <echristo@redhat.com>
1942             Jason Eckhardt  <jle@redhat.com>
1944         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1946 2001-08-31  Andreas Jaeger  <aj@suse.de>
1948         * emultempl/pe.em: Add missing prototypes.
1949         (gld_${EMULATION_NAME}_after_open): Remove extra args to
1950         pe_find_data_imports.
1951         (pr_sym): Add unused attribute.
1953 2001-08-29  Joel Sherrill <joel@OARcorp.com>
1955         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1956         default from coff to elf.
1958 2001-08-29  Jeff Law <law@redhat.com>
1960         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
1961         ARCH specification.
1962         * emulparams/h8300self.sh: Similarly.
1964 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
1966         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1967         eh8300self.o .
1968         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1969         * configure.tgt (h8300-*-elf*): New case.
1970         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1971         * emulparams/h8300self.sh: New file.
1972         * Makefile.in: Regenerated.
1974 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
1976         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1977         with macro name.
1979 2001-08-27  Linus Nordberg  <linus@swox.com>
1980             Alan Modra  <amodra@bigpond.net.au>
1982         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1983         (eelf64ppc.c, eelf64lppc.c): Add make targets.
1984         Run "make dep-am"
1985         * Makefile.in: Regenerate.
1986         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
1987         entries to correct alphabetical position.
1988         * emulparams/elf64ppc.sh: New.
1989         * emulparams/elf64lppc.sh: New.
1991 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
1993         * ldmain.c (main): Declare BSIZE as static.
1995 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
1997         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1998         into .rel.dyn resp. .rela.dyn if combreloc.
1999         (get_script): If .x linker script is equal to .xn, only put it
2000         once into the binary.
2001         Add .xc and .xsc scripts.
2002         (parse_args): Handle -z combreloc and -z nocombreloc.
2003         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2004         For .xc and .xsc scripts put all .rel* or .rela* input sections
2005         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2006         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2007         is elf.
2008         Strip trailing whitespace from script.
2009         Generate .xc and .xsc scripts if requested.
2010         * ldmain.c (main): Initialize link_info.combreloc and
2011         link_info.spare_dynamic_tags.
2012         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2013         (ld_options): Add --spare-dynamic-tags option.
2014         (parse_args): Likewise.
2015         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2016         * ldint.texinfo: Document .xc and .xsc linker scripts.
2017         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2019 2001-08-22  H.J. Lu  <hjl@gnu.org>
2021         * emulparams/elf32fr30.sh: Add a newline.
2023 2001-08-21  Andreas Jaeger  <aj@suse.de>
2025         * deffilep.y: Add missing prototypes.
2026         * pe-dll.c: Likewise.
2028 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2030         * ldlang.c (insert_pad): Fix typos in last patch.
2032         * ldlang.c: When traversing lang_statement_union_type lists,
2033         consistently use "header.next" rather than "next".
2034         * mpw-eppcmac.c: Likewise.
2035         * emultempl/beos.em: Likewise.
2036         * emultempl/hppaelf.em: Likewise.
2037         * emultempl/pe.em: Likewise.
2038         * ldlang.h (union lang_statement_union): Remove "next" field.
2040         * ldlang.c (insert_pad): Use offsetof macro.
2041         (lang_size_sections): Always neuter padding statements.
2042         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2044         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2045         passed to lang_size_sections.
2046         (pe_exe_fill_sections): Likewise.
2047         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2048         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2050 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2052         * emultempl/aix.em: Formatting fixes.
2054 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2056         * ldlang.c (insert_pad): Make use of an existing pad statement if
2057         available.  Move code calculating alignment, adjusting section
2058         alignment power, and adjusting dot to ..
2059         (size_input_section): .. here.  Remove unused relax param.
2060         (lang_size_sections): Change boolean `relax' param to boolean *.
2061         Adjust call to size_input_section.  Make use of insert_pad to
2062         place pad after the assignment statement.  If relaxing, zap
2063         padding statements.
2064         (reset_memory_regions): Reset output_bfd section sizes too.
2065         (relax_again): Move to..
2066         (lang_process): ..here.  Adjust call to lang_size_sections, and
2067         remove duplicated code.
2068         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2070 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2072         * ld.texinfo: Document that fill values now use the four least
2073         significant bytes.
2074         * emulparams/elf32fr30.sh (NOP): Update.
2075         * emulparams/elf32mcore.sh: Likewise.
2076         * emulparams/elf64_s390.sh: Likewise.
2077         * emulparams/elf_i386.sh: Likewise.
2078         * emulparams/elf_i386_be.sh: Likewise.
2079         * emulparams/elf_i386_chaos.sh: Likewise.
2080         * emulparams/elf_i386_ldso.sh: Likewise.
2081         * emulparams/elf_s390.sh: Likewise.
2082         * emulparams/elf_x86_64.sh: Likewise.
2083         * emulparams/i386moss.sh: Likewise.
2084         * emulparams/i386nw.sh: Likewise.
2085         * emulparams/m68kelf.sh: Likewise.
2086         * scripttempl/elf.sc: Update NOP comment.
2087         * scripttempl/elfi370.sc: Likewise.
2088         * scripttempl/elfm68hc11.sc: Likewise.
2089         * scripttempl/elfm68hc12.sc: Likewise.
2090         * scripttempl/nw.sc: Likewise.
2092 2001-08-15  Tom Rix <trix@redhat.com>
2094         * ldgram.y (saved_script_handle): Initialize to NULL.
2095         * ldmain.c (main): Change check on saved_script_handle.
2097 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2099         * emultempl/elf32.em: Formatting fixes.
2100         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2101         looking at sec->owner.
2102         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2103         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2104         unused code, and reorganize orphan section placement code.
2106         * ldlang.c (wild_doit): Rename to lang_add_section.
2107         * ldlang.h: Here too.
2108         * mpw-elfmips.c: And here.
2109         * emultempl/beos.em: And here.
2110         * emultempl/elf32.em: And here.
2111         * emultempl/hppaelf.em: And here.
2112         * emultempl/pe.em: And here.
2114 2001-08-13  Richard Henderson  <rth@redhat.com>
2116         * emultempl/needrelax.em: New file.
2117         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2118         * Makefile.am (eelf64_ia64.c): Depend on it.
2119         * Makefile.in: Rebuild.
2121 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2123         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2124         output_section is set non-NULL.
2126         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2127         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2128         needlessly create an output_section_statement.  Treat a correctly
2129         named output_section_statement with NULL bfd_section as compatible.
2131 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2133         * emultempl/generic.em: Support EXTRA_EM_FILE.
2134         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2135         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2136         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2137         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2138         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2139         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2140         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2141         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2142         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2143         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2145 2001-08-12  Richard Henderson  <rth@redhat.com>
2147         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2148         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2149         scripttempl/v850.sc: Keep .jcr data.
2151 2001-08-12  H.J. Lu  <hjl@gnu.org>
2152             Andrew Haley  <aph@cambridge.redhat.com>
2153             Nick Clifton  <nickc@redhat.com>
2155         * ldgram.y (had_script): Change name to saved_script_handle.
2156         Change type to file handle.
2157         * ld.h (had_script): Rename and retype.
2158         * ldfile.c (ldfile_open_command_file): Save the file handle
2159         used in saved_script_handle.
2160         * lexsup.c (parse_args): Do not allow -c option to alter
2161         saved_script_handle.
2162         * ldmain.c (main): Print out the linker script used if
2163         --verbose is given.  Check saved_script_handle to obtain the
2164         external linker script used, or if NULL, dump the builtin
2165         script.
2166         * ld.texinfo: Document that --verbose now dumps the linker
2167         script used, regardless of whether it was an internal or an
2168         external script.
2170 2001-08-10  Andreas Jaeger  <aj@suse.de>
2172         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2173         to build warnings.
2174         * configure: Regenerate.
2176 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2178         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2180         * scripttempl/elf.sc: Move non-text .dynamic section before
2181         .plt/.got/.sdata* group.
2182         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2183         (OTHER_SDATA_SECTIONS): Add.
2184         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2185         OTHER_GOT_SECTIONS.
2186         * emulparams/crislinux.sh: Likewise.
2187         * emulparams/elf32b4300.sh: Likewise.
2188         * emulparams/elf32bmip.sh: Likewise.
2189         * emulparams/elf32bmipn32.sh: Likewise.
2190         * emulparams/elf32bsmip.sh: Likewise.
2191         * emulparams/elf32btsmip.sh: Likewise.
2192         * emulparams/elf32ebmip.sh: Likewise.
2193         * emulparams/elf32elmip.sh: Likewise.
2194         * emulparams/elf32l4300.sh: Likewise.
2195         * emulparams/elf32lmip.sh: Likewise.
2196         * emulparams/elf32lsmip.sh: Likewise.
2197         * emulparams/elf32ltsmip.sh: Likewise.
2198         * emulparams/elf64bmip.sh: Likewise.
2199         * emulparams/elf64btsmip.sh: Likewise.
2200         * emulparams/elf64ltsmip.sh: Likewise.
2202 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2204         * genscripts.sh: Source the emulparams script before each output
2205         script is generated so that variables like `RELOCATING' may affect
2206         variables defined in the emulparams script.
2208 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2210         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2211         order.
2213         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2214         ie. iterate over wild_statement.section_list.
2215         (gld${EMULATION_NAME}_place_orphan): Likewise.
2217 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2219         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2220         .fini[0-4] sections used by _exit
2221         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2222         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2223         * scripttempl/elfm68hc11.sc: Likewise.
2225 2001-08-03  H.J. Lu  <hjl@gnu.org>
2227         * emultempl/beos.em (init): Add the missing initialization.
2229 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2231         * ld.texinfo (Input Section Basics): Clarify ordering of output
2232         sections.
2233         * ldlang.c (callback_t): Add wildcard_list param.
2234         (walk_wild_section): Remove "section" param.  Rewrite for
2235         lang_wild_statement_type change.  Remove unique_section_p test.
2236         (walk_wild_file): Remove "section" param.
2237         (walk_wild): Remove "section" and "file" params.
2238         (lang_gc_wild): Likewise.
2239         (wild): Likewise.  Modify for lang_wild_statement_type change.
2240         (wild_sort): Likewise.  Add "sec" param.
2241         (gc_section_callback): Likewise.
2242         (output_section_callback): Likewise.  Do unique_section_p test.
2243         (map_input_to_output_sections): Modify call to wild.
2244         (lang_gc_sections_1): Likewise.
2245         (print_wild_statement): Modify for lang_wild_statement_type
2246         change.
2247         (lang_add_wild): Replace filename, filenames_sorted param with
2248         filespec.  Replace section_name, sections_sorted,
2249         exclude_filename_list with section_list.
2250         * ldlang.h (lang_add_wild): Here too.
2251         (lang_wild_statement_type): Replace section_name, sections_sorted,
2252         and exclude_filename_list with section_list.
2253         * ldgram.y (current_file): Delete.
2254         (%union): Add wildcard_list.
2255         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2256         rather than calling lang_add_wild for each entry.
2257         (input_section_spec_no_keep): Call lang_add_wild here instead.
2258         * ld.h (struct wildcard_list): Declare.
2259         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2261 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2263         * ldmain.c (main): initialize link_info.pei386_auto_import
2264         * pe-dll.c: new tables for auto-export filtering
2265         (auto_export): change API, pass abfd for contextual filtering.
2266         Loop thru tables of excluded symbols instead of comparing
2267         "by hand".
2269 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2271         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2272         static variable current_sec (static struct sec *). Add
2273         forward declaration for add_bfd_to_link.
2274         (process_def_file): Don't export undefined symbols. Do not
2275         export symbols starting with  "_imp__".  Call auto_export()
2276         with new API.
2277         (pe_walk_relocs_of_symbol): New function.
2278         (generate_reloc): add optional extra debugging
2279         (pe_dll_generate_def_file): eliminate extraneous initial blank
2280         line in output
2281         (make_one): enlarge symtab to make room for __nm__ symbols
2282         (DATA auto-import support).
2283         (make_singleton_name_thunk): New function.
2284         (make_import_fixup_mark): New function.
2285         (make_import_fixup_entry): New function.
2286         (pe_create_import_fixup): New function.
2287         (add_bfd_to_link): Specify that 'name' argument is a CONST
2288         char *.
2289         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2290         declare new functions pe_walk_relocs_of_symbol and
2291         pe_create_import_fixup.
2292         * emultempl/pe.em: add new options --enable-auto-import,
2293         --disable-auto-import, and --enable-extra-pe-debug.
2294         (make_import_fixup): New function.
2295         (pe_find_data_imports): New function.
2296         (pr_sym): New function.
2297         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2298         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2299         CODE.
2301 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2303         * ld.texinfo: add additional documentation for
2304         --export-all-symbols.  Document --out-implib,
2305         --enable-auto-image-base, --disable-auto-image-base,
2306         --dll-search-prefix, --enable-auto-import, and
2307         --disable-auto-import.
2308         * ldint.texinfo: Add detailed documentation on auto-import
2309         implementation.
2311 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2313         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2314         example.
2316 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2318         * Makefile.am: Update dependencies with "make dep-am".
2319         * Makefile.in: Regenerate
2321 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2323         * ldcref.c (check_section_sym_xref): New function.
2324         (check_nocrossrefs): Call it.
2325         (check_nocrossref): Interate over h->refs here instead of..
2326         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2327         rather than hash_entry pointers.
2328         (struct check_refs_info): Keep symbol name rather than hash entry.
2329         Remove "same".
2330         (check_reloc_refs): Tweak for above changes in check_refs_info.
2331         Only report references to section syms when symname is NULL to
2332         prevent duplicate messages for the same reloc.
2334 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2336         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2337         available.  Do not print NULL trees.
2338         (exp_print_token): Print unknown tokens with values > 126 as
2339         decimal values not ASCII characters.
2341         * ldlang.c (lang_leave_overlay): If a region is specified assign
2342         it to all sections inside the overlay unless they have been
2343         assigned to the own, non-default, memory region.
2345         * README: Add header for consistency with other README files.
2347 2001-07-14  H.J. Lu  <hjl@gnu.org>
2349         * emultempl/elf32.em (output_prev_sec_find): Never return
2350         bfd_abs_section_ptr, bfd_com_section_ptr nor
2351         bfd_und_section_ptr.
2353 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2355         * Makefile.am (em32relf.c): Change dependency from generic.em to
2356         elf32.em.
2357         * Makefile.in: Regenerate.
2359 2001-07-14  matthew green  <mrg@eterna.com.au>
2361         * configure.tgt (i386-*-netbsdelf*): New target.
2362         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2364 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2366         * emultempl/elf32.em (output_prev_sec_find): New.
2367         (place_orphan): Use it.
2369 2001-07-11  H.J. Lu  <hjl@gnu.org>
2371         * ldmain.c (main): Fix typos in the last change.
2373 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2375         * ldmain.c (main): Disallow -F and -f without -shared.
2377 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2379         * emultempl/pe.em (after_open): Check for the output_bfd not
2380         having any coff_data structure allocated to it.
2382 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2384         * emultempl/elf32.em: Do not assuming that contents of the buffer
2385         returned from basename function will remain unchanged accross other
2386         function calls.
2388 2001-07-03  H.J. Lu  <hjl@gnu.org>
2390         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2391         2001-07-03. It creates dynamic entries even for static binaries.
2393 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2395         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2396         (DYNAMIC): Use it to reserve few dynamic entries for
2397         post-linking tools.
2399 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2401         * emulparams/hppa64linux.sh: New file.
2402         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2403         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2404         (ehppa64linux.c): Add rule to make it.
2405         Run "make dep-am".
2406         * Makefile.in: Regenerate.
2408 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2410         * ld.texinfo (Options, -r): Mention restrictions when using
2411         different object formats.
2413 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2415         * ldlang.c (lang_check): Emit fatal error if relocatable link
2416         between different object flavours with relocations in input.
2418 2001-06-19  H.J. Lu  <hjl@gnu.org>
2420         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2421         (--version-script): Mention the language support.
2423 2001-06-19  H.J. Lu <hjl@gnu.org>
2425         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2427 2001-06-18  H.J. Lu <hjl@gnu.org>
2429         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2430         (diststuff): Add $(MANS).
2431         * Makefile.in: Regenerated.
2433         * ld.1: Removed.
2435 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2437         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2438         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2439         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2440         * ld.h (args_type): Remove member export_dynamic.  All users
2441         changed to use struct bfd_link_info member.
2443         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2444         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2445         * Makefile.in: Regenerate.
2447 2001-06-18  H.J. Lu  <hjl@gnu.org>
2449         * ldlang.c (init_os): Add the newline to the einfo call.
2450         (lang_check): Likewise.
2451         (lang_do_version_exports_section): Likewise.
2453 2001-06-15  H.J. Lu  <hjl@gnu.org>
2455         * lexsup.c (parse_args); Save optind to report unrecognized
2456         option.
2458 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2460         * ldlang.c (lang_check): Emit fatal error if relocatable link
2461         between different object flavours.
2463         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2464         Set new link_info member export_dynamic.
2465         * ldmain.c (main): Initialize new link_info member export_dynamic.
2467 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2469         * ldlang.c (walk_wild): Only call walk_wild_file if
2470         lookup_name returns something.
2471         (lookup_name): If load_symbols fails, return NULL.
2472         (load_symbols): Change to a boolean function.
2473         (open_input_bfds): If load_symbols fails then do not make the
2474         executable.
2476 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2478         * ldlang.c (record_bfd_errors): Remove.
2480         * emultempl/aix.em: Fix copyright dates.
2482 2001-06-07  Andreas Jaeger  <aj@suse.de>
2484         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2485         (TEXT_START_ADDR): Likewise.
2487 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2489         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2491 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2493         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2495 2001-05-31  H.J. Lu  <hjl@gnu.org>
2497         * ldlang.c (open_input_bfds): Don't change the bfd error
2498         handler whilst loading symbols.
2500 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2502         * configure.tgt: Remove i370-mvs architecture, it is not currently
2503         supported.
2505 2001-05-25  H.J. Lu  <hjl@gnu.org>
2507         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2508         like emulparams/aixppc.sh.
2510 2001-05-25  H.J. Lu  <hjl@gnu.org>
2512         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2513         setting of output_filename after bfd_scan_arch.
2514         * emultempl/pe.em: Likewise.
2516 2001-05-25  H.J. Lu  <hjl@gnu.org>
2518         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2519         like emulparams/aixppc.sh.
2521         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2522         instead of ${srcdir}/emultempl/stringify.sed.
2524 2001-05-25  Timothy Wall  <twall@oculustech.com>
2526         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2527         output.
2529 2001-05-25  Alan Modra  <amodra@one.net.au>
2531         * configure.host: Replace linuxoldld with linux*oldld.
2532         * configure.tgt: Likewise.
2534 2001-05-24  H.J. Lu  <hjl@gnu.org>
2536         * emultempl/stringify.sed: Removed again.
2538 2001-05-24  H.J. Lu  <hjl@gnu.org>
2540         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2541         (gld${EMULATION_NAME}_before_parse): Initialize
2542         ldfile_output_architecture, ldfile_output_machine and
2543         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2544         * emultempl/beos.em: Likewise.
2545         * emultempl/elf32.em: Likewise.
2546         * emultempl/linux.em: Likewise.
2547         * emultempl/mipsecoff.em: Likewise.
2548         * emultempl/pe.em: Likewise.
2549         * emultempl/sunos.em: Likewise.
2551 2001-05-24 Tom Rix <trix@redhat.com>
2553         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2554         udate import file format.
2555         (change_symbol_mode) New, same
2556         (is_syscall) New, same
2557         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2558         * emulparams/aixppc64.sh : same
2559         * emulparams/aixrs6.sh : same
2560         * emulparams/ppcmacos.sh : same
2561         * emultempl/aix.em : use strtoull to parse options
2562         * Makefile.am : add eaixppc64 emulation for xcoff64
2563         * Makefile.in : same
2564         * configure.tgt : same
2566         * scripttempl/aix.sc : default text section offset to 0x10000000
2567         default data section offset to 0x20000000
2568         add .sv3264 and .sv64 pseudo sections
2569         loader and debug sections use the currect section offset.
2571         * emultempl/aix.em : Add xcoff64 support
2572         Add -binitfini support
2573         (gld${EMULATION_NAME}_before_parse) -binitfini
2574         (gld${EMULATION_NAME}_parse_args) same
2575         (gld${EMULATION_NAME}_before_allocation) format change for special
2576         sections
2578         * emulparams/aixppc64.sh : New file for xcoff64 support
2580 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2582         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2583         variable to avoid non-portable shell construct.
2585 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2587         * ldmain.c (get_emulation): Add -mips5 command line argument.
2589 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2591         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2592         (ELF_INTERPRETER_NAME): Define it.
2593         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2594         it.
2595         * configure.tgt (targ_emul, targ_extra_emuls)
2596         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2597         as primary, elf_i386 as extra.
2598         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2599         (eelf_i386_ldso.c): New rule.
2600         * Makefile.in: Rebuilt.
2602 2001-05-22  Nick Clifton  <nickc@redhat.com>
2604         * lexsup.c (ld_options):  Allow -I to be an alias for
2605         --dynamic-linker.  This is for Solaris compatability.
2606         * ld.texinfo: Document that -I can be used.
2607         * ld.1: Regenerate.
2609 2001-05-16  Alan Modra  <amodra@one.net.au>
2611         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2612         whether an input section is the first one assigned to an output
2613         section.
2614         Assorted formatting fixes.
2616 2001-05-14  DJ Delorie  <dj@delorie.com>
2618         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2619         * Makefile.in: Ditto.
2621 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2623         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2624         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2625         output sections.
2626         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2628 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2630         * ldlang.c (lang_process): Call bfd_merge_sections.
2632 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2634         * ldgram.y: Fix typo.
2636 2001-05-03  H.J. Lu  <hjl@gnu.org>
2638         * emultempl/elf32.em: Include "libiberty.h".
2639         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2640         basename of the bfd filename.
2641         (gld${EMULATION_NAME}_stat_needed): Likewise.
2642         (gld${EMULATION_NAME}_try_needed): Likewise.
2643         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2645 2001-05-02  H.J. Lu  <hjl@gnu.org>
2647         * emultempl/pe.em: Include <ctype.h>.
2649 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2651         * emulparams/elf32openrisc.sh: New file.
2653         * Makefile.am: Add OpenRISC target.
2654         * Makefile.in: Regenerated.
2656         * configure.tgt: Add openrisc-*-* mapping.
2658 2001-05-02  Nick Clifton  <nickc@redhat.com>
2660         * emultempl/aix.em: Replace buystring with xstrdup.
2661         * emultempl/beos.em: Replace buystring with xstrdup.
2663 2001-05-02  H.J. Lu  <hjl@gnu.org>
2665         * ldfile.c: Include "libiberty.h".
2666         * ldlex.l: Likewise.
2668         * ldmisc.c (buystring): Removed.
2669         * ldmisc.h: Likewise.
2671         * ldfile.c: Replace buystring with xstrdup.
2672         * ldlang.c: Likewise.
2673         * ldlex.l: Likewise.
2674         * ldmain.c: Likewise.
2675         * ldmisc.c: Likewise.
2676         * lexsup.c: Likewise.
2677         * mpw-eppcmac.c: Likewise.
2679 2001-04-30  Andreas Jaeger  <aj@suse.de>
2681         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2683 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2685         * ldlang.c (load_symbols): Give emulation a chance
2686         to process unrecognized file before fatal error is
2687         reported, not after.
2689 2001-04-27  Sean McNeil <sean@mcneil.com>
2691         * configure.tgt: Add arm-vxworks target.
2692         * scripttempl/armcoff.sc: Support .text or .data as a section name
2693         prefix.
2694         Define _etext.
2696 2001-04-13  J.T. Conklin  <jtc@redback.com>
2698         * ld.texinfo: Document --fatal-warnings.
2699         * ld.1: Regenerate.
2701         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2702         warnings have been turned into errors.
2703         * lexsup.c (OPTION_WARN_FATAL): Define.
2704         (ld_options): Entry for --fatal-warnings.
2705         (parse_args): Handle OPTION_WARN_FATAL.
2706         * ld.h (ld_config_type): Add fatal_warnings field.
2708 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2710         * ldmain.c (main): Default to discard_sec_merge.
2711         * lexsup.c (OPTION_DISCARD_NONE): Define.
2712         (ld_options): Add --discard-none.
2713         (parse_args): Handle OPTION_DISCARD_NONE.
2714         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2715         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2716         all its input sections match.
2718 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
2720         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2721         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2722         (eelf32ltsmip.c): New target.
2723         (eelf64btsmip.c): Likewise.
2724         (eelf64ltsmip.c): Likewise.
2725         * Makefile.in: Regenerated.
2727         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2728         target.
2729         (mips*-*-linux-gnu*): Likewise.
2731         * emulparams/elf32ltsmip.sh: New. Traditional little endian
2732         MIPS taget.
2733         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2734         target.
2735         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2736         endian target.
2738 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
2740         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2741         correct value of __Stext here.
2742         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2743         .startup section.
2745         * emulparams/crislinux.sh: Remove FIXME.
2747 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
2749         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2750         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2752 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
2754         * configure.tgt (cris-*-*): Change default emulation to criself.
2755         (cris-*-*aout*): New rule.
2757 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
2759         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2760         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2762 2001-03-26  Andreas Jaeger  <aj@suse.de>
2764         * ld.texinfo (Overview): Fix syntax in texi code.
2766 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2768         * ld.texinfo: Put @c man indications to generate the ld man page.
2769         When generating man, define all the variables.  Define SEEALSO
2770         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
2771         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2772         (ld.1): Generate from ld.texinfo.
2773         * Makefile.in: Regenerate.
2775 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
2777         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2778         and '-fdata-sections'. Set the VMA of STABS sections to zero.
2780 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2782         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2783         is an absolute path look only for this file and not along the path.
2785 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2787         * emultempl/elf32.em (OPTION_GROUP): New macro.
2788         Add new option Bgroup to longopts.
2789         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2790         (gld*_list_options): Add -Bgroup and -z defs.
2791         * ld.1: Document -Bgroup and -z defs.
2792         * ld.texinfo: Likewise.
2794 2001-03-07  Michael Meissner  <meissner@redhat.com>
2796         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2797         with sections created by -fdata-sections.
2798         (.dynbss,.bss): Ditto.
2800 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
2802         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2803         after_allocation_default, not gld..._before_allocation.
2805 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
2807         * configure.in (BFD_VERSION): New.
2808         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2809         * configure: Regenerate.
2810         * Makefile.am: Run "make dep-am"
2811         * Makefile.in: Regenerate.
2813 2001-02-26  Timothy Wall  <twall@cygnus.com>
2815         * emulparams/elf64_aix.sh: Add additional read-only sections;
2816         uncomment lines which are now required.
2818 2001-02-26  H.J. Lu  <hjl@gnu.org>
2820         * ldlang.c (open_input_bfds): Set the bfd error handler so
2821         that problems can be caught whilst loading symbols.
2822         (record_bfd_errors): New function: Report BFD errors and mark
2823         the executable output as being invalid.
2825 2001-02-22  Timothy Wall  <twall@cygnus.com>
2827         * configure.host: Add configuration for ia64-*-aix*.
2828         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2829         Add dependencies for eelf64_aix.c.
2830         * Makefile.in: Regenerate.
2831         * configure.tgt: Add ia64-*-aix* mapping.
2832         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2833         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2834         AIX-specific test.
2836 2001-02-20  H.J. Lu  <hjl@gnu.org>
2838         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2839         false if we found the file.
2841 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
2843         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2844         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2846 2001-02-18  lars brinkhoff  <lars@nocrew.org>
2848         * Makefile.am: Add PDP-11 target.
2849         * configure.tgt: Likewise.
2850         * emulparams/pdp11.sh: New file.
2852 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
2854         * configure.host: Add a generic FreeBSD configuration entry such that
2855         all [modern] FreeBSD systems on all platforms will look the same.
2857 2001-02-14  H.J. Lu  <hjl@gnu.org>
2859         * configure.tgt: Remove mention of earmelf_linux26.
2861 2001-02-13  Richard Henderson  <rth@redhat.com>
2863         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2865 2001-02-13  H.J. Lu  <hjl@gnu.org>
2867         * ldexp.h (node_type): Add etree_provided.
2868         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2869         type to etree_provided if defined by PROVIDE. Allow updating
2870         for etree_provided.
2871         (exp_print_tree): Handle etree_provided.
2872         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2873         etree_provided.
2875 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
2877         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2878         .IA_64.unwind.* pattern to unwind table section and
2879         .IA_64.unwind_info* pattern to unwind info section.
2881 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2883         * Makefile.am: Add linux target for S/390.
2884         * Makefile.in: Likewise.
2885         * configure.host: Likewise.
2886         * configure.tgt: Likewise.
2887         * emulparams/elf64_s390.sh: New file.
2888         * emulparams/elf_s390.sh: New file.
2890 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2892         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2893         targ_extra_libpath.
2894         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2896 2001-02-06  Philip Blundell  <philb@gnu.org>
2898         * Makefile.am: Remove mention of earmelf_linux26.
2899         * Makefile.in: Regenerate.
2901 2001-02-04  Philip Blundell  <philb@gnu.org>
2903         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2904         * emulparams/armelf_linux26.sh: Delete.
2905         * configure.tgt: Remove mention of armelf_linux26 emulation.
2907 2001-02-01  Nick Clifton  <nickc@redhat.com>
2909         * ld.1: Replace occurances of -oformat with --oformat.
2911 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
2913         * ldlang.c (lang_leave_overlay): Don't set lma_region when
2914         load_base is specified.
2916 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
2918         * emultempl/elf32.em: Correct spelling in comments and listed
2919         options.
2921 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
2923         * ldlang.c (lang_leave_overlay): Only set lma_region from the
2924         default for the first section of a group of overlay sections.
2926 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
2928         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2929         * Makefile.in: Regenerate.
2930         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2931         Check for null tool_dir.
2933 2001-01-16  Jim Wilson  <wilson@redhat.com>
2935         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2936         and IA_64.unwind.info.
2938 2001-01-16  H.J. Lu  <hjl@gnu.org>
2940         * ldlang.c (lang_check): Merge the private data only if the
2941         input file has contents.
2943 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
2945         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2947         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2948         enabling search for libmilli.  On a relocatable link, make .text
2949         sections unique.
2950         (LDEMUL_AFTER_PARSE): Define.
2951         (hppaelf_finish): Correct spelling of relocatable in comments.
2953         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2954         rummage through the script for sections on the unique list.
2955         Correct length of strncmp for ".note".
2956         (gld${EMULATION_NAME}_check_needed): Rearrange function.
2958         * ldlang.c (unique_section_list): New var.
2959         (unique_section_p): New function.
2960         (walk_wild_section): Don't match sections on unique_section_list.
2961         (lang_add_unique): New function.
2962         Correct spelling of relocatable in comments.
2964         * ldlang.h (struct unique_sections): Declare.
2965         (unique_section_list): Declare.
2966         (unique_section_p): Declare.
2967         (lang_add_unique): Declare.
2969         * lexsup.c (ld_options): Allow --unique to take an optional arg.
2970         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2972         * ld.texinfo (--unique): Update.
2974 2001-01-13  Nick Clifton  <nickc@redhat.com>
2976         * lexsup.c (parse_args): Remove spurious white space.
2978 2001-01-12  Nick Clifton  <nickc@redhat.com>
2980         * lexsup.c (parse_args): Update copyright date.
2982 2001-01-12  Philip Blundell  <pb@futuretv.com>
2984         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2986 2001-01-10  Kazu Hirata  <kazu@hxi.com>
2988         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
2989         * scripttempl/h8300h.sc: Fix formatting.
2990         * scripttempl/h8300s.sc: Likewise.
2991         * scripttempl/h8500.sc: Likewise.
2992         * scripttempl/h8500b.sc: Likewise.
2993         * scripttempl/h8500c.sc: Likewise.
2994         * scripttempl/h8500m.sc: Likewise.
2995         * scripttempl/h8500s.sc: Likewise.
2997 2000-01-07  David O'Brien  <obrien@BSDi.com>
2999         * emultempl/elf32.em: Only perform Linux ld hints processing when
3000         targeting Linux.
3002 2001-01-07  Philip Blundell  <philb@gnu.org>
3004         * ld.texinfo (Bug Reporting): Update email address for reports.
3006 2000-12-31  Nick Clifton  <nickc@redhat.com>
3008         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3009         options by checking for a return value of '?' not -1.
3011 2000-12-28  Nick Clifton  <nickc@redhat.com>
3013         * lexsup.c (struct ld_option): Add new enum value:
3014         EXACTLY_TWO_DASHES.
3015         (ld_options[]): Change -omagic, -output and -oformat options
3016         to be EXACTLY_TWO_DASHES.
3017         (OUTPUT_COUNT): Use ARRAY_SIZE.
3018         (parse_args): Change parameter 'argc' to unsigned.
3019         Place EXACTLY_TWO_DASHES options into new really_longopts
3020         array.
3021         If getopt_long_only fails, try calling getopt_long using the
3022         really_longopts array.
3023         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3024         TWO_DASHES options.
3026         * ldlex.h: Fix prototype of parse_args.
3028         * ld.texinfo: Document that long options starting with 'o'
3029         must be preceeded by two dashes.  Change example of a single
3030         dashed long option from -oformat to -trace-symbol.
3032 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3034         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3035         (longopts[]): New --no-default-excludes option.
3036         (gld_${EMULATION_NAME}_list_options): Document.
3037         (gld_${EMULATION_NAME}_parse_args): Handle.
3039 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3041         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3042         whitespace, it breaks the K&R C preprocessor.
3044 2000-12-11  DJ Delorie  <dj@redhat.com>
3046         * ld.texinfo: Add notes about --whole-archive and gcc.
3048 2000-11-18  Fred Fish  <fnf@be.com>
3050         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3051         (ld_options): Entry for --allow-shlib-undefined.
3052         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3053         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3054         to false.
3055         * ld.texinfo: Document new command line switch.
3057 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3059         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3060         .fixup is actually read/write.
3061         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3062         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3063         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3065 2000-12-11  Jan Hubicka  <jh@suse.cz>
3067         * NEWS: Add note about x86_64 architecture.
3069 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3071         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3072         Set DWARF2 sections to a VMA of zero.
3074 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3076         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3077         New targets.
3078         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3079         (sparc*-*-rtems*): Switched from a.out to ELF.
3081 2000-11-30  Jan Hubicka  <jh@suse.cz>
3083         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3084         (eelf_x86_64.c): New.
3085         * Makefile.in: Regenerate.
3086         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3087         * emulparams/elf_x86_64.sh: New.
3089 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3091         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3092         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3094         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3095         merging non-a.out sections into CONSTRUCTING.
3097 2000-11-28  Nick Clifton  <nickc@redhat.com>
3099         * ld.1 (COPYING): Mention that the GNU Free Documentation
3100         License is present in the sources, but not the output, and
3101         also available from the GNU website.
3102         (GNU Free Documentation License): Comment out this section.
3104 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3106         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3107         does not use them.
3109 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3111         * ld.1: Remove old date so it does not give the impression the manpage
3112         is way out of date.
3114 2000-11-24  Nick Clifton  <nickc@redhat.com>
3116         * configure.tgt (xscale-coff): Add target.
3117         (xscale-elf): Add target.
3119 2000-11-24  Fred Fish  <fnf@be.com>
3121         * ldmain.c (main): Remove redundant init of config.make_executable
3122         to true.
3124 2000-11-15  Richard Henderson  <rth@redhat.com>
3126         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3128 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3130         * scripttempl/h8300.sc: Fix formatting.
3131         * scripttempl/h8300h.sc: Likewise.
3132         * scripttempl/h8300s.sc: Likewise.
3134 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3136         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3138 2000-11-09  Philip Blundell  <pb@futuretv.com>
3140         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3141         around orphan sections whose names can be represented in C.
3143 2000-11-07  Jim Wilson  <wilson@redhat.com>
3145         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3146         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3148 2000-11-06  Nick Clifton  <nickc@redhat.com>
3150         * ld.texinfo: Add GNU Free Documentation License.
3151         * ldint.texinfo: Add GNU Free Documentation License.
3152         * ld.1: Add GNU Free Documentation License.
3154 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3156         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3157         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3159         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3160         Move 2000-11-02 Makefile.in changes to this file.
3161         * Makefile.in: Regenerate.
3163 2000-11-03  Nick Clifton  <nickc@redhat.com>
3165         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3166         constructors and destructors.
3167         * scripttempl/h8300h.sc: Ditto.
3168         * scripttempl/h8300s.sc: Ditto.
3169         * scripttempl/h8500.sc: Ditto.
3170         * scripttempl/h8500b.sc: Ditto.
3171         * scripttempl/h8500c.sc: Ditto.
3172         * scripttempl/h8500m.sc: Ditto.
3173         * scripttempl/h8500s.sc: Ditto.
3174         * scripttempl/v850.sc: Ditto.
3175         * scripttempl/w65.sc: Ditto.
3176         * scripttempl/z8000.sc: Ditto.
3178 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3180         * Makefile.in (e_i386_chaos.c): New rule.
3181         (ALL_EMULATIONS): Added e_i386_chaos.o.
3182         * emulparams/elf_i386_chaos.sh: New file.
3183         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3185 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3187         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3188         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3189         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3190         library path suffix.
3191         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3193 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3195         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3196         for consecutive sections.
3198 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3200         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3201         options.
3202         * ld.texinfo: Added notes about this new option.
3204 2000-10-16  Nick Clifton  <nickc@redhat.com>
3206         * emultempl/pe.em (_after_open): Add tests of return values from
3207         bfd functions.  Emit appropriate error messages if necessary.
3209 2000-10-13  Nick Clifton  <nickc@redhat.com>
3211         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3212         local variables - they are not used, but leave in the call to
3213         bfd_canonicalize_symtab.
3214         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3215         pe_dll_search_prefix.
3217 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3219         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3220         (longopts): New --dll-search-prefix option.
3221         (gld_${EMULATION_NAME}_list_options): Document.
3222         (gld_${EMULATION_NAME}_parse_args): Handle.
3223         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3224         dynamically, search for a dll named '<prefix><basename>.dll'
3225         in preference to 'lib<basename>.dll' if --dll-search-prefix
3226         is specified.
3228 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3230         * ldlang.c (section_already_linked): Set kept_section instead of
3231         sec->comdat->sec.
3233 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3235         * deffile.h: Fix formatting.
3236         * lexsup.c: Likewise.
3237         * mri.c: Likewise.
3239 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3241         * pe-dll.c (make_one): Do not generate code thunk for DATA
3242         exports.
3243         (process_def_file): deduce DATA flag for auto-export sumbols.
3245 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3247         * ld.h: Fix formatting.
3248         * ldcref.c: Likewise.
3249         * ldctor.h: Likewise.
3250         * ldemul.c: Likewise.
3251         * ldemul.h: Likewise.
3252         * ldexp.c: Likewise.
3253         * ldexp.h: Likewise.
3254         * ldfile.c: Likewise.
3255         * ldfile.h: Likewise.
3256         * ldlang.c: Likewise.
3257         * ldlang.h: Likewise.
3258         * ldmain.c: Likewise.
3259         * pe-dll.c: Likewise.
3261         * pe-dll.c: Revert some formatting fixes.
3263 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3265         * pe-dll.c: Fix formatting.
3267 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3269         * ldlang.c: Fix formatting.
3271 2000-10-03  DJ Delorie  <dj@redhat.com>
3273         * pe-dll.c (fill_edata): initialize entire block
3274         (make_one): fill in correct section.
3276 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3278         * ldexp.c: Fix formatting.
3280 2000-10-02  DJ Delorie  <dj@redhat.com>
3282         * emultempl/pe.em (gld_*_after_open): detect case where there two
3283         import libraries for same dll; rename one to ensure proper link
3284         order.
3286         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3287         typo
3288         (generate_edata): fix typo
3290 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3292         * scripttempl/crisaout.sc (ENTRY): Now __start.
3293         (.text): Add default setting for __start.
3294         Remove CONSTRUCTORS handling.
3295         (/DISCARD/): Add .gnu.warning.*.
3296         * emulparams/crislinux.sh (ENTRY): Now __start.
3297         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3298         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3299         (ENTRY): Now __start.
3300         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3301         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3303 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3305         * deffile.h: Fix formatting.
3306         * ld.h: Likewise.
3307         * ldcref.c: Likewise.
3308         * ldctor.c: Likewise.
3309         * ldctor.h: Likewise.
3310         * ldemul.c: Likewise.
3311         * ldemul.h: Likewise.
3312         * ldexp.c: Likewise.
3313         * ldexp.h: Likewise.
3314         * ldfile.c: Likewise.
3315         * ldfile.h: Likewise.
3316         * ldlang.c: Likewise.
3317         * ldlang.h: Likewise.
3318         * lexsup.c: Likewise.
3319         * mri.c: Likewise.
3320         * pe-dll.c: Likewise.
3322 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3324         * pe-dll.c (process_def_file): Uninitialized data wasn't
3325         exported with --export-all-symbols switch.
3327 2000-09-28  DJ Delorie  <dj@redhat.com>
3329         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3330         noname work properly.
3332 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3334         * ld.texinfo (HPPA ELF32): New section.
3336         * emultempl/hppaelf.em (group_size): New.
3337         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3338         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3339         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3340         options to prevent abbreviations matching.
3341         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3342         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3344 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3346         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3347         on the m68*-*-elf target.  Make it support COFF input objects.
3349 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3351         * ldmain.c: Fix formatting.
3352         * ldmisc.c: Likewise.
3353         * ldver.c: Likewise.
3354         * ldwrite.c: Likewise.
3356 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3358         * ldwrite.c (clone_section): Silence gcc warnings.
3360 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3362         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3363         out of memory failure.
3365         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3366         (clone_section): Handle out of memory failures.  Rename var to
3367         avoid c++ reserved word.
3369 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3371         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3372         stub_name param to stub_sec_name.
3373         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3375 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3377         * emultempl/m68kelf.em: New file.
3378         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3379         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3380         * Makefile.in: Regenerate.
3382 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3384         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3385         only as needed.
3387 2000-09-13  Nick Clifton  <nickc@redhat.com>
3389         * ldmain.c (multiple_definition): Disable relaxation if
3390         multiple symbol definitions are encountered - otherwise the
3391         linker could abort with an assertion failure.
3393 2000-09-10  Nick Clifton  <nickc@redhat.com>
3395         * mri.c: Fix formatting.
3397 2000-09-07  H.J. Lu  <hjl@gnu.org>
3399         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3400         * configure: Rebuild.
3402 2000-09-07  H.J. Lu  <hjl@gnu.org>
3404         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3405         * Makefile.in: Rebuild.
3407 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3409         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3410         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3411         when no place-holder.  Add some comments.  Test both SEC_CODE and
3412         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3413         Handle case where no output section statement created.
3415 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3417         * configure.tgt (sh-*-linux*): Added.
3418         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3419         * Makefile.in: Rebuilt.
3420         * emulparams/shelf_linux.sh: New file.
3421         * emulparams/shlelf_linux.sh: New file.
3423 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3425         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3426         try shuffling sections when the orphan happens to be the place
3427         holder.  Keep count of unique section names generated so we speed
3428         the search for a new name.
3430 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3432         * configure: Rebuilt with new libtool.m4.
3434 2000-09-05  Nick Clifton  <nickc@redhat.com>
3436         * Makefile.in: Regenerate.
3437         * aclocal.m4: Regenerate.
3438         * configure: Regenerate.
3439         * config.in: Regenerate.
3440         * po/ld.pot: Regenerate.
3442         * ldint.texinfo: Remove CVS revision marker - it foils local
3443         comparisons.
3445         * emultempl/ticoff.em: Remove extraneous comma.
3447 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3449         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3450         to stub section flags.
3451         (hppa_for_each_input_file_wrapper): New.
3452         (hppa_lang_for_each_input_file): New.
3453         (lang_for_each_input_file): Define to call above.
3454         (multi_subspace): New.
3455         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3456         (PARSE_AND_LIST_PROLOGUE): Define.
3457         (PARSE_AND_LIST_LONGOPTS): Define.
3458         (PARSE_AND_LIST_OPTIONS): Define.
3459         (PARSE_AND_LIST_ARGS_CASES): Define.
3460         (hppaelf_finish): Call elf32_hppa_set_gp.
3461         (hppaelf_set_output_arch): Remove.
3462         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3464         * emulparams/hppalinux.sh (ELFSIZE): Define.
3465         (MACHINE): Define.
3466         (OTHER_READONLY_SECTIONS): Define.
3467         (DATA_PLT): Define.
3468         (GENERATE_SHLIB_SCRIPT): Define.
3470         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3471         to const throughout.  Change `void *' to `PTR' throughout.
3472         (lang_memory_default): Function is local to file, add `static'.
3474         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3475         (ehppalinux.c): Likewise.
3476         (earmelf.c): Likewise.
3477         (earmelf_linux.c): Likewise.
3478         (earmelf_linux26.c): Likewise.
3479         * Makefile.in: Regenerate.
3481         * ld.h (ld_config_type): Add unique_orphan_sections.
3482         * lexsup.c (OPTION_UNIQUE): Define.
3483         (ld_options): Add "--unique".
3484         (parse_args): Handle it.
3485         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3486         search for an existing output section if unique_orphan_sections is
3487         set.  Make use of bfd_get_unique_section_name rather than
3488         duplicating code here.
3489         * ld.texinfo: Describe --unique.
3491         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3492         optional arg to split-by-file.
3493         (parse_args): Handle them.
3494         * ld.texinfo: Update description of these options.
3495         * ldwrite.c (clone_section): Pass in the section name.  Replace
3496         local code with bfd_get_unique_section_name.
3497         (split_sections): Tidy code and comments.  Use a list traversal
3498         more appropriate to the list construction.  Handle cooked section
3499         sizes.  Split when split_by_reloc reached rather than exceeded.
3500         Track section size and split when split_by_file reached.  Fix
3501         link_order_tail (even though it's not used).
3502         (ldwrite): Modify condition for calling split_sections to suit
3503         changed split_by_reloc and split_by_file.
3504         * ldmain.c (main): Init config.split_by_reloc and
3505         config.split_by_file to -1.
3506         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3507         Change split_by_file to bfd_size_type.
3509 2000-09-02  Nick Clifton  <nickc@redhat.com>
3511         * configure.in: Increase version number to 2.10.91.
3512         * NEWS: Mention new ability to support removal of duplicate DWARF2
3513         debug information.
3514         * configure: Regenerate.
3515         * aclocal.m4: Regenerate.
3516         * config.in: Regenerate.
3518 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3520         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3521         sections.
3522         * scripttempl/elf32avr.sc: Ditto.
3523         * scripttempl/elfd10v.sc: Ditto.
3524         * scripttempl/elfd30v.sc: Ditto.
3525         * scripttempl/elfi370.sc: Ditto.
3526         * scripttempl/elfm68hc11.sc: Ditto.
3527         * scripttempl/elfm68hc12.sc: Ditto.
3528         * scripttempl/elfi386beos.sc: Ditto.
3529         * scripttempl/v850.sc: Ditto.
3531 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3533         * acinclude.m4: Include libtool and gettext macros from the
3534         top level.
3535         * aclocal.m4, configure: Rebuilt.
3537 2000-08-25  Nick Clifton  <nickc@redhat.com>
3539         * ldlang.c (open_output): When choosing the target for a
3540         particular endianness, do nothing if the target is not
3541         supported.
3543 2000-08-25  H.J. Lu  <hjl@gnu.org>
3545         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3546         check -rpath nor LD_RUN_PATH for cross link.
3547         * ld.texinfo: Document the change.
3549 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3551         * NEWS: Mention support for CRIS.
3553 2000-08-23  H.J. Lu  <hjl@gnu.org>
3555         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3556         the current runpath list from bfd_elf_get_runpath_list ()
3557         before search.
3559 2000-08-22  H.J. Lu  <hjl@gnu.org>
3561         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3562         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3563         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3564         trace_file_tries is non-zero.
3565         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3566         if trace_file_tries is non-zero.
3568         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3569         * NEWS: Mention it.
3571 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3573         * NEWS: Mention i860 support.
3575 2000-08-14  Andreas Schwab  <schwab@suse.de>
3577         * scripttempl/elf.sc: Fix last change to use correct comment
3578         syntax.
3580 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3582         * scripttempl/elf.sc: Add a comment giving the correspondence
3583         between sections, per-datum sections, and linkonce sections.  Make
3584         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3585         .sbss2.
3587 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3589         * emulparams/elf32_i860.sh: New file.
3590         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3591         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3592         (eelf32_i860.c): New rule.
3593         * Makefile.in: Regenerate.
3595 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3597         * emulparams/mipspe.sh (ENTRY): Add definition.
3599 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3601         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3602         in error message.
3604 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3606         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3607         the final size of .bss section.
3608         * scripttempl/elfm68hc12.sc: Likewise.
3610 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3612         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3613         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3614         lastoptind and prevoptind vars, and keep track of last optind.
3615         (gld_${EMULATION_NAME}_list_options): Rename to
3616         gld${EMULATION_NAME}_list_options.
3618 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3620         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3621         (i586-sco-sysv5uw7.1.0).
3623 2000-07-27  H.J. Lu  <hjl@gnu.org>
3625         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3626         (PARSE_AND_LIST_PROLOGUE): New.
3627         (PARSE_AND_LIST_LONGOPTS): Likewise.
3628         (PARSE_AND_LIST_OPTIONS): Likewise.
3629         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3630         (PARSE_AND_LIST_EPILOGUE): Likewise.
3632 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3634         * emultempl/armelf.em: Elide functions common to elf32.em,
3635         ie. most of the file.
3636         (arm_elf_after_open): New.  Do arm specific things then call
3637         gld${EMULATION_NAME}_after_open.
3638         (arm_elf_before_allocation): New.  Call
3639         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3640         (PARSE_AND_LIST_PROLOGUE): Define.
3641         (PARSE_AND_LIST_SHORTOPTS): Define.
3642         (PARSE_AND_LIST_LONGOPTS): Define.
3643         (PARSE_AND_LIST_OPTIONS): Define.
3644         (PARSE_AND_LIST_ARGS_CASES): Define.
3645         (LDEMUL_AFTER_OPEN): Define.
3646         (LDEMUL_BEFORE_ALLOCATION): Define.
3647         (LDEMUL_BEFORE_PARSE): Define.
3648         (LDEMUL_FINISH): Define.
3650         * emultempl/hppaelf.em: Similarly zap most of this file.
3651         (hppaelf_add_stub_section): Prototype.
3652         (hppaelf_layaout_sections_again): Prototype.
3653         (hook_in_stub): Prototype.
3654         (LDEMUL_SET_OUTPUT_ARCH): Define.
3655         (LDEMUL_FINISH): Define.
3656         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3658         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3659         (EXTRA_EM_FILE): New.
3660         * emulparams/armelf_linux.sh: Likewise.
3661         * emulparams/armelf_linux26.sh: Likewise.
3662         * emulparams/hppalinux.sh: Likewise.
3663         * emulparams/hppaelf.sh: Likewise.
3664         (NOP): Define.
3666         * emultempl/elf32.em: Fix formatting.
3667         (EXTRA_EM_FILE): Source it.
3668         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3669         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3670         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3671         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3672         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3673         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3674         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3675         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3676         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3677         allow functions in this file to be overridden.
3678         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3680         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3682         * emultempl/elf32.em: Reorganize file.
3684 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3686         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3687         specific option to fit 64-bit executable in the lower
3688         31-bit address range.  This is done by changing start
3689         address of .interp (the very first section of executable)
3690         and then setting EF_ALPHA_32BIT elf header flag.
3692 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3694         * emultempl/m68kcoff.em: New file.
3695         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3696         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3697         generic.em.
3698         * Makefile.in: Regenerate.
3700 2000-07-20  H.J. Lu  <hjl@gnu.org>
3702         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3703         and "disable-new-dtags" to stop getopt from treating -d/-e as
3704         abbreviations for these options.
3706 2000-07-20  H.J. Lu  <hjl@gnu.org>
3708         * ld.texinfo: Add documentation for --disable-new-dtags and
3709         --enable-new-dtags.
3711         * ldmain.c (main): Initialize link_info.new_dtags to false.
3713         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3714         --disable-new-dtags and --enable-new-dtags.
3715         (gld_${EMULATION_NAME}_list_options): Likewise.
3717 2000-07-05  Kenneth Block  <krblock@computer.org>
3719         * lexsup.c: Add optional style to demangle switch
3720         * ld.texinfo: Document optional style to demangle switch.
3722 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3724         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3725         ecrislinux.o.
3726         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3727         Regenerate dependencies.
3728         * Makefile.in: Rebuild.
3729         * configure.tgt (cris-*-*): New target.
3730         * emulparams/crisaout.sh, emulparams/criself.sh,
3731         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3732         * po/POTFILES.in, po/ld.pot: Regenerate.
3734 2000-07-20  H.J. Lu  <hjl@gnu.org>
3736         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3737         Print out ignored -z options.
3739 2000-07-19  H.J. Lu  <hjl@gnu.org>
3741         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3742         (PARSE_AND_LIST_PROLOGUE): New.
3743         (PARSE_AND_LIST_LONGOPTS): Likewise.
3744         (PARSE_AND_LIST_OPTIONS): Likewise.
3745         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3747         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3749         * lexsup.c (ld_options): Comment out 'z'.
3750         (parse_args): Likewise.
3752         * emultempl/elf32.em: Include "elf/common.h".
3753         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3754         options.
3755         (gld_${EMULATION_NAME}_list_options): Likewise.
3757         * ld.texinfo: Add documentation for the recognized -z options.
3759 2000-07-19  H.J. Lu  <hjl@gnu.org>
3761         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3762         bfd_elf_set_dt_needed_soname ().
3764 2000-07-18  DJ Delorie  <dj@cygnus.com>
3766         * pe-dll.c (pe_dll_id_target): check object target name also
3768 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
3770         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3771         ${INIT_END} if relocating.
3772         (.fini): Likewise ${FINI_START} and ${FINI_END}.
3774 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
3776         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3777         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3778         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3779         errors introduced by the old dynamic lib search order.
3781 2000-07-17  DJ Delorie  <dj@cygnus.com>
3783         * pe-dll.c (process_def_file): auto-export data items also
3784         (pe_process_import_defs): also see if _imp_ form needed
3786 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3788         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3789         for dll import libraries
3791 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
3793         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3794         gcc 2.95.2 and later.
3796 2000-07-11  Kazu Hirata  <kazu@hxi.com>
3798         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3799         message.
3801 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3803         * ldemul.h (struct lang_input_statement_struct): Remove forward
3804         declaration.
3805         (struct search_dirs): Likewise.
3806         * ldfile.h (struct lang_input_statement_struct): Likewise.
3807         Protect file from multiple inclusion.
3808         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3809         declaration from macro to file scope.
3811         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3812         * ldgram.y: Likewise here.
3813         * ldlang.c: And here.
3814         * ldmain.c: And here.
3815         * mpw-elfmips.c: And here.
3816         * mpw-eppcmac.c: And here.
3817         * emultempl/aix.em: And here.
3818         * emultempl/armcoff.em: And here.
3819         * emultempl/armelf.em: And here.
3820         * emultempl/armelf_oabi.em: And here.
3821         * emultempl/beos.em: And here.
3822         * emultempl/elf32.em: And here.
3823         * emultempl/hppaelf.em: And here.
3824         * emultempl/linux.em: And here.
3825         * emultempl/lnk960.em: And here.
3826         * emultempl/pe.em: And here.
3827         * emultempl/sunos.em: And here.
3828         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3829         * mpw-idtmips.c: Ditto.
3830         * emultempl/generic.em: Ditto.
3831         * emultempl/gld960.em: Ditto.
3832         * emultempl/gld960c.em: Ditto.
3833         * emultempl/mipsecoff.em: Ditto.
3834         * emultempl/ticoff.em: Ditto.
3835         * emultempl/vanilla.em: Ditto.
3837         * pe-dll.c: Include ldfile.h
3838         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3840         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3841         arguments to bfd_elf32_size_dynamic_sections call.
3842         (gldelf32ebmip_place_orphan): Add missing arguments to
3843         lang_leave_output_section_statement call.
3845 2000-07-10  H.J. Lu  <hjl@gnu.org>
3847         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3848         DLL_SUPPORT.
3849         (strhash): Likewise.
3850         (compute_dll_image_base): Likewise.
3851         (pe_undef_found_sym): Likewise.
3852         (pe_undef_cdecl_match): Likewise.
3853         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3854         argument "arch" with ATTRIBUTE_UNUSED.
3856 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3858         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3860         From  Ryan Bradetich  <rbradetich@uswest.net>
3861         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3863 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
3865         Changes to create multiple linker stubs, positioned immediately
3866         before the section where they are required.
3867         * emultempl/hppaelf.em: Include elf32-hppa.h.
3868         (stub_sec, file_chain): Delete.
3869         (hppaelf_create_output_section_statements): Don't make a stub
3870         section here.
3871         (hook_stub_info): New struct.
3872         (hook_in_stub): New function.
3873         (hppaelf_add_stub_section): New function.
3874         (hppaelf_finish): Do nothing for relocateable links.  Modify the
3875         call to elf32_hppa_size_stubs.  Move code for updating section
3876         layout from here...
3877         (hppaelf_layaout_sections_again): ..to here, a new function.
3879         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3880         broken list handling.  Pass in a pointer to the list.
3881         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3882         for above changes.
3883         (hppaelf_before_parse): Prototype.
3884         (hppaelf_set_output_arch): Prototype.
3885         (hppaelf_create_output_section_statements): Prototype.
3886         (hppaelf_delete_padding_statements): Prototype.
3887         (hppaelf_finish): Prototype.
3889         Merge from elf32.em
3890         * emultempl/hppaelf.em: Include ctype.h.
3891         (struct orphan_save): New.
3892         (gld${EMULATION_NAME}_place_orphan): New.
3893         (output_rel_find): New.
3894         (hppaelf_get_script): Update from elf32.em.
3895         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3896         Change emulation_name field to "${EMULATION_NAME}".  Add
3897         gld${EMULATION_NAME}_place_orphan.
3899         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
3900         ehppalinux.o, sort it.  Regenerate dependencies.
3901         (ehppalinux.c): Depend on hppaelf.em
3902         * Makefile.in: Regenerate.
3904         * configure.tgt: targ_emul=hppalinux for hppa*linux
3906         * emulparams/hppalinux.sh: New.
3907         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3909 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
3911         * lexsup.c (parse_args): Copy section name.
3913 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
3915         * emultempl/pe.em: institute the following search order for
3916         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3917         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
3918         static lib (libfoo.a) if none of the above are found.
3920 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
3922         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3923         (longopts): New --{enable,disable}-auto-image-base options.
3924         (gld_${EMULATION_NAME}_list_options): Document.
3925         (gld_${EMULATION_NAME}_parse): Handle.
3926         (strhash): New static function.
3927         (compute_dll_image_base): New static function.
3928         (gld_${EMULATION_NAME}_set_symbols): Use.
3930 2000-07-05  DJ Delorie  <dj@redhat.com>
3932         * MAINTAINERS: new
3934 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
3936         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3937         * emulparams/elf32btsmip.sh: New file.
3938         * Makefile.am: Add traditional mips target.
3939         * Makefile.in: Rebuild.
3941 2000-07-01  H.J. Lu  <hjl@gnu.org>
3943         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3944         automake to use YLWRAP.
3945         * Makefile.in: Rebuild.
3947 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
3949         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
3950         (CLEANFILES): Add DEPA.
3951         * Makefile.in: Regenerate.
3953 2000-06-30  Timothy Wall  <twall@ppc>
3955         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3956         the page in the upper octet of the address.
3958 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3960         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3962 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
3964         * NEWS: arm-elf does --gc-sections too.
3966 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
3968         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3969         find one.
3970         * Makefile.in: Regenerate.
3972 2000-06-21  H.J. Lu  <hjl@gnu.org>
3974         * Makefile.am: Rebuild dependency.
3975         * Makefile.in: Rebuild.
3977 2000-06-20  H.J. Lu  <hjl@gnu.org>
3979         * Makefile.am: Rebuild dependency.
3980         * Makefile.in: Rebuild.
3982 2000-06-20  Timothy Wall  <twall@cygnus.com>
3984         * scripttempl/tic54xcoff.sc: New.
3985         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3986         * gen-doc.texi: Add flag for TI COFF.
3987         * ld.texinfo: Add documentation for TI COFF handling switches.
3988         * emultempl/ticoff.em: New. TI COFF handling.
3989         * configure.tgt: Add tic54x target.
3990         * Makefile.am: Add tic54x target.
3991         * Makefile.in: Ditto.
3993 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
3995         * ldmain.c (set_scripts_dir): Correct pointer comparison when
3996         checking for backslashes.
3998 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4000         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4002 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4004         * NEWS: Update list of targets supporting --gc-sections.
4006         * scripttempl/elf.sc: KEEP .eh_frame contents.
4007         * scripttempl/elfd30v.sc: Same here.
4009 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4011         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4012         and m68hc11 (elf).
4013         * Makefile.in: Rebuild.
4014         * configure.tgt: Recognize m68hc12 and m68hc11.
4015         * scripttempl/elfm68hc12.sc: New file.
4016         * emulparams/m68hc12elfb: New emulation.
4017         * emulparams/m68hc12elf: New emulation.
4018         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4019         (includes a memory.x script to define the ROM and RAM banks).
4020         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4021         New configuration files for support of Motorola 68hc11
4023 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4025         * ldmain.c (main): Only change SEC_READONLY for final link.
4027 2000-06-13  H.J. Lu  <hjl@gnu.org>
4029         * configure: Regenerate.
4031 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4033         * configure.in (VERSION): Update to show this is the CVS mainline.
4035 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4037         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4038         input objects to be ECOFF.
4039         (check_sections): einfo takes %B, not %P, to print a BFD name.
4041 2000-06-05  Michael Matz <matz@ifh.de>
4043         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4044         version scripts.
4046         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4048 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4050         * emulparams/avr1200.sh (STACK): Define as 0.
4051         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4052         * emulparams/avr4433.sh (STACK): Likewise.
4053         * emulparams/avr44x4.sh (STACK): Likewise.
4054         * emulparams/avr85xx.sh (STACK): Likewise.
4055         * emulparams/avrmega103.sh (STACK): Likewise.
4056         * emulparams/avrmega161.sh (STACK): Likewise.
4057         * emulparams/avrmega603.sh (STACK): Likewise.
4058         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4059         (__stack): Define from ${STACK} for main().
4061 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4063         * Makefile.am: Update dependencies with "make dep-am"
4064         * Makefile.in: Regenerate.
4066 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4068         * ldmain.c: Include filenames.h.
4069         (set_scripts_dir): Support backslashes in program name.
4071 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4073         * ldmain.c (main): When deciding if ".text" section should be
4074         read-only, don't forget to reset SEC_READONLY because it
4075         could be already set.
4077 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4079         * ld.1: Add documentation for new command line option:
4080                 --section-start <sectionname>=<sectionorg>
4081         This is a generic version of -Ttext etc. which accepts
4082         any section name as a parameter instead of just text/data/
4083         bss.
4084         * ld.texinfo: More docs.
4085         * NEWS: More docs.
4086         * lexsup.c: (parse_args): Recognize new command line option.
4087         (ld_options): Add new option.
4089 2000-05-18  H.J. Lu  <hjl@gnu.org>
4091         * lexsup.c (parse_args): `i' == `r', not `q'.
4093 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4095         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4097 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4098               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4100         Add support for '-q' == '--emit-relocs' switch.
4101         * ldmain.c (main): Default to false.
4102         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4103         * NEWS: Describe the emitrelocations switch.
4104         * ld.texinfo: Describe the emitrelocations switch.
4106 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4108         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4109         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4110         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4111         link options.
4113 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4115         * lexsup.c (parse_args): Update the year in the copyright notice.
4117 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4119         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4120         Replace defines with those from intl/libgettext.h to quieten gcc
4121         warnings.
4123 2000-05-10  H.J. Lu  <hjl@gnu.org>
4125         * ldlang.c (open_input_bfds): Don't load the same file within
4126         a group again if the whole archive has been loaded already.
4128 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4130         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4131         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4132         strtoul.
4134 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4136         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4138         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4139         host "ia64-*-linux-gnu*".
4141 2000-04-29  Andreas Jaeger  <aj@suse.de>
4143         * ld.h: Correctly check GCC version.
4145 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4147         * Makefile.am: Add PA64 support.  Add missing dependencies for
4148         PA32 elf support.
4149         * Makefile.in: Rebuilt.
4150         * configure.tgt: Add PA64 support (currently disabled).
4152 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4154         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4155         (output_rel_find): New function.
4156         (hold_section, hold_use): Delete.
4157         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4158         hold_interp): Make local to place_orphan.
4159         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4160         rather than place_section to find possible previous use of orphan.
4161         Similarly find the place-holder output sections.  Use returned
4162         value from lang_enter_output_section_statement rather than calling
4163         lang_output_section_statement_lookup.
4164         * emultempl/armelf.em: Same here.
4165         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4167         * ldlang.c (lang_enter_output_section_statement): Return output
4168         section statement.
4169         * ldlang.h (lang_enter_output_section_statement): Change
4170         declaration too.
4172         * ldlang.h (lang_output_section_statement): Export it.
4173         * ldlang.c (lang_output_section_statement): Ditto.
4175 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4177         * ld.texinfo (Output Section Data): Add note that section data
4178         commands cannot appear outside of section directives.
4180 2000-04-2  Matthew Green  <mrg@cygnus.com>
4182         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4184 2000-04-21  Richard Henderson  <rth@cygnus.com>
4185             David Mosberger  <davidm@hpl.hp.com>
4187         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4188         (eelf64_ia64.c): New rule.
4189         * Makefile.in: Rebuild.
4190         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4191         * emulparams/elf64_ia64.sh: New file.
4193 2000-04-21  Richard Henderson  <rth@cygnus.com>
4195         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4197 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4199         * dep-in.sed: Match space at start of file name, not at end.
4201 2000-04-18  H.J. Lu  <hjl@gnu.org>
4203         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4204         lang_leave_output_section_statement () after calling
4205         lang_enter_output_section_statement ().
4206         * emultempl/armelf.em: Likewise.
4208 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4210         * emultempl/elf32.em (struct orphan_save): Add section field.
4211         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4212         better order, and place first orphan section as we did before the
4213         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4214         Don't call make_bfd_section here, let wild_doit do the job for us.
4215         Don't build a statement list when we'll only throw it away.
4216         * emultempl/armelf.em: Ditto.
4217         * emultempl/pe.em: Similarly.
4219 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4221         * scripttempl/elfppc.sc: Remove.
4222         * emulparams/elf32ppc.sh: Use elf.sc.
4223         * emulparams/elf32lppc.sh: Use elf.sc.
4224         * emulparams/elf32ppclinux.sh: Use elf.sc.
4225         * emulparams/elf32ppcsim.sh: New file.
4226         * emulparams/elf32lppcsim.sh: New file.
4227         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4228         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4229         * Makefile.in: Regenerate.
4230         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4232 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4234         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4235         ~SEC_ALLOC sections too.  Init start address of debug sections.
4236         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4237         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4238         Also set all relocateable section start addresses.
4240 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4242         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4243         Add new BSS_PLT variable for when .plt need not be contained in
4244         the file.  Move _etext so that it is also after .fini, and provide
4245         both etext and _etext with a leading underscore.  Mark the start
4246         and end of .sbss.
4248 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4250         * emultempl/elf32.em (struct orphan_save): New.
4251         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4252         hold_interp): Make them struct orphan_save.
4253         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4254         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4255         the end of the relevant section list.  Also add associated section
4256         statements to the end of any previous orphan statements.
4257         * emultempl/armelf.em: Similarly.
4258         * emultempl/pe.em: Similarly.
4260 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4262         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4264 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4266         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4267         --enable-build-warnings option.
4268         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4269         * Makefile.in, configure: Re-generate.
4271 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4273         * po/ld.pot: Regenerate.
4275         * lexsup.c (help): Restore translated part of bug string.
4277         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4278         (DEP): Quote when passing vars to sub-make.  Add warning message
4279         to end.
4280         (DEP1): Rewrite for "gcc -MM".
4281         (CLEANFILES): Add DEP2.
4282         Update dependencies.
4283         * Makefile.in: Regenerate.
4285 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4287         * ld.h: #include "bin-bugs.h"
4288         * lexsup.c (help): Use REPORT_BUGS_TO.
4290 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4292         * configure.tgt (avr-*-*): New target support.
4293         * Makefile.am: Likewise.
4294         * scripttempl/elf32avr.sc: New script file.
4295         * emulparams/avr1200.sh: New file.
4296         * emulparams/avr23xx.sh: New file.
4297         * emulparams/avr4433.sh New file.
4298         * emulparams/avr44x4.sh New file.
4299         * emulparams/avr85xx.sh New file.
4300         * emulparams/avrmega103.sh New file.
4301         * emulparams/avrmega161.sh New file.
4302         * emulparams/avrmega603.sh New file.
4303         * Makefile.in: Regenerate.
4305 2000-03-09  Andreas Jaeger  <aj@suse.de>
4307         * Makefile.am (check-DEJAGNU): Also unset LANG.
4308         * Makefile.in: Rebuild.
4310 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4312         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4313         archive.
4315 2000-03-02  H.J. Lu  <hjl@gnu.org>
4317         * emulparams/elf32mcore.sh: Include "getopt.h".
4319 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4321         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4323 2000-03-01  H.J. Lu  <hjl@gnu.org>
4325         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4326         * emulparams/shpe.sh: Likewise.
4328 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4330         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4331         to unused parameters.
4333         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4334         functions only used by DLL code.
4335         (_place_orphan): Initialise 'dollar'.
4337 2000-03-01  H.J. Lu  <hjl@gnu.org>
4339         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4340         indicate if the undefined symbol is a fatal error or not.
4341         Don't delete the output file if "fatal" is false.
4343 2000-02-29  H.J. Lu  <hjl@gnu.org>
4345         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4346         Set LC_COLLATE and LC_ALL to null and export them. It is for
4347         sort which expects the C locale.
4348         Add $(LIBS) to all $(HOSTING_LIBS).
4349         * Makefile.in: Rebuild.
4351 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4353         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4354         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4355         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4356         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4357         find_potential_libraries.
4359 2000-02-28  Jim Blandy  <jimb@redhat.com>
4361         * ldgram.y (exclude_name_list): Don't require a comma to separate
4362         list entries; the lexer considers commas to be valid part of a
4363         filename, so in something like `foo, bar' the comma is considered
4364         part of the first filename, `foo,'.
4365         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4367 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4369         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4370         host "i[3456]86-*-freebsdelf*".
4372 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4374         * scripttempl/i386go32.sc: Move misplaced semicolons.
4376 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4378         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4379         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4380         (eelf64hppa.c, ehppaelf.c): Remove targets.
4381         * Makefile.in: Rebuild.
4383 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4385         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4386         GNU/Linux/sparc, but keep the default as 32.
4388         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4389         it default if sparcv9 or sparc64.
4391 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4393         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4394         * Makefile.in: Regenerate.
4395         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4397         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4398         find_potential_libraries.
4399         * ldemul.c (ldemul_find_potential_libraries): New function.
4401         * ldfile.c (ldfile_open_file_search): Allow function to be
4402         exported.
4403         (ldfile_open_file): Call ldemul_find_potential_libraries.
4404         * ldfile.h: Add prototype for ldfile_open_file_search.
4406         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4408         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4409         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4411         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4412         (gld_X_find_potential_libraries): New function.  Search for
4413         libraries called "*.lib".
4415         * scripttempl/pe.sc: Add .pdata section.
4417 2000-02-23  Richard Henderson  <rth@cygnus.com>
4419         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4420         Add and use memory regions.
4422 2000-02-23  Linas Vepstas (linas@linas.org)
4424         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4426         * Makefile.am: Add support for Linux/IBM 370.
4427         * configure.tgt: Likewise.
4429         * Makefile.in: Regenerate.
4431 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4433         * ldlang.c (print_input_section, print_data_statement,
4434         print_reloc_statement, print_padding_statement, insert_pad,
4435         size_input_section, lang_check_section_addresses,
4436         lang_size_sections, lang_do_assignments, lang_set_startof,
4437         lang_one_common): Change `opb' to unsigned.
4438         (lang_do_assignments): Also change `size' to unsigned.
4440 2000-02-16  Richard Henderson  <rth@cygnus.com>
4442         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4444 2000-02-16  Timothy Wall  <twall@cygnus.com>
4446         * mri.c (mri_draw_tree): Add default LMA region argument to call
4447         to lang_leave_output_section_statement.
4448         * ldlang.h: Update prototypes with LMA region arguments.
4449         * ldlang.c (lang_size_sections): Encapsulate region bounds
4450         checking in os_check_region call.
4451         (os_check_region): New function.
4452         (lang_output_section_statement_lookup): Initialize lma_region.
4453         (lang_leave_output_section_statement): Add LMA region argument.
4454         (lang_leave_overlay): Ditto.
4455         * ldgram.y: Handle LMA region syntax.
4456         * ld.texinfo (Output Section Description): Describe LMA region usage.
4457         * emultempl/armelf.em (gld$place_orphan): Add default value for
4458         lma region in call to lang_leave_output_section_statement.
4459         * emultempl/elf32.em (gld$place_orphan): Add default value for
4460         lma region in call to lang_leave_output_section_statement.
4461         * emultempl/pe.em (gld$place_orphan): Add default value for
4462         lma region in call to lang_leave_output_section_statement.
4465 2000-02-04  Timothy Wall  <twall@redhat.com>
4467         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4468         octets when calculating section end addresses.
4470 2000-02-04  Timothy Wall  <twall@redhat.com>
4472         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4474 2000-02-03  Timothy Wall <twall@redhat.com>
4476         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4477         octet count.
4478         * ldlang.c (print_input_section, print_data_statement,
4479         print_reloc_statement, print_padding_statement): Print target
4480         address values and section sizes as bytes, not octets.
4481         (insert_pad) Calculate padding size in octets, and adjust "dot"
4482         by bytes.
4483         (size_input_section) Always adjust "dot" by bytes, not octets.
4484         (lang_check_section_addresses, lang_do_assignments) Adjust
4485         "dot" by bytes, not octets.  Use the larger of the directive size
4486         or octets_per_byte for the number of octets actually allocated in
4487         the output section.
4488         (lang_set_startof) Make sure STARTOF returns a target address.
4489         (lang_one_common) Record size changes in octets.
4490         (lang_abs_symbol_at_end_of) Section end symbol's value is
4491         recorded in target bytes.
4492         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4493         to be clear about behavior when an octet is smaller than one byte.
4495 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4497         * ldcref.c (output_cref): Don't pass message strings to printf
4498         as format arg.
4499         Update copyright.
4501         * ldmisc.c (vfinfo): Same here.
4502         Update copyright.
4504 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4506         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4507         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4508         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4509         Add missing NULL initialisers, and comments.
4511         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4513 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4515         * ldlang.c (lang_size_sections): Fix typo in comment.
4517 2000-01-18  H.J. Lu  <hjl@gnu.org>
4519         * ldlang.c (lang_size_sections): Also update the current
4520         address of a region if the SEC_NEVER_LOAD bit is not set.
4522 2000-01-10  Philip Blundell  <pb@futuretv.com>
4524         * configure.tgt (arm*-*-conix*): New target.
4526 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4528         * ld.texinfo (Options): Remind users to preceed linker command
4529         line switches with -Wl, (or whatever is appropriate) if it is
4530         being invoked by a comnpiler driver program.
4531         Fix description of the behaviour of the -n command line switch.
4533 2000-01-05  Catherine Moore  <clm@cygnus.com>
4535         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4536         (name_list): New.
4537         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4538         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4539         (exclude_name_list): New.
4540         ldlang.c (walk_wild_section): Support list of excluded files.
4541         (print_wild_statement): Likewise.
4542         (lang_add_wild): Likewise.
4543         * ldlang.h (lang_wild_statement_type): Likewise.
4544         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4546 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4548         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4549         (process_def_file): Use.
4550         (pe_dll_compat_implib): New variable.
4551         (make_one): Use.
4553         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4554         pe_dll_compat_implib.
4556         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4557         compat-implib options.
4558         (gld_${EMULATION_NAME}_list_options): List new options.
4559         (gld_${EMULATION_NAME}_parse_args): Handle.
4561         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4562         dll.
4564         * deffilep.y (opt_name): Allow "." in name.
4566 For older changes see ChangeLog-9899
4568 Local Variables:
4569 mode: change-log
4570 left-margin: 8
4571 fill-column: 74
4572 version-control: never
4573 End: