* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
[binutils.git] / ld / ChangeLog
blob4af4d6d55f08f6996a1431151178e09c61193590
1 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
3         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
4         function when LDEMUL_FINISH isn't set to the same name.  Don't
5         call ${LDEMUL_FINISH}.
6         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
7         * emultempl/armelf.em (arm_elf_finish): Call
8         gld${EMULATION_NAME}_finish.
9         * emultempl/hppaelf.em (hppaelf_finish): Rename to
10         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
11         hppaelf_layout_sections_again if necessary.
12         (need_laying_out): New var.
13         (hppaelf_layaout_sections_again): Rename to
14         hppaelf_layout_sections_again.  Clear need_laying_out.
15         (PARSE_AND_LIST_OPTIONS): Format text.
17 2001-11-14  H.J. Lu  <hjl@gnu.org>
19         * emultempl/armelf.em (arm_elf_finish): Renamed from
20         gld${EMULATION_NAME}_finish.
21         (LDEMUL_FINISH): Set to arm_elf_finish.
23 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
25         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
26         (struct ld_emulation_xfer_struct): Use it.
28 Tue Nov 13 11:27:14 2001  Ross Alexander <ross.alexander@uk.neceur.com>
30         * emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
31         additional symbols referenced by newer crt0.o files from HP.
33 2001-11-12  Anthony Green  <green@redhat.com>
35         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
37 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
39         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
40         * Makefile.in: Regenerate.
42 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
44         * ld.texinfo: Use @command for commands, @option for options.
45         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
46         the page man title.
47         * Makefile.in: Rebuild.
49 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
51         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
52         Add support for targets.
53         
54 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
56         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
57         * configure: Regernate.
58         * po/fr.po: New file.
59         * po/sv.po: New file.
61 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
63         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
64         as little endian default and to support big endian.
65         
66 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
68         * ld.texinfo (Options): Document new option, -nostdlib.
69         * lexsup.c (OPTION_NOSTDLIB): New definition.
70         (ld_options): Add entry for "nostdlib".
71         (parse_args): Handle OPTIONS_NOSTDLIB.
72         * ldfile.c (ldfile_add_library_path): Don't add directories
73         to the search path if they weren't specified on the command line
74         and -nostdlib was specified.
75         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
77 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
79         * lexsup.c (parse_args): Prevent infinite parsing loop when
80         "-rpath.a" is specified on the command line.
81         Replace calls to fprintf with calls to einfo.
83 2001-10-31  John Marshall  <jmarshall@acm.org>
85         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
86         appear only once across all the linker scripts involved in a link
87         invocation no longer applies.  Make the documentation reflect
88         that.
90 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
92         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
93         targets.
94         (sh-*-linux*): Added targ_extra_libpath.
96 2001-10-31  David Heine  <dlheine@tensilica.com>
98         * ldlang.c (lang_size_sections): Keep a valid output_offset field
99         for padding statements.
101 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
103         * configure.tgt (mmix-*-*): New target.
104         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
105         Add dependencies to match.
106         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
107         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
108         scripttempl/mmo.sc: New files.
109         * gen-doc.texi: @set MMIX.
110         * ld.texinfo: Ditto.
111         [MMIX] Add MMIX node.
112         * Makefile.in: Regenerate.
114 2001-10-29  Kazu Hirata  <kazu@hxi.com>
116         * ldlang.c: Fix a comment typo.
118 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
120         * configure.host: Move alpha*-*-linux-gnu* entry to generic
121         entries, and match *-*-linux*.
123 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
125         * ldgram.y (mri_script_command): Surround processing of INCLUDE
126         with ldlex_script, ldlex_popstate.
127         (ifile_p1): Likewise.
128         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
129         correct slot.
130         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
131         to 1.  Don't BEGIN(SCRIPT).
132         (lex_redirect): Similarly.
133         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
135 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
137         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
138         __EH_FRAME_END__ and accept eh frames into data section.
139         Add ctor and dtor sections.
141 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
143         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
144         (auto-export): Fix indentation.
146 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
148         * pe-dll.c (autofilter_objectlist):  Add startup objects
149         for profiling.
150         (auto-export): Constify char * p.
151         Extract file basename and use strcmp rather than ststr
152         for object lookup.
154 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
156         * ldmain.c (get_emulation): Improve comment about the handling
157         of -mipsN options.
159 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
161         * po/POTFILES.in: Regenerate.
163 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
165         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
166         -z nocopyreloc and -z nocombreloc usage strings.
168 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
170         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
171         in usage.
173 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
175         * scripttempl/armaout.sc: Place .bss section after end of aligned
176         data section to match behaviour of aout code in constructrion of
177         header.
179 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
181         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
182         startup files for mingw32 dlls to list.
184 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
186         * emultempl/elf32.em: Fix shell 'if' usage for portability.
188 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
190         * configure.tgt (targ): Add arm9e-*-elf.
192 2001-10-05  H.J. Lu  <hjl@gnu.org>
194         * genscripts.sh: Fix a typo in the last change.
196 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
198         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
199         -z nocombreloc in usage.
201 2001-10-03  Jim Blandy  <jimb@redhat.com>
203         * genscripts.sh: Include a comment at the top of each generated
204         script, explaining its purpose.
206 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
208         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
209         * NEWS: Mention -z nocopyreloc.
210         * ld.texinfo (Options): Describe nocopyreloc.
212 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
214         * configure: Regenerate.
216 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
218         * ldver.h (ld_program_version): Remove declaration.
219         * lexsup.c (parse_args): Move printing of copyright message..
220         * ldver.c (ldversion): .. to here.
221         Use BFD_VERSION_STRING in place of BFD_VERSION.
222         (ld_program_version): Remove.
223         * Makefile.am (Makefile): Depend on bfd/configure.in.
224         Run "make dep-am".
225         * Makefile.in: Regenerate.
227 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
229         * Makefile.am: Update dependencies with "make dep-am".
230         * Makefile.in: Regenerate.
232 2001-09-29  John Reiser  <jreiser@BitWagon.com>
234         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
235         * lexsup.c: Add --no-define-common commandline option.
236         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
237         * ldlex.l: Likewise.
238         * ld.h: Add command_line.inhibit_common_definition.
239         * ldmain.c (main): Initialize.
240         * ld.texinfo: Document.
242 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
244         * ldmisc.c (USE_STDARG): Remove.
245         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
246         (einfo): Likewise.
247         (minfo): Likewise.
248         (lfinfo): Likewise.
250         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
251         declarations.  Update copyright.
253 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
255         * pe-dll.c: Remove obsoleted declaration of
256         pe_get_data_import_dll_name.
257         (pe_create_import_fixup): Fix thinko.
259         * ld.texinfo(enable-auto-import): Clarify the explanation.
261 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
263         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
264         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
265         DLL_SUPPORT controlled code.
267 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
269         * emultempl/pe.em(pe_data_import_dll): Make static.
270         (pe_get_data_import_dll_name): New accessor function.
271         * pe-dll.c(pe_create_import_fixup): call
272         pe_get_data_import_dll_name() from pe.em, instead of
273         directly accessing pe_data_import_dll variable from pe.em.
275 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
277         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
278         (def_file_add_directive): Use ISSPACE instead of isspace.
279         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
280         isdigit/isxdigit/isalpha/isalnum.
281         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
282         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
283         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
284         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
285         isalnum.
286         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
287         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
288         isupper/tolower.
289         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
290         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
291         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
292         (ctor_prio): Use ISDIGIT instead of isdigit.
293         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
294         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
295         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
296         isupper/tolower.
297         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
298         (stricpy): Use TOLOWER instead of isupper/tolower.
299         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
300         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
301         (lex_warn_invalid): Use ISPRINT instead of isprint.
302         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
303         (main): For gettext, also set the LC_CTYPE locate facet.
304         (add_keepsyms_file): Use ISSPACE instead of isspace.
305         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
306         (is_num, parse_args): Use ISDIGIT instead of isdigit.
307         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
308         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
309         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
310         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
311         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
312         (quoteput): Use ISSPACE instead of isspace.
313         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
314         instead of isalnum.
316 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
318         * deffilep.y (def_stash_module): Constify "name" param.
320         * pe-dll.c: Replace CONST with const throughout.
321         (quick_symbol): Constify "n1", "n2", "n3" params.
322         (make_singleton_name_thunk): Constify "import" param.  Make
323         "buffer_len" a size_t.
324         (make_import_fixup_entry): Constify "name", "fixup_name",
325         "dll_symname" params.
326         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
327         (pe_get32): Likewise.
328         (pe_implied_import_dll): Likewise.
330         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
331         (sort_by_section_name): Likewise.
333         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
334         (make_import_fixup): Cast printf arg, rel->address to long rather
335         than int.
336         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
338 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
340         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
341         defines BufferSize.  Increase buffer size by one.
343 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
345         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
347 2001-09-14  Kevin Lo <kevlo@openbsd.org>
349         * configure.tgt: Add arm-openbsd target.
351 2001-09-12  H.J. Lu  <hjl@gnu.org>
353         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
354         eelf64lppc.o to ...
355         (ALL_64_EMULATIONS): Here.
356         * Makefile.in: Regenerated.
358 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
360         * emultempl/pe.em(make_import_fixup): change signature to
361         take asection as well as arelec; we need this for proper
362         error reporting.  Only call pe_create_import_fixup() if
363         there is no attempt to add a constant addend to the reloc;
364         otherwise, report error condition.
365         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
366         since final argument is a pointer to make_import_fixup().
367         Change call to cb() to match make_import_fixup() signature.
368         (make_import_fixup_mark): make buffer_len unsigned.
369         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
371 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
373         * ld.texinfo: add verbose documentation for auto-import
374         direct-addressing workaround, to compliment the terse
375         error message.
377 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
379         * scripttempl/v850.sc: Add gcc_except_table sections.
381 Fri Sep  7 11:34:24 2001  Jeffrey A Law  (law@cygnus.com)
383         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
384         * emulparams/h8300self.sh: Similarly.
386 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
388         * ld.texinfo (Options, --stack): Correct default value for stack
389         reserve.
391 2001-09-05  Tom Rix <trix@redhat.com>
393         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
395 2001-09-03  Andreas Jaeger  <aj@suse.de>
397         * emultempl/beos.em: Declare prototypes for comparions functions,
398         adjust definitions.
400 2001-09-02  Andreas Jaeger  <aj@suse.de>
402         * emultempl/aix.em: Add missing prototype.
403         * emultempl/lnk960.em: Likewise.
404         * emultempl/vanilla.em: Likewise.
405         * emultempl/armcoff.em: Likewise.
406         * emultempl/armelf_oabi.em: Likewise.
407         * emultempl/beos.em: Likewise.
408         * emultempl/gld960c.em: Likewise.
409         * emultempl/gld960.em: Likewise.
411         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
412         for prototype declaration.
414 2001-08-31  Eric Christopher  <echristo@redhat.com>
415             Jason Eckhardt  <jle@redhat.com>
417         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
419 2001-08-31  Andreas Jaeger  <aj@suse.de>
421         * emultempl/pe.em: Add missing prototypes.
422         (gld_${EMULATION_NAME}_after_open): Remove extra args to
423         pe_find_data_imports.
424         (pr_sym): Add unused attribute.
426 2001-08-29  Joel Sherrill <joel@OARcorp.com>
428         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
429         default from coff to elf.
431 2001-08-29  Jeff Law <law@redhat.com>
433         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
434         ARCH specification.
435         * emulparams/h8300self.sh: Similarly.
437 Wed Aug 28 13:37:20 2001  J"orn Rennecke <amylaar@redhat.com>
439         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
440         eh8300self.o .
441         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
442         * configure.tgt (h8300-*-elf*): New case.
443         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
444         * emulparams/h8300self.sh: New file.
445         * Makefile.in: Regenerated.
447 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
449         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
450         with macro name.
452 2001-08-27  Linus Nordberg  <linus@swox.com>
453             Alan Modra  <amodra@bigpond.net.au>
455         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
456         (eelf64ppc.c, eelf64lppc.c): Add make targets.
457         Run "make dep-am"
458         * Makefile.in: Regenerate.
459         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
460         entries to correct alphabetical position.
461         * emulparams/elf64ppc.sh: New.
462         * emulparams/elf64lppc.sh: New.
464 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
466         * ldmain.c (main): Declare BSIZE as static.
468 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
470         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
471         into .rel.dyn resp. .rela.dyn if combreloc.
472         (get_script): If .x linker script is equal to .xn, only put it
473         once into the binary.
474         Add .xc and .xsc scripts.
475         (parse_args): Handle -z combreloc and -z nocombreloc.
476         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
477         For .xc and .xsc scripts put all .rel* or .rela* input sections
478         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
479         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
480         is elf.
481         Strip trailing whitespace from script.
482         Generate .xc and .xsc scripts if requested.
483         * ldmain.c (main): Initialize link_info.combreloc and
484         link_info.spare_dynamic_tags.
485         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
486         (ld_options): Add --spare-dynamic-tags option.
487         (parse_args): Likewise.
488         * ld.texinfo: Document -z combreloc and -z nocombreloc.
489         * ldint.texinfo: Document .xc and .xsc linker scripts.
490         * NEWS: Add notes about -z combreloc and SHF_MERGE.
492 2001-08-22  H.J. Lu  <hjl@gnu.org>
494         * emulparams/elf32fr30.sh: Add a newline.
496 2001-08-21  Andreas Jaeger  <aj@suse.de>
498         * deffilep.y: Add missing prototypes.
499         * pe-dll.c: Likewise.
501 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
503         * ldlang.c (insert_pad): Fix typos in last patch.
505         * ldlang.c: When traversing lang_statement_union_type lists,
506         consistently use "header.next" rather than "next".
507         * mpw-eppcmac.c: Likewise.
508         * emultempl/beos.em: Likewise.
509         * emultempl/hppaelf.em: Likewise.
510         * emultempl/pe.em: Likewise.
511         * ldlang.h (union lang_statement_union): Remove "next" field.
513         * ldlang.c (insert_pad): Use offsetof macro.
514         (lang_size_sections): Always neuter padding statements.
515         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
517         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
518         passed to lang_size_sections.
519         (pe_exe_fill_sections): Likewise.
520         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
521         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
523 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
525         * emultempl/aix.em: Formatting fixes.
527 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
529         * ldlang.c (insert_pad): Make use of an existing pad statement if
530         available.  Move code calculating alignment, adjusting section
531         alignment power, and adjusting dot to ..
532         (size_input_section): .. here.  Remove unused relax param.
533         (lang_size_sections): Change boolean `relax' param to boolean *.
534         Adjust call to size_input_section.  Make use of insert_pad to
535         place pad after the assignment statement.  If relaxing, zap
536         padding statements.
537         (reset_memory_regions): Reset output_bfd section sizes too.
538         (relax_again): Move to..
539         (lang_process): ..here.  Adjust call to lang_size_sections, and
540         remove duplicated code.
541         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
543 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
545         * ld.texinfo: Document that fill values now use the four least
546         significant bytes.
547         * emulparams/elf32fr30.sh (NOP): Update.
548         * emulparams/elf32mcore.sh: Likewise.
549         * emulparams/elf64_s390.sh: Likewise.
550         * emulparams/elf_i386.sh: Likewise.
551         * emulparams/elf_i386_be.sh: Likewise.
552         * emulparams/elf_i386_chaos.sh: Likewise.
553         * emulparams/elf_i386_ldso.sh: Likewise.
554         * emulparams/elf_s390.sh: Likewise.
555         * emulparams/elf_x86_64.sh: Likewise.
556         * emulparams/i386moss.sh: Likewise.
557         * emulparams/i386nw.sh: Likewise.
558         * emulparams/m68kelf.sh: Likewise.
559         * scripttempl/elf.sc: Update NOP comment.
560         * scripttempl/elfi370.sc: Likewise.
561         * scripttempl/elfm68hc11.sc: Likewise.
562         * scripttempl/elfm68hc12.sc: Likewise.
563         * scripttempl/nw.sc: Likewise.
565 2001-08-15  Tom Rix <trix@redhat.com>
567         * ldgram.y (saved_script_handle): Initialize to NULL.
568         * ldmain.c (main): Change check on saved_script_handle.
570 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
572         * emultempl/elf32.em: Formatting fixes.
573         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
574         looking at sec->owner.
575         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
576         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
577         unused code, and reorganize orphan section placement code.
579         * ldlang.c (wild_doit): Rename to lang_add_section.
580         * ldlang.h: Here too.
581         * mpw-elfmips.c: And here.
582         * emultempl/beos.em: And here.
583         * emultempl/elf32.em: And here.
584         * emultempl/hppaelf.em: And here.
585         * emultempl/pe.em: And here.
587 2001-08-13  Richard Henderson  <rth@redhat.com>
589         * emultempl/needrelax.em: New file.
590         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
591         * Makefile.am (eelf64_ia64.c): Depend on it.
592         * Makefile.in: Rebuild.
594 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
596         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
597         output_section is set non-NULL.
599         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
600         `true' for SEC_EXCLUDE sections so that the generic code doesn't
601         needlessly create an output_section_statement.  Treat a correctly
602         named output_section_statement with NULL bfd_section as compatible.
604 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
606         * emultempl/generic.em: Support EXTRA_EM_FILE.
607         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
608         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
609         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
610         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
611         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
612         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
613         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
614         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
615         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
616         LDEMUL_FIND_POTENTIAL_LIBRARIES.
618 2001-08-12  Richard Henderson  <rth@redhat.com>
620         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
621         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
622         scripttempl/v850.sc: Keep .jcr data.
624 2001-08-12  H.J. Lu  <hjl@gnu.org>
625             Andrew Haley  <aph@cambridge.redhat.com>
626             Nick Clifton  <nickc@redhat.com>
628         * ldgram.y (had_script): Change name to saved_script_handle.
629         Change type to file handle.
630         * ld.h (had_script): Rename and retype.
631         * ldfile.c (ldfile_open_command_file): Save the file handle
632         used in saved_script_handle.
633         * lexsup.c (parse_args): Do not allow -c option to alter
634         saved_script_handle.
635         * ldmain.c (main): Print out the linker script used if
636         --verbose is given.  Check saved_script_handle to obtain the
637         external linker script used, or if NULL, dump the builtin
638         script.
639         * ld.texinfo: Document that --verbose now dumps the linker
640         script used, regardless of whether it was an internal or an
641         external script.
643 2001-08-10  Andreas Jaeger  <aj@suse.de>
645         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
646         to build warnings.
647         * configure: Regenerate.
649 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
651         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
653         * scripttempl/elf.sc: Move non-text .dynamic section before
654         .plt/.got/.sdata* group.
655         (OTHER_GOT_SECTIONS): Move to immediately after .got.
656         (OTHER_SDATA_SECTIONS): Add.
657         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
658         OTHER_GOT_SECTIONS.
659         * emulparams/crislinux.sh: Likewise.
660         * emulparams/elf32b4300.sh: Likewise.
661         * emulparams/elf32bmip.sh: Likewise.
662         * emulparams/elf32bmipn32.sh: Likewise.
663         * emulparams/elf32bsmip.sh: Likewise.
664         * emulparams/elf32btsmip.sh: Likewise.
665         * emulparams/elf32ebmip.sh: Likewise.
666         * emulparams/elf32elmip.sh: Likewise.
667         * emulparams/elf32l4300.sh: Likewise.
668         * emulparams/elf32lmip.sh: Likewise.
669         * emulparams/elf32lsmip.sh: Likewise.
670         * emulparams/elf32ltsmip.sh: Likewise.
671         * emulparams/elf64bmip.sh: Likewise.
672         * emulparams/elf64btsmip.sh: Likewise.
673         * emulparams/elf64ltsmip.sh: Likewise.
675 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
677         * genscripts.sh: Source the emulparams script before each output
678         script is generated so that variables like `RELOCATING' may affect
679         variables defined in the emulparams script.
681 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
683         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
684         order.
686         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
687         ie. iterate over wild_statement.section_list.
688         (gld${EMULATION_NAME}_place_orphan): Likewise.
690 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
692         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
693         .fini[0-4] sections used by _exit
694         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
695         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
696         * scripttempl/elfm68hc11.sc: Likewise.
698 2001-08-03  H.J. Lu  <hjl@gnu.org>
700         * emultempl/beos.em (init): Add the missing initialization.
702 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
704         * ld.texinfo (Input Section Basics): Clarify ordering of output
705         sections.
706         * ldlang.c (callback_t): Add wildcard_list param.
707         (walk_wild_section): Remove "section" param.  Rewrite for
708         lang_wild_statement_type change.  Remove unique_section_p test.
709         (walk_wild_file): Remove "section" param.
710         (walk_wild): Remove "section" and "file" params.
711         (lang_gc_wild): Likewise.
712         (wild): Likewise.  Modify for lang_wild_statement_type change.
713         (wild_sort): Likewise.  Add "sec" param.
714         (gc_section_callback): Likewise.
715         (output_section_callback): Likewise.  Do unique_section_p test.
716         (map_input_to_output_sections): Modify call to wild.
717         (lang_gc_sections_1): Likewise.
718         (print_wild_statement): Modify for lang_wild_statement_type
719         change.
720         (lang_add_wild): Replace filename, filenames_sorted param with
721         filespec.  Replace section_name, sections_sorted,
722         exclude_filename_list with section_list.
723         * ldlang.h (lang_add_wild): Here too.
724         (lang_wild_statement_type): Replace section_name, sections_sorted,
725         and exclude_filename_list with section_list.
726         * ldgram.y (current_file): Delete.
727         (%union): Add wildcard_list.
728         (file_NAME_list): Set type to wildcard_list.  Build a linked list
729         rather than calling lang_add_wild for each entry.
730         (input_section_spec_no_keep): Call lang_add_wild here instead.
731         * ld.h (struct wildcard_list): Declare.
732         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
734 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
736         * ldmain.c (main): initialize link_info.pei386_auto_import
737         * pe-dll.c: new tables for auto-export filtering
738         (auto_export): change API, pass abfd for contextual filtering.
739         Loop thru tables of excluded symbols instead of comparing
740         "by hand".
742 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
744         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
745         static variable current_sec (static struct sec *). Add
746         forward declaration for add_bfd_to_link.
747         (process_def_file): Don't export undefined symbols. Do not
748         export symbols starting with  "_imp__".  Call auto_export()
749         with new API.
750         (pe_walk_relocs_of_symbol): New function.
751         (generate_reloc): add optional extra debugging
752         (pe_dll_generate_def_file): eliminate extraneous initial blank
753         line in output
754         (make_one): enlarge symtab to make room for __nm__ symbols
755         (DATA auto-import support).
756         (make_singleton_name_thunk): New function.
757         (make_import_fixup_mark): New function.
758         (make_import_fixup_entry): New function.
759         (pe_create_import_fixup): New function.
760         (add_bfd_to_link): Specify that 'name' argument is a CONST
761         char *.
762         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
763         declare new functions pe_walk_relocs_of_symbol and
764         pe_create_import_fixup.
765         * emultempl/pe.em: add new options --enable-auto-import,
766         --disable-auto-import, and --enable-extra-pe-debug.
767         (make_import_fixup): New function.
768         (pe_find_data_imports): New function.
769         (pr_sym): New function.
770         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
771         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
772         CODE.
774 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
776         * ld.texinfo: add additional documentation for
777         --export-all-symbols.  Document --out-implib,
778         --enable-auto-image-base, --disable-auto-image-base,
779         --dll-search-prefix, --enable-auto-import, and
780         --disable-auto-import.
781         * ldint.texinfo: Add detailed documentation on auto-import
782         implementation.
784 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
786         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
787         example.
789 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
791         * Makefile.am: Update dependencies with "make dep-am".
792         * Makefile.in: Regenerate
794 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
796         * ldcref.c (check_section_sym_xref): New function.
797         (check_nocrossrefs): Call it.
798         (check_nocrossref): Interate over h->refs here instead of..
799         (check_refs): ..here.  Pass in the symbol name, section, and bfd
800         rather than hash_entry pointers.
801         (struct check_refs_info): Keep symbol name rather than hash entry.
802         Remove "same".
803         (check_reloc_refs): Tweak for above changes in check_refs_info.
804         Only report references to section syms when symname is NULL to
805         prevent duplicate messages for the same reloc.
807 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
809         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
810         available.  Do not print NULL trees.
811         (exp_print_token): Print unknown tokens with values > 126 as
812         decimal values not ASCII characters.
814         * ldlang.c (lang_leave_overlay): If a region is specified assign
815         it to all sections inside the overlay unless they have been
816         assigned to the own, non-default, memory region.
818         * README: Add header for consistency with other README files.
820 2001-07-14  H.J. Lu  <hjl@gnu.org>
822         * emultempl/elf32.em (output_prev_sec_find): Never return
823         bfd_abs_section_ptr, bfd_com_section_ptr nor
824         bfd_und_section_ptr.
826 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
828         * Makefile.am (em32relf.c): Change dependency from generic.em to
829         elf32.em.
830         * Makefile.in: Regenerate.
832 2001-07-14  matthew green  <mrg@eterna.com.au>
834         * configure.tgt (i386-*-netbsdelf*): New target.
835         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
837 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
839         * emultempl/elf32.em (output_prev_sec_find): New.
840         (place_orphan): Use it.
842 2001-07-11  H.J. Lu  <hjl@gnu.org>
844         * ldmain.c (main): Fix typos in the last change.
846 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
848         * ldmain.c (main): Disallow -F and -f without -shared.
850 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
852         * emultempl/pe.em (after_open): Check for the output_bfd not
853         having any coff_data structure allocated to it.
855 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
857         * emultempl/elf32.em: Do not assuming that contents of the buffer
858         returned from basename function will remain unchanged accross other
859         function calls.
861 2001-07-03  H.J. Lu  <hjl@gnu.org>
863         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
864         2001-07-03. It creates dynamic entries even for static binaries.
866 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
868         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
869         (DYNAMIC): Use it to reserve few dynamic entries for
870         post-linking tools.
872 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
874         * emulparams/hppa64linux.sh: New file.
875         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
876         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
877         (ehppa64linux.c): Add rule to make it.
878         Run "make dep-am".
879         * Makefile.in: Regenerate.
881 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
883         * ld.texinfo (Options, -r): Mention restrictions when using
884         different object formats.
886 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
888         * ldlang.c (lang_check): Emit fatal error if relocatable link
889         between different object flavours with relocations in input.
891 2001-06-19  H.J. Lu  <hjl@gnu.org>
893         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
894         (--version-script): Mention the language support.
896 2001-06-19  H.J. Lu <hjl@gnu.org>
898         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
900 2001-06-18  H.J. Lu <hjl@gnu.org>
902         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
903         (diststuff): Add $(MANS).
904         * Makefile.in: Regenerated.
906         * ld.1: Removed.
908 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
910         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
911         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
912         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
913         * ld.h (args_type): Remove member export_dynamic.  All users
914         changed to use struct bfd_link_info member.
916         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
917         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
918         * Makefile.in: Regenerate.
920 2001-06-18  H.J. Lu  <hjl@gnu.org>
922         * ldlang.c (init_os): Add the newline to the einfo call.
923         (lang_check): Likewise.
924         (lang_do_version_exports_section): Likewise.
926 2001-06-15  H.J. Lu  <hjl@gnu.org>
928         * lexsup.c (parse_args); Save optind to report unrecognized
929         option.
931 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
933         * ldlang.c (lang_check): Emit fatal error if relocatable link
934         between different object flavours.
936         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
937         Set new link_info member export_dynamic.
938         * ldmain.c (main): Initialize new link_info member export_dynamic.
940 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
942         * ldlang.c (walk_wild): Only call walk_wild_file if
943         lookup_name returns something.
944         (lookup_name): If load_symbols fails, return NULL.
945         (load_symbols): Change to a boolean function.
946         (open_input_bfds): If load_symbols fails then do not make the
947         executable.
949 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
951         * ldlang.c (record_bfd_errors): Remove.
953         * emultempl/aix.em: Fix copyright dates.
955 2001-06-07  Andreas Jaeger  <aj@suse.de>
957         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
958         (TEXT_START_ADDR): Likewise.
960 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
962         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
964 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
966         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
968 2001-05-31  H.J. Lu  <hjl@gnu.org>
970         * ldlang.c (open_input_bfds): Don't change the bfd error
971         handler whilst loading symbols.
973 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
975         * configure.tgt: Remove i370-mvs architecture, it is not currently
976         supported.
978 2001-05-25  H.J. Lu  <hjl@gnu.org>
980         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
981         like emulparams/aixppc.sh.
983 2001-05-25  H.J. Lu  <hjl@gnu.org>
985         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
986         setting of output_filename after bfd_scan_arch.
987         * emultempl/pe.em: Likewise.
989 2001-05-25  H.J. Lu  <hjl@gnu.org>
991         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
992         like emulparams/aixppc.sh.
994         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
995         instead of ${srcdir}/emultempl/stringify.sed.
997 2001-05-25  Timothy Wall  <twall@oculustech.com>
999         * emulparams/elf64_aix.sh: Change settings to match IBM linker
1000         output.
1002 2001-05-25  Alan Modra  <amodra@one.net.au>
1004         * configure.host: Replace linuxoldld with linux*oldld.
1005         * configure.tgt: Likewise.
1007 2001-05-24  H.J. Lu  <hjl@gnu.org>
1009         * emultempl/stringify.sed: Removed again.
1011 2001-05-24  H.J. Lu  <hjl@gnu.org>
1013         * emultempl/aix.em (OUTPUT_ARCH): Defined.
1014         (gld${EMULATION_NAME}_before_parse): Initialize
1015         ldfile_output_architecture, ldfile_output_machine and
1016         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1017         * emultempl/beos.em: Likewise.
1018         * emultempl/elf32.em: Likewise.
1019         * emultempl/linux.em: Likewise.
1020         * emultempl/mipsecoff.em: Likewise.
1021         * emultempl/pe.em: Likewise.
1022         * emultempl/sunos.em: Likewise.
1024 2001-05-24 Tom Rix <trix@redhat.com>
1026         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1027         udate import file format.
1028         (change_symbol_mode) New, same
1029         (is_syscall) New, same
1030         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1031         * emulparams/aixppc64.sh : same
1032         * emulparams/aixrs6.sh : same
1033         * emulparams/ppcmacos.sh : same
1034         * emultempl/aix.em : use strtoull to parse options
1035         * Makefile.am : add eaixppc64 emulation for xcoff64
1036         * Makefile.in : same
1037         * configure.tgt : same
1039         * scripttempl/aix.sc : default text section offset to 0x10000000
1040         default data section offset to 0x20000000
1041         add .sv3264 and .sv64 pseudo sections
1042         loader and debug sections use the currect section offset.
1044         * emultempl/aix.em : Add xcoff64 support
1045         Add -binitfini support
1046         (gld${EMULATION_NAME}_before_parse) -binitfini
1047         (gld${EMULATION_NAME}_parse_args) same
1048         (gld${EMULATION_NAME}_before_allocation) format change for special
1049         sections
1051         * emulparams/aixppc64.sh : New file for xcoff64 support
1053 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
1055         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1056         variable to avoid non-portable shell construct.
1058 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1060         * ldmain.c (get_emulation): Add -mips5 command line argument.
1062 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
1064         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1065         (ELF_INTERPRETER_NAME): Define it.
1066         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1067         it.
1068         * configure.tgt (targ_emul, targ_extra_emuls)
1069         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1070         as primary, elf_i386 as extra.
1071         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1072         (eelf_i386_ldso.c): New rule.
1073         * Makefile.in: Rebuilt.
1075 2001-05-22  Nick Clifton  <nickc@redhat.com>
1077         * lexsup.c (ld_options):  Allow -I to be an alias for
1078         --dynamic-linker.  This is for Solaris compatability.
1079         * ld.texinfo: Document that -I can be used.
1080         * ld.1: Regenerate.
1082 2001-05-16  Alan Modra  <amodra@one.net.au>
1084         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1085         whether an input section is the first one assigned to an output
1086         section.
1087         Assorted formatting fixes.
1089 2001-05-14  DJ Delorie  <dj@delorie.com>
1091         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1092         * Makefile.in: Ditto.
1094 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1096         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1097         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1098         output sections.
1099         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1101 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1103         * ldlang.c (lang_process): Call bfd_merge_sections.
1105 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1107         * ldgram.y: Fix typo.
1109 2001-05-03  H.J. Lu  <hjl@gnu.org>
1111         * emultempl/elf32.em: Include "libiberty.h".
1112         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1113         basename of the bfd filename.
1114         (gld${EMULATION_NAME}_stat_needed): Likewise.
1115         (gld${EMULATION_NAME}_try_needed): Likewise.
1116         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1118 2001-05-02  H.J. Lu  <hjl@gnu.org>
1120         * emultempl/pe.em: Include <ctype.h>.
1122 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
1124         * emulparams/elf32openrisc.sh: New file.
1126         * Makefile.am: Add OpenRISC target.
1127         * Makefile.in: Regenerated.
1129         * configure.tgt: Add openrisc-*-* mapping.
1131 2001-05-02  Nick Clifton  <nickc@redhat.com>
1133         * emultempl/aix.em: Replace buystring with xstrdup.
1134         * emultempl/beos.em: Replace buystring with xstrdup.
1136 2001-05-02  H.J. Lu  <hjl@gnu.org>
1138         * ldfile.c: Include "libiberty.h".
1139         * ldlex.l: Likewise.
1141         * ldmisc.c (buystring): Removed.
1142         * ldmisc.h: Likewise.
1144         * ldfile.c: Replace buystring with xstrdup.
1145         * ldlang.c: Likewise.
1146         * ldlex.l: Likewise.
1147         * ldmain.c: Likewise.
1148         * ldmisc.c: Likewise.
1149         * lexsup.c: Likewise.
1150         * mpw-eppcmac.c: Likewise.
1152 2001-04-30  Andreas Jaeger  <aj@suse.de>
1154         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1156 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1158         * ldlang.c (load_symbols): Give emulation a chance
1159         to process unrecognized file before fatal error is
1160         reported, not after.
1162 2001-04-27  Sean McNeil <sean@mcneil.com>
1164         * configure.tgt: Add arm-vxworks target.
1165         * scripttempl/armcoff.sc: Support .text or .data as a section name
1166         prefix.
1167         Define _etext.
1169 2001-04-13  J.T. Conklin  <jtc@redback.com>
1171         * ld.texinfo: Document --fatal-warnings.
1172         * ld.1: Regenerate.
1174         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1175         warnings have been turned into errors.
1176         * lexsup.c (OPTION_WARN_FATAL): Define.
1177         (ld_options): Entry for --fatal-warnings.
1178         (parse_args): Handle OPTION_WARN_FATAL.
1179         * ld.h (ld_config_type): Add fatal_warnings field.
1181 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
1183         * ldmain.c (main): Default to discard_sec_merge.
1184         * lexsup.c (OPTION_DISCARD_NONE): Define.
1185         (ld_options): Add --discard-none.
1186         (parse_args): Handle OPTION_DISCARD_NONE.
1187         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1188         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1189         all its input sections match.
1191 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
1193         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1194         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1195         (eelf32ltsmip.c): New target.
1196         (eelf64btsmip.c): Likewise.
1197         (eelf64ltsmip.c): Likewise.
1198         * Makefile.in: Regenerated.
1200         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1201         target.
1202         (mips*-*-linux-gnu*): Likewise.
1204         * emulparams/elf32ltsmip.sh: New. Traditional little endian
1205         MIPS taget.
1206         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1207         target.
1208         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1209         endian target.
1211 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
1213         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1214         correct value of __Stext here.
1215         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1216         .startup section.
1218         * emulparams/crislinux.sh: Remove FIXME.
1220 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
1222         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1223         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1225 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
1227         * configure.tgt (cris-*-*): Change default emulation to criself.
1228         (cris-*-*aout*): New rule.
1230 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
1232         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1233         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1235 2001-03-26  Andreas Jaeger  <aj@suse.de>
1237         * ld.texinfo (Overview): Fix syntax in texi code.
1239 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1241         * ld.texinfo: Put @c man indications to generate the ld man page.
1242         When generating man, define all the variables.  Define SEEALSO
1243         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
1244         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1245         (ld.1): Generate from ld.texinfo.
1246         * Makefile.in: Regenerate.
1248 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
1250         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1251         and '-fdata-sections'. Set the VMA of STABS sections to zero.
1253 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
1255         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1256         is an absolute path look only for this file and not along the path.
1258 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
1260         * emultempl/elf32.em (OPTION_GROUP): New macro.
1261         Add new option Bgroup to longopts.
1262         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1263         (gld*_list_options): Add -Bgroup and -z defs.
1264         * ld.1: Document -Bgroup and -z defs.
1265         * ld.texinfo: Likewise.
1267 2001-03-07  Michael Meissner  <meissner@redhat.com>
1269         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1270         with sections created by -fdata-sections.
1271         (.dynbss,.bss): Ditto.
1273 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
1275         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1276         after_allocation_default, not gld..._before_allocation.
1278 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
1280         * configure.in (BFD_VERSION): New.
1281         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1282         * configure: Regenerate.
1283         * Makefile.am: Run "make dep-am"
1284         * Makefile.in: Regenerate.
1286 2001-02-26  Timothy Wall  <twall@cygnus.com>
1288         * emulparams/elf64_aix.sh: Add additional read-only sections;
1289         uncomment lines which are now required.
1291 2001-02-26  H.J. Lu  <hjl@gnu.org>
1293         * ldlang.c (open_input_bfds): Set the bfd error handler so
1294         that problems can be caught whilst loading symbols.
1295         (record_bfd_errors): New function: Report BFD errors and mark
1296         the executable output as being invalid.
1298 2001-02-22  Timothy Wall  <twall@cygnus.com>
1300         * configure.host: Add configuration for ia64-*-aix*.
1301         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1302         Add dependencies for eelf64_aix.c.
1303         * Makefile.in: Regenerate.
1304         * configure.tgt: Add ia64-*-aix* mapping.
1305         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1306         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1307         AIX-specific test.
1309 2001-02-20  H.J. Lu  <hjl@gnu.org>
1311         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1312         false if we found the file.
1314 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
1316         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1317         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1319 2001-02-18  lars brinkhoff  <lars@nocrew.org>
1321         * Makefile.am: Add PDP-11 target.
1322         * configure.tgt: Likewise.
1323         * emulparams/pdp11.sh: New file.
1325 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
1327         * configure.host: Add a generic FreeBSD configuration entry such that
1328         all [modern] FreeBSD systems on all platforms will look the same.
1330 2001-02-14  H.J. Lu  <hjl@gnu.org>
1332         * configure.tgt: Remove mention of earmelf_linux26.
1334 2001-02-13  Richard Henderson  <rth@redhat.com>
1336         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1338 2001-02-13  H.J. Lu  <hjl@gnu.org>
1340         * ldexp.h (node_type): Add etree_provided.
1341         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1342         type to etree_provided if defined by PROVIDE. Allow updating
1343         for etree_provided.
1344         (exp_print_tree): Handle etree_provided.
1345         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1346         etree_provided.
1348 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
1350         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1351         .IA_64.unwind.* pattern to unwind table section and
1352         .IA_64.unwind_info* pattern to unwind info section.
1354 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1356         * Makefile.am: Add linux target for S/390.
1357         * Makefile.in: Likewise.
1358         * configure.host: Likewise.
1359         * configure.tgt: Likewise.
1360         * emulparams/elf64_s390.sh: New file.
1361         * emulparams/elf_s390.sh: New file.
1363 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
1365         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1366         targ_extra_libpath.
1367         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1369 2001-02-06  Philip Blundell  <philb@gnu.org>
1371         * Makefile.am: Remove mention of earmelf_linux26.
1372         * Makefile.in: Regenerate.
1374 2001-02-04  Philip Blundell  <philb@gnu.org>
1376         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1377         * emulparams/armelf_linux26.sh: Delete.
1378         * configure.tgt: Remove mention of armelf_linux26 emulation.
1380 2001-02-01  Nick Clifton  <nickc@redhat.com>
1382         * ld.1: Replace occurances of -oformat with --oformat.
1384 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
1386         * ldlang.c (lang_leave_overlay): Don't set lma_region when
1387         load_base is specified.
1389 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
1391         * emultempl/elf32.em: Correct spelling in comments and listed
1392         options.
1394 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
1396         * ldlang.c (lang_leave_overlay): Only set lma_region from the
1397         default for the first section of a group of overlay sections.
1399 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
1401         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1402         * Makefile.in: Regenerate.
1403         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1404         Check for null tool_dir.
1406 2001-01-16  Jim Wilson  <wilson@redhat.com>
1408         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1409         and IA_64.unwind.info.
1411 2001-01-16  H.J. Lu  <hjl@gnu.org>
1413         * ldlang.c (lang_check): Merge the private data only if the
1414         input file has contents.
1416 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
1418         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1420         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1421         enabling search for libmilli.  On a relocatable link, make .text
1422         sections unique.
1423         (LDEMUL_AFTER_PARSE): Define.
1424         (hppaelf_finish): Correct spelling of relocatable in comments.
1426         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1427         rummage through the script for sections on the unique list.
1428         Correct length of strncmp for ".note".
1429         (gld${EMULATION_NAME}_check_needed): Rearrange function.
1431         * ldlang.c (unique_section_list): New var.
1432         (unique_section_p): New function.
1433         (walk_wild_section): Don't match sections on unique_section_list.
1434         (lang_add_unique): New function.
1435         Correct spelling of relocatable in comments.
1437         * ldlang.h (struct unique_sections): Declare.
1438         (unique_section_list): Declare.
1439         (unique_section_p): Declare.
1440         (lang_add_unique): Declare.
1442         * lexsup.c (ld_options): Allow --unique to take an optional arg.
1443         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1445         * ld.texinfo (--unique): Update.
1447 2001-01-13  Nick Clifton  <nickc@redhat.com>
1449         * lexsup.c (parse_args): Remove spurious white space.
1451 2001-01-12  Nick Clifton  <nickc@redhat.com>
1453         * lexsup.c (parse_args): Update copyright date.
1455 2001-01-12  Philip Blundell  <pb@futuretv.com>
1457         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1459 2001-01-10  Kazu Hirata  <kazu@hxi.com>
1461         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
1462         * scripttempl/h8300h.sc: Fix formatting.
1463         * scripttempl/h8300s.sc: Likewise.
1464         * scripttempl/h8500.sc: Likewise.
1465         * scripttempl/h8500b.sc: Likewise.
1466         * scripttempl/h8500c.sc: Likewise.
1467         * scripttempl/h8500m.sc: Likewise.
1468         * scripttempl/h8500s.sc: Likewise.
1470 2000-01-07  David O'Brien  <obrien@BSDi.com>
1472         * emultempl/elf32.em: Only perform Linux ld hints processing when
1473         targeting Linux.
1475 2001-01-07  Philip Blundell  <philb@gnu.org>
1477         * ld.texinfo (Bug Reporting): Update email address for reports.
1479 2000-12-31  Nick Clifton  <nickc@redhat.com>
1481         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1482         options by checking for a return value of '?' not -1.
1484 2000-12-28  Nick Clifton  <nickc@redhat.com>
1486         * lexsup.c (struct ld_option): Add new enum value:
1487         EXACTLY_TWO_DASHES.
1488         (ld_options[]): Change -omagic, -output and -oformat options
1489         to be EXACTLY_TWO_DASHES.
1490         (OUTPUT_COUNT): Use ARRAY_SIZE.
1491         (parse_args): Change parameter 'argc' to unsigned.
1492         Place EXACTLY_TWO_DASHES options into new really_longopts
1493         array.
1494         If getopt_long_only fails, try calling getopt_long using the
1495         really_longopts array.
1496         (help): Print a double dash for both EXACTLY_TWO_DASHES and
1497         TWO_DASHES options.
1499         * ldlex.h: Fix prototype of parse_args.
1501         * ld.texinfo: Document that long options starting with 'o'
1502         must be preceeded by two dashes.  Change example of a single
1503         dashed long option from -oformat to -trace-symbol.
1505 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1507         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1508         (longopts[]): New --no-default-excludes option.
1509         (gld_${EMULATION_NAME}_list_options): Document.
1510         (gld_${EMULATION_NAME}_parse_args): Handle.
1512 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1514         * ldlang.c (new_stat): Revert the last beautification with "innocent"
1515         whitespace, it breaks the K&R C preprocessor.
1517 2000-12-11  DJ Delorie  <dj@redhat.com>
1519         * ld.texinfo: Add notes about --whole-archive and gcc.
1521 2000-11-18  Fred Fish  <fnf@be.com>
1523         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1524         (ld_options): Entry for --allow-shlib-undefined.
1525         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1526         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1527         to false.
1528         * ld.texinfo: Document new command line switch.
1530 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
1532         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1533         .fixup is actually read/write.
1534         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1535         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1536         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1538 Mon Dec 11 14:50:33 MET 2000  Jan Hubicka  <jh@suse.cz>
1540         * NEWS: Add note about x86_64 architecture.
1542 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
1544         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1545         Set DWARF2 sections to a VMA of zero.
1547 2000-12-01      Joel Sherrill <joel@OARcorp.com>
1549         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1550         New targets.
1551         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1552         (sparc*-*-rtems*): Switched from a.out to ELF.
1554 2000-11-30  Jan Hubicka  <jh@suse.cz>
1556         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1557         (eelf_x86_64.c): New.
1558         * Makefile.in: Regenerate.
1559         * configure.tgt: Add support for x86_64-*-linux-gnu*.
1560         * emulparams/elf_x86_64.sh: New.
1562 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
1564         * emulparams/crislinux.sh (ENTRY): Change back to _start.
1565         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1567         * scripttempl/crisaout.sc: Change all RELOCATING not related to
1568         merging non-a.out sections into CONSTRUCTING.
1570 2000-11-28  Nick Clifton  <nickc@redhat.com>
1572         * ld.1 (COPYING): Mention that the GNU Free Documentation
1573         License is present in the sources, but not the output, and
1574         also available from the GNU website.
1575         (GNU Free Documentation License): Comment out this section.
1577 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
1579         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1580         does not use them.
1582 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
1584         * ld.1: Remove old date so it does not give the impression the manpage
1585         is way out of date.
1587 2000-11-24  Nick Clifton  <nickc@redhat.com>
1589         * configure.tgt (xscale-coff): Add target.
1590         (xscale-elf): Add target.
1592 2000-11-24  Fred Fish  <fnf@be.com>
1594         * ldmain.c (main): Remove redundant init of config.make_executable
1595         to true.
1597 2000-11-15  Richard Henderson  <rth@redhat.com>
1599         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1601 2000-11-14  Kazu Hirata  <kazu@hxi.com>
1603         * scripttempl/h8300.sc: Fix formatting.
1604         * scripttempl/h8300h.sc: Likewise.
1605         * scripttempl/h8300s.sc: Likewise.
1607 Tue Nov 14 00:59:19 2000  Denis Chertykov  <denisc@overta.ru>
1609         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1611 2000-11-09  Philip Blundell  <pb@futuretv.com>
1613         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1614         around orphan sections whose names can be represented in C.
1616 2000-11-07  Jim Wilson  <wilson@redhat.com>
1618         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1619         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
1621 2000-11-06  Nick Clifton  <nickc@redhat.com>
1623         * ld.texinfo: Add GNU Free Documentation License.
1624         * ldint.texinfo: Add GNU Free Documentation License.
1625         * ld.1: Add GNU Free Documentation License.
1627 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
1629         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1630         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1632         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1633         Move 2000-11-02 Makefile.in changes to this file.
1634         * Makefile.in: Regenerate.
1636 2000-11-03  Nick Clifton  <nickc@redhat.com>
1638         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1639         constructors and destructors.
1640         * scripttempl/h8300h.sc: Ditto.
1641         * scripttempl/h8300s.sc: Ditto.
1642         * scripttempl/h8500.sc: Ditto.
1643         * scripttempl/h8500b.sc: Ditto.
1644         * scripttempl/h8500c.sc: Ditto.
1645         * scripttempl/h8500m.sc: Ditto.
1646         * scripttempl/h8500s.sc: Ditto.
1647         * scripttempl/v850.sc: Ditto.
1648         * scripttempl/w65.sc: Ditto.
1649         * scripttempl/z8000.sc: Ditto.
1651 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
1653         * Makefile.in (e_i386_chaos.c): New rule.
1654         (ALL_EMULATIONS): Added e_i386_chaos.o.
1655         * emulparams/elf_i386_chaos.sh: New file.
1656         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1658 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
1660         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1661         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1662         Fix sed invocation, so that it coped with '/' in Solaris 64bit
1663         library path suffix.
1664         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1666 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
1668         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1669         for consecutive sections.
1671 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
1673         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1674         options.
1675         * ld.texinfo: Added notes about this new option.
1677 2000-10-16  Nick Clifton  <nickc@redhat.com>
1679         * emultempl/pe.em (_after_open): Add tests of return values from
1680         bfd functions.  Emit appropriate error messages if necessary.
1682 2000-10-13  Nick Clifton  <nickc@redhat.com>
1684         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1685         local variables - they are not used, but leave in the call to
1686         bfd_canonicalize_symtab.
1687         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1688         pe_dll_search_prefix.
1690 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
1692         * emultempl/pe.em (pe_dll_search_prefix): New variable,
1693         (longopts): New --dll-search-prefix option.
1694         (gld_${EMULATION_NAME}_list_options): Document.
1695         (gld_${EMULATION_NAME}_parse_args): Handle.
1696         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1697         dynamically, search for a dll named '<prefix><basename>.dll'
1698         in preference to 'lib<basename>.dll' if --dll-search-prefix
1699         is specified.
1701 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1703         * ldlang.c (section_already_linked): Set kept_section instead of
1704         sec->comdat->sec.
1706 2000-10-10  Kazu Hirata  <kazu@hxi.com>
1708         * deffile.h: Fix formatting.
1709         * lexsup.c: Likewise.
1710         * mri.c: Likewise.
1712 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1714         * pe-dll.c (make_one): Do not generate code thunk for DATA
1715         exports.
1716         (process_def_file): deduce DATA flag for auto-export sumbols.
1718 2000-10-09  Kazu Hirata  <kazu@hxi.com>
1720         * ld.h: Fix formatting.
1721         * ldcref.c: Likewise.
1722         * ldctor.h: Likewise.
1723         * ldemul.c: Likewise.
1724         * ldemul.h: Likewise.
1725         * ldexp.c: Likewise.
1726         * ldexp.h: Likewise.
1727         * ldfile.c: Likewise.
1728         * ldfile.h: Likewise.
1729         * ldlang.c: Likewise.
1730         * ldlang.h: Likewise.
1731         * ldmain.c: Likewise.
1732         * pe-dll.c: Likewise.
1734         * pe-dll.c: Revert some formatting fixes.
1736 2000-10-08  Kazu Hirata  <kazu@hxi.com>
1738         * pe-dll.c: Fix formatting.
1740 2000-10-05  Kazu Hirata  <kazu@hxi.com>
1742         * ldlang.c: Fix formatting.
1744 2000-10-03  DJ Delorie  <dj@redhat.com>
1746         * pe-dll.c (fill_edata): initialize entire block
1747         (make_one): fill in correct section.
1749 2000-10-03  Kazu Hirata  <kazu@hxi.com>
1751         * ldexp.c: Fix formatting.
1753 2000-10-02  DJ Delorie  <dj@redhat.com>
1755         * emultempl/pe.em (gld_*_after_open): detect case where there two
1756         import libraries for same dll; rename one to ensure proper link
1757         order.
1759         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1760         typo
1761         (generate_edata): fix typo
1763 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
1765         * scripttempl/crisaout.sc (ENTRY): Now __start.
1766         (.text): Add default setting for __start.
1767         Remove CONSTRUCTORS handling.
1768         (/DISCARD/): Add .gnu.warning.*.
1769         * emulparams/crislinux.sh (ENTRY): Now __start.
1770         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1771         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1772         (ENTRY): Now __start.
1773         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1774         (EXECUTABLE_SYMBOLS): Add default setting for __start.
1776 2000-09-29  Kazu Hirata  <kazu@hxi.com>
1778         * deffile.h: Fix formatting.
1779         * ld.h: Likewise.
1780         * ldcref.c: Likewise.
1781         * ldctor.c: Likewise.
1782         * ldctor.h: Likewise.
1783         * ldemul.c: Likewise.
1784         * ldemul.h: Likewise.
1785         * ldexp.c: Likewise.
1786         * ldexp.h: Likewise.
1787         * ldfile.c: Likewise.
1788         * ldfile.h: Likewise.
1789         * ldlang.c: Likewise.
1790         * ldlang.h: Likewise.
1791         * lexsup.c: Likewise.
1792         * mri.c: Likewise.
1793         * pe-dll.c: Likewise.
1795 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1797         * pe-dll.c (process_def_file): Uninitialized data wasn't
1798         exported with --export-all-symbols switch.
1800 2000-09-28  DJ Delorie  <dj@redhat.com>
1802         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1803         noname work properly.
1805 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
1807         * ld.texinfo (HPPA ELF32): New section.
1809         * emultempl/hppaelf.em (group_size): New.
1810         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1811         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1812         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
1813         options to prevent abbreviations matching.
1814         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
1815         (PARSE_AND_LIST_ARGS_CASES): Handle it.
1817 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1819         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1820         on the m68*-*-elf target.  Make it support COFF input objects.
1822 2000-09-21  Kazu Hirata  <kazu@hxi.com>
1824         * ldmain.c: Fix formatting.
1825         * ldmisc.c: Likewise.
1826         * ldver.c: Likewise.
1827         * ldwrite.c: Likewise.
1829 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
1831         * ldwrite.c (clone_section): Silence gcc warnings.
1833 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
1835         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1836         out of memory failure.
1838         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1839         (clone_section): Handle out of memory failures.  Rename var to
1840         avoid c++ reserved word.
1842 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
1844         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1845         stub_name param to stub_sec_name.
1846         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1848 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1850         * emultempl/m68kelf.em: New file.
1851         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1852         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1853         * Makefile.in: Regenerate.
1855 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
1857         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1858         only as needed.
1860 2000-09-13  Nick Clifton  <nickc@redhat.com>
1862         * ldmain.c (multiple_definition): Disable relaxation if
1863         multiple symbol definitions are encountered - otherwise the
1864         linker could abort with an assertion failure.
1866 2000-09-10  Nick Clifton  <nickc@redhat.com>
1868         * mri.c: Fix formatting.
1870 2000-09-07  H.J. Lu  <hjl@gnu.org>
1872         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1873         * configure: Rebuild.
1875 2000-09-07  H.J. Lu  <hjl@gnu.org>
1877         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1878         * Makefile.in: Rebuild.
1880 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
1882         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1883         broken list handling.  Create __start_SECNAME and __stop_SECNAME
1884         when no place-holder.  Add some comments.  Test both SEC_CODE and
1885         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1886         Handle case where no output section statement created.
1888 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
1890         * configure.tgt (sh-*-linux*): Added.
1891         * Makefile.am: Added eshelf_linux and eshlelf_linux.
1892         * Makefile.in: Rebuilt.
1893         * emulparams/shelf_linux.sh: New file.
1894         * emulparams/shlelf_linux.sh: New file.
1896 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
1898         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1899         try shuffling sections when the orphan happens to be the place
1900         holder.  Keep count of unique section names generated so we speed
1901         the search for a new name.
1903 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
1905         * configure: Rebuilt with new libtool.m4.
1907 2000-09-05  Nick Clifton  <nickc@redhat.com>
1909         * Makefile.in: Regenerate.
1910         * aclocal.m4: Regenerate.
1911         * configure: Regenerate.
1912         * config.in: Regenerate.
1913         * po/ld.pot: Regenerate.
1915         * ldint.texinfo: Remove CVS revision marker - it foils local
1916         comparisons.
1918         * emultempl/ticoff.em: Remove extraneous comma.
1920 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
1922         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1923         to stub section flags.
1924         (hppa_for_each_input_file_wrapper): New.
1925         (hppa_lang_for_each_input_file): New.
1926         (lang_for_each_input_file): Define to call above.
1927         (multi_subspace): New.
1928         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1929         (PARSE_AND_LIST_PROLOGUE): Define.
1930         (PARSE_AND_LIST_LONGOPTS): Define.
1931         (PARSE_AND_LIST_OPTIONS): Define.
1932         (PARSE_AND_LIST_ARGS_CASES): Define.
1933         (hppaelf_finish): Call elf32_hppa_set_gp.
1934         (hppaelf_set_output_arch): Remove.
1935         (LDEMUL_SET_OUTPUT_ARCH): Remove.
1937         * emulparams/hppalinux.sh (ELFSIZE): Define.
1938         (MACHINE): Define.
1939         (OTHER_READONLY_SECTIONS): Define.
1940         (DATA_PLT): Define.
1941         (GENERATE_SHLIB_SCRIPT): Define.
1943         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
1944         to const throughout.  Change `void *' to `PTR' throughout.
1945         (lang_memory_default): Function is local to file, add `static'.
1947         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1948         (ehppalinux.c): Likewise.
1949         (earmelf.c): Likewise.
1950         (earmelf_linux.c): Likewise.
1951         (earmelf_linux26.c): Likewise.
1952         * Makefile.in: Regenerate.
1954         * ld.h (ld_config_type): Add unique_orphan_sections.
1955         * lexsup.c (OPTION_UNIQUE): Define.
1956         (ld_options): Add "--unique".
1957         (parse_args): Handle it.
1958         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1959         search for an existing output section if unique_orphan_sections is
1960         set.  Make use of bfd_get_unique_section_name rather than
1961         duplicating code here.
1962         * ld.texinfo: Describe --unique.
1964         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1965         optional arg to split-by-file.
1966         (parse_args): Handle them.
1967         * ld.texinfo: Update description of these options.
1968         * ldwrite.c (clone_section): Pass in the section name.  Replace
1969         local code with bfd_get_unique_section_name.
1970         (split_sections): Tidy code and comments.  Use a list traversal
1971         more appropriate to the list construction.  Handle cooked section
1972         sizes.  Split when split_by_reloc reached rather than exceeded.
1973         Track section size and split when split_by_file reached.  Fix
1974         link_order_tail (even though it's not used).
1975         (ldwrite): Modify condition for calling split_sections to suit
1976         changed split_by_reloc and split_by_file.
1977         * ldmain.c (main): Init config.split_by_reloc and
1978         config.split_by_file to -1.
1979         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1980         Change split_by_file to bfd_size_type.
1982 2000-09-02  Nick Clifton  <nickc@redhat.com>
1984         * configure.in: Increase version number to 2.10.91.
1985         * NEWS: Mention new ability to support removal of duplicate DWARF2
1986         debug information.
1987         * configure: Regenerate.
1988         * aclocal.m4: Regenerate.
1989         * config.in: Regenerate.
1991 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1993         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1994         sections.
1995         * scripttempl/elf32avr.sc: Ditto.
1996         * scripttempl/elfd10v.sc: Ditto.
1997         * scripttempl/elfd30v.sc: Ditto.
1998         * scripttempl/elfi370.sc: Ditto.
1999         * scripttempl/elfm68hc11.sc: Ditto.
2000         * scripttempl/elfm68hc12.sc: Ditto.
2001         * scripttempl/elfi386beos.sc: Ditto.
2002         * scripttempl/v850.sc: Ditto.
2004 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
2006         * acinclude.m4: Include libtool and gettext macros from the
2007         top level.
2008         * aclocal.m4, configure: Rebuilt.
2010 2000-08-25  Nick Clifton  <nickc@redhat.com>
2012         * ldlang.c (open_output): When choosing the target for a
2013         particular endianness, do nothing if the target is not
2014         supported.
2016 2000-08-25  H.J. Lu  <hjl@gnu.org>
2018         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2019         check -rpath nor LD_RUN_PATH for cross link.
2020         * ld.texinfo: Document the change.
2022 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
2024         * NEWS: Mention support for CRIS.
2026 2000-08-23  H.J. Lu  <hjl@gnu.org>
2028         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2029         the current runpath list from bfd_elf_get_runpath_list ()
2030         before search.
2032 2000-08-22  H.J. Lu  <hjl@gnu.org>
2034         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2035         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2036         LD_LIBRARY_PATH for native linker. Display the needed DSO if
2037         trace_file_tries is non-zero.
2038         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2039         if trace_file_tries is non-zero.
2041         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2042         * NEWS: Mention it.
2044 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
2046         * NEWS: Mention i860 support.
2048 2000-08-14  Andreas Schwab  <schwab@suse.de>
2050         * scripttempl/elf.sc: Fix last change to use correct comment
2051         syntax.
2053 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
2055         * scripttempl/elf.sc: Add a comment giving the correspondence
2056         between sections, per-datum sections, and linkonce sections.  Make
2057         the comment true even for .bss, .sdata, .sdata2, .sbss, and
2058         .sbss2.
2060 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
2062         * emulparams/elf32_i860.sh: New file.
2063         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2064         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2065         (eelf32_i860.c): New rule.
2066         * Makefile.in: Regenerate.
2068 2000-08-10  Nick Clifton  <nickc@cygnus.com>
2070         * emulparams/mipspe.sh (ENTRY): Add definition.
2072 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
2074         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2075         in error message.
2077 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2079         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2080         the final size of .bss section.
2081         * scripttempl/elfm68hc12.sc: Likewise.
2083 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
2085         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2086         gld${EMULATION_NAME}_parse_args for consistency.  Combine
2087         lastoptind and prevoptind vars, and keep track of last optind.
2088         (gld_${EMULATION_NAME}_list_options): Rename to
2089         gld${EMULATION_NAME}_list_options.
2091 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
2093         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2094         (i586-sco-sysv5uw7.1.0).
2096 2000-07-27  H.J. Lu  <hjl@gnu.org>
2098         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2099         (PARSE_AND_LIST_PROLOGUE): New.
2100         (PARSE_AND_LIST_LONGOPTS): Likewise.
2101         (PARSE_AND_LIST_OPTIONS): Likewise.
2102         (PARSE_AND_LIST_ARGS_CASES): Likewise.
2103         (PARSE_AND_LIST_EPILOGUE): Likewise.
2105 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
2107         * emultempl/armelf.em: Elide functions common to elf32.em,
2108         ie. most of the file.
2109         (arm_elf_after_open): New.  Do arm specific things then call
2110         gld${EMULATION_NAME}_after_open.
2111         (arm_elf_before_allocation): New.  Call
2112         gld${EMULATION_NAME}_before_allocation then do arm specifics.
2113         (PARSE_AND_LIST_PROLOGUE): Define.
2114         (PARSE_AND_LIST_SHORTOPTS): Define.
2115         (PARSE_AND_LIST_LONGOPTS): Define.
2116         (PARSE_AND_LIST_OPTIONS): Define.
2117         (PARSE_AND_LIST_ARGS_CASES): Define.
2118         (LDEMUL_AFTER_OPEN): Define.
2119         (LDEMUL_BEFORE_ALLOCATION): Define.
2120         (LDEMUL_BEFORE_PARSE): Define.
2121         (LDEMUL_FINISH): Define.
2123         * emultempl/hppaelf.em: Similarly zap most of this file.
2124         (hppaelf_add_stub_section): Prototype.
2125         (hppaelf_layaout_sections_again): Prototype.
2126         (hook_in_stub): Prototype.
2127         (LDEMUL_SET_OUTPUT_ARCH): Define.
2128         (LDEMUL_FINISH): Define.
2129         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2131         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2132         (EXTRA_EM_FILE): New.
2133         * emulparams/armelf_linux.sh: Likewise.
2134         * emulparams/armelf_linux26.sh: Likewise.
2135         * emulparams/hppalinux.sh: Likewise.
2136         * emulparams/hppaelf.sh: Likewise.
2137         (NOP): Define.
2139         * emultempl/elf32.em: Fix formatting.
2140         (EXTRA_EM_FILE): Source it.
2141         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2142         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2143         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2144         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2145         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2146         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2147         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2148         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2149         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
2150         allow functions in this file to be overridden.
2151         (PARSE_AND_LIST_SHORTOPTS): Handle it.
2153         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2155         * emultempl/elf32.em: Reorganize file.
2157 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
2159         * emulparams/elf64alpha.sh: Implement "-taso" emulation
2160         specific option to fit 64-bit executable in the lower
2161         31-bit address range.  This is done by changing start
2162         address of .interp (the very first section of executable)
2163         and then setting EF_ALPHA_32BIT elf header flag.
2165 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2167         * emultempl/m68kcoff.em: New file.
2168         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2169         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2170         generic.em.
2171         * Makefile.in: Regenerate.
2173 2000-07-20  H.J. Lu  <hjl@gnu.org>
2175         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2176         and "disable-new-dtags" to stop getopt from treating -d/-e as
2177         abbreviations for these options.
2179 2000-07-20  H.J. Lu  <hjl@gnu.org>
2181         * ld.texinfo: Add documentation for --disable-new-dtags and
2182         --enable-new-dtags.
2184         * ldmain.c (main): Initialize link_info.new_dtags to false.
2186         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2187         --disable-new-dtags and --enable-new-dtags.
2188         (gld_${EMULATION_NAME}_list_options): Likewise.
2190 2000-07-05  Kenneth Block  <krblock@computer.org>
2192         * lexsup.c: Add optional style to demangle switch
2193         * ld.texinfo: Document optional style to demangle switch.
2195 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
2197         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2198         ecrislinux.o.
2199         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2200         Regenerate dependencies.
2201         * Makefile.in: Rebuild.
2202         * configure.tgt (cris-*-*): New target.
2203         * emulparams/crisaout.sh, emulparams/criself.sh,
2204         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2205         * po/POTFILES.in, po/ld.pot: Regenerate.
2207 2000-07-20  H.J. Lu  <hjl@gnu.org>
2209         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2210         Print out ignored -z options.
2212 2000-07-19  H.J. Lu  <hjl@gnu.org>
2214         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2215         (PARSE_AND_LIST_PROLOGUE): New.
2216         (PARSE_AND_LIST_LONGOPTS): Likewise.
2217         (PARSE_AND_LIST_OPTIONS): Likewise.
2218         (PARSE_AND_LIST_ARGS_CASES): Likewise.
2220         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2222         * lexsup.c (ld_options): Comment out 'z'.
2223         (parse_args): Likewise.
2225         * emultempl/elf32.em: Include "elf/common.h".
2226         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2227         options.
2228         (gld_${EMULATION_NAME}_list_options): Likewise.
2230         * ld.texinfo: Add documentation for the recognized -z options.
2232 2000-07-19  H.J. Lu  <hjl@gnu.org>
2234         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2235         bfd_elf_set_dt_needed_soname ().
2237 2000-07-18  DJ Delorie  <dj@cygnus.com>
2239         * pe-dll.c (pe_dll_id_target): check object target name also
2241 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
2243         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2244         ${INIT_END} if relocating.
2245         (.fini): Likewise ${FINI_START} and ${FINI_END}.
2247 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
2249         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2250         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2251         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2252         errors introduced by the old dynamic lib search order.
2254 2000-07-17  DJ Delorie  <dj@cygnus.com>
2256         * pe-dll.c (process_def_file): auto-export data items also
2257         (pe_process_import_defs): also see if _imp_ form needed
2259 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
2261         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2262         for dll import libraries
2264 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
2266         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2267         gcc 2.95.2 and later.
2269 2000-07-11  Kazu Hirata  <kazu@hxi.com>
2271         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2272         message.
2274 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
2276         * ldemul.h (struct lang_input_statement_struct): Remove forward
2277         declaration.
2278         (struct search_dirs): Likewise.
2279         * ldfile.h (struct lang_input_statement_struct): Likewise.
2280         Protect file from multiple inclusion.
2281         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2282         declaration from macro to file scope.
2284         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2285         * ldgram.y: Likewise here.
2286         * ldlang.c: And here.
2287         * ldmain.c: And here.
2288         * mpw-elfmips.c: And here.
2289         * mpw-eppcmac.c: And here.
2290         * emultempl/aix.em: And here.
2291         * emultempl/armcoff.em: And here.
2292         * emultempl/armelf.em: And here.
2293         * emultempl/armelf_oabi.em: And here.
2294         * emultempl/beos.em: And here.
2295         * emultempl/elf32.em: And here.
2296         * emultempl/hppaelf.em: And here.
2297         * emultempl/linux.em: And here.
2298         * emultempl/lnk960.em: And here.
2299         * emultempl/pe.em: And here.
2300         * emultempl/sunos.em: And here.
2301         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2302         * mpw-idtmips.c: Ditto.
2303         * emultempl/generic.em: Ditto.
2304         * emultempl/gld960.em: Ditto.
2305         * emultempl/gld960c.em: Ditto.
2306         * emultempl/mipsecoff.em: Ditto.
2307         * emultempl/ticoff.em: Ditto.
2308         * emultempl/vanilla.em: Ditto.
2310         * pe-dll.c: Include ldfile.h
2311         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2313         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2314         arguments to bfd_elf32_size_dynamic_sections call.
2315         (gldelf32ebmip_place_orphan): Add missing arguments to
2316         lang_leave_output_section_statement call.
2318 2000-07-10  H.J. Lu  <hjl@gnu.org>
2320         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2321         DLL_SUPPORT.
2322         (strhash): Likewise.
2323         (compute_dll_image_base): Likewise.
2324         (pe_undef_found_sym): Likewise.
2325         (pe_undef_cdecl_match): Likewise.
2326         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2327         argument "arch" with ATTRIBUTE_UNUSED.
2329 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
2331         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2333         From  Ryan Bradetich  <rbradetich@uswest.net>
2334         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2336 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
2338         Changes to create multiple linker stubs, positioned immediately
2339         before the section where they are required.
2340         * emultempl/hppaelf.em: Include elf32-hppa.h.
2341         (stub_sec, file_chain): Delete.
2342         (hppaelf_create_output_section_statements): Don't make a stub
2343         section here.
2344         (hook_stub_info): New struct.
2345         (hook_in_stub): New function.
2346         (hppaelf_add_stub_section): New function.
2347         (hppaelf_finish): Do nothing for relocateable links.  Modify the
2348         call to elf32_hppa_size_stubs.  Move code for updating section
2349         layout from here...
2350         (hppaelf_layaout_sections_again): ..to here, a new function.
2352         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2353         broken list handling.  Pass in a pointer to the list.
2354         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2355         for above changes.
2356         (hppaelf_before_parse): Prototype.
2357         (hppaelf_set_output_arch): Prototype.
2358         (hppaelf_create_output_section_statements): Prototype.
2359         (hppaelf_delete_padding_statements): Prototype.
2360         (hppaelf_finish): Prototype.
2362         Merge from elf32.em
2363         * emultempl/hppaelf.em: Include ctype.h.
2364         (struct orphan_save): New.
2365         (gld${EMULATION_NAME}_place_orphan): New.
2366         (output_rel_find): New.
2367         (hppaelf_get_script): Update from elf32.em.
2368         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2369         Change emulation_name field to "${EMULATION_NAME}".  Add
2370         gld${EMULATION_NAME}_place_orphan.
2372         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
2373         ehppalinux.o, sort it.  Regenerate dependencies.
2374         (ehppalinux.c): Depend on hppaelf.em
2375         * Makefile.in: Regenerate.
2377         * configure.tgt: targ_emul=hppalinux for hppa*linux
2379         * emulparams/hppalinux.sh: New.
2380         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2382 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
2384         * lexsup.c (parse_args): Copy section name.
2386 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
2388         * emultempl/pe.em: institute the following search order for
2389         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2390         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
2391         static lib (libfoo.a) if none of the above are found.
2393 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
2395         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2396         (longopts): New --{enable,disable}-auto-image-base options.
2397         (gld_${EMULATION_NAME}_list_options): Document.
2398         (gld_${EMULATION_NAME}_parse): Handle.
2399         (strhash): New static function.
2400         (compute_dll_image_base): New static function.
2401         (gld_${EMULATION_NAME}_set_symbols): Use.
2403 2000-07-05  DJ Delorie  <dj@redhat.com>
2405         * MAINTAINERS: new
2407 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
2409         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2410         * emulparams/elf32btsmip.sh: New file.
2411         * Makefile.am: Add traditional mips target.
2412         * Makefile.in: Rebuild.
2414 2000-07-01  H.J. Lu  <hjl@gnu.org>
2416         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2417         automake to use YLWRAP.
2418         * Makefile.in: Rebuild.
2420 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
2422         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
2423         (CLEANFILES): Add DEPA.
2424         * Makefile.in: Regenerate.
2426 2000-06-30  Timothy Wall  <twall@ppc>
2428         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2429         the page in the upper octet of the address.
2431 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
2433         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2435 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
2437         * NEWS: arm-elf does --gc-sections too.
2439 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
2441         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2442         find one.
2443         * Makefile.in: Regenerate.
2445 2000-06-21  H.J. Lu  <hjl@gnu.org>
2447         * Makefile.am: Rebuild dependency.
2448         * Makefile.in: Rebuild.
2450 2000-06-20  H.J. Lu  <hjl@gnu.org>
2452         * Makefile.am: Rebuild dependency.
2453         * Makefile.in: Rebuild.
2455 2000-06-20  Timothy Wall  <twall@cygnus.com>
2457         * scripttempl/tic54xcoff.sc: New.
2458         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2459         * gen-doc.texi: Add flag for TI COFF.
2460         * ld.texinfo: Add documentation for TI COFF handling switches.
2461         * emultempl/ticoff.em: New. TI COFF handling.
2462         * configure.tgt: Add tic54x target.
2463         * Makefile.am: Add tic54x target.
2464         * Makefile.in: Ditto.
2466 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
2468         * ldmain.c (set_scripts_dir): Correct pointer comparison when
2469         checking for backslashes.
2471 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
2473         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2475 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
2477         * NEWS: Update list of targets supporting --gc-sections.
2479         * scripttempl/elf.sc: KEEP .eh_frame contents.
2480         * scripttempl/elfd30v.sc: Same here.
2482 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
2484         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2485         and m68hc11 (elf).
2486         * Makefile.in: Rebuild.
2487         * configure.tgt: Recognize m68hc12 and m68hc11.
2488         * scripttempl/elfm68hc12.sc: New file.
2489         * emulparams/m68hc12elfb: New emulation.
2490         * emulparams/m68hc12elf: New emulation.
2491         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
2492         (includes a memory.x script to define the ROM and RAM banks).
2493         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2494         New configuration files for support of Motorola 68hc11
2496 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
2498         * ldmain.c (main): Only change SEC_READONLY for final link.
2500 2000-06-13  H.J. Lu  <hjl@gnu.org>
2502         * configure: Regenerate.
2504 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
2506         * configure.in (VERSION): Update to show this is the CVS mainline.
2508 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2510         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2511         input objects to be ECOFF.
2512         (check_sections): einfo takes %B, not %P, to print a BFD name.
2514 2000-06-05  Michael Matz <matz@ifh.de>
2516         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2517         version scripts.
2519         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2521 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
2523         * emulparams/avr1200.sh (STACK): Define as 0.
2524         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2525         * emulparams/avr4433.sh (STACK): Likewise.
2526         * emulparams/avr44x4.sh (STACK): Likewise.
2527         * emulparams/avr85xx.sh (STACK): Likewise.
2528         * emulparams/avrmega103.sh (STACK): Likewise.
2529         * emulparams/avrmega161.sh (STACK): Likewise.
2530         * emulparams/avrmega603.sh (STACK): Likewise.
2531         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2532         (__stack): Define from ${STACK} for main().
2534 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
2536         * Makefile.am: Update dependencies with "make dep-am"
2537         * Makefile.in: Regenerate.
2539 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
2541         * ldmain.c: Include filenames.h.
2542         (set_scripts_dir): Support backslashes in program name.
2544 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
2546         * ldmain.c (main): When deciding if ".text" section should be
2547         read-only, don't forget to reset SEC_READONLY because it
2548         could be already set.
2550 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
2552         * ld.1: Add documentation for new command line option:
2553                 --section-start <sectionname>=<sectionorg>
2554         This is a generic version of -Ttext etc. which accepts
2555         any section name as a parameter instead of just text/data/
2556         bss.
2557         * ld.texinfo: More docs.
2558         * NEWS: More docs.
2559         * lexsup.c: (parse_args): Recognize new command line option.
2560         (ld_options): Add new option.
2562 2000-05-18  H.J. Lu  <hjl@gnu.org>
2564         * lexsup.c (parse_args): `i' == `r', not `q'.
2566 Thu May 18 10:47:57 2000  Jeffrey A Law  (law@cygnus.com)
2568         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2570 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
2571               Rick Gorton          <gorton@scrugs.lkg.dec.com>
2573         Add support for '-q' == '--emit-relocs' switch.
2574         * ldmain.c (main): Default to false.
2575         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2576         * NEWS: Describe the emitrelocations switch.
2577         * ld.texinfo: Describe the emitrelocations switch.
2579 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
2581         * emultempl/pe.em (_open_dynamic_archive): New function: Search
2582         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2583         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2584         link options.
2586 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
2588         * lexsup.c (parse_args): Update the year in the copyright notice.
2590 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
2592         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2593         Replace defines with those from intl/libgettext.h to quieten gcc
2594         warnings.
2596 2000-05-10  H.J. Lu  <hjl@gnu.org>
2598         * ldlang.c (open_input_bfds): Don't load the same file within
2599         a group again if the whole archive has been loaded already.
2601 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
2603         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2604         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2605         strtoul.
2607 Mon May  1 17:34:34 2000  Jim Wilson  <wilson@cygnus.com>
2609         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2611         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2612         host "ia64-*-linux-gnu*".
2614 2000-04-29  Andreas Jaeger  <aj@suse.de>
2616         * ld.h: Correctly check GCC version.
2618 Tue Apr 25 11:20:43 2000  Jeffrey A Law  (law@cygnus.com)
2620         * Makefile.am: Add PA64 support.  Add missing dependencies for
2621         PA32 elf support.
2622         * Makefile.in: Rebuilt.
2623         * configure.tgt: Add PA64 support (currently disabled).
2625 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
2627         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2628         (output_rel_find): New function.
2629         (hold_section, hold_use): Delete.
2630         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2631         hold_interp): Make local to place_orphan.
2632         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2633         rather than place_section to find possible previous use of orphan.
2634         Similarly find the place-holder output sections.  Use returned
2635         value from lang_enter_output_section_statement rather than calling
2636         lang_output_section_statement_lookup.
2637         * emultempl/armelf.em: Same here.
2638         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2640         * ldlang.c (lang_enter_output_section_statement): Return output
2641         section statement.
2642         * ldlang.h (lang_enter_output_section_statement): Change
2643         declaration too.
2645         * ldlang.h (lang_output_section_statement): Export it.
2646         * ldlang.c (lang_output_section_statement): Ditto.
2648 2000-04-24  Nick Clifton  <nickc@cygnus.com>
2650         * ld.texinfo (Output Section Data): Add note that section data
2651         commands cannot appear outside of section directives.
2653 2000-04-2  Matthew Green  <mrg@cygnus.com>
2655         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2657 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
2658                           David Mosberger  <davidm@hpl.hp.com>
2660         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2661         (eelf64_ia64.c): New rule.
2662         * Makefile.in: Rebuild.
2663         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2664         * emulparams/elf64_ia64.sh: New file.
2666 2000-04-21  Richard Henderson  <rth@cygnus.com>
2668         * scripttempl/elfd30v.sc: Place .gcc_except_table.
2670 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
2672         * dep-in.sed: Match space at start of file name, not at end.
2674 2000-04-18  H.J. Lu  <hjl@gnu.org>
2676         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2677         lang_leave_output_section_statement () after calling
2678         lang_enter_output_section_statement ().
2679         * emultempl/armelf.em: Likewise.
2681 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
2683         * emultempl/elf32.em (struct orphan_save): Add section field.
2684         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2685         better order, and place first orphan section as we did before the
2686         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
2687         Don't call make_bfd_section here, let wild_doit do the job for us.
2688         Don't build a statement list when we'll only throw it away.
2689         * emultempl/armelf.em: Ditto.
2690         * emultempl/pe.em: Similarly.
2692 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
2694         * scripttempl/elfppc.sc: Remove.
2695         * emulparams/elf32ppc.sh: Use elf.sc.
2696         * emulparams/elf32lppc.sh: Use elf.sc.
2697         * emulparams/elf32ppclinux.sh: Use elf.sc.
2698         * emulparams/elf32ppcsim.sh: New file.
2699         * emulparams/elf32lppcsim.sh: New file.
2700         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
2701         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2702         * Makefile.in: Regenerate.
2703         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2705 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
2707         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2708         ~SEC_ALLOC sections too.  Init start address of debug sections.
2709         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2710         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2711         Also set all relocateable section start addresses.
2713 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
2715         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2716         Add new BSS_PLT variable for when .plt need not be contained in
2717         the file.  Move _etext so that it is also after .fini, and provide
2718         both etext and _etext with a leading underscore.  Mark the start
2719         and end of .sbss.
2721 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
2723         * emultempl/elf32.em (struct orphan_save): New.
2724         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2725         hold_interp): Make them struct orphan_save.
2726         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2727         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2728         the end of the relevant section list.  Also add associated section
2729         statements to the end of any previous orphan statements.
2730         * emultempl/armelf.em: Similarly.
2731         * emultempl/pe.em: Similarly.
2733 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
2735         * ld.texinfo (Simple Example): Remove extraneous paragraph.
2737 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
2739         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
2740         --enable-build-warnings option.
2741         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2742         * Makefile.in, configure: Re-generate.
2744 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
2746         * po/ld.pot: Regenerate.
2748         * lexsup.c (help): Restore translated part of bug string.
2750         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2751         (DEP): Quote when passing vars to sub-make.  Add warning message
2752         to end.
2753         (DEP1): Rewrite for "gcc -MM".
2754         (CLEANFILES): Add DEP2.
2755         Update dependencies.
2756         * Makefile.in: Regenerate.
2758 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
2760         * ld.h: #include "bin-bugs.h"
2761         * lexsup.c (help): Use REPORT_BUGS_TO.
2763 2000-03-27  Denis Chertykov  <denisc@overta.ru>
2765         * configure.tgt (avr-*-*): New target support.
2766         * Makefile.am: Likewise.
2767         * scripttempl/elf32avr.sc: New script file.
2768         * emulparams/avr1200.sh: New file.
2769         * emulparams/avr23xx.sh: New file.
2770         * emulparams/avr4433.sh New file.
2771         * emulparams/avr44x4.sh New file.
2772         * emulparams/avr85xx.sh New file.
2773         * emulparams/avrmega103.sh New file.
2774         * emulparams/avrmega161.sh New file.
2775         * emulparams/avrmega603.sh New file.
2776         * Makefile.in: Regenerate.
2778 2000-03-09  Andreas Jaeger  <aj@suse.de>
2780         * Makefile.am (check-DEJAGNU): Also unset LANG.
2781         * Makefile.in: Rebuild.
2783 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
2785         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2786         archive.
2788 2000-03-02  H.J. Lu  <hjl@gnu.org>
2790         * emulparams/elf32mcore.sh: Include "getopt.h".
2792 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
2794         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2796 2000-03-01  H.J. Lu  <hjl@gnu.org>
2798         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2799         * emulparams/shpe.sh: Likewise.
2801 2000-03-01  Nick Clifton  <nickc@cygnus.com>
2803         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2804         to unused parameters.
2806         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2807         functions only used by DLL code.
2808         (_place_orphan): Initialise 'dollar'.
2810 2000-03-01  H.J. Lu  <hjl@gnu.org>
2812         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2813         indicate if the undefined symbol is a fatal error or not.
2814         Don't delete the output file if "fatal" is false.
2816 2000-02-29  H.J. Lu  <hjl@gnu.org>
2818         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
2819         Set LC_COLLATE and LC_ALL to null and export them. It is for
2820         sort which expects the C locale.
2821         Add $(LIBS) to all $(HOSTING_LIBS).
2822         * Makefile.in: Rebuild.
2824 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
2826         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2827         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2828         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2829         (ld_emulation_xfer_struct): Add missing NULL initialiser for
2830         find_potential_libraries.
2832 2000-02-28  Jim Blandy  <jimb@redhat.com>
2834         * ldgram.y (exclude_name_list): Don't require a comma to separate
2835         list entries; the lexer considers commas to be valid part of a
2836         filename, so in something like `foo, bar' the comma is considered
2837         part of the first filename, `foo,'.
2838         * ld.texinfo: Update section on EXCLUDE_FILE lists.
2840 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
2842         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2843         host "i[3456]86-*-freebsdelf*".
2845 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
2847         * scripttempl/i386go32.sc: Move misplaced semicolons.
2849 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
2851         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2852         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2853         (eelf64hppa.c, ehppaelf.c): Remove targets.
2854         * Makefile.in: Rebuild.
2856 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2858         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2859         GNU/Linux/sparc, but keep the default as 32.
2861         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
2862         it default if sparcv9 or sparc64.
2864 2000-02-24  Nick Clifton  <nickc@cygnus.com>
2866         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2867         * Makefile.in: Regenerate.
2868         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2870         * ldemul.h (ld_emulation_xfer_struct): Add new field:
2871         find_potential_libraries.
2872         * ldemul.c (ldemul_find_potential_libraries): New function.
2874         * ldfile.c (ldfile_open_file_search): Allow function to be
2875         exported.
2876         (ldfile_open_file): Call ldemul_find_potential_libraries.
2877         * ldfile.h: Add prototype for ldfile_open_file_search.
2879         * pe-dll.c: Add support for ARM, MIPS and SH targets.
2881         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
2882         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
2884         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2885         (gld_X_find_potential_libraries): New function.  Search for
2886         libraries called "*.lib".
2888         * scripttempl/pe.sc: Add .pdata section.
2890 2000-02-23  Richard Henderson  <rth@cygnus.com>
2892         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2893         Add and use memory regions.
2895 2000-02-23  Linas Vepstas (linas@linas.org)
2897         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2899         * Makefile.am: Add support for Linux/IBM 370.
2900         * configure.tgt: Likewise.
2902         * Makefile.in: Regenerate.
2904 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
2906         * ldlang.c (print_input_section, print_data_statement,
2907         print_reloc_statement, print_padding_statement, insert_pad,
2908         size_input_section, lang_check_section_addresses,
2909         lang_size_sections, lang_do_assignments, lang_set_startof,
2910         lang_one_common): Change `opb' to unsigned.
2911         (lang_do_assignments): Also change `size' to unsigned.
2913 2000-02-16  Richard Henderson  <rth@cygnus.com>
2915         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2917 2000-02-16  Timothy Wall  <twall@cygnus.com>
2919         * mri.c (mri_draw_tree): Add default LMA region argument to call
2920         to lang_leave_output_section_statement.
2921         * ldlang.h: Update prototypes with LMA region arguments.
2922         * ldlang.c (lang_size_sections): Encapsulate region bounds
2923         checking in os_check_region call.
2924         (os_check_region): New function.
2925         (lang_output_section_statement_lookup): Initialize lma_region.
2926         (lang_leave_output_section_statement): Add LMA region argument.
2927         (lang_leave_overlay): Ditto.
2928         * ldgram.y: Handle LMA region syntax.
2929         * ld.texinfo (Output Section Description): Describe LMA region usage.
2930         * emultempl/armelf.em (gld$place_orphan): Add default value for
2931         lma region in call to lang_leave_output_section_statement.
2932         * emultempl/elf32.em (gld$place_orphan): Add default value for
2933         lma region in call to lang_leave_output_section_statement.
2934         * emultempl/pe.em (gld$place_orphan): Add default value for
2935         lma region in call to lang_leave_output_section_statement.
2938 2000-02-04  Timothy Wall  <twall@redhat.com>
2940         * ldlang.c (lang_check_section_addresses): Use bytes instead of
2941         octets when calculating section end addresses.
2943 2000-02-04  Timothy Wall  <twall@redhat.com>
2945         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2947 2000-02-03  Timothy Wall <twall@redhat.com>
2949         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2950         octet count.
2951         * ldlang.c (print_input_section, print_data_statement,
2952         print_reloc_statement, print_padding_statement): Print target
2953         address values and section sizes as bytes, not octets.
2954         (insert_pad) Calculate padding size in octets, and adjust "dot"
2955         by bytes.
2956         (size_input_section) Always adjust "dot" by bytes, not octets.
2957         (lang_check_section_addresses, lang_do_assignments) Adjust
2958         "dot" by bytes, not octets.  Use the larger of the directive size
2959         or octets_per_byte for the number of octets actually allocated in
2960         the output section.
2961         (lang_set_startof) Make sure STARTOF returns a target address.
2962         (lang_one_common) Record size changes in octets.
2963         (lang_abs_symbol_at_end_of) Section end symbol's value is
2964         recorded in target bytes.
2965         * ld.texinfo:   Updated description of BYTE, SHORT, LONG, etc.
2966         to be clear about behavior when an octet is smaller than one byte.
2968 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
2970         * ldcref.c (output_cref): Don't pass message strings to printf
2971         as format arg.
2972         Update copyright.
2974         * ldmisc.c (vfinfo): Same here.
2975         Update copyright.
2977 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
2979         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2980         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2981         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2982         Add missing NULL initialisers, and comments.
2984         * testsuite/ld-srec/sr3.cc (__rethrow): New.
2986 2000-01-21  Nick Clifton  <nickc@cygnus.com>
2988         * ldlang.c (lang_size_sections): Fix typo in comment.
2990 2000-01-18  H.J. Lu  <hjl@gnu.org>
2992         * ldlang.c (lang_size_sections): Also update the current
2993         address of a region if the SEC_NEVER_LOAD bit is not set.
2995 2000-01-10  Philip Blundell  <pb@futuretv.com>
2997         * configure.tgt (arm*-*-conix*): New target.
2999 2000-01-07  Nick Clifton  <nickc@cygnus.com>
3001         * ld.texinfo (Options): Remind users to preceed linker command
3002         line switches with -Wl, (or whatever is appropriate) if it is
3003         being invoked by a comnpiler driver program.
3004         Fix description of the behaviour of the -n command line switch.
3006 Wed Jan  5 08:02:12 2000  Catherine Moore  <clm@cygnus.com>
3008         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
3009         (name_list): New.
3010         * ld.texinfo (EXCLUDE_FILE): Update documentation.
3011         * ldgram.y (wildcard_spec): Support a list of excluded_files.
3012         (exclude_name_list): New.
3013         ldlang.c (walk_wild_section): Support list of excluded files.
3014         (print_wild_statement): Likewise.
3015         (lang_add_wild): Likewise.
3016         * ldlang.h (lang_wild_statement_type): Likewise.
3017         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3019 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
3021         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3022         (process_def_file): Use.
3023         (pe_dll_compat_implib): New variable.
3024         (make_one): Use.
3026         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3027         pe_dll_compat_implib.
3029         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3030         compat-implib options.
3031         (gld_${EMULATION_NAME}_list_options): List new options.
3032         (gld_${EMULATION_NAME}_parse_args): Handle.
3034         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3035         dll.
3037         * deffilep.y (opt_name): Allow "." in name.
3039 For older changes see ChangeLog-9899
3041 Local Variables:
3042 mode: change-log
3043 left-margin: 8
3044 fill-column: 74
3045 version-control: never
3046 End: