1 2003-02-21 Bob Wilson <bob.wilson@acm.org>
3 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
4 call os_region_check when it is set.
5 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
7 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
8 only for the last call, not on every relaxation iteration.
9 * ldlang.h (lang_size_sections): Update prototype.
10 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
11 to lang_size_sections.
12 (pe_exe_fill_sections): Likewise.
13 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
14 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
15 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
16 (ppc_layout_sections_again): Likewise.
18 2003-02-21 Bob Wilson <bob.wilson@acm.org>
20 * gen-doc.texi: Set ARM and HPPA variables.
21 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
22 title capitalization more consistent. Add missing menu entries for
23 machine-specific sections and conditionalize them consistently.
24 Conditionalize text that is irrelevant when SingleFormat is set.
25 Add @group divisions to improve page breaks in long examples.
26 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
27 is correct. Remove "FIXME" comment about not using
28 @raisesections/@lowersections. Use @raisesections/@lowersections
29 consistently for machine-specific sections. Change to be more polite
30 about poor bug reports. Replace FDL appendix with include of fdl.texi.
31 Move WIN32 node to match its order in the menus.
34 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
36 * configure.in (TARGET_SYSTEM_ROOT): Set default to
37 ${exec_prefix}/${target_alias}/sys-root. Match explicit
38 '${exec_prefix}' (in addition to the expansion thereof) as
42 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
44 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
46 2003-02-20 Harri Porten <porten@kde.org>
48 * ldgram.y (vers_defns): Allow optional trailing semicolon in
51 2003-02-18 Alan Modra <amodra@bigpond.net.au>
53 * emultempl/ppc32elf.em: New file.
54 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
55 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
56 (eelf32lppcnto.c): Likewise.
57 (eelf32lppcsim.c): Likewise.
58 (eelf32ppcnto.c): Likewise.
59 (eelf32ppc.c): Likewise.
60 (eelf32ppc_fbsd.c): Likewise.
61 (eelf32ppcsim.c): Likewise.
62 (eelf32ppclinux.c): Likewise.
63 * Makefile.in: Regenerate.
65 2003-02-18 Alan Modra <amodra@bigpond.net.au>
67 * ld.texinfo: Remove spaces between @samp and opening brace.
69 2003-02-18 Alan Modra <amodra@bigpond.net.au>
71 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
73 (ppc_before_allocation): Don't do optimizations if wrong hash table.
74 (gld${EMULATION_NAME}_finish): Ditto.
76 2003-02-17 Nick Clifton <nickc@redhat.com>
78 * ldmain.c (main) Default allow_shlib_undefined to true.
79 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
80 (parse_args): Parse the new switch.
81 * ld.texinfo: Document new switch and default behaviour of
82 allowing undefined symbols in shared libraries.
84 2003-02-11 Dmitry Diky <diwil@mail.ru>
86 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
87 * scripttempl/elf32msp430_3.sc: Likewise.
89 2003-02-11 Uwe Stieber <uwe@wwws.de>
91 * configure.tgt: Add support for kaOS as cross build target
94 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
96 * hppaelf.em (group_size): Change default back to 1.
98 2003-02-09 Alan Modra <amodra@bigpond.net.au>
100 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
102 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
104 * hppaelf.em (group_size): Change default to -1.
106 2003-02-07 Nick Clifton <nickc@redhat.com>
108 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
110 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
111 no-pipeline-knowledge. This will prevent the getopt package from
112 thinking that there are any shorter abbreviations for
113 --no-pipeline-knowledge.
115 2003-02-07 Jakub Jelinek <jakub@redhat.com>
117 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
118 which already have it. Avoid duplicates.
120 2003-02-06 Jakub Jelinek <jakub@redhat.com>
122 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
123 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
124 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
126 2003-02-05 Alan Modra <amodra@bigpond.net.au>
128 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
129 call ppc64_elf_tls_optimize.
131 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
133 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
134 outside of GNU/Linux conditional.
136 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
138 * deffilep.y (def_get_module): New function: locate an already
140 * deffile.h (def_get_module): New prototype.
141 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
142 a dll multiple times.
144 2003-01-23 Alan Modra <amodra@bigpond.net.au>
146 * emultempl/sh64elf.em: Include elf32-sh64.h.
147 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
148 sh64_elf_section_data.
149 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
151 2003-01-23 Wu Yongwei <adah@netstd.com>
153 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
154 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
155 cross-80th-column-margin "an" to the next line.
157 2003-01-21 Nick Clifton <nickc@redhat.com>
159 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
160 * emulparams/tic3xcoff_onchip.sh: ...this.
161 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
162 * Makefile.in: Regenerate.
164 2003-01-21 Fabio Alemagna <falemagn@aros.org>
166 * configure.tgt: Handle i[3456]86-*-aros*
168 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
170 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
171 * Makefile.in: Regenerate
172 * configure.tgt: Added extra target emulations
173 * emulparams/tic3xcoff.sh: Remove old settings
174 * emulparams/tic4xcoff.sh: Ditto
175 * emulparams/tic3xcoff-onchip.sh: Added new
176 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
177 * scripttempl/tic3xcoff.sc: Remove
179 2003-01-17 Andreas Jaeger <aj@suse.de>
181 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
184 2003-01-16 Alan Modra <amodra@bigpond.net.au>
186 * Makefile.in: Regenerate.
188 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
190 * ld/ld.texinfo (node WIN32): Some clarifications
191 and formatting fixups.
193 2003-01-09 Chris Demetriou <cgd@broadcom.com>
195 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
196 order, and handle (ignore) -mips32r2.
198 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
200 * ldmain.c (main): Make sure ld_sysroot is initialized.
202 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
204 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
206 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
207 (GENSCRIPTS): Add @use_sysroot@.
208 * Makefile.in: Regenerated.
209 * configure.host: Move setting of NATIVE_LIB_DIRS to...
210 * configure.tgt: ... here. Use ${target} instead of ${host}
212 * configure.in: Add --with-sysroot.
213 * configure: Regenerated.
214 * genscripts.sh: Accept use_sysroot option. Set new variables
215 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
216 $use_sysroot. Don't search $tool_lib if $use_sysroot.
217 * ldfile.c (ldfile_add_library_path): Handle leading '='.
218 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
219 (ld_sysroot): New variable.
220 (main): Initialize ld_sysroot.
221 * ldmain.h (ld_sysroot): New extern.
222 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
223 searching $EMULATION_LIBPATH.
224 (gld${EMULATION_NAME}_add_sysroot): New function.
225 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
226 (gld${EMULATION_NAME}_after_open): Likewise. Only search
227 environment variables if $NATIVE.
228 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
229 * NEWS: Mention --with-sysroot.
231 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
232 instead of setting LIB_PATH.
233 * emulparams/elf32ppc.sh: Likewise.
234 * emulparams/elf64_s390.sh: Likewise.
235 * emulparams/elf64_sparc.sh: Likewise.
236 * emulparams/elf64ppc.sh: Likewise.
237 * emulparams/elf_x86_64.sh: Likewise.
239 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
240 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
242 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
244 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
246 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
248 * Makefile.am (ldmain.o): Pass BINDIR.
249 * Makefile.in: Regenerated.
250 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
253 2003-01-02 Ben Elliston <bje@redhat.com>
255 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
256 (eelf32iq2000.c): New target.
257 * Makefile.in: Regenerate.
258 * configure.tgt: Handle iq2000-*-elf.
259 * emulparams/elf32iq10.sh: New file.
260 * emulparams/elf32iq2000.sh: New file.
261 * scripttempl/iq2000.sc: New file.
263 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
265 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
266 and _pei386_runtime_relocator to the exclude list.
268 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
270 * ldfile.c: Fix comment typos.
271 * ldlang.c: Likewise.
273 * pe-dll.c: Likewise.
275 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
277 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
278 * Makefile.am (ld.1): Depend on configdoc.texi
280 * Makefile.in: Regenerated.
282 2002-12-24 Dmitry Diky <diwil@mail.ru>
284 * Makefile.am: Add msp430 target.
285 * configure.tgt: Likewise.
286 * Makefile.in: Regenerate.
287 * emulparams/msp430x???.sh: New files. Linker script parameters
288 for various msp430 configurations.
289 * gen-doc.texi: Enable msp430 documenation.
290 * ld.texinfo: Document msp430 sections.
291 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
292 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
294 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
295 Charles Wilson <cwilson@ece.gatech.edu>
297 * ld/config.in (HAVE_REALPATH): New entry.
298 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
300 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
302 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
305 2002-12-23 Alan Modra <amodra@bigpond.net.au>
307 * ldmain.c (main): Init "strip_discarded".
308 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
309 (OPTION_NO_STRIP_DISCARDED): Define.
310 (ld_options): Add "strip-discarded" and "no-strip-discarded".
311 (parse_args): Handle them.
313 2002-12-23 Nick Clifton <nickc@redhat.com>
315 * ld.h (struct args_type): Add new field
316 'accept_unknown_input_architecture'.
317 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
319 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
320 bfd_arch_get_compatible.
321 * ldfile.c (ldfile_try_open_bfd): Likewise.
322 * lexsup.c (ld_options): Add new command line switch
323 --accept-unknown-input-architecture and its inverse.
324 (parse_args): Handle --accept-unknown-input-architecture.
325 * ld.texinfo: Document new linker option.
326 * NEWS: Mention new linker option.
328 2002-12-20 Alan Modra <amodra@bigpond.net.au>
330 * ldmain.c (main): Re-order link_info initialization. Init all
333 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
335 * ld.texinfo: Clarify and extend the documentation
336 in the Machine Dependent, WIN32 section.
338 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
340 * ld.texinfo: Add win32 machine depending section.
341 * gen-doc.texi: Enable win32 machine depending section.
343 * configure.host: Add win32 library search path.
345 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
347 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
348 import when auto-import is disabled.
350 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
352 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
353 account for trailing '\0'.
355 2002-12-17 Nick Clifton <nickc@redhat.com>
357 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
358 so that it is not confused with -c.
360 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
361 Charles Wilson <cwilson@ece.gatech.edu>
363 * configure.in: Add check for realpath function.
364 * configure: Regenerate.
365 * config.in: Regenerate.
366 * aclocal.m4: Regenerate.
367 * deffile.h: Add .data field to def_file_import
369 * pe-dll.c (pe_proces_import_defs): Use .data field of
370 def_file_import structure to initialize flag_data field of
371 def_file_export structure.
372 (pe_implied_import_dll): New variables exp_funcbase and
373 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
374 not filename (which may be a symlink). Scan the sections and
375 initialize [data|bss]_[start|end]. When scanning the export
376 table, skip _nm_ symbols, and mark any symbols whose rva indicates
377 that it is in the .bss or .data sections as data.
378 * sysdep.h: Include limits.h and sys/param.h, and define
379 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
380 exists, NULL otherwise.
381 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
382 pe_process_import_defs before pe_find_data_imports, so that
383 auto-import will check the virtual implib as well as "real"
385 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
386 symlinks to their target; check that the target's extension is
387 .dll before calling pe_implied_import_dll(), not the filename
388 itself (which may be a symlink).
390 2002-12-10 Alan Modra <amodra@bigpond.net.au>
392 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
393 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
396 2002-12-08 Alan Modra <amodra@bigpond.net.au>
398 * ldlang.h: Formatting.
400 2002-12-07 Alan Modra <amodra@bigpond.net.au>
402 * ldlang.c (init_os): Ensure sections mentioned in load_base
405 2002-12-05 Alan Modra <amodra@bigpond.net.au>
407 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
408 load_base for orphans that follow a section with load_base set.
410 2002-12-01 H.J. Lu <hjl@gnu.org>
412 * ld.texinfo: Remove the extra `;' in sample version script.
414 2002-11-30 Alan Modra <amodra@bigpond.net.au>
416 * configure.host: Correct dynamic-linker for powerpc64 hosts.
418 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
419 * Makefile.in: Regenerate.
421 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
422 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
423 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
424 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
425 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
426 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
427 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
428 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
429 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
430 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
431 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
432 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
433 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
435 2002-11-27 David O'Brien <obrien@FreeBSD.org>
437 * configure.host: Fix generic FreeBSD configuration entry.
439 2002-11-27 H.J. Lu <hjl@gnu.org>
441 * ld.texinfo: Add the missing `;' to sample version scripts.
443 2002-11-20 Alan Modra <amodra@bigpond.net.au>
445 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
447 2002-11-14 Egor Duda <deo@logos-m.ru>
449 * ldmain.c (main): Make runtime relocs disabled by default. Remove
450 assignment which has no effect.
451 * pe-dll.h (pe_create_import_fixup): Change prototype.
452 * pe-dll.c (make_runtime_pseudo_reloc): New function.
453 (pe_create_runtime_relocator_reference): Ditto.
454 (pe_create_import_fixup): Handle relocations with non-zero addends.
455 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
456 --disable-runtime-pseudo-reloc.
457 (make_import_fixup): Handle relocations with non-zero addends. Create
458 an external reference to _pei386_runtime_relocator symbol if at least
459 one pseudo reloc was created.
460 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
461 --disable-runtime-pseudo-reloc options.
463 2002-11-12 Earl Chew <earl_chew@agilent.com>
465 * ldlang.c (lang_add_section): Discard debugging sections that have
466 been marked SEC_EXCLUDE.
468 2002-11-12 Nick Clifton <nickc@redhat.com>
470 * configure.in (ALL_LINGUAS): Add da.
471 * configure: Regenerate.
472 * po/da.po: New Danish translation.
474 2002-11-12 Alan Modra <amodra@bigpond.net.au>
476 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
477 (LDEMUL_BEFORE_ALLOCATION): Define.
478 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
480 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
482 2002-11-11 Christopher Faylor <cgf@redhat.com>
484 * configure.tgt (LIB_PATH): Default to searching w32api directory under
487 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
489 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
490 of restricted auto-export libs.
492 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
494 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
495 creative library naming instances like, e.g., libstdc++-2.a.
497 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
499 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
500 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
502 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
504 * deffilep.y (def_lex): Handle '@' as first character of an ID.
505 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
506 (make_one): Don't prefix decorated fastcall symbols with '_'.
507 (pe_process_import_defs): Likewise.
508 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
509 symbols to cdecl names or vise-versa.
511 2002-10-13 Eric Kohl <ekohl@rz-online.de>
513 * pe-dll.c (process_def_file): Handle fastcall symbols when
514 generating undecorated aliases. Don't prefix decorated fastcall
516 (fill_exported_offsets): Don't prefix decorated fastcall symbols
519 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
521 * emultempl/aix.em: Use include <> for generated headers.
522 * emultempl/beos.em: Likewise.
523 * emultempl/elf32.em: Likewise.
524 * emultempl/pe.em: Likewise.
525 * ldctor.c: Likewise.
527 * ldfile.c: Likewise.
528 * ldlang.c: Likewise.
531 * ldmain.c: Likewise.
532 * ldmisc.c: Likewise.
533 * ldwrite.c: Likewise.
534 * lexsup.c: Likewise.
536 * pe-dll.c: Likewise.
538 2002-10-23 Jakub Jelinek <jakub@redhat.com>
540 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
541 sections into .rel{,a}.dyn.
543 2002-10-23 Nick Clifton <nickc@redhat.com>
545 * lexsup.c (OPTION_NO_OMAGIC): Define.
546 (ld_options): Add "no-omagic" option.
547 (parse_args): Parse --no-omagic.
548 * ld.texinfo: Document --no-omagic.
549 * NEWS: Mention new option.
551 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
553 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
554 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
556 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
558 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
559 emulation name. Set LIB_PATH only for native tools, and
560 search the ABI-specific versions of NATIVE_LIB_DIRS before the
561 .../lib variants, not instead of them. Mostly copied from...
562 * emulparams/elf32ppc.sh: ... here. Fixed typo.
563 * emulparams/elf64bmip-defs.sh: Backed out.
564 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
565 * emulparams/elf64btsmip.sh: Likewise.
566 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
567 TEXT_DYNAMIC): Removed.
569 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
571 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
572 (GENERATE_SHLIB_SCRIPT): Set to yes.
573 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
574 * emulparams/elf32bmipn32.sh: here.
575 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
576 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
577 * emulparams/elf64bmip-defs.sh: New file. Extend
578 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
579 * emulparams/elf64bmip.sh: Bring in definitions from
581 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
583 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
584 * emulparams/elf64btsmip.sh: Bring in definitions from
586 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
587 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
589 2002-10-16 Jakub Jelinek <jakub@redhat.com>
591 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
592 (s390-*-linux*): Add elf64_s390 emulation if want64.
593 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
594 genscript.sh changes.
595 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
596 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
598 2002-10-15 Alan Modra <amodra@bigpond.net.au>
600 * ldlang.c (load_symbols): Revert last change.
602 2002-10-14 Alan Modra <amodra@bigpond.net.au>
604 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
606 (lang_reasonable_defaults): Don't compare against false.
607 (size_input_section): Likewise.
608 (lang_size_sections_1): Likewise.
609 (lang_do_assignments): Likewise.
610 (lang_add_output): Likewise.
612 * Makefile.am: Run "make dep-am".
613 * Makefile.in: Regenerate.
614 * ldver.c: #include "bfdver.h".
616 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
618 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
620 * scripttempl/elfm68hc12.sc: Likewise.
622 2002-10-11 Alan Modra <amodra@bigpond.net.au>
624 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
626 * ldgram.y (memory_spec): Provide empty action.
627 (section <NAME>): Likewise.
629 2002-10-10 Jakub Jelinek <jakub@redhat.com>
631 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
632 they have OUTPUT_FORMAT not matching actual output format.
633 * ldlang.c (lang_get_output_target): New function.
634 (open_output): Use it.
635 * ldlang.h (lang_get_output_target): New prototype.
637 2002-10-10 Alan Modra <amodra@bigpond.net.au>
639 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
640 when orphan is .rel, .rela when orphan is .rela.
641 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
642 first. Remove outsecname var.
644 2002-10-09 Richard Shann <richard.shann@superh.com>
645 Stephen Clarke <stephen.clarke@superh.com>
647 * Makefile.am: Add eshelf32_linux.o and
648 eshlelf32_linux.o, new emulations for sh64 Linux.
649 * Makefile.in: Regenerate.
650 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
651 * emulparams/shelf32_linux.sh: New file.
652 * emulparams/shlelf32_linux.sh: New file.
654 2002-10-08 H.J. Lu <hjl@gnu.org>
656 * ldlang.c (lang_file_exist): Removed.
657 (new_afile): Revert the last change.
658 * ldlang.h (lang_file_exist): Removed.
659 * lexsup.c (parse_args): Revert the last change.
661 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
663 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
665 (make_one): Create _nm_<symbol> for data only.
667 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
669 * ldlang.c (lang_file_exist): New function.
670 (new_afile): Abort if the filename to be added matches the linker
672 * ldlang.h: Add prototype for lang_file_exist.
673 * lexsup.c (parse_args): Abort if the output filename matches
674 one of the input filenames.
676 2002-10-02 Alan Modra <amodra@bigpond.net.au>
678 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
680 2002-09-30 Alan Modra <amodra@bigpond.net.au>
682 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
683 * scripttempl/elfm68hc11.sc: Likewise.
684 * scripttempl/elfm68hc12.sc: Likewise.
686 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
687 reloc sections just before .rel.plt/.rela.plt.
688 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
689 Only put loadable reloc sections in hold_rel.
691 2002-09-29 H.J. Lu <hjl@gnu.org>
693 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
695 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
697 From "Anita Kulkarni" <AnitaK@kpit.com>
698 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
701 2002-09-25 Alan Modra <amodra@bigpond.net.au>
703 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
705 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
706 SEGMENT_SIZE alignment.
707 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
708 (SEGMENT_SIZE): Define.
710 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
711 (fold_binary): Correct abs - non-abs case.
712 (fold_trinary): New. Split out from exp_fold_tree.
714 2002-09-24 Alan Modra <amodra@bigpond.net.au>
716 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
717 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
718 for start of .data, instead align up to 256M boundary.
719 * scripttempl/aix.sc: Likewise.
721 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
723 * scripttempl/i386go32.sc: Handle bss unique sections.
725 2002-09-21 Alan Modra <amodra@bigpond.net.au>
727 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
729 2002-09-17 Stan Cox <scox@redhat.com>
731 * emulparams/elf32bmipn32-defs.sh: New file.
732 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
733 * emulparams/elf32btsmipn32.sh: Likewise.
734 * emulparams/elf64bmip.sh: Likewise.
735 * emulparams/elf64btsmip.sh: Likewise.
737 2002-09-16 Bruno Haible <bruno@clisp.org>
739 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
741 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
744 2002-09-11 Nick Clifton <nickc@redhat.com>
746 * NEWS: New TI port supports both C4x and C3x series of DSPs.
748 * po/tr.po: Updated Turkish translation.
750 2002-09-06 Jeffrey A Law (law@redhat.com)
752 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
754 2002-09-02 Nick Clifton <nickc@redhat.com>
756 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
758 * emulparams/v850.sh (TEMPLATE_NAME): Define.
760 2002-08-30 Nick Clifton <nickc@redhat.com>
762 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
763 used. Change INSN to start at 0x01000000 and extend for
764 256K (ignoring holes). Start the STACK on a word aligned
766 (.rodata): Start it at the READONLY_START_ADDR.
768 2002-08-30 Alan Modra <amodra@bigpond.net.au>
770 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
772 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
774 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
775 added makefile targets for this file.
776 * Makefile.in: Regenerate.
777 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
778 * NEWS: Mention new port.
780 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
782 * emulparams/tic3xcoff.sh: New file.
783 * emulparams/tic4xcoff.sh: New file.
784 * scripttempl/tic3xcoff.sc: New file.
785 * scripttempl/tic4xcoff.sc: New file.
787 2002-08-28 Alan Modra <amodra@bigpond.net.au>
789 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
790 strtoul and strtoull with bfd_scan_vma.
791 (gld${EMULATION_NAME}_read_file): Likewise.
793 2002-08-28 Alan Modra <amodra@bigpond.net.au>
795 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
797 2002-08-27 Egor Duda <deo@logos-m.ru>
799 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
800 Add symbols for application to access them.
802 2002-08-27 Nick Clifton <nickc@redhat.com>
804 * emultempl/armelf.em: Revert this patch, it is not needed.
806 2002-08-22 Adam Nemet <anemet@lnxw.com>
808 2002-08-20 Dan Kegel <dank@kegel.com>
810 * configure.in: added --with-lib-path argument to ld's configure
812 * ld/NEWS: Document new switch.
813 * ld/README: Mention new switch.
814 * configure: Regenerate.
815 * Makefile.in: Regenerate.
818 2001-04-25 Christopher Faylor <cgf@cygnus.com>
820 * Makefile.in (LIB_PATH): Make configurable.
821 (GENSCRIPTS): Set LIB_PATH in environment.
822 * configure.in: Substitute LIB_PATH.
824 2002-08-22 Adam Nemet <anemet@lnxw.com>
826 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
827 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
828 depending on the type of the function.
829 (arm_elf_convert_thumb_symbol_to_address): New function.
831 2002-08-22 Graeme Peterson <gp@qnx.com>
833 * Makefile.am: Add esh{l}elf_nto.o files.
834 * Makefile.in: Regenerate.
835 * configure.tgt: Add support for sh-**-nto* targets.
836 * emulparams/shelf_nto.sh: New file.
837 * emulparams/shlelf_nto.sh: New file.
839 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
841 * ldlang.c (offsetof): Define if not defined.
843 2002-08-14 H.J. Lu <hjl@gnu.org>
845 * configure.tgt: Always enable 64bit emulations for 32bit
848 2002-08-13 Alan Modra <amodra@bigpond.net.au>
850 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
851 (MAXPAGESIZE): Set to 1.
853 * ld.h (ALIGN_N): Delete.
854 * ldexp.h (align_n): Declare.
855 * ldexp.c (align_n): New function.
856 (fold_binary): Use align_n instead of ALIGN_N.
857 (exp_fold_tree): Likewise.
858 * ldlang.c (lang_size_sections_1): Likewise.
859 (lang_one_common): Likewise.
860 * ld.texinfo (ALIGN): Remove power of 2 restriction.
862 2002-07-31 Graeme Peterson <gp@qnx.com>
864 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
865 * Makefile.am: Add eelf32{l}ppcnto.o files.
866 * Makefile.in: Regenerate.
867 * emulparams/elf32lppcnto.sh: New file.
868 * emulparams/elf32ppcnto.sh: New file.
870 2002-08-07 H.J. Lu <hjl@gnu.org>
872 * ld.texinfo: Document --no-undefined-version.
874 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
875 `script.' fields to 0.
877 * ldmain.c (main): Initialize the allow_undefined_version to
880 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
881 (ld_options): Add --no-undefined-version.
882 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
884 2002-08-07 Nick Clifton <nickc@redhat.com>
886 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
887 an interworking bfd if there are input bfds. (107501)
889 2002-08-06 Alan Modra <amodra@bigpond.net.au>
891 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
894 2002-08-01 Nick Clifton <nickc@redhat.com>
896 * emulparams/armelf.sh: Revert previous delta.
897 * scripttempl/elf.sc: Revert previous delta.
899 2002-07-31 H.J. Lu <hjl@gnu.org>
901 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
904 2002-07-31 H.J. Lu <hjl@gnu.org>
906 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
907 64bit BFD is selected.
909 2002-07-31 H.J. Lu <hjl@gnu.org>
911 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
912 if 64bit BFD is selected.
914 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
916 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
917 link_info.common_skip_ar_aymbols.
918 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
920 * ldmain.c (main): Initialize new field
921 link_info.common_skip_ar_aymbols.
923 2002-07-31 Adam Nemet <anemet@lnxw.com>
925 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
927 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
930 2002-07-31 Nick Clifton <nickc@redhat.com>
932 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
933 of the PDP-11 and 2.11BSD a.out support.
935 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
937 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
939 * Makefile.in: Regenerate.
940 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
941 n32 ABI emulations for these 64 bit targets.
942 * emulparams/elf32bmipn32.sh: Expand comment.
943 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
945 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
947 2002-07-30 Graeme Peterson <gp@qnx.com>
949 * configure.tgt: Add support for arm-*-nto target.
950 * Makefile.am: Add earmnto.o file.
951 * Makefile.in: Regenerate.
952 * NEWS: Mention port of ARM support to QNX.
953 * emulparams/armnto.sh: New file.
955 2002-07-30 Jakub Jelinek <jakub@redhat.com>
957 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
958 for relocatable link.
959 (lang_size_sections_1): Don't make .tbss zero size for relocatable
962 2002-07-26 Bernd Schmidt <bernds@redhat.com>
964 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
967 2002-07-25 Nick Clifton <nickc@redhat.com>
969 * po/sv.po: Updated Swedish translation.
970 * po/es.po: Updated Spanish translation.
971 * po/fr.po: Updated French translation.
973 2002-07-24 Nick Clifton <nickc@redhat.com>
975 * po/sv.po: Updated Swedish translation.
976 * po/es.po: Updated Spanish translation.
978 2002-07-23 Nick Clifton <nickc@redhat.com>
980 * po/fr.po: Updated French translation.
982 2002-07-20 Alan Modra <amodra@bigpond.net.au>
984 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
985 bomb on /DISCARD/ input section.
986 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
987 * emultempl/mmo.em (mmo_place_orphan): Likewise.
989 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
991 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
994 2002-07-16 Denis Chertykov <denisc@overta.ru>
995 Nick Clifton <nickc@redhat.com>
996 Frank Ch. Eigler <fche@redhat.com>
997 John Healy <jhealy@redhat.com>
999 * configure.tgt: Add support for ip2k-elf.
1000 * Makefile.am: Add support for ip2k-elf.
1001 * Makefile.in: Regenerate.
1002 * emulparams/elf32ip2k.sh: New file.
1003 * scripttempl/ip2k.sc: New file
1004 * NEWS: Mention support for new port.
1006 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1008 * NEWS: Add 'Changes in 2.13'.
1010 2002-07-14 H.J. Lu <hjl@gnu.org>
1012 * ld.texinfo: Document a .symver takes precedence over a
1015 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1017 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1018 (COMMONPAGESIZE): Define.
1020 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1022 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1024 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1026 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1027 powerpc-*-openbsd* and sparc64-*-openbsd*.
1028 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1029 * Makefile.in: Regenerate.
1030 * emulparams/hppaobsd.sh: New file.
1032 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1034 * ldlang.c (print_wild_statement): Fix output formatting.
1036 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1038 * ldlang.c: (strip_excluded_output_sections): New function.
1039 (lang_process): Call it.
1040 (lang_size_sections_1): Revert 2002-06-10 change.
1042 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1044 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1046 * Makefile.in: Regenerate.
1048 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1050 * ldfile.c (ldfile_try_open_bfd): Formatting.
1052 * ldmisc.c (demangle): Move so that it doesn't intrude between
1053 vfinfo comment and body. Add comment.
1055 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1057 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1059 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1061 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1062 * ldlang.c (entry_sym): Likewise.
1063 (ldlang_undef_chain_list_type): Likewise.
1064 (lang_finish): Adjust references to entry_symbol.
1065 (lang_add_entry): Likewise.
1066 (lang_gc_sections): Use link_info.gc_sym_list.
1067 (lang_process): Set link_info.gc_sym_list.
1068 * ldlex.l: Include bfdlink.h.
1069 * ldmain.c (main): Init link_info.gc_sym_list.
1070 * emultempl/aix.em: Adjust references to entry_symbol.
1071 * emultempl/armcoff.em: Likewise.
1072 * emultempl/armelf.em: Likewise.
1073 * emultempl/pe.em: Likewise.
1074 * emultempl/ppc64elf.em (ppc_after_open): New function.
1075 (LDEMUL_AFTER_OPEN): Define.
1076 * emulparams/elf64ppc.sh: KEEP .opd sections.
1078 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1080 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1081 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1082 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1083 (EEPROM_START_ADDR): Define.
1084 (EEPROM_MEMORY): Define.
1085 * emulparams/m68hc12elf.sh: Likewise.
1086 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1087 section to put soft registers in .page0.
1088 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1090 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1092 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1093 section. Add ${RELOCATING-0}.
1095 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1097 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1098 (OTHER_SECTIONS): Define.
1099 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1100 (OTHER_SECTIONS): Undef.
1102 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1104 * ldmisc.c (demangle): Restore dots stripped from sym name.
1106 2002-06-25 H.J. Lu <hjl@gnu.org>
1108 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1109 * Makefile.in: Regenerated.
1111 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1113 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1114 the size of attached object files, to allow make the object files
1115 available via FTP or HTTP and to mention that the mail will be
1116 sent to a mailing list.
1118 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1120 * ld/configure.host (romp): Drop support.
1122 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1124 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1125 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1127 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1129 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1130 format specifier used to print BFD name.
1132 2002-06-18 Dave Brolley <brolley@redhat.com>
1134 From Catherine Moore, Michael Meissner, Jim Blandy:
1135 * emulparams/elf32frv.sh: New file.
1136 * configure.tgt: Support frv-*-*.
1137 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1138 (eelf32frv.c): New target.
1140 2002-06-17 Tom Rix <trix@redhat.com>
1142 * emultempl/elf32.em: gld*_get_script: Check for
1143 GENERATE_COMBRELOC_SCRIPT.
1144 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1145 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1147 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1149 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1151 2002-06-12 H.J. Lu <hjl@gnu.org>
1153 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1154 false if xvec doesn't match.
1156 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1158 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1160 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1162 * ldexp.c: Replace CONST with const.
1163 * ldfile.c: Likewise.
1164 * ldfile.h: Likewise.
1165 * ldlex.l: Likewise.
1167 * pe-dll.h: Likewise.
1169 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1171 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1173 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1175 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1176 to -1 == implicit enable.
1177 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1178 initialize link_info.pei386_auto_import to -1 == implicit
1180 (gld_${EMULATION_NAME}_parse_args): When processing
1181 --enable-auto-import and --disable-auto-import options, use
1182 '1' and '0' instead of 'true' and 'false'.
1183 (pe_find_data_imports): Only issue message about auto-import
1184 when the feature is implicitly enabled. Downgrade message to
1185 informational instead of warning.
1187 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1189 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1191 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1193 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1194 HOSTING_CRT0 and HOSTING_LIBS.
1196 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1198 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1200 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1202 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1203 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1205 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1207 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1208 SEC_EXCLUDE sections when doing a relocatable link.
1210 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1212 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1213 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1214 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1215 (eshlelf64_nbsd.c): New rules.
1216 * Makefile.in: Regenerate.
1217 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1218 (sh64-*-netbsd*): New targets.
1219 * emulparams/shelf32_nbsd.sh: New file.
1220 * emulparams/shelf64_nbsd.sh: New file.
1221 * emulparams/shlelf32_nbsd.sh: New file.
1222 * emulparams/shlelf64_nbsd.sh: New file.
1224 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1226 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1228 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1230 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1231 C++ constructors/destructors, loosely based on the m68hc11 port.
1233 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1235 * Makefile.in: Regenerate.
1236 * aclocal.m4: Regenerate.
1237 * config.in: Regenerate.
1238 * configure: Regenerate.
1240 2002-05-31 Graeme Peterson <gp@qnx.com>
1242 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1243 (ei386nto.c): Add rule.
1244 * Makefile.in: Regenerate.
1245 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1246 * emulparams/i386nto.sh: New file.
1248 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1250 * NEWS: Add entry for VAX ELF support.
1252 2002-05-29 Matt Thomas <matt@3am-software.com>
1253 Jason Thorpe <thorpej@wasabisystems.com>
1255 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1257 (evaxnbsd.c): New rules.
1258 * Makefile.in: Regenerate.
1259 * configure.tgt (vax-*-netbsdelf*)
1261 (vax-*-netbsd*): New targets.
1262 * emulparams/elf32vax.sh: New file.
1263 * emulparams/vaxnbsd.sh: New file.
1265 2002-05-29 Adam Nemet <anemet@lnxw.com>
1267 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1268 bfd_for_interwork, instead add glue sections to each input bfd.
1269 (bfd_for_interwork): New global.
1270 (arm_elf_set_bfd_for_interworking): New function.
1271 (arm_elf_before_allocation): Use it.
1273 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1275 * Makefile.am: Add DLX make target.
1276 * configure.tgt: Add DLX configuration.
1277 * Makefile.in: Regenerate.
1278 * emulparams/elf32_dlx.sh: New file
1279 * scripttempl/dlx.sc: New file
1281 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1283 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1284 * Makefile.in: Regenerate.
1285 * emulparams/elf_chaos.sh: Use elf_chaos script.
1286 * scripttempl/elf_chaos.sc: New file.
1288 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1290 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1291 addresses and regions from here...
1292 (lang_get_regions): ...to this new function.
1293 (lang_leave_output_section_statement): Use lang_get_regions.
1294 (lang_leave_overlay): Likewise.
1295 * mri.c (mri_draw_tree): Pass null as last argument to
1296 lang_leave_output_section_statement.
1297 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1298 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1299 * emultempl/pe.em (gld*_place_orphan): Likewise.
1301 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1303 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1305 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1307 * ldemul.c: Fix formatting.
1308 * ldfile.c: Likewise.
1309 * pe-dll.c: Likewise.
1310 * pe-dll.h: Likewise.
1312 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1314 * ldlang.c (lang_process): Formatting, grammar.
1316 * ldlex.l: Use #include "" instead of <> for local header files.
1318 2002-05-24 TAMURA Kent <kent@netbsd.org>
1320 * configure.tgt: Add a target for i386-netbsdpe.
1322 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1324 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1325 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1326 output section if necessary. Handle .tbss.
1327 (lang_size_sections): Clear _raw_size for .tbss section
1328 (it allocates space in PT_TLS segment only).
1329 * ldwrite.c (build_link_order): Build link order for .tbss too.
1331 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1333 * configure.in: Correct spelling of AC_PREREQ.
1335 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1337 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1339 (autofilter_objlist): Add crtbegin.o, crtend.o.
1341 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1343 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1344 (longopts): Add new option --exclude-libs.
1345 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1346 (gld_${EMULATION_NAME}_parse_args): Use it.
1347 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1348 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1349 from whole archives.
1350 (pe_dll_add_excludes): Set excludes->type.
1351 (auto_export): Add new variable libname and set to archive basename if
1352 abfd. Use it when filtering default and user-specified libarary
1353 excludes. Let string "ALL" mean all libs when filtering user-specified
1355 * ld.texinfo: Document --exclude-libs.
1357 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1359 * ldemul.c (ldemul_new_vers_pattern): New function.
1360 * ldemul.h (ldemul_new_vers_pattern): Declare.
1361 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1362 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1363 * emultempl/ppc64elf.em (dotsyms): New static var.
1364 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1365 (LDEMUL_NEW_VERS_PATTERN): Define.
1366 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1367 (PARSE_AND_LIST_LONGOPTS): Likewise.
1368 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1369 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1371 * emultempl/armcoff.em: Likewise.
1372 * emultempl/armelf_oabi.em: Likewise.
1373 * emultempl/beos.em: Likewise.
1374 * emultempl/elf32.em: Likewise.
1375 * emultempl/generic.em: Likewise.
1376 * emultempl/gld960.em: Likewise.
1377 * emultempl/gld960c.em: Likewise.
1378 * emultempl/linux.em: Likewise.
1379 * emultempl/lnk960.em: Likewise.
1380 * emultempl/m68kcoff.em: Likewise.
1381 * emultempl/mipsecoff.em: Likewise.
1382 * emultempl/pe.em: Likewise.
1383 * emultempl/sunos.em: Likewise.
1384 * emultempl/ticoff.em: Likewise.
1385 * emultempl/vanilla.em: Likewise.
1387 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1389 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1390 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1391 (LIB_SEARCH_DIRS): No need to use "tr".
1392 (COMPILE_IN): Only set for native targets.
1393 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1394 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1395 * configure.tgt (powerpc*): Set tdir_*.
1396 (powerpcle*): Correct targ_extra_emuls.
1397 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1398 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1400 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1402 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1403 calling lang_add_entry.
1405 2002-05-21 H.J. Lu (hjl@gnu.org)
1407 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1409 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1411 * ld.texinfo: Updated for --allow-multiple-definition and
1414 * ldmain.c (main): Initialize the allow_multiple_definition
1417 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1418 (ld_options): Add --allow-multiple-definition.
1419 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1421 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1423 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1424 (earmelfb_nbsd.c): New rule.
1425 * Makefile.in: Regenerate.
1426 * configure.tgt (armeb-*-netbsdelf*): New target.
1427 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1428 (arm-*-netbsd*): Likewise.
1429 * emulparams/armelfb_nbsd.sh: New file.
1431 2002-05-18 Tom Rix <trix@redhat.com>
1433 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1436 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1438 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1439 * Makefile.in: Regenerate.
1440 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1442 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1444 * emulparams/avr1.sh: New file.
1445 * emulparams/avr2.sh: New file.
1446 * emulparams/avr3.sh: New file.
1447 * emulparams/avr4.sh: New file.
1448 * emulparams/avr5.sh: New file.
1449 * scripttempl/avr.sc: New file.
1451 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1453 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1454 (lang_place_orphans): Abort if just_syms_flag.
1456 2002-05-10 Tom Rix <trix@redhat.com>
1458 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1459 architecture and machine information in the output bfd.
1460 (gld*_before_parse): Remove old arch and machine code.
1461 (choose_target): Rename to gld*_choose_target.
1462 (rtld): Change type to int.
1463 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1464 objects in XCOFF archives.
1465 * ldfile.h: Update copyright date.
1467 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1469 * ldmain.c (main): Enable -z combreloc by default.
1471 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1473 * Makefile.am: Honour DESTDIR.
1474 * Makefile.in: Regenerate.
1476 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1478 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1479 (lang_enter_overlay): Remove the last two parameters.
1480 (lang_leave_overlay): Take them here instead.
1481 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1482 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1483 than lang_enter_overlay.
1484 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1485 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1486 (lang_size_sections_1): Evaluate it.
1487 (lang_leave_output_section_statement): Rework LMA lookup.
1488 (overlay_lma, overlay_nocrossrefs): Remove.
1489 (lang_enter_overlay): Remove LMA and crossref arguments.
1490 (lang_enter_overlay_section): Don't set the LMA here.
1491 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1492 assignment to the last section's update_dot_tree. Unconditionally
1493 use the load and run-time regions specified in the OVERLAY statement.
1494 Likewise the first section's LMA. Only set the other sections' LMAs
1495 when no load region is given.
1497 2002-05-06 Nick Clifton <nickc@redhat.com>
1499 * po/sv.po: New translation.
1501 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1503 * emultempl/hppaelf.em (build_section_lists): New function.
1504 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1505 and build_section_lists.
1507 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1509 * ld.h: Fix formatting.
1510 * ldexp.c: Likewise.
1511 * ldfile.c: Likewise.
1512 * ldlang.c: Likewise.
1513 * ldmain.c: Likewise.
1514 * lexsup.c: Likewise.
1515 * pe-dll.c: Likewise.
1517 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1519 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1520 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1521 (build_section_lists): Do output_section tests here.
1523 2002-04-30 Tom Rix <trix@redhat.com>
1525 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1527 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1529 Long branch stubs, multiple stub sections.
1530 * emultempl/ppc64elf.em: Include ldctor.h.
1531 (stub_file): New var.
1532 (group_size): New var.
1533 (ppc_create_output_section_statements): New function.
1534 (struct hook_stub_info): New.
1535 (hook_in_stub): New function.
1536 (ppc_add_stub_section): New function.
1537 (ppc_layout_sections_again): New function.
1538 (build_section_lists): New function.
1539 (gld${EMULATION_NAME}_finish): Rewrite.
1540 (real_func): New var.
1541 (ppc_for_each_input_file_wrapper): New function.
1542 (ppc_lang_for_each_input_file): New function.
1543 (lang_for_each_input_file): Define.
1544 (PARSE_AND_LIST_PROLOGUE): Define.
1545 (PARSE_AND_LIST_LONGOPTS): Define.
1546 (PARSE_AND_LIST_OPTIONS): Define.
1547 (PARSE_AND_LIST_ARGS_CASES): Define.
1548 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1550 2002-04-30 Tom Rix <trix@redhat.com>
1552 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1553 -blibpath, -bnolibpath support.
1555 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1557 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1558 (eelf32ppcwindiss.c): New target.
1559 * Makefile.in: Regenerated.
1560 * configure.tgt: Add support for powerpc-*-windiss.
1561 * emulparams/elf32ppcwindiss.sh: New file.
1563 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1565 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1566 * ldexp.c (exp_print_token): Add "infix_p" argument.
1567 (exp_print_tree): Update accordingly.
1569 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1571 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1572 * Makefile.in: Regenerate.
1573 * mpw-elfmips.c: Delete.
1574 * mpw-eppcmac.c: Delete.
1575 * mpw-esh.c: Delete.
1576 * mpw-idtmips.c: Delete.
1578 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1580 * emulparams/shelf32.sh (MACHINE): Now sh5.
1582 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1584 * ldgram.y: Fix syntax warning.
1586 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1588 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1589 to prevent "-n" from being taken as an abbreviation for
1590 "--no-pipeline-knowledge".
1592 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1594 * ldlang.c (lang_size_sections_1): Don't complain about
1595 SEC_NEVER_LOAD sections having no memory region specified.
1597 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1599 2002-04-07 matthew green <mrg@redhat.com>
1601 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1603 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1605 * dep-in.sed: Cope with absolute paths.
1606 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1608 * Makefile.in: Regenerate.
1610 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1612 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1614 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1616 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1617 is smaller than maximum, round dot up to common page boundary.
1619 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1621 * configure.host: Set up for generic hosts first, then tweak as
1622 necessary in more specific targets.
1623 (HOSTING_LIBS): Include libgcc_eh.a if found.
1625 2002-03-23 Andreas Jaeger <aj@suse.de>
1627 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1629 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1631 * Makefile.am: Run "make dep-am".
1632 * Makefile.in: Regenerate.
1634 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1636 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1638 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1640 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1641 add the symbol to the linker hash table immediately.
1642 (lang_place_undefineds): Split symbol creation out..
1643 (insert_undefined): ..to here.
1645 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1647 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1648 the contents of the buffer returned from basename function will are
1649 getting overwritten while still being used.
1651 2002-03-18 Jan Hubicka <jh@suse.cz>
1652 Andreas Jaeger <aj@suse.de>
1653 Andreas Schwab <schwab@suse.de>
1655 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1656 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1657 set libraries to default to lib64 paths.
1659 2002-03-18 Tom Rix <trix@redhat.com>
1661 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1662 * configure.tgt : Same.
1663 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1664 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1665 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1666 emulation parameters for better -b32, -b64 support.
1667 * emulparms/aixrs6.sh : Same.
1668 * emulparms/ppcmacos.sh : Same.
1669 * emultempl/aix.em (choose_target) : Use new emulation parameters
1670 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1671 * Makefile.in : Regenerate.
1673 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1675 * po/fr.po: Updated version.
1677 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1679 * ldmain.c (main): Move .text readonly flag fudges from here..
1680 * ldlang.c (lang_process): ..to here.
1682 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1684 * ldlang.c (lang_check): Remove the word size check added in last
1685 change. Treat emitrelocations case as for relocatable links.
1687 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1689 * po/fr.po: Updated version.
1691 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1693 * ldlang.c (lang_check): Do relocatable link checks first, so that
1694 warn_mismatch can't override. Check compatible and word size too.
1696 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1698 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1700 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1702 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1705 2002-03-04 H.J. Lu <hjl@gnu.org>
1707 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1708 .fini_array in the data segment.
1710 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1712 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1714 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1716 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1717 .init_array, and .fini_array.
1719 2002-02-20 Andreas Schwab <schwab@suse.de>
1721 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1722 .IA64_unwind* in a relocatable link.
1724 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1726 * NEWS: Mark 2.12 branch.
1728 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1730 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1731 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1733 2002-02-18 Tom Rix <trix@redhat.com>
1735 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1736 (gld*_before_allocation): Same.
1737 (gld*_create_output_section_statements): Generate
1738 __rtinit if run time linking. Add librtl.a to the link.
1739 (gld*_read_file): Clean.
1741 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1743 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1745 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1747 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1748 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1749 and eelf64alpha_fbsd.
1750 * Makefile.in: Regenerate.
1751 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1752 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1753 use a FreeBSD-specific emulation rather than the psABI one.
1754 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1755 for all FreeBSD ELF systems.
1756 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1758 * emulparams/elf32ppc_fbsd.sh: Likewise.
1759 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1760 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1761 * emulparams/elf64alpha_fbsd.sh: Likewise.
1762 * emulparams/elf_i386_fbsd.sh: Likewise.
1763 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1765 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1767 * po/tr.po: Updated version.
1769 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1771 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1774 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1776 * emultempl/mmo.em (mmo_after_open): Don't call
1777 _bfd_mmix_check_all_relocs when producing ELF output.
1779 2002-02-15 Richard Henderson <rth@redhat.com>
1781 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1782 definition. Emit a unop+nop pair.
1784 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1786 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1787 for presence of .MMIX.reg_contents.linker_allocated before early
1790 * NEWS: Mention support for MMIX.
1792 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1794 Support arbitrary length fill patterns.
1795 * ld.texinfo (Output Section Fill): Describe fill expressions.
1796 (FILL): Refer to the above.
1797 * ldexp.h (etree_value_type): Add "str" field.
1798 (union etree_union): Add "str" to "value" struct.
1799 (exp_bigintop): Declare.
1800 (exp_get_fill): Declare.
1801 * ldexp.c: Include "safe-ctype.h".
1802 (exp_intop): Set value.str to NULL.
1803 (exp_bigintop): New function.
1804 (new_rel): Pass in "str", and set new.str from it.
1805 (new_rel_from_section): Set new.str to NULL.
1806 (fold_name): Adjust calls to new_rel.
1807 (exp_fold_tree): Likewise.
1808 (exp_get_fill): New function.
1809 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1810 (INT): Returns a "bigint". Adjust all code handling INTs.
1811 (fill_opt): Returns a "fill".
1812 (fill_exp): Split out of fill_opt, use for FILL.
1813 * ldlang.h (struct _fill_type): New.
1814 (fill_type): Move typedef to ldexp.h.
1815 (lang_output_section_statement_type): "fill" is now a pointer.
1816 (lang_fill_statement_type): Likewise.
1817 (lang_padding_statement_type): Likewise.
1818 (lang_add_fill): Now takes a "fill_type *" param.
1819 (lang_leave_output_section_statement): Likewise.
1820 (lang_do_assignments): Likewise.
1821 (lang_size_sections): Likewise.
1822 (lang_leave_overlay_section): Likewise.
1823 (lang_leave_overlay): Likewise.
1824 * ldlang.c: Include ldgram.h after ldexp.h.
1825 (lang_output_section_statement_lookup): Adjust for fill_type change.
1826 (print_fill_statement): Likewise.
1827 (print_padding_statement): Likewise.
1828 (insert_pad): Now takes a "fill_type *" arg.
1829 (size_input_section): Likewise.
1830 (lang_size_sections_1): Likewise.
1831 (lang_size_sections): Likewise.
1832 (lang_do_assignments): Likewise.
1833 (lang_add_fill): Likewise.
1834 (lang_leave_output_section_statement): Likewise.
1835 (lang_leave_overlay_section): Likewise.
1836 (lang_leave_overlay): Likewise.
1837 Adjust all callers of the above function.
1838 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1839 starting with "0X" as well as "0x". Return bigint.str for hex
1840 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1841 Always use base 16 for numbers starting with "$".
1842 * ldmain.c: Include ldgram.h after ldexp.h.
1843 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1844 of bfd_fill_link_order.
1845 * pe-dll.c: Adjust lang_do_assignments calls.
1846 * emultempl/elf32.em: Likewise.
1847 * emultempl/hppaelf.em: Likewise.
1848 * emultempl/ppc64elf.em: Likewise.
1849 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1850 lang_add_assignment call.
1851 * emultempl/pe.em: Likewise.
1853 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1855 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1856 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1857 the pattern in question is not a regexp.
1858 * ldlang.c: Likewise.
1859 * ldlang.h: Likewise.
1860 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1862 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1864 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1865 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1866 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1867 * ldexp.c (exp_data_seg): New variable.
1868 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1869 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1870 (exp_fold_tree): Handle DATA_SEGMENT_END.
1871 Pass allocation_done when recursing instead of hardcoding
1872 lang_allocating_phase_enum.
1873 * ldexp.h (exp_data_seg): New.
1874 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1875 (lang_size_sections): New.
1876 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1877 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1878 if COMMONPAGESIZE is defined.
1879 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1880 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1881 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1882 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1883 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1886 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1888 * Makefile.in: Regenerate.
1890 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1892 * lexsup.c: Remove strtoul declaration.
1894 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1896 * ldmain.c: Add prototype for main ().
1897 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1898 * emultempl/lnk960.em (lnk960_choose_target): Function should
1901 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1903 * ldlang.c (entry_section): New initialised variable.
1904 (lang_finish): Use it.
1905 * ldlang.h (entry_section): Declare.
1906 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1907 entry_section to ".opd".
1909 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1911 * ld.texinfo (Options): Add back in -nostdlib documentation,
1912 which had been inadvertently removed.
1914 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1916 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1917 register section vma to a sane value after emitting error. Make
1918 fatal conditions cause program exit when emitting message.
1920 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1922 * configure.tgt: Add or32-*-rtems target.
1924 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1926 Contribute sh64-elf.
1927 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1928 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1929 in OTHER_RELOCATABLE_SECTIONS.
1930 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1931 * emulparams/shelf32.sh (STACK_ADDR): Define.
1932 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1933 (OTHER_SECTIONS): this. Removed stack settings.
1934 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1935 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1936 2001-03-12 DJ Delorie <dj@redhat.com>
1937 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1938 relaxing if any shmedia or mixed sections are found.
1939 2001-03-07 DJ Delorie <dj@redhat.com>
1940 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1941 einfo. Gracefully decline to output to non-elf formats.
1942 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1943 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1944 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1945 * emulparams/shelf32.sh: Ditto.
1946 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1947 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1949 2001-01-10 Ben Elliston <bje@redhat.com>
1950 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1951 non-portable shell constructs. From Hans-Peter Nilsson.
1952 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1953 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1954 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1955 dependencies to the shell script include chain.
1956 * Makefile.in: Regenerate.
1957 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1958 * emultempl/sh64elf.em: Update and tweak comments.
1959 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1960 make a .cranges section SEC_IN_MEMORY.
1961 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1962 * emultempl/sh64elf.em
1963 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1964 .cranges section found to be necessary; continue and set stored
1965 section contents flags for sections with non-mixed contents.
1966 Use a struct sh64_section_data container and sh64_elf_section_data
1967 to store contents-type flags.
1968 Remove unused update of "isec".
1969 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1970 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1971 access contents-type flags. Assert that the associated container
1972 is initialized. Use that container, not elf_gp_size, to hold size
1973 of linker-generated cranges contents.
1974 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1975 * emultempl/sh64elf.em
1976 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1977 there's already a .cranges section. When section flag difference
1978 is found, don't NULL-check cranges a second time. Tweak comments.
1979 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1980 merging, not max size, as size of ld-generated .cranges contents.
1981 Don't set ELF section flags in output section. When checking for
1982 needed .cranges descriptors, don't use a variable; compare
1983 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1985 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1986 * emultempl/sh64elf.em: New file.
1987 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1988 * Makefile.in: Regenerate.
1989 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1990 (OTHER_RELOCATING_SECTIONS): Ditto.
1991 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1992 * emulparams/shlelf32.sh: Stub out all settings except
1993 OUTPUT_FORMAT. Source shelf32.sh.
1994 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1995 OTHER_RELOCATING_SECTIONS.
1996 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1997 * emulparams/shlelf64.sh: Stub out all settings except
1998 OUTPUT_FORMAT. Source shelf64.sh.
1999 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2000 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2002 (DATA_START_SYMBOLS): Define, provide ___data.
2003 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2004 for consecutive .data section.
2005 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2006 section after .data section.
2007 * emulparams/shlelf64.sh: Ditto.
2008 * emulparams/shelf32.sh: Ditto.
2009 (ALIGNMENT): Define to 8.
2010 * emulparams/shelf32.sh: Ditto.
2011 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2012 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2013 built-in linker scripts.
2014 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2015 * emulparams/shlelf64.sh: New.
2016 * emulparams/shelf64.sh: New.
2017 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2019 * Makefile.am: Add support for shlelf64 and shelf64.
2020 * Makefile.in: Regenerate.
2021 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2022 * configure.tgt (sh64-*-elf*): Add shelf as default.
2023 Add shlelf to targ_extra_emuls.
2024 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2025 * emulparams/shelf32.sh: New file.
2026 * emulparams/shlelf32.sh: New file.
2027 * Makefile.am: Add support for shlelf32 and shelf32.
2028 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2029 * Makefile.in: Regenerate.
2031 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2033 * ldlang.c (lang_reset_memory_regions): Rename from
2034 reset_memory_regions. Change all callers. Make public.
2035 * ldlang.h (lang_reset_memory_regions): Prototype.
2036 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2037 lang_reset_memory_regions before lang_size_sections.
2038 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2039 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2041 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2043 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2044 arithmetic when checking for too many global registers.
2046 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2048 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2049 (ehppanbsd.c): New rule.
2050 * Makefile.in: Regenerate.
2051 * configure.tgt (hppa*-*-netbsd*): New target.
2052 * emulparams/hppalinux.sh: Add comment to check other files
2053 that source this file it is modified, and list which
2055 * emulparams/hppanbsd.sh: New file.
2057 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2059 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2062 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2064 Support on-demand global register allocation from
2065 R_MMIX_BASE_PLUS_OFFSET relocs.
2066 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2067 mmix_set_reg_section_vma. Call
2068 _bfd_mmix_finalize_linker_allocated_gregs.
2069 (mmix_before_allocation): New function.
2070 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2071 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2072 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2073 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2074 before .MMIX.reg_contents.
2075 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2076 (mmo_after_open): New function.
2077 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2078 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2079 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2081 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2083 * emulparams/or32.sh: New file.
2084 * emulparams/or32elf.sh: New file.
2085 * scripttempl/or32.sc: New file.
2086 * configure.tgt : Add support for or32.
2087 * configure: Regenerate
2088 * Makefile.am: Add support for or32.
2089 * Makefile.in: Regenerate.
2090 * NEWS: Mention support for or32.
2091 * po/ld.pot: Regenerate.
2093 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2094 Mitch Lichtenberg <mpl@broadcom.com>
2096 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2097 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2098 reloc creation (ld --embedded-relocs).
2100 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2102 * configure: Regenerated.
2104 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2106 * Makefile.am (install): Depend on install-info.
2107 * Makefile.in: Regenerate.
2109 2002-01-26 Christian Rose <menthos@menthos.com>
2111 * ldmain.c (main): Use full sentences to ease translation.
2113 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2115 * po/fr.po: Updated version.
2117 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2119 * po/es.po: Updated version.
2121 2002-01-25 Andreas Jaeger <aj@suse.de>
2123 * ldlex.l (yy_input): Correct error check.
2125 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2127 * ldmisc.c (demangle): Put back dots when string not demangled.
2129 2002-01-22 Richard Henderson <rth@redhat.com>
2131 * emulparams/elf64alpha.sh (NOP): Use unop.
2133 2002-01-21 Andreas Jaeger <aj@suse.de>
2135 * ldlex.l: Use fread instead of read.
2137 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2139 * configure.tgt (ia64-*-netbsd*): New target.
2141 2002-01-21 H.J. Lu <hjl@gnu.org>
2143 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2145 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2147 2002-01-18 Andreas Jaeger <aj@suse.de>
2149 * ldver.c (ldversion): Update year.
2151 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2153 * po/ld.pot: Regenerate.
2155 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2157 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2158 * Makefile.in: Regenerate.
2159 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2160 * emultempl/ppc64elf.em: New file.
2162 2002-01-15 DJ Delorie <dj@redhat.com>
2164 * scripttempl/pe.sc: Add support for constructor priorities.
2166 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2168 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2169 * emulparams/avr23xx.sh: Likewise.
2170 * emulparams/avr4433.sh: Likewise.
2171 * emulparams/avr44x4.sh: Likewise.
2172 * emulparams/avr85xx.sh: Likewise.
2173 * emulparams/avrmega103.sh: Likewise.
2174 * emulparams/avrmega161.sh: Likewise.
2175 * emulparams/avrmega603.sh: Likewise.
2176 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2178 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2180 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2181 archive is excluded.
2183 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2185 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2186 (eshelf_nbsd.c): New rule.
2187 (eshlelf_nbsd.c): New rule.
2188 * Makefile.in: Regenerate.
2189 * configure.tgt (sh*le-*-netbsdelf*): New target.
2190 (sh*-*-netbsdelf*): New target.
2191 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2192 * ld/emulparams/shelf_nbsd.sh: New emulation.
2193 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2195 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2197 * po/es.po: New file: Spanish translation.
2198 * configure.in (ALL_LINGUAS): Add es.
2199 * configure: Regenerate.
2201 2002-01-06 John Marshall <jmarshall@acm.org>
2203 * ld.texinfo: Note that --emit-relocs is currently only
2204 implemented for ELF.
2206 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2208 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2209 of bfd_section_list_remove and bfd_section_list_insert macros.
2210 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2211 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2213 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2215 * configure.tgt (x86_64-*-netbsd*): New target.
2217 2001-12-21 Tom Rix <trix@redhat.com>
2219 (gld*_create_output_section_statements): New function.
2220 For -binitfini support.
2221 * emultempl/aix.em (gld*_before_parse): Fix comment.
2222 * emultempl/aix.em (gld*_parse_args): Fix comment.
2224 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2226 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2228 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2230 * configure.tgt (arm-*-netbsdelf*): Add target.
2231 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2232 * emulparams/armelf_nbsd.sh: Added.
2233 * Makefile.am: Add rules for earmelf_nbsd.
2234 * Makefile.in: Regenerate.
2236 2001-12-19 Andreas Jaeger <aj@suse.de>,
2237 Susanne Oberhauser <froh@suse.de>
2239 * configure.host: Add rules for x86_64-*linux-gnu. Change
2240 s390x-linux entry to use gcc to report configuration, replace gcc
2241 with $CC in s390-linux
2243 2001-12-19 Andreas Jaeger <aj@suse.de>
2245 * ld.texinfo (VERSION): Fix markup.
2247 2001-12-18 matthew green <mrg@eterna.com.au>
2249 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2250 (m68kelfnbsd.c): New rule.
2251 * Makefile.in: Regenerate.
2252 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2253 (m68*-*-netbsd*4k*): .. this.
2254 (m68*-*-netbsdelf*): New target.
2255 (m68*-*-netbsd*): Also include ELF support.
2256 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2257 * emulparams/m68kelfnbsd.sh: New emulation.
2259 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2261 * ldgram.y (vers_node): Support anonymous version tags.
2262 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2263 tag is not defined together with non-anonymous versions.
2264 * ld.texinfo: Document it.
2266 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2268 * po/tr.po: New file: Turkish translation.
2269 * configure.in (ALL_LINGUAS): Add tr.
2270 * configure: Regenerate.
2272 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2274 * Makefile.am: Add rules for eelf64alpha_nbsd.
2275 * Makefile.in: Regenerate.
2276 * configure.tgt (alpha*-*-netbsd*): Set
2277 targ_emul to elf64alpha_nbsd.
2278 * emulparams/elf64alpha_nbsd.sh: Added.
2280 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2282 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2283 section_tail when fiddling with section list.
2284 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2285 broken into separate strings to make translation easier.
2286 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2287 fiddling with section list.
2288 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2290 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2292 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2294 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2296 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2298 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2300 * emultempl/elf32.em (finish): Supply output_bfd
2301 to bfd_elf*_discard_info.
2302 (OPTION_EH_FRAME_HDR): Define.
2303 (longopts): Add --eh-frame-hdr.
2304 (parse_args): Handle it.
2305 (list_options): Add --eh-frame-hdr to help.
2306 * emultempl/hppaelf.em (finish): Supply output_bfd
2307 to bfd_elf*_discard_info.
2308 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2310 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2312 * lexsup.c (parse_args): Don't pass shortopts to second call to
2313 getopt functions. Restore optind rather than decrementing before
2314 second call. Remove errind as it now duplicates last_optind.
2316 2001-12-11 Christopher Faylor <cgf@redhat.com>
2318 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2320 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2321 Richard Henderson <rth@redhat.com>
2323 * Makefile.am: Add support for xstormy16.
2324 * configure.tgt: Add support for xstormy16.
2325 * Makefile.in: Regenerate.
2326 * emulparams/elf32xstormy16.sh: New file.
2327 * scripttempl/xstormy16.sc: New file.
2329 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2331 * Makefile.in (LIB_PATH): Make configurable.
2332 (GENSCRIPTS): Set LIB_PATH in environment.
2333 * configure.in: Substitute LIB_PATH.
2334 * configure: Regenerate.
2335 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2336 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2338 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2340 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2341 describing the -N option so that it is easier to translate into
2344 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2346 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2347 statements describing a single option with a single, newline
2348 escaped fprintf. This allows better translation into other
2351 * ldmain.c (add_archive_element): Combine multiple strings
2352 into a single string to permit better translation into other
2355 2001-12-05 Tom Rix <trix@redhat.com>
2357 * Makefile.am: Remove eaixppc64.
2358 * Makefile.in: Regenerate.
2360 2001-12-04 Tom Rix <trix@redhat.com>
2362 * emultempl/aix.em (choose_target): Change default target to
2363 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2365 (gld*_read_file): Fix typo.
2366 (change_symbol_mode): Add prototype.
2369 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2370 * emulparams/aixrs6.sh : Same.
2371 * emulparams/ppcmacos.sh : Same.
2372 * emulparams/aixppc64.sh : Delete file.
2373 * emultempl/aix.em : Formatting changes.
2375 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2377 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2378 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2380 (OTHER_END_SYMBOLS): Fix formatting.
2381 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2382 (OTHER_END_SYMBOLS): Fix formatting.
2384 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2386 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2388 2001-12-02 Tom Rix <trix@redhat.com>
2390 * configure.tgt : Remove eaixppc64 emulations.
2391 * Makefile.in : Remove eaixppc64.c
2392 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2393 (ldemul_default_target): Same.
2394 * emultempl/gld960.em (gld960_choose_target): Same.
2395 * emultempl/gld960c.em (gld960_choose_target): Same.
2396 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2397 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2398 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2399 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2400 * emultempl/aix.em (choose_target): New function. Handle emulation of
2403 2001-11-27 H.J. Lu <hjl@gnu.org>
2405 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2406 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2407 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2408 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2409 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2410 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2411 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2412 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2414 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2417 (REL_SDATA): Likewise.
2418 (REL_SBSS): Likewise.
2419 (REL_SDATA2): Likewise.
2420 (REL_SBSS2): Likewise.
2421 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2424 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2426 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2428 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2430 2001-11-22 H.J. Lu <hjl@gnu.org>
2432 * Makefile.in: Regenerated with automake based on automake
2433 1.4-8 in RedHat 7.1.
2435 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2437 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2438 (config.status): Delete rule.
2439 Add extra dependencies to cover sourced emulparams files.
2440 * Makefile.in: Regenerate.
2442 * scripttempl/elf.sc: Order <section>, <section>.* and
2443 corresponding linkonce sections as seen in input files.
2444 Formatting fixes. Zero vma of all sections if not relocating.
2445 (STACK): Define and insert if STACK_ADDR defined.
2446 (OTHER_RELOCATING_SECTIONS): Delete.
2447 (OTHER_END_SYMBOLS): Define.
2448 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2449 (OTHER_READWRITE_SECTIONS): Likewise.
2450 (OTHER_GOT_SECTIONS): Likewise.
2451 (OTHER_SDATA_SECTIONS): Likewise.
2452 (OTHER_BSS_SECTIONS): Likewise.
2453 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2454 (OTHER_READWRITE_SECTIONS): Likewise.
2455 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2456 (OTHER_READWRITE_SECTIONS): Likewise
2458 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2459 (STACK_ADDR): Define.
2460 * emulparams/armelf_oabi.sh: As for armelf.sh.
2461 * emulparams/elf32mcore.sh: As for armelf.sh.
2462 * emulparams/h8300elf.sh: As for armelf.sh.
2463 * emulparams/mn10200.sh: As for armelf.sh.
2464 * emulparams/shelf.sh: As for armelf.sh.
2466 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2467 (OTHER_END_SYMBOLS): Define.
2468 * emulparams/m32relf.sh: As for elf32fr30.sh.
2469 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2470 * emulparams/h8300self.sh: As for elf32fr30.sh.
2472 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2473 defines with RELOCATING test.
2474 (OTHER_SDATA_SECTIONS): Likewise.
2475 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2476 (OTHER_END_SYMBOLS): ..this.
2477 * emulparams/crislinux.sh: As for criself.sh.
2479 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2481 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2482 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2483 normal and linkonce sections as seen in input files.
2484 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2485 (TEXT_DYNAMIC): Likewise.
2486 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2487 (OTHER_SDATA_SECTIONS): Likewise.
2488 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2489 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2490 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2491 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2492 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2493 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2494 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2495 sections as seen in input files.
2496 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2497 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2499 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2500 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2501 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2502 (OTHER_SECTIONS): Instead, use this..
2503 (OTHER_END_SYMBOLS): ..and this.
2505 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2506 * emulparams/elf32bsmip.sh: Likewise.
2507 * emulparams/elf32btsmip.sh: Likewise.
2508 * emulparams/elf32ebmip.sh: Likewise.
2509 * emulparams/elf32lmip.sh: Likewise.
2510 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2511 * emulparams/elf32lsmip.sh: Likewise.
2512 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2513 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2514 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2515 * emulparams/elf64btsmip.sh: Likewise.
2516 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2517 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2518 * emulparams/elf32ppclinux.sh: Likewise.
2519 * emulparams/elf32ppcsim.sh: Likewise.
2520 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2521 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2522 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2523 * emulparams/h8300self.sh: Likewise.
2524 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2525 * emulparams/sh.sh: Comment.
2526 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2527 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2528 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2530 2001-11-21 David Heine <dlheine@tensilica.com>
2531 Alan Modra <amodra@bigpond.net.au>
2533 * ldlang.c (map_input_to_output_sections): Replace "break"
2534 accidentally removed with 2001-08-03 change.
2535 (lang_gc_sections_1): Likewise.
2537 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2539 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2541 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2543 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2544 of false when calling lang_size_sections.
2545 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2547 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2549 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2550 function when LDEMUL_FINISH isn't set to the same name. Don't
2551 call ${LDEMUL_FINISH}.
2552 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2553 * emultempl/armelf.em (arm_elf_finish): Call
2554 gld${EMULATION_NAME}_finish.
2555 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2556 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2557 hppaelf_layout_sections_again if necessary.
2558 (need_laying_out): New var.
2559 (hppaelf_layaout_sections_again): Rename to
2560 hppaelf_layout_sections_again. Clear need_laying_out.
2561 (PARSE_AND_LIST_OPTIONS): Format text.
2563 2001-11-14 H.J. Lu <hjl@gnu.org>
2565 * emultempl/armelf.em (arm_elf_finish): Renamed from
2566 gld${EMULATION_NAME}_finish.
2567 (LDEMUL_FINISH): Set to arm_elf_finish.
2569 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2571 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2572 (struct ld_emulation_xfer_struct): Use it.
2574 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2576 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2577 additional symbols referenced by newer crt0.o files from HP.
2579 2001-11-12 Anthony Green <green@redhat.com>
2581 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2583 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2585 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2586 * Makefile.in: Regenerate.
2588 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2590 * ld.texinfo: Use @command for commands, @option for options.
2591 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2593 * Makefile.in: Rebuild.
2595 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2597 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2598 Add support for targets.
2600 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2602 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2603 * configure: Regernate.
2604 * po/fr.po: New file.
2605 * po/sv.po: New file.
2607 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2609 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2610 as little endian default and to support big endian.
2612 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2614 * ld.texinfo (Options): Document new option, -nostdlib.
2615 * lexsup.c (OPTION_NOSTDLIB): New definition.
2616 (ld_options): Add entry for "nostdlib".
2617 (parse_args): Handle OPTIONS_NOSTDLIB.
2618 * ldfile.c (ldfile_add_library_path): Don't add directories
2619 to the search path if they weren't specified on the command line
2620 and -nostdlib was specified.
2621 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2623 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2625 * lexsup.c (parse_args): Prevent infinite parsing loop when
2626 "-rpath.a" is specified on the command line.
2627 Replace calls to fprintf with calls to einfo.
2629 2001-10-31 John Marshall <jmarshall@acm.org>
2631 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2632 appear only once across all the linker scripts involved in a link
2633 invocation no longer applies. Make the documentation reflect
2636 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2638 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2640 (sh-*-linux*): Added targ_extra_libpath.
2642 2001-10-31 David Heine <dlheine@tensilica.com>
2644 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2645 for padding statements.
2647 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2649 * configure.tgt (mmix-*-*): New target.
2650 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2651 Add dependencies to match.
2652 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2653 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2654 scripttempl/mmo.sc: New files.
2655 * gen-doc.texi: @set MMIX.
2656 * ld.texinfo: Ditto.
2657 [MMIX] Add MMIX node.
2658 * Makefile.in: Regenerate.
2660 2001-10-29 Kazu Hirata <kazu@hxi.com>
2662 * ldlang.c: Fix a comment typo.
2664 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2666 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2667 entries, and match *-*-linux*.
2669 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2671 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2672 with ldlex_script, ldlex_popstate.
2673 (ifile_p1): Likewise.
2674 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2676 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2677 to 1. Don't BEGIN(SCRIPT).
2678 (lex_redirect): Similarly.
2679 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2681 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2683 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2684 __EH_FRAME_END__ and accept eh frames into data section.
2685 Add ctor and dtor sections.
2687 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2689 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2690 (auto-export): Fix indentation.
2692 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2694 * pe-dll.c (autofilter_objectlist): Add startup objects
2696 (auto-export): Constify char * p.
2697 Extract file basename and use strcmp rather than ststr
2700 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2702 * ldmain.c (get_emulation): Improve comment about the handling
2705 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2707 * po/POTFILES.in: Regenerate.
2709 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2711 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2712 -z nocopyreloc and -z nocombreloc usage strings.
2714 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2716 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2719 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2721 * scripttempl/armaout.sc: Place .bss section after end of aligned
2722 data section to match behaviour of aout code in constructrion of
2725 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2727 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2728 startup files for mingw32 dlls to list.
2730 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2732 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2734 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2736 * configure.tgt (targ): Add arm9e-*-elf.
2738 2001-10-05 H.J. Lu <hjl@gnu.org>
2740 * genscripts.sh: Fix a typo in the last change.
2742 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2744 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2745 -z nocombreloc in usage.
2747 2001-10-03 Jim Blandy <jimb@redhat.com>
2749 * genscripts.sh: Include a comment at the top of each generated
2750 script, explaining its purpose.
2752 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2754 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2755 * NEWS: Mention -z nocopyreloc.
2756 * ld.texinfo (Options): Describe nocopyreloc.
2758 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2760 * configure: Regenerate.
2762 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2764 * ldver.h (ld_program_version): Remove declaration.
2765 * lexsup.c (parse_args): Move printing of copyright message..
2766 * ldver.c (ldversion): .. to here.
2767 Use BFD_VERSION_STRING in place of BFD_VERSION.
2768 (ld_program_version): Remove.
2769 * Makefile.am (Makefile): Depend on bfd/configure.in.
2771 * Makefile.in: Regenerate.
2773 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2775 * Makefile.am: Update dependencies with "make dep-am".
2776 * Makefile.in: Regenerate.
2778 2001-09-29 John Reiser <jreiser@BitWagon.com>
2780 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2781 * lexsup.c: Add --no-define-common commandline option.
2782 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2783 * ldlex.l: Likewise.
2784 * ld.h: Add command_line.inhibit_common_definition.
2785 * ldmain.c (main): Initialize.
2786 * ld.texinfo: Document.
2788 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2790 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2792 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2794 * ldmisc.c (USE_STDARG): Remove.
2795 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2800 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2801 declarations. Update copyright.
2803 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2805 * pe-dll.c: Remove obsoleted declaration of
2806 pe_get_data_import_dll_name.
2807 (pe_create_import_fixup): Fix thinko.
2809 * ld.texinfo(enable-auto-import): Clarify the explanation.
2811 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2813 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2814 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2815 DLL_SUPPORT controlled code.
2817 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2819 * emultempl/pe.em(pe_data_import_dll): Make static.
2820 (pe_get_data_import_dll_name): New accessor function.
2821 * pe-dll.c(pe_create_import_fixup): call
2822 pe_get_data_import_dll_name() from pe.em, instead of
2823 directly accessing pe_data_import_dll variable from pe.em.
2825 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2827 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2828 (def_file_add_directive): Use ISSPACE instead of isspace.
2829 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2830 isdigit/isxdigit/isalpha/isalnum.
2831 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2832 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2833 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2834 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2836 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2837 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2839 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2840 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2841 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2842 (ctor_prio): Use ISDIGIT instead of isdigit.
2843 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2844 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2845 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2847 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2848 (stricpy): Use TOLOWER instead of isupper/tolower.
2849 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2850 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2851 (lex_warn_invalid): Use ISPRINT instead of isprint.
2852 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2853 (main): For gettext, also set the LC_CTYPE locate facet.
2854 (add_keepsyms_file): Use ISSPACE instead of isspace.
2855 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2856 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2857 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2858 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2859 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2860 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2861 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2862 (quoteput): Use ISSPACE instead of isspace.
2863 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2866 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2868 * deffilep.y (def_stash_module): Constify "name" param.
2870 * pe-dll.c: Replace CONST with const throughout.
2871 (quick_symbol): Constify "n1", "n2", "n3" params.
2872 (make_singleton_name_thunk): Constify "import" param. Make
2873 "buffer_len" a size_t.
2874 (make_import_fixup_entry): Constify "name", "fixup_name",
2875 "dll_symname" params.
2876 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2877 (pe_get32): Likewise.
2878 (pe_implied_import_dll): Likewise.
2880 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2881 (sort_by_section_name): Likewise.
2883 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2884 (make_import_fixup): Cast printf arg, rel->address to long rather
2886 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2888 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2890 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2891 defines BufferSize. Increase buffer size by one.
2893 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2895 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2897 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2899 * configure.tgt: Add arm-openbsd target.
2901 2001-09-12 H.J. Lu <hjl@gnu.org>
2903 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2905 (ALL_64_EMULATIONS): Here.
2906 * Makefile.in: Regenerated.
2908 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2910 * emultempl/pe.em(make_import_fixup): change signature to
2911 take asection as well as arelec; we need this for proper
2912 error reporting. Only call pe_create_import_fixup() if
2913 there is no attempt to add a constant addend to the reloc;
2914 otherwise, report error condition.
2915 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2916 since final argument is a pointer to make_import_fixup().
2917 Change call to cb() to match make_import_fixup() signature.
2918 (make_import_fixup_mark): make buffer_len unsigned.
2919 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2921 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2923 * ld.texinfo: add verbose documentation for auto-import
2924 direct-addressing workaround, to compliment the terse
2927 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2929 * scripttempl/v850.sc: Add gcc_except_table sections.
2931 2001-09-11 Jeffrey A Law (law@cygnus.com)
2933 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2934 * emulparams/h8300self.sh: Similarly.
2936 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2938 * ld.texinfo (Options, --stack): Correct default value for stack
2941 2001-09-05 Tom Rix <trix@redhat.com>
2943 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2945 2001-09-03 Andreas Jaeger <aj@suse.de>
2947 * emultempl/beos.em: Declare prototypes for comparions functions,
2950 2001-09-02 Andreas Jaeger <aj@suse.de>
2952 * emultempl/aix.em: Add missing prototype.
2953 * emultempl/lnk960.em: Likewise.
2954 * emultempl/vanilla.em: Likewise.
2955 * emultempl/armcoff.em: Likewise.
2956 * emultempl/armelf_oabi.em: Likewise.
2957 * emultempl/beos.em: Likewise.
2958 * emultempl/gld960c.em: Likewise.
2959 * emultempl/gld960.em: Likewise.
2961 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2962 for prototype declaration.
2964 2001-08-31 Eric Christopher <echristo@redhat.com>
2965 Jason Eckhardt <jle@redhat.com>
2967 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2969 2001-08-31 Andreas Jaeger <aj@suse.de>
2971 * emultempl/pe.em: Add missing prototypes.
2972 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2973 pe_find_data_imports.
2974 (pr_sym): Add unused attribute.
2976 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2978 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2979 default from coff to elf.
2981 2001-08-29 Jeff Law <law@redhat.com>
2983 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2985 * emulparams/h8300self.sh: Similarly.
2987 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2989 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2991 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2992 * configure.tgt (h8300-*-elf*): New case.
2993 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2994 * emulparams/h8300self.sh: New file.
2995 * Makefile.in: Regenerated.
2997 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2999 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3002 2001-08-27 Linus Nordberg <linus@swox.com>
3003 Alan Modra <amodra@bigpond.net.au>
3005 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3006 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3008 * Makefile.in: Regenerate.
3009 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3010 entries to correct alphabetical position.
3011 * emulparams/elf64ppc.sh: New.
3012 * emulparams/elf64lppc.sh: New.
3014 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3016 * ldmain.c (main): Declare BSIZE as static.
3018 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3020 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3021 into .rel.dyn resp. .rela.dyn if combreloc.
3022 (get_script): If .x linker script is equal to .xn, only put it
3023 once into the binary.
3024 Add .xc and .xsc scripts.
3025 (parse_args): Handle -z combreloc and -z nocombreloc.
3026 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3027 For .xc and .xsc scripts put all .rel* or .rela* input sections
3028 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3029 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3031 Strip trailing whitespace from script.
3032 Generate .xc and .xsc scripts if requested.
3033 * ldmain.c (main): Initialize link_info.combreloc and
3034 link_info.spare_dynamic_tags.
3035 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3036 (ld_options): Add --spare-dynamic-tags option.
3037 (parse_args): Likewise.
3038 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3039 * ldint.texinfo: Document .xc and .xsc linker scripts.
3040 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3042 2001-08-22 H.J. Lu <hjl@gnu.org>
3044 * emulparams/elf32fr30.sh: Add a newline.
3046 2001-08-21 Andreas Jaeger <aj@suse.de>
3048 * deffilep.y: Add missing prototypes.
3049 * pe-dll.c: Likewise.
3051 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3053 * ldlang.c (insert_pad): Fix typos in last patch.
3055 * ldlang.c: When traversing lang_statement_union_type lists,
3056 consistently use "header.next" rather than "next".
3057 * mpw-eppcmac.c: Likewise.
3058 * emultempl/beos.em: Likewise.
3059 * emultempl/hppaelf.em: Likewise.
3060 * emultempl/pe.em: Likewise.
3061 * ldlang.h (union lang_statement_union): Remove "next" field.
3063 * ldlang.c (insert_pad): Use offsetof macro.
3064 (lang_size_sections): Always neuter padding statements.
3065 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3067 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3068 passed to lang_size_sections.
3069 (pe_exe_fill_sections): Likewise.
3070 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3071 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3073 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3075 * emultempl/aix.em: Formatting fixes.
3077 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3079 * ldlang.c (insert_pad): Make use of an existing pad statement if
3080 available. Move code calculating alignment, adjusting section
3081 alignment power, and adjusting dot to ..
3082 (size_input_section): .. here. Remove unused relax param.
3083 (lang_size_sections): Change boolean `relax' param to boolean *.
3084 Adjust call to size_input_section. Make use of insert_pad to
3085 place pad after the assignment statement. If relaxing, zap
3087 (reset_memory_regions): Reset output_bfd section sizes too.
3088 (relax_again): Move to..
3089 (lang_process): ..here. Adjust call to lang_size_sections, and
3090 remove duplicated code.
3091 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3093 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3095 * ld.texinfo: Document that fill values now use the four least
3097 * emulparams/elf32fr30.sh (NOP): Update.
3098 * emulparams/elf32mcore.sh: Likewise.
3099 * emulparams/elf64_s390.sh: Likewise.
3100 * emulparams/elf_i386.sh: Likewise.
3101 * emulparams/elf_i386_be.sh: Likewise.
3102 * emulparams/elf_i386_chaos.sh: Likewise.
3103 * emulparams/elf_i386_ldso.sh: Likewise.
3104 * emulparams/elf_s390.sh: Likewise.
3105 * emulparams/elf_x86_64.sh: Likewise.
3106 * emulparams/i386moss.sh: Likewise.
3107 * emulparams/i386nw.sh: Likewise.
3108 * emulparams/m68kelf.sh: Likewise.
3109 * scripttempl/elf.sc: Update NOP comment.
3110 * scripttempl/elfi370.sc: Likewise.
3111 * scripttempl/elfm68hc11.sc: Likewise.
3112 * scripttempl/elfm68hc12.sc: Likewise.
3113 * scripttempl/nw.sc: Likewise.
3115 2001-08-15 Tom Rix <trix@redhat.com>
3117 * ldgram.y (saved_script_handle): Initialize to NULL.
3118 * ldmain.c (main): Change check on saved_script_handle.
3120 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3122 * emultempl/elf32.em: Formatting fixes.
3123 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3124 looking at sec->owner.
3125 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3126 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3127 unused code, and reorganize orphan section placement code.
3129 * ldlang.c (wild_doit): Rename to lang_add_section.
3130 * ldlang.h: Here too.
3131 * mpw-elfmips.c: And here.
3132 * emultempl/beos.em: And here.
3133 * emultempl/elf32.em: And here.
3134 * emultempl/hppaelf.em: And here.
3135 * emultempl/pe.em: And here.
3137 2001-08-13 Richard Henderson <rth@redhat.com>
3139 * emultempl/needrelax.em: New file.
3140 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3141 * Makefile.am (eelf64_ia64.c): Depend on it.
3142 * Makefile.in: Rebuild.
3144 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3146 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3147 output_section is set non-NULL.
3149 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3150 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3151 needlessly create an output_section_statement. Treat a correctly
3152 named output_section_statement with NULL bfd_section as compatible.
3154 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3156 * emultempl/generic.em: Support EXTRA_EM_FILE.
3157 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3158 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3159 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3160 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3161 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3162 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3163 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3164 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3165 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3166 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3168 2001-08-12 Richard Henderson <rth@redhat.com>
3170 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3171 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3172 scripttempl/v850.sc: Keep .jcr data.
3174 2001-08-12 H.J. Lu <hjl@gnu.org>
3175 Andrew Haley <aph@cambridge.redhat.com>
3176 Nick Clifton <nickc@redhat.com>
3178 * ldgram.y (had_script): Change name to saved_script_handle.
3179 Change type to file handle.
3180 * ld.h (had_script): Rename and retype.
3181 * ldfile.c (ldfile_open_command_file): Save the file handle
3182 used in saved_script_handle.
3183 * lexsup.c (parse_args): Do not allow -c option to alter
3184 saved_script_handle.
3185 * ldmain.c (main): Print out the linker script used if
3186 --verbose is given. Check saved_script_handle to obtain the
3187 external linker script used, or if NULL, dump the builtin
3189 * ld.texinfo: Document that --verbose now dumps the linker
3190 script used, regardless of whether it was an internal or an
3193 2001-08-10 Andreas Jaeger <aj@suse.de>
3195 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3197 * configure: Regenerate.
3199 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3201 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3203 * scripttempl/elf.sc: Move non-text .dynamic section before
3204 .plt/.got/.sdata* group.
3205 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3206 (OTHER_SDATA_SECTIONS): Add.
3207 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3209 * emulparams/crislinux.sh: Likewise.
3210 * emulparams/elf32b4300.sh: Likewise.
3211 * emulparams/elf32bmip.sh: Likewise.
3212 * emulparams/elf32bmipn32.sh: Likewise.
3213 * emulparams/elf32bsmip.sh: Likewise.
3214 * emulparams/elf32btsmip.sh: Likewise.
3215 * emulparams/elf32ebmip.sh: Likewise.
3216 * emulparams/elf32elmip.sh: Likewise.
3217 * emulparams/elf32l4300.sh: Likewise.
3218 * emulparams/elf32lmip.sh: Likewise.
3219 * emulparams/elf32lsmip.sh: Likewise.
3220 * emulparams/elf32ltsmip.sh: Likewise.
3221 * emulparams/elf64bmip.sh: Likewise.
3222 * emulparams/elf64btsmip.sh: Likewise.
3223 * emulparams/elf64ltsmip.sh: Likewise.
3225 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3227 * genscripts.sh: Source the emulparams script before each output
3228 script is generated so that variables like `RELOCATING' may affect
3229 variables defined in the emulparams script.
3231 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3233 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3236 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3237 ie. iterate over wild_statement.section_list.
3238 (gld${EMULATION_NAME}_place_orphan): Likewise.
3240 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3242 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3243 .fini[0-4] sections used by _exit
3244 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3245 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3246 * scripttempl/elfm68hc11.sc: Likewise.
3248 2001-08-03 H.J. Lu <hjl@gnu.org>
3250 * emultempl/beos.em (init): Add the missing initialization.
3252 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3254 * ld.texinfo (Input Section Basics): Clarify ordering of output
3256 * ldlang.c (callback_t): Add wildcard_list param.
3257 (walk_wild_section): Remove "section" param. Rewrite for
3258 lang_wild_statement_type change. Remove unique_section_p test.
3259 (walk_wild_file): Remove "section" param.
3260 (walk_wild): Remove "section" and "file" params.
3261 (lang_gc_wild): Likewise.
3262 (wild): Likewise. Modify for lang_wild_statement_type change.
3263 (wild_sort): Likewise. Add "sec" param.
3264 (gc_section_callback): Likewise.
3265 (output_section_callback): Likewise. Do unique_section_p test.
3266 (map_input_to_output_sections): Modify call to wild.
3267 (lang_gc_sections_1): Likewise.
3268 (print_wild_statement): Modify for lang_wild_statement_type
3270 (lang_add_wild): Replace filename, filenames_sorted param with
3271 filespec. Replace section_name, sections_sorted,
3272 exclude_filename_list with section_list.
3273 * ldlang.h (lang_add_wild): Here too.
3274 (lang_wild_statement_type): Replace section_name, sections_sorted,
3275 and exclude_filename_list with section_list.
3276 * ldgram.y (current_file): Delete.
3277 (%union): Add wildcard_list.
3278 (file_NAME_list): Set type to wildcard_list. Build a linked list
3279 rather than calling lang_add_wild for each entry.
3280 (input_section_spec_no_keep): Call lang_add_wild here instead.
3281 * ld.h (struct wildcard_list): Declare.
3282 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3284 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3286 * ldmain.c (main): initialize link_info.pei386_auto_import
3287 * pe-dll.c: new tables for auto-export filtering
3288 (auto_export): change API, pass abfd for contextual filtering.
3289 Loop thru tables of excluded symbols instead of comparing
3292 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3294 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3295 static variable current_sec (static struct sec *). Add
3296 forward declaration for add_bfd_to_link.
3297 (process_def_file): Don't export undefined symbols. Do not
3298 export symbols starting with "_imp__". Call auto_export()
3300 (pe_walk_relocs_of_symbol): New function.
3301 (generate_reloc): add optional extra debugging
3302 (pe_dll_generate_def_file): eliminate extraneous initial blank
3304 (make_one): enlarge symtab to make room for __nm__ symbols
3305 (DATA auto-import support).
3306 (make_singleton_name_thunk): New function.
3307 (make_import_fixup_mark): New function.
3308 (make_import_fixup_entry): New function.
3309 (pe_create_import_fixup): New function.
3310 (add_bfd_to_link): Specify that 'name' argument is a CONST
3312 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3313 declare new functions pe_walk_relocs_of_symbol and
3314 pe_create_import_fixup.
3315 * emultempl/pe.em: add new options --enable-auto-import,
3316 --disable-auto-import, and --enable-extra-pe-debug.
3317 (make_import_fixup): New function.
3318 (pe_find_data_imports): New function.
3319 (pr_sym): New function.
3320 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3321 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3324 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3326 * ld.texinfo: add additional documentation for
3327 --export-all-symbols. Document --out-implib,
3328 --enable-auto-image-base, --disable-auto-image-base,
3329 --dll-search-prefix, --enable-auto-import, and
3330 --disable-auto-import.
3331 * ldint.texinfo: Add detailed documentation on auto-import
3334 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3336 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3339 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3341 * Makefile.am: Update dependencies with "make dep-am".
3342 * Makefile.in: Regenerate
3344 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3346 * ldcref.c (check_section_sym_xref): New function.
3347 (check_nocrossrefs): Call it.
3348 (check_nocrossref): Interate over h->refs here instead of..
3349 (check_refs): ..here. Pass in the symbol name, section, and bfd
3350 rather than hash_entry pointers.
3351 (struct check_refs_info): Keep symbol name rather than hash entry.
3353 (check_reloc_refs): Tweak for above changes in check_refs_info.
3354 Only report references to section syms when symname is NULL to
3355 prevent duplicate messages for the same reloc.
3357 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3359 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3360 available. Do not print NULL trees.
3361 (exp_print_token): Print unknown tokens with values > 126 as
3362 decimal values not ASCII characters.
3364 * ldlang.c (lang_leave_overlay): If a region is specified assign
3365 it to all sections inside the overlay unless they have been
3366 assigned to the own, non-default, memory region.
3368 * README: Add header for consistency with other README files.
3370 2001-07-14 H.J. Lu <hjl@gnu.org>
3372 * emultempl/elf32.em (output_prev_sec_find): Never return
3373 bfd_abs_section_ptr, bfd_com_section_ptr nor
3374 bfd_und_section_ptr.
3376 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3378 * Makefile.am (em32relf.c): Change dependency from generic.em to
3380 * Makefile.in: Regenerate.
3382 2001-07-14 matthew green <mrg@eterna.com.au>
3384 * configure.tgt (i386-*-netbsdelf*): New target.
3385 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3387 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3389 * emultempl/elf32.em (output_prev_sec_find): New.
3390 (place_orphan): Use it.
3392 2001-07-11 H.J. Lu <hjl@gnu.org>
3394 * ldmain.c (main): Fix typos in the last change.
3396 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3398 * ldmain.c (main): Disallow -F and -f without -shared.
3400 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3402 * emultempl/pe.em (after_open): Check for the output_bfd not
3403 having any coff_data structure allocated to it.
3405 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3407 * emultempl/elf32.em: Do not assuming that contents of the buffer
3408 returned from basename function will remain unchanged accross other
3411 2001-07-03 H.J. Lu <hjl@gnu.org>
3413 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3414 2001-07-03. It creates dynamic entries even for static binaries.
3416 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3418 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3419 (DYNAMIC): Use it to reserve few dynamic entries for
3422 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3424 * emulparams/hppa64linux.sh: New file.
3425 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3426 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3427 (ehppa64linux.c): Add rule to make it.
3429 * Makefile.in: Regenerate.
3431 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3433 * ld.texinfo (Options, -r): Mention restrictions when using
3434 different object formats.
3436 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3438 * ldlang.c (lang_check): Emit fatal error if relocatable link
3439 between different object flavours with relocations in input.
3441 2001-06-19 H.J. Lu <hjl@gnu.org>
3443 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3444 (--version-script): Mention the language support.
3446 2001-06-19 H.J. Lu <hjl@gnu.org>
3448 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3450 2001-06-18 H.J. Lu <hjl@gnu.org>
3452 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3453 (diststuff): Add $(MANS).
3454 * Makefile.in: Regenerated.
3458 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3460 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3461 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3462 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3463 * ld.h (args_type): Remove member export_dynamic. All users
3464 changed to use struct bfd_link_info member.
3466 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3467 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3468 * Makefile.in: Regenerate.
3470 2001-06-18 H.J. Lu <hjl@gnu.org>
3472 * ldlang.c (init_os): Add the newline to the einfo call.
3473 (lang_check): Likewise.
3474 (lang_do_version_exports_section): Likewise.
3476 2001-06-15 H.J. Lu <hjl@gnu.org>
3478 * lexsup.c (parse_args); Save optind to report unrecognized
3481 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3483 * ldlang.c (lang_check): Emit fatal error if relocatable link
3484 between different object flavours.
3486 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3487 Set new link_info member export_dynamic.
3488 * ldmain.c (main): Initialize new link_info member export_dynamic.
3490 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3492 * ldlang.c (walk_wild): Only call walk_wild_file if
3493 lookup_name returns something.
3494 (lookup_name): If load_symbols fails, return NULL.
3495 (load_symbols): Change to a boolean function.
3496 (open_input_bfds): If load_symbols fails then do not make the
3499 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3501 * ldlang.c (record_bfd_errors): Remove.
3503 * emultempl/aix.em: Fix copyright dates.
3505 2001-06-07 Andreas Jaeger <aj@suse.de>
3507 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3508 (TEXT_START_ADDR): Likewise.
3510 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3512 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3514 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3516 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3518 2001-05-31 H.J. Lu <hjl@gnu.org>
3520 * ldlang.c (open_input_bfds): Don't change the bfd error
3521 handler whilst loading symbols.
3523 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3525 * configure.tgt: Remove i370-mvs architecture, it is not currently
3528 2001-05-25 H.J. Lu <hjl@gnu.org>
3530 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3531 like emulparams/aixppc.sh.
3533 2001-05-25 H.J. Lu <hjl@gnu.org>
3535 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3536 setting of output_filename after bfd_scan_arch.
3537 * emultempl/pe.em: Likewise.
3539 2001-05-25 H.J. Lu <hjl@gnu.org>
3541 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3542 like emulparams/aixppc.sh.
3544 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3545 instead of ${srcdir}/emultempl/stringify.sed.
3547 2001-05-25 Timothy Wall <twall@oculustech.com>
3549 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3552 2001-05-25 Alan Modra <amodra@one.net.au>
3554 * configure.host: Replace linuxoldld with linux*oldld.
3555 * configure.tgt: Likewise.
3557 2001-05-24 H.J. Lu <hjl@gnu.org>
3559 * emultempl/stringify.sed: Removed again.
3561 2001-05-24 H.J. Lu <hjl@gnu.org>
3563 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3564 (gld${EMULATION_NAME}_before_parse): Initialize
3565 ldfile_output_architecture, ldfile_output_machine and
3566 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3567 * emultempl/beos.em: Likewise.
3568 * emultempl/elf32.em: Likewise.
3569 * emultempl/linux.em: Likewise.
3570 * emultempl/mipsecoff.em: Likewise.
3571 * emultempl/pe.em: Likewise.
3572 * emultempl/sunos.em: Likewise.
3574 2001-05-24 Tom Rix <trix@redhat.com>
3576 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3577 udate import file format.
3578 (change_symbol_mode) New, same
3579 (is_syscall) New, same
3580 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3581 * emulparams/aixppc64.sh : same
3582 * emulparams/aixrs6.sh : same
3583 * emulparams/ppcmacos.sh : same
3584 * emultempl/aix.em : use strtoull to parse options
3585 * Makefile.am : add eaixppc64 emulation for xcoff64
3586 * Makefile.in : same
3587 * configure.tgt : same
3589 * scripttempl/aix.sc : default text section offset to 0x10000000
3590 default data section offset to 0x20000000
3591 add .sv3264 and .sv64 pseudo sections
3592 loader and debug sections use the currect section offset.
3594 * emultempl/aix.em : Add xcoff64 support
3595 Add -binitfini support
3596 (gld${EMULATION_NAME}_before_parse) -binitfini
3597 (gld${EMULATION_NAME}_parse_args) same
3598 (gld${EMULATION_NAME}_before_allocation) format change for special
3601 * emulparams/aixppc64.sh : New file for xcoff64 support
3603 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3605 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3606 variable to avoid non-portable shell construct.
3608 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3610 * ldmain.c (get_emulation): Add -mips5 command line argument.
3612 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3614 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3615 (ELF_INTERPRETER_NAME): Define it.
3616 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3618 * configure.tgt (targ_emul, targ_extra_emuls)
3619 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3620 as primary, elf_i386 as extra.
3621 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3622 (eelf_i386_ldso.c): New rule.
3623 * Makefile.in: Rebuilt.
3625 2001-05-22 Nick Clifton <nickc@redhat.com>
3627 * lexsup.c (ld_options): Allow -I to be an alias for
3628 --dynamic-linker. This is for Solaris compatability.
3629 * ld.texinfo: Document that -I can be used.
3632 2001-05-16 Alan Modra <amodra@one.net.au>
3634 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3635 whether an input section is the first one assigned to an output
3637 Assorted formatting fixes.
3639 2001-05-14 DJ Delorie <dj@delorie.com>
3641 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3642 * Makefile.in: Ditto.
3644 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3646 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3647 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3649 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3651 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3653 * ldlang.c (lang_process): Call bfd_merge_sections.
3655 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3657 * ldgram.y: Fix typo.
3659 2001-05-03 H.J. Lu <hjl@gnu.org>
3661 * emultempl/elf32.em: Include "libiberty.h".
3662 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3663 basename of the bfd filename.
3664 (gld${EMULATION_NAME}_stat_needed): Likewise.
3665 (gld${EMULATION_NAME}_try_needed): Likewise.
3666 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3668 2001-05-02 H.J. Lu <hjl@gnu.org>
3670 * emultempl/pe.em: Include <ctype.h>.
3672 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3674 * emulparams/elf32openrisc.sh: New file.
3676 * Makefile.am: Add OpenRISC target.
3677 * Makefile.in: Regenerated.
3679 * configure.tgt: Add openrisc-*-* mapping.
3681 2001-05-02 Nick Clifton <nickc@redhat.com>
3683 * emultempl/aix.em: Replace buystring with xstrdup.
3684 * emultempl/beos.em: Replace buystring with xstrdup.
3686 2001-05-02 H.J. Lu <hjl@gnu.org>
3688 * ldfile.c: Include "libiberty.h".
3689 * ldlex.l: Likewise.
3691 * ldmisc.c (buystring): Removed.
3692 * ldmisc.h: Likewise.
3694 * ldfile.c: Replace buystring with xstrdup.
3695 * ldlang.c: Likewise.
3696 * ldlex.l: Likewise.
3697 * ldmain.c: Likewise.
3698 * ldmisc.c: Likewise.
3699 * lexsup.c: Likewise.
3700 * mpw-eppcmac.c: Likewise.
3702 2001-04-30 Andreas Jaeger <aj@suse.de>
3704 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3706 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3708 * ldlang.c (load_symbols): Give emulation a chance
3709 to process unrecognized file before fatal error is
3710 reported, not after.
3712 2001-04-27 Sean McNeil <sean@mcneil.com>
3714 * configure.tgt: Add arm-vxworks target.
3715 * scripttempl/armcoff.sc: Support .text or .data as a section name
3719 2001-04-13 J.T. Conklin <jtc@redback.com>
3721 * ld.texinfo: Document --fatal-warnings.
3724 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3725 warnings have been turned into errors.
3726 * lexsup.c (OPTION_WARN_FATAL): Define.
3727 (ld_options): Entry for --fatal-warnings.
3728 (parse_args): Handle OPTION_WARN_FATAL.
3729 * ld.h (ld_config_type): Add fatal_warnings field.
3731 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3733 * ldmain.c (main): Default to discard_sec_merge.
3734 * lexsup.c (OPTION_DISCARD_NONE): Define.
3735 (ld_options): Add --discard-none.
3736 (parse_args): Handle OPTION_DISCARD_NONE.
3737 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3738 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3739 all its input sections match.
3741 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3743 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3744 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3745 (eelf32ltsmip.c): New target.
3746 (eelf64btsmip.c): Likewise.
3747 (eelf64ltsmip.c): Likewise.
3748 * Makefile.in: Regenerated.
3750 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3752 (mips*-*-linux-gnu*): Likewise.
3754 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3756 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3758 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3761 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3763 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3764 correct value of __Stext here.
3765 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3768 * emulparams/crislinux.sh: Remove FIXME.
3770 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3772 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3773 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3775 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3777 * configure.tgt (cris-*-*): Change default emulation to criself.
3778 (cris-*-*aout*): New rule.
3780 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3782 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3783 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3785 2001-03-26 Andreas Jaeger <aj@suse.de>
3787 * ld.texinfo (Overview): Fix syntax in texi code.
3789 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3791 * ld.texinfo: Put @c man indications to generate the ld man page.
3792 When generating man, define all the variables. Define SEEALSO
3793 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3794 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3795 (ld.1): Generate from ld.texinfo.
3796 * Makefile.in: Regenerate.
3798 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3800 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3801 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3803 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3805 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3806 is an absolute path look only for this file and not along the path.
3808 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3810 * emultempl/elf32.em (OPTION_GROUP): New macro.
3811 Add new option Bgroup to longopts.
3812 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3813 (gld*_list_options): Add -Bgroup and -z defs.
3814 * ld.1: Document -Bgroup and -z defs.
3815 * ld.texinfo: Likewise.
3817 2001-03-07 Michael Meissner <meissner@redhat.com>
3819 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3820 with sections created by -fdata-sections.
3821 (.dynbss,.bss): Ditto.
3823 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3825 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3826 after_allocation_default, not gld..._before_allocation.
3828 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3830 * configure.in (BFD_VERSION): New.
3831 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3832 * configure: Regenerate.
3833 * Makefile.am: Run "make dep-am"
3834 * Makefile.in: Regenerate.
3836 2001-02-26 Timothy Wall <twall@cygnus.com>
3838 * emulparams/elf64_aix.sh: Add additional read-only sections;
3839 uncomment lines which are now required.
3841 2001-02-26 H.J. Lu <hjl@gnu.org>
3843 * ldlang.c (open_input_bfds): Set the bfd error handler so
3844 that problems can be caught whilst loading symbols.
3845 (record_bfd_errors): New function: Report BFD errors and mark
3846 the executable output as being invalid.
3848 2001-02-22 Timothy Wall <twall@cygnus.com>
3850 * configure.host: Add configuration for ia64-*-aix*.
3851 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3852 Add dependencies for eelf64_aix.c.
3853 * Makefile.in: Regenerate.
3854 * configure.tgt: Add ia64-*-aix* mapping.
3855 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3857 2001-02-20 H.J. Lu <hjl@gnu.org>
3859 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3860 false if we found the file.
3862 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3864 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3865 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3867 2001-02-18 lars brinkhoff <lars@nocrew.org>
3869 * Makefile.am: Add PDP-11 target.
3870 * configure.tgt: Likewise.
3871 * emulparams/pdp11.sh: New file.
3873 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3875 * configure.host: Add a generic FreeBSD configuration entry such that
3876 all [modern] FreeBSD systems on all platforms will look the same.
3878 2001-02-14 H.J. Lu <hjl@gnu.org>
3880 * configure.tgt: Remove mention of earmelf_linux26.
3882 2001-02-13 Richard Henderson <rth@redhat.com>
3884 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3886 2001-02-13 H.J. Lu <hjl@gnu.org>
3888 * ldexp.h (node_type): Add etree_provided.
3889 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3890 type to etree_provided if defined by PROVIDE. Allow updating
3892 (exp_print_tree): Handle etree_provided.
3893 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3896 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3898 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3899 .IA_64.unwind.* pattern to unwind table section and
3900 .IA_64.unwind_info* pattern to unwind info section.
3902 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3904 * Makefile.am: Add linux target for S/390.
3905 * Makefile.in: Likewise.
3906 * configure.host: Likewise.
3907 * configure.tgt: Likewise.
3908 * emulparams/elf64_s390.sh: New file.
3909 * emulparams/elf_s390.sh: New file.
3911 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3913 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3915 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3917 2001-02-06 Philip Blundell <philb@gnu.org>
3919 * Makefile.am: Remove mention of earmelf_linux26.
3920 * Makefile.in: Regenerate.
3922 2001-02-04 Philip Blundell <philb@gnu.org>
3924 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3925 * emulparams/armelf_linux26.sh: Delete.
3926 * configure.tgt: Remove mention of armelf_linux26 emulation.
3928 2001-02-01 Nick Clifton <nickc@redhat.com>
3930 * ld.1: Replace occurances of -oformat with --oformat.
3932 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3934 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3935 load_base is specified.
3937 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3939 * emultempl/elf32.em: Correct spelling in comments and listed
3942 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3944 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3945 default for the first section of a group of overlay sections.
3947 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3949 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3950 * Makefile.in: Regenerate.
3951 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3952 Check for null tool_dir.
3954 2001-01-16 Jim Wilson <wilson@redhat.com>
3956 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3957 and IA_64.unwind.info.
3959 2001-01-16 H.J. Lu <hjl@gnu.org>
3961 * ldlang.c (lang_check): Merge the private data only if the
3962 input file has contents.
3964 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3966 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3968 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3969 enabling search for libmilli. On a relocatable link, make .text
3971 (LDEMUL_AFTER_PARSE): Define.
3972 (hppaelf_finish): Correct spelling of relocatable in comments.
3974 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3975 rummage through the script for sections on the unique list.
3976 Correct length of strncmp for ".note".
3977 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3979 * ldlang.c (unique_section_list): New var.
3980 (unique_section_p): New function.
3981 (walk_wild_section): Don't match sections on unique_section_list.
3982 (lang_add_unique): New function.
3983 Correct spelling of relocatable in comments.
3985 * ldlang.h (struct unique_sections): Declare.
3986 (unique_section_list): Declare.
3987 (unique_section_p): Declare.
3988 (lang_add_unique): Declare.
3990 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3991 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3993 * ld.texinfo (--unique): Update.
3995 2001-01-13 Nick Clifton <nickc@redhat.com>
3997 * lexsup.c (parse_args): Remove spurious white space.
3999 2001-01-12 Nick Clifton <nickc@redhat.com>
4001 * lexsup.c (parse_args): Update copyright date.
4003 2001-01-12 Philip Blundell <pb@futuretv.com>
4005 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4007 2001-01-10 Kazu Hirata <kazu@hxi.com>
4009 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4010 * scripttempl/h8300h.sc: Fix formatting.
4011 * scripttempl/h8300s.sc: Likewise.
4012 * scripttempl/h8500.sc: Likewise.
4013 * scripttempl/h8500b.sc: Likewise.
4014 * scripttempl/h8500c.sc: Likewise.
4015 * scripttempl/h8500m.sc: Likewise.
4016 * scripttempl/h8500s.sc: Likewise.
4018 2000-01-07 David O'Brien <obrien@BSDi.com>
4020 * emultempl/elf32.em: Only perform Linux ld hints processing when
4023 2001-01-07 Philip Blundell <philb@gnu.org>
4025 * ld.texinfo (Bug Reporting): Update email address for reports.
4027 2000-12-31 Nick Clifton <nickc@redhat.com>
4029 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4030 options by checking for a return value of '?' not -1.
4032 2000-12-28 Nick Clifton <nickc@redhat.com>
4034 * lexsup.c (struct ld_option): Add new enum value:
4036 (ld_options[]): Change -omagic, -output and -oformat options
4037 to be EXACTLY_TWO_DASHES.
4038 (OUTPUT_COUNT): Use ARRAY_SIZE.
4039 (parse_args): Change parameter 'argc' to unsigned.
4040 Place EXACTLY_TWO_DASHES options into new really_longopts
4042 If getopt_long_only fails, try calling getopt_long using the
4043 really_longopts array.
4044 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4047 * ldlex.h: Fix prototype of parse_args.
4049 * ld.texinfo: Document that long options starting with 'o'
4050 must be preceeded by two dashes. Change example of a single
4051 dashed long option from -oformat to -trace-symbol.
4053 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4055 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4056 (longopts[]): New --no-default-excludes option.
4057 (gld_${EMULATION_NAME}_list_options): Document.
4058 (gld_${EMULATION_NAME}_parse_args): Handle.
4060 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4062 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4063 whitespace, it breaks the K&R C preprocessor.
4065 2000-12-11 DJ Delorie <dj@redhat.com>
4067 * ld.texinfo: Add notes about --whole-archive and gcc.
4069 2000-11-18 Fred Fish <fnf@be.com>
4071 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4072 (ld_options): Entry for --allow-shlib-undefined.
4073 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4074 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4076 * ld.texinfo: Document new command line switch.
4078 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4080 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4081 .fixup is actually read/write.
4082 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4083 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4084 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4086 2000-12-11 Jan Hubicka <jh@suse.cz>
4088 * NEWS: Add note about x86_64 architecture.
4090 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4092 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4093 Set DWARF2 sections to a VMA of zero.
4095 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4097 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4099 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4100 (sparc*-*-rtems*): Switched from a.out to ELF.
4102 2000-11-30 Jan Hubicka <jh@suse.cz>
4104 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4105 (eelf_x86_64.c): New.
4106 * Makefile.in: Regenerate.
4107 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4108 * emulparams/elf_x86_64.sh: New.
4110 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4112 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4113 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4115 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4116 merging non-a.out sections into CONSTRUCTING.
4118 2000-11-28 Nick Clifton <nickc@redhat.com>
4120 * ld.1 (COPYING): Mention that the GNU Free Documentation
4121 License is present in the sources, but not the output, and
4122 also available from the GNU website.
4123 (GNU Free Documentation License): Comment out this section.
4125 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4127 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4130 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4132 * ld.1: Remove old date so it does not give the impression the manpage
4135 2000-11-24 Nick Clifton <nickc@redhat.com>
4137 * configure.tgt (xscale-coff): Add target.
4138 (xscale-elf): Add target.
4140 2000-11-24 Fred Fish <fnf@be.com>
4142 * ldmain.c (main): Remove redundant init of config.make_executable
4145 2000-11-15 Richard Henderson <rth@redhat.com>
4147 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4149 2000-11-14 Kazu Hirata <kazu@hxi.com>
4151 * scripttempl/h8300.sc: Fix formatting.
4152 * scripttempl/h8300h.sc: Likewise.
4153 * scripttempl/h8300s.sc: Likewise.
4155 2000-11-14 Denis Chertykov <denisc@overta.ru>
4157 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4159 2000-11-09 Philip Blundell <pb@futuretv.com>
4161 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4162 around orphan sections whose names can be represented in C.
4164 2000-11-07 Jim Wilson <wilson@redhat.com>
4166 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4167 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4169 2000-11-06 Nick Clifton <nickc@redhat.com>
4171 * ld.texinfo: Add GNU Free Documentation License.
4172 * ldint.texinfo: Add GNU Free Documentation License.
4173 * ld.1: Add GNU Free Documentation License.
4175 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4177 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4178 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4180 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4181 Move 2000-11-02 Makefile.in changes to this file.
4182 * Makefile.in: Regenerate.
4184 2000-11-03 Nick Clifton <nickc@redhat.com>
4186 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4187 constructors and destructors.
4188 * scripttempl/h8300h.sc: Ditto.
4189 * scripttempl/h8300s.sc: Ditto.
4190 * scripttempl/h8500.sc: Ditto.
4191 * scripttempl/h8500b.sc: Ditto.
4192 * scripttempl/h8500c.sc: Ditto.
4193 * scripttempl/h8500m.sc: Ditto.
4194 * scripttempl/h8500s.sc: Ditto.
4195 * scripttempl/v850.sc: Ditto.
4196 * scripttempl/w65.sc: Ditto.
4197 * scripttempl/z8000.sc: Ditto.
4199 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4201 * Makefile.in (e_i386_chaos.c): New rule.
4202 (ALL_EMULATIONS): Added e_i386_chaos.o.
4203 * emulparams/elf_i386_chaos.sh: New file.
4204 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4206 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4208 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4209 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4210 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4211 library path suffix.
4212 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4214 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4216 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4217 for consecutive sections.
4219 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4221 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4223 * ld.texinfo: Added notes about this new option.
4225 2000-10-16 Nick Clifton <nickc@redhat.com>
4227 * emultempl/pe.em (_after_open): Add tests of return values from
4228 bfd functions. Emit appropriate error messages if necessary.
4230 2000-10-13 Nick Clifton <nickc@redhat.com>
4232 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4233 local variables - they are not used, but leave in the call to
4234 bfd_canonicalize_symtab.
4235 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4236 pe_dll_search_prefix.
4238 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4240 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4241 (longopts): New --dll-search-prefix option.
4242 (gld_${EMULATION_NAME}_list_options): Document.
4243 (gld_${EMULATION_NAME}_parse_args): Handle.
4244 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4245 dynamically, search for a dll named '<prefix><basename>.dll'
4246 in preference to 'lib<basename>.dll' if --dll-search-prefix
4249 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4251 * ldlang.c (section_already_linked): Set kept_section instead of
4254 2000-10-10 Kazu Hirata <kazu@hxi.com>
4256 * deffile.h: Fix formatting.
4257 * lexsup.c: Likewise.
4260 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4262 * pe-dll.c (make_one): Do not generate code thunk for DATA
4264 (process_def_file): deduce DATA flag for auto-export sumbols.
4266 2000-10-09 Kazu Hirata <kazu@hxi.com>
4268 * ld.h: Fix formatting.
4269 * ldcref.c: Likewise.
4270 * ldctor.h: Likewise.
4271 * ldemul.c: Likewise.
4272 * ldemul.h: Likewise.
4273 * ldexp.c: Likewise.
4274 * ldexp.h: Likewise.
4275 * ldfile.c: Likewise.
4276 * ldfile.h: Likewise.
4277 * ldlang.c: Likewise.
4278 * ldlang.h: Likewise.
4279 * ldmain.c: Likewise.
4280 * pe-dll.c: Likewise.
4282 * pe-dll.c: Revert some formatting fixes.
4284 2000-10-08 Kazu Hirata <kazu@hxi.com>
4286 * pe-dll.c: Fix formatting.
4288 2000-10-05 Kazu Hirata <kazu@hxi.com>
4290 * ldlang.c: Fix formatting.
4292 2000-10-03 DJ Delorie <dj@redhat.com>
4294 * pe-dll.c (fill_edata): initialize entire block
4295 (make_one): fill in correct section.
4297 2000-10-03 Kazu Hirata <kazu@hxi.com>
4299 * ldexp.c: Fix formatting.
4301 2000-10-02 DJ Delorie <dj@redhat.com>
4303 * emultempl/pe.em (gld_*_after_open): detect case where there two
4304 import libraries for same dll; rename one to ensure proper link
4307 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4309 (generate_edata): fix typo
4311 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4313 * scripttempl/crisaout.sc (ENTRY): Now __start.
4314 (.text): Add default setting for __start.
4315 Remove CONSTRUCTORS handling.
4316 (/DISCARD/): Add .gnu.warning.*.
4317 * emulparams/crislinux.sh (ENTRY): Now __start.
4318 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4319 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4320 (ENTRY): Now __start.
4321 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4322 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4324 2000-09-29 Kazu Hirata <kazu@hxi.com>
4326 * deffile.h: Fix formatting.
4328 * ldcref.c: Likewise.
4329 * ldctor.c: Likewise.
4330 * ldctor.h: Likewise.
4331 * ldemul.c: Likewise.
4332 * ldemul.h: Likewise.
4333 * ldexp.c: Likewise.
4334 * ldexp.h: Likewise.
4335 * ldfile.c: Likewise.
4336 * ldfile.h: Likewise.
4337 * ldlang.c: Likewise.
4338 * ldlang.h: Likewise.
4339 * lexsup.c: Likewise.
4341 * pe-dll.c: Likewise.
4343 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4345 * pe-dll.c (process_def_file): Uninitialized data wasn't
4346 exported with --export-all-symbols switch.
4348 2000-09-28 DJ Delorie <dj@redhat.com>
4350 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4351 noname work properly.
4353 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4355 * ld.texinfo (HPPA ELF32): New section.
4357 * emultempl/hppaelf.em (group_size): New.
4358 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4359 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4360 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4361 options to prevent abbreviations matching.
4362 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4363 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4365 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4367 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4368 on the m68*-*-elf target. Make it support COFF input objects.
4370 2000-09-21 Kazu Hirata <kazu@hxi.com>
4372 * ldmain.c: Fix formatting.
4373 * ldmisc.c: Likewise.
4374 * ldver.c: Likewise.
4375 * ldwrite.c: Likewise.
4377 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4379 * ldwrite.c (clone_section): Silence gcc warnings.
4381 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4383 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4384 out of memory failure.
4386 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4387 (clone_section): Handle out of memory failures. Rename var to
4388 avoid c++ reserved word.
4390 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4392 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4393 stub_name param to stub_sec_name.
4394 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4396 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4398 * emultempl/m68kelf.em: New file.
4399 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4400 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4401 * Makefile.in: Regenerate.
4403 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4405 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4408 2000-09-13 Nick Clifton <nickc@redhat.com>
4410 * ldmain.c (multiple_definition): Disable relaxation if
4411 multiple symbol definitions are encountered - otherwise the
4412 linker could abort with an assertion failure.
4414 2000-09-10 Nick Clifton <nickc@redhat.com>
4416 * mri.c: Fix formatting.
4418 2000-09-07 H.J. Lu <hjl@gnu.org>
4420 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4421 * configure: Rebuild.
4423 2000-09-07 H.J. Lu <hjl@gnu.org>
4425 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4426 * Makefile.in: Rebuild.
4428 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4430 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4431 broken list handling. Create __start_SECNAME and __stop_SECNAME
4432 when no place-holder. Add some comments. Test both SEC_CODE and
4433 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4434 Handle case where no output section statement created.
4436 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4438 * configure.tgt (sh-*-linux*): Added.
4439 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4440 * Makefile.in: Rebuilt.
4441 * emulparams/shelf_linux.sh: New file.
4442 * emulparams/shlelf_linux.sh: New file.
4444 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4446 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4447 try shuffling sections when the orphan happens to be the place
4448 holder. Keep count of unique section names generated so we speed
4449 the search for a new name.
4451 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4453 * configure: Rebuilt with new libtool.m4.
4455 2000-09-05 Nick Clifton <nickc@redhat.com>
4457 * Makefile.in: Regenerate.
4458 * aclocal.m4: Regenerate.
4459 * configure: Regenerate.
4460 * config.in: Regenerate.
4461 * po/ld.pot: Regenerate.
4463 * ldint.texinfo: Remove CVS revision marker - it foils local
4466 * emultempl/ticoff.em: Remove extraneous comma.
4468 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4470 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4471 to stub section flags.
4472 (hppa_for_each_input_file_wrapper): New.
4473 (hppa_lang_for_each_input_file): New.
4474 (lang_for_each_input_file): Define to call above.
4475 (multi_subspace): New.
4476 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4477 (PARSE_AND_LIST_PROLOGUE): Define.
4478 (PARSE_AND_LIST_LONGOPTS): Define.
4479 (PARSE_AND_LIST_OPTIONS): Define.
4480 (PARSE_AND_LIST_ARGS_CASES): Define.
4481 (hppaelf_finish): Call elf32_hppa_set_gp.
4482 (hppaelf_set_output_arch): Remove.
4483 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4485 * emulparams/hppalinux.sh (ELFSIZE): Define.
4487 (OTHER_READONLY_SECTIONS): Define.
4489 (GENERATE_SHLIB_SCRIPT): Define.
4491 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4492 to const throughout. Change `void *' to `PTR' throughout.
4493 (lang_memory_default): Function is local to file, add `static'.
4495 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4496 (ehppalinux.c): Likewise.
4497 (earmelf.c): Likewise.
4498 (earmelf_linux.c): Likewise.
4499 (earmelf_linux26.c): Likewise.
4500 * Makefile.in: Regenerate.
4502 * ld.h (ld_config_type): Add unique_orphan_sections.
4503 * lexsup.c (OPTION_UNIQUE): Define.
4504 (ld_options): Add "--unique".
4505 (parse_args): Handle it.
4506 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4507 search for an existing output section if unique_orphan_sections is
4508 set. Make use of bfd_get_unique_section_name rather than
4509 duplicating code here.
4510 * ld.texinfo: Describe --unique.
4512 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4513 optional arg to split-by-file.
4514 (parse_args): Handle them.
4515 * ld.texinfo: Update description of these options.
4516 * ldwrite.c (clone_section): Pass in the section name. Replace
4517 local code with bfd_get_unique_section_name.
4518 (split_sections): Tidy code and comments. Use a list traversal
4519 more appropriate to the list construction. Handle cooked section
4520 sizes. Split when split_by_reloc reached rather than exceeded.
4521 Track section size and split when split_by_file reached. Fix
4522 link_order_tail (even though it's not used).
4523 (ldwrite): Modify condition for calling split_sections to suit
4524 changed split_by_reloc and split_by_file.
4525 * ldmain.c (main): Init config.split_by_reloc and
4526 config.split_by_file to -1.
4527 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4528 Change split_by_file to bfd_size_type.
4530 2000-09-02 Nick Clifton <nickc@redhat.com>
4532 * configure.in: Increase version number to 2.10.91.
4533 * NEWS: Mention new ability to support removal of duplicate DWARF2
4535 * configure: Regenerate.
4536 * aclocal.m4: Regenerate.
4537 * config.in: Regenerate.
4539 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4541 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4543 * scripttempl/elf32avr.sc: Ditto.
4544 * scripttempl/elfd10v.sc: Ditto.
4545 * scripttempl/elfd30v.sc: Ditto.
4546 * scripttempl/elfi370.sc: Ditto.
4547 * scripttempl/elfm68hc11.sc: Ditto.
4548 * scripttempl/elfm68hc12.sc: Ditto.
4549 * scripttempl/elfi386beos.sc: Ditto.
4550 * scripttempl/v850.sc: Ditto.
4552 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4554 * acinclude.m4: Include libtool and gettext macros from the
4556 * aclocal.m4, configure: Rebuilt.
4558 2000-08-25 Nick Clifton <nickc@redhat.com>
4560 * ldlang.c (open_output): When choosing the target for a
4561 particular endianness, do nothing if the target is not
4564 2000-08-25 H.J. Lu <hjl@gnu.org>
4566 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4567 check -rpath nor LD_RUN_PATH for cross link.
4568 * ld.texinfo: Document the change.
4570 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4572 * NEWS: Mention support for CRIS.
4574 2000-08-23 H.J. Lu <hjl@gnu.org>
4576 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4577 the current runpath list from bfd_elf_get_runpath_list ()
4580 2000-08-22 H.J. Lu <hjl@gnu.org>
4582 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4583 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4584 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4585 trace_file_tries is non-zero.
4586 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4587 if trace_file_tries is non-zero.
4589 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4592 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4594 * NEWS: Mention i860 support.
4596 2000-08-14 Andreas Schwab <schwab@suse.de>
4598 * scripttempl/elf.sc: Fix last change to use correct comment
4601 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4603 * scripttempl/elf.sc: Add a comment giving the correspondence
4604 between sections, per-datum sections, and linkonce sections. Make
4605 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4608 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4610 * emulparams/elf32_i860.sh: New file.
4611 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4612 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4613 (eelf32_i860.c): New rule.
4614 * Makefile.in: Regenerate.
4616 2000-08-10 Nick Clifton <nickc@cygnus.com>
4618 * emulparams/mipspe.sh (ENTRY): Add definition.
4620 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4622 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4625 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4627 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4628 the final size of .bss section.
4629 * scripttempl/elfm68hc12.sc: Likewise.
4631 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4633 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4634 gld${EMULATION_NAME}_parse_args for consistency. Combine
4635 lastoptind and prevoptind vars, and keep track of last optind.
4636 (gld_${EMULATION_NAME}_list_options): Rename to
4637 gld${EMULATION_NAME}_list_options.
4639 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4641 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4642 (i586-sco-sysv5uw7.1.0).
4644 2000-07-27 H.J. Lu <hjl@gnu.org>
4646 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4647 (PARSE_AND_LIST_PROLOGUE): New.
4648 (PARSE_AND_LIST_LONGOPTS): Likewise.
4649 (PARSE_AND_LIST_OPTIONS): Likewise.
4650 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4651 (PARSE_AND_LIST_EPILOGUE): Likewise.
4653 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4655 * emultempl/armelf.em: Elide functions common to elf32.em,
4656 ie. most of the file.
4657 (arm_elf_after_open): New. Do arm specific things then call
4658 gld${EMULATION_NAME}_after_open.
4659 (arm_elf_before_allocation): New. Call
4660 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4661 (PARSE_AND_LIST_PROLOGUE): Define.
4662 (PARSE_AND_LIST_SHORTOPTS): Define.
4663 (PARSE_AND_LIST_LONGOPTS): Define.
4664 (PARSE_AND_LIST_OPTIONS): Define.
4665 (PARSE_AND_LIST_ARGS_CASES): Define.
4666 (LDEMUL_AFTER_OPEN): Define.
4667 (LDEMUL_BEFORE_ALLOCATION): Define.
4668 (LDEMUL_BEFORE_PARSE): Define.
4669 (LDEMUL_FINISH): Define.
4671 * emultempl/hppaelf.em: Similarly zap most of this file.
4672 (hppaelf_add_stub_section): Prototype.
4673 (hppaelf_layaout_sections_again): Prototype.
4674 (hook_in_stub): Prototype.
4675 (LDEMUL_SET_OUTPUT_ARCH): Define.
4676 (LDEMUL_FINISH): Define.
4677 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4679 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4680 (EXTRA_EM_FILE): New.
4681 * emulparams/armelf_linux.sh: Likewise.
4682 * emulparams/armelf_linux26.sh: Likewise.
4683 * emulparams/hppalinux.sh: Likewise.
4684 * emulparams/hppaelf.sh: Likewise.
4687 * emultempl/elf32.em: Fix formatting.
4688 (EXTRA_EM_FILE): Source it.
4689 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4690 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4691 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4692 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4693 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4694 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4695 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4696 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4697 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4698 allow functions in this file to be overridden.
4699 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4701 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4703 * emultempl/elf32.em: Reorganize file.
4705 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4707 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4708 specific option to fit 64-bit executable in the lower
4709 31-bit address range. This is done by changing start
4710 address of .interp (the very first section of executable)
4711 and then setting EF_ALPHA_32BIT elf header flag.
4713 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4715 * emultempl/m68kcoff.em: New file.
4716 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4717 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4719 * Makefile.in: Regenerate.
4721 2000-07-20 H.J. Lu <hjl@gnu.org>
4723 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4724 and "disable-new-dtags" to stop getopt from treating -d/-e as
4725 abbreviations for these options.
4727 2000-07-20 H.J. Lu <hjl@gnu.org>
4729 * ld.texinfo: Add documentation for --disable-new-dtags and
4732 * ldmain.c (main): Initialize link_info.new_dtags to false.
4734 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4735 --disable-new-dtags and --enable-new-dtags.
4736 (gld_${EMULATION_NAME}_list_options): Likewise.
4738 2000-07-05 Kenneth Block <krblock@computer.org>
4740 * lexsup.c: Add optional style to demangle switch
4741 * ld.texinfo: Document optional style to demangle switch.
4743 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4745 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4747 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4748 Regenerate dependencies.
4749 * Makefile.in: Rebuild.
4750 * configure.tgt (cris-*-*): New target.
4751 * emulparams/crisaout.sh, emulparams/criself.sh,
4752 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4753 * po/POTFILES.in, po/ld.pot: Regenerate.
4755 2000-07-20 H.J. Lu <hjl@gnu.org>
4757 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4758 Print out ignored -z options.
4760 2000-07-19 H.J. Lu <hjl@gnu.org>
4762 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4763 (PARSE_AND_LIST_PROLOGUE): New.
4764 (PARSE_AND_LIST_LONGOPTS): Likewise.
4765 (PARSE_AND_LIST_OPTIONS): Likewise.
4766 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4768 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4770 * lexsup.c (ld_options): Comment out 'z'.
4771 (parse_args): Likewise.
4773 * emultempl/elf32.em: Include "elf/common.h".
4774 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4776 (gld_${EMULATION_NAME}_list_options): Likewise.
4778 * ld.texinfo: Add documentation for the recognized -z options.
4780 2000-07-19 H.J. Lu <hjl@gnu.org>
4782 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4783 bfd_elf_set_dt_needed_soname ().
4785 2000-07-18 DJ Delorie <dj@cygnus.com>
4787 * pe-dll.c (pe_dll_id_target): check object target name also
4789 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4791 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4792 ${INIT_END} if relocating.
4793 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4795 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4797 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4798 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4799 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4800 errors introduced by the old dynamic lib search order.
4802 2000-07-17 DJ Delorie <dj@cygnus.com>
4804 * pe-dll.c (process_def_file): auto-export data items also
4805 (pe_process_import_defs): also see if _imp_ form needed
4807 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4809 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4810 for dll import libraries
4812 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4814 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4815 gcc 2.95.2 and later.
4817 2000-07-11 Kazu Hirata <kazu@hxi.com>
4819 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4822 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4824 * ldemul.h (struct lang_input_statement_struct): Remove forward
4826 (struct search_dirs): Likewise.
4827 * ldfile.h (struct lang_input_statement_struct): Likewise.
4828 Protect file from multiple inclusion.
4829 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4830 declaration from macro to file scope.
4832 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4833 * ldgram.y: Likewise here.
4834 * ldlang.c: And here.
4835 * ldmain.c: And here.
4836 * mpw-elfmips.c: And here.
4837 * mpw-eppcmac.c: And here.
4838 * emultempl/aix.em: And here.
4839 * emultempl/armcoff.em: And here.
4840 * emultempl/armelf.em: And here.
4841 * emultempl/armelf_oabi.em: And here.
4842 * emultempl/beos.em: And here.
4843 * emultempl/elf32.em: And here.
4844 * emultempl/hppaelf.em: And here.
4845 * emultempl/linux.em: And here.
4846 * emultempl/lnk960.em: And here.
4847 * emultempl/pe.em: And here.
4848 * emultempl/sunos.em: And here.
4849 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4850 * mpw-idtmips.c: Ditto.
4851 * emultempl/generic.em: Ditto.
4852 * emultempl/gld960.em: Ditto.
4853 * emultempl/gld960c.em: Ditto.
4854 * emultempl/mipsecoff.em: Ditto.
4855 * emultempl/ticoff.em: Ditto.
4856 * emultempl/vanilla.em: Ditto.
4858 * pe-dll.c: Include ldfile.h
4859 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4861 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4862 arguments to bfd_elf32_size_dynamic_sections call.
4863 (gldelf32ebmip_place_orphan): Add missing arguments to
4864 lang_leave_output_section_statement call.
4866 2000-07-10 H.J. Lu <hjl@gnu.org>
4868 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4870 (strhash): Likewise.
4871 (compute_dll_image_base): Likewise.
4872 (pe_undef_found_sym): Likewise.
4873 (pe_undef_cdecl_match): Likewise.
4874 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4875 argument "arch" with ATTRIBUTE_UNUSED.
4877 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4879 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4881 From Ryan Bradetich <rbradetich@uswest.net>
4882 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4884 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4886 Changes to create multiple linker stubs, positioned immediately
4887 before the section where they are required.
4888 * emultempl/hppaelf.em: Include elf32-hppa.h.
4889 (stub_sec, file_chain): Delete.
4890 (hppaelf_create_output_section_statements): Don't make a stub
4892 (hook_stub_info): New struct.
4893 (hook_in_stub): New function.
4894 (hppaelf_add_stub_section): New function.
4895 (hppaelf_finish): Do nothing for relocateable links. Modify the
4896 call to elf32_hppa_size_stubs. Move code for updating section
4898 (hppaelf_layaout_sections_again): ..to here, a new function.
4900 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4901 broken list handling. Pass in a pointer to the list.
4902 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4904 (hppaelf_before_parse): Prototype.
4905 (hppaelf_set_output_arch): Prototype.
4906 (hppaelf_create_output_section_statements): Prototype.
4907 (hppaelf_delete_padding_statements): Prototype.
4908 (hppaelf_finish): Prototype.
4911 * emultempl/hppaelf.em: Include ctype.h.
4912 (struct orphan_save): New.
4913 (gld${EMULATION_NAME}_place_orphan): New.
4914 (output_rel_find): New.
4915 (hppaelf_get_script): Update from elf32.em.
4916 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4917 Change emulation_name field to "${EMULATION_NAME}". Add
4918 gld${EMULATION_NAME}_place_orphan.
4920 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4921 ehppalinux.o, sort it. Regenerate dependencies.
4922 (ehppalinux.c): Depend on hppaelf.em
4923 * Makefile.in: Regenerate.
4925 * configure.tgt: targ_emul=hppalinux for hppa*linux
4927 * emulparams/hppalinux.sh: New.
4928 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4930 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4932 * lexsup.c (parse_args): Copy section name.
4934 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4936 * emultempl/pe.em: institute the following search order for
4937 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4938 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4939 static lib (libfoo.a) if none of the above are found.
4941 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4943 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4944 (longopts): New --{enable,disable}-auto-image-base options.
4945 (gld_${EMULATION_NAME}_list_options): Document.
4946 (gld_${EMULATION_NAME}_parse): Handle.
4947 (strhash): New static function.
4948 (compute_dll_image_base): New static function.
4949 (gld_${EMULATION_NAME}_set_symbols): Use.
4951 2000-07-05 DJ Delorie <dj@redhat.com>
4955 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4957 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4958 * emulparams/elf32btsmip.sh: New file.
4959 * Makefile.am: Add traditional mips target.
4960 * Makefile.in: Rebuild.
4962 2000-07-01 H.J. Lu <hjl@gnu.org>
4964 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4965 automake to use YLWRAP.
4966 * Makefile.in: Rebuild.
4968 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4970 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4971 (CLEANFILES): Add DEPA.
4972 * Makefile.in: Regenerate.
4974 2000-06-30 Timothy Wall <twall@ppc>
4976 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4977 the page in the upper octet of the address.
4979 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4981 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4983 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4985 * NEWS: arm-elf does --gc-sections too.
4987 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4989 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4991 * Makefile.in: Regenerate.
4993 2000-06-21 H.J. Lu <hjl@gnu.org>
4995 * Makefile.am: Rebuild dependency.
4996 * Makefile.in: Rebuild.
4998 2000-06-20 H.J. Lu <hjl@gnu.org>
5000 * Makefile.am: Rebuild dependency.
5001 * Makefile.in: Rebuild.
5003 2000-06-20 Timothy Wall <twall@cygnus.com>
5005 * scripttempl/tic54xcoff.sc: New.
5006 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5007 * gen-doc.texi: Add flag for TI COFF.
5008 * ld.texinfo: Add documentation for TI COFF handling switches.
5009 * emultempl/ticoff.em: New. TI COFF handling.
5010 * configure.tgt: Add tic54x target.
5011 * Makefile.am: Add tic54x target.
5012 * Makefile.in: Ditto.
5014 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5016 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5017 checking for backslashes.
5019 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5021 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5023 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5025 * NEWS: Update list of targets supporting --gc-sections.
5027 * scripttempl/elf.sc: KEEP .eh_frame contents.
5028 * scripttempl/elfd30v.sc: Same here.
5030 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5032 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5034 * Makefile.in: Rebuild.
5035 * configure.tgt: Recognize m68hc12 and m68hc11.
5036 * scripttempl/elfm68hc12.sc: New file.
5037 * emulparams/m68hc12elfb: New emulation.
5038 * emulparams/m68hc12elf: New emulation.
5039 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5040 (includes a memory.x script to define the ROM and RAM banks).
5041 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5042 New configuration files for support of Motorola 68hc11
5044 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5046 * ldmain.c (main): Only change SEC_READONLY for final link.
5048 2000-06-13 H.J. Lu <hjl@gnu.org>
5050 * configure: Regenerate.
5052 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5054 * configure.in (VERSION): Update to show this is the CVS mainline.
5056 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5058 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5059 input objects to be ECOFF.
5060 (check_sections): einfo takes %B, not %P, to print a BFD name.
5062 2000-06-05 Michael Matz <matz@ifh.de>
5064 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5067 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5069 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5071 * emulparams/avr1200.sh (STACK): Define as 0.
5072 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5073 * emulparams/avr4433.sh (STACK): Likewise.
5074 * emulparams/avr44x4.sh (STACK): Likewise.
5075 * emulparams/avr85xx.sh (STACK): Likewise.
5076 * emulparams/avrmega103.sh (STACK): Likewise.
5077 * emulparams/avrmega161.sh (STACK): Likewise.
5078 * emulparams/avrmega603.sh (STACK): Likewise.
5079 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5080 (__stack): Define from ${STACK} for main().
5082 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5084 * Makefile.am: Update dependencies with "make dep-am"
5085 * Makefile.in: Regenerate.
5087 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5089 * ldmain.c: Include filenames.h.
5090 (set_scripts_dir): Support backslashes in program name.
5092 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5094 * ldmain.c (main): When deciding if ".text" section should be
5095 read-only, don't forget to reset SEC_READONLY because it
5096 could be already set.
5098 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5100 * ld.1: Add documentation for new command line option:
5101 --section-start <sectionname>=<sectionorg>
5102 This is a generic version of -Ttext etc. which accepts
5103 any section name as a parameter instead of just text/data/
5105 * ld.texinfo: More docs.
5107 * lexsup.c: (parse_args): Recognize new command line option.
5108 (ld_options): Add new option.
5110 2000-05-18 H.J. Lu <hjl@gnu.org>
5112 * lexsup.c (parse_args): `i' == `r', not `q'.
5114 2000-05-18 Jeffrey A Law (law@cygnus.com)
5116 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5118 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5119 Rick Gorton <gorton@scrugs.lkg.dec.com>
5121 Add support for '-q' == '--emit-relocs' switch.
5122 * ldmain.c (main): Default to false.
5123 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5124 * NEWS: Describe the emitrelocations switch.
5125 * ld.texinfo: Describe the emitrelocations switch.
5127 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5129 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5130 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5131 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5134 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5136 * lexsup.c (parse_args): Update the year in the copyright notice.
5138 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5140 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5141 Replace defines with those from intl/libgettext.h to quieten gcc
5144 2000-05-10 H.J. Lu <hjl@gnu.org>
5146 * ldlang.c (open_input_bfds): Don't load the same file within
5147 a group again if the whole archive has been loaded already.
5149 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5151 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5152 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5155 2000-05-01 Jim Wilson <wilson@cygnus.com>
5157 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5159 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5160 host "ia64-*-linux-gnu*".
5162 2000-04-29 Andreas Jaeger <aj@suse.de>
5164 * ld.h: Correctly check GCC version.
5166 2000-04-25 Jeffrey A Law (law@cygnus.com)
5168 * Makefile.am: Add PA64 support. Add missing dependencies for
5170 * Makefile.in: Rebuilt.
5171 * configure.tgt: Add PA64 support (currently disabled).
5173 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5175 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5176 (output_rel_find): New function.
5177 (hold_section, hold_use): Delete.
5178 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5179 hold_interp): Make local to place_orphan.
5180 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5181 rather than place_section to find possible previous use of orphan.
5182 Similarly find the place-holder output sections. Use returned
5183 value from lang_enter_output_section_statement rather than calling
5184 lang_output_section_statement_lookup.
5185 * emultempl/armelf.em: Same here.
5186 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5188 * ldlang.c (lang_enter_output_section_statement): Return output
5190 * ldlang.h (lang_enter_output_section_statement): Change
5193 * ldlang.h (lang_output_section_statement): Export it.
5194 * ldlang.c (lang_output_section_statement): Ditto.
5196 2000-04-24 Nick Clifton <nickc@cygnus.com>
5198 * ld.texinfo (Output Section Data): Add note that section data
5199 commands cannot appear outside of section directives.
5201 2000-04-2 Matthew Green <mrg@cygnus.com>
5203 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5205 2000-04-21 Richard Henderson <rth@cygnus.com>
5206 David Mosberger <davidm@hpl.hp.com>
5208 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5209 (eelf64_ia64.c): New rule.
5210 * Makefile.in: Rebuild.
5211 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5212 * emulparams/elf64_ia64.sh: New file.
5214 2000-04-21 Richard Henderson <rth@cygnus.com>
5216 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5218 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5220 * dep-in.sed: Match space at start of file name, not at end.
5222 2000-04-18 H.J. Lu <hjl@gnu.org>
5224 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5225 lang_leave_output_section_statement () after calling
5226 lang_enter_output_section_statement ().
5227 * emultempl/armelf.em: Likewise.
5229 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5231 * emultempl/elf32.em (struct orphan_save): Add section field.
5232 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5233 better order, and place first orphan section as we did before the
5234 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5235 Don't call make_bfd_section here, let wild_doit do the job for us.
5236 Don't build a statement list when we'll only throw it away.
5237 * emultempl/armelf.em: Ditto.
5238 * emultempl/pe.em: Similarly.
5240 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5242 * scripttempl/elfppc.sc: Remove.
5243 * emulparams/elf32ppc.sh: Use elf.sc.
5244 * emulparams/elf32lppc.sh: Use elf.sc.
5245 * emulparams/elf32ppclinux.sh: Use elf.sc.
5246 * emulparams/elf32ppcsim.sh: New file.
5247 * emulparams/elf32lppcsim.sh: New file.
5248 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5249 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5250 * Makefile.in: Regenerate.
5251 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5253 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5255 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5256 ~SEC_ALLOC sections too. Init start address of debug sections.
5257 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5258 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5259 Also set all relocateable section start addresses.
5261 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5263 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5264 Add new BSS_PLT variable for when .plt need not be contained in
5265 the file. Move _etext so that it is also after .fini, and provide
5266 both etext and _etext with a leading underscore. Mark the start
5269 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5271 * emultempl/elf32.em (struct orphan_save): New.
5272 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5273 hold_interp): Make them struct orphan_save.
5274 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5275 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5276 the end of the relevant section list. Also add associated section
5277 statements to the end of any previous orphan statements.
5278 * emultempl/armelf.em: Similarly.
5279 * emultempl/pe.em: Similarly.
5281 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5283 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5285 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5287 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5288 --enable-build-warnings option.
5289 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5290 * Makefile.in, configure: Re-generate.
5292 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5294 * po/ld.pot: Regenerate.
5296 * lexsup.c (help): Restore translated part of bug string.
5298 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5299 (DEP): Quote when passing vars to sub-make. Add warning message
5301 (DEP1): Rewrite for "gcc -MM".
5302 (CLEANFILES): Add DEP2.
5303 Update dependencies.
5304 * Makefile.in: Regenerate.
5306 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5308 * ld.h: #include "bin-bugs.h"
5309 * lexsup.c (help): Use REPORT_BUGS_TO.
5311 2000-03-27 Denis Chertykov <denisc@overta.ru>
5313 * configure.tgt (avr-*-*): New target support.
5314 * Makefile.am: Likewise.
5315 * scripttempl/elf32avr.sc: New script file.
5316 * emulparams/avr1200.sh: New file.
5317 * emulparams/avr23xx.sh: New file.
5318 * emulparams/avr4433.sh New file.
5319 * emulparams/avr44x4.sh New file.
5320 * emulparams/avr85xx.sh New file.
5321 * emulparams/avrmega103.sh New file.
5322 * emulparams/avrmega161.sh New file.
5323 * emulparams/avrmega603.sh New file.
5324 * Makefile.in: Regenerate.
5326 2000-03-09 Andreas Jaeger <aj@suse.de>
5328 * Makefile.am (check-DEJAGNU): Also unset LANG.
5329 * Makefile.in: Rebuild.
5331 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5333 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5336 2000-03-02 H.J. Lu <hjl@gnu.org>
5338 * emulparams/elf32mcore.sh: Include "getopt.h".
5340 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5342 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5344 2000-03-01 H.J. Lu <hjl@gnu.org>
5346 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5347 * emulparams/shpe.sh: Likewise.
5349 2000-03-01 Nick Clifton <nickc@cygnus.com>
5351 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5352 to unused parameters.
5354 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5355 functions only used by DLL code.
5356 (_place_orphan): Initialise 'dollar'.
5358 2000-03-01 H.J. Lu <hjl@gnu.org>
5360 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5361 indicate if the undefined symbol is a fatal error or not.
5362 Don't delete the output file if "fatal" is false.
5364 2000-02-29 H.J. Lu <hjl@gnu.org>
5366 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5367 Set LC_COLLATE and LC_ALL to null and export them. It is for
5368 sort which expects the C locale.
5369 Add $(LIBS) to all $(HOSTING_LIBS).
5370 * Makefile.in: Rebuild.
5372 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5374 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5375 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5376 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5377 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5378 find_potential_libraries.
5380 2000-02-28 Jim Blandy <jimb@redhat.com>
5382 * ldgram.y (exclude_name_list): Don't require a comma to separate
5383 list entries; the lexer considers commas to be valid part of a
5384 filename, so in something like `foo, bar' the comma is considered
5385 part of the first filename, `foo,'.
5386 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5388 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5390 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5391 host "i[3456]86-*-freebsdelf*".
5393 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5395 * scripttempl/i386go32.sc: Move misplaced semicolons.
5397 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5399 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5400 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5401 (eelf64hppa.c, ehppaelf.c): Remove targets.
5402 * Makefile.in: Rebuild.
5404 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5406 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5407 GNU/Linux/sparc, but keep the default as 32.
5409 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5410 it default if sparcv9 or sparc64.
5412 2000-02-24 Nick Clifton <nickc@cygnus.com>
5414 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5415 * Makefile.in: Regenerate.
5416 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5418 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5419 find_potential_libraries.
5420 * ldemul.c (ldemul_find_potential_libraries): New function.
5422 * ldfile.c (ldfile_open_file_search): Allow function to be
5424 (ldfile_open_file): Call ldemul_find_potential_libraries.
5425 * ldfile.h: Add prototype for ldfile_open_file_search.
5427 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5429 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5430 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5432 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5433 (gld_X_find_potential_libraries): New function. Search for
5434 libraries called "*.lib".
5436 * scripttempl/pe.sc: Add .pdata section.
5438 2000-02-23 Richard Henderson <rth@cygnus.com>
5440 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5441 Add and use memory regions.
5443 2000-02-23 Linas Vepstas (linas@linas.org)
5445 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5447 * Makefile.am: Add support for Linux/IBM 370.
5448 * configure.tgt: Likewise.
5450 * Makefile.in: Regenerate.
5452 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5454 * ldlang.c (print_input_section, print_data_statement,
5455 print_reloc_statement, print_padding_statement, insert_pad,
5456 size_input_section, lang_check_section_addresses,
5457 lang_size_sections, lang_do_assignments, lang_set_startof,
5458 lang_one_common): Change `opb' to unsigned.
5459 (lang_do_assignments): Also change `size' to unsigned.
5461 2000-02-16 Richard Henderson <rth@cygnus.com>
5463 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5465 2000-02-16 Timothy Wall <twall@cygnus.com>
5467 * mri.c (mri_draw_tree): Add default LMA region argument to call
5468 to lang_leave_output_section_statement.
5469 * ldlang.h: Update prototypes with LMA region arguments.
5470 * ldlang.c (lang_size_sections): Encapsulate region bounds
5471 checking in os_check_region call.
5472 (os_check_region): New function.
5473 (lang_output_section_statement_lookup): Initialize lma_region.
5474 (lang_leave_output_section_statement): Add LMA region argument.
5475 (lang_leave_overlay): Ditto.
5476 * ldgram.y: Handle LMA region syntax.
5477 * ld.texinfo (Output Section Description): Describe LMA region usage.
5478 * emultempl/armelf.em (gld$place_orphan): Add default value for
5479 lma region in call to lang_leave_output_section_statement.
5480 * emultempl/elf32.em (gld$place_orphan): Add default value for
5481 lma region in call to lang_leave_output_section_statement.
5482 * emultempl/pe.em (gld$place_orphan): Add default value for
5483 lma region in call to lang_leave_output_section_statement.
5486 2000-02-04 Timothy Wall <twall@redhat.com>
5488 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5489 octets when calculating section end addresses.
5491 2000-02-04 Timothy Wall <twall@redhat.com>
5493 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5495 2000-02-03 Timothy Wall <twall@redhat.com>
5497 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5499 * ldlang.c (print_input_section, print_data_statement,
5500 print_reloc_statement, print_padding_statement): Print target
5501 address values and section sizes as bytes, not octets.
5502 (insert_pad) Calculate padding size in octets, and adjust "dot"
5504 (size_input_section) Always adjust "dot" by bytes, not octets.
5505 (lang_check_section_addresses, lang_do_assignments) Adjust
5506 "dot" by bytes, not octets. Use the larger of the directive size
5507 or octets_per_byte for the number of octets actually allocated in
5509 (lang_set_startof) Make sure STARTOF returns a target address.
5510 (lang_one_common) Record size changes in octets.
5511 (lang_abs_symbol_at_end_of) Section end symbol's value is
5512 recorded in target bytes.
5513 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5514 to be clear about behavior when an octet is smaller than one byte.
5516 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5518 * ldcref.c (output_cref): Don't pass message strings to printf
5522 * ldmisc.c (vfinfo): Same here.
5525 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5527 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5528 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5529 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5530 Add missing NULL initialisers, and comments.
5532 2000-01-21 Nick Clifton <nickc@cygnus.com>
5534 * ldlang.c (lang_size_sections): Fix typo in comment.
5536 2000-01-18 H.J. Lu <hjl@gnu.org>
5538 * ldlang.c (lang_size_sections): Also update the current
5539 address of a region if the SEC_NEVER_LOAD bit is not set.
5541 2000-01-10 Philip Blundell <pb@futuretv.com>
5543 * configure.tgt (arm*-*-conix*): New target.
5545 2000-01-07 Nick Clifton <nickc@cygnus.com>
5547 * ld.texinfo (Options): Remind users to preceed linker command
5548 line switches with -Wl, (or whatever is appropriate) if it is
5549 being invoked by a comnpiler driver program.
5550 Fix description of the behaviour of the -n command line switch.
5552 2000-01-05 Catherine Moore <clm@cygnus.com>
5554 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5556 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5557 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5558 (exclude_name_list): New.
5559 ldlang.c (walk_wild_section): Support list of excluded files.
5560 (print_wild_statement): Likewise.
5561 (lang_add_wild): Likewise.
5562 * ldlang.h (lang_wild_statement_type): Likewise.
5563 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5565 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5567 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5568 (process_def_file): Use.
5569 (pe_dll_compat_implib): New variable.
5572 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5573 pe_dll_compat_implib.
5575 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5576 compat-implib options.
5577 (gld_${EMULATION_NAME}_list_options): List new options.
5578 (gld_${EMULATION_NAME}_parse_args): Handle.
5580 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5583 * deffilep.y (opt_name): Allow "." in name.
5585 For older changes see ChangeLog-9899
5591 version-control: never