1 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
3 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
4 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
5 * emulparams/tic3xcoff_onchip.sh: Ditto
6 * emulparams/tic4xcoff.sh: Ditto
7 * scripttempl/tic4xcoff.sc: Ditto
9 2003-04-03 Nick Clifton <nickc@redhat.com>
11 * NEWS: Mention support for Xtensa architecture.
13 2003-04-02 Nick Clifton <nickc@redhat.com>
15 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
17 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
19 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
20 Don't call pe_dll_build_section() if link_info.relocateable.
21 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
22 if link_info.relocateable.
24 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
26 * pe-dll.c (process_def_file): Don't create an export
27 section if there are no exports and we're building an exe
28 (pe_dll_build_sections): Ditto
29 (pe_dll_fill_sections): Conditionalize setting
30 abfd->dll true on info->shared
31 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
32 If i386pe or armpe, call pe_dll_build_section()
33 for both exe's and dll's, not just dll's.
34 (gld_${EMULATION_NAME}_finish): For all targets except
35 shpe and mipspe, call pe_dll_fill_sections() for both
36 exe's and dll's, not just dll's.
38 2003-04-02 Bob Wilson <bob.wilson@acm.org>
40 * emulparams/xtensa-config.sh: Remove comment indicating that this is
43 2003-04-01 Bob Wilson <bob.wilson@acm.org>
45 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
46 (eelf32xtensa.c): New target.
47 * Makefile.in: Regenerate.
48 * configure.tgt: Handle xtensa-*-*.
49 * gen-doc.texi: Set XTENSA variable.
50 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
51 * emulparams/elf32xtensa.sh: New file.
52 * emulparams/xtensa-config.sh: Likewise.
53 * emultempl/xtensaelf.em: Likewise.
54 * scripttempl/elfxtensa.sc: Likewise.
56 2003-04-01 Jakub Jelinek <jakub@redhat.com>
58 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
59 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
60 if --enable-64-bit-bfd.
62 2003-04-01 Nick Clifton <nickc@redhat.com>
64 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
66 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
69 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
71 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
74 2003-03-31 David Heine <dlheine@suif.stanford.edu>
76 * ldfile.c (ldfile_add_library_path): Always allocate space for
78 * ldlang.c (lang_register_vers_node): Free the node if it cannot
80 * ldmain.c (set_scripts_dir): Always free the constructed
82 (add_keepsyms_file): Fix memory leak.
83 * ldmisc.c (vfinfo): Likewise.
84 * lexsup.c (parse_args): Likewise
86 2003-03-25 Stan Cox <scox@redhat.com>
87 Nick Clifton <nickc@redhat.com>
89 Contribute support for Intel's iWMMXt chip - an ARM variant:
91 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
92 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
93 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
96 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
98 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
99 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
100 (main): Initialize them.
101 * ldfile.c: Include pathnames.h.
102 (is_sysrooted_pathname): New.
103 (ldfile_add_library_path): Use it.
104 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
105 search_dirs if given an absolute pathname.
106 (ldfile_open_file): Issue error message for sysrooted
108 * Makefile.am: Updated dependencies.
109 * Makefile.in: Rebuild.
111 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
113 * ld.texinfo: Rename all occurances of C54X to TIC54X.
115 2003-03-19 Andreas Schwab <schwab@suse.de>
117 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
120 2003-03-18 Danny Smith <dannysmith@users.sourceforge,net>
122 * defilep.y (opt_base): If no number given, set to default
125 2003-03-13 Danny Smith <dannysmith@users.sourceforge,net>
127 * deffilep.y (def_import): Use default extension of "dll"
128 if no extension provided in parsed IMPORT definition.
130 * deffilep.y (def_lex): Revert 2003-03-12 change.
131 (dot_name): New id type and rule.
132 (expline): Use instead of ID.
133 (opt_equal_name): Likewise.
135 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
137 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
139 2003-03-07 Christopher Faylor <cgf@redhat.com>
141 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
142 apparent accidental removal on 2003-01-06.
144 2003-03-04 Dmitry Diky <diwil@mail.ru>
146 * Makefile.am: Add new devices x1122 x1132 emulation
147 * configure.tgt: Likewise.
148 * Makefile.in: Regenerate.
149 * emulparams/msp430x1122.sh: New file.
150 * emulparams/msp430x1132.sh: New file.
152 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
154 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
157 * ldfile.h (struct search_dirs): Added sysrooted field.
158 * ldlang.h (struct lang_input_statement_struct): Likewise.
159 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
160 (ldfile_open_file_search): Look for sysrooted filename starting
161 with / in ld_sysroot instead of in the current directory. Clear
162 sysrooted flag if it's found in the current directory. Set it
163 from the search directory's sysrooted flag where it is found
165 * ldlang.c (ldlang_sysrooted_script): New static variable.
166 (new_afile): Mark search_file_enums as sysrooted if
167 ldlang_sysrooted_script.
168 (load_symbols): Set ldlang_sysrooted_script according to the
169 script's sysrooted field while processing it.
170 * ld.texinfo: Document INPUT behavior in sysroot.
172 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
174 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
176 2003-03-03 Alan Modra <amodra@bigpond.net.au>
178 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
179 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
180 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
181 PARSE_AND_LIST_EPILOGUE): Don't define.
182 * emultempl/alphaelf.em: New file.
184 2003-03-01 Alan Modra <amodra@bigpond.net.au>
186 * ldemul.c: Include getopt.h.
187 * emultempl/elf32.em: Include getopt.h earlier.
188 * emultempl/ticoff.em: Likewise.
190 2003-02-28 Alan Modra <amodra@bigpond.net.au>
192 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
193 support when scripts read from files.
195 2003-02-28 Alan Modra <amodra@bigpond.net.au>
197 * ldemul.c (ldemul_parse_args): Return FALSE by default.
198 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
201 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
202 (ldemul_parse_args): Return bfd_boolean. Formatting.
203 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
204 (ldemul_parse_args): Adjust.
205 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
206 Return bfd_boolean from parse_args.
207 * lexsup.c (parse_args): Malloc shortopts, longopts and
208 really_longopts. Call ldemul_add_options and ldemul_handle_option.
209 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
210 gld${EMULATION_NAME}_parse_args.
211 (gld${EMULATION_NAME}_handle_option): Likewise.
212 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
213 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
214 * emultempl/beos.em: Likewise.
215 * emultempl/pe.em: Likewise.
216 * emultempl/ticoff.em: Likewise.
217 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
218 (gld${EMULATION_NAME}_add_sysroot): Prototype.
219 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
221 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
222 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
223 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
224 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
226 * emultempl/generic.em: Likewise.
227 * emultempl/gld960.em: Likewise.
228 * emultempl/gld960c.em: Likewise.
229 * emultempl/linux.em: Likewise.
230 * emultempl/lnk960.em: Likewise.
231 * emultempl/m68kcoff.em: Likewise.
232 * emultempl/mipsecoff.em: Likewise.
233 * emultempl/sunos.em: Likewise.
234 * emultempl/vanilla.em: Likewise.
235 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
237 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
239 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
240 memory allocation error.
242 * Makefile.am (ldmain.o): Define TOOLBINDIR.
243 * Makefile.in: Rebuilt.
244 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
246 2003-02-21 Bob Wilson <bob.wilson@acm.org>
248 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
249 call os_region_check when it is set.
250 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
251 lang_size_sections_1.
252 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
253 only for the last call, not on every relaxation iteration.
254 * ldlang.h (lang_size_sections): Update prototype.
255 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
256 to lang_size_sections.
257 (pe_exe_fill_sections): Likewise.
258 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
259 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
260 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
261 (ppc_layout_sections_again): Likewise.
263 2003-02-21 Bob Wilson <bob.wilson@acm.org>
265 * gen-doc.texi: Set ARM and HPPA variables.
266 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
267 title capitalization more consistent. Add missing menu entries for
268 machine-specific sections and conditionalize them consistently.
269 Conditionalize text that is irrelevant when SingleFormat is set.
270 Add @group divisions to improve page breaks in long examples.
271 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
272 is correct. Remove "FIXME" comment about not using
273 @raisesections/@lowersections. Use @raisesections/@lowersections
274 consistently for machine-specific sections. Change to be more polite
275 about poor bug reports. Replace FDL appendix with include of fdl.texi.
276 Move WIN32 node to match its order in the menus.
277 * fdl.texi: New file.
279 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
281 * configure.in (TARGET_SYSTEM_ROOT): Set default to
282 ${exec_prefix}/${target_alias}/sys-root. Match explicit
283 '${exec_prefix}' (in addition to the expansion thereof) as
285 * configure: Rebuilt.
287 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
289 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
291 2003-02-20 Harri Porten <porten@kde.org>
293 * ldgram.y (vers_defns): Allow optional trailing semicolon in
296 2003-02-18 Alan Modra <amodra@bigpond.net.au>
298 * emultempl/ppc32elf.em: New file.
299 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
300 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
301 (eelf32lppcnto.c): Likewise.
302 (eelf32lppcsim.c): Likewise.
303 (eelf32ppcnto.c): Likewise.
304 (eelf32ppc.c): Likewise.
305 (eelf32ppc_fbsd.c): Likewise.
306 (eelf32ppcsim.c): Likewise.
307 (eelf32ppclinux.c): Likewise.
308 * Makefile.in: Regenerate.
310 2003-02-18 Alan Modra <amodra@bigpond.net.au>
312 * ld.texinfo: Remove spaces between @samp and opening brace.
314 2003-02-18 Alan Modra <amodra@bigpond.net.au>
316 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
318 (ppc_before_allocation): Don't do optimizations if wrong hash table.
319 (gld${EMULATION_NAME}_finish): Ditto.
321 2003-02-17 Nick Clifton <nickc@redhat.com>
323 * ldmain.c (main) Default allow_shlib_undefined to true.
324 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
325 (parse_args): Parse the new switch.
326 * ld.texinfo: Document new switch and default behaviour of
327 allowing undefined symbols in shared libraries.
329 2003-02-11 Dmitry Diky <diwil@mail.ru>
331 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
332 * scripttempl/elf32msp430_3.sc: Likewise.
334 2003-02-11 Uwe Stieber <uwe@wwws.de>
336 * configure.tgt: Add support for kaOS as cross build target
339 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
341 * hppaelf.em (group_size): Change default back to 1.
343 2003-02-09 Alan Modra <amodra@bigpond.net.au>
345 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
347 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
349 * hppaelf.em (group_size): Change default to -1.
351 2003-02-07 Nick Clifton <nickc@redhat.com>
353 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
355 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
356 no-pipeline-knowledge. This will prevent the getopt package from
357 thinking that there are any shorter abbreviations for
358 --no-pipeline-knowledge.
360 2003-02-07 Jakub Jelinek <jakub@redhat.com>
362 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
363 which already have it. Avoid duplicates.
365 2003-02-06 Jakub Jelinek <jakub@redhat.com>
367 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
368 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
369 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
371 2003-02-05 Alan Modra <amodra@bigpond.net.au>
373 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
374 call ppc64_elf_tls_optimize.
376 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
378 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
379 outside of GNU/Linux conditional.
381 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
383 * deffilep.y (def_get_module): New function: locate an already
385 * deffile.h (def_get_module): New prototype.
386 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
387 a dll multiple times.
389 2003-01-23 Alan Modra <amodra@bigpond.net.au>
391 * emultempl/sh64elf.em: Include elf32-sh64.h.
392 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
393 sh64_elf_section_data.
394 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
396 2003-01-23 Wu Yongwei <adah@netstd.com>
398 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
399 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
400 cross-80th-column-margin "an" to the next line.
402 2003-01-21 Nick Clifton <nickc@redhat.com>
404 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
405 * emulparams/tic3xcoff_onchip.sh: ...this.
406 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
407 * Makefile.in: Regenerate.
409 2003-01-21 Fabio Alemagna <falemagn@aros.org>
411 * configure.tgt: Handle i[3456]86-*-aros*
413 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
415 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
416 * Makefile.in: Regenerate
417 * configure.tgt: Added extra target emulations
418 * emulparams/tic3xcoff.sh: Remove old settings
419 * emulparams/tic4xcoff.sh: Ditto
420 * emulparams/tic3xcoff-onchip.sh: Added new
421 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
422 * scripttempl/tic3xcoff.sc: Remove
424 2003-01-17 Andreas Jaeger <aj@suse.de>
426 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
429 2003-01-16 Alan Modra <amodra@bigpond.net.au>
431 * Makefile.in: Regenerate.
433 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
435 * ld/ld.texinfo (node WIN32): Some clarifications
436 and formatting fixups.
438 2003-01-09 Chris Demetriou <cgd@broadcom.com>
440 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
441 order, and handle (ignore) -mips32r2.
443 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
445 * ldmain.c (main): Make sure ld_sysroot is initialized.
447 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
449 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
451 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
452 (GENSCRIPTS): Add @use_sysroot@.
453 * Makefile.in: Regenerated.
454 * configure.host: Move setting of NATIVE_LIB_DIRS to...
455 * configure.tgt: ... here. Use ${target} instead of ${host}
457 * configure.in: Add --with-sysroot.
458 * configure: Regenerated.
459 * genscripts.sh: Accept use_sysroot option. Set new variables
460 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
461 $use_sysroot. Don't search $tool_lib if $use_sysroot.
462 * ldfile.c (ldfile_add_library_path): Handle leading '='.
463 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
464 (ld_sysroot): New variable.
465 (main): Initialize ld_sysroot.
466 * ldmain.h (ld_sysroot): New extern.
467 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
468 searching $EMULATION_LIBPATH.
469 (gld${EMULATION_NAME}_add_sysroot): New function.
470 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
471 (gld${EMULATION_NAME}_after_open): Likewise. Only search
472 environment variables if $NATIVE.
473 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
474 * NEWS: Mention --with-sysroot.
476 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
477 instead of setting LIB_PATH.
478 * emulparams/elf32ppc.sh: Likewise.
479 * emulparams/elf64_s390.sh: Likewise.
480 * emulparams/elf64_sparc.sh: Likewise.
481 * emulparams/elf64ppc.sh: Likewise.
482 * emulparams/elf_x86_64.sh: Likewise.
484 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
485 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
487 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
489 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
491 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
493 * Makefile.am (ldmain.o): Pass BINDIR.
494 * Makefile.in: Regenerated.
495 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
498 2003-01-02 Ben Elliston <bje@redhat.com>
500 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
501 (eelf32iq2000.c): New target.
502 * Makefile.in: Regenerate.
503 * configure.tgt: Handle iq2000-*-elf.
504 * emulparams/elf32iq10.sh: New file.
505 * emulparams/elf32iq2000.sh: New file.
506 * scripttempl/iq2000.sc: New file.
508 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
510 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
511 and _pei386_runtime_relocator to the exclude list.
513 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
515 * ldfile.c: Fix comment typos.
516 * ldlang.c: Likewise.
518 * pe-dll.c: Likewise.
520 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
522 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
523 * Makefile.am (ld.1): Depend on configdoc.texi
525 * Makefile.in: Regenerated.
527 2002-12-24 Dmitry Diky <diwil@mail.ru>
529 * Makefile.am: Add msp430 target.
530 * configure.tgt: Likewise.
531 * Makefile.in: Regenerate.
532 * emulparams/msp430x???.sh: New files. Linker script parameters
533 for various msp430 configurations.
534 * gen-doc.texi: Enable msp430 documenation.
535 * ld.texinfo: Document msp430 sections.
536 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
537 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
539 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
540 Charles Wilson <cwilson@ece.gatech.edu>
542 * ld/config.in (HAVE_REALPATH): New entry.
543 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
545 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
547 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
550 2002-12-23 Alan Modra <amodra@bigpond.net.au>
552 * ldmain.c (main): Init "strip_discarded".
553 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
554 (OPTION_NO_STRIP_DISCARDED): Define.
555 (ld_options): Add "strip-discarded" and "no-strip-discarded".
556 (parse_args): Handle them.
558 2002-12-23 Nick Clifton <nickc@redhat.com>
560 * ld.h (struct args_type): Add new field
561 'accept_unknown_input_architecture'.
562 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
564 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
565 bfd_arch_get_compatible.
566 * ldfile.c (ldfile_try_open_bfd): Likewise.
567 * lexsup.c (ld_options): Add new command line switch
568 --accept-unknown-input-architecture and its inverse.
569 (parse_args): Handle --accept-unknown-input-architecture.
570 * ld.texinfo: Document new linker option.
571 * NEWS: Mention new linker option.
573 2002-12-20 Alan Modra <amodra@bigpond.net.au>
575 * ldmain.c (main): Re-order link_info initialization. Init all
578 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
580 * ld.texinfo: Clarify and extend the documentation
581 in the Machine Dependent, WIN32 section.
583 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
585 * ld.texinfo: Add win32 machine depending section.
586 * gen-doc.texi: Enable win32 machine depending section.
588 * configure.host: Add win32 library search path.
590 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
592 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
593 import when auto-import is disabled.
595 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
597 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
598 account for trailing '\0'.
600 2002-12-17 Nick Clifton <nickc@redhat.com>
602 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
603 so that it is not confused with -c.
605 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
606 Charles Wilson <cwilson@ece.gatech.edu>
608 * configure.in: Add check for realpath function.
609 * configure: Regenerate.
610 * config.in: Regenerate.
611 * aclocal.m4: Regenerate.
612 * deffile.h: Add .data field to def_file_import
614 * pe-dll.c (pe_proces_import_defs): Use .data field of
615 def_file_import structure to initialize flag_data field of
616 def_file_export structure.
617 (pe_implied_import_dll): New variables exp_funcbase and
618 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
619 not filename (which may be a symlink). Scan the sections and
620 initialize [data|bss]_[start|end]. When scanning the export
621 table, skip _nm_ symbols, and mark any symbols whose rva indicates
622 that it is in the .bss or .data sections as data.
623 * sysdep.h: Include limits.h and sys/param.h, and define
624 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
625 exists, NULL otherwise.
626 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
627 pe_process_import_defs before pe_find_data_imports, so that
628 auto-import will check the virtual implib as well as "real"
630 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
631 symlinks to their target; check that the target's extension is
632 .dll before calling pe_implied_import_dll(), not the filename
633 itself (which may be a symlink).
635 2002-12-10 Alan Modra <amodra@bigpond.net.au>
637 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
638 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
641 2002-12-08 Alan Modra <amodra@bigpond.net.au>
643 * ldlang.h: Formatting.
645 2002-12-07 Alan Modra <amodra@bigpond.net.au>
647 * ldlang.c (init_os): Ensure sections mentioned in load_base
650 2002-12-05 Alan Modra <amodra@bigpond.net.au>
652 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
653 load_base for orphans that follow a section with load_base set.
655 2002-12-01 H.J. Lu <hjl@gnu.org>
657 * ld.texinfo: Remove the extra `;' in sample version script.
659 2002-11-30 Alan Modra <amodra@bigpond.net.au>
661 * configure.host: Correct dynamic-linker for powerpc64 hosts.
663 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
664 * Makefile.in: Regenerate.
666 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
667 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
668 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
669 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
670 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
671 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
672 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
673 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
674 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
675 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
676 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
677 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
678 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
680 2002-11-27 David O'Brien <obrien@FreeBSD.org>
682 * configure.host: Fix generic FreeBSD configuration entry.
684 2002-11-27 H.J. Lu <hjl@gnu.org>
686 * ld.texinfo: Add the missing `;' to sample version scripts.
688 2002-11-20 Alan Modra <amodra@bigpond.net.au>
690 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
692 2002-11-14 Egor Duda <deo@logos-m.ru>
694 * ldmain.c (main): Make runtime relocs disabled by default. Remove
695 assignment which has no effect.
696 * pe-dll.h (pe_create_import_fixup): Change prototype.
697 * pe-dll.c (make_runtime_pseudo_reloc): New function.
698 (pe_create_runtime_relocator_reference): Ditto.
699 (pe_create_import_fixup): Handle relocations with non-zero addends.
700 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
701 --disable-runtime-pseudo-reloc.
702 (make_import_fixup): Handle relocations with non-zero addends. Create
703 an external reference to _pei386_runtime_relocator symbol if at least
704 one pseudo reloc was created.
705 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
706 --disable-runtime-pseudo-reloc options.
708 2002-11-12 Earl Chew <earl_chew@agilent.com>
710 * ldlang.c (lang_add_section): Discard debugging sections that have
711 been marked SEC_EXCLUDE.
713 2002-11-12 Nick Clifton <nickc@redhat.com>
715 * configure.in (ALL_LINGUAS): Add da.
716 * configure: Regenerate.
717 * po/da.po: New Danish translation.
719 2002-11-12 Alan Modra <amodra@bigpond.net.au>
721 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
722 (LDEMUL_BEFORE_ALLOCATION): Define.
723 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
725 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
727 2002-11-11 Christopher Faylor <cgf@redhat.com>
729 * configure.tgt (LIB_PATH): Default to searching w32api directory under
732 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
734 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
735 of restricted auto-export libs.
737 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
739 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
740 creative library naming instances like, e.g., libstdc++-2.a.
742 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
744 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
745 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
747 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
749 * deffilep.y (def_lex): Handle '@' as first character of an ID.
750 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
751 (make_one): Don't prefix decorated fastcall symbols with '_'.
752 (pe_process_import_defs): Likewise.
753 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
754 symbols to cdecl names or vise-versa.
756 2002-10-13 Eric Kohl <ekohl@rz-online.de>
758 * pe-dll.c (process_def_file): Handle fastcall symbols when
759 generating undecorated aliases. Don't prefix decorated fastcall
761 (fill_exported_offsets): Don't prefix decorated fastcall symbols
764 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
766 * emultempl/aix.em: Use include <> for generated headers.
767 * emultempl/beos.em: Likewise.
768 * emultempl/elf32.em: Likewise.
769 * emultempl/pe.em: Likewise.
770 * ldctor.c: Likewise.
772 * ldfile.c: Likewise.
773 * ldlang.c: Likewise.
776 * ldmain.c: Likewise.
777 * ldmisc.c: Likewise.
778 * ldwrite.c: Likewise.
779 * lexsup.c: Likewise.
781 * pe-dll.c: Likewise.
783 2002-10-23 Jakub Jelinek <jakub@redhat.com>
785 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
786 sections into .rel{,a}.dyn.
788 2002-10-23 Nick Clifton <nickc@redhat.com>
790 * lexsup.c (OPTION_NO_OMAGIC): Define.
791 (ld_options): Add "no-omagic" option.
792 (parse_args): Parse --no-omagic.
793 * ld.texinfo: Document --no-omagic.
794 * NEWS: Mention new option.
796 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
798 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
799 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
801 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
803 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
804 emulation name. Set LIB_PATH only for native tools, and
805 search the ABI-specific versions of NATIVE_LIB_DIRS before the
806 .../lib variants, not instead of them. Mostly copied from...
807 * emulparams/elf32ppc.sh: ... here. Fixed typo.
808 * emulparams/elf64bmip-defs.sh: Backed out.
809 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
810 * emulparams/elf64btsmip.sh: Likewise.
811 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
812 TEXT_DYNAMIC): Removed.
814 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
816 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
817 (GENERATE_SHLIB_SCRIPT): Set to yes.
818 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
819 * emulparams/elf32bmipn32.sh: here.
820 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
821 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
822 * emulparams/elf64bmip-defs.sh: New file. Extend
823 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
824 * emulparams/elf64bmip.sh: Bring in definitions from
826 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
828 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
829 * emulparams/elf64btsmip.sh: Bring in definitions from
831 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
832 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
834 2002-10-16 Jakub Jelinek <jakub@redhat.com>
836 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
837 (s390-*-linux*): Add elf64_s390 emulation if want64.
838 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
839 genscript.sh changes.
840 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
841 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
843 2002-10-15 Alan Modra <amodra@bigpond.net.au>
845 * ldlang.c (load_symbols): Revert last change.
847 2002-10-14 Alan Modra <amodra@bigpond.net.au>
849 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
851 (lang_reasonable_defaults): Don't compare against false.
852 (size_input_section): Likewise.
853 (lang_size_sections_1): Likewise.
854 (lang_do_assignments): Likewise.
855 (lang_add_output): Likewise.
857 * Makefile.am: Run "make dep-am".
858 * Makefile.in: Regenerate.
859 * ldver.c: #include "bfdver.h".
861 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
863 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
865 * scripttempl/elfm68hc12.sc: Likewise.
867 2002-10-11 Alan Modra <amodra@bigpond.net.au>
869 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
871 * ldgram.y (memory_spec): Provide empty action.
872 (section <NAME>): Likewise.
874 2002-10-10 Jakub Jelinek <jakub@redhat.com>
876 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
877 they have OUTPUT_FORMAT not matching actual output format.
878 * ldlang.c (lang_get_output_target): New function.
879 (open_output): Use it.
880 * ldlang.h (lang_get_output_target): New prototype.
882 2002-10-10 Alan Modra <amodra@bigpond.net.au>
884 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
885 when orphan is .rel, .rela when orphan is .rela.
886 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
887 first. Remove outsecname var.
889 2002-10-09 Richard Shann <richard.shann@superh.com>
890 Stephen Clarke <stephen.clarke@superh.com>
892 * Makefile.am: Add eshelf32_linux.o and
893 eshlelf32_linux.o, new emulations for sh64 Linux.
894 * Makefile.in: Regenerate.
895 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
896 * emulparams/shelf32_linux.sh: New file.
897 * emulparams/shlelf32_linux.sh: New file.
899 2002-10-08 H.J. Lu <hjl@gnu.org>
901 * ldlang.c (lang_file_exist): Removed.
902 (new_afile): Revert the last change.
903 * ldlang.h (lang_file_exist): Removed.
904 * lexsup.c (parse_args): Revert the last change.
906 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
908 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
910 (make_one): Create _nm_<symbol> for data only.
912 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
914 * ldlang.c (lang_file_exist): New function.
915 (new_afile): Abort if the filename to be added matches the linker
917 * ldlang.h: Add prototype for lang_file_exist.
918 * lexsup.c (parse_args): Abort if the output filename matches
919 one of the input filenames.
921 2002-10-02 Alan Modra <amodra@bigpond.net.au>
923 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
925 2002-09-30 Alan Modra <amodra@bigpond.net.au>
927 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
928 * scripttempl/elfm68hc11.sc: Likewise.
929 * scripttempl/elfm68hc12.sc: Likewise.
931 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
932 reloc sections just before .rel.plt/.rela.plt.
933 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
934 Only put loadable reloc sections in hold_rel.
936 2002-09-29 H.J. Lu <hjl@gnu.org>
938 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
940 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
942 From "Anita Kulkarni" <AnitaK@kpit.com>
943 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
946 2002-09-25 Alan Modra <amodra@bigpond.net.au>
948 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
950 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
951 SEGMENT_SIZE alignment.
952 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
953 (SEGMENT_SIZE): Define.
955 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
956 (fold_binary): Correct abs - non-abs case.
957 (fold_trinary): New. Split out from exp_fold_tree.
959 2002-09-24 Alan Modra <amodra@bigpond.net.au>
961 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
962 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
963 for start of .data, instead align up to 256M boundary.
964 * scripttempl/aix.sc: Likewise.
966 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
968 * scripttempl/i386go32.sc: Handle bss unique sections.
970 2002-09-21 Alan Modra <amodra@bigpond.net.au>
972 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
974 2002-09-17 Stan Cox <scox@redhat.com>
976 * emulparams/elf32bmipn32-defs.sh: New file.
977 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
978 * emulparams/elf32btsmipn32.sh: Likewise.
979 * emulparams/elf64bmip.sh: Likewise.
980 * emulparams/elf64btsmip.sh: Likewise.
982 2002-09-16 Bruno Haible <bruno@clisp.org>
984 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
986 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
989 2002-09-11 Nick Clifton <nickc@redhat.com>
991 * NEWS: New TI port supports both C4x and C3x series of DSPs.
993 * po/tr.po: Updated Turkish translation.
995 2002-09-06 Jeffrey A Law (law@redhat.com)
997 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
999 2002-09-02 Nick Clifton <nickc@redhat.com>
1001 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1003 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1005 2002-08-30 Nick Clifton <nickc@redhat.com>
1007 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1008 used. Change INSN to start at 0x01000000 and extend for
1009 256K (ignoring holes). Start the STACK on a word aligned
1011 (.rodata): Start it at the READONLY_START_ADDR.
1013 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1015 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1017 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1019 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1020 added makefile targets for this file.
1021 * Makefile.in: Regenerate.
1022 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1023 * NEWS: Mention new port.
1025 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1027 * emulparams/tic3xcoff.sh: New file.
1028 * emulparams/tic4xcoff.sh: New file.
1029 * scripttempl/tic3xcoff.sc: New file.
1030 * scripttempl/tic4xcoff.sc: New file.
1032 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1034 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1035 strtoul and strtoull with bfd_scan_vma.
1036 (gld${EMULATION_NAME}_read_file): Likewise.
1038 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1040 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1042 2002-08-27 Egor Duda <deo@logos-m.ru>
1044 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1045 Add symbols for application to access them.
1047 2002-08-27 Nick Clifton <nickc@redhat.com>
1049 * emultempl/armelf.em: Revert this patch, it is not needed.
1051 2002-08-22 Adam Nemet <anemet@lnxw.com>
1053 2002-08-20 Dan Kegel <dank@kegel.com>
1055 * configure.in: added --with-lib-path argument to ld's configure
1057 * ld/NEWS: Document new switch.
1058 * ld/README: Mention new switch.
1059 * configure: Regenerate.
1060 * Makefile.in: Regenerate.
1062 Based on this patch:
1063 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1065 * Makefile.in (LIB_PATH): Make configurable.
1066 (GENSCRIPTS): Set LIB_PATH in environment.
1067 * configure.in: Substitute LIB_PATH.
1069 2002-08-22 Adam Nemet <anemet@lnxw.com>
1071 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1072 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1073 depending on the type of the function.
1074 (arm_elf_convert_thumb_symbol_to_address): New function.
1076 2002-08-22 Graeme Peterson <gp@qnx.com>
1078 * Makefile.am: Add esh{l}elf_nto.o files.
1079 * Makefile.in: Regenerate.
1080 * configure.tgt: Add support for sh-**-nto* targets.
1081 * emulparams/shelf_nto.sh: New file.
1082 * emulparams/shlelf_nto.sh: New file.
1084 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1086 * ldlang.c (offsetof): Define if not defined.
1088 2002-08-14 H.J. Lu <hjl@gnu.org>
1090 * configure.tgt: Always enable 64bit emulations for 32bit
1093 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1095 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1096 (MAXPAGESIZE): Set to 1.
1098 * ld.h (ALIGN_N): Delete.
1099 * ldexp.h (align_n): Declare.
1100 * ldexp.c (align_n): New function.
1101 (fold_binary): Use align_n instead of ALIGN_N.
1102 (exp_fold_tree): Likewise.
1103 * ldlang.c (lang_size_sections_1): Likewise.
1104 (lang_one_common): Likewise.
1105 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1107 2002-07-31 Graeme Peterson <gp@qnx.com>
1109 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1110 * Makefile.am: Add eelf32{l}ppcnto.o files.
1111 * Makefile.in: Regenerate.
1112 * emulparams/elf32lppcnto.sh: New file.
1113 * emulparams/elf32ppcnto.sh: New file.
1115 2002-08-07 H.J. Lu <hjl@gnu.org>
1117 * ld.texinfo: Document --no-undefined-version.
1119 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1120 `script.' fields to 0.
1122 * ldmain.c (main): Initialize the allow_undefined_version to
1125 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1126 (ld_options): Add --no-undefined-version.
1127 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1129 2002-08-07 Nick Clifton <nickc@redhat.com>
1131 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1132 an interworking bfd if there are input bfds. (107501)
1134 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1136 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1139 2002-08-01 Nick Clifton <nickc@redhat.com>
1141 * emulparams/armelf.sh: Revert previous delta.
1142 * scripttempl/elf.sc: Revert previous delta.
1144 2002-07-31 H.J. Lu <hjl@gnu.org>
1146 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1147 --enable-64-bit-bfd.
1149 2002-07-31 H.J. Lu <hjl@gnu.org>
1151 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1152 64bit BFD is selected.
1154 2002-07-31 H.J. Lu <hjl@gnu.org>
1156 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1157 if 64bit BFD is selected.
1159 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1161 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1162 link_info.common_skip_ar_aymbols.
1163 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1165 * ldmain.c (main): Initialize new field
1166 link_info.common_skip_ar_aymbols.
1168 2002-07-31 Adam Nemet <anemet@lnxw.com>
1170 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1172 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1175 2002-07-31 Nick Clifton <nickc@redhat.com>
1177 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1178 of the PDP-11 and 2.11BSD a.out support.
1180 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1182 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1183 for n32 ABI support.
1184 * Makefile.in: Regenerate.
1185 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1186 n32 ABI emulations for these 64 bit targets.
1187 * emulparams/elf32bmipn32.sh: Expand comment.
1188 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1190 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1192 2002-07-30 Graeme Peterson <gp@qnx.com>
1194 * configure.tgt: Add support for arm-*-nto target.
1195 * Makefile.am: Add earmnto.o file.
1196 * Makefile.in: Regenerate.
1197 * NEWS: Mention port of ARM support to QNX.
1198 * emulparams/armnto.sh: New file.
1200 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1202 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1203 for relocatable link.
1204 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1207 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1209 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1212 2002-07-25 Nick Clifton <nickc@redhat.com>
1214 * po/sv.po: Updated Swedish translation.
1215 * po/es.po: Updated Spanish translation.
1216 * po/fr.po: Updated French translation.
1218 2002-07-24 Nick Clifton <nickc@redhat.com>
1220 * po/sv.po: Updated Swedish translation.
1221 * po/es.po: Updated Spanish translation.
1223 2002-07-23 Nick Clifton <nickc@redhat.com>
1225 * po/fr.po: Updated French translation.
1227 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1229 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1230 bomb on /DISCARD/ input section.
1231 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1232 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1234 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1236 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1239 2002-07-16 Denis Chertykov <denisc@overta.ru>
1240 Nick Clifton <nickc@redhat.com>
1241 Frank Ch. Eigler <fche@redhat.com>
1242 John Healy <jhealy@redhat.com>
1244 * configure.tgt: Add support for ip2k-elf.
1245 * Makefile.am: Add support for ip2k-elf.
1246 * Makefile.in: Regenerate.
1247 * emulparams/elf32ip2k.sh: New file.
1248 * scripttempl/ip2k.sc: New file
1249 * NEWS: Mention support for new port.
1251 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1253 * NEWS: Add 'Changes in 2.13'.
1255 2002-07-14 H.J. Lu <hjl@gnu.org>
1257 * ld.texinfo: Document a .symver takes precedence over a
1260 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1262 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1263 (COMMONPAGESIZE): Define.
1265 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1267 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1269 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1271 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1272 powerpc-*-openbsd* and sparc64-*-openbsd*.
1273 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1274 * Makefile.in: Regenerate.
1275 * emulparams/hppaobsd.sh: New file.
1277 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1279 * ldlang.c (print_wild_statement): Fix output formatting.
1281 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1283 * ldlang.c: (strip_excluded_output_sections): New function.
1284 (lang_process): Call it.
1285 (lang_size_sections_1): Revert 2002-06-10 change.
1287 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1289 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1291 * Makefile.in: Regenerate.
1293 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1295 * ldfile.c (ldfile_try_open_bfd): Formatting.
1297 * ldmisc.c (demangle): Move so that it doesn't intrude between
1298 vfinfo comment and body. Add comment.
1300 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1302 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1304 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1306 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1307 * ldlang.c (entry_sym): Likewise.
1308 (ldlang_undef_chain_list_type): Likewise.
1309 (lang_finish): Adjust references to entry_symbol.
1310 (lang_add_entry): Likewise.
1311 (lang_gc_sections): Use link_info.gc_sym_list.
1312 (lang_process): Set link_info.gc_sym_list.
1313 * ldlex.l: Include bfdlink.h.
1314 * ldmain.c (main): Init link_info.gc_sym_list.
1315 * emultempl/aix.em: Adjust references to entry_symbol.
1316 * emultempl/armcoff.em: Likewise.
1317 * emultempl/armelf.em: Likewise.
1318 * emultempl/pe.em: Likewise.
1319 * emultempl/ppc64elf.em (ppc_after_open): New function.
1320 (LDEMUL_AFTER_OPEN): Define.
1321 * emulparams/elf64ppc.sh: KEEP .opd sections.
1323 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1325 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1326 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1327 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1328 (EEPROM_START_ADDR): Define.
1329 (EEPROM_MEMORY): Define.
1330 * emulparams/m68hc12elf.sh: Likewise.
1331 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1332 section to put soft registers in .page0.
1333 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1335 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1337 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1338 section. Add ${RELOCATING-0}.
1340 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1342 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1343 (OTHER_SECTIONS): Define.
1344 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1345 (OTHER_SECTIONS): Undef.
1347 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1349 * ldmisc.c (demangle): Restore dots stripped from sym name.
1351 2002-06-25 H.J. Lu <hjl@gnu.org>
1353 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1354 * Makefile.in: Regenerated.
1356 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1358 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1359 the size of attached object files, to allow make the object files
1360 available via FTP or HTTP and to mention that the mail will be
1361 sent to a mailing list.
1363 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1365 * ld/configure.host (romp): Drop support.
1367 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1369 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1370 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1372 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1374 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1375 format specifier used to print BFD name.
1377 2002-06-18 Dave Brolley <brolley@redhat.com>
1379 From Catherine Moore, Michael Meissner, Jim Blandy:
1380 * emulparams/elf32frv.sh: New file.
1381 * configure.tgt: Support frv-*-*.
1382 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1383 (eelf32frv.c): New target.
1385 2002-06-17 Tom Rix <trix@redhat.com>
1387 * emultempl/elf32.em: gld*_get_script: Check for
1388 GENERATE_COMBRELOC_SCRIPT.
1389 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1390 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1392 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1394 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1396 2002-06-12 H.J. Lu <hjl@gnu.org>
1398 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1399 false if xvec doesn't match.
1401 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1403 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1405 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1407 * ldexp.c: Replace CONST with const.
1408 * ldfile.c: Likewise.
1409 * ldfile.h: Likewise.
1410 * ldlex.l: Likewise.
1412 * pe-dll.h: Likewise.
1414 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1416 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1418 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1420 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1421 to -1 == implicit enable.
1422 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1423 initialize link_info.pei386_auto_import to -1 == implicit
1425 (gld_${EMULATION_NAME}_parse_args): When processing
1426 --enable-auto-import and --disable-auto-import options, use
1427 '1' and '0' instead of 'true' and 'false'.
1428 (pe_find_data_imports): Only issue message about auto-import
1429 when the feature is implicitly enabled. Downgrade message to
1430 informational instead of warning.
1432 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1434 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1436 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1438 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1439 HOSTING_CRT0 and HOSTING_LIBS.
1441 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1443 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1445 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1447 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1448 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1450 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1452 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1453 SEC_EXCLUDE sections when doing a relocatable link.
1455 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1457 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1458 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1459 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1460 (eshlelf64_nbsd.c): New rules.
1461 * Makefile.in: Regenerate.
1462 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1463 (sh64-*-netbsd*): New targets.
1464 * emulparams/shelf32_nbsd.sh: New file.
1465 * emulparams/shelf64_nbsd.sh: New file.
1466 * emulparams/shlelf32_nbsd.sh: New file.
1467 * emulparams/shlelf64_nbsd.sh: New file.
1469 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1471 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1473 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1475 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1476 C++ constructors/destructors, loosely based on the m68hc11 port.
1478 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1480 * Makefile.in: Regenerate.
1481 * aclocal.m4: Regenerate.
1482 * config.in: Regenerate.
1483 * configure: Regenerate.
1485 2002-05-31 Graeme Peterson <gp@qnx.com>
1487 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1488 (ei386nto.c): Add rule.
1489 * Makefile.in: Regenerate.
1490 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1491 * emulparams/i386nto.sh: New file.
1493 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1495 * NEWS: Add entry for VAX ELF support.
1497 2002-05-29 Matt Thomas <matt@3am-software.com>
1498 Jason Thorpe <thorpej@wasabisystems.com>
1500 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1502 (evaxnbsd.c): New rules.
1503 * Makefile.in: Regenerate.
1504 * configure.tgt (vax-*-netbsdelf*)
1506 (vax-*-netbsd*): New targets.
1507 * emulparams/elf32vax.sh: New file.
1508 * emulparams/vaxnbsd.sh: New file.
1510 2002-05-29 Adam Nemet <anemet@lnxw.com>
1512 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1513 bfd_for_interwork, instead add glue sections to each input bfd.
1514 (bfd_for_interwork): New global.
1515 (arm_elf_set_bfd_for_interworking): New function.
1516 (arm_elf_before_allocation): Use it.
1518 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1520 * Makefile.am: Add DLX make target.
1521 * configure.tgt: Add DLX configuration.
1522 * Makefile.in: Regenerate.
1523 * emulparams/elf32_dlx.sh: New file
1524 * scripttempl/dlx.sc: New file
1526 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1528 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1529 * Makefile.in: Regenerate.
1530 * emulparams/elf_chaos.sh: Use elf_chaos script.
1531 * scripttempl/elf_chaos.sc: New file.
1533 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1535 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1536 addresses and regions from here...
1537 (lang_get_regions): ...to this new function.
1538 (lang_leave_output_section_statement): Use lang_get_regions.
1539 (lang_leave_overlay): Likewise.
1540 * mri.c (mri_draw_tree): Pass null as last argument to
1541 lang_leave_output_section_statement.
1542 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1543 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1544 * emultempl/pe.em (gld*_place_orphan): Likewise.
1546 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1548 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1550 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1552 * ldemul.c: Fix formatting.
1553 * ldfile.c: Likewise.
1554 * pe-dll.c: Likewise.
1555 * pe-dll.h: Likewise.
1557 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1559 * ldlang.c (lang_process): Formatting, grammar.
1561 * ldlex.l: Use #include "" instead of <> for local header files.
1563 2002-05-24 TAMURA Kent <kent@netbsd.org>
1565 * configure.tgt: Add a target for i386-netbsdpe.
1567 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1569 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1570 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1571 output section if necessary. Handle .tbss.
1572 (lang_size_sections): Clear _raw_size for .tbss section
1573 (it allocates space in PT_TLS segment only).
1574 * ldwrite.c (build_link_order): Build link order for .tbss too.
1576 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1578 * configure.in: Correct spelling of AC_PREREQ.
1580 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1582 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1584 (autofilter_objlist): Add crtbegin.o, crtend.o.
1586 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1588 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1589 (longopts): Add new option --exclude-libs.
1590 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1591 (gld_${EMULATION_NAME}_parse_args): Use it.
1592 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1593 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1594 from whole archives.
1595 (pe_dll_add_excludes): Set excludes->type.
1596 (auto_export): Add new variable libname and set to archive basename if
1597 abfd. Use it when filtering default and user-specified libarary
1598 excludes. Let string "ALL" mean all libs when filtering user-specified
1600 * ld.texinfo: Document --exclude-libs.
1602 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1604 * ldemul.c (ldemul_new_vers_pattern): New function.
1605 * ldemul.h (ldemul_new_vers_pattern): Declare.
1606 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1607 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1608 * emultempl/ppc64elf.em (dotsyms): New static var.
1609 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1610 (LDEMUL_NEW_VERS_PATTERN): Define.
1611 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1612 (PARSE_AND_LIST_LONGOPTS): Likewise.
1613 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1614 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1616 * emultempl/armcoff.em: Likewise.
1617 * emultempl/armelf_oabi.em: Likewise.
1618 * emultempl/beos.em: Likewise.
1619 * emultempl/elf32.em: Likewise.
1620 * emultempl/generic.em: Likewise.
1621 * emultempl/gld960.em: Likewise.
1622 * emultempl/gld960c.em: Likewise.
1623 * emultempl/linux.em: Likewise.
1624 * emultempl/lnk960.em: Likewise.
1625 * emultempl/m68kcoff.em: Likewise.
1626 * emultempl/mipsecoff.em: Likewise.
1627 * emultempl/pe.em: Likewise.
1628 * emultempl/sunos.em: Likewise.
1629 * emultempl/ticoff.em: Likewise.
1630 * emultempl/vanilla.em: Likewise.
1632 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1634 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1635 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1636 (LIB_SEARCH_DIRS): No need to use "tr".
1637 (COMPILE_IN): Only set for native targets.
1638 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1639 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1640 * configure.tgt (powerpc*): Set tdir_*.
1641 (powerpcle*): Correct targ_extra_emuls.
1642 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1643 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1645 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1647 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1648 calling lang_add_entry.
1650 2002-05-21 H.J. Lu (hjl@gnu.org)
1652 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1654 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1656 * ld.texinfo: Updated for --allow-multiple-definition and
1659 * ldmain.c (main): Initialize the allow_multiple_definition
1662 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1663 (ld_options): Add --allow-multiple-definition.
1664 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1666 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1668 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1669 (earmelfb_nbsd.c): New rule.
1670 * Makefile.in: Regenerate.
1671 * configure.tgt (armeb-*-netbsdelf*): New target.
1672 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1673 (arm-*-netbsd*): Likewise.
1674 * emulparams/armelfb_nbsd.sh: New file.
1676 2002-05-18 Tom Rix <trix@redhat.com>
1678 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1681 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1683 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1684 * Makefile.in: Regenerate.
1685 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1687 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1689 * emulparams/avr1.sh: New file.
1690 * emulparams/avr2.sh: New file.
1691 * emulparams/avr3.sh: New file.
1692 * emulparams/avr4.sh: New file.
1693 * emulparams/avr5.sh: New file.
1694 * scripttempl/avr.sc: New file.
1696 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1698 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1699 (lang_place_orphans): Abort if just_syms_flag.
1701 2002-05-10 Tom Rix <trix@redhat.com>
1703 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1704 architecture and machine information in the output bfd.
1705 (gld*_before_parse): Remove old arch and machine code.
1706 (choose_target): Rename to gld*_choose_target.
1707 (rtld): Change type to int.
1708 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1709 objects in XCOFF archives.
1710 * ldfile.h: Update copyright date.
1712 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1714 * ldmain.c (main): Enable -z combreloc by default.
1716 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1718 * Makefile.am: Honour DESTDIR.
1719 * Makefile.in: Regenerate.
1721 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1723 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1724 (lang_enter_overlay): Remove the last two parameters.
1725 (lang_leave_overlay): Take them here instead.
1726 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1727 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1728 than lang_enter_overlay.
1729 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1730 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1731 (lang_size_sections_1): Evaluate it.
1732 (lang_leave_output_section_statement): Rework LMA lookup.
1733 (overlay_lma, overlay_nocrossrefs): Remove.
1734 (lang_enter_overlay): Remove LMA and crossref arguments.
1735 (lang_enter_overlay_section): Don't set the LMA here.
1736 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1737 assignment to the last section's update_dot_tree. Unconditionally
1738 use the load and run-time regions specified in the OVERLAY statement.
1739 Likewise the first section's LMA. Only set the other sections' LMAs
1740 when no load region is given.
1742 2002-05-06 Nick Clifton <nickc@redhat.com>
1744 * po/sv.po: New translation.
1746 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1748 * emultempl/hppaelf.em (build_section_lists): New function.
1749 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1750 and build_section_lists.
1752 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1754 * ld.h: Fix formatting.
1755 * ldexp.c: Likewise.
1756 * ldfile.c: Likewise.
1757 * ldlang.c: Likewise.
1758 * ldmain.c: Likewise.
1759 * lexsup.c: Likewise.
1760 * pe-dll.c: Likewise.
1762 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1764 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1765 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1766 (build_section_lists): Do output_section tests here.
1768 2002-04-30 Tom Rix <trix@redhat.com>
1770 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1772 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1774 Long branch stubs, multiple stub sections.
1775 * emultempl/ppc64elf.em: Include ldctor.h.
1776 (stub_file): New var.
1777 (group_size): New var.
1778 (ppc_create_output_section_statements): New function.
1779 (struct hook_stub_info): New.
1780 (hook_in_stub): New function.
1781 (ppc_add_stub_section): New function.
1782 (ppc_layout_sections_again): New function.
1783 (build_section_lists): New function.
1784 (gld${EMULATION_NAME}_finish): Rewrite.
1785 (real_func): New var.
1786 (ppc_for_each_input_file_wrapper): New function.
1787 (ppc_lang_for_each_input_file): New function.
1788 (lang_for_each_input_file): Define.
1789 (PARSE_AND_LIST_PROLOGUE): Define.
1790 (PARSE_AND_LIST_LONGOPTS): Define.
1791 (PARSE_AND_LIST_OPTIONS): Define.
1792 (PARSE_AND_LIST_ARGS_CASES): Define.
1793 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1795 2002-04-30 Tom Rix <trix@redhat.com>
1797 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1798 -blibpath, -bnolibpath support.
1800 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1802 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1803 (eelf32ppcwindiss.c): New target.
1804 * Makefile.in: Regenerated.
1805 * configure.tgt: Add support for powerpc-*-windiss.
1806 * emulparams/elf32ppcwindiss.sh: New file.
1808 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1810 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1811 * ldexp.c (exp_print_token): Add "infix_p" argument.
1812 (exp_print_tree): Update accordingly.
1814 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1816 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1817 * Makefile.in: Regenerate.
1818 * mpw-elfmips.c: Delete.
1819 * mpw-eppcmac.c: Delete.
1820 * mpw-esh.c: Delete.
1821 * mpw-idtmips.c: Delete.
1823 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1825 * emulparams/shelf32.sh (MACHINE): Now sh5.
1827 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1829 * ldgram.y: Fix syntax warning.
1831 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1833 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1834 to prevent "-n" from being taken as an abbreviation for
1835 "--no-pipeline-knowledge".
1837 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1839 * ldlang.c (lang_size_sections_1): Don't complain about
1840 SEC_NEVER_LOAD sections having no memory region specified.
1842 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1844 2002-04-07 matthew green <mrg@redhat.com>
1846 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1848 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1850 * dep-in.sed: Cope with absolute paths.
1851 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1853 * Makefile.in: Regenerate.
1855 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1857 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1859 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1861 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1862 is smaller than maximum, round dot up to common page boundary.
1864 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1866 * configure.host: Set up for generic hosts first, then tweak as
1867 necessary in more specific targets.
1868 (HOSTING_LIBS): Include libgcc_eh.a if found.
1870 2002-03-23 Andreas Jaeger <aj@suse.de>
1872 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1874 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1876 * Makefile.am: Run "make dep-am".
1877 * Makefile.in: Regenerate.
1879 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1881 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1883 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1885 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1886 add the symbol to the linker hash table immediately.
1887 (lang_place_undefineds): Split symbol creation out..
1888 (insert_undefined): ..to here.
1890 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1892 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1893 the contents of the buffer returned from basename function will are
1894 getting overwritten while still being used.
1896 2002-03-18 Jan Hubicka <jh@suse.cz>
1897 Andreas Jaeger <aj@suse.de>
1898 Andreas Schwab <schwab@suse.de>
1900 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1901 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1902 set libraries to default to lib64 paths.
1904 2002-03-18 Tom Rix <trix@redhat.com>
1906 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1907 * configure.tgt : Same.
1908 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1909 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1910 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1911 emulation parameters for better -b32, -b64 support.
1912 * emulparms/aixrs6.sh : Same.
1913 * emulparms/ppcmacos.sh : Same.
1914 * emultempl/aix.em (choose_target) : Use new emulation parameters
1915 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1916 * Makefile.in : Regenerate.
1918 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1920 * po/fr.po: Updated version.
1922 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1924 * ldmain.c (main): Move .text readonly flag fudges from here..
1925 * ldlang.c (lang_process): ..to here.
1927 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1929 * ldlang.c (lang_check): Remove the word size check added in last
1930 change. Treat emitrelocations case as for relocatable links.
1932 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1934 * po/fr.po: Updated version.
1936 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1938 * ldlang.c (lang_check): Do relocatable link checks first, so that
1939 warn_mismatch can't override. Check compatible and word size too.
1941 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1943 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1945 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1947 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1950 2002-03-04 H.J. Lu <hjl@gnu.org>
1952 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1953 .fini_array in the data segment.
1955 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1957 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1959 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1961 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1962 .init_array, and .fini_array.
1964 2002-02-20 Andreas Schwab <schwab@suse.de>
1966 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1967 .IA64_unwind* in a relocatable link.
1969 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1971 * NEWS: Mark 2.12 branch.
1973 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1975 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1976 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1978 2002-02-18 Tom Rix <trix@redhat.com>
1980 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1981 (gld*_before_allocation): Same.
1982 (gld*_create_output_section_statements): Generate
1983 __rtinit if run time linking. Add librtl.a to the link.
1984 (gld*_read_file): Clean.
1986 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1988 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1990 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1992 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1993 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1994 and eelf64alpha_fbsd.
1995 * Makefile.in: Regenerate.
1996 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1997 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1998 use a FreeBSD-specific emulation rather than the psABI one.
1999 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2000 for all FreeBSD ELF systems.
2001 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2003 * emulparams/elf32ppc_fbsd.sh: Likewise.
2004 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2005 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2006 * emulparams/elf64alpha_fbsd.sh: Likewise.
2007 * emulparams/elf_i386_fbsd.sh: Likewise.
2008 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2010 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2012 * po/tr.po: Updated version.
2014 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2016 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2019 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2021 * emultempl/mmo.em (mmo_after_open): Don't call
2022 _bfd_mmix_check_all_relocs when producing ELF output.
2024 2002-02-15 Richard Henderson <rth@redhat.com>
2026 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2027 definition. Emit a unop+nop pair.
2029 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2031 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2032 for presence of .MMIX.reg_contents.linker_allocated before early
2035 * NEWS: Mention support for MMIX.
2037 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2039 Support arbitrary length fill patterns.
2040 * ld.texinfo (Output Section Fill): Describe fill expressions.
2041 (FILL): Refer to the above.
2042 * ldexp.h (etree_value_type): Add "str" field.
2043 (union etree_union): Add "str" to "value" struct.
2044 (exp_bigintop): Declare.
2045 (exp_get_fill): Declare.
2046 * ldexp.c: Include "safe-ctype.h".
2047 (exp_intop): Set value.str to NULL.
2048 (exp_bigintop): New function.
2049 (new_rel): Pass in "str", and set new.str from it.
2050 (new_rel_from_section): Set new.str to NULL.
2051 (fold_name): Adjust calls to new_rel.
2052 (exp_fold_tree): Likewise.
2053 (exp_get_fill): New function.
2054 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2055 (INT): Returns a "bigint". Adjust all code handling INTs.
2056 (fill_opt): Returns a "fill".
2057 (fill_exp): Split out of fill_opt, use for FILL.
2058 * ldlang.h (struct _fill_type): New.
2059 (fill_type): Move typedef to ldexp.h.
2060 (lang_output_section_statement_type): "fill" is now a pointer.
2061 (lang_fill_statement_type): Likewise.
2062 (lang_padding_statement_type): Likewise.
2063 (lang_add_fill): Now takes a "fill_type *" param.
2064 (lang_leave_output_section_statement): Likewise.
2065 (lang_do_assignments): Likewise.
2066 (lang_size_sections): Likewise.
2067 (lang_leave_overlay_section): Likewise.
2068 (lang_leave_overlay): Likewise.
2069 * ldlang.c: Include ldgram.h after ldexp.h.
2070 (lang_output_section_statement_lookup): Adjust for fill_type change.
2071 (print_fill_statement): Likewise.
2072 (print_padding_statement): Likewise.
2073 (insert_pad): Now takes a "fill_type *" arg.
2074 (size_input_section): Likewise.
2075 (lang_size_sections_1): Likewise.
2076 (lang_size_sections): Likewise.
2077 (lang_do_assignments): Likewise.
2078 (lang_add_fill): Likewise.
2079 (lang_leave_output_section_statement): Likewise.
2080 (lang_leave_overlay_section): Likewise.
2081 (lang_leave_overlay): Likewise.
2082 Adjust all callers of the above function.
2083 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2084 starting with "0X" as well as "0x". Return bigint.str for hex
2085 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2086 Always use base 16 for numbers starting with "$".
2087 * ldmain.c: Include ldgram.h after ldexp.h.
2088 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2089 of bfd_fill_link_order.
2090 * pe-dll.c: Adjust lang_do_assignments calls.
2091 * emultempl/elf32.em: Likewise.
2092 * emultempl/hppaelf.em: Likewise.
2093 * emultempl/ppc64elf.em: Likewise.
2094 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2095 lang_add_assignment call.
2096 * emultempl/pe.em: Likewise.
2098 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2100 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2101 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2102 the pattern in question is not a regexp.
2103 * ldlang.c: Likewise.
2104 * ldlang.h: Likewise.
2105 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2107 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2109 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2110 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2111 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2112 * ldexp.c (exp_data_seg): New variable.
2113 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2114 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2115 (exp_fold_tree): Handle DATA_SEGMENT_END.
2116 Pass allocation_done when recursing instead of hardcoding
2117 lang_allocating_phase_enum.
2118 * ldexp.h (exp_data_seg): New.
2119 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2120 (lang_size_sections): New.
2121 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2122 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2123 if COMMONPAGESIZE is defined.
2124 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2125 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2126 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2127 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2128 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2131 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2133 * Makefile.in: Regenerate.
2135 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2137 * lexsup.c: Remove strtoul declaration.
2139 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2141 * ldmain.c: Add prototype for main ().
2142 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2143 * emultempl/lnk960.em (lnk960_choose_target): Function should
2146 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2148 * ldlang.c (entry_section): New initialised variable.
2149 (lang_finish): Use it.
2150 * ldlang.h (entry_section): Declare.
2151 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2152 entry_section to ".opd".
2154 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2156 * ld.texinfo (Options): Add back in -nostdlib documentation,
2157 which had been inadvertently removed.
2159 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2161 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2162 register section vma to a sane value after emitting error. Make
2163 fatal conditions cause program exit when emitting message.
2165 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2167 * configure.tgt: Add or32-*-rtems target.
2169 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2171 Contribute sh64-elf.
2172 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2173 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2174 in OTHER_RELOCATABLE_SECTIONS.
2175 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2176 * emulparams/shelf32.sh (STACK_ADDR): Define.
2177 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2178 (OTHER_SECTIONS): this. Removed stack settings.
2179 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2180 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2181 2001-03-12 DJ Delorie <dj@redhat.com>
2182 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2183 relaxing if any shmedia or mixed sections are found.
2184 2001-03-07 DJ Delorie <dj@redhat.com>
2185 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2186 einfo. Gracefully decline to output to non-elf formats.
2187 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2188 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2189 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2190 * emulparams/shelf32.sh: Ditto.
2191 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2192 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2194 2001-01-10 Ben Elliston <bje@redhat.com>
2195 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2196 non-portable shell constructs. From Hans-Peter Nilsson.
2197 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2198 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2199 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2200 dependencies to the shell script include chain.
2201 * Makefile.in: Regenerate.
2202 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2203 * emultempl/sh64elf.em: Update and tweak comments.
2204 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2205 make a .cranges section SEC_IN_MEMORY.
2206 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2207 * emultempl/sh64elf.em
2208 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2209 .cranges section found to be necessary; continue and set stored
2210 section contents flags for sections with non-mixed contents.
2211 Use a struct sh64_section_data container and sh64_elf_section_data
2212 to store contents-type flags.
2213 Remove unused update of "isec".
2214 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2215 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2216 access contents-type flags. Assert that the associated container
2217 is initialized. Use that container, not elf_gp_size, to hold size
2218 of linker-generated cranges contents.
2219 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2220 * emultempl/sh64elf.em
2221 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2222 there's already a .cranges section. When section flag difference
2223 is found, don't NULL-check cranges a second time. Tweak comments.
2224 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2225 merging, not max size, as size of ld-generated .cranges contents.
2226 Don't set ELF section flags in output section. When checking for
2227 needed .cranges descriptors, don't use a variable; compare
2228 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2230 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2231 * emultempl/sh64elf.em: New file.
2232 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2233 * Makefile.in: Regenerate.
2234 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2235 (OTHER_RELOCATING_SECTIONS): Ditto.
2236 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2237 * emulparams/shlelf32.sh: Stub out all settings except
2238 OUTPUT_FORMAT. Source shelf32.sh.
2239 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2240 OTHER_RELOCATING_SECTIONS.
2241 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2242 * emulparams/shlelf64.sh: Stub out all settings except
2243 OUTPUT_FORMAT. Source shelf64.sh.
2244 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2245 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2247 (DATA_START_SYMBOLS): Define, provide ___data.
2248 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2249 for consecutive .data section.
2250 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2251 section after .data section.
2252 * emulparams/shlelf64.sh: Ditto.
2253 * emulparams/shelf32.sh: Ditto.
2254 (ALIGNMENT): Define to 8.
2255 * emulparams/shelf32.sh: Ditto.
2256 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2257 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2258 built-in linker scripts.
2259 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2260 * emulparams/shlelf64.sh: New.
2261 * emulparams/shelf64.sh: New.
2262 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2264 * Makefile.am: Add support for shlelf64 and shelf64.
2265 * Makefile.in: Regenerate.
2266 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2267 * configure.tgt (sh64-*-elf*): Add shelf as default.
2268 Add shlelf to targ_extra_emuls.
2269 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2270 * emulparams/shelf32.sh: New file.
2271 * emulparams/shlelf32.sh: New file.
2272 * Makefile.am: Add support for shlelf32 and shelf32.
2273 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2274 * Makefile.in: Regenerate.
2276 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2278 * ldlang.c (lang_reset_memory_regions): Rename from
2279 reset_memory_regions. Change all callers. Make public.
2280 * ldlang.h (lang_reset_memory_regions): Prototype.
2281 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2282 lang_reset_memory_regions before lang_size_sections.
2283 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2284 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2286 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2288 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2289 arithmetic when checking for too many global registers.
2291 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2293 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2294 (ehppanbsd.c): New rule.
2295 * Makefile.in: Regenerate.
2296 * configure.tgt (hppa*-*-netbsd*): New target.
2297 * emulparams/hppalinux.sh: Add comment to check other files
2298 that source this file it is modified, and list which
2300 * emulparams/hppanbsd.sh: New file.
2302 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2304 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2307 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2309 Support on-demand global register allocation from
2310 R_MMIX_BASE_PLUS_OFFSET relocs.
2311 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2312 mmix_set_reg_section_vma. Call
2313 _bfd_mmix_finalize_linker_allocated_gregs.
2314 (mmix_before_allocation): New function.
2315 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2316 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2317 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2318 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2319 before .MMIX.reg_contents.
2320 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2321 (mmo_after_open): New function.
2322 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2323 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2324 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2326 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2328 * emulparams/or32.sh: New file.
2329 * emulparams/or32elf.sh: New file.
2330 * scripttempl/or32.sc: New file.
2331 * configure.tgt : Add support for or32.
2332 * configure: Regenerate
2333 * Makefile.am: Add support for or32.
2334 * Makefile.in: Regenerate.
2335 * NEWS: Mention support for or32.
2336 * po/ld.pot: Regenerate.
2338 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2339 Mitch Lichtenberg <mpl@broadcom.com>
2341 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2342 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2343 reloc creation (ld --embedded-relocs).
2345 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2347 * configure: Regenerated.
2349 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2351 * Makefile.am (install): Depend on install-info.
2352 * Makefile.in: Regenerate.
2354 2002-01-26 Christian Rose <menthos@menthos.com>
2356 * ldmain.c (main): Use full sentences to ease translation.
2358 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2360 * po/fr.po: Updated version.
2362 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2364 * po/es.po: Updated version.
2366 2002-01-25 Andreas Jaeger <aj@suse.de>
2368 * ldlex.l (yy_input): Correct error check.
2370 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2372 * ldmisc.c (demangle): Put back dots when string not demangled.
2374 2002-01-22 Richard Henderson <rth@redhat.com>
2376 * emulparams/elf64alpha.sh (NOP): Use unop.
2378 2002-01-21 Andreas Jaeger <aj@suse.de>
2380 * ldlex.l: Use fread instead of read.
2382 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2384 * configure.tgt (ia64-*-netbsd*): New target.
2386 2002-01-21 H.J. Lu <hjl@gnu.org>
2388 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2390 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2392 2002-01-18 Andreas Jaeger <aj@suse.de>
2394 * ldver.c (ldversion): Update year.
2396 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2398 * po/ld.pot: Regenerate.
2400 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2402 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2403 * Makefile.in: Regenerate.
2404 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2405 * emultempl/ppc64elf.em: New file.
2407 2002-01-15 DJ Delorie <dj@redhat.com>
2409 * scripttempl/pe.sc: Add support for constructor priorities.
2411 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2413 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2414 * emulparams/avr23xx.sh: Likewise.
2415 * emulparams/avr4433.sh: Likewise.
2416 * emulparams/avr44x4.sh: Likewise.
2417 * emulparams/avr85xx.sh: Likewise.
2418 * emulparams/avrmega103.sh: Likewise.
2419 * emulparams/avrmega161.sh: Likewise.
2420 * emulparams/avrmega603.sh: Likewise.
2421 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2423 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2425 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2426 archive is excluded.
2428 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2430 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2431 (eshelf_nbsd.c): New rule.
2432 (eshlelf_nbsd.c): New rule.
2433 * Makefile.in: Regenerate.
2434 * configure.tgt (sh*le-*-netbsdelf*): New target.
2435 (sh*-*-netbsdelf*): New target.
2436 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2437 * ld/emulparams/shelf_nbsd.sh: New emulation.
2438 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2440 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2442 * po/es.po: New file: Spanish translation.
2443 * configure.in (ALL_LINGUAS): Add es.
2444 * configure: Regenerate.
2446 2002-01-06 John Marshall <jmarshall@acm.org>
2448 * ld.texinfo: Note that --emit-relocs is currently only
2449 implemented for ELF.
2451 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2453 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2454 of bfd_section_list_remove and bfd_section_list_insert macros.
2455 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2456 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2458 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2460 * configure.tgt (x86_64-*-netbsd*): New target.
2462 2001-12-21 Tom Rix <trix@redhat.com>
2464 (gld*_create_output_section_statements): New function.
2465 For -binitfini support.
2466 * emultempl/aix.em (gld*_before_parse): Fix comment.
2467 * emultempl/aix.em (gld*_parse_args): Fix comment.
2469 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2471 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2473 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2475 * configure.tgt (arm-*-netbsdelf*): Add target.
2476 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2477 * emulparams/armelf_nbsd.sh: Added.
2478 * Makefile.am: Add rules for earmelf_nbsd.
2479 * Makefile.in: Regenerate.
2481 2001-12-19 Andreas Jaeger <aj@suse.de>,
2482 Susanne Oberhauser <froh@suse.de>
2484 * configure.host: Add rules for x86_64-*linux-gnu. Change
2485 s390x-linux entry to use gcc to report configuration, replace gcc
2486 with $CC in s390-linux
2488 2001-12-19 Andreas Jaeger <aj@suse.de>
2490 * ld.texinfo (VERSION): Fix markup.
2492 2001-12-18 matthew green <mrg@eterna.com.au>
2494 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2495 (m68kelfnbsd.c): New rule.
2496 * Makefile.in: Regenerate.
2497 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2498 (m68*-*-netbsd*4k*): .. this.
2499 (m68*-*-netbsdelf*): New target.
2500 (m68*-*-netbsd*): Also include ELF support.
2501 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2502 * emulparams/m68kelfnbsd.sh: New emulation.
2504 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2506 * ldgram.y (vers_node): Support anonymous version tags.
2507 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2508 tag is not defined together with non-anonymous versions.
2509 * ld.texinfo: Document it.
2511 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2513 * po/tr.po: New file: Turkish translation.
2514 * configure.in (ALL_LINGUAS): Add tr.
2515 * configure: Regenerate.
2517 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2519 * Makefile.am: Add rules for eelf64alpha_nbsd.
2520 * Makefile.in: Regenerate.
2521 * configure.tgt (alpha*-*-netbsd*): Set
2522 targ_emul to elf64alpha_nbsd.
2523 * emulparams/elf64alpha_nbsd.sh: Added.
2525 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2527 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2528 section_tail when fiddling with section list.
2529 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2530 broken into separate strings to make translation easier.
2531 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2532 fiddling with section list.
2533 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2535 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2537 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2539 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2541 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2543 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2545 * emultempl/elf32.em (finish): Supply output_bfd
2546 to bfd_elf*_discard_info.
2547 (OPTION_EH_FRAME_HDR): Define.
2548 (longopts): Add --eh-frame-hdr.
2549 (parse_args): Handle it.
2550 (list_options): Add --eh-frame-hdr to help.
2551 * emultempl/hppaelf.em (finish): Supply output_bfd
2552 to bfd_elf*_discard_info.
2553 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2555 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2557 * lexsup.c (parse_args): Don't pass shortopts to second call to
2558 getopt functions. Restore optind rather than decrementing before
2559 second call. Remove errind as it now duplicates last_optind.
2561 2001-12-11 Christopher Faylor <cgf@redhat.com>
2563 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2565 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2566 Richard Henderson <rth@redhat.com>
2568 * Makefile.am: Add support for xstormy16.
2569 * configure.tgt: Add support for xstormy16.
2570 * Makefile.in: Regenerate.
2571 * emulparams/elf32xstormy16.sh: New file.
2572 * scripttempl/xstormy16.sc: New file.
2574 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2576 * Makefile.in (LIB_PATH): Make configurable.
2577 (GENSCRIPTS): Set LIB_PATH in environment.
2578 * configure.in: Substitute LIB_PATH.
2579 * configure: Regenerate.
2580 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2581 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2583 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2585 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2586 describing the -N option so that it is easier to translate into
2589 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2591 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2592 statements describing a single option with a single, newline
2593 escaped fprintf. This allows better translation into other
2596 * ldmain.c (add_archive_element): Combine multiple strings
2597 into a single string to permit better translation into other
2600 2001-12-05 Tom Rix <trix@redhat.com>
2602 * Makefile.am: Remove eaixppc64.
2603 * Makefile.in: Regenerate.
2605 2001-12-04 Tom Rix <trix@redhat.com>
2607 * emultempl/aix.em (choose_target): Change default target to
2608 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2610 (gld*_read_file): Fix typo.
2611 (change_symbol_mode): Add prototype.
2614 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2615 * emulparams/aixrs6.sh : Same.
2616 * emulparams/ppcmacos.sh : Same.
2617 * emulparams/aixppc64.sh : Delete file.
2618 * emultempl/aix.em : Formatting changes.
2620 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2622 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2623 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2625 (OTHER_END_SYMBOLS): Fix formatting.
2626 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2627 (OTHER_END_SYMBOLS): Fix formatting.
2629 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2631 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2633 2001-12-02 Tom Rix <trix@redhat.com>
2635 * configure.tgt : Remove eaixppc64 emulations.
2636 * Makefile.in : Remove eaixppc64.c
2637 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2638 (ldemul_default_target): Same.
2639 * emultempl/gld960.em (gld960_choose_target): Same.
2640 * emultempl/gld960c.em (gld960_choose_target): Same.
2641 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2642 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2643 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2644 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2645 * emultempl/aix.em (choose_target): New function. Handle emulation of
2648 2001-11-27 H.J. Lu <hjl@gnu.org>
2650 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2651 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2652 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2653 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2654 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2655 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2656 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2657 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2659 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2662 (REL_SDATA): Likewise.
2663 (REL_SBSS): Likewise.
2664 (REL_SDATA2): Likewise.
2665 (REL_SBSS2): Likewise.
2666 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2669 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2671 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2673 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2675 2001-11-22 H.J. Lu <hjl@gnu.org>
2677 * Makefile.in: Regenerated with automake based on automake
2678 1.4-8 in RedHat 7.1.
2680 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2682 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2683 (config.status): Delete rule.
2684 Add extra dependencies to cover sourced emulparams files.
2685 * Makefile.in: Regenerate.
2687 * scripttempl/elf.sc: Order <section>, <section>.* and
2688 corresponding linkonce sections as seen in input files.
2689 Formatting fixes. Zero vma of all sections if not relocating.
2690 (STACK): Define and insert if STACK_ADDR defined.
2691 (OTHER_RELOCATING_SECTIONS): Delete.
2692 (OTHER_END_SYMBOLS): Define.
2693 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2694 (OTHER_READWRITE_SECTIONS): Likewise.
2695 (OTHER_GOT_SECTIONS): Likewise.
2696 (OTHER_SDATA_SECTIONS): Likewise.
2697 (OTHER_BSS_SECTIONS): Likewise.
2698 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2699 (OTHER_READWRITE_SECTIONS): Likewise.
2700 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2701 (OTHER_READWRITE_SECTIONS): Likewise
2703 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2704 (STACK_ADDR): Define.
2705 * emulparams/armelf_oabi.sh: As for armelf.sh.
2706 * emulparams/elf32mcore.sh: As for armelf.sh.
2707 * emulparams/h8300elf.sh: As for armelf.sh.
2708 * emulparams/mn10200.sh: As for armelf.sh.
2709 * emulparams/shelf.sh: As for armelf.sh.
2711 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2712 (OTHER_END_SYMBOLS): Define.
2713 * emulparams/m32relf.sh: As for elf32fr30.sh.
2714 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2715 * emulparams/h8300self.sh: As for elf32fr30.sh.
2717 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2718 defines with RELOCATING test.
2719 (OTHER_SDATA_SECTIONS): Likewise.
2720 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2721 (OTHER_END_SYMBOLS): ..this.
2722 * emulparams/crislinux.sh: As for criself.sh.
2724 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2726 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2727 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2728 normal and linkonce sections as seen in input files.
2729 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2730 (TEXT_DYNAMIC): Likewise.
2731 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2732 (OTHER_SDATA_SECTIONS): Likewise.
2733 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2734 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2735 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2736 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2737 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2738 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2739 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2740 sections as seen in input files.
2741 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2742 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2744 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2745 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2746 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2747 (OTHER_SECTIONS): Instead, use this..
2748 (OTHER_END_SYMBOLS): ..and this.
2750 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2751 * emulparams/elf32bsmip.sh: Likewise.
2752 * emulparams/elf32btsmip.sh: Likewise.
2753 * emulparams/elf32ebmip.sh: Likewise.
2754 * emulparams/elf32lmip.sh: Likewise.
2755 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2756 * emulparams/elf32lsmip.sh: Likewise.
2757 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2758 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2759 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2760 * emulparams/elf64btsmip.sh: Likewise.
2761 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2762 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2763 * emulparams/elf32ppclinux.sh: Likewise.
2764 * emulparams/elf32ppcsim.sh: Likewise.
2765 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2766 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2767 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2768 * emulparams/h8300self.sh: Likewise.
2769 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2770 * emulparams/sh.sh: Comment.
2771 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2772 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2773 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2775 2001-11-21 David Heine <dlheine@tensilica.com>
2776 Alan Modra <amodra@bigpond.net.au>
2778 * ldlang.c (map_input_to_output_sections): Replace "break"
2779 accidentally removed with 2001-08-03 change.
2780 (lang_gc_sections_1): Likewise.
2782 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2784 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2786 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2788 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2789 of false when calling lang_size_sections.
2790 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2792 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2794 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2795 function when LDEMUL_FINISH isn't set to the same name. Don't
2796 call ${LDEMUL_FINISH}.
2797 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2798 * emultempl/armelf.em (arm_elf_finish): Call
2799 gld${EMULATION_NAME}_finish.
2800 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2801 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2802 hppaelf_layout_sections_again if necessary.
2803 (need_laying_out): New var.
2804 (hppaelf_layaout_sections_again): Rename to
2805 hppaelf_layout_sections_again. Clear need_laying_out.
2806 (PARSE_AND_LIST_OPTIONS): Format text.
2808 2001-11-14 H.J. Lu <hjl@gnu.org>
2810 * emultempl/armelf.em (arm_elf_finish): Renamed from
2811 gld${EMULATION_NAME}_finish.
2812 (LDEMUL_FINISH): Set to arm_elf_finish.
2814 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2816 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2817 (struct ld_emulation_xfer_struct): Use it.
2819 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2821 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2822 additional symbols referenced by newer crt0.o files from HP.
2824 2001-11-12 Anthony Green <green@redhat.com>
2826 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2828 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2830 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2831 * Makefile.in: Regenerate.
2833 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2835 * ld.texinfo: Use @command for commands, @option for options.
2836 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2838 * Makefile.in: Rebuild.
2840 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2842 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2843 Add support for targets.
2845 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2847 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2848 * configure: Regernate.
2849 * po/fr.po: New file.
2850 * po/sv.po: New file.
2852 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2854 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2855 as little endian default and to support big endian.
2857 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2859 * ld.texinfo (Options): Document new option, -nostdlib.
2860 * lexsup.c (OPTION_NOSTDLIB): New definition.
2861 (ld_options): Add entry for "nostdlib".
2862 (parse_args): Handle OPTIONS_NOSTDLIB.
2863 * ldfile.c (ldfile_add_library_path): Don't add directories
2864 to the search path if they weren't specified on the command line
2865 and -nostdlib was specified.
2866 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2868 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2870 * lexsup.c (parse_args): Prevent infinite parsing loop when
2871 "-rpath.a" is specified on the command line.
2872 Replace calls to fprintf with calls to einfo.
2874 2001-10-31 John Marshall <jmarshall@acm.org>
2876 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2877 appear only once across all the linker scripts involved in a link
2878 invocation no longer applies. Make the documentation reflect
2881 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2883 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2885 (sh-*-linux*): Added targ_extra_libpath.
2887 2001-10-31 David Heine <dlheine@tensilica.com>
2889 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2890 for padding statements.
2892 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2894 * configure.tgt (mmix-*-*): New target.
2895 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2896 Add dependencies to match.
2897 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2898 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2899 scripttempl/mmo.sc: New files.
2900 * gen-doc.texi: @set MMIX.
2901 * ld.texinfo: Ditto.
2902 [MMIX] Add MMIX node.
2903 * Makefile.in: Regenerate.
2905 2001-10-29 Kazu Hirata <kazu@hxi.com>
2907 * ldlang.c: Fix a comment typo.
2909 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2911 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2912 entries, and match *-*-linux*.
2914 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2916 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2917 with ldlex_script, ldlex_popstate.
2918 (ifile_p1): Likewise.
2919 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2921 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2922 to 1. Don't BEGIN(SCRIPT).
2923 (lex_redirect): Similarly.
2924 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2926 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2928 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2929 __EH_FRAME_END__ and accept eh frames into data section.
2930 Add ctor and dtor sections.
2932 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2934 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2935 (auto-export): Fix indentation.
2937 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2939 * pe-dll.c (autofilter_objectlist): Add startup objects
2941 (auto-export): Constify char * p.
2942 Extract file basename and use strcmp rather than ststr
2945 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2947 * ldmain.c (get_emulation): Improve comment about the handling
2950 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2952 * po/POTFILES.in: Regenerate.
2954 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2956 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2957 -z nocopyreloc and -z nocombreloc usage strings.
2959 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2961 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2964 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2966 * scripttempl/armaout.sc: Place .bss section after end of aligned
2967 data section to match behaviour of aout code in constructrion of
2970 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2972 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2973 startup files for mingw32 dlls to list.
2975 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2977 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2979 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2981 * configure.tgt (targ): Add arm9e-*-elf.
2983 2001-10-05 H.J. Lu <hjl@gnu.org>
2985 * genscripts.sh: Fix a typo in the last change.
2987 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2989 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2990 -z nocombreloc in usage.
2992 2001-10-03 Jim Blandy <jimb@redhat.com>
2994 * genscripts.sh: Include a comment at the top of each generated
2995 script, explaining its purpose.
2997 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2999 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3000 * NEWS: Mention -z nocopyreloc.
3001 * ld.texinfo (Options): Describe nocopyreloc.
3003 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3005 * configure: Regenerate.
3007 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3009 * ldver.h (ld_program_version): Remove declaration.
3010 * lexsup.c (parse_args): Move printing of copyright message..
3011 * ldver.c (ldversion): .. to here.
3012 Use BFD_VERSION_STRING in place of BFD_VERSION.
3013 (ld_program_version): Remove.
3014 * Makefile.am (Makefile): Depend on bfd/configure.in.
3016 * Makefile.in: Regenerate.
3018 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3020 * Makefile.am: Update dependencies with "make dep-am".
3021 * Makefile.in: Regenerate.
3023 2001-09-29 John Reiser <jreiser@BitWagon.com>
3025 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3026 * lexsup.c: Add --no-define-common commandline option.
3027 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3028 * ldlex.l: Likewise.
3029 * ld.h: Add command_line.inhibit_common_definition.
3030 * ldmain.c (main): Initialize.
3031 * ld.texinfo: Document.
3033 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3035 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3037 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3039 * ldmisc.c (USE_STDARG): Remove.
3040 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3045 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3046 declarations. Update copyright.
3048 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3050 * pe-dll.c: Remove obsoleted declaration of
3051 pe_get_data_import_dll_name.
3052 (pe_create_import_fixup): Fix thinko.
3054 * ld.texinfo(enable-auto-import): Clarify the explanation.
3056 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3058 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3059 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3060 DLL_SUPPORT controlled code.
3062 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3064 * emultempl/pe.em(pe_data_import_dll): Make static.
3065 (pe_get_data_import_dll_name): New accessor function.
3066 * pe-dll.c(pe_create_import_fixup): call
3067 pe_get_data_import_dll_name() from pe.em, instead of
3068 directly accessing pe_data_import_dll variable from pe.em.
3070 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3072 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3073 (def_file_add_directive): Use ISSPACE instead of isspace.
3074 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3075 isdigit/isxdigit/isalpha/isalnum.
3076 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3077 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3078 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3079 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3081 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3082 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3084 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3085 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3086 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3087 (ctor_prio): Use ISDIGIT instead of isdigit.
3088 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3089 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3090 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3092 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3093 (stricpy): Use TOLOWER instead of isupper/tolower.
3094 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3095 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3096 (lex_warn_invalid): Use ISPRINT instead of isprint.
3097 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3098 (main): For gettext, also set the LC_CTYPE locate facet.
3099 (add_keepsyms_file): Use ISSPACE instead of isspace.
3100 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3101 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3102 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3103 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3104 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3105 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3106 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3107 (quoteput): Use ISSPACE instead of isspace.
3108 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3111 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3113 * deffilep.y (def_stash_module): Constify "name" param.
3115 * pe-dll.c: Replace CONST with const throughout.
3116 (quick_symbol): Constify "n1", "n2", "n3" params.
3117 (make_singleton_name_thunk): Constify "import" param. Make
3118 "buffer_len" a size_t.
3119 (make_import_fixup_entry): Constify "name", "fixup_name",
3120 "dll_symname" params.
3121 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3122 (pe_get32): Likewise.
3123 (pe_implied_import_dll): Likewise.
3125 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3126 (sort_by_section_name): Likewise.
3128 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3129 (make_import_fixup): Cast printf arg, rel->address to long rather
3131 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3133 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3135 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3136 defines BufferSize. Increase buffer size by one.
3138 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3140 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3142 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3144 * configure.tgt: Add arm-openbsd target.
3146 2001-09-12 H.J. Lu <hjl@gnu.org>
3148 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3150 (ALL_64_EMULATIONS): Here.
3151 * Makefile.in: Regenerated.
3153 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3155 * emultempl/pe.em(make_import_fixup): change signature to
3156 take asection as well as arelec; we need this for proper
3157 error reporting. Only call pe_create_import_fixup() if
3158 there is no attempt to add a constant addend to the reloc;
3159 otherwise, report error condition.
3160 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3161 since final argument is a pointer to make_import_fixup().
3162 Change call to cb() to match make_import_fixup() signature.
3163 (make_import_fixup_mark): make buffer_len unsigned.
3164 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3166 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3168 * ld.texinfo: add verbose documentation for auto-import
3169 direct-addressing workaround, to compliment the terse
3172 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3174 * scripttempl/v850.sc: Add gcc_except_table sections.
3176 2001-09-11 Jeffrey A Law (law@cygnus.com)
3178 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3179 * emulparams/h8300self.sh: Similarly.
3181 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3183 * ld.texinfo (Options, --stack): Correct default value for stack
3186 2001-09-05 Tom Rix <trix@redhat.com>
3188 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3190 2001-09-03 Andreas Jaeger <aj@suse.de>
3192 * emultempl/beos.em: Declare prototypes for comparions functions,
3195 2001-09-02 Andreas Jaeger <aj@suse.de>
3197 * emultempl/aix.em: Add missing prototype.
3198 * emultempl/lnk960.em: Likewise.
3199 * emultempl/vanilla.em: Likewise.
3200 * emultempl/armcoff.em: Likewise.
3201 * emultempl/armelf_oabi.em: Likewise.
3202 * emultempl/beos.em: Likewise.
3203 * emultempl/gld960c.em: Likewise.
3204 * emultempl/gld960.em: Likewise.
3206 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3207 for prototype declaration.
3209 2001-08-31 Eric Christopher <echristo@redhat.com>
3210 Jason Eckhardt <jle@redhat.com>
3212 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3214 2001-08-31 Andreas Jaeger <aj@suse.de>
3216 * emultempl/pe.em: Add missing prototypes.
3217 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3218 pe_find_data_imports.
3219 (pr_sym): Add unused attribute.
3221 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3223 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3224 default from coff to elf.
3226 2001-08-29 Jeff Law <law@redhat.com>
3228 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3230 * emulparams/h8300self.sh: Similarly.
3232 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3234 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3236 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3237 * configure.tgt (h8300-*-elf*): New case.
3238 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3239 * emulparams/h8300self.sh: New file.
3240 * Makefile.in: Regenerated.
3242 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3244 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3247 2001-08-27 Linus Nordberg <linus@swox.com>
3248 Alan Modra <amodra@bigpond.net.au>
3250 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3251 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3253 * Makefile.in: Regenerate.
3254 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3255 entries to correct alphabetical position.
3256 * emulparams/elf64ppc.sh: New.
3257 * emulparams/elf64lppc.sh: New.
3259 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3261 * ldmain.c (main): Declare BSIZE as static.
3263 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3265 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3266 into .rel.dyn resp. .rela.dyn if combreloc.
3267 (get_script): If .x linker script is equal to .xn, only put it
3268 once into the binary.
3269 Add .xc and .xsc scripts.
3270 (parse_args): Handle -z combreloc and -z nocombreloc.
3271 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3272 For .xc and .xsc scripts put all .rel* or .rela* input sections
3273 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3274 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3276 Strip trailing whitespace from script.
3277 Generate .xc and .xsc scripts if requested.
3278 * ldmain.c (main): Initialize link_info.combreloc and
3279 link_info.spare_dynamic_tags.
3280 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3281 (ld_options): Add --spare-dynamic-tags option.
3282 (parse_args): Likewise.
3283 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3284 * ldint.texinfo: Document .xc and .xsc linker scripts.
3285 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3287 2001-08-22 H.J. Lu <hjl@gnu.org>
3289 * emulparams/elf32fr30.sh: Add a newline.
3291 2001-08-21 Andreas Jaeger <aj@suse.de>
3293 * deffilep.y: Add missing prototypes.
3294 * pe-dll.c: Likewise.
3296 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3298 * ldlang.c (insert_pad): Fix typos in last patch.
3300 * ldlang.c: When traversing lang_statement_union_type lists,
3301 consistently use "header.next" rather than "next".
3302 * mpw-eppcmac.c: Likewise.
3303 * emultempl/beos.em: Likewise.
3304 * emultempl/hppaelf.em: Likewise.
3305 * emultempl/pe.em: Likewise.
3306 * ldlang.h (union lang_statement_union): Remove "next" field.
3308 * ldlang.c (insert_pad): Use offsetof macro.
3309 (lang_size_sections): Always neuter padding statements.
3310 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3312 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3313 passed to lang_size_sections.
3314 (pe_exe_fill_sections): Likewise.
3315 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3316 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3318 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3320 * emultempl/aix.em: Formatting fixes.
3322 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3324 * ldlang.c (insert_pad): Make use of an existing pad statement if
3325 available. Move code calculating alignment, adjusting section
3326 alignment power, and adjusting dot to ..
3327 (size_input_section): .. here. Remove unused relax param.
3328 (lang_size_sections): Change boolean `relax' param to boolean *.
3329 Adjust call to size_input_section. Make use of insert_pad to
3330 place pad after the assignment statement. If relaxing, zap
3332 (reset_memory_regions): Reset output_bfd section sizes too.
3333 (relax_again): Move to..
3334 (lang_process): ..here. Adjust call to lang_size_sections, and
3335 remove duplicated code.
3336 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3338 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3340 * ld.texinfo: Document that fill values now use the four least
3342 * emulparams/elf32fr30.sh (NOP): Update.
3343 * emulparams/elf32mcore.sh: Likewise.
3344 * emulparams/elf64_s390.sh: Likewise.
3345 * emulparams/elf_i386.sh: Likewise.
3346 * emulparams/elf_i386_be.sh: Likewise.
3347 * emulparams/elf_i386_chaos.sh: Likewise.
3348 * emulparams/elf_i386_ldso.sh: Likewise.
3349 * emulparams/elf_s390.sh: Likewise.
3350 * emulparams/elf_x86_64.sh: Likewise.
3351 * emulparams/i386moss.sh: Likewise.
3352 * emulparams/i386nw.sh: Likewise.
3353 * emulparams/m68kelf.sh: Likewise.
3354 * scripttempl/elf.sc: Update NOP comment.
3355 * scripttempl/elfi370.sc: Likewise.
3356 * scripttempl/elfm68hc11.sc: Likewise.
3357 * scripttempl/elfm68hc12.sc: Likewise.
3358 * scripttempl/nw.sc: Likewise.
3360 2001-08-15 Tom Rix <trix@redhat.com>
3362 * ldgram.y (saved_script_handle): Initialize to NULL.
3363 * ldmain.c (main): Change check on saved_script_handle.
3365 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3367 * emultempl/elf32.em: Formatting fixes.
3368 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3369 looking at sec->owner.
3370 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3371 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3372 unused code, and reorganize orphan section placement code.
3374 * ldlang.c (wild_doit): Rename to lang_add_section.
3375 * ldlang.h: Here too.
3376 * mpw-elfmips.c: And here.
3377 * emultempl/beos.em: And here.
3378 * emultempl/elf32.em: And here.
3379 * emultempl/hppaelf.em: And here.
3380 * emultempl/pe.em: And here.
3382 2001-08-13 Richard Henderson <rth@redhat.com>
3384 * emultempl/needrelax.em: New file.
3385 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3386 * Makefile.am (eelf64_ia64.c): Depend on it.
3387 * Makefile.in: Rebuild.
3389 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3391 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3392 output_section is set non-NULL.
3394 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3395 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3396 needlessly create an output_section_statement. Treat a correctly
3397 named output_section_statement with NULL bfd_section as compatible.
3399 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3401 * emultempl/generic.em: Support EXTRA_EM_FILE.
3402 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3403 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3404 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3405 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3406 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3407 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3408 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3409 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3410 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3411 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3413 2001-08-12 Richard Henderson <rth@redhat.com>
3415 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3416 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3417 scripttempl/v850.sc: Keep .jcr data.
3419 2001-08-12 H.J. Lu <hjl@gnu.org>
3420 Andrew Haley <aph@cambridge.redhat.com>
3421 Nick Clifton <nickc@redhat.com>
3423 * ldgram.y (had_script): Change name to saved_script_handle.
3424 Change type to file handle.
3425 * ld.h (had_script): Rename and retype.
3426 * ldfile.c (ldfile_open_command_file): Save the file handle
3427 used in saved_script_handle.
3428 * lexsup.c (parse_args): Do not allow -c option to alter
3429 saved_script_handle.
3430 * ldmain.c (main): Print out the linker script used if
3431 --verbose is given. Check saved_script_handle to obtain the
3432 external linker script used, or if NULL, dump the builtin
3434 * ld.texinfo: Document that --verbose now dumps the linker
3435 script used, regardless of whether it was an internal or an
3438 2001-08-10 Andreas Jaeger <aj@suse.de>
3440 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3442 * configure: Regenerate.
3444 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3446 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3448 * scripttempl/elf.sc: Move non-text .dynamic section before
3449 .plt/.got/.sdata* group.
3450 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3451 (OTHER_SDATA_SECTIONS): Add.
3452 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3454 * emulparams/crislinux.sh: Likewise.
3455 * emulparams/elf32b4300.sh: Likewise.
3456 * emulparams/elf32bmip.sh: Likewise.
3457 * emulparams/elf32bmipn32.sh: Likewise.
3458 * emulparams/elf32bsmip.sh: Likewise.
3459 * emulparams/elf32btsmip.sh: Likewise.
3460 * emulparams/elf32ebmip.sh: Likewise.
3461 * emulparams/elf32elmip.sh: Likewise.
3462 * emulparams/elf32l4300.sh: Likewise.
3463 * emulparams/elf32lmip.sh: Likewise.
3464 * emulparams/elf32lsmip.sh: Likewise.
3465 * emulparams/elf32ltsmip.sh: Likewise.
3466 * emulparams/elf64bmip.sh: Likewise.
3467 * emulparams/elf64btsmip.sh: Likewise.
3468 * emulparams/elf64ltsmip.sh: Likewise.
3470 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3472 * genscripts.sh: Source the emulparams script before each output
3473 script is generated so that variables like `RELOCATING' may affect
3474 variables defined in the emulparams script.
3476 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3478 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3481 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3482 ie. iterate over wild_statement.section_list.
3483 (gld${EMULATION_NAME}_place_orphan): Likewise.
3485 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3487 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3488 .fini[0-4] sections used by _exit
3489 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3490 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3491 * scripttempl/elfm68hc11.sc: Likewise.
3493 2001-08-03 H.J. Lu <hjl@gnu.org>
3495 * emultempl/beos.em (init): Add the missing initialization.
3497 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3499 * ld.texinfo (Input Section Basics): Clarify ordering of output
3501 * ldlang.c (callback_t): Add wildcard_list param.
3502 (walk_wild_section): Remove "section" param. Rewrite for
3503 lang_wild_statement_type change. Remove unique_section_p test.
3504 (walk_wild_file): Remove "section" param.
3505 (walk_wild): Remove "section" and "file" params.
3506 (lang_gc_wild): Likewise.
3507 (wild): Likewise. Modify for lang_wild_statement_type change.
3508 (wild_sort): Likewise. Add "sec" param.
3509 (gc_section_callback): Likewise.
3510 (output_section_callback): Likewise. Do unique_section_p test.
3511 (map_input_to_output_sections): Modify call to wild.
3512 (lang_gc_sections_1): Likewise.
3513 (print_wild_statement): Modify for lang_wild_statement_type
3515 (lang_add_wild): Replace filename, filenames_sorted param with
3516 filespec. Replace section_name, sections_sorted,
3517 exclude_filename_list with section_list.
3518 * ldlang.h (lang_add_wild): Here too.
3519 (lang_wild_statement_type): Replace section_name, sections_sorted,
3520 and exclude_filename_list with section_list.
3521 * ldgram.y (current_file): Delete.
3522 (%union): Add wildcard_list.
3523 (file_NAME_list): Set type to wildcard_list. Build a linked list
3524 rather than calling lang_add_wild for each entry.
3525 (input_section_spec_no_keep): Call lang_add_wild here instead.
3526 * ld.h (struct wildcard_list): Declare.
3527 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3529 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3531 * ldmain.c (main): initialize link_info.pei386_auto_import
3532 * pe-dll.c: new tables for auto-export filtering
3533 (auto_export): change API, pass abfd for contextual filtering.
3534 Loop thru tables of excluded symbols instead of comparing
3537 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3539 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3540 static variable current_sec (static struct sec *). Add
3541 forward declaration for add_bfd_to_link.
3542 (process_def_file): Don't export undefined symbols. Do not
3543 export symbols starting with "_imp__". Call auto_export()
3545 (pe_walk_relocs_of_symbol): New function.
3546 (generate_reloc): add optional extra debugging
3547 (pe_dll_generate_def_file): eliminate extraneous initial blank
3549 (make_one): enlarge symtab to make room for __nm__ symbols
3550 (DATA auto-import support).
3551 (make_singleton_name_thunk): New function.
3552 (make_import_fixup_mark): New function.
3553 (make_import_fixup_entry): New function.
3554 (pe_create_import_fixup): New function.
3555 (add_bfd_to_link): Specify that 'name' argument is a CONST
3557 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3558 declare new functions pe_walk_relocs_of_symbol and
3559 pe_create_import_fixup.
3560 * emultempl/pe.em: add new options --enable-auto-import,
3561 --disable-auto-import, and --enable-extra-pe-debug.
3562 (make_import_fixup): New function.
3563 (pe_find_data_imports): New function.
3564 (pr_sym): New function.
3565 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3566 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3569 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3571 * ld.texinfo: add additional documentation for
3572 --export-all-symbols. Document --out-implib,
3573 --enable-auto-image-base, --disable-auto-image-base,
3574 --dll-search-prefix, --enable-auto-import, and
3575 --disable-auto-import.
3576 * ldint.texinfo: Add detailed documentation on auto-import
3579 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3581 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3584 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3586 * Makefile.am: Update dependencies with "make dep-am".
3587 * Makefile.in: Regenerate
3589 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3591 * ldcref.c (check_section_sym_xref): New function.
3592 (check_nocrossrefs): Call it.
3593 (check_nocrossref): Interate over h->refs here instead of..
3594 (check_refs): ..here. Pass in the symbol name, section, and bfd
3595 rather than hash_entry pointers.
3596 (struct check_refs_info): Keep symbol name rather than hash entry.
3598 (check_reloc_refs): Tweak for above changes in check_refs_info.
3599 Only report references to section syms when symname is NULL to
3600 prevent duplicate messages for the same reloc.
3602 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3604 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3605 available. Do not print NULL trees.
3606 (exp_print_token): Print unknown tokens with values > 126 as
3607 decimal values not ASCII characters.
3609 * ldlang.c (lang_leave_overlay): If a region is specified assign
3610 it to all sections inside the overlay unless they have been
3611 assigned to the own, non-default, memory region.
3613 * README: Add header for consistency with other README files.
3615 2001-07-14 H.J. Lu <hjl@gnu.org>
3617 * emultempl/elf32.em (output_prev_sec_find): Never return
3618 bfd_abs_section_ptr, bfd_com_section_ptr nor
3619 bfd_und_section_ptr.
3621 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3623 * Makefile.am (em32relf.c): Change dependency from generic.em to
3625 * Makefile.in: Regenerate.
3627 2001-07-14 matthew green <mrg@eterna.com.au>
3629 * configure.tgt (i386-*-netbsdelf*): New target.
3630 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3632 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3634 * emultempl/elf32.em (output_prev_sec_find): New.
3635 (place_orphan): Use it.
3637 2001-07-11 H.J. Lu <hjl@gnu.org>
3639 * ldmain.c (main): Fix typos in the last change.
3641 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3643 * ldmain.c (main): Disallow -F and -f without -shared.
3645 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3647 * emultempl/pe.em (after_open): Check for the output_bfd not
3648 having any coff_data structure allocated to it.
3650 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3652 * emultempl/elf32.em: Do not assuming that contents of the buffer
3653 returned from basename function will remain unchanged accross other
3656 2001-07-03 H.J. Lu <hjl@gnu.org>
3658 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3659 2001-07-03. It creates dynamic entries even for static binaries.
3661 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3663 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3664 (DYNAMIC): Use it to reserve few dynamic entries for
3667 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3669 * emulparams/hppa64linux.sh: New file.
3670 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3671 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3672 (ehppa64linux.c): Add rule to make it.
3674 * Makefile.in: Regenerate.
3676 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3678 * ld.texinfo (Options, -r): Mention restrictions when using
3679 different object formats.
3681 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3683 * ldlang.c (lang_check): Emit fatal error if relocatable link
3684 between different object flavours with relocations in input.
3686 2001-06-19 H.J. Lu <hjl@gnu.org>
3688 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3689 (--version-script): Mention the language support.
3691 2001-06-19 H.J. Lu <hjl@gnu.org>
3693 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3695 2001-06-18 H.J. Lu <hjl@gnu.org>
3697 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3698 (diststuff): Add $(MANS).
3699 * Makefile.in: Regenerated.
3703 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3705 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3706 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3707 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3708 * ld.h (args_type): Remove member export_dynamic. All users
3709 changed to use struct bfd_link_info member.
3711 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3712 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3713 * Makefile.in: Regenerate.
3715 2001-06-18 H.J. Lu <hjl@gnu.org>
3717 * ldlang.c (init_os): Add the newline to the einfo call.
3718 (lang_check): Likewise.
3719 (lang_do_version_exports_section): Likewise.
3721 2001-06-15 H.J. Lu <hjl@gnu.org>
3723 * lexsup.c (parse_args); Save optind to report unrecognized
3726 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3728 * ldlang.c (lang_check): Emit fatal error if relocatable link
3729 between different object flavours.
3731 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3732 Set new link_info member export_dynamic.
3733 * ldmain.c (main): Initialize new link_info member export_dynamic.
3735 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3737 * ldlang.c (walk_wild): Only call walk_wild_file if
3738 lookup_name returns something.
3739 (lookup_name): If load_symbols fails, return NULL.
3740 (load_symbols): Change to a boolean function.
3741 (open_input_bfds): If load_symbols fails then do not make the
3744 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3746 * ldlang.c (record_bfd_errors): Remove.
3748 * emultempl/aix.em: Fix copyright dates.
3750 2001-06-07 Andreas Jaeger <aj@suse.de>
3752 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3753 (TEXT_START_ADDR): Likewise.
3755 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3757 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3759 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3761 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3763 2001-05-31 H.J. Lu <hjl@gnu.org>
3765 * ldlang.c (open_input_bfds): Don't change the bfd error
3766 handler whilst loading symbols.
3768 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3770 * configure.tgt: Remove i370-mvs architecture, it is not currently
3773 2001-05-25 H.J. Lu <hjl@gnu.org>
3775 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3776 like emulparams/aixppc.sh.
3778 2001-05-25 H.J. Lu <hjl@gnu.org>
3780 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3781 setting of output_filename after bfd_scan_arch.
3782 * emultempl/pe.em: Likewise.
3784 2001-05-25 H.J. Lu <hjl@gnu.org>
3786 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3787 like emulparams/aixppc.sh.
3789 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3790 instead of ${srcdir}/emultempl/stringify.sed.
3792 2001-05-25 Timothy Wall <twall@oculustech.com>
3794 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3797 2001-05-25 Alan Modra <amodra@one.net.au>
3799 * configure.host: Replace linuxoldld with linux*oldld.
3800 * configure.tgt: Likewise.
3802 2001-05-24 H.J. Lu <hjl@gnu.org>
3804 * emultempl/stringify.sed: Removed again.
3806 2001-05-24 H.J. Lu <hjl@gnu.org>
3808 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3809 (gld${EMULATION_NAME}_before_parse): Initialize
3810 ldfile_output_architecture, ldfile_output_machine and
3811 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3812 * emultempl/beos.em: Likewise.
3813 * emultempl/elf32.em: Likewise.
3814 * emultempl/linux.em: Likewise.
3815 * emultempl/mipsecoff.em: Likewise.
3816 * emultempl/pe.em: Likewise.
3817 * emultempl/sunos.em: Likewise.
3819 2001-05-24 Tom Rix <trix@redhat.com>
3821 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3822 udate import file format.
3823 (change_symbol_mode) New, same
3824 (is_syscall) New, same
3825 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3826 * emulparams/aixppc64.sh : same
3827 * emulparams/aixrs6.sh : same
3828 * emulparams/ppcmacos.sh : same
3829 * emultempl/aix.em : use strtoull to parse options
3830 * Makefile.am : add eaixppc64 emulation for xcoff64
3831 * Makefile.in : same
3832 * configure.tgt : same
3834 * scripttempl/aix.sc : default text section offset to 0x10000000
3835 default data section offset to 0x20000000
3836 add .sv3264 and .sv64 pseudo sections
3837 loader and debug sections use the currect section offset.
3839 * emultempl/aix.em : Add xcoff64 support
3840 Add -binitfini support
3841 (gld${EMULATION_NAME}_before_parse) -binitfini
3842 (gld${EMULATION_NAME}_parse_args) same
3843 (gld${EMULATION_NAME}_before_allocation) format change for special
3846 * emulparams/aixppc64.sh : New file for xcoff64 support
3848 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3850 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3851 variable to avoid non-portable shell construct.
3853 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3855 * ldmain.c (get_emulation): Add -mips5 command line argument.
3857 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3859 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3860 (ELF_INTERPRETER_NAME): Define it.
3861 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3863 * configure.tgt (targ_emul, targ_extra_emuls)
3864 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3865 as primary, elf_i386 as extra.
3866 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3867 (eelf_i386_ldso.c): New rule.
3868 * Makefile.in: Rebuilt.
3870 2001-05-22 Nick Clifton <nickc@redhat.com>
3872 * lexsup.c (ld_options): Allow -I to be an alias for
3873 --dynamic-linker. This is for Solaris compatability.
3874 * ld.texinfo: Document that -I can be used.
3877 2001-05-16 Alan Modra <amodra@one.net.au>
3879 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3880 whether an input section is the first one assigned to an output
3882 Assorted formatting fixes.
3884 2001-05-14 DJ Delorie <dj@delorie.com>
3886 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3887 * Makefile.in: Ditto.
3889 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3891 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3892 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3894 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3896 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3898 * ldlang.c (lang_process): Call bfd_merge_sections.
3900 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3902 * ldgram.y: Fix typo.
3904 2001-05-03 H.J. Lu <hjl@gnu.org>
3906 * emultempl/elf32.em: Include "libiberty.h".
3907 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3908 basename of the bfd filename.
3909 (gld${EMULATION_NAME}_stat_needed): Likewise.
3910 (gld${EMULATION_NAME}_try_needed): Likewise.
3911 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3913 2001-05-02 H.J. Lu <hjl@gnu.org>
3915 * emultempl/pe.em: Include <ctype.h>.
3917 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3919 * emulparams/elf32openrisc.sh: New file.
3921 * Makefile.am: Add OpenRISC target.
3922 * Makefile.in: Regenerated.
3924 * configure.tgt: Add openrisc-*-* mapping.
3926 2001-05-02 Nick Clifton <nickc@redhat.com>
3928 * emultempl/aix.em: Replace buystring with xstrdup.
3929 * emultempl/beos.em: Replace buystring with xstrdup.
3931 2001-05-02 H.J. Lu <hjl@gnu.org>
3933 * ldfile.c: Include "libiberty.h".
3934 * ldlex.l: Likewise.
3936 * ldmisc.c (buystring): Removed.
3937 * ldmisc.h: Likewise.
3939 * ldfile.c: Replace buystring with xstrdup.
3940 * ldlang.c: Likewise.
3941 * ldlex.l: Likewise.
3942 * ldmain.c: Likewise.
3943 * ldmisc.c: Likewise.
3944 * lexsup.c: Likewise.
3945 * mpw-eppcmac.c: Likewise.
3947 2001-04-30 Andreas Jaeger <aj@suse.de>
3949 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3951 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3953 * ldlang.c (load_symbols): Give emulation a chance
3954 to process unrecognized file before fatal error is
3955 reported, not after.
3957 2001-04-27 Sean McNeil <sean@mcneil.com>
3959 * configure.tgt: Add arm-vxworks target.
3960 * scripttempl/armcoff.sc: Support .text or .data as a section name
3964 2001-04-13 J.T. Conklin <jtc@redback.com>
3966 * ld.texinfo: Document --fatal-warnings.
3969 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3970 warnings have been turned into errors.
3971 * lexsup.c (OPTION_WARN_FATAL): Define.
3972 (ld_options): Entry for --fatal-warnings.
3973 (parse_args): Handle OPTION_WARN_FATAL.
3974 * ld.h (ld_config_type): Add fatal_warnings field.
3976 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3978 * ldmain.c (main): Default to discard_sec_merge.
3979 * lexsup.c (OPTION_DISCARD_NONE): Define.
3980 (ld_options): Add --discard-none.
3981 (parse_args): Handle OPTION_DISCARD_NONE.
3982 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3983 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3984 all its input sections match.
3986 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3988 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3989 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3990 (eelf32ltsmip.c): New target.
3991 (eelf64btsmip.c): Likewise.
3992 (eelf64ltsmip.c): Likewise.
3993 * Makefile.in: Regenerated.
3995 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3997 (mips*-*-linux-gnu*): Likewise.
3999 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4001 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4003 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4006 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4008 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4009 correct value of __Stext here.
4010 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4013 * emulparams/crislinux.sh: Remove FIXME.
4015 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4017 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4018 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4020 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4022 * configure.tgt (cris-*-*): Change default emulation to criself.
4023 (cris-*-*aout*): New rule.
4025 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4027 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4028 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4030 2001-03-26 Andreas Jaeger <aj@suse.de>
4032 * ld.texinfo (Overview): Fix syntax in texi code.
4034 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4036 * ld.texinfo: Put @c man indications to generate the ld man page.
4037 When generating man, define all the variables. Define SEEALSO
4038 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4039 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4040 (ld.1): Generate from ld.texinfo.
4041 * Makefile.in: Regenerate.
4043 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4045 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4046 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4048 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4050 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4051 is an absolute path look only for this file and not along the path.
4053 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4055 * emultempl/elf32.em (OPTION_GROUP): New macro.
4056 Add new option Bgroup to longopts.
4057 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4058 (gld*_list_options): Add -Bgroup and -z defs.
4059 * ld.1: Document -Bgroup and -z defs.
4060 * ld.texinfo: Likewise.
4062 2001-03-07 Michael Meissner <meissner@redhat.com>
4064 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4065 with sections created by -fdata-sections.
4066 (.dynbss,.bss): Ditto.
4068 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4070 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4071 after_allocation_default, not gld..._before_allocation.
4073 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4075 * configure.in (BFD_VERSION): New.
4076 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4077 * configure: Regenerate.
4078 * Makefile.am: Run "make dep-am"
4079 * Makefile.in: Regenerate.
4081 2001-02-26 Timothy Wall <twall@cygnus.com>
4083 * emulparams/elf64_aix.sh: Add additional read-only sections;
4084 uncomment lines which are now required.
4086 2001-02-26 H.J. Lu <hjl@gnu.org>
4088 * ldlang.c (open_input_bfds): Set the bfd error handler so
4089 that problems can be caught whilst loading symbols.
4090 (record_bfd_errors): New function: Report BFD errors and mark
4091 the executable output as being invalid.
4093 2001-02-22 Timothy Wall <twall@cygnus.com>
4095 * configure.host: Add configuration for ia64-*-aix*.
4096 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4097 Add dependencies for eelf64_aix.c.
4098 * Makefile.in: Regenerate.
4099 * configure.tgt: Add ia64-*-aix* mapping.
4100 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4102 2001-02-20 H.J. Lu <hjl@gnu.org>
4104 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4105 false if we found the file.
4107 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4109 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4110 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4112 2001-02-18 lars brinkhoff <lars@nocrew.org>
4114 * Makefile.am: Add PDP-11 target.
4115 * configure.tgt: Likewise.
4116 * emulparams/pdp11.sh: New file.
4118 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4120 * configure.host: Add a generic FreeBSD configuration entry such that
4121 all [modern] FreeBSD systems on all platforms will look the same.
4123 2001-02-14 H.J. Lu <hjl@gnu.org>
4125 * configure.tgt: Remove mention of earmelf_linux26.
4127 2001-02-13 Richard Henderson <rth@redhat.com>
4129 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4131 2001-02-13 H.J. Lu <hjl@gnu.org>
4133 * ldexp.h (node_type): Add etree_provided.
4134 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4135 type to etree_provided if defined by PROVIDE. Allow updating
4137 (exp_print_tree): Handle etree_provided.
4138 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4141 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4143 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4144 .IA_64.unwind.* pattern to unwind table section and
4145 .IA_64.unwind_info* pattern to unwind info section.
4147 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4149 * Makefile.am: Add linux target for S/390.
4150 * Makefile.in: Likewise.
4151 * configure.host: Likewise.
4152 * configure.tgt: Likewise.
4153 * emulparams/elf64_s390.sh: New file.
4154 * emulparams/elf_s390.sh: New file.
4156 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4158 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4160 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4162 2001-02-06 Philip Blundell <philb@gnu.org>
4164 * Makefile.am: Remove mention of earmelf_linux26.
4165 * Makefile.in: Regenerate.
4167 2001-02-04 Philip Blundell <philb@gnu.org>
4169 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4170 * emulparams/armelf_linux26.sh: Delete.
4171 * configure.tgt: Remove mention of armelf_linux26 emulation.
4173 2001-02-01 Nick Clifton <nickc@redhat.com>
4175 * ld.1: Replace occurances of -oformat with --oformat.
4177 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4179 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4180 load_base is specified.
4182 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4184 * emultempl/elf32.em: Correct spelling in comments and listed
4187 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4189 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4190 default for the first section of a group of overlay sections.
4192 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4194 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4195 * Makefile.in: Regenerate.
4196 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4197 Check for null tool_dir.
4199 2001-01-16 Jim Wilson <wilson@redhat.com>
4201 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4202 and IA_64.unwind.info.
4204 2001-01-16 H.J. Lu <hjl@gnu.org>
4206 * ldlang.c (lang_check): Merge the private data only if the
4207 input file has contents.
4209 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4211 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4213 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4214 enabling search for libmilli. On a relocatable link, make .text
4216 (LDEMUL_AFTER_PARSE): Define.
4217 (hppaelf_finish): Correct spelling of relocatable in comments.
4219 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4220 rummage through the script for sections on the unique list.
4221 Correct length of strncmp for ".note".
4222 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4224 * ldlang.c (unique_section_list): New var.
4225 (unique_section_p): New function.
4226 (walk_wild_section): Don't match sections on unique_section_list.
4227 (lang_add_unique): New function.
4228 Correct spelling of relocatable in comments.
4230 * ldlang.h (struct unique_sections): Declare.
4231 (unique_section_list): Declare.
4232 (unique_section_p): Declare.
4233 (lang_add_unique): Declare.
4235 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4236 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4238 * ld.texinfo (--unique): Update.
4240 2001-01-13 Nick Clifton <nickc@redhat.com>
4242 * lexsup.c (parse_args): Remove spurious white space.
4244 2001-01-12 Nick Clifton <nickc@redhat.com>
4246 * lexsup.c (parse_args): Update copyright date.
4248 2001-01-12 Philip Blundell <pb@futuretv.com>
4250 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4252 2001-01-10 Kazu Hirata <kazu@hxi.com>
4254 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4255 * scripttempl/h8300h.sc: Fix formatting.
4256 * scripttempl/h8300s.sc: Likewise.
4257 * scripttempl/h8500.sc: Likewise.
4258 * scripttempl/h8500b.sc: Likewise.
4259 * scripttempl/h8500c.sc: Likewise.
4260 * scripttempl/h8500m.sc: Likewise.
4261 * scripttempl/h8500s.sc: Likewise.
4263 2000-01-07 David O'Brien <obrien@BSDi.com>
4265 * emultempl/elf32.em: Only perform Linux ld hints processing when
4268 2001-01-07 Philip Blundell <philb@gnu.org>
4270 * ld.texinfo (Bug Reporting): Update email address for reports.
4272 2000-12-31 Nick Clifton <nickc@redhat.com>
4274 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4275 options by checking for a return value of '?' not -1.
4277 2000-12-28 Nick Clifton <nickc@redhat.com>
4279 * lexsup.c (struct ld_option): Add new enum value:
4281 (ld_options[]): Change -omagic, -output and -oformat options
4282 to be EXACTLY_TWO_DASHES.
4283 (OUTPUT_COUNT): Use ARRAY_SIZE.
4284 (parse_args): Change parameter 'argc' to unsigned.
4285 Place EXACTLY_TWO_DASHES options into new really_longopts
4287 If getopt_long_only fails, try calling getopt_long using the
4288 really_longopts array.
4289 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4292 * ldlex.h: Fix prototype of parse_args.
4294 * ld.texinfo: Document that long options starting with 'o'
4295 must be preceeded by two dashes. Change example of a single
4296 dashed long option from -oformat to -trace-symbol.
4298 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4300 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4301 (longopts[]): New --no-default-excludes option.
4302 (gld_${EMULATION_NAME}_list_options): Document.
4303 (gld_${EMULATION_NAME}_parse_args): Handle.
4305 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4307 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4308 whitespace, it breaks the K&R C preprocessor.
4310 2000-12-11 DJ Delorie <dj@redhat.com>
4312 * ld.texinfo: Add notes about --whole-archive and gcc.
4314 2000-11-18 Fred Fish <fnf@be.com>
4316 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4317 (ld_options): Entry for --allow-shlib-undefined.
4318 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4319 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4321 * ld.texinfo: Document new command line switch.
4323 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4325 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4326 .fixup is actually read/write.
4327 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4328 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4329 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4331 2000-12-11 Jan Hubicka <jh@suse.cz>
4333 * NEWS: Add note about x86_64 architecture.
4335 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4337 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4338 Set DWARF2 sections to a VMA of zero.
4340 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4342 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4344 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4345 (sparc*-*-rtems*): Switched from a.out to ELF.
4347 2000-11-30 Jan Hubicka <jh@suse.cz>
4349 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4350 (eelf_x86_64.c): New.
4351 * Makefile.in: Regenerate.
4352 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4353 * emulparams/elf_x86_64.sh: New.
4355 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4357 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4358 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4360 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4361 merging non-a.out sections into CONSTRUCTING.
4363 2000-11-28 Nick Clifton <nickc@redhat.com>
4365 * ld.1 (COPYING): Mention that the GNU Free Documentation
4366 License is present in the sources, but not the output, and
4367 also available from the GNU website.
4368 (GNU Free Documentation License): Comment out this section.
4370 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4372 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4375 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4377 * ld.1: Remove old date so it does not give the impression the manpage
4380 2000-11-24 Nick Clifton <nickc@redhat.com>
4382 * configure.tgt (xscale-coff): Add target.
4383 (xscale-elf): Add target.
4385 2000-11-24 Fred Fish <fnf@be.com>
4387 * ldmain.c (main): Remove redundant init of config.make_executable
4390 2000-11-15 Richard Henderson <rth@redhat.com>
4392 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4394 2000-11-14 Kazu Hirata <kazu@hxi.com>
4396 * scripttempl/h8300.sc: Fix formatting.
4397 * scripttempl/h8300h.sc: Likewise.
4398 * scripttempl/h8300s.sc: Likewise.
4400 2000-11-14 Denis Chertykov <denisc@overta.ru>
4402 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4404 2000-11-09 Philip Blundell <pb@futuretv.com>
4406 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4407 around orphan sections whose names can be represented in C.
4409 2000-11-07 Jim Wilson <wilson@redhat.com>
4411 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4412 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4414 2000-11-06 Nick Clifton <nickc@redhat.com>
4416 * ld.texinfo: Add GNU Free Documentation License.
4417 * ldint.texinfo: Add GNU Free Documentation License.
4418 * ld.1: Add GNU Free Documentation License.
4420 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4422 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4423 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4425 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4426 Move 2000-11-02 Makefile.in changes to this file.
4427 * Makefile.in: Regenerate.
4429 2000-11-03 Nick Clifton <nickc@redhat.com>
4431 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4432 constructors and destructors.
4433 * scripttempl/h8300h.sc: Ditto.
4434 * scripttempl/h8300s.sc: Ditto.
4435 * scripttempl/h8500.sc: Ditto.
4436 * scripttempl/h8500b.sc: Ditto.
4437 * scripttempl/h8500c.sc: Ditto.
4438 * scripttempl/h8500m.sc: Ditto.
4439 * scripttempl/h8500s.sc: Ditto.
4440 * scripttempl/v850.sc: Ditto.
4441 * scripttempl/w65.sc: Ditto.
4442 * scripttempl/z8000.sc: Ditto.
4444 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4446 * Makefile.in (e_i386_chaos.c): New rule.
4447 (ALL_EMULATIONS): Added e_i386_chaos.o.
4448 * emulparams/elf_i386_chaos.sh: New file.
4449 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4451 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4453 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4454 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4455 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4456 library path suffix.
4457 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4459 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4461 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4462 for consecutive sections.
4464 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4466 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4468 * ld.texinfo: Added notes about this new option.
4470 2000-10-16 Nick Clifton <nickc@redhat.com>
4472 * emultempl/pe.em (_after_open): Add tests of return values from
4473 bfd functions. Emit appropriate error messages if necessary.
4475 2000-10-13 Nick Clifton <nickc@redhat.com>
4477 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4478 local variables - they are not used, but leave in the call to
4479 bfd_canonicalize_symtab.
4480 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4481 pe_dll_search_prefix.
4483 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4485 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4486 (longopts): New --dll-search-prefix option.
4487 (gld_${EMULATION_NAME}_list_options): Document.
4488 (gld_${EMULATION_NAME}_parse_args): Handle.
4489 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4490 dynamically, search for a dll named '<prefix><basename>.dll'
4491 in preference to 'lib<basename>.dll' if --dll-search-prefix
4494 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4496 * ldlang.c (section_already_linked): Set kept_section instead of
4499 2000-10-10 Kazu Hirata <kazu@hxi.com>
4501 * deffile.h: Fix formatting.
4502 * lexsup.c: Likewise.
4505 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4507 * pe-dll.c (make_one): Do not generate code thunk for DATA
4509 (process_def_file): deduce DATA flag for auto-export sumbols.
4511 2000-10-09 Kazu Hirata <kazu@hxi.com>
4513 * ld.h: Fix formatting.
4514 * ldcref.c: Likewise.
4515 * ldctor.h: Likewise.
4516 * ldemul.c: Likewise.
4517 * ldemul.h: Likewise.
4518 * ldexp.c: Likewise.
4519 * ldexp.h: Likewise.
4520 * ldfile.c: Likewise.
4521 * ldfile.h: Likewise.
4522 * ldlang.c: Likewise.
4523 * ldlang.h: Likewise.
4524 * ldmain.c: Likewise.
4525 * pe-dll.c: Likewise.
4527 * pe-dll.c: Revert some formatting fixes.
4529 2000-10-08 Kazu Hirata <kazu@hxi.com>
4531 * pe-dll.c: Fix formatting.
4533 2000-10-05 Kazu Hirata <kazu@hxi.com>
4535 * ldlang.c: Fix formatting.
4537 2000-10-03 DJ Delorie <dj@redhat.com>
4539 * pe-dll.c (fill_edata): initialize entire block
4540 (make_one): fill in correct section.
4542 2000-10-03 Kazu Hirata <kazu@hxi.com>
4544 * ldexp.c: Fix formatting.
4546 2000-10-02 DJ Delorie <dj@redhat.com>
4548 * emultempl/pe.em (gld_*_after_open): detect case where there two
4549 import libraries for same dll; rename one to ensure proper link
4552 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4554 (generate_edata): fix typo
4556 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4558 * scripttempl/crisaout.sc (ENTRY): Now __start.
4559 (.text): Add default setting for __start.
4560 Remove CONSTRUCTORS handling.
4561 (/DISCARD/): Add .gnu.warning.*.
4562 * emulparams/crislinux.sh (ENTRY): Now __start.
4563 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4564 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4565 (ENTRY): Now __start.
4566 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4567 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4569 2000-09-29 Kazu Hirata <kazu@hxi.com>
4571 * deffile.h: Fix formatting.
4573 * ldcref.c: Likewise.
4574 * ldctor.c: Likewise.
4575 * ldctor.h: Likewise.
4576 * ldemul.c: Likewise.
4577 * ldemul.h: Likewise.
4578 * ldexp.c: Likewise.
4579 * ldexp.h: Likewise.
4580 * ldfile.c: Likewise.
4581 * ldfile.h: Likewise.
4582 * ldlang.c: Likewise.
4583 * ldlang.h: Likewise.
4584 * lexsup.c: Likewise.
4586 * pe-dll.c: Likewise.
4588 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4590 * pe-dll.c (process_def_file): Uninitialized data wasn't
4591 exported with --export-all-symbols switch.
4593 2000-09-28 DJ Delorie <dj@redhat.com>
4595 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4596 noname work properly.
4598 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4600 * ld.texinfo (HPPA ELF32): New section.
4602 * emultempl/hppaelf.em (group_size): New.
4603 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4604 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4605 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4606 options to prevent abbreviations matching.
4607 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4608 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4610 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4612 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4613 on the m68*-*-elf target. Make it support COFF input objects.
4615 2000-09-21 Kazu Hirata <kazu@hxi.com>
4617 * ldmain.c: Fix formatting.
4618 * ldmisc.c: Likewise.
4619 * ldver.c: Likewise.
4620 * ldwrite.c: Likewise.
4622 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4624 * ldwrite.c (clone_section): Silence gcc warnings.
4626 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4628 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4629 out of memory failure.
4631 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4632 (clone_section): Handle out of memory failures. Rename var to
4633 avoid c++ reserved word.
4635 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4637 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4638 stub_name param to stub_sec_name.
4639 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4641 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4643 * emultempl/m68kelf.em: New file.
4644 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4645 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4646 * Makefile.in: Regenerate.
4648 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4650 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4653 2000-09-13 Nick Clifton <nickc@redhat.com>
4655 * ldmain.c (multiple_definition): Disable relaxation if
4656 multiple symbol definitions are encountered - otherwise the
4657 linker could abort with an assertion failure.
4659 2000-09-10 Nick Clifton <nickc@redhat.com>
4661 * mri.c: Fix formatting.
4663 2000-09-07 H.J. Lu <hjl@gnu.org>
4665 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4666 * configure: Rebuild.
4668 2000-09-07 H.J. Lu <hjl@gnu.org>
4670 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4671 * Makefile.in: Rebuild.
4673 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4675 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4676 broken list handling. Create __start_SECNAME and __stop_SECNAME
4677 when no place-holder. Add some comments. Test both SEC_CODE and
4678 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4679 Handle case where no output section statement created.
4681 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4683 * configure.tgt (sh-*-linux*): Added.
4684 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4685 * Makefile.in: Rebuilt.
4686 * emulparams/shelf_linux.sh: New file.
4687 * emulparams/shlelf_linux.sh: New file.
4689 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4691 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4692 try shuffling sections when the orphan happens to be the place
4693 holder. Keep count of unique section names generated so we speed
4694 the search for a new name.
4696 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4698 * configure: Rebuilt with new libtool.m4.
4700 2000-09-05 Nick Clifton <nickc@redhat.com>
4702 * Makefile.in: Regenerate.
4703 * aclocal.m4: Regenerate.
4704 * configure: Regenerate.
4705 * config.in: Regenerate.
4706 * po/ld.pot: Regenerate.
4708 * ldint.texinfo: Remove CVS revision marker - it foils local
4711 * emultempl/ticoff.em: Remove extraneous comma.
4713 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4715 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4716 to stub section flags.
4717 (hppa_for_each_input_file_wrapper): New.
4718 (hppa_lang_for_each_input_file): New.
4719 (lang_for_each_input_file): Define to call above.
4720 (multi_subspace): New.
4721 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4722 (PARSE_AND_LIST_PROLOGUE): Define.
4723 (PARSE_AND_LIST_LONGOPTS): Define.
4724 (PARSE_AND_LIST_OPTIONS): Define.
4725 (PARSE_AND_LIST_ARGS_CASES): Define.
4726 (hppaelf_finish): Call elf32_hppa_set_gp.
4727 (hppaelf_set_output_arch): Remove.
4728 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4730 * emulparams/hppalinux.sh (ELFSIZE): Define.
4732 (OTHER_READONLY_SECTIONS): Define.
4734 (GENERATE_SHLIB_SCRIPT): Define.
4736 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4737 to const throughout. Change `void *' to `PTR' throughout.
4738 (lang_memory_default): Function is local to file, add `static'.
4740 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4741 (ehppalinux.c): Likewise.
4742 (earmelf.c): Likewise.
4743 (earmelf_linux.c): Likewise.
4744 (earmelf_linux26.c): Likewise.
4745 * Makefile.in: Regenerate.
4747 * ld.h (ld_config_type): Add unique_orphan_sections.
4748 * lexsup.c (OPTION_UNIQUE): Define.
4749 (ld_options): Add "--unique".
4750 (parse_args): Handle it.
4751 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4752 search for an existing output section if unique_orphan_sections is
4753 set. Make use of bfd_get_unique_section_name rather than
4754 duplicating code here.
4755 * ld.texinfo: Describe --unique.
4757 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4758 optional arg to split-by-file.
4759 (parse_args): Handle them.
4760 * ld.texinfo: Update description of these options.
4761 * ldwrite.c (clone_section): Pass in the section name. Replace
4762 local code with bfd_get_unique_section_name.
4763 (split_sections): Tidy code and comments. Use a list traversal
4764 more appropriate to the list construction. Handle cooked section
4765 sizes. Split when split_by_reloc reached rather than exceeded.
4766 Track section size and split when split_by_file reached. Fix
4767 link_order_tail (even though it's not used).
4768 (ldwrite): Modify condition for calling split_sections to suit
4769 changed split_by_reloc and split_by_file.
4770 * ldmain.c (main): Init config.split_by_reloc and
4771 config.split_by_file to -1.
4772 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4773 Change split_by_file to bfd_size_type.
4775 2000-09-02 Nick Clifton <nickc@redhat.com>
4777 * configure.in: Increase version number to 2.10.91.
4778 * NEWS: Mention new ability to support removal of duplicate DWARF2
4780 * configure: Regenerate.
4781 * aclocal.m4: Regenerate.
4782 * config.in: Regenerate.
4784 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4786 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4788 * scripttempl/elf32avr.sc: Ditto.
4789 * scripttempl/elfd10v.sc: Ditto.
4790 * scripttempl/elfd30v.sc: Ditto.
4791 * scripttempl/elfi370.sc: Ditto.
4792 * scripttempl/elfm68hc11.sc: Ditto.
4793 * scripttempl/elfm68hc12.sc: Ditto.
4794 * scripttempl/elfi386beos.sc: Ditto.
4795 * scripttempl/v850.sc: Ditto.
4797 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4799 * acinclude.m4: Include libtool and gettext macros from the
4801 * aclocal.m4, configure: Rebuilt.
4803 2000-08-25 Nick Clifton <nickc@redhat.com>
4805 * ldlang.c (open_output): When choosing the target for a
4806 particular endianness, do nothing if the target is not
4809 2000-08-25 H.J. Lu <hjl@gnu.org>
4811 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4812 check -rpath nor LD_RUN_PATH for cross link.
4813 * ld.texinfo: Document the change.
4815 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4817 * NEWS: Mention support for CRIS.
4819 2000-08-23 H.J. Lu <hjl@gnu.org>
4821 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4822 the current runpath list from bfd_elf_get_runpath_list ()
4825 2000-08-22 H.J. Lu <hjl@gnu.org>
4827 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4828 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4829 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4830 trace_file_tries is non-zero.
4831 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4832 if trace_file_tries is non-zero.
4834 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4837 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4839 * NEWS: Mention i860 support.
4841 2000-08-14 Andreas Schwab <schwab@suse.de>
4843 * scripttempl/elf.sc: Fix last change to use correct comment
4846 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4848 * scripttempl/elf.sc: Add a comment giving the correspondence
4849 between sections, per-datum sections, and linkonce sections. Make
4850 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4853 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4855 * emulparams/elf32_i860.sh: New file.
4856 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4857 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4858 (eelf32_i860.c): New rule.
4859 * Makefile.in: Regenerate.
4861 2000-08-10 Nick Clifton <nickc@cygnus.com>
4863 * emulparams/mipspe.sh (ENTRY): Add definition.
4865 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4867 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4870 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4872 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4873 the final size of .bss section.
4874 * scripttempl/elfm68hc12.sc: Likewise.
4876 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4878 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4879 gld${EMULATION_NAME}_parse_args for consistency. Combine
4880 lastoptind and prevoptind vars, and keep track of last optind.
4881 (gld_${EMULATION_NAME}_list_options): Rename to
4882 gld${EMULATION_NAME}_list_options.
4884 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4886 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4887 (i586-sco-sysv5uw7.1.0).
4889 2000-07-27 H.J. Lu <hjl@gnu.org>
4891 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4892 (PARSE_AND_LIST_PROLOGUE): New.
4893 (PARSE_AND_LIST_LONGOPTS): Likewise.
4894 (PARSE_AND_LIST_OPTIONS): Likewise.
4895 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4896 (PARSE_AND_LIST_EPILOGUE): Likewise.
4898 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4900 * emultempl/armelf.em: Elide functions common to elf32.em,
4901 ie. most of the file.
4902 (arm_elf_after_open): New. Do arm specific things then call
4903 gld${EMULATION_NAME}_after_open.
4904 (arm_elf_before_allocation): New. Call
4905 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4906 (PARSE_AND_LIST_PROLOGUE): Define.
4907 (PARSE_AND_LIST_SHORTOPTS): Define.
4908 (PARSE_AND_LIST_LONGOPTS): Define.
4909 (PARSE_AND_LIST_OPTIONS): Define.
4910 (PARSE_AND_LIST_ARGS_CASES): Define.
4911 (LDEMUL_AFTER_OPEN): Define.
4912 (LDEMUL_BEFORE_ALLOCATION): Define.
4913 (LDEMUL_BEFORE_PARSE): Define.
4914 (LDEMUL_FINISH): Define.
4916 * emultempl/hppaelf.em: Similarly zap most of this file.
4917 (hppaelf_add_stub_section): Prototype.
4918 (hppaelf_layaout_sections_again): Prototype.
4919 (hook_in_stub): Prototype.
4920 (LDEMUL_SET_OUTPUT_ARCH): Define.
4921 (LDEMUL_FINISH): Define.
4922 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4924 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4925 (EXTRA_EM_FILE): New.
4926 * emulparams/armelf_linux.sh: Likewise.
4927 * emulparams/armelf_linux26.sh: Likewise.
4928 * emulparams/hppalinux.sh: Likewise.
4929 * emulparams/hppaelf.sh: Likewise.
4932 * emultempl/elf32.em: Fix formatting.
4933 (EXTRA_EM_FILE): Source it.
4934 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4935 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4936 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4937 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4938 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4939 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4940 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4941 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4942 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4943 allow functions in this file to be overridden.
4944 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4946 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4948 * emultempl/elf32.em: Reorganize file.
4950 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4952 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4953 specific option to fit 64-bit executable in the lower
4954 31-bit address range. This is done by changing start
4955 address of .interp (the very first section of executable)
4956 and then setting EF_ALPHA_32BIT elf header flag.
4958 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4960 * emultempl/m68kcoff.em: New file.
4961 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4962 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4964 * Makefile.in: Regenerate.
4966 2000-07-20 H.J. Lu <hjl@gnu.org>
4968 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4969 and "disable-new-dtags" to stop getopt from treating -d/-e as
4970 abbreviations for these options.
4972 2000-07-20 H.J. Lu <hjl@gnu.org>
4974 * ld.texinfo: Add documentation for --disable-new-dtags and
4977 * ldmain.c (main): Initialize link_info.new_dtags to false.
4979 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4980 --disable-new-dtags and --enable-new-dtags.
4981 (gld_${EMULATION_NAME}_list_options): Likewise.
4983 2000-07-05 Kenneth Block <krblock@computer.org>
4985 * lexsup.c: Add optional style to demangle switch
4986 * ld.texinfo: Document optional style to demangle switch.
4988 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4990 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4992 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4993 Regenerate dependencies.
4994 * Makefile.in: Rebuild.
4995 * configure.tgt (cris-*-*): New target.
4996 * emulparams/crisaout.sh, emulparams/criself.sh,
4997 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4998 * po/POTFILES.in, po/ld.pot: Regenerate.
5000 2000-07-20 H.J. Lu <hjl@gnu.org>
5002 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5003 Print out ignored -z options.
5005 2000-07-19 H.J. Lu <hjl@gnu.org>
5007 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5008 (PARSE_AND_LIST_PROLOGUE): New.
5009 (PARSE_AND_LIST_LONGOPTS): Likewise.
5010 (PARSE_AND_LIST_OPTIONS): Likewise.
5011 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5013 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5015 * lexsup.c (ld_options): Comment out 'z'.
5016 (parse_args): Likewise.
5018 * emultempl/elf32.em: Include "elf/common.h".
5019 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5021 (gld_${EMULATION_NAME}_list_options): Likewise.
5023 * ld.texinfo: Add documentation for the recognized -z options.
5025 2000-07-19 H.J. Lu <hjl@gnu.org>
5027 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5028 bfd_elf_set_dt_needed_soname ().
5030 2000-07-18 DJ Delorie <dj@cygnus.com>
5032 * pe-dll.c (pe_dll_id_target): check object target name also
5034 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5036 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5037 ${INIT_END} if relocating.
5038 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5040 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5042 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5043 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5044 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5045 errors introduced by the old dynamic lib search order.
5047 2000-07-17 DJ Delorie <dj@cygnus.com>
5049 * pe-dll.c (process_def_file): auto-export data items also
5050 (pe_process_import_defs): also see if _imp_ form needed
5052 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5054 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5055 for dll import libraries
5057 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5059 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5060 gcc 2.95.2 and later.
5062 2000-07-11 Kazu Hirata <kazu@hxi.com>
5064 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5067 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5069 * ldemul.h (struct lang_input_statement_struct): Remove forward
5071 (struct search_dirs): Likewise.
5072 * ldfile.h (struct lang_input_statement_struct): Likewise.
5073 Protect file from multiple inclusion.
5074 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5075 declaration from macro to file scope.
5077 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5078 * ldgram.y: Likewise here.
5079 * ldlang.c: And here.
5080 * ldmain.c: And here.
5081 * mpw-elfmips.c: And here.
5082 * mpw-eppcmac.c: And here.
5083 * emultempl/aix.em: And here.
5084 * emultempl/armcoff.em: And here.
5085 * emultempl/armelf.em: And here.
5086 * emultempl/armelf_oabi.em: And here.
5087 * emultempl/beos.em: And here.
5088 * emultempl/elf32.em: And here.
5089 * emultempl/hppaelf.em: And here.
5090 * emultempl/linux.em: And here.
5091 * emultempl/lnk960.em: And here.
5092 * emultempl/pe.em: And here.
5093 * emultempl/sunos.em: And here.
5094 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5095 * mpw-idtmips.c: Ditto.
5096 * emultempl/generic.em: Ditto.
5097 * emultempl/gld960.em: Ditto.
5098 * emultempl/gld960c.em: Ditto.
5099 * emultempl/mipsecoff.em: Ditto.
5100 * emultempl/ticoff.em: Ditto.
5101 * emultempl/vanilla.em: Ditto.
5103 * pe-dll.c: Include ldfile.h
5104 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5106 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5107 arguments to bfd_elf32_size_dynamic_sections call.
5108 (gldelf32ebmip_place_orphan): Add missing arguments to
5109 lang_leave_output_section_statement call.
5111 2000-07-10 H.J. Lu <hjl@gnu.org>
5113 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5115 (strhash): Likewise.
5116 (compute_dll_image_base): Likewise.
5117 (pe_undef_found_sym): Likewise.
5118 (pe_undef_cdecl_match): Likewise.
5119 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5120 argument "arch" with ATTRIBUTE_UNUSED.
5122 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5124 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5126 From Ryan Bradetich <rbradetich@uswest.net>
5127 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5129 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5131 Changes to create multiple linker stubs, positioned immediately
5132 before the section where they are required.
5133 * emultempl/hppaelf.em: Include elf32-hppa.h.
5134 (stub_sec, file_chain): Delete.
5135 (hppaelf_create_output_section_statements): Don't make a stub
5137 (hook_stub_info): New struct.
5138 (hook_in_stub): New function.
5139 (hppaelf_add_stub_section): New function.
5140 (hppaelf_finish): Do nothing for relocateable links. Modify the
5141 call to elf32_hppa_size_stubs. Move code for updating section
5143 (hppaelf_layaout_sections_again): ..to here, a new function.
5145 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5146 broken list handling. Pass in a pointer to the list.
5147 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5149 (hppaelf_before_parse): Prototype.
5150 (hppaelf_set_output_arch): Prototype.
5151 (hppaelf_create_output_section_statements): Prototype.
5152 (hppaelf_delete_padding_statements): Prototype.
5153 (hppaelf_finish): Prototype.
5156 * emultempl/hppaelf.em: Include ctype.h.
5157 (struct orphan_save): New.
5158 (gld${EMULATION_NAME}_place_orphan): New.
5159 (output_rel_find): New.
5160 (hppaelf_get_script): Update from elf32.em.
5161 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5162 Change emulation_name field to "${EMULATION_NAME}". Add
5163 gld${EMULATION_NAME}_place_orphan.
5165 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5166 ehppalinux.o, sort it. Regenerate dependencies.
5167 (ehppalinux.c): Depend on hppaelf.em
5168 * Makefile.in: Regenerate.
5170 * configure.tgt: targ_emul=hppalinux for hppa*linux
5172 * emulparams/hppalinux.sh: New.
5173 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5175 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5177 * lexsup.c (parse_args): Copy section name.
5179 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5181 * emultempl/pe.em: institute the following search order for
5182 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5183 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5184 static lib (libfoo.a) if none of the above are found.
5186 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5188 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5189 (longopts): New --{enable,disable}-auto-image-base options.
5190 (gld_${EMULATION_NAME}_list_options): Document.
5191 (gld_${EMULATION_NAME}_parse): Handle.
5192 (strhash): New static function.
5193 (compute_dll_image_base): New static function.
5194 (gld_${EMULATION_NAME}_set_symbols): Use.
5196 2000-07-05 DJ Delorie <dj@redhat.com>
5200 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5202 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5203 * emulparams/elf32btsmip.sh: New file.
5204 * Makefile.am: Add traditional mips target.
5205 * Makefile.in: Rebuild.
5207 2000-07-01 H.J. Lu <hjl@gnu.org>
5209 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5210 automake to use YLWRAP.
5211 * Makefile.in: Rebuild.
5213 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5215 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5216 (CLEANFILES): Add DEPA.
5217 * Makefile.in: Regenerate.
5219 2000-06-30 Timothy Wall <twall@ppc>
5221 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5222 the page in the upper octet of the address.
5224 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5226 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5228 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5230 * NEWS: arm-elf does --gc-sections too.
5232 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5234 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5236 * Makefile.in: Regenerate.
5238 2000-06-21 H.J. Lu <hjl@gnu.org>
5240 * Makefile.am: Rebuild dependency.
5241 * Makefile.in: Rebuild.
5243 2000-06-20 H.J. Lu <hjl@gnu.org>
5245 * Makefile.am: Rebuild dependency.
5246 * Makefile.in: Rebuild.
5248 2000-06-20 Timothy Wall <twall@cygnus.com>
5250 * scripttempl/tic54xcoff.sc: New.
5251 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5252 * gen-doc.texi: Add flag for TI COFF.
5253 * ld.texinfo: Add documentation for TI COFF handling switches.
5254 * emultempl/ticoff.em: New. TI COFF handling.
5255 * configure.tgt: Add tic54x target.
5256 * Makefile.am: Add tic54x target.
5257 * Makefile.in: Ditto.
5259 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5261 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5262 checking for backslashes.
5264 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5266 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5268 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5270 * NEWS: Update list of targets supporting --gc-sections.
5272 * scripttempl/elf.sc: KEEP .eh_frame contents.
5273 * scripttempl/elfd30v.sc: Same here.
5275 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5277 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5279 * Makefile.in: Rebuild.
5280 * configure.tgt: Recognize m68hc12 and m68hc11.
5281 * scripttempl/elfm68hc12.sc: New file.
5282 * emulparams/m68hc12elfb: New emulation.
5283 * emulparams/m68hc12elf: New emulation.
5284 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5285 (includes a memory.x script to define the ROM and RAM banks).
5286 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5287 New configuration files for support of Motorola 68hc11
5289 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5291 * ldmain.c (main): Only change SEC_READONLY for final link.
5293 2000-06-13 H.J. Lu <hjl@gnu.org>
5295 * configure: Regenerate.
5297 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5299 * configure.in (VERSION): Update to show this is the CVS mainline.
5301 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5303 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5304 input objects to be ECOFF.
5305 (check_sections): einfo takes %B, not %P, to print a BFD name.
5307 2000-06-05 Michael Matz <matz@ifh.de>
5309 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5312 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5314 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5316 * emulparams/avr1200.sh (STACK): Define as 0.
5317 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5318 * emulparams/avr4433.sh (STACK): Likewise.
5319 * emulparams/avr44x4.sh (STACK): Likewise.
5320 * emulparams/avr85xx.sh (STACK): Likewise.
5321 * emulparams/avrmega103.sh (STACK): Likewise.
5322 * emulparams/avrmega161.sh (STACK): Likewise.
5323 * emulparams/avrmega603.sh (STACK): Likewise.
5324 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5325 (__stack): Define from ${STACK} for main().
5327 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5329 * Makefile.am: Update dependencies with "make dep-am"
5330 * Makefile.in: Regenerate.
5332 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5334 * ldmain.c: Include filenames.h.
5335 (set_scripts_dir): Support backslashes in program name.
5337 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5339 * ldmain.c (main): When deciding if ".text" section should be
5340 read-only, don't forget to reset SEC_READONLY because it
5341 could be already set.
5343 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5345 * ld.1: Add documentation for new command line option:
5346 --section-start <sectionname>=<sectionorg>
5347 This is a generic version of -Ttext etc. which accepts
5348 any section name as a parameter instead of just text/data/
5350 * ld.texinfo: More docs.
5352 * lexsup.c: (parse_args): Recognize new command line option.
5353 (ld_options): Add new option.
5355 2000-05-18 H.J. Lu <hjl@gnu.org>
5357 * lexsup.c (parse_args): `i' == `r', not `q'.
5359 2000-05-18 Jeffrey A Law (law@cygnus.com)
5361 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5363 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5364 Rick Gorton <gorton@scrugs.lkg.dec.com>
5366 Add support for '-q' == '--emit-relocs' switch.
5367 * ldmain.c (main): Default to false.
5368 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5369 * NEWS: Describe the emitrelocations switch.
5370 * ld.texinfo: Describe the emitrelocations switch.
5372 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5374 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5375 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5376 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5379 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5381 * lexsup.c (parse_args): Update the year in the copyright notice.
5383 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5385 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5386 Replace defines with those from intl/libgettext.h to quieten gcc
5389 2000-05-10 H.J. Lu <hjl@gnu.org>
5391 * ldlang.c (open_input_bfds): Don't load the same file within
5392 a group again if the whole archive has been loaded already.
5394 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5396 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5397 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5400 2000-05-01 Jim Wilson <wilson@cygnus.com>
5402 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5404 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5405 host "ia64-*-linux-gnu*".
5407 2000-04-29 Andreas Jaeger <aj@suse.de>
5409 * ld.h: Correctly check GCC version.
5411 2000-04-25 Jeffrey A Law (law@cygnus.com)
5413 * Makefile.am: Add PA64 support. Add missing dependencies for
5415 * Makefile.in: Rebuilt.
5416 * configure.tgt: Add PA64 support (currently disabled).
5418 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5420 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5421 (output_rel_find): New function.
5422 (hold_section, hold_use): Delete.
5423 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5424 hold_interp): Make local to place_orphan.
5425 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5426 rather than place_section to find possible previous use of orphan.
5427 Similarly find the place-holder output sections. Use returned
5428 value from lang_enter_output_section_statement rather than calling
5429 lang_output_section_statement_lookup.
5430 * emultempl/armelf.em: Same here.
5431 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5433 * ldlang.c (lang_enter_output_section_statement): Return output
5435 * ldlang.h (lang_enter_output_section_statement): Change
5438 * ldlang.h (lang_output_section_statement): Export it.
5439 * ldlang.c (lang_output_section_statement): Ditto.
5441 2000-04-24 Nick Clifton <nickc@cygnus.com>
5443 * ld.texinfo (Output Section Data): Add note that section data
5444 commands cannot appear outside of section directives.
5446 2000-04-2 Matthew Green <mrg@cygnus.com>
5448 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5450 2000-04-21 Richard Henderson <rth@cygnus.com>
5451 David Mosberger <davidm@hpl.hp.com>
5453 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5454 (eelf64_ia64.c): New rule.
5455 * Makefile.in: Rebuild.
5456 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5457 * emulparams/elf64_ia64.sh: New file.
5459 2000-04-21 Richard Henderson <rth@cygnus.com>
5461 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5463 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5465 * dep-in.sed: Match space at start of file name, not at end.
5467 2000-04-18 H.J. Lu <hjl@gnu.org>
5469 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5470 lang_leave_output_section_statement () after calling
5471 lang_enter_output_section_statement ().
5472 * emultempl/armelf.em: Likewise.
5474 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5476 * emultempl/elf32.em (struct orphan_save): Add section field.
5477 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5478 better order, and place first orphan section as we did before the
5479 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5480 Don't call make_bfd_section here, let wild_doit do the job for us.
5481 Don't build a statement list when we'll only throw it away.
5482 * emultempl/armelf.em: Ditto.
5483 * emultempl/pe.em: Similarly.
5485 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5487 * scripttempl/elfppc.sc: Remove.
5488 * emulparams/elf32ppc.sh: Use elf.sc.
5489 * emulparams/elf32lppc.sh: Use elf.sc.
5490 * emulparams/elf32ppclinux.sh: Use elf.sc.
5491 * emulparams/elf32ppcsim.sh: New file.
5492 * emulparams/elf32lppcsim.sh: New file.
5493 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5494 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5495 * Makefile.in: Regenerate.
5496 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5498 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5500 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5501 ~SEC_ALLOC sections too. Init start address of debug sections.
5502 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5503 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5504 Also set all relocateable section start addresses.
5506 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5508 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5509 Add new BSS_PLT variable for when .plt need not be contained in
5510 the file. Move _etext so that it is also after .fini, and provide
5511 both etext and _etext with a leading underscore. Mark the start
5514 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5516 * emultempl/elf32.em (struct orphan_save): New.
5517 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5518 hold_interp): Make them struct orphan_save.
5519 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5520 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5521 the end of the relevant section list. Also add associated section
5522 statements to the end of any previous orphan statements.
5523 * emultempl/armelf.em: Similarly.
5524 * emultempl/pe.em: Similarly.
5526 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5528 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5530 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5532 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5533 --enable-build-warnings option.
5534 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5535 * Makefile.in, configure: Re-generate.
5537 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5539 * po/ld.pot: Regenerate.
5541 * lexsup.c (help): Restore translated part of bug string.
5543 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5544 (DEP): Quote when passing vars to sub-make. Add warning message
5546 (DEP1): Rewrite for "gcc -MM".
5547 (CLEANFILES): Add DEP2.
5548 Update dependencies.
5549 * Makefile.in: Regenerate.
5551 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5553 * ld.h: #include "bin-bugs.h"
5554 * lexsup.c (help): Use REPORT_BUGS_TO.
5556 2000-03-27 Denis Chertykov <denisc@overta.ru>
5558 * configure.tgt (avr-*-*): New target support.
5559 * Makefile.am: Likewise.
5560 * scripttempl/elf32avr.sc: New script file.
5561 * emulparams/avr1200.sh: New file.
5562 * emulparams/avr23xx.sh: New file.
5563 * emulparams/avr4433.sh New file.
5564 * emulparams/avr44x4.sh New file.
5565 * emulparams/avr85xx.sh New file.
5566 * emulparams/avrmega103.sh New file.
5567 * emulparams/avrmega161.sh New file.
5568 * emulparams/avrmega603.sh New file.
5569 * Makefile.in: Regenerate.
5571 2000-03-09 Andreas Jaeger <aj@suse.de>
5573 * Makefile.am (check-DEJAGNU): Also unset LANG.
5574 * Makefile.in: Rebuild.
5576 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5578 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5581 2000-03-02 H.J. Lu <hjl@gnu.org>
5583 * emulparams/elf32mcore.sh: Include "getopt.h".
5585 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5587 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5589 2000-03-01 H.J. Lu <hjl@gnu.org>
5591 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5592 * emulparams/shpe.sh: Likewise.
5594 2000-03-01 Nick Clifton <nickc@cygnus.com>
5596 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5597 to unused parameters.
5599 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5600 functions only used by DLL code.
5601 (_place_orphan): Initialise 'dollar'.
5603 2000-03-01 H.J. Lu <hjl@gnu.org>
5605 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5606 indicate if the undefined symbol is a fatal error or not.
5607 Don't delete the output file if "fatal" is false.
5609 2000-02-29 H.J. Lu <hjl@gnu.org>
5611 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5612 Set LC_COLLATE and LC_ALL to null and export them. It is for
5613 sort which expects the C locale.
5614 Add $(LIBS) to all $(HOSTING_LIBS).
5615 * Makefile.in: Rebuild.
5617 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5619 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5620 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5621 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5622 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5623 find_potential_libraries.
5625 2000-02-28 Jim Blandy <jimb@redhat.com>
5627 * ldgram.y (exclude_name_list): Don't require a comma to separate
5628 list entries; the lexer considers commas to be valid part of a
5629 filename, so in something like `foo, bar' the comma is considered
5630 part of the first filename, `foo,'.
5631 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5633 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5635 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5636 host "i[3456]86-*-freebsdelf*".
5638 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5640 * scripttempl/i386go32.sc: Move misplaced semicolons.
5642 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5644 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5645 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5646 (eelf64hppa.c, ehppaelf.c): Remove targets.
5647 * Makefile.in: Rebuild.
5649 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5651 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5652 GNU/Linux/sparc, but keep the default as 32.
5654 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5655 it default if sparcv9 or sparc64.
5657 2000-02-24 Nick Clifton <nickc@cygnus.com>
5659 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5660 * Makefile.in: Regenerate.
5661 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5663 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5664 find_potential_libraries.
5665 * ldemul.c (ldemul_find_potential_libraries): New function.
5667 * ldfile.c (ldfile_open_file_search): Allow function to be
5669 (ldfile_open_file): Call ldemul_find_potential_libraries.
5670 * ldfile.h: Add prototype for ldfile_open_file_search.
5672 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5674 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5675 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5677 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5678 (gld_X_find_potential_libraries): New function. Search for
5679 libraries called "*.lib".
5681 * scripttempl/pe.sc: Add .pdata section.
5683 2000-02-23 Richard Henderson <rth@cygnus.com>
5685 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5686 Add and use memory regions.
5688 2000-02-23 Linas Vepstas (linas@linas.org)
5690 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5692 * Makefile.am: Add support for Linux/IBM 370.
5693 * configure.tgt: Likewise.
5695 * Makefile.in: Regenerate.
5697 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5699 * ldlang.c (print_input_section, print_data_statement,
5700 print_reloc_statement, print_padding_statement, insert_pad,
5701 size_input_section, lang_check_section_addresses,
5702 lang_size_sections, lang_do_assignments, lang_set_startof,
5703 lang_one_common): Change `opb' to unsigned.
5704 (lang_do_assignments): Also change `size' to unsigned.
5706 2000-02-16 Richard Henderson <rth@cygnus.com>
5708 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5710 2000-02-16 Timothy Wall <twall@cygnus.com>
5712 * mri.c (mri_draw_tree): Add default LMA region argument to call
5713 to lang_leave_output_section_statement.
5714 * ldlang.h: Update prototypes with LMA region arguments.
5715 * ldlang.c (lang_size_sections): Encapsulate region bounds
5716 checking in os_check_region call.
5717 (os_check_region): New function.
5718 (lang_output_section_statement_lookup): Initialize lma_region.
5719 (lang_leave_output_section_statement): Add LMA region argument.
5720 (lang_leave_overlay): Ditto.
5721 * ldgram.y: Handle LMA region syntax.
5722 * ld.texinfo (Output Section Description): Describe LMA region usage.
5723 * emultempl/armelf.em (gld$place_orphan): Add default value for
5724 lma region in call to lang_leave_output_section_statement.
5725 * emultempl/elf32.em (gld$place_orphan): Add default value for
5726 lma region in call to lang_leave_output_section_statement.
5727 * emultempl/pe.em (gld$place_orphan): Add default value for
5728 lma region in call to lang_leave_output_section_statement.
5731 2000-02-04 Timothy Wall <twall@redhat.com>
5733 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5734 octets when calculating section end addresses.
5736 2000-02-04 Timothy Wall <twall@redhat.com>
5738 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5740 2000-02-03 Timothy Wall <twall@redhat.com>
5742 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5744 * ldlang.c (print_input_section, print_data_statement,
5745 print_reloc_statement, print_padding_statement): Print target
5746 address values and section sizes as bytes, not octets.
5747 (insert_pad) Calculate padding size in octets, and adjust "dot"
5749 (size_input_section) Always adjust "dot" by bytes, not octets.
5750 (lang_check_section_addresses, lang_do_assignments) Adjust
5751 "dot" by bytes, not octets. Use the larger of the directive size
5752 or octets_per_byte for the number of octets actually allocated in
5754 (lang_set_startof) Make sure STARTOF returns a target address.
5755 (lang_one_common) Record size changes in octets.
5756 (lang_abs_symbol_at_end_of) Section end symbol's value is
5757 recorded in target bytes.
5758 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5759 to be clear about behavior when an octet is smaller than one byte.
5761 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5763 * ldcref.c (output_cref): Don't pass message strings to printf
5767 * ldmisc.c (vfinfo): Same here.
5770 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5772 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5773 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5774 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5775 Add missing NULL initialisers, and comments.
5777 2000-01-21 Nick Clifton <nickc@cygnus.com>
5779 * ldlang.c (lang_size_sections): Fix typo in comment.
5781 2000-01-18 H.J. Lu <hjl@gnu.org>
5783 * ldlang.c (lang_size_sections): Also update the current
5784 address of a region if the SEC_NEVER_LOAD bit is not set.
5786 2000-01-10 Philip Blundell <pb@futuretv.com>
5788 * configure.tgt (arm*-*-conix*): New target.
5790 2000-01-07 Nick Clifton <nickc@cygnus.com>
5792 * ld.texinfo (Options): Remind users to preceed linker command
5793 line switches with -Wl, (or whatever is appropriate) if it is
5794 being invoked by a comnpiler driver program.
5795 Fix description of the behaviour of the -n command line switch.
5797 2000-01-05 Catherine Moore <clm@cygnus.com>
5799 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5801 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5802 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5803 (exclude_name_list): New.
5804 ldlang.c (walk_wild_section): Support list of excluded files.
5805 (print_wild_statement): Likewise.
5806 (lang_add_wild): Likewise.
5807 * ldlang.h (lang_wild_statement_type): Likewise.
5808 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5810 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5812 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5813 (process_def_file): Use.
5814 (pe_dll_compat_implib): New variable.
5817 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5818 pe_dll_compat_implib.
5820 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5821 compat-implib options.
5822 (gld_${EMULATION_NAME}_list_options): List new options.
5823 (gld_${EMULATION_NAME}_parse_args): Handle.
5825 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5828 * deffilep.y (opt_name): Allow "." in name.
5830 For older changes see ChangeLog-9899
5836 version-control: never