1 2003-02-28 Alan Modra <amodra@bigpond.net.au>
3 * ldemul.c (ldemul_parse_args): Return FALSE by default.
4 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
7 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
8 (ldemul_parse_args): Return bfd_boolean. Formatting.
9 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
10 (ldemul_parse_args): Adjust.
11 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
12 Return bfd_boolean from parse_args.
13 * lexsup.c (parse_args): Malloc shortopts, longopts and
14 really_longopts. Call ldemul_add_options and ldemul_handle_option.
15 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
16 gld${EMULATION_NAME}_parse_args.
17 (gld${EMULATION_NAME}_handle_option): Likewise.
18 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
19 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
20 * emultempl/beos.em: Likewise.
21 * emultempl/pe.em: Likewise.
22 * emultempl/ticoff.em: Likewise.
23 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
24 (gld${EMULATION_NAME}_add_sysroot): Prototype.
25 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
27 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
28 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
29 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
30 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
32 * emultempl/generic.em: Likewise.
33 * emultempl/gld960.em: Likewise.
34 * emultempl/gld960c.em: Likewise.
35 * emultempl/linux.em: Likewise.
36 * emultempl/lnk960.em: Likewise.
37 * emultempl/m68kcoff.em: Likewise.
38 * emultempl/mipsecoff.em: Likewise.
39 * emultempl/sunos.em: Likewise.
40 * emultempl/vanilla.em: Likewise.
41 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
43 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
45 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
46 memory allocation error.
48 * Makefile.am (ldmain.o): Define TOOLBINDIR.
49 * Makefile.in: Rebuilt.
50 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
52 2003-02-21 Bob Wilson <bob.wilson@acm.org>
54 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
55 call os_region_check when it is set.
56 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
58 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
59 only for the last call, not on every relaxation iteration.
60 * ldlang.h (lang_size_sections): Update prototype.
61 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
62 to lang_size_sections.
63 (pe_exe_fill_sections): Likewise.
64 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
65 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
66 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
67 (ppc_layout_sections_again): Likewise.
69 2003-02-21 Bob Wilson <bob.wilson@acm.org>
71 * gen-doc.texi: Set ARM and HPPA variables.
72 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
73 title capitalization more consistent. Add missing menu entries for
74 machine-specific sections and conditionalize them consistently.
75 Conditionalize text that is irrelevant when SingleFormat is set.
76 Add @group divisions to improve page breaks in long examples.
77 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
78 is correct. Remove "FIXME" comment about not using
79 @raisesections/@lowersections. Use @raisesections/@lowersections
80 consistently for machine-specific sections. Change to be more polite
81 about poor bug reports. Replace FDL appendix with include of fdl.texi.
82 Move WIN32 node to match its order in the menus.
85 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
87 * configure.in (TARGET_SYSTEM_ROOT): Set default to
88 ${exec_prefix}/${target_alias}/sys-root. Match explicit
89 '${exec_prefix}' (in addition to the expansion thereof) as
93 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
95 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
97 2003-02-20 Harri Porten <porten@kde.org>
99 * ldgram.y (vers_defns): Allow optional trailing semicolon in
102 2003-02-18 Alan Modra <amodra@bigpond.net.au>
104 * emultempl/ppc32elf.em: New file.
105 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
106 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
107 (eelf32lppcnto.c): Likewise.
108 (eelf32lppcsim.c): Likewise.
109 (eelf32ppcnto.c): Likewise.
110 (eelf32ppc.c): Likewise.
111 (eelf32ppc_fbsd.c): Likewise.
112 (eelf32ppcsim.c): Likewise.
113 (eelf32ppclinux.c): Likewise.
114 * Makefile.in: Regenerate.
116 2003-02-18 Alan Modra <amodra@bigpond.net.au>
118 * ld.texinfo: Remove spaces between @samp and opening brace.
120 2003-02-18 Alan Modra <amodra@bigpond.net.au>
122 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
124 (ppc_before_allocation): Don't do optimizations if wrong hash table.
125 (gld${EMULATION_NAME}_finish): Ditto.
127 2003-02-17 Nick Clifton <nickc@redhat.com>
129 * ldmain.c (main) Default allow_shlib_undefined to true.
130 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
131 (parse_args): Parse the new switch.
132 * ld.texinfo: Document new switch and default behaviour of
133 allowing undefined symbols in shared libraries.
135 2003-02-11 Dmitry Diky <diwil@mail.ru>
137 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
138 * scripttempl/elf32msp430_3.sc: Likewise.
140 2003-02-11 Uwe Stieber <uwe@wwws.de>
142 * configure.tgt: Add support for kaOS as cross build target
145 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
147 * hppaelf.em (group_size): Change default back to 1.
149 2003-02-09 Alan Modra <amodra@bigpond.net.au>
151 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
153 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
155 * hppaelf.em (group_size): Change default to -1.
157 2003-02-07 Nick Clifton <nickc@redhat.com>
159 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
161 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
162 no-pipeline-knowledge. This will prevent the getopt package from
163 thinking that there are any shorter abbreviations for
164 --no-pipeline-knowledge.
166 2003-02-07 Jakub Jelinek <jakub@redhat.com>
168 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
169 which already have it. Avoid duplicates.
171 2003-02-06 Jakub Jelinek <jakub@redhat.com>
173 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
174 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
175 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
177 2003-02-05 Alan Modra <amodra@bigpond.net.au>
179 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
180 call ppc64_elf_tls_optimize.
182 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
184 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
185 outside of GNU/Linux conditional.
187 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
189 * deffilep.y (def_get_module): New function: locate an already
191 * deffile.h (def_get_module): New prototype.
192 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
193 a dll multiple times.
195 2003-01-23 Alan Modra <amodra@bigpond.net.au>
197 * emultempl/sh64elf.em: Include elf32-sh64.h.
198 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
199 sh64_elf_section_data.
200 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
202 2003-01-23 Wu Yongwei <adah@netstd.com>
204 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
205 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
206 cross-80th-column-margin "an" to the next line.
208 2003-01-21 Nick Clifton <nickc@redhat.com>
210 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
211 * emulparams/tic3xcoff_onchip.sh: ...this.
212 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
213 * Makefile.in: Regenerate.
215 2003-01-21 Fabio Alemagna <falemagn@aros.org>
217 * configure.tgt: Handle i[3456]86-*-aros*
219 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
221 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
222 * Makefile.in: Regenerate
223 * configure.tgt: Added extra target emulations
224 * emulparams/tic3xcoff.sh: Remove old settings
225 * emulparams/tic4xcoff.sh: Ditto
226 * emulparams/tic3xcoff-onchip.sh: Added new
227 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
228 * scripttempl/tic3xcoff.sc: Remove
230 2003-01-17 Andreas Jaeger <aj@suse.de>
232 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
235 2003-01-16 Alan Modra <amodra@bigpond.net.au>
237 * Makefile.in: Regenerate.
239 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
241 * ld/ld.texinfo (node WIN32): Some clarifications
242 and formatting fixups.
244 2003-01-09 Chris Demetriou <cgd@broadcom.com>
246 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
247 order, and handle (ignore) -mips32r2.
249 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
251 * ldmain.c (main): Make sure ld_sysroot is initialized.
253 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
255 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
257 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
258 (GENSCRIPTS): Add @use_sysroot@.
259 * Makefile.in: Regenerated.
260 * configure.host: Move setting of NATIVE_LIB_DIRS to...
261 * configure.tgt: ... here. Use ${target} instead of ${host}
263 * configure.in: Add --with-sysroot.
264 * configure: Regenerated.
265 * genscripts.sh: Accept use_sysroot option. Set new variables
266 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
267 $use_sysroot. Don't search $tool_lib if $use_sysroot.
268 * ldfile.c (ldfile_add_library_path): Handle leading '='.
269 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
270 (ld_sysroot): New variable.
271 (main): Initialize ld_sysroot.
272 * ldmain.h (ld_sysroot): New extern.
273 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
274 searching $EMULATION_LIBPATH.
275 (gld${EMULATION_NAME}_add_sysroot): New function.
276 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
277 (gld${EMULATION_NAME}_after_open): Likewise. Only search
278 environment variables if $NATIVE.
279 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
280 * NEWS: Mention --with-sysroot.
282 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
283 instead of setting LIB_PATH.
284 * emulparams/elf32ppc.sh: Likewise.
285 * emulparams/elf64_s390.sh: Likewise.
286 * emulparams/elf64_sparc.sh: Likewise.
287 * emulparams/elf64ppc.sh: Likewise.
288 * emulparams/elf_x86_64.sh: Likewise.
290 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
291 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
293 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
295 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
297 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
299 * Makefile.am (ldmain.o): Pass BINDIR.
300 * Makefile.in: Regenerated.
301 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
304 2003-01-02 Ben Elliston <bje@redhat.com>
306 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
307 (eelf32iq2000.c): New target.
308 * Makefile.in: Regenerate.
309 * configure.tgt: Handle iq2000-*-elf.
310 * emulparams/elf32iq10.sh: New file.
311 * emulparams/elf32iq2000.sh: New file.
312 * scripttempl/iq2000.sc: New file.
314 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
316 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
317 and _pei386_runtime_relocator to the exclude list.
319 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
321 * ldfile.c: Fix comment typos.
322 * ldlang.c: Likewise.
324 * pe-dll.c: Likewise.
326 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
328 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
329 * Makefile.am (ld.1): Depend on configdoc.texi
331 * Makefile.in: Regenerated.
333 2002-12-24 Dmitry Diky <diwil@mail.ru>
335 * Makefile.am: Add msp430 target.
336 * configure.tgt: Likewise.
337 * Makefile.in: Regenerate.
338 * emulparams/msp430x???.sh: New files. Linker script parameters
339 for various msp430 configurations.
340 * gen-doc.texi: Enable msp430 documenation.
341 * ld.texinfo: Document msp430 sections.
342 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
343 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
345 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
346 Charles Wilson <cwilson@ece.gatech.edu>
348 * ld/config.in (HAVE_REALPATH): New entry.
349 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
351 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
353 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
356 2002-12-23 Alan Modra <amodra@bigpond.net.au>
358 * ldmain.c (main): Init "strip_discarded".
359 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
360 (OPTION_NO_STRIP_DISCARDED): Define.
361 (ld_options): Add "strip-discarded" and "no-strip-discarded".
362 (parse_args): Handle them.
364 2002-12-23 Nick Clifton <nickc@redhat.com>
366 * ld.h (struct args_type): Add new field
367 'accept_unknown_input_architecture'.
368 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
370 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
371 bfd_arch_get_compatible.
372 * ldfile.c (ldfile_try_open_bfd): Likewise.
373 * lexsup.c (ld_options): Add new command line switch
374 --accept-unknown-input-architecture and its inverse.
375 (parse_args): Handle --accept-unknown-input-architecture.
376 * ld.texinfo: Document new linker option.
377 * NEWS: Mention new linker option.
379 2002-12-20 Alan Modra <amodra@bigpond.net.au>
381 * ldmain.c (main): Re-order link_info initialization. Init all
384 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
386 * ld.texinfo: Clarify and extend the documentation
387 in the Machine Dependent, WIN32 section.
389 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
391 * ld.texinfo: Add win32 machine depending section.
392 * gen-doc.texi: Enable win32 machine depending section.
394 * configure.host: Add win32 library search path.
396 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
398 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
399 import when auto-import is disabled.
401 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
403 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
404 account for trailing '\0'.
406 2002-12-17 Nick Clifton <nickc@redhat.com>
408 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
409 so that it is not confused with -c.
411 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
412 Charles Wilson <cwilson@ece.gatech.edu>
414 * configure.in: Add check for realpath function.
415 * configure: Regenerate.
416 * config.in: Regenerate.
417 * aclocal.m4: Regenerate.
418 * deffile.h: Add .data field to def_file_import
420 * pe-dll.c (pe_proces_import_defs): Use .data field of
421 def_file_import structure to initialize flag_data field of
422 def_file_export structure.
423 (pe_implied_import_dll): New variables exp_funcbase and
424 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
425 not filename (which may be a symlink). Scan the sections and
426 initialize [data|bss]_[start|end]. When scanning the export
427 table, skip _nm_ symbols, and mark any symbols whose rva indicates
428 that it is in the .bss or .data sections as data.
429 * sysdep.h: Include limits.h and sys/param.h, and define
430 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
431 exists, NULL otherwise.
432 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
433 pe_process_import_defs before pe_find_data_imports, so that
434 auto-import will check the virtual implib as well as "real"
436 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
437 symlinks to their target; check that the target's extension is
438 .dll before calling pe_implied_import_dll(), not the filename
439 itself (which may be a symlink).
441 2002-12-10 Alan Modra <amodra@bigpond.net.au>
443 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
444 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
447 2002-12-08 Alan Modra <amodra@bigpond.net.au>
449 * ldlang.h: Formatting.
451 2002-12-07 Alan Modra <amodra@bigpond.net.au>
453 * ldlang.c (init_os): Ensure sections mentioned in load_base
456 2002-12-05 Alan Modra <amodra@bigpond.net.au>
458 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
459 load_base for orphans that follow a section with load_base set.
461 2002-12-01 H.J. Lu <hjl@gnu.org>
463 * ld.texinfo: Remove the extra `;' in sample version script.
465 2002-11-30 Alan Modra <amodra@bigpond.net.au>
467 * configure.host: Correct dynamic-linker for powerpc64 hosts.
469 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
470 * Makefile.in: Regenerate.
472 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
473 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
474 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
475 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
476 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
477 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
478 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
479 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
480 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
481 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
482 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
483 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
484 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
486 2002-11-27 David O'Brien <obrien@FreeBSD.org>
488 * configure.host: Fix generic FreeBSD configuration entry.
490 2002-11-27 H.J. Lu <hjl@gnu.org>
492 * ld.texinfo: Add the missing `;' to sample version scripts.
494 2002-11-20 Alan Modra <amodra@bigpond.net.au>
496 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
498 2002-11-14 Egor Duda <deo@logos-m.ru>
500 * ldmain.c (main): Make runtime relocs disabled by default. Remove
501 assignment which has no effect.
502 * pe-dll.h (pe_create_import_fixup): Change prototype.
503 * pe-dll.c (make_runtime_pseudo_reloc): New function.
504 (pe_create_runtime_relocator_reference): Ditto.
505 (pe_create_import_fixup): Handle relocations with non-zero addends.
506 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
507 --disable-runtime-pseudo-reloc.
508 (make_import_fixup): Handle relocations with non-zero addends. Create
509 an external reference to _pei386_runtime_relocator symbol if at least
510 one pseudo reloc was created.
511 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
512 --disable-runtime-pseudo-reloc options.
514 2002-11-12 Earl Chew <earl_chew@agilent.com>
516 * ldlang.c (lang_add_section): Discard debugging sections that have
517 been marked SEC_EXCLUDE.
519 2002-11-12 Nick Clifton <nickc@redhat.com>
521 * configure.in (ALL_LINGUAS): Add da.
522 * configure: Regenerate.
523 * po/da.po: New Danish translation.
525 2002-11-12 Alan Modra <amodra@bigpond.net.au>
527 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
528 (LDEMUL_BEFORE_ALLOCATION): Define.
529 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
531 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
533 2002-11-11 Christopher Faylor <cgf@redhat.com>
535 * configure.tgt (LIB_PATH): Default to searching w32api directory under
538 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
540 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
541 of restricted auto-export libs.
543 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
545 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
546 creative library naming instances like, e.g., libstdc++-2.a.
548 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
550 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
551 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
553 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
555 * deffilep.y (def_lex): Handle '@' as first character of an ID.
556 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
557 (make_one): Don't prefix decorated fastcall symbols with '_'.
558 (pe_process_import_defs): Likewise.
559 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
560 symbols to cdecl names or vise-versa.
562 2002-10-13 Eric Kohl <ekohl@rz-online.de>
564 * pe-dll.c (process_def_file): Handle fastcall symbols when
565 generating undecorated aliases. Don't prefix decorated fastcall
567 (fill_exported_offsets): Don't prefix decorated fastcall symbols
570 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
572 * emultempl/aix.em: Use include <> for generated headers.
573 * emultempl/beos.em: Likewise.
574 * emultempl/elf32.em: Likewise.
575 * emultempl/pe.em: Likewise.
576 * ldctor.c: Likewise.
578 * ldfile.c: Likewise.
579 * ldlang.c: Likewise.
582 * ldmain.c: Likewise.
583 * ldmisc.c: Likewise.
584 * ldwrite.c: Likewise.
585 * lexsup.c: Likewise.
587 * pe-dll.c: Likewise.
589 2002-10-23 Jakub Jelinek <jakub@redhat.com>
591 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
592 sections into .rel{,a}.dyn.
594 2002-10-23 Nick Clifton <nickc@redhat.com>
596 * lexsup.c (OPTION_NO_OMAGIC): Define.
597 (ld_options): Add "no-omagic" option.
598 (parse_args): Parse --no-omagic.
599 * ld.texinfo: Document --no-omagic.
600 * NEWS: Mention new option.
602 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
604 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
605 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
607 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
609 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
610 emulation name. Set LIB_PATH only for native tools, and
611 search the ABI-specific versions of NATIVE_LIB_DIRS before the
612 .../lib variants, not instead of them. Mostly copied from...
613 * emulparams/elf32ppc.sh: ... here. Fixed typo.
614 * emulparams/elf64bmip-defs.sh: Backed out.
615 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
616 * emulparams/elf64btsmip.sh: Likewise.
617 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
618 TEXT_DYNAMIC): Removed.
620 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
622 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
623 (GENERATE_SHLIB_SCRIPT): Set to yes.
624 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
625 * emulparams/elf32bmipn32.sh: here.
626 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
627 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
628 * emulparams/elf64bmip-defs.sh: New file. Extend
629 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
630 * emulparams/elf64bmip.sh: Bring in definitions from
632 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
634 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
635 * emulparams/elf64btsmip.sh: Bring in definitions from
637 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
638 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
640 2002-10-16 Jakub Jelinek <jakub@redhat.com>
642 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
643 (s390-*-linux*): Add elf64_s390 emulation if want64.
644 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
645 genscript.sh changes.
646 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
647 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
649 2002-10-15 Alan Modra <amodra@bigpond.net.au>
651 * ldlang.c (load_symbols): Revert last change.
653 2002-10-14 Alan Modra <amodra@bigpond.net.au>
655 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
657 (lang_reasonable_defaults): Don't compare against false.
658 (size_input_section): Likewise.
659 (lang_size_sections_1): Likewise.
660 (lang_do_assignments): Likewise.
661 (lang_add_output): Likewise.
663 * Makefile.am: Run "make dep-am".
664 * Makefile.in: Regenerate.
665 * ldver.c: #include "bfdver.h".
667 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
669 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
671 * scripttempl/elfm68hc12.sc: Likewise.
673 2002-10-11 Alan Modra <amodra@bigpond.net.au>
675 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
677 * ldgram.y (memory_spec): Provide empty action.
678 (section <NAME>): Likewise.
680 2002-10-10 Jakub Jelinek <jakub@redhat.com>
682 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
683 they have OUTPUT_FORMAT not matching actual output format.
684 * ldlang.c (lang_get_output_target): New function.
685 (open_output): Use it.
686 * ldlang.h (lang_get_output_target): New prototype.
688 2002-10-10 Alan Modra <amodra@bigpond.net.au>
690 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
691 when orphan is .rel, .rela when orphan is .rela.
692 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
693 first. Remove outsecname var.
695 2002-10-09 Richard Shann <richard.shann@superh.com>
696 Stephen Clarke <stephen.clarke@superh.com>
698 * Makefile.am: Add eshelf32_linux.o and
699 eshlelf32_linux.o, new emulations for sh64 Linux.
700 * Makefile.in: Regenerate.
701 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
702 * emulparams/shelf32_linux.sh: New file.
703 * emulparams/shlelf32_linux.sh: New file.
705 2002-10-08 H.J. Lu <hjl@gnu.org>
707 * ldlang.c (lang_file_exist): Removed.
708 (new_afile): Revert the last change.
709 * ldlang.h (lang_file_exist): Removed.
710 * lexsup.c (parse_args): Revert the last change.
712 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
714 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
716 (make_one): Create _nm_<symbol> for data only.
718 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
720 * ldlang.c (lang_file_exist): New function.
721 (new_afile): Abort if the filename to be added matches the linker
723 * ldlang.h: Add prototype for lang_file_exist.
724 * lexsup.c (parse_args): Abort if the output filename matches
725 one of the input filenames.
727 2002-10-02 Alan Modra <amodra@bigpond.net.au>
729 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
731 2002-09-30 Alan Modra <amodra@bigpond.net.au>
733 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
734 * scripttempl/elfm68hc11.sc: Likewise.
735 * scripttempl/elfm68hc12.sc: Likewise.
737 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
738 reloc sections just before .rel.plt/.rela.plt.
739 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
740 Only put loadable reloc sections in hold_rel.
742 2002-09-29 H.J. Lu <hjl@gnu.org>
744 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
746 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
748 From "Anita Kulkarni" <AnitaK@kpit.com>
749 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
752 2002-09-25 Alan Modra <amodra@bigpond.net.au>
754 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
756 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
757 SEGMENT_SIZE alignment.
758 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
759 (SEGMENT_SIZE): Define.
761 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
762 (fold_binary): Correct abs - non-abs case.
763 (fold_trinary): New. Split out from exp_fold_tree.
765 2002-09-24 Alan Modra <amodra@bigpond.net.au>
767 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
768 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
769 for start of .data, instead align up to 256M boundary.
770 * scripttempl/aix.sc: Likewise.
772 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
774 * scripttempl/i386go32.sc: Handle bss unique sections.
776 2002-09-21 Alan Modra <amodra@bigpond.net.au>
778 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
780 2002-09-17 Stan Cox <scox@redhat.com>
782 * emulparams/elf32bmipn32-defs.sh: New file.
783 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
784 * emulparams/elf32btsmipn32.sh: Likewise.
785 * emulparams/elf64bmip.sh: Likewise.
786 * emulparams/elf64btsmip.sh: Likewise.
788 2002-09-16 Bruno Haible <bruno@clisp.org>
790 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
792 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
795 2002-09-11 Nick Clifton <nickc@redhat.com>
797 * NEWS: New TI port supports both C4x and C3x series of DSPs.
799 * po/tr.po: Updated Turkish translation.
801 2002-09-06 Jeffrey A Law (law@redhat.com)
803 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
805 2002-09-02 Nick Clifton <nickc@redhat.com>
807 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
809 * emulparams/v850.sh (TEMPLATE_NAME): Define.
811 2002-08-30 Nick Clifton <nickc@redhat.com>
813 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
814 used. Change INSN to start at 0x01000000 and extend for
815 256K (ignoring holes). Start the STACK on a word aligned
817 (.rodata): Start it at the READONLY_START_ADDR.
819 2002-08-30 Alan Modra <amodra@bigpond.net.au>
821 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
823 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
825 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
826 added makefile targets for this file.
827 * Makefile.in: Regenerate.
828 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
829 * NEWS: Mention new port.
831 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
833 * emulparams/tic3xcoff.sh: New file.
834 * emulparams/tic4xcoff.sh: New file.
835 * scripttempl/tic3xcoff.sc: New file.
836 * scripttempl/tic4xcoff.sc: New file.
838 2002-08-28 Alan Modra <amodra@bigpond.net.au>
840 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
841 strtoul and strtoull with bfd_scan_vma.
842 (gld${EMULATION_NAME}_read_file): Likewise.
844 2002-08-28 Alan Modra <amodra@bigpond.net.au>
846 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
848 2002-08-27 Egor Duda <deo@logos-m.ru>
850 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
851 Add symbols for application to access them.
853 2002-08-27 Nick Clifton <nickc@redhat.com>
855 * emultempl/armelf.em: Revert this patch, it is not needed.
857 2002-08-22 Adam Nemet <anemet@lnxw.com>
859 2002-08-20 Dan Kegel <dank@kegel.com>
861 * configure.in: added --with-lib-path argument to ld's configure
863 * ld/NEWS: Document new switch.
864 * ld/README: Mention new switch.
865 * configure: Regenerate.
866 * Makefile.in: Regenerate.
869 2001-04-25 Christopher Faylor <cgf@cygnus.com>
871 * Makefile.in (LIB_PATH): Make configurable.
872 (GENSCRIPTS): Set LIB_PATH in environment.
873 * configure.in: Substitute LIB_PATH.
875 2002-08-22 Adam Nemet <anemet@lnxw.com>
877 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
878 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
879 depending on the type of the function.
880 (arm_elf_convert_thumb_symbol_to_address): New function.
882 2002-08-22 Graeme Peterson <gp@qnx.com>
884 * Makefile.am: Add esh{l}elf_nto.o files.
885 * Makefile.in: Regenerate.
886 * configure.tgt: Add support for sh-**-nto* targets.
887 * emulparams/shelf_nto.sh: New file.
888 * emulparams/shlelf_nto.sh: New file.
890 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
892 * ldlang.c (offsetof): Define if not defined.
894 2002-08-14 H.J. Lu <hjl@gnu.org>
896 * configure.tgt: Always enable 64bit emulations for 32bit
899 2002-08-13 Alan Modra <amodra@bigpond.net.au>
901 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
902 (MAXPAGESIZE): Set to 1.
904 * ld.h (ALIGN_N): Delete.
905 * ldexp.h (align_n): Declare.
906 * ldexp.c (align_n): New function.
907 (fold_binary): Use align_n instead of ALIGN_N.
908 (exp_fold_tree): Likewise.
909 * ldlang.c (lang_size_sections_1): Likewise.
910 (lang_one_common): Likewise.
911 * ld.texinfo (ALIGN): Remove power of 2 restriction.
913 2002-07-31 Graeme Peterson <gp@qnx.com>
915 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
916 * Makefile.am: Add eelf32{l}ppcnto.o files.
917 * Makefile.in: Regenerate.
918 * emulparams/elf32lppcnto.sh: New file.
919 * emulparams/elf32ppcnto.sh: New file.
921 2002-08-07 H.J. Lu <hjl@gnu.org>
923 * ld.texinfo: Document --no-undefined-version.
925 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
926 `script.' fields to 0.
928 * ldmain.c (main): Initialize the allow_undefined_version to
931 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
932 (ld_options): Add --no-undefined-version.
933 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
935 2002-08-07 Nick Clifton <nickc@redhat.com>
937 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
938 an interworking bfd if there are input bfds. (107501)
940 2002-08-06 Alan Modra <amodra@bigpond.net.au>
942 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
945 2002-08-01 Nick Clifton <nickc@redhat.com>
947 * emulparams/armelf.sh: Revert previous delta.
948 * scripttempl/elf.sc: Revert previous delta.
950 2002-07-31 H.J. Lu <hjl@gnu.org>
952 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
955 2002-07-31 H.J. Lu <hjl@gnu.org>
957 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
958 64bit BFD is selected.
960 2002-07-31 H.J. Lu <hjl@gnu.org>
962 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
963 if 64bit BFD is selected.
965 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
967 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
968 link_info.common_skip_ar_aymbols.
969 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
971 * ldmain.c (main): Initialize new field
972 link_info.common_skip_ar_aymbols.
974 2002-07-31 Adam Nemet <anemet@lnxw.com>
976 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
978 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
981 2002-07-31 Nick Clifton <nickc@redhat.com>
983 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
984 of the PDP-11 and 2.11BSD a.out support.
986 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
988 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
990 * Makefile.in: Regenerate.
991 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
992 n32 ABI emulations for these 64 bit targets.
993 * emulparams/elf32bmipn32.sh: Expand comment.
994 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
996 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
998 2002-07-30 Graeme Peterson <gp@qnx.com>
1000 * configure.tgt: Add support for arm-*-nto target.
1001 * Makefile.am: Add earmnto.o file.
1002 * Makefile.in: Regenerate.
1003 * NEWS: Mention port of ARM support to QNX.
1004 * emulparams/armnto.sh: New file.
1006 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1008 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1009 for relocatable link.
1010 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1013 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1015 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1018 2002-07-25 Nick Clifton <nickc@redhat.com>
1020 * po/sv.po: Updated Swedish translation.
1021 * po/es.po: Updated Spanish translation.
1022 * po/fr.po: Updated French translation.
1024 2002-07-24 Nick Clifton <nickc@redhat.com>
1026 * po/sv.po: Updated Swedish translation.
1027 * po/es.po: Updated Spanish translation.
1029 2002-07-23 Nick Clifton <nickc@redhat.com>
1031 * po/fr.po: Updated French translation.
1033 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1035 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1036 bomb on /DISCARD/ input section.
1037 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1038 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1040 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1042 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1045 2002-07-16 Denis Chertykov <denisc@overta.ru>
1046 Nick Clifton <nickc@redhat.com>
1047 Frank Ch. Eigler <fche@redhat.com>
1048 John Healy <jhealy@redhat.com>
1050 * configure.tgt: Add support for ip2k-elf.
1051 * Makefile.am: Add support for ip2k-elf.
1052 * Makefile.in: Regenerate.
1053 * emulparams/elf32ip2k.sh: New file.
1054 * scripttempl/ip2k.sc: New file
1055 * NEWS: Mention support for new port.
1057 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1059 * NEWS: Add 'Changes in 2.13'.
1061 2002-07-14 H.J. Lu <hjl@gnu.org>
1063 * ld.texinfo: Document a .symver takes precedence over a
1066 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1068 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1069 (COMMONPAGESIZE): Define.
1071 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1073 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1075 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1077 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1078 powerpc-*-openbsd* and sparc64-*-openbsd*.
1079 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1080 * Makefile.in: Regenerate.
1081 * emulparams/hppaobsd.sh: New file.
1083 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1085 * ldlang.c (print_wild_statement): Fix output formatting.
1087 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1089 * ldlang.c: (strip_excluded_output_sections): New function.
1090 (lang_process): Call it.
1091 (lang_size_sections_1): Revert 2002-06-10 change.
1093 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1095 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1097 * Makefile.in: Regenerate.
1099 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1101 * ldfile.c (ldfile_try_open_bfd): Formatting.
1103 * ldmisc.c (demangle): Move so that it doesn't intrude between
1104 vfinfo comment and body. Add comment.
1106 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1108 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1110 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1112 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1113 * ldlang.c (entry_sym): Likewise.
1114 (ldlang_undef_chain_list_type): Likewise.
1115 (lang_finish): Adjust references to entry_symbol.
1116 (lang_add_entry): Likewise.
1117 (lang_gc_sections): Use link_info.gc_sym_list.
1118 (lang_process): Set link_info.gc_sym_list.
1119 * ldlex.l: Include bfdlink.h.
1120 * ldmain.c (main): Init link_info.gc_sym_list.
1121 * emultempl/aix.em: Adjust references to entry_symbol.
1122 * emultempl/armcoff.em: Likewise.
1123 * emultempl/armelf.em: Likewise.
1124 * emultempl/pe.em: Likewise.
1125 * emultempl/ppc64elf.em (ppc_after_open): New function.
1126 (LDEMUL_AFTER_OPEN): Define.
1127 * emulparams/elf64ppc.sh: KEEP .opd sections.
1129 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1131 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1132 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1133 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1134 (EEPROM_START_ADDR): Define.
1135 (EEPROM_MEMORY): Define.
1136 * emulparams/m68hc12elf.sh: Likewise.
1137 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1138 section to put soft registers in .page0.
1139 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1141 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1143 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1144 section. Add ${RELOCATING-0}.
1146 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1148 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1149 (OTHER_SECTIONS): Define.
1150 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1151 (OTHER_SECTIONS): Undef.
1153 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1155 * ldmisc.c (demangle): Restore dots stripped from sym name.
1157 2002-06-25 H.J. Lu <hjl@gnu.org>
1159 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1160 * Makefile.in: Regenerated.
1162 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1164 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1165 the size of attached object files, to allow make the object files
1166 available via FTP or HTTP and to mention that the mail will be
1167 sent to a mailing list.
1169 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1171 * ld/configure.host (romp): Drop support.
1173 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1175 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1176 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1178 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1180 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1181 format specifier used to print BFD name.
1183 2002-06-18 Dave Brolley <brolley@redhat.com>
1185 From Catherine Moore, Michael Meissner, Jim Blandy:
1186 * emulparams/elf32frv.sh: New file.
1187 * configure.tgt: Support frv-*-*.
1188 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1189 (eelf32frv.c): New target.
1191 2002-06-17 Tom Rix <trix@redhat.com>
1193 * emultempl/elf32.em: gld*_get_script: Check for
1194 GENERATE_COMBRELOC_SCRIPT.
1195 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1196 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1198 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1200 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1202 2002-06-12 H.J. Lu <hjl@gnu.org>
1204 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1205 false if xvec doesn't match.
1207 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1209 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1211 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1213 * ldexp.c: Replace CONST with const.
1214 * ldfile.c: Likewise.
1215 * ldfile.h: Likewise.
1216 * ldlex.l: Likewise.
1218 * pe-dll.h: Likewise.
1220 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1222 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1224 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1226 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1227 to -1 == implicit enable.
1228 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1229 initialize link_info.pei386_auto_import to -1 == implicit
1231 (gld_${EMULATION_NAME}_parse_args): When processing
1232 --enable-auto-import and --disable-auto-import options, use
1233 '1' and '0' instead of 'true' and 'false'.
1234 (pe_find_data_imports): Only issue message about auto-import
1235 when the feature is implicitly enabled. Downgrade message to
1236 informational instead of warning.
1238 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1240 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1242 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1244 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1245 HOSTING_CRT0 and HOSTING_LIBS.
1247 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1249 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1251 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1253 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1254 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1256 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1258 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1259 SEC_EXCLUDE sections when doing a relocatable link.
1261 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1263 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1264 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1265 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1266 (eshlelf64_nbsd.c): New rules.
1267 * Makefile.in: Regenerate.
1268 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1269 (sh64-*-netbsd*): New targets.
1270 * emulparams/shelf32_nbsd.sh: New file.
1271 * emulparams/shelf64_nbsd.sh: New file.
1272 * emulparams/shlelf32_nbsd.sh: New file.
1273 * emulparams/shlelf64_nbsd.sh: New file.
1275 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1277 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1279 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1281 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1282 C++ constructors/destructors, loosely based on the m68hc11 port.
1284 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1286 * Makefile.in: Regenerate.
1287 * aclocal.m4: Regenerate.
1288 * config.in: Regenerate.
1289 * configure: Regenerate.
1291 2002-05-31 Graeme Peterson <gp@qnx.com>
1293 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1294 (ei386nto.c): Add rule.
1295 * Makefile.in: Regenerate.
1296 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1297 * emulparams/i386nto.sh: New file.
1299 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1301 * NEWS: Add entry for VAX ELF support.
1303 2002-05-29 Matt Thomas <matt@3am-software.com>
1304 Jason Thorpe <thorpej@wasabisystems.com>
1306 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1308 (evaxnbsd.c): New rules.
1309 * Makefile.in: Regenerate.
1310 * configure.tgt (vax-*-netbsdelf*)
1312 (vax-*-netbsd*): New targets.
1313 * emulparams/elf32vax.sh: New file.
1314 * emulparams/vaxnbsd.sh: New file.
1316 2002-05-29 Adam Nemet <anemet@lnxw.com>
1318 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1319 bfd_for_interwork, instead add glue sections to each input bfd.
1320 (bfd_for_interwork): New global.
1321 (arm_elf_set_bfd_for_interworking): New function.
1322 (arm_elf_before_allocation): Use it.
1324 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1326 * Makefile.am: Add DLX make target.
1327 * configure.tgt: Add DLX configuration.
1328 * Makefile.in: Regenerate.
1329 * emulparams/elf32_dlx.sh: New file
1330 * scripttempl/dlx.sc: New file
1332 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1334 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1335 * Makefile.in: Regenerate.
1336 * emulparams/elf_chaos.sh: Use elf_chaos script.
1337 * scripttempl/elf_chaos.sc: New file.
1339 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1341 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1342 addresses and regions from here...
1343 (lang_get_regions): ...to this new function.
1344 (lang_leave_output_section_statement): Use lang_get_regions.
1345 (lang_leave_overlay): Likewise.
1346 * mri.c (mri_draw_tree): Pass null as last argument to
1347 lang_leave_output_section_statement.
1348 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1349 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1350 * emultempl/pe.em (gld*_place_orphan): Likewise.
1352 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1354 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1356 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1358 * ldemul.c: Fix formatting.
1359 * ldfile.c: Likewise.
1360 * pe-dll.c: Likewise.
1361 * pe-dll.h: Likewise.
1363 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1365 * ldlang.c (lang_process): Formatting, grammar.
1367 * ldlex.l: Use #include "" instead of <> for local header files.
1369 2002-05-24 TAMURA Kent <kent@netbsd.org>
1371 * configure.tgt: Add a target for i386-netbsdpe.
1373 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1375 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1376 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1377 output section if necessary. Handle .tbss.
1378 (lang_size_sections): Clear _raw_size for .tbss section
1379 (it allocates space in PT_TLS segment only).
1380 * ldwrite.c (build_link_order): Build link order for .tbss too.
1382 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1384 * configure.in: Correct spelling of AC_PREREQ.
1386 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1388 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1390 (autofilter_objlist): Add crtbegin.o, crtend.o.
1392 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1394 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1395 (longopts): Add new option --exclude-libs.
1396 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1397 (gld_${EMULATION_NAME}_parse_args): Use it.
1398 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1399 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1400 from whole archives.
1401 (pe_dll_add_excludes): Set excludes->type.
1402 (auto_export): Add new variable libname and set to archive basename if
1403 abfd. Use it when filtering default and user-specified libarary
1404 excludes. Let string "ALL" mean all libs when filtering user-specified
1406 * ld.texinfo: Document --exclude-libs.
1408 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1410 * ldemul.c (ldemul_new_vers_pattern): New function.
1411 * ldemul.h (ldemul_new_vers_pattern): Declare.
1412 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1413 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1414 * emultempl/ppc64elf.em (dotsyms): New static var.
1415 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1416 (LDEMUL_NEW_VERS_PATTERN): Define.
1417 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1418 (PARSE_AND_LIST_LONGOPTS): Likewise.
1419 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1420 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1422 * emultempl/armcoff.em: Likewise.
1423 * emultempl/armelf_oabi.em: Likewise.
1424 * emultempl/beos.em: Likewise.
1425 * emultempl/elf32.em: Likewise.
1426 * emultempl/generic.em: Likewise.
1427 * emultempl/gld960.em: Likewise.
1428 * emultempl/gld960c.em: Likewise.
1429 * emultempl/linux.em: Likewise.
1430 * emultempl/lnk960.em: Likewise.
1431 * emultempl/m68kcoff.em: Likewise.
1432 * emultempl/mipsecoff.em: Likewise.
1433 * emultempl/pe.em: Likewise.
1434 * emultempl/sunos.em: Likewise.
1435 * emultempl/ticoff.em: Likewise.
1436 * emultempl/vanilla.em: Likewise.
1438 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1440 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1441 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1442 (LIB_SEARCH_DIRS): No need to use "tr".
1443 (COMPILE_IN): Only set for native targets.
1444 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1445 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1446 * configure.tgt (powerpc*): Set tdir_*.
1447 (powerpcle*): Correct targ_extra_emuls.
1448 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1449 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1451 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1453 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1454 calling lang_add_entry.
1456 2002-05-21 H.J. Lu (hjl@gnu.org)
1458 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1460 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1462 * ld.texinfo: Updated for --allow-multiple-definition and
1465 * ldmain.c (main): Initialize the allow_multiple_definition
1468 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1469 (ld_options): Add --allow-multiple-definition.
1470 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1472 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1474 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1475 (earmelfb_nbsd.c): New rule.
1476 * Makefile.in: Regenerate.
1477 * configure.tgt (armeb-*-netbsdelf*): New target.
1478 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1479 (arm-*-netbsd*): Likewise.
1480 * emulparams/armelfb_nbsd.sh: New file.
1482 2002-05-18 Tom Rix <trix@redhat.com>
1484 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1487 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1489 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1490 * Makefile.in: Regenerate.
1491 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1493 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1495 * emulparams/avr1.sh: New file.
1496 * emulparams/avr2.sh: New file.
1497 * emulparams/avr3.sh: New file.
1498 * emulparams/avr4.sh: New file.
1499 * emulparams/avr5.sh: New file.
1500 * scripttempl/avr.sc: New file.
1502 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1504 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1505 (lang_place_orphans): Abort if just_syms_flag.
1507 2002-05-10 Tom Rix <trix@redhat.com>
1509 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1510 architecture and machine information in the output bfd.
1511 (gld*_before_parse): Remove old arch and machine code.
1512 (choose_target): Rename to gld*_choose_target.
1513 (rtld): Change type to int.
1514 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1515 objects in XCOFF archives.
1516 * ldfile.h: Update copyright date.
1518 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1520 * ldmain.c (main): Enable -z combreloc by default.
1522 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1524 * Makefile.am: Honour DESTDIR.
1525 * Makefile.in: Regenerate.
1527 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1529 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1530 (lang_enter_overlay): Remove the last two parameters.
1531 (lang_leave_overlay): Take them here instead.
1532 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1533 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1534 than lang_enter_overlay.
1535 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1536 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1537 (lang_size_sections_1): Evaluate it.
1538 (lang_leave_output_section_statement): Rework LMA lookup.
1539 (overlay_lma, overlay_nocrossrefs): Remove.
1540 (lang_enter_overlay): Remove LMA and crossref arguments.
1541 (lang_enter_overlay_section): Don't set the LMA here.
1542 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1543 assignment to the last section's update_dot_tree. Unconditionally
1544 use the load and run-time regions specified in the OVERLAY statement.
1545 Likewise the first section's LMA. Only set the other sections' LMAs
1546 when no load region is given.
1548 2002-05-06 Nick Clifton <nickc@redhat.com>
1550 * po/sv.po: New translation.
1552 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1554 * emultempl/hppaelf.em (build_section_lists): New function.
1555 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1556 and build_section_lists.
1558 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1560 * ld.h: Fix formatting.
1561 * ldexp.c: Likewise.
1562 * ldfile.c: Likewise.
1563 * ldlang.c: Likewise.
1564 * ldmain.c: Likewise.
1565 * lexsup.c: Likewise.
1566 * pe-dll.c: Likewise.
1568 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1570 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1571 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1572 (build_section_lists): Do output_section tests here.
1574 2002-04-30 Tom Rix <trix@redhat.com>
1576 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1578 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1580 Long branch stubs, multiple stub sections.
1581 * emultempl/ppc64elf.em: Include ldctor.h.
1582 (stub_file): New var.
1583 (group_size): New var.
1584 (ppc_create_output_section_statements): New function.
1585 (struct hook_stub_info): New.
1586 (hook_in_stub): New function.
1587 (ppc_add_stub_section): New function.
1588 (ppc_layout_sections_again): New function.
1589 (build_section_lists): New function.
1590 (gld${EMULATION_NAME}_finish): Rewrite.
1591 (real_func): New var.
1592 (ppc_for_each_input_file_wrapper): New function.
1593 (ppc_lang_for_each_input_file): New function.
1594 (lang_for_each_input_file): Define.
1595 (PARSE_AND_LIST_PROLOGUE): Define.
1596 (PARSE_AND_LIST_LONGOPTS): Define.
1597 (PARSE_AND_LIST_OPTIONS): Define.
1598 (PARSE_AND_LIST_ARGS_CASES): Define.
1599 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1601 2002-04-30 Tom Rix <trix@redhat.com>
1603 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1604 -blibpath, -bnolibpath support.
1606 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1608 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1609 (eelf32ppcwindiss.c): New target.
1610 * Makefile.in: Regenerated.
1611 * configure.tgt: Add support for powerpc-*-windiss.
1612 * emulparams/elf32ppcwindiss.sh: New file.
1614 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1616 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1617 * ldexp.c (exp_print_token): Add "infix_p" argument.
1618 (exp_print_tree): Update accordingly.
1620 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1622 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1623 * Makefile.in: Regenerate.
1624 * mpw-elfmips.c: Delete.
1625 * mpw-eppcmac.c: Delete.
1626 * mpw-esh.c: Delete.
1627 * mpw-idtmips.c: Delete.
1629 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1631 * emulparams/shelf32.sh (MACHINE): Now sh5.
1633 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1635 * ldgram.y: Fix syntax warning.
1637 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1639 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1640 to prevent "-n" from being taken as an abbreviation for
1641 "--no-pipeline-knowledge".
1643 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1645 * ldlang.c (lang_size_sections_1): Don't complain about
1646 SEC_NEVER_LOAD sections having no memory region specified.
1648 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1650 2002-04-07 matthew green <mrg@redhat.com>
1652 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1654 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1656 * dep-in.sed: Cope with absolute paths.
1657 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1659 * Makefile.in: Regenerate.
1661 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1663 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1665 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1667 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1668 is smaller than maximum, round dot up to common page boundary.
1670 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1672 * configure.host: Set up for generic hosts first, then tweak as
1673 necessary in more specific targets.
1674 (HOSTING_LIBS): Include libgcc_eh.a if found.
1676 2002-03-23 Andreas Jaeger <aj@suse.de>
1678 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1680 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1682 * Makefile.am: Run "make dep-am".
1683 * Makefile.in: Regenerate.
1685 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1687 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1689 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1691 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1692 add the symbol to the linker hash table immediately.
1693 (lang_place_undefineds): Split symbol creation out..
1694 (insert_undefined): ..to here.
1696 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1698 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1699 the contents of the buffer returned from basename function will are
1700 getting overwritten while still being used.
1702 2002-03-18 Jan Hubicka <jh@suse.cz>
1703 Andreas Jaeger <aj@suse.de>
1704 Andreas Schwab <schwab@suse.de>
1706 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1707 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1708 set libraries to default to lib64 paths.
1710 2002-03-18 Tom Rix <trix@redhat.com>
1712 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1713 * configure.tgt : Same.
1714 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1715 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1716 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1717 emulation parameters for better -b32, -b64 support.
1718 * emulparms/aixrs6.sh : Same.
1719 * emulparms/ppcmacos.sh : Same.
1720 * emultempl/aix.em (choose_target) : Use new emulation parameters
1721 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1722 * Makefile.in : Regenerate.
1724 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1726 * po/fr.po: Updated version.
1728 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1730 * ldmain.c (main): Move .text readonly flag fudges from here..
1731 * ldlang.c (lang_process): ..to here.
1733 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1735 * ldlang.c (lang_check): Remove the word size check added in last
1736 change. Treat emitrelocations case as for relocatable links.
1738 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1740 * po/fr.po: Updated version.
1742 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1744 * ldlang.c (lang_check): Do relocatable link checks first, so that
1745 warn_mismatch can't override. Check compatible and word size too.
1747 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1749 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1751 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1753 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1756 2002-03-04 H.J. Lu <hjl@gnu.org>
1758 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1759 .fini_array in the data segment.
1761 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1763 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1765 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1767 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1768 .init_array, and .fini_array.
1770 2002-02-20 Andreas Schwab <schwab@suse.de>
1772 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1773 .IA64_unwind* in a relocatable link.
1775 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1777 * NEWS: Mark 2.12 branch.
1779 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1781 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1782 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1784 2002-02-18 Tom Rix <trix@redhat.com>
1786 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1787 (gld*_before_allocation): Same.
1788 (gld*_create_output_section_statements): Generate
1789 __rtinit if run time linking. Add librtl.a to the link.
1790 (gld*_read_file): Clean.
1792 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1794 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1796 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1798 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1799 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1800 and eelf64alpha_fbsd.
1801 * Makefile.in: Regenerate.
1802 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1803 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1804 use a FreeBSD-specific emulation rather than the psABI one.
1805 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1806 for all FreeBSD ELF systems.
1807 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1809 * emulparams/elf32ppc_fbsd.sh: Likewise.
1810 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1811 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1812 * emulparams/elf64alpha_fbsd.sh: Likewise.
1813 * emulparams/elf_i386_fbsd.sh: Likewise.
1814 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1816 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1818 * po/tr.po: Updated version.
1820 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1822 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1825 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1827 * emultempl/mmo.em (mmo_after_open): Don't call
1828 _bfd_mmix_check_all_relocs when producing ELF output.
1830 2002-02-15 Richard Henderson <rth@redhat.com>
1832 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1833 definition. Emit a unop+nop pair.
1835 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1837 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1838 for presence of .MMIX.reg_contents.linker_allocated before early
1841 * NEWS: Mention support for MMIX.
1843 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1845 Support arbitrary length fill patterns.
1846 * ld.texinfo (Output Section Fill): Describe fill expressions.
1847 (FILL): Refer to the above.
1848 * ldexp.h (etree_value_type): Add "str" field.
1849 (union etree_union): Add "str" to "value" struct.
1850 (exp_bigintop): Declare.
1851 (exp_get_fill): Declare.
1852 * ldexp.c: Include "safe-ctype.h".
1853 (exp_intop): Set value.str to NULL.
1854 (exp_bigintop): New function.
1855 (new_rel): Pass in "str", and set new.str from it.
1856 (new_rel_from_section): Set new.str to NULL.
1857 (fold_name): Adjust calls to new_rel.
1858 (exp_fold_tree): Likewise.
1859 (exp_get_fill): New function.
1860 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1861 (INT): Returns a "bigint". Adjust all code handling INTs.
1862 (fill_opt): Returns a "fill".
1863 (fill_exp): Split out of fill_opt, use for FILL.
1864 * ldlang.h (struct _fill_type): New.
1865 (fill_type): Move typedef to ldexp.h.
1866 (lang_output_section_statement_type): "fill" is now a pointer.
1867 (lang_fill_statement_type): Likewise.
1868 (lang_padding_statement_type): Likewise.
1869 (lang_add_fill): Now takes a "fill_type *" param.
1870 (lang_leave_output_section_statement): Likewise.
1871 (lang_do_assignments): Likewise.
1872 (lang_size_sections): Likewise.
1873 (lang_leave_overlay_section): Likewise.
1874 (lang_leave_overlay): Likewise.
1875 * ldlang.c: Include ldgram.h after ldexp.h.
1876 (lang_output_section_statement_lookup): Adjust for fill_type change.
1877 (print_fill_statement): Likewise.
1878 (print_padding_statement): Likewise.
1879 (insert_pad): Now takes a "fill_type *" arg.
1880 (size_input_section): Likewise.
1881 (lang_size_sections_1): Likewise.
1882 (lang_size_sections): Likewise.
1883 (lang_do_assignments): Likewise.
1884 (lang_add_fill): Likewise.
1885 (lang_leave_output_section_statement): Likewise.
1886 (lang_leave_overlay_section): Likewise.
1887 (lang_leave_overlay): Likewise.
1888 Adjust all callers of the above function.
1889 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1890 starting with "0X" as well as "0x". Return bigint.str for hex
1891 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1892 Always use base 16 for numbers starting with "$".
1893 * ldmain.c: Include ldgram.h after ldexp.h.
1894 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1895 of bfd_fill_link_order.
1896 * pe-dll.c: Adjust lang_do_assignments calls.
1897 * emultempl/elf32.em: Likewise.
1898 * emultempl/hppaelf.em: Likewise.
1899 * emultempl/ppc64elf.em: Likewise.
1900 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1901 lang_add_assignment call.
1902 * emultempl/pe.em: Likewise.
1904 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1906 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1907 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1908 the pattern in question is not a regexp.
1909 * ldlang.c: Likewise.
1910 * ldlang.h: Likewise.
1911 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1913 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1915 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1916 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1917 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1918 * ldexp.c (exp_data_seg): New variable.
1919 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1920 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1921 (exp_fold_tree): Handle DATA_SEGMENT_END.
1922 Pass allocation_done when recursing instead of hardcoding
1923 lang_allocating_phase_enum.
1924 * ldexp.h (exp_data_seg): New.
1925 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1926 (lang_size_sections): New.
1927 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1928 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1929 if COMMONPAGESIZE is defined.
1930 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1931 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1932 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1933 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1934 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1937 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1939 * Makefile.in: Regenerate.
1941 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1943 * lexsup.c: Remove strtoul declaration.
1945 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1947 * ldmain.c: Add prototype for main ().
1948 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1949 * emultempl/lnk960.em (lnk960_choose_target): Function should
1952 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1954 * ldlang.c (entry_section): New initialised variable.
1955 (lang_finish): Use it.
1956 * ldlang.h (entry_section): Declare.
1957 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1958 entry_section to ".opd".
1960 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1962 * ld.texinfo (Options): Add back in -nostdlib documentation,
1963 which had been inadvertently removed.
1965 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1967 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1968 register section vma to a sane value after emitting error. Make
1969 fatal conditions cause program exit when emitting message.
1971 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1973 * configure.tgt: Add or32-*-rtems target.
1975 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1977 Contribute sh64-elf.
1978 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1979 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1980 in OTHER_RELOCATABLE_SECTIONS.
1981 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1982 * emulparams/shelf32.sh (STACK_ADDR): Define.
1983 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1984 (OTHER_SECTIONS): this. Removed stack settings.
1985 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1986 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1987 2001-03-12 DJ Delorie <dj@redhat.com>
1988 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1989 relaxing if any shmedia or mixed sections are found.
1990 2001-03-07 DJ Delorie <dj@redhat.com>
1991 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1992 einfo. Gracefully decline to output to non-elf formats.
1993 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1994 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1995 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1996 * emulparams/shelf32.sh: Ditto.
1997 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1998 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2000 2001-01-10 Ben Elliston <bje@redhat.com>
2001 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2002 non-portable shell constructs. From Hans-Peter Nilsson.
2003 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2004 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2005 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2006 dependencies to the shell script include chain.
2007 * Makefile.in: Regenerate.
2008 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2009 * emultempl/sh64elf.em: Update and tweak comments.
2010 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2011 make a .cranges section SEC_IN_MEMORY.
2012 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2013 * emultempl/sh64elf.em
2014 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2015 .cranges section found to be necessary; continue and set stored
2016 section contents flags for sections with non-mixed contents.
2017 Use a struct sh64_section_data container and sh64_elf_section_data
2018 to store contents-type flags.
2019 Remove unused update of "isec".
2020 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2021 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2022 access contents-type flags. Assert that the associated container
2023 is initialized. Use that container, not elf_gp_size, to hold size
2024 of linker-generated cranges contents.
2025 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2026 * emultempl/sh64elf.em
2027 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2028 there's already a .cranges section. When section flag difference
2029 is found, don't NULL-check cranges a second time. Tweak comments.
2030 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2031 merging, not max size, as size of ld-generated .cranges contents.
2032 Don't set ELF section flags in output section. When checking for
2033 needed .cranges descriptors, don't use a variable; compare
2034 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2036 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2037 * emultempl/sh64elf.em: New file.
2038 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2039 * Makefile.in: Regenerate.
2040 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2041 (OTHER_RELOCATING_SECTIONS): Ditto.
2042 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2043 * emulparams/shlelf32.sh: Stub out all settings except
2044 OUTPUT_FORMAT. Source shelf32.sh.
2045 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2046 OTHER_RELOCATING_SECTIONS.
2047 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2048 * emulparams/shlelf64.sh: Stub out all settings except
2049 OUTPUT_FORMAT. Source shelf64.sh.
2050 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2051 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2053 (DATA_START_SYMBOLS): Define, provide ___data.
2054 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2055 for consecutive .data section.
2056 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2057 section after .data section.
2058 * emulparams/shlelf64.sh: Ditto.
2059 * emulparams/shelf32.sh: Ditto.
2060 (ALIGNMENT): Define to 8.
2061 * emulparams/shelf32.sh: Ditto.
2062 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2063 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2064 built-in linker scripts.
2065 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2066 * emulparams/shlelf64.sh: New.
2067 * emulparams/shelf64.sh: New.
2068 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2070 * Makefile.am: Add support for shlelf64 and shelf64.
2071 * Makefile.in: Regenerate.
2072 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2073 * configure.tgt (sh64-*-elf*): Add shelf as default.
2074 Add shlelf to targ_extra_emuls.
2075 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2076 * emulparams/shelf32.sh: New file.
2077 * emulparams/shlelf32.sh: New file.
2078 * Makefile.am: Add support for shlelf32 and shelf32.
2079 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2080 * Makefile.in: Regenerate.
2082 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2084 * ldlang.c (lang_reset_memory_regions): Rename from
2085 reset_memory_regions. Change all callers. Make public.
2086 * ldlang.h (lang_reset_memory_regions): Prototype.
2087 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2088 lang_reset_memory_regions before lang_size_sections.
2089 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2090 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2092 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2094 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2095 arithmetic when checking for too many global registers.
2097 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2099 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2100 (ehppanbsd.c): New rule.
2101 * Makefile.in: Regenerate.
2102 * configure.tgt (hppa*-*-netbsd*): New target.
2103 * emulparams/hppalinux.sh: Add comment to check other files
2104 that source this file it is modified, and list which
2106 * emulparams/hppanbsd.sh: New file.
2108 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2110 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2113 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2115 Support on-demand global register allocation from
2116 R_MMIX_BASE_PLUS_OFFSET relocs.
2117 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2118 mmix_set_reg_section_vma. Call
2119 _bfd_mmix_finalize_linker_allocated_gregs.
2120 (mmix_before_allocation): New function.
2121 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2122 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2123 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2124 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2125 before .MMIX.reg_contents.
2126 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2127 (mmo_after_open): New function.
2128 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2129 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2130 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2132 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2134 * emulparams/or32.sh: New file.
2135 * emulparams/or32elf.sh: New file.
2136 * scripttempl/or32.sc: New file.
2137 * configure.tgt : Add support for or32.
2138 * configure: Regenerate
2139 * Makefile.am: Add support for or32.
2140 * Makefile.in: Regenerate.
2141 * NEWS: Mention support for or32.
2142 * po/ld.pot: Regenerate.
2144 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2145 Mitch Lichtenberg <mpl@broadcom.com>
2147 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2148 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2149 reloc creation (ld --embedded-relocs).
2151 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2153 * configure: Regenerated.
2155 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2157 * Makefile.am (install): Depend on install-info.
2158 * Makefile.in: Regenerate.
2160 2002-01-26 Christian Rose <menthos@menthos.com>
2162 * ldmain.c (main): Use full sentences to ease translation.
2164 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2166 * po/fr.po: Updated version.
2168 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2170 * po/es.po: Updated version.
2172 2002-01-25 Andreas Jaeger <aj@suse.de>
2174 * ldlex.l (yy_input): Correct error check.
2176 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2178 * ldmisc.c (demangle): Put back dots when string not demangled.
2180 2002-01-22 Richard Henderson <rth@redhat.com>
2182 * emulparams/elf64alpha.sh (NOP): Use unop.
2184 2002-01-21 Andreas Jaeger <aj@suse.de>
2186 * ldlex.l: Use fread instead of read.
2188 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2190 * configure.tgt (ia64-*-netbsd*): New target.
2192 2002-01-21 H.J. Lu <hjl@gnu.org>
2194 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2196 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2198 2002-01-18 Andreas Jaeger <aj@suse.de>
2200 * ldver.c (ldversion): Update year.
2202 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2204 * po/ld.pot: Regenerate.
2206 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2208 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2209 * Makefile.in: Regenerate.
2210 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2211 * emultempl/ppc64elf.em: New file.
2213 2002-01-15 DJ Delorie <dj@redhat.com>
2215 * scripttempl/pe.sc: Add support for constructor priorities.
2217 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2219 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2220 * emulparams/avr23xx.sh: Likewise.
2221 * emulparams/avr4433.sh: Likewise.
2222 * emulparams/avr44x4.sh: Likewise.
2223 * emulparams/avr85xx.sh: Likewise.
2224 * emulparams/avrmega103.sh: Likewise.
2225 * emulparams/avrmega161.sh: Likewise.
2226 * emulparams/avrmega603.sh: Likewise.
2227 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2229 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2231 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2232 archive is excluded.
2234 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2236 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2237 (eshelf_nbsd.c): New rule.
2238 (eshlelf_nbsd.c): New rule.
2239 * Makefile.in: Regenerate.
2240 * configure.tgt (sh*le-*-netbsdelf*): New target.
2241 (sh*-*-netbsdelf*): New target.
2242 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2243 * ld/emulparams/shelf_nbsd.sh: New emulation.
2244 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2246 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2248 * po/es.po: New file: Spanish translation.
2249 * configure.in (ALL_LINGUAS): Add es.
2250 * configure: Regenerate.
2252 2002-01-06 John Marshall <jmarshall@acm.org>
2254 * ld.texinfo: Note that --emit-relocs is currently only
2255 implemented for ELF.
2257 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2259 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2260 of bfd_section_list_remove and bfd_section_list_insert macros.
2261 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2262 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2264 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2266 * configure.tgt (x86_64-*-netbsd*): New target.
2268 2001-12-21 Tom Rix <trix@redhat.com>
2270 (gld*_create_output_section_statements): New function.
2271 For -binitfini support.
2272 * emultempl/aix.em (gld*_before_parse): Fix comment.
2273 * emultempl/aix.em (gld*_parse_args): Fix comment.
2275 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2277 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2279 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2281 * configure.tgt (arm-*-netbsdelf*): Add target.
2282 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2283 * emulparams/armelf_nbsd.sh: Added.
2284 * Makefile.am: Add rules for earmelf_nbsd.
2285 * Makefile.in: Regenerate.
2287 2001-12-19 Andreas Jaeger <aj@suse.de>,
2288 Susanne Oberhauser <froh@suse.de>
2290 * configure.host: Add rules for x86_64-*linux-gnu. Change
2291 s390x-linux entry to use gcc to report configuration, replace gcc
2292 with $CC in s390-linux
2294 2001-12-19 Andreas Jaeger <aj@suse.de>
2296 * ld.texinfo (VERSION): Fix markup.
2298 2001-12-18 matthew green <mrg@eterna.com.au>
2300 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2301 (m68kelfnbsd.c): New rule.
2302 * Makefile.in: Regenerate.
2303 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2304 (m68*-*-netbsd*4k*): .. this.
2305 (m68*-*-netbsdelf*): New target.
2306 (m68*-*-netbsd*): Also include ELF support.
2307 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2308 * emulparams/m68kelfnbsd.sh: New emulation.
2310 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2312 * ldgram.y (vers_node): Support anonymous version tags.
2313 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2314 tag is not defined together with non-anonymous versions.
2315 * ld.texinfo: Document it.
2317 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2319 * po/tr.po: New file: Turkish translation.
2320 * configure.in (ALL_LINGUAS): Add tr.
2321 * configure: Regenerate.
2323 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2325 * Makefile.am: Add rules for eelf64alpha_nbsd.
2326 * Makefile.in: Regenerate.
2327 * configure.tgt (alpha*-*-netbsd*): Set
2328 targ_emul to elf64alpha_nbsd.
2329 * emulparams/elf64alpha_nbsd.sh: Added.
2331 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2333 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2334 section_tail when fiddling with section list.
2335 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2336 broken into separate strings to make translation easier.
2337 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2338 fiddling with section list.
2339 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2341 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2343 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2345 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2347 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2349 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2351 * emultempl/elf32.em (finish): Supply output_bfd
2352 to bfd_elf*_discard_info.
2353 (OPTION_EH_FRAME_HDR): Define.
2354 (longopts): Add --eh-frame-hdr.
2355 (parse_args): Handle it.
2356 (list_options): Add --eh-frame-hdr to help.
2357 * emultempl/hppaelf.em (finish): Supply output_bfd
2358 to bfd_elf*_discard_info.
2359 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2361 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2363 * lexsup.c (parse_args): Don't pass shortopts to second call to
2364 getopt functions. Restore optind rather than decrementing before
2365 second call. Remove errind as it now duplicates last_optind.
2367 2001-12-11 Christopher Faylor <cgf@redhat.com>
2369 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2371 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2372 Richard Henderson <rth@redhat.com>
2374 * Makefile.am: Add support for xstormy16.
2375 * configure.tgt: Add support for xstormy16.
2376 * Makefile.in: Regenerate.
2377 * emulparams/elf32xstormy16.sh: New file.
2378 * scripttempl/xstormy16.sc: New file.
2380 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2382 * Makefile.in (LIB_PATH): Make configurable.
2383 (GENSCRIPTS): Set LIB_PATH in environment.
2384 * configure.in: Substitute LIB_PATH.
2385 * configure: Regenerate.
2386 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2387 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2389 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2391 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2392 describing the -N option so that it is easier to translate into
2395 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2397 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2398 statements describing a single option with a single, newline
2399 escaped fprintf. This allows better translation into other
2402 * ldmain.c (add_archive_element): Combine multiple strings
2403 into a single string to permit better translation into other
2406 2001-12-05 Tom Rix <trix@redhat.com>
2408 * Makefile.am: Remove eaixppc64.
2409 * Makefile.in: Regenerate.
2411 2001-12-04 Tom Rix <trix@redhat.com>
2413 * emultempl/aix.em (choose_target): Change default target to
2414 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2416 (gld*_read_file): Fix typo.
2417 (change_symbol_mode): Add prototype.
2420 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2421 * emulparams/aixrs6.sh : Same.
2422 * emulparams/ppcmacos.sh : Same.
2423 * emulparams/aixppc64.sh : Delete file.
2424 * emultempl/aix.em : Formatting changes.
2426 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2428 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2429 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2431 (OTHER_END_SYMBOLS): Fix formatting.
2432 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2433 (OTHER_END_SYMBOLS): Fix formatting.
2435 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2437 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2439 2001-12-02 Tom Rix <trix@redhat.com>
2441 * configure.tgt : Remove eaixppc64 emulations.
2442 * Makefile.in : Remove eaixppc64.c
2443 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2444 (ldemul_default_target): Same.
2445 * emultempl/gld960.em (gld960_choose_target): Same.
2446 * emultempl/gld960c.em (gld960_choose_target): Same.
2447 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2448 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2449 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2450 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2451 * emultempl/aix.em (choose_target): New function. Handle emulation of
2454 2001-11-27 H.J. Lu <hjl@gnu.org>
2456 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2457 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2458 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2459 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2460 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2461 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2462 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2463 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2465 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2468 (REL_SDATA): Likewise.
2469 (REL_SBSS): Likewise.
2470 (REL_SDATA2): Likewise.
2471 (REL_SBSS2): Likewise.
2472 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2475 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2477 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2479 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2481 2001-11-22 H.J. Lu <hjl@gnu.org>
2483 * Makefile.in: Regenerated with automake based on automake
2484 1.4-8 in RedHat 7.1.
2486 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2488 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2489 (config.status): Delete rule.
2490 Add extra dependencies to cover sourced emulparams files.
2491 * Makefile.in: Regenerate.
2493 * scripttempl/elf.sc: Order <section>, <section>.* and
2494 corresponding linkonce sections as seen in input files.
2495 Formatting fixes. Zero vma of all sections if not relocating.
2496 (STACK): Define and insert if STACK_ADDR defined.
2497 (OTHER_RELOCATING_SECTIONS): Delete.
2498 (OTHER_END_SYMBOLS): Define.
2499 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2500 (OTHER_READWRITE_SECTIONS): Likewise.
2501 (OTHER_GOT_SECTIONS): Likewise.
2502 (OTHER_SDATA_SECTIONS): Likewise.
2503 (OTHER_BSS_SECTIONS): Likewise.
2504 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2505 (OTHER_READWRITE_SECTIONS): Likewise.
2506 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2507 (OTHER_READWRITE_SECTIONS): Likewise
2509 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2510 (STACK_ADDR): Define.
2511 * emulparams/armelf_oabi.sh: As for armelf.sh.
2512 * emulparams/elf32mcore.sh: As for armelf.sh.
2513 * emulparams/h8300elf.sh: As for armelf.sh.
2514 * emulparams/mn10200.sh: As for armelf.sh.
2515 * emulparams/shelf.sh: As for armelf.sh.
2517 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2518 (OTHER_END_SYMBOLS): Define.
2519 * emulparams/m32relf.sh: As for elf32fr30.sh.
2520 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2521 * emulparams/h8300self.sh: As for elf32fr30.sh.
2523 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2524 defines with RELOCATING test.
2525 (OTHER_SDATA_SECTIONS): Likewise.
2526 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2527 (OTHER_END_SYMBOLS): ..this.
2528 * emulparams/crislinux.sh: As for criself.sh.
2530 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2532 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2533 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2534 normal and linkonce sections as seen in input files.
2535 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2536 (TEXT_DYNAMIC): Likewise.
2537 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2538 (OTHER_SDATA_SECTIONS): Likewise.
2539 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2540 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2541 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2542 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2543 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2544 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2545 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2546 sections as seen in input files.
2547 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2548 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2550 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2551 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2552 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2553 (OTHER_SECTIONS): Instead, use this..
2554 (OTHER_END_SYMBOLS): ..and this.
2556 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2557 * emulparams/elf32bsmip.sh: Likewise.
2558 * emulparams/elf32btsmip.sh: Likewise.
2559 * emulparams/elf32ebmip.sh: Likewise.
2560 * emulparams/elf32lmip.sh: Likewise.
2561 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2562 * emulparams/elf32lsmip.sh: Likewise.
2563 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2564 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2565 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2566 * emulparams/elf64btsmip.sh: Likewise.
2567 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2568 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2569 * emulparams/elf32ppclinux.sh: Likewise.
2570 * emulparams/elf32ppcsim.sh: Likewise.
2571 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2572 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2573 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2574 * emulparams/h8300self.sh: Likewise.
2575 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2576 * emulparams/sh.sh: Comment.
2577 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2578 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2579 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2581 2001-11-21 David Heine <dlheine@tensilica.com>
2582 Alan Modra <amodra@bigpond.net.au>
2584 * ldlang.c (map_input_to_output_sections): Replace "break"
2585 accidentally removed with 2001-08-03 change.
2586 (lang_gc_sections_1): Likewise.
2588 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2590 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2592 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2594 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2595 of false when calling lang_size_sections.
2596 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2598 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2600 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2601 function when LDEMUL_FINISH isn't set to the same name. Don't
2602 call ${LDEMUL_FINISH}.
2603 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2604 * emultempl/armelf.em (arm_elf_finish): Call
2605 gld${EMULATION_NAME}_finish.
2606 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2607 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2608 hppaelf_layout_sections_again if necessary.
2609 (need_laying_out): New var.
2610 (hppaelf_layaout_sections_again): Rename to
2611 hppaelf_layout_sections_again. Clear need_laying_out.
2612 (PARSE_AND_LIST_OPTIONS): Format text.
2614 2001-11-14 H.J. Lu <hjl@gnu.org>
2616 * emultempl/armelf.em (arm_elf_finish): Renamed from
2617 gld${EMULATION_NAME}_finish.
2618 (LDEMUL_FINISH): Set to arm_elf_finish.
2620 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2622 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2623 (struct ld_emulation_xfer_struct): Use it.
2625 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2627 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2628 additional symbols referenced by newer crt0.o files from HP.
2630 2001-11-12 Anthony Green <green@redhat.com>
2632 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2634 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2636 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2637 * Makefile.in: Regenerate.
2639 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2641 * ld.texinfo: Use @command for commands, @option for options.
2642 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2644 * Makefile.in: Rebuild.
2646 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2648 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2649 Add support for targets.
2651 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2653 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2654 * configure: Regernate.
2655 * po/fr.po: New file.
2656 * po/sv.po: New file.
2658 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2660 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2661 as little endian default and to support big endian.
2663 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2665 * ld.texinfo (Options): Document new option, -nostdlib.
2666 * lexsup.c (OPTION_NOSTDLIB): New definition.
2667 (ld_options): Add entry for "nostdlib".
2668 (parse_args): Handle OPTIONS_NOSTDLIB.
2669 * ldfile.c (ldfile_add_library_path): Don't add directories
2670 to the search path if they weren't specified on the command line
2671 and -nostdlib was specified.
2672 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2674 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2676 * lexsup.c (parse_args): Prevent infinite parsing loop when
2677 "-rpath.a" is specified on the command line.
2678 Replace calls to fprintf with calls to einfo.
2680 2001-10-31 John Marshall <jmarshall@acm.org>
2682 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2683 appear only once across all the linker scripts involved in a link
2684 invocation no longer applies. Make the documentation reflect
2687 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2689 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2691 (sh-*-linux*): Added targ_extra_libpath.
2693 2001-10-31 David Heine <dlheine@tensilica.com>
2695 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2696 for padding statements.
2698 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2700 * configure.tgt (mmix-*-*): New target.
2701 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2702 Add dependencies to match.
2703 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2704 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2705 scripttempl/mmo.sc: New files.
2706 * gen-doc.texi: @set MMIX.
2707 * ld.texinfo: Ditto.
2708 [MMIX] Add MMIX node.
2709 * Makefile.in: Regenerate.
2711 2001-10-29 Kazu Hirata <kazu@hxi.com>
2713 * ldlang.c: Fix a comment typo.
2715 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2717 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2718 entries, and match *-*-linux*.
2720 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2722 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2723 with ldlex_script, ldlex_popstate.
2724 (ifile_p1): Likewise.
2725 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2727 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2728 to 1. Don't BEGIN(SCRIPT).
2729 (lex_redirect): Similarly.
2730 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2732 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2734 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2735 __EH_FRAME_END__ and accept eh frames into data section.
2736 Add ctor and dtor sections.
2738 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2740 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2741 (auto-export): Fix indentation.
2743 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2745 * pe-dll.c (autofilter_objectlist): Add startup objects
2747 (auto-export): Constify char * p.
2748 Extract file basename and use strcmp rather than ststr
2751 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2753 * ldmain.c (get_emulation): Improve comment about the handling
2756 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2758 * po/POTFILES.in: Regenerate.
2760 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2762 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2763 -z nocopyreloc and -z nocombreloc usage strings.
2765 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2767 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2770 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2772 * scripttempl/armaout.sc: Place .bss section after end of aligned
2773 data section to match behaviour of aout code in constructrion of
2776 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2778 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2779 startup files for mingw32 dlls to list.
2781 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2783 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2785 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2787 * configure.tgt (targ): Add arm9e-*-elf.
2789 2001-10-05 H.J. Lu <hjl@gnu.org>
2791 * genscripts.sh: Fix a typo in the last change.
2793 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2795 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2796 -z nocombreloc in usage.
2798 2001-10-03 Jim Blandy <jimb@redhat.com>
2800 * genscripts.sh: Include a comment at the top of each generated
2801 script, explaining its purpose.
2803 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2805 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2806 * NEWS: Mention -z nocopyreloc.
2807 * ld.texinfo (Options): Describe nocopyreloc.
2809 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2811 * configure: Regenerate.
2813 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2815 * ldver.h (ld_program_version): Remove declaration.
2816 * lexsup.c (parse_args): Move printing of copyright message..
2817 * ldver.c (ldversion): .. to here.
2818 Use BFD_VERSION_STRING in place of BFD_VERSION.
2819 (ld_program_version): Remove.
2820 * Makefile.am (Makefile): Depend on bfd/configure.in.
2822 * Makefile.in: Regenerate.
2824 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2826 * Makefile.am: Update dependencies with "make dep-am".
2827 * Makefile.in: Regenerate.
2829 2001-09-29 John Reiser <jreiser@BitWagon.com>
2831 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2832 * lexsup.c: Add --no-define-common commandline option.
2833 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2834 * ldlex.l: Likewise.
2835 * ld.h: Add command_line.inhibit_common_definition.
2836 * ldmain.c (main): Initialize.
2837 * ld.texinfo: Document.
2839 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2841 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2843 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2845 * ldmisc.c (USE_STDARG): Remove.
2846 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2851 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2852 declarations. Update copyright.
2854 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2856 * pe-dll.c: Remove obsoleted declaration of
2857 pe_get_data_import_dll_name.
2858 (pe_create_import_fixup): Fix thinko.
2860 * ld.texinfo(enable-auto-import): Clarify the explanation.
2862 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2864 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2865 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2866 DLL_SUPPORT controlled code.
2868 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2870 * emultempl/pe.em(pe_data_import_dll): Make static.
2871 (pe_get_data_import_dll_name): New accessor function.
2872 * pe-dll.c(pe_create_import_fixup): call
2873 pe_get_data_import_dll_name() from pe.em, instead of
2874 directly accessing pe_data_import_dll variable from pe.em.
2876 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2878 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2879 (def_file_add_directive): Use ISSPACE instead of isspace.
2880 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2881 isdigit/isxdigit/isalpha/isalnum.
2882 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2883 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2884 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2885 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2887 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2888 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2890 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2891 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2892 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2893 (ctor_prio): Use ISDIGIT instead of isdigit.
2894 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2895 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2896 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2898 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2899 (stricpy): Use TOLOWER instead of isupper/tolower.
2900 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2901 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2902 (lex_warn_invalid): Use ISPRINT instead of isprint.
2903 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2904 (main): For gettext, also set the LC_CTYPE locate facet.
2905 (add_keepsyms_file): Use ISSPACE instead of isspace.
2906 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2907 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2908 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2909 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2910 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2911 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2912 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2913 (quoteput): Use ISSPACE instead of isspace.
2914 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2917 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2919 * deffilep.y (def_stash_module): Constify "name" param.
2921 * pe-dll.c: Replace CONST with const throughout.
2922 (quick_symbol): Constify "n1", "n2", "n3" params.
2923 (make_singleton_name_thunk): Constify "import" param. Make
2924 "buffer_len" a size_t.
2925 (make_import_fixup_entry): Constify "name", "fixup_name",
2926 "dll_symname" params.
2927 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2928 (pe_get32): Likewise.
2929 (pe_implied_import_dll): Likewise.
2931 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2932 (sort_by_section_name): Likewise.
2934 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2935 (make_import_fixup): Cast printf arg, rel->address to long rather
2937 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2939 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2941 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2942 defines BufferSize. Increase buffer size by one.
2944 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2946 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2948 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2950 * configure.tgt: Add arm-openbsd target.
2952 2001-09-12 H.J. Lu <hjl@gnu.org>
2954 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2956 (ALL_64_EMULATIONS): Here.
2957 * Makefile.in: Regenerated.
2959 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2961 * emultempl/pe.em(make_import_fixup): change signature to
2962 take asection as well as arelec; we need this for proper
2963 error reporting. Only call pe_create_import_fixup() if
2964 there is no attempt to add a constant addend to the reloc;
2965 otherwise, report error condition.
2966 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2967 since final argument is a pointer to make_import_fixup().
2968 Change call to cb() to match make_import_fixup() signature.
2969 (make_import_fixup_mark): make buffer_len unsigned.
2970 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2972 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2974 * ld.texinfo: add verbose documentation for auto-import
2975 direct-addressing workaround, to compliment the terse
2978 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2980 * scripttempl/v850.sc: Add gcc_except_table sections.
2982 2001-09-11 Jeffrey A Law (law@cygnus.com)
2984 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2985 * emulparams/h8300self.sh: Similarly.
2987 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2989 * ld.texinfo (Options, --stack): Correct default value for stack
2992 2001-09-05 Tom Rix <trix@redhat.com>
2994 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2996 2001-09-03 Andreas Jaeger <aj@suse.de>
2998 * emultempl/beos.em: Declare prototypes for comparions functions,
3001 2001-09-02 Andreas Jaeger <aj@suse.de>
3003 * emultempl/aix.em: Add missing prototype.
3004 * emultempl/lnk960.em: Likewise.
3005 * emultempl/vanilla.em: Likewise.
3006 * emultempl/armcoff.em: Likewise.
3007 * emultempl/armelf_oabi.em: Likewise.
3008 * emultempl/beos.em: Likewise.
3009 * emultempl/gld960c.em: Likewise.
3010 * emultempl/gld960.em: Likewise.
3012 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3013 for prototype declaration.
3015 2001-08-31 Eric Christopher <echristo@redhat.com>
3016 Jason Eckhardt <jle@redhat.com>
3018 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3020 2001-08-31 Andreas Jaeger <aj@suse.de>
3022 * emultempl/pe.em: Add missing prototypes.
3023 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3024 pe_find_data_imports.
3025 (pr_sym): Add unused attribute.
3027 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3029 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3030 default from coff to elf.
3032 2001-08-29 Jeff Law <law@redhat.com>
3034 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3036 * emulparams/h8300self.sh: Similarly.
3038 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3040 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3042 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3043 * configure.tgt (h8300-*-elf*): New case.
3044 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3045 * emulparams/h8300self.sh: New file.
3046 * Makefile.in: Regenerated.
3048 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3050 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3053 2001-08-27 Linus Nordberg <linus@swox.com>
3054 Alan Modra <amodra@bigpond.net.au>
3056 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3057 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3059 * Makefile.in: Regenerate.
3060 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3061 entries to correct alphabetical position.
3062 * emulparams/elf64ppc.sh: New.
3063 * emulparams/elf64lppc.sh: New.
3065 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3067 * ldmain.c (main): Declare BSIZE as static.
3069 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3071 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3072 into .rel.dyn resp. .rela.dyn if combreloc.
3073 (get_script): If .x linker script is equal to .xn, only put it
3074 once into the binary.
3075 Add .xc and .xsc scripts.
3076 (parse_args): Handle -z combreloc and -z nocombreloc.
3077 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3078 For .xc and .xsc scripts put all .rel* or .rela* input sections
3079 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3080 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3082 Strip trailing whitespace from script.
3083 Generate .xc and .xsc scripts if requested.
3084 * ldmain.c (main): Initialize link_info.combreloc and
3085 link_info.spare_dynamic_tags.
3086 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3087 (ld_options): Add --spare-dynamic-tags option.
3088 (parse_args): Likewise.
3089 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3090 * ldint.texinfo: Document .xc and .xsc linker scripts.
3091 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3093 2001-08-22 H.J. Lu <hjl@gnu.org>
3095 * emulparams/elf32fr30.sh: Add a newline.
3097 2001-08-21 Andreas Jaeger <aj@suse.de>
3099 * deffilep.y: Add missing prototypes.
3100 * pe-dll.c: Likewise.
3102 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3104 * ldlang.c (insert_pad): Fix typos in last patch.
3106 * ldlang.c: When traversing lang_statement_union_type lists,
3107 consistently use "header.next" rather than "next".
3108 * mpw-eppcmac.c: Likewise.
3109 * emultempl/beos.em: Likewise.
3110 * emultempl/hppaelf.em: Likewise.
3111 * emultempl/pe.em: Likewise.
3112 * ldlang.h (union lang_statement_union): Remove "next" field.
3114 * ldlang.c (insert_pad): Use offsetof macro.
3115 (lang_size_sections): Always neuter padding statements.
3116 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3118 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3119 passed to lang_size_sections.
3120 (pe_exe_fill_sections): Likewise.
3121 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3122 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3124 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3126 * emultempl/aix.em: Formatting fixes.
3128 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3130 * ldlang.c (insert_pad): Make use of an existing pad statement if
3131 available. Move code calculating alignment, adjusting section
3132 alignment power, and adjusting dot to ..
3133 (size_input_section): .. here. Remove unused relax param.
3134 (lang_size_sections): Change boolean `relax' param to boolean *.
3135 Adjust call to size_input_section. Make use of insert_pad to
3136 place pad after the assignment statement. If relaxing, zap
3138 (reset_memory_regions): Reset output_bfd section sizes too.
3139 (relax_again): Move to..
3140 (lang_process): ..here. Adjust call to lang_size_sections, and
3141 remove duplicated code.
3142 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3144 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3146 * ld.texinfo: Document that fill values now use the four least
3148 * emulparams/elf32fr30.sh (NOP): Update.
3149 * emulparams/elf32mcore.sh: Likewise.
3150 * emulparams/elf64_s390.sh: Likewise.
3151 * emulparams/elf_i386.sh: Likewise.
3152 * emulparams/elf_i386_be.sh: Likewise.
3153 * emulparams/elf_i386_chaos.sh: Likewise.
3154 * emulparams/elf_i386_ldso.sh: Likewise.
3155 * emulparams/elf_s390.sh: Likewise.
3156 * emulparams/elf_x86_64.sh: Likewise.
3157 * emulparams/i386moss.sh: Likewise.
3158 * emulparams/i386nw.sh: Likewise.
3159 * emulparams/m68kelf.sh: Likewise.
3160 * scripttempl/elf.sc: Update NOP comment.
3161 * scripttempl/elfi370.sc: Likewise.
3162 * scripttempl/elfm68hc11.sc: Likewise.
3163 * scripttempl/elfm68hc12.sc: Likewise.
3164 * scripttempl/nw.sc: Likewise.
3166 2001-08-15 Tom Rix <trix@redhat.com>
3168 * ldgram.y (saved_script_handle): Initialize to NULL.
3169 * ldmain.c (main): Change check on saved_script_handle.
3171 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3173 * emultempl/elf32.em: Formatting fixes.
3174 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3175 looking at sec->owner.
3176 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3177 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3178 unused code, and reorganize orphan section placement code.
3180 * ldlang.c (wild_doit): Rename to lang_add_section.
3181 * ldlang.h: Here too.
3182 * mpw-elfmips.c: And here.
3183 * emultempl/beos.em: And here.
3184 * emultempl/elf32.em: And here.
3185 * emultempl/hppaelf.em: And here.
3186 * emultempl/pe.em: And here.
3188 2001-08-13 Richard Henderson <rth@redhat.com>
3190 * emultempl/needrelax.em: New file.
3191 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3192 * Makefile.am (eelf64_ia64.c): Depend on it.
3193 * Makefile.in: Rebuild.
3195 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3197 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3198 output_section is set non-NULL.
3200 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3201 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3202 needlessly create an output_section_statement. Treat a correctly
3203 named output_section_statement with NULL bfd_section as compatible.
3205 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3207 * emultempl/generic.em: Support EXTRA_EM_FILE.
3208 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3209 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3210 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3211 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3212 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3213 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3214 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3215 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3216 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3217 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3219 2001-08-12 Richard Henderson <rth@redhat.com>
3221 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3222 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3223 scripttempl/v850.sc: Keep .jcr data.
3225 2001-08-12 H.J. Lu <hjl@gnu.org>
3226 Andrew Haley <aph@cambridge.redhat.com>
3227 Nick Clifton <nickc@redhat.com>
3229 * ldgram.y (had_script): Change name to saved_script_handle.
3230 Change type to file handle.
3231 * ld.h (had_script): Rename and retype.
3232 * ldfile.c (ldfile_open_command_file): Save the file handle
3233 used in saved_script_handle.
3234 * lexsup.c (parse_args): Do not allow -c option to alter
3235 saved_script_handle.
3236 * ldmain.c (main): Print out the linker script used if
3237 --verbose is given. Check saved_script_handle to obtain the
3238 external linker script used, or if NULL, dump the builtin
3240 * ld.texinfo: Document that --verbose now dumps the linker
3241 script used, regardless of whether it was an internal or an
3244 2001-08-10 Andreas Jaeger <aj@suse.de>
3246 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3248 * configure: Regenerate.
3250 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3252 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3254 * scripttempl/elf.sc: Move non-text .dynamic section before
3255 .plt/.got/.sdata* group.
3256 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3257 (OTHER_SDATA_SECTIONS): Add.
3258 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3260 * emulparams/crislinux.sh: Likewise.
3261 * emulparams/elf32b4300.sh: Likewise.
3262 * emulparams/elf32bmip.sh: Likewise.
3263 * emulparams/elf32bmipn32.sh: Likewise.
3264 * emulparams/elf32bsmip.sh: Likewise.
3265 * emulparams/elf32btsmip.sh: Likewise.
3266 * emulparams/elf32ebmip.sh: Likewise.
3267 * emulparams/elf32elmip.sh: Likewise.
3268 * emulparams/elf32l4300.sh: Likewise.
3269 * emulparams/elf32lmip.sh: Likewise.
3270 * emulparams/elf32lsmip.sh: Likewise.
3271 * emulparams/elf32ltsmip.sh: Likewise.
3272 * emulparams/elf64bmip.sh: Likewise.
3273 * emulparams/elf64btsmip.sh: Likewise.
3274 * emulparams/elf64ltsmip.sh: Likewise.
3276 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3278 * genscripts.sh: Source the emulparams script before each output
3279 script is generated so that variables like `RELOCATING' may affect
3280 variables defined in the emulparams script.
3282 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3284 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3287 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3288 ie. iterate over wild_statement.section_list.
3289 (gld${EMULATION_NAME}_place_orphan): Likewise.
3291 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3293 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3294 .fini[0-4] sections used by _exit
3295 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3296 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3297 * scripttempl/elfm68hc11.sc: Likewise.
3299 2001-08-03 H.J. Lu <hjl@gnu.org>
3301 * emultempl/beos.em (init): Add the missing initialization.
3303 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3305 * ld.texinfo (Input Section Basics): Clarify ordering of output
3307 * ldlang.c (callback_t): Add wildcard_list param.
3308 (walk_wild_section): Remove "section" param. Rewrite for
3309 lang_wild_statement_type change. Remove unique_section_p test.
3310 (walk_wild_file): Remove "section" param.
3311 (walk_wild): Remove "section" and "file" params.
3312 (lang_gc_wild): Likewise.
3313 (wild): Likewise. Modify for lang_wild_statement_type change.
3314 (wild_sort): Likewise. Add "sec" param.
3315 (gc_section_callback): Likewise.
3316 (output_section_callback): Likewise. Do unique_section_p test.
3317 (map_input_to_output_sections): Modify call to wild.
3318 (lang_gc_sections_1): Likewise.
3319 (print_wild_statement): Modify for lang_wild_statement_type
3321 (lang_add_wild): Replace filename, filenames_sorted param with
3322 filespec. Replace section_name, sections_sorted,
3323 exclude_filename_list with section_list.
3324 * ldlang.h (lang_add_wild): Here too.
3325 (lang_wild_statement_type): Replace section_name, sections_sorted,
3326 and exclude_filename_list with section_list.
3327 * ldgram.y (current_file): Delete.
3328 (%union): Add wildcard_list.
3329 (file_NAME_list): Set type to wildcard_list. Build a linked list
3330 rather than calling lang_add_wild for each entry.
3331 (input_section_spec_no_keep): Call lang_add_wild here instead.
3332 * ld.h (struct wildcard_list): Declare.
3333 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3335 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3337 * ldmain.c (main): initialize link_info.pei386_auto_import
3338 * pe-dll.c: new tables for auto-export filtering
3339 (auto_export): change API, pass abfd for contextual filtering.
3340 Loop thru tables of excluded symbols instead of comparing
3343 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3345 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3346 static variable current_sec (static struct sec *). Add
3347 forward declaration for add_bfd_to_link.
3348 (process_def_file): Don't export undefined symbols. Do not
3349 export symbols starting with "_imp__". Call auto_export()
3351 (pe_walk_relocs_of_symbol): New function.
3352 (generate_reloc): add optional extra debugging
3353 (pe_dll_generate_def_file): eliminate extraneous initial blank
3355 (make_one): enlarge symtab to make room for __nm__ symbols
3356 (DATA auto-import support).
3357 (make_singleton_name_thunk): New function.
3358 (make_import_fixup_mark): New function.
3359 (make_import_fixup_entry): New function.
3360 (pe_create_import_fixup): New function.
3361 (add_bfd_to_link): Specify that 'name' argument is a CONST
3363 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3364 declare new functions pe_walk_relocs_of_symbol and
3365 pe_create_import_fixup.
3366 * emultempl/pe.em: add new options --enable-auto-import,
3367 --disable-auto-import, and --enable-extra-pe-debug.
3368 (make_import_fixup): New function.
3369 (pe_find_data_imports): New function.
3370 (pr_sym): New function.
3371 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3372 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3375 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3377 * ld.texinfo: add additional documentation for
3378 --export-all-symbols. Document --out-implib,
3379 --enable-auto-image-base, --disable-auto-image-base,
3380 --dll-search-prefix, --enable-auto-import, and
3381 --disable-auto-import.
3382 * ldint.texinfo: Add detailed documentation on auto-import
3385 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3387 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3390 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3392 * Makefile.am: Update dependencies with "make dep-am".
3393 * Makefile.in: Regenerate
3395 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3397 * ldcref.c (check_section_sym_xref): New function.
3398 (check_nocrossrefs): Call it.
3399 (check_nocrossref): Interate over h->refs here instead of..
3400 (check_refs): ..here. Pass in the symbol name, section, and bfd
3401 rather than hash_entry pointers.
3402 (struct check_refs_info): Keep symbol name rather than hash entry.
3404 (check_reloc_refs): Tweak for above changes in check_refs_info.
3405 Only report references to section syms when symname is NULL to
3406 prevent duplicate messages for the same reloc.
3408 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3410 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3411 available. Do not print NULL trees.
3412 (exp_print_token): Print unknown tokens with values > 126 as
3413 decimal values not ASCII characters.
3415 * ldlang.c (lang_leave_overlay): If a region is specified assign
3416 it to all sections inside the overlay unless they have been
3417 assigned to the own, non-default, memory region.
3419 * README: Add header for consistency with other README files.
3421 2001-07-14 H.J. Lu <hjl@gnu.org>
3423 * emultempl/elf32.em (output_prev_sec_find): Never return
3424 bfd_abs_section_ptr, bfd_com_section_ptr nor
3425 bfd_und_section_ptr.
3427 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3429 * Makefile.am (em32relf.c): Change dependency from generic.em to
3431 * Makefile.in: Regenerate.
3433 2001-07-14 matthew green <mrg@eterna.com.au>
3435 * configure.tgt (i386-*-netbsdelf*): New target.
3436 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3438 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3440 * emultempl/elf32.em (output_prev_sec_find): New.
3441 (place_orphan): Use it.
3443 2001-07-11 H.J. Lu <hjl@gnu.org>
3445 * ldmain.c (main): Fix typos in the last change.
3447 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3449 * ldmain.c (main): Disallow -F and -f without -shared.
3451 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3453 * emultempl/pe.em (after_open): Check for the output_bfd not
3454 having any coff_data structure allocated to it.
3456 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3458 * emultempl/elf32.em: Do not assuming that contents of the buffer
3459 returned from basename function will remain unchanged accross other
3462 2001-07-03 H.J. Lu <hjl@gnu.org>
3464 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3465 2001-07-03. It creates dynamic entries even for static binaries.
3467 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3469 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3470 (DYNAMIC): Use it to reserve few dynamic entries for
3473 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3475 * emulparams/hppa64linux.sh: New file.
3476 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3477 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3478 (ehppa64linux.c): Add rule to make it.
3480 * Makefile.in: Regenerate.
3482 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3484 * ld.texinfo (Options, -r): Mention restrictions when using
3485 different object formats.
3487 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3489 * ldlang.c (lang_check): Emit fatal error if relocatable link
3490 between different object flavours with relocations in input.
3492 2001-06-19 H.J. Lu <hjl@gnu.org>
3494 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3495 (--version-script): Mention the language support.
3497 2001-06-19 H.J. Lu <hjl@gnu.org>
3499 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3501 2001-06-18 H.J. Lu <hjl@gnu.org>
3503 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3504 (diststuff): Add $(MANS).
3505 * Makefile.in: Regenerated.
3509 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3511 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3512 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3513 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3514 * ld.h (args_type): Remove member export_dynamic. All users
3515 changed to use struct bfd_link_info member.
3517 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3518 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3519 * Makefile.in: Regenerate.
3521 2001-06-18 H.J. Lu <hjl@gnu.org>
3523 * ldlang.c (init_os): Add the newline to the einfo call.
3524 (lang_check): Likewise.
3525 (lang_do_version_exports_section): Likewise.
3527 2001-06-15 H.J. Lu <hjl@gnu.org>
3529 * lexsup.c (parse_args); Save optind to report unrecognized
3532 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3534 * ldlang.c (lang_check): Emit fatal error if relocatable link
3535 between different object flavours.
3537 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3538 Set new link_info member export_dynamic.
3539 * ldmain.c (main): Initialize new link_info member export_dynamic.
3541 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3543 * ldlang.c (walk_wild): Only call walk_wild_file if
3544 lookup_name returns something.
3545 (lookup_name): If load_symbols fails, return NULL.
3546 (load_symbols): Change to a boolean function.
3547 (open_input_bfds): If load_symbols fails then do not make the
3550 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3552 * ldlang.c (record_bfd_errors): Remove.
3554 * emultempl/aix.em: Fix copyright dates.
3556 2001-06-07 Andreas Jaeger <aj@suse.de>
3558 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3559 (TEXT_START_ADDR): Likewise.
3561 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3563 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3565 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3567 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3569 2001-05-31 H.J. Lu <hjl@gnu.org>
3571 * ldlang.c (open_input_bfds): Don't change the bfd error
3572 handler whilst loading symbols.
3574 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3576 * configure.tgt: Remove i370-mvs architecture, it is not currently
3579 2001-05-25 H.J. Lu <hjl@gnu.org>
3581 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3582 like emulparams/aixppc.sh.
3584 2001-05-25 H.J. Lu <hjl@gnu.org>
3586 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3587 setting of output_filename after bfd_scan_arch.
3588 * emultempl/pe.em: Likewise.
3590 2001-05-25 H.J. Lu <hjl@gnu.org>
3592 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3593 like emulparams/aixppc.sh.
3595 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3596 instead of ${srcdir}/emultempl/stringify.sed.
3598 2001-05-25 Timothy Wall <twall@oculustech.com>
3600 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3603 2001-05-25 Alan Modra <amodra@one.net.au>
3605 * configure.host: Replace linuxoldld with linux*oldld.
3606 * configure.tgt: Likewise.
3608 2001-05-24 H.J. Lu <hjl@gnu.org>
3610 * emultempl/stringify.sed: Removed again.
3612 2001-05-24 H.J. Lu <hjl@gnu.org>
3614 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3615 (gld${EMULATION_NAME}_before_parse): Initialize
3616 ldfile_output_architecture, ldfile_output_machine and
3617 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3618 * emultempl/beos.em: Likewise.
3619 * emultempl/elf32.em: Likewise.
3620 * emultempl/linux.em: Likewise.
3621 * emultempl/mipsecoff.em: Likewise.
3622 * emultempl/pe.em: Likewise.
3623 * emultempl/sunos.em: Likewise.
3625 2001-05-24 Tom Rix <trix@redhat.com>
3627 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3628 udate import file format.
3629 (change_symbol_mode) New, same
3630 (is_syscall) New, same
3631 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3632 * emulparams/aixppc64.sh : same
3633 * emulparams/aixrs6.sh : same
3634 * emulparams/ppcmacos.sh : same
3635 * emultempl/aix.em : use strtoull to parse options
3636 * Makefile.am : add eaixppc64 emulation for xcoff64
3637 * Makefile.in : same
3638 * configure.tgt : same
3640 * scripttempl/aix.sc : default text section offset to 0x10000000
3641 default data section offset to 0x20000000
3642 add .sv3264 and .sv64 pseudo sections
3643 loader and debug sections use the currect section offset.
3645 * emultempl/aix.em : Add xcoff64 support
3646 Add -binitfini support
3647 (gld${EMULATION_NAME}_before_parse) -binitfini
3648 (gld${EMULATION_NAME}_parse_args) same
3649 (gld${EMULATION_NAME}_before_allocation) format change for special
3652 * emulparams/aixppc64.sh : New file for xcoff64 support
3654 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3656 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3657 variable to avoid non-portable shell construct.
3659 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3661 * ldmain.c (get_emulation): Add -mips5 command line argument.
3663 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3665 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3666 (ELF_INTERPRETER_NAME): Define it.
3667 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3669 * configure.tgt (targ_emul, targ_extra_emuls)
3670 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3671 as primary, elf_i386 as extra.
3672 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3673 (eelf_i386_ldso.c): New rule.
3674 * Makefile.in: Rebuilt.
3676 2001-05-22 Nick Clifton <nickc@redhat.com>
3678 * lexsup.c (ld_options): Allow -I to be an alias for
3679 --dynamic-linker. This is for Solaris compatability.
3680 * ld.texinfo: Document that -I can be used.
3683 2001-05-16 Alan Modra <amodra@one.net.au>
3685 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3686 whether an input section is the first one assigned to an output
3688 Assorted formatting fixes.
3690 2001-05-14 DJ Delorie <dj@delorie.com>
3692 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3693 * Makefile.in: Ditto.
3695 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3697 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3698 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3700 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3702 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3704 * ldlang.c (lang_process): Call bfd_merge_sections.
3706 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3708 * ldgram.y: Fix typo.
3710 2001-05-03 H.J. Lu <hjl@gnu.org>
3712 * emultempl/elf32.em: Include "libiberty.h".
3713 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3714 basename of the bfd filename.
3715 (gld${EMULATION_NAME}_stat_needed): Likewise.
3716 (gld${EMULATION_NAME}_try_needed): Likewise.
3717 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3719 2001-05-02 H.J. Lu <hjl@gnu.org>
3721 * emultempl/pe.em: Include <ctype.h>.
3723 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3725 * emulparams/elf32openrisc.sh: New file.
3727 * Makefile.am: Add OpenRISC target.
3728 * Makefile.in: Regenerated.
3730 * configure.tgt: Add openrisc-*-* mapping.
3732 2001-05-02 Nick Clifton <nickc@redhat.com>
3734 * emultempl/aix.em: Replace buystring with xstrdup.
3735 * emultempl/beos.em: Replace buystring with xstrdup.
3737 2001-05-02 H.J. Lu <hjl@gnu.org>
3739 * ldfile.c: Include "libiberty.h".
3740 * ldlex.l: Likewise.
3742 * ldmisc.c (buystring): Removed.
3743 * ldmisc.h: Likewise.
3745 * ldfile.c: Replace buystring with xstrdup.
3746 * ldlang.c: Likewise.
3747 * ldlex.l: Likewise.
3748 * ldmain.c: Likewise.
3749 * ldmisc.c: Likewise.
3750 * lexsup.c: Likewise.
3751 * mpw-eppcmac.c: Likewise.
3753 2001-04-30 Andreas Jaeger <aj@suse.de>
3755 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3757 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3759 * ldlang.c (load_symbols): Give emulation a chance
3760 to process unrecognized file before fatal error is
3761 reported, not after.
3763 2001-04-27 Sean McNeil <sean@mcneil.com>
3765 * configure.tgt: Add arm-vxworks target.
3766 * scripttempl/armcoff.sc: Support .text or .data as a section name
3770 2001-04-13 J.T. Conklin <jtc@redback.com>
3772 * ld.texinfo: Document --fatal-warnings.
3775 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3776 warnings have been turned into errors.
3777 * lexsup.c (OPTION_WARN_FATAL): Define.
3778 (ld_options): Entry for --fatal-warnings.
3779 (parse_args): Handle OPTION_WARN_FATAL.
3780 * ld.h (ld_config_type): Add fatal_warnings field.
3782 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3784 * ldmain.c (main): Default to discard_sec_merge.
3785 * lexsup.c (OPTION_DISCARD_NONE): Define.
3786 (ld_options): Add --discard-none.
3787 (parse_args): Handle OPTION_DISCARD_NONE.
3788 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3789 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3790 all its input sections match.
3792 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3794 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3795 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3796 (eelf32ltsmip.c): New target.
3797 (eelf64btsmip.c): Likewise.
3798 (eelf64ltsmip.c): Likewise.
3799 * Makefile.in: Regenerated.
3801 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3803 (mips*-*-linux-gnu*): Likewise.
3805 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3807 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3809 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3812 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3814 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3815 correct value of __Stext here.
3816 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3819 * emulparams/crislinux.sh: Remove FIXME.
3821 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3823 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3824 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3826 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3828 * configure.tgt (cris-*-*): Change default emulation to criself.
3829 (cris-*-*aout*): New rule.
3831 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3833 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3834 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3836 2001-03-26 Andreas Jaeger <aj@suse.de>
3838 * ld.texinfo (Overview): Fix syntax in texi code.
3840 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3842 * ld.texinfo: Put @c man indications to generate the ld man page.
3843 When generating man, define all the variables. Define SEEALSO
3844 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3845 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3846 (ld.1): Generate from ld.texinfo.
3847 * Makefile.in: Regenerate.
3849 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3851 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3852 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3854 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3856 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3857 is an absolute path look only for this file and not along the path.
3859 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3861 * emultempl/elf32.em (OPTION_GROUP): New macro.
3862 Add new option Bgroup to longopts.
3863 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3864 (gld*_list_options): Add -Bgroup and -z defs.
3865 * ld.1: Document -Bgroup and -z defs.
3866 * ld.texinfo: Likewise.
3868 2001-03-07 Michael Meissner <meissner@redhat.com>
3870 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3871 with sections created by -fdata-sections.
3872 (.dynbss,.bss): Ditto.
3874 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3876 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3877 after_allocation_default, not gld..._before_allocation.
3879 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3881 * configure.in (BFD_VERSION): New.
3882 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3883 * configure: Regenerate.
3884 * Makefile.am: Run "make dep-am"
3885 * Makefile.in: Regenerate.
3887 2001-02-26 Timothy Wall <twall@cygnus.com>
3889 * emulparams/elf64_aix.sh: Add additional read-only sections;
3890 uncomment lines which are now required.
3892 2001-02-26 H.J. Lu <hjl@gnu.org>
3894 * ldlang.c (open_input_bfds): Set the bfd error handler so
3895 that problems can be caught whilst loading symbols.
3896 (record_bfd_errors): New function: Report BFD errors and mark
3897 the executable output as being invalid.
3899 2001-02-22 Timothy Wall <twall@cygnus.com>
3901 * configure.host: Add configuration for ia64-*-aix*.
3902 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3903 Add dependencies for eelf64_aix.c.
3904 * Makefile.in: Regenerate.
3905 * configure.tgt: Add ia64-*-aix* mapping.
3906 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3908 2001-02-20 H.J. Lu <hjl@gnu.org>
3910 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3911 false if we found the file.
3913 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3915 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3916 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3918 2001-02-18 lars brinkhoff <lars@nocrew.org>
3920 * Makefile.am: Add PDP-11 target.
3921 * configure.tgt: Likewise.
3922 * emulparams/pdp11.sh: New file.
3924 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3926 * configure.host: Add a generic FreeBSD configuration entry such that
3927 all [modern] FreeBSD systems on all platforms will look the same.
3929 2001-02-14 H.J. Lu <hjl@gnu.org>
3931 * configure.tgt: Remove mention of earmelf_linux26.
3933 2001-02-13 Richard Henderson <rth@redhat.com>
3935 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3937 2001-02-13 H.J. Lu <hjl@gnu.org>
3939 * ldexp.h (node_type): Add etree_provided.
3940 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3941 type to etree_provided if defined by PROVIDE. Allow updating
3943 (exp_print_tree): Handle etree_provided.
3944 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3947 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3949 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3950 .IA_64.unwind.* pattern to unwind table section and
3951 .IA_64.unwind_info* pattern to unwind info section.
3953 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3955 * Makefile.am: Add linux target for S/390.
3956 * Makefile.in: Likewise.
3957 * configure.host: Likewise.
3958 * configure.tgt: Likewise.
3959 * emulparams/elf64_s390.sh: New file.
3960 * emulparams/elf_s390.sh: New file.
3962 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3964 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3966 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3968 2001-02-06 Philip Blundell <philb@gnu.org>
3970 * Makefile.am: Remove mention of earmelf_linux26.
3971 * Makefile.in: Regenerate.
3973 2001-02-04 Philip Blundell <philb@gnu.org>
3975 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3976 * emulparams/armelf_linux26.sh: Delete.
3977 * configure.tgt: Remove mention of armelf_linux26 emulation.
3979 2001-02-01 Nick Clifton <nickc@redhat.com>
3981 * ld.1: Replace occurances of -oformat with --oformat.
3983 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3985 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3986 load_base is specified.
3988 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3990 * emultempl/elf32.em: Correct spelling in comments and listed
3993 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3995 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3996 default for the first section of a group of overlay sections.
3998 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4000 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4001 * Makefile.in: Regenerate.
4002 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4003 Check for null tool_dir.
4005 2001-01-16 Jim Wilson <wilson@redhat.com>
4007 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4008 and IA_64.unwind.info.
4010 2001-01-16 H.J. Lu <hjl@gnu.org>
4012 * ldlang.c (lang_check): Merge the private data only if the
4013 input file has contents.
4015 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4017 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4019 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4020 enabling search for libmilli. On a relocatable link, make .text
4022 (LDEMUL_AFTER_PARSE): Define.
4023 (hppaelf_finish): Correct spelling of relocatable in comments.
4025 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4026 rummage through the script for sections on the unique list.
4027 Correct length of strncmp for ".note".
4028 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4030 * ldlang.c (unique_section_list): New var.
4031 (unique_section_p): New function.
4032 (walk_wild_section): Don't match sections on unique_section_list.
4033 (lang_add_unique): New function.
4034 Correct spelling of relocatable in comments.
4036 * ldlang.h (struct unique_sections): Declare.
4037 (unique_section_list): Declare.
4038 (unique_section_p): Declare.
4039 (lang_add_unique): Declare.
4041 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4042 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4044 * ld.texinfo (--unique): Update.
4046 2001-01-13 Nick Clifton <nickc@redhat.com>
4048 * lexsup.c (parse_args): Remove spurious white space.
4050 2001-01-12 Nick Clifton <nickc@redhat.com>
4052 * lexsup.c (parse_args): Update copyright date.
4054 2001-01-12 Philip Blundell <pb@futuretv.com>
4056 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4058 2001-01-10 Kazu Hirata <kazu@hxi.com>
4060 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4061 * scripttempl/h8300h.sc: Fix formatting.
4062 * scripttempl/h8300s.sc: Likewise.
4063 * scripttempl/h8500.sc: Likewise.
4064 * scripttempl/h8500b.sc: Likewise.
4065 * scripttempl/h8500c.sc: Likewise.
4066 * scripttempl/h8500m.sc: Likewise.
4067 * scripttempl/h8500s.sc: Likewise.
4069 2000-01-07 David O'Brien <obrien@BSDi.com>
4071 * emultempl/elf32.em: Only perform Linux ld hints processing when
4074 2001-01-07 Philip Blundell <philb@gnu.org>
4076 * ld.texinfo (Bug Reporting): Update email address for reports.
4078 2000-12-31 Nick Clifton <nickc@redhat.com>
4080 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4081 options by checking for a return value of '?' not -1.
4083 2000-12-28 Nick Clifton <nickc@redhat.com>
4085 * lexsup.c (struct ld_option): Add new enum value:
4087 (ld_options[]): Change -omagic, -output and -oformat options
4088 to be EXACTLY_TWO_DASHES.
4089 (OUTPUT_COUNT): Use ARRAY_SIZE.
4090 (parse_args): Change parameter 'argc' to unsigned.
4091 Place EXACTLY_TWO_DASHES options into new really_longopts
4093 If getopt_long_only fails, try calling getopt_long using the
4094 really_longopts array.
4095 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4098 * ldlex.h: Fix prototype of parse_args.
4100 * ld.texinfo: Document that long options starting with 'o'
4101 must be preceeded by two dashes. Change example of a single
4102 dashed long option from -oformat to -trace-symbol.
4104 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4106 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4107 (longopts[]): New --no-default-excludes option.
4108 (gld_${EMULATION_NAME}_list_options): Document.
4109 (gld_${EMULATION_NAME}_parse_args): Handle.
4111 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4113 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4114 whitespace, it breaks the K&R C preprocessor.
4116 2000-12-11 DJ Delorie <dj@redhat.com>
4118 * ld.texinfo: Add notes about --whole-archive and gcc.
4120 2000-11-18 Fred Fish <fnf@be.com>
4122 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4123 (ld_options): Entry for --allow-shlib-undefined.
4124 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4125 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4127 * ld.texinfo: Document new command line switch.
4129 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4131 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4132 .fixup is actually read/write.
4133 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4134 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4135 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4137 2000-12-11 Jan Hubicka <jh@suse.cz>
4139 * NEWS: Add note about x86_64 architecture.
4141 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4143 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4144 Set DWARF2 sections to a VMA of zero.
4146 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4148 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4150 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4151 (sparc*-*-rtems*): Switched from a.out to ELF.
4153 2000-11-30 Jan Hubicka <jh@suse.cz>
4155 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4156 (eelf_x86_64.c): New.
4157 * Makefile.in: Regenerate.
4158 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4159 * emulparams/elf_x86_64.sh: New.
4161 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4163 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4164 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4166 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4167 merging non-a.out sections into CONSTRUCTING.
4169 2000-11-28 Nick Clifton <nickc@redhat.com>
4171 * ld.1 (COPYING): Mention that the GNU Free Documentation
4172 License is present in the sources, but not the output, and
4173 also available from the GNU website.
4174 (GNU Free Documentation License): Comment out this section.
4176 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4178 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4181 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4183 * ld.1: Remove old date so it does not give the impression the manpage
4186 2000-11-24 Nick Clifton <nickc@redhat.com>
4188 * configure.tgt (xscale-coff): Add target.
4189 (xscale-elf): Add target.
4191 2000-11-24 Fred Fish <fnf@be.com>
4193 * ldmain.c (main): Remove redundant init of config.make_executable
4196 2000-11-15 Richard Henderson <rth@redhat.com>
4198 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4200 2000-11-14 Kazu Hirata <kazu@hxi.com>
4202 * scripttempl/h8300.sc: Fix formatting.
4203 * scripttempl/h8300h.sc: Likewise.
4204 * scripttempl/h8300s.sc: Likewise.
4206 2000-11-14 Denis Chertykov <denisc@overta.ru>
4208 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4210 2000-11-09 Philip Blundell <pb@futuretv.com>
4212 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4213 around orphan sections whose names can be represented in C.
4215 2000-11-07 Jim Wilson <wilson@redhat.com>
4217 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4218 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4220 2000-11-06 Nick Clifton <nickc@redhat.com>
4222 * ld.texinfo: Add GNU Free Documentation License.
4223 * ldint.texinfo: Add GNU Free Documentation License.
4224 * ld.1: Add GNU Free Documentation License.
4226 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4228 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4229 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4231 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4232 Move 2000-11-02 Makefile.in changes to this file.
4233 * Makefile.in: Regenerate.
4235 2000-11-03 Nick Clifton <nickc@redhat.com>
4237 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4238 constructors and destructors.
4239 * scripttempl/h8300h.sc: Ditto.
4240 * scripttempl/h8300s.sc: Ditto.
4241 * scripttempl/h8500.sc: Ditto.
4242 * scripttempl/h8500b.sc: Ditto.
4243 * scripttempl/h8500c.sc: Ditto.
4244 * scripttempl/h8500m.sc: Ditto.
4245 * scripttempl/h8500s.sc: Ditto.
4246 * scripttempl/v850.sc: Ditto.
4247 * scripttempl/w65.sc: Ditto.
4248 * scripttempl/z8000.sc: Ditto.
4250 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4252 * Makefile.in (e_i386_chaos.c): New rule.
4253 (ALL_EMULATIONS): Added e_i386_chaos.o.
4254 * emulparams/elf_i386_chaos.sh: New file.
4255 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4257 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4259 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4260 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4261 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4262 library path suffix.
4263 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4265 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4267 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4268 for consecutive sections.
4270 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4272 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4274 * ld.texinfo: Added notes about this new option.
4276 2000-10-16 Nick Clifton <nickc@redhat.com>
4278 * emultempl/pe.em (_after_open): Add tests of return values from
4279 bfd functions. Emit appropriate error messages if necessary.
4281 2000-10-13 Nick Clifton <nickc@redhat.com>
4283 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4284 local variables - they are not used, but leave in the call to
4285 bfd_canonicalize_symtab.
4286 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4287 pe_dll_search_prefix.
4289 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4291 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4292 (longopts): New --dll-search-prefix option.
4293 (gld_${EMULATION_NAME}_list_options): Document.
4294 (gld_${EMULATION_NAME}_parse_args): Handle.
4295 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4296 dynamically, search for a dll named '<prefix><basename>.dll'
4297 in preference to 'lib<basename>.dll' if --dll-search-prefix
4300 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4302 * ldlang.c (section_already_linked): Set kept_section instead of
4305 2000-10-10 Kazu Hirata <kazu@hxi.com>
4307 * deffile.h: Fix formatting.
4308 * lexsup.c: Likewise.
4311 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4313 * pe-dll.c (make_one): Do not generate code thunk for DATA
4315 (process_def_file): deduce DATA flag for auto-export sumbols.
4317 2000-10-09 Kazu Hirata <kazu@hxi.com>
4319 * ld.h: Fix formatting.
4320 * ldcref.c: Likewise.
4321 * ldctor.h: Likewise.
4322 * ldemul.c: Likewise.
4323 * ldemul.h: Likewise.
4324 * ldexp.c: Likewise.
4325 * ldexp.h: Likewise.
4326 * ldfile.c: Likewise.
4327 * ldfile.h: Likewise.
4328 * ldlang.c: Likewise.
4329 * ldlang.h: Likewise.
4330 * ldmain.c: Likewise.
4331 * pe-dll.c: Likewise.
4333 * pe-dll.c: Revert some formatting fixes.
4335 2000-10-08 Kazu Hirata <kazu@hxi.com>
4337 * pe-dll.c: Fix formatting.
4339 2000-10-05 Kazu Hirata <kazu@hxi.com>
4341 * ldlang.c: Fix formatting.
4343 2000-10-03 DJ Delorie <dj@redhat.com>
4345 * pe-dll.c (fill_edata): initialize entire block
4346 (make_one): fill in correct section.
4348 2000-10-03 Kazu Hirata <kazu@hxi.com>
4350 * ldexp.c: Fix formatting.
4352 2000-10-02 DJ Delorie <dj@redhat.com>
4354 * emultempl/pe.em (gld_*_after_open): detect case where there two
4355 import libraries for same dll; rename one to ensure proper link
4358 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4360 (generate_edata): fix typo
4362 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4364 * scripttempl/crisaout.sc (ENTRY): Now __start.
4365 (.text): Add default setting for __start.
4366 Remove CONSTRUCTORS handling.
4367 (/DISCARD/): Add .gnu.warning.*.
4368 * emulparams/crislinux.sh (ENTRY): Now __start.
4369 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4370 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4371 (ENTRY): Now __start.
4372 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4373 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4375 2000-09-29 Kazu Hirata <kazu@hxi.com>
4377 * deffile.h: Fix formatting.
4379 * ldcref.c: Likewise.
4380 * ldctor.c: Likewise.
4381 * ldctor.h: Likewise.
4382 * ldemul.c: Likewise.
4383 * ldemul.h: Likewise.
4384 * ldexp.c: Likewise.
4385 * ldexp.h: Likewise.
4386 * ldfile.c: Likewise.
4387 * ldfile.h: Likewise.
4388 * ldlang.c: Likewise.
4389 * ldlang.h: Likewise.
4390 * lexsup.c: Likewise.
4392 * pe-dll.c: Likewise.
4394 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4396 * pe-dll.c (process_def_file): Uninitialized data wasn't
4397 exported with --export-all-symbols switch.
4399 2000-09-28 DJ Delorie <dj@redhat.com>
4401 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4402 noname work properly.
4404 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4406 * ld.texinfo (HPPA ELF32): New section.
4408 * emultempl/hppaelf.em (group_size): New.
4409 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4410 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4411 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4412 options to prevent abbreviations matching.
4413 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4414 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4416 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4418 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4419 on the m68*-*-elf target. Make it support COFF input objects.
4421 2000-09-21 Kazu Hirata <kazu@hxi.com>
4423 * ldmain.c: Fix formatting.
4424 * ldmisc.c: Likewise.
4425 * ldver.c: Likewise.
4426 * ldwrite.c: Likewise.
4428 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4430 * ldwrite.c (clone_section): Silence gcc warnings.
4432 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4434 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4435 out of memory failure.
4437 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4438 (clone_section): Handle out of memory failures. Rename var to
4439 avoid c++ reserved word.
4441 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4443 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4444 stub_name param to stub_sec_name.
4445 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4447 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4449 * emultempl/m68kelf.em: New file.
4450 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4451 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4452 * Makefile.in: Regenerate.
4454 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4456 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4459 2000-09-13 Nick Clifton <nickc@redhat.com>
4461 * ldmain.c (multiple_definition): Disable relaxation if
4462 multiple symbol definitions are encountered - otherwise the
4463 linker could abort with an assertion failure.
4465 2000-09-10 Nick Clifton <nickc@redhat.com>
4467 * mri.c: Fix formatting.
4469 2000-09-07 H.J. Lu <hjl@gnu.org>
4471 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4472 * configure: Rebuild.
4474 2000-09-07 H.J. Lu <hjl@gnu.org>
4476 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4477 * Makefile.in: Rebuild.
4479 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4482 broken list handling. Create __start_SECNAME and __stop_SECNAME
4483 when no place-holder. Add some comments. Test both SEC_CODE and
4484 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4485 Handle case where no output section statement created.
4487 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4489 * configure.tgt (sh-*-linux*): Added.
4490 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4491 * Makefile.in: Rebuilt.
4492 * emulparams/shelf_linux.sh: New file.
4493 * emulparams/shlelf_linux.sh: New file.
4495 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4497 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4498 try shuffling sections when the orphan happens to be the place
4499 holder. Keep count of unique section names generated so we speed
4500 the search for a new name.
4502 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4504 * configure: Rebuilt with new libtool.m4.
4506 2000-09-05 Nick Clifton <nickc@redhat.com>
4508 * Makefile.in: Regenerate.
4509 * aclocal.m4: Regenerate.
4510 * configure: Regenerate.
4511 * config.in: Regenerate.
4512 * po/ld.pot: Regenerate.
4514 * ldint.texinfo: Remove CVS revision marker - it foils local
4517 * emultempl/ticoff.em: Remove extraneous comma.
4519 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4521 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4522 to stub section flags.
4523 (hppa_for_each_input_file_wrapper): New.
4524 (hppa_lang_for_each_input_file): New.
4525 (lang_for_each_input_file): Define to call above.
4526 (multi_subspace): New.
4527 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4528 (PARSE_AND_LIST_PROLOGUE): Define.
4529 (PARSE_AND_LIST_LONGOPTS): Define.
4530 (PARSE_AND_LIST_OPTIONS): Define.
4531 (PARSE_AND_LIST_ARGS_CASES): Define.
4532 (hppaelf_finish): Call elf32_hppa_set_gp.
4533 (hppaelf_set_output_arch): Remove.
4534 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4536 * emulparams/hppalinux.sh (ELFSIZE): Define.
4538 (OTHER_READONLY_SECTIONS): Define.
4540 (GENERATE_SHLIB_SCRIPT): Define.
4542 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4543 to const throughout. Change `void *' to `PTR' throughout.
4544 (lang_memory_default): Function is local to file, add `static'.
4546 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4547 (ehppalinux.c): Likewise.
4548 (earmelf.c): Likewise.
4549 (earmelf_linux.c): Likewise.
4550 (earmelf_linux26.c): Likewise.
4551 * Makefile.in: Regenerate.
4553 * ld.h (ld_config_type): Add unique_orphan_sections.
4554 * lexsup.c (OPTION_UNIQUE): Define.
4555 (ld_options): Add "--unique".
4556 (parse_args): Handle it.
4557 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4558 search for an existing output section if unique_orphan_sections is
4559 set. Make use of bfd_get_unique_section_name rather than
4560 duplicating code here.
4561 * ld.texinfo: Describe --unique.
4563 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4564 optional arg to split-by-file.
4565 (parse_args): Handle them.
4566 * ld.texinfo: Update description of these options.
4567 * ldwrite.c (clone_section): Pass in the section name. Replace
4568 local code with bfd_get_unique_section_name.
4569 (split_sections): Tidy code and comments. Use a list traversal
4570 more appropriate to the list construction. Handle cooked section
4571 sizes. Split when split_by_reloc reached rather than exceeded.
4572 Track section size and split when split_by_file reached. Fix
4573 link_order_tail (even though it's not used).
4574 (ldwrite): Modify condition for calling split_sections to suit
4575 changed split_by_reloc and split_by_file.
4576 * ldmain.c (main): Init config.split_by_reloc and
4577 config.split_by_file to -1.
4578 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4579 Change split_by_file to bfd_size_type.
4581 2000-09-02 Nick Clifton <nickc@redhat.com>
4583 * configure.in: Increase version number to 2.10.91.
4584 * NEWS: Mention new ability to support removal of duplicate DWARF2
4586 * configure: Regenerate.
4587 * aclocal.m4: Regenerate.
4588 * config.in: Regenerate.
4590 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4592 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4594 * scripttempl/elf32avr.sc: Ditto.
4595 * scripttempl/elfd10v.sc: Ditto.
4596 * scripttempl/elfd30v.sc: Ditto.
4597 * scripttempl/elfi370.sc: Ditto.
4598 * scripttempl/elfm68hc11.sc: Ditto.
4599 * scripttempl/elfm68hc12.sc: Ditto.
4600 * scripttempl/elfi386beos.sc: Ditto.
4601 * scripttempl/v850.sc: Ditto.
4603 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4605 * acinclude.m4: Include libtool and gettext macros from the
4607 * aclocal.m4, configure: Rebuilt.
4609 2000-08-25 Nick Clifton <nickc@redhat.com>
4611 * ldlang.c (open_output): When choosing the target for a
4612 particular endianness, do nothing if the target is not
4615 2000-08-25 H.J. Lu <hjl@gnu.org>
4617 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4618 check -rpath nor LD_RUN_PATH for cross link.
4619 * ld.texinfo: Document the change.
4621 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4623 * NEWS: Mention support for CRIS.
4625 2000-08-23 H.J. Lu <hjl@gnu.org>
4627 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4628 the current runpath list from bfd_elf_get_runpath_list ()
4631 2000-08-22 H.J. Lu <hjl@gnu.org>
4633 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4634 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4635 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4636 trace_file_tries is non-zero.
4637 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4638 if trace_file_tries is non-zero.
4640 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4643 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4645 * NEWS: Mention i860 support.
4647 2000-08-14 Andreas Schwab <schwab@suse.de>
4649 * scripttempl/elf.sc: Fix last change to use correct comment
4652 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4654 * scripttempl/elf.sc: Add a comment giving the correspondence
4655 between sections, per-datum sections, and linkonce sections. Make
4656 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4659 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4661 * emulparams/elf32_i860.sh: New file.
4662 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4663 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4664 (eelf32_i860.c): New rule.
4665 * Makefile.in: Regenerate.
4667 2000-08-10 Nick Clifton <nickc@cygnus.com>
4669 * emulparams/mipspe.sh (ENTRY): Add definition.
4671 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4673 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4676 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4678 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4679 the final size of .bss section.
4680 * scripttempl/elfm68hc12.sc: Likewise.
4682 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4684 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4685 gld${EMULATION_NAME}_parse_args for consistency. Combine
4686 lastoptind and prevoptind vars, and keep track of last optind.
4687 (gld_${EMULATION_NAME}_list_options): Rename to
4688 gld${EMULATION_NAME}_list_options.
4690 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4692 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4693 (i586-sco-sysv5uw7.1.0).
4695 2000-07-27 H.J. Lu <hjl@gnu.org>
4697 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4698 (PARSE_AND_LIST_PROLOGUE): New.
4699 (PARSE_AND_LIST_LONGOPTS): Likewise.
4700 (PARSE_AND_LIST_OPTIONS): Likewise.
4701 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4702 (PARSE_AND_LIST_EPILOGUE): Likewise.
4704 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4706 * emultempl/armelf.em: Elide functions common to elf32.em,
4707 ie. most of the file.
4708 (arm_elf_after_open): New. Do arm specific things then call
4709 gld${EMULATION_NAME}_after_open.
4710 (arm_elf_before_allocation): New. Call
4711 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4712 (PARSE_AND_LIST_PROLOGUE): Define.
4713 (PARSE_AND_LIST_SHORTOPTS): Define.
4714 (PARSE_AND_LIST_LONGOPTS): Define.
4715 (PARSE_AND_LIST_OPTIONS): Define.
4716 (PARSE_AND_LIST_ARGS_CASES): Define.
4717 (LDEMUL_AFTER_OPEN): Define.
4718 (LDEMUL_BEFORE_ALLOCATION): Define.
4719 (LDEMUL_BEFORE_PARSE): Define.
4720 (LDEMUL_FINISH): Define.
4722 * emultempl/hppaelf.em: Similarly zap most of this file.
4723 (hppaelf_add_stub_section): Prototype.
4724 (hppaelf_layaout_sections_again): Prototype.
4725 (hook_in_stub): Prototype.
4726 (LDEMUL_SET_OUTPUT_ARCH): Define.
4727 (LDEMUL_FINISH): Define.
4728 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4730 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4731 (EXTRA_EM_FILE): New.
4732 * emulparams/armelf_linux.sh: Likewise.
4733 * emulparams/armelf_linux26.sh: Likewise.
4734 * emulparams/hppalinux.sh: Likewise.
4735 * emulparams/hppaelf.sh: Likewise.
4738 * emultempl/elf32.em: Fix formatting.
4739 (EXTRA_EM_FILE): Source it.
4740 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4741 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4742 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4743 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4744 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4745 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4746 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4747 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4748 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4749 allow functions in this file to be overridden.
4750 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4752 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4754 * emultempl/elf32.em: Reorganize file.
4756 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4758 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4759 specific option to fit 64-bit executable in the lower
4760 31-bit address range. This is done by changing start
4761 address of .interp (the very first section of executable)
4762 and then setting EF_ALPHA_32BIT elf header flag.
4764 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4766 * emultempl/m68kcoff.em: New file.
4767 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4768 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4770 * Makefile.in: Regenerate.
4772 2000-07-20 H.J. Lu <hjl@gnu.org>
4774 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4775 and "disable-new-dtags" to stop getopt from treating -d/-e as
4776 abbreviations for these options.
4778 2000-07-20 H.J. Lu <hjl@gnu.org>
4780 * ld.texinfo: Add documentation for --disable-new-dtags and
4783 * ldmain.c (main): Initialize link_info.new_dtags to false.
4785 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4786 --disable-new-dtags and --enable-new-dtags.
4787 (gld_${EMULATION_NAME}_list_options): Likewise.
4789 2000-07-05 Kenneth Block <krblock@computer.org>
4791 * lexsup.c: Add optional style to demangle switch
4792 * ld.texinfo: Document optional style to demangle switch.
4794 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4796 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4798 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4799 Regenerate dependencies.
4800 * Makefile.in: Rebuild.
4801 * configure.tgt (cris-*-*): New target.
4802 * emulparams/crisaout.sh, emulparams/criself.sh,
4803 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4804 * po/POTFILES.in, po/ld.pot: Regenerate.
4806 2000-07-20 H.J. Lu <hjl@gnu.org>
4808 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4809 Print out ignored -z options.
4811 2000-07-19 H.J. Lu <hjl@gnu.org>
4813 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4814 (PARSE_AND_LIST_PROLOGUE): New.
4815 (PARSE_AND_LIST_LONGOPTS): Likewise.
4816 (PARSE_AND_LIST_OPTIONS): Likewise.
4817 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4819 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4821 * lexsup.c (ld_options): Comment out 'z'.
4822 (parse_args): Likewise.
4824 * emultempl/elf32.em: Include "elf/common.h".
4825 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4827 (gld_${EMULATION_NAME}_list_options): Likewise.
4829 * ld.texinfo: Add documentation for the recognized -z options.
4831 2000-07-19 H.J. Lu <hjl@gnu.org>
4833 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4834 bfd_elf_set_dt_needed_soname ().
4836 2000-07-18 DJ Delorie <dj@cygnus.com>
4838 * pe-dll.c (pe_dll_id_target): check object target name also
4840 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4842 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4843 ${INIT_END} if relocating.
4844 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4846 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4848 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4849 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4850 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4851 errors introduced by the old dynamic lib search order.
4853 2000-07-17 DJ Delorie <dj@cygnus.com>
4855 * pe-dll.c (process_def_file): auto-export data items also
4856 (pe_process_import_defs): also see if _imp_ form needed
4858 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4860 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4861 for dll import libraries
4863 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4865 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4866 gcc 2.95.2 and later.
4868 2000-07-11 Kazu Hirata <kazu@hxi.com>
4870 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4873 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4875 * ldemul.h (struct lang_input_statement_struct): Remove forward
4877 (struct search_dirs): Likewise.
4878 * ldfile.h (struct lang_input_statement_struct): Likewise.
4879 Protect file from multiple inclusion.
4880 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4881 declaration from macro to file scope.
4883 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4884 * ldgram.y: Likewise here.
4885 * ldlang.c: And here.
4886 * ldmain.c: And here.
4887 * mpw-elfmips.c: And here.
4888 * mpw-eppcmac.c: And here.
4889 * emultempl/aix.em: And here.
4890 * emultempl/armcoff.em: And here.
4891 * emultempl/armelf.em: And here.
4892 * emultempl/armelf_oabi.em: And here.
4893 * emultempl/beos.em: And here.
4894 * emultempl/elf32.em: And here.
4895 * emultempl/hppaelf.em: And here.
4896 * emultempl/linux.em: And here.
4897 * emultempl/lnk960.em: And here.
4898 * emultempl/pe.em: And here.
4899 * emultempl/sunos.em: And here.
4900 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4901 * mpw-idtmips.c: Ditto.
4902 * emultempl/generic.em: Ditto.
4903 * emultempl/gld960.em: Ditto.
4904 * emultempl/gld960c.em: Ditto.
4905 * emultempl/mipsecoff.em: Ditto.
4906 * emultempl/ticoff.em: Ditto.
4907 * emultempl/vanilla.em: Ditto.
4909 * pe-dll.c: Include ldfile.h
4910 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4912 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4913 arguments to bfd_elf32_size_dynamic_sections call.
4914 (gldelf32ebmip_place_orphan): Add missing arguments to
4915 lang_leave_output_section_statement call.
4917 2000-07-10 H.J. Lu <hjl@gnu.org>
4919 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4921 (strhash): Likewise.
4922 (compute_dll_image_base): Likewise.
4923 (pe_undef_found_sym): Likewise.
4924 (pe_undef_cdecl_match): Likewise.
4925 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4926 argument "arch" with ATTRIBUTE_UNUSED.
4928 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4930 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4932 From Ryan Bradetich <rbradetich@uswest.net>
4933 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4935 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4937 Changes to create multiple linker stubs, positioned immediately
4938 before the section where they are required.
4939 * emultempl/hppaelf.em: Include elf32-hppa.h.
4940 (stub_sec, file_chain): Delete.
4941 (hppaelf_create_output_section_statements): Don't make a stub
4943 (hook_stub_info): New struct.
4944 (hook_in_stub): New function.
4945 (hppaelf_add_stub_section): New function.
4946 (hppaelf_finish): Do nothing for relocateable links. Modify the
4947 call to elf32_hppa_size_stubs. Move code for updating section
4949 (hppaelf_layaout_sections_again): ..to here, a new function.
4951 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4952 broken list handling. Pass in a pointer to the list.
4953 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4955 (hppaelf_before_parse): Prototype.
4956 (hppaelf_set_output_arch): Prototype.
4957 (hppaelf_create_output_section_statements): Prototype.
4958 (hppaelf_delete_padding_statements): Prototype.
4959 (hppaelf_finish): Prototype.
4962 * emultempl/hppaelf.em: Include ctype.h.
4963 (struct orphan_save): New.
4964 (gld${EMULATION_NAME}_place_orphan): New.
4965 (output_rel_find): New.
4966 (hppaelf_get_script): Update from elf32.em.
4967 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4968 Change emulation_name field to "${EMULATION_NAME}". Add
4969 gld${EMULATION_NAME}_place_orphan.
4971 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4972 ehppalinux.o, sort it. Regenerate dependencies.
4973 (ehppalinux.c): Depend on hppaelf.em
4974 * Makefile.in: Regenerate.
4976 * configure.tgt: targ_emul=hppalinux for hppa*linux
4978 * emulparams/hppalinux.sh: New.
4979 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4981 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4983 * lexsup.c (parse_args): Copy section name.
4985 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4987 * emultempl/pe.em: institute the following search order for
4988 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4989 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4990 static lib (libfoo.a) if none of the above are found.
4992 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4994 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4995 (longopts): New --{enable,disable}-auto-image-base options.
4996 (gld_${EMULATION_NAME}_list_options): Document.
4997 (gld_${EMULATION_NAME}_parse): Handle.
4998 (strhash): New static function.
4999 (compute_dll_image_base): New static function.
5000 (gld_${EMULATION_NAME}_set_symbols): Use.
5002 2000-07-05 DJ Delorie <dj@redhat.com>
5006 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5008 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5009 * emulparams/elf32btsmip.sh: New file.
5010 * Makefile.am: Add traditional mips target.
5011 * Makefile.in: Rebuild.
5013 2000-07-01 H.J. Lu <hjl@gnu.org>
5015 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5016 automake to use YLWRAP.
5017 * Makefile.in: Rebuild.
5019 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5021 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5022 (CLEANFILES): Add DEPA.
5023 * Makefile.in: Regenerate.
5025 2000-06-30 Timothy Wall <twall@ppc>
5027 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5028 the page in the upper octet of the address.
5030 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5032 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5034 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5036 * NEWS: arm-elf does --gc-sections too.
5038 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5040 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5042 * Makefile.in: Regenerate.
5044 2000-06-21 H.J. Lu <hjl@gnu.org>
5046 * Makefile.am: Rebuild dependency.
5047 * Makefile.in: Rebuild.
5049 2000-06-20 H.J. Lu <hjl@gnu.org>
5051 * Makefile.am: Rebuild dependency.
5052 * Makefile.in: Rebuild.
5054 2000-06-20 Timothy Wall <twall@cygnus.com>
5056 * scripttempl/tic54xcoff.sc: New.
5057 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5058 * gen-doc.texi: Add flag for TI COFF.
5059 * ld.texinfo: Add documentation for TI COFF handling switches.
5060 * emultempl/ticoff.em: New. TI COFF handling.
5061 * configure.tgt: Add tic54x target.
5062 * Makefile.am: Add tic54x target.
5063 * Makefile.in: Ditto.
5065 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5067 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5068 checking for backslashes.
5070 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5072 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5074 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5076 * NEWS: Update list of targets supporting --gc-sections.
5078 * scripttempl/elf.sc: KEEP .eh_frame contents.
5079 * scripttempl/elfd30v.sc: Same here.
5081 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5083 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5085 * Makefile.in: Rebuild.
5086 * configure.tgt: Recognize m68hc12 and m68hc11.
5087 * scripttempl/elfm68hc12.sc: New file.
5088 * emulparams/m68hc12elfb: New emulation.
5089 * emulparams/m68hc12elf: New emulation.
5090 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5091 (includes a memory.x script to define the ROM and RAM banks).
5092 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5093 New configuration files for support of Motorola 68hc11
5095 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5097 * ldmain.c (main): Only change SEC_READONLY for final link.
5099 2000-06-13 H.J. Lu <hjl@gnu.org>
5101 * configure: Regenerate.
5103 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5105 * configure.in (VERSION): Update to show this is the CVS mainline.
5107 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5109 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5110 input objects to be ECOFF.
5111 (check_sections): einfo takes %B, not %P, to print a BFD name.
5113 2000-06-05 Michael Matz <matz@ifh.de>
5115 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5118 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5120 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5122 * emulparams/avr1200.sh (STACK): Define as 0.
5123 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5124 * emulparams/avr4433.sh (STACK): Likewise.
5125 * emulparams/avr44x4.sh (STACK): Likewise.
5126 * emulparams/avr85xx.sh (STACK): Likewise.
5127 * emulparams/avrmega103.sh (STACK): Likewise.
5128 * emulparams/avrmega161.sh (STACK): Likewise.
5129 * emulparams/avrmega603.sh (STACK): Likewise.
5130 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5131 (__stack): Define from ${STACK} for main().
5133 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5135 * Makefile.am: Update dependencies with "make dep-am"
5136 * Makefile.in: Regenerate.
5138 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5140 * ldmain.c: Include filenames.h.
5141 (set_scripts_dir): Support backslashes in program name.
5143 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5145 * ldmain.c (main): When deciding if ".text" section should be
5146 read-only, don't forget to reset SEC_READONLY because it
5147 could be already set.
5149 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5151 * ld.1: Add documentation for new command line option:
5152 --section-start <sectionname>=<sectionorg>
5153 This is a generic version of -Ttext etc. which accepts
5154 any section name as a parameter instead of just text/data/
5156 * ld.texinfo: More docs.
5158 * lexsup.c: (parse_args): Recognize new command line option.
5159 (ld_options): Add new option.
5161 2000-05-18 H.J. Lu <hjl@gnu.org>
5163 * lexsup.c (parse_args): `i' == `r', not `q'.
5165 2000-05-18 Jeffrey A Law (law@cygnus.com)
5167 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5169 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5170 Rick Gorton <gorton@scrugs.lkg.dec.com>
5172 Add support for '-q' == '--emit-relocs' switch.
5173 * ldmain.c (main): Default to false.
5174 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5175 * NEWS: Describe the emitrelocations switch.
5176 * ld.texinfo: Describe the emitrelocations switch.
5178 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5180 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5181 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5182 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5185 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5187 * lexsup.c (parse_args): Update the year in the copyright notice.
5189 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5191 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5192 Replace defines with those from intl/libgettext.h to quieten gcc
5195 2000-05-10 H.J. Lu <hjl@gnu.org>
5197 * ldlang.c (open_input_bfds): Don't load the same file within
5198 a group again if the whole archive has been loaded already.
5200 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5202 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5203 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5206 2000-05-01 Jim Wilson <wilson@cygnus.com>
5208 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5210 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5211 host "ia64-*-linux-gnu*".
5213 2000-04-29 Andreas Jaeger <aj@suse.de>
5215 * ld.h: Correctly check GCC version.
5217 2000-04-25 Jeffrey A Law (law@cygnus.com)
5219 * Makefile.am: Add PA64 support. Add missing dependencies for
5221 * Makefile.in: Rebuilt.
5222 * configure.tgt: Add PA64 support (currently disabled).
5224 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5226 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5227 (output_rel_find): New function.
5228 (hold_section, hold_use): Delete.
5229 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5230 hold_interp): Make local to place_orphan.
5231 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5232 rather than place_section to find possible previous use of orphan.
5233 Similarly find the place-holder output sections. Use returned
5234 value from lang_enter_output_section_statement rather than calling
5235 lang_output_section_statement_lookup.
5236 * emultempl/armelf.em: Same here.
5237 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5239 * ldlang.c (lang_enter_output_section_statement): Return output
5241 * ldlang.h (lang_enter_output_section_statement): Change
5244 * ldlang.h (lang_output_section_statement): Export it.
5245 * ldlang.c (lang_output_section_statement): Ditto.
5247 2000-04-24 Nick Clifton <nickc@cygnus.com>
5249 * ld.texinfo (Output Section Data): Add note that section data
5250 commands cannot appear outside of section directives.
5252 2000-04-2 Matthew Green <mrg@cygnus.com>
5254 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5256 2000-04-21 Richard Henderson <rth@cygnus.com>
5257 David Mosberger <davidm@hpl.hp.com>
5259 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5260 (eelf64_ia64.c): New rule.
5261 * Makefile.in: Rebuild.
5262 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5263 * emulparams/elf64_ia64.sh: New file.
5265 2000-04-21 Richard Henderson <rth@cygnus.com>
5267 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5269 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5271 * dep-in.sed: Match space at start of file name, not at end.
5273 2000-04-18 H.J. Lu <hjl@gnu.org>
5275 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5276 lang_leave_output_section_statement () after calling
5277 lang_enter_output_section_statement ().
5278 * emultempl/armelf.em: Likewise.
5280 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5282 * emultempl/elf32.em (struct orphan_save): Add section field.
5283 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5284 better order, and place first orphan section as we did before the
5285 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5286 Don't call make_bfd_section here, let wild_doit do the job for us.
5287 Don't build a statement list when we'll only throw it away.
5288 * emultempl/armelf.em: Ditto.
5289 * emultempl/pe.em: Similarly.
5291 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5293 * scripttempl/elfppc.sc: Remove.
5294 * emulparams/elf32ppc.sh: Use elf.sc.
5295 * emulparams/elf32lppc.sh: Use elf.sc.
5296 * emulparams/elf32ppclinux.sh: Use elf.sc.
5297 * emulparams/elf32ppcsim.sh: New file.
5298 * emulparams/elf32lppcsim.sh: New file.
5299 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5300 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5301 * Makefile.in: Regenerate.
5302 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5304 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5306 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5307 ~SEC_ALLOC sections too. Init start address of debug sections.
5308 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5309 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5310 Also set all relocateable section start addresses.
5312 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5314 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5315 Add new BSS_PLT variable for when .plt need not be contained in
5316 the file. Move _etext so that it is also after .fini, and provide
5317 both etext and _etext with a leading underscore. Mark the start
5320 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5322 * emultempl/elf32.em (struct orphan_save): New.
5323 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5324 hold_interp): Make them struct orphan_save.
5325 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5326 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5327 the end of the relevant section list. Also add associated section
5328 statements to the end of any previous orphan statements.
5329 * emultempl/armelf.em: Similarly.
5330 * emultempl/pe.em: Similarly.
5332 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5334 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5336 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5338 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5339 --enable-build-warnings option.
5340 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5341 * Makefile.in, configure: Re-generate.
5343 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5345 * po/ld.pot: Regenerate.
5347 * lexsup.c (help): Restore translated part of bug string.
5349 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5350 (DEP): Quote when passing vars to sub-make. Add warning message
5352 (DEP1): Rewrite for "gcc -MM".
5353 (CLEANFILES): Add DEP2.
5354 Update dependencies.
5355 * Makefile.in: Regenerate.
5357 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5359 * ld.h: #include "bin-bugs.h"
5360 * lexsup.c (help): Use REPORT_BUGS_TO.
5362 2000-03-27 Denis Chertykov <denisc@overta.ru>
5364 * configure.tgt (avr-*-*): New target support.
5365 * Makefile.am: Likewise.
5366 * scripttempl/elf32avr.sc: New script file.
5367 * emulparams/avr1200.sh: New file.
5368 * emulparams/avr23xx.sh: New file.
5369 * emulparams/avr4433.sh New file.
5370 * emulparams/avr44x4.sh New file.
5371 * emulparams/avr85xx.sh New file.
5372 * emulparams/avrmega103.sh New file.
5373 * emulparams/avrmega161.sh New file.
5374 * emulparams/avrmega603.sh New file.
5375 * Makefile.in: Regenerate.
5377 2000-03-09 Andreas Jaeger <aj@suse.de>
5379 * Makefile.am (check-DEJAGNU): Also unset LANG.
5380 * Makefile.in: Rebuild.
5382 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5384 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5387 2000-03-02 H.J. Lu <hjl@gnu.org>
5389 * emulparams/elf32mcore.sh: Include "getopt.h".
5391 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5393 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5395 2000-03-01 H.J. Lu <hjl@gnu.org>
5397 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5398 * emulparams/shpe.sh: Likewise.
5400 2000-03-01 Nick Clifton <nickc@cygnus.com>
5402 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5403 to unused parameters.
5405 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5406 functions only used by DLL code.
5407 (_place_orphan): Initialise 'dollar'.
5409 2000-03-01 H.J. Lu <hjl@gnu.org>
5411 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5412 indicate if the undefined symbol is a fatal error or not.
5413 Don't delete the output file if "fatal" is false.
5415 2000-02-29 H.J. Lu <hjl@gnu.org>
5417 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5418 Set LC_COLLATE and LC_ALL to null and export them. It is for
5419 sort which expects the C locale.
5420 Add $(LIBS) to all $(HOSTING_LIBS).
5421 * Makefile.in: Rebuild.
5423 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5425 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5426 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5427 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5428 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5429 find_potential_libraries.
5431 2000-02-28 Jim Blandy <jimb@redhat.com>
5433 * ldgram.y (exclude_name_list): Don't require a comma to separate
5434 list entries; the lexer considers commas to be valid part of a
5435 filename, so in something like `foo, bar' the comma is considered
5436 part of the first filename, `foo,'.
5437 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5439 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5441 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5442 host "i[3456]86-*-freebsdelf*".
5444 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5446 * scripttempl/i386go32.sc: Move misplaced semicolons.
5448 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5450 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5451 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5452 (eelf64hppa.c, ehppaelf.c): Remove targets.
5453 * Makefile.in: Rebuild.
5455 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5457 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5458 GNU/Linux/sparc, but keep the default as 32.
5460 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5461 it default if sparcv9 or sparc64.
5463 2000-02-24 Nick Clifton <nickc@cygnus.com>
5465 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5466 * Makefile.in: Regenerate.
5467 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5469 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5470 find_potential_libraries.
5471 * ldemul.c (ldemul_find_potential_libraries): New function.
5473 * ldfile.c (ldfile_open_file_search): Allow function to be
5475 (ldfile_open_file): Call ldemul_find_potential_libraries.
5476 * ldfile.h: Add prototype for ldfile_open_file_search.
5478 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5480 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5481 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5483 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5484 (gld_X_find_potential_libraries): New function. Search for
5485 libraries called "*.lib".
5487 * scripttempl/pe.sc: Add .pdata section.
5489 2000-02-23 Richard Henderson <rth@cygnus.com>
5491 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5492 Add and use memory regions.
5494 2000-02-23 Linas Vepstas (linas@linas.org)
5496 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5498 * Makefile.am: Add support for Linux/IBM 370.
5499 * configure.tgt: Likewise.
5501 * Makefile.in: Regenerate.
5503 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5505 * ldlang.c (print_input_section, print_data_statement,
5506 print_reloc_statement, print_padding_statement, insert_pad,
5507 size_input_section, lang_check_section_addresses,
5508 lang_size_sections, lang_do_assignments, lang_set_startof,
5509 lang_one_common): Change `opb' to unsigned.
5510 (lang_do_assignments): Also change `size' to unsigned.
5512 2000-02-16 Richard Henderson <rth@cygnus.com>
5514 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5516 2000-02-16 Timothy Wall <twall@cygnus.com>
5518 * mri.c (mri_draw_tree): Add default LMA region argument to call
5519 to lang_leave_output_section_statement.
5520 * ldlang.h: Update prototypes with LMA region arguments.
5521 * ldlang.c (lang_size_sections): Encapsulate region bounds
5522 checking in os_check_region call.
5523 (os_check_region): New function.
5524 (lang_output_section_statement_lookup): Initialize lma_region.
5525 (lang_leave_output_section_statement): Add LMA region argument.
5526 (lang_leave_overlay): Ditto.
5527 * ldgram.y: Handle LMA region syntax.
5528 * ld.texinfo (Output Section Description): Describe LMA region usage.
5529 * emultempl/armelf.em (gld$place_orphan): Add default value for
5530 lma region in call to lang_leave_output_section_statement.
5531 * emultempl/elf32.em (gld$place_orphan): Add default value for
5532 lma region in call to lang_leave_output_section_statement.
5533 * emultempl/pe.em (gld$place_orphan): Add default value for
5534 lma region in call to lang_leave_output_section_statement.
5537 2000-02-04 Timothy Wall <twall@redhat.com>
5539 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5540 octets when calculating section end addresses.
5542 2000-02-04 Timothy Wall <twall@redhat.com>
5544 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5546 2000-02-03 Timothy Wall <twall@redhat.com>
5548 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5550 * ldlang.c (print_input_section, print_data_statement,
5551 print_reloc_statement, print_padding_statement): Print target
5552 address values and section sizes as bytes, not octets.
5553 (insert_pad) Calculate padding size in octets, and adjust "dot"
5555 (size_input_section) Always adjust "dot" by bytes, not octets.
5556 (lang_check_section_addresses, lang_do_assignments) Adjust
5557 "dot" by bytes, not octets. Use the larger of the directive size
5558 or octets_per_byte for the number of octets actually allocated in
5560 (lang_set_startof) Make sure STARTOF returns a target address.
5561 (lang_one_common) Record size changes in octets.
5562 (lang_abs_symbol_at_end_of) Section end symbol's value is
5563 recorded in target bytes.
5564 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5565 to be clear about behavior when an octet is smaller than one byte.
5567 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5569 * ldcref.c (output_cref): Don't pass message strings to printf
5573 * ldmisc.c (vfinfo): Same here.
5576 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5578 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5579 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5580 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5581 Add missing NULL initialisers, and comments.
5583 2000-01-21 Nick Clifton <nickc@cygnus.com>
5585 * ldlang.c (lang_size_sections): Fix typo in comment.
5587 2000-01-18 H.J. Lu <hjl@gnu.org>
5589 * ldlang.c (lang_size_sections): Also update the current
5590 address of a region if the SEC_NEVER_LOAD bit is not set.
5592 2000-01-10 Philip Blundell <pb@futuretv.com>
5594 * configure.tgt (arm*-*-conix*): New target.
5596 2000-01-07 Nick Clifton <nickc@cygnus.com>
5598 * ld.texinfo (Options): Remind users to preceed linker command
5599 line switches with -Wl, (or whatever is appropriate) if it is
5600 being invoked by a comnpiler driver program.
5601 Fix description of the behaviour of the -n command line switch.
5603 2000-01-05 Catherine Moore <clm@cygnus.com>
5605 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5607 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5608 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5609 (exclude_name_list): New.
5610 ldlang.c (walk_wild_section): Support list of excluded files.
5611 (print_wild_statement): Likewise.
5612 (lang_add_wild): Likewise.
5613 * ldlang.h (lang_wild_statement_type): Likewise.
5614 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5616 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5618 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5619 (process_def_file): Use.
5620 (pe_dll_compat_implib): New variable.
5623 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5624 pe_dll_compat_implib.
5626 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5627 compat-implib options.
5628 (gld_${EMULATION_NAME}_list_options): List new options.
5629 (gld_${EMULATION_NAME}_parse_args): Handle.
5631 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5634 * deffilep.y (opt_name): Allow "." in name.
5636 For older changes see ChangeLog-9899
5642 version-control: never