1 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
3 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
6 2003-03-31 David Heine <dlheine@suif.stanford.edu>
8 * ldfile.c (ldfile_add_library_path): Always allocate space for
10 * ldlang.c (lang_register_vers_node): Free the node if it cannot
12 * ldmain.c (set_scripts_dir): Always free the constructed
14 (add_keepsyms_file): Fix memory leak.
15 * ldmisc.c (vfinfo): Likewise.
16 * lexsup.c (parse_args): Likewise
18 2003-03-25 Stan Cox <scox@redhat.com>
19 Nick Clifton <nickc@redhat.com>
21 Contribute support for Intel's iWMMXt chip - an ARM variant:
23 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
24 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
25 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
28 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
30 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
31 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
32 (main): Initialize them.
33 * ldfile.c: Include pathnames.h.
34 (is_sysrooted_pathname): New.
35 (ldfile_add_library_path): Use it.
36 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
37 search_dirs if given an absolute pathname.
38 (ldfile_open_file): Issue error message for sysrooted
40 * Makefile.am: Updated dependencies.
41 * Makefile.in: Rebuild.
43 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
45 * ld.texinfo: Rename all occurances of C54X to TIC54X.
47 2003-03-19 Andreas Schwab <schwab@suse.de>
49 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
52 2003-03-18 Danny Smith <dannysmith@users.sourceforge,net>
54 * defilep.y (opt_base): If no number given, set to default
57 2003-03-13 Danny Smith <dannysmith@users.sourceforge,net>
59 * deffilep.y (def_import): Use default extension of "dll"
60 if no extension provided in parsed IMPORT definition.
62 * deffilep.y (def_lex): Revert 2003-03-12 change.
63 (dot_name): New id type and rule.
64 (expline): Use instead of ID.
65 (opt_equal_name): Likewise.
67 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
69 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
71 2003-03-07 Christopher Faylor <cgf@redhat.com>
73 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
74 apparent accidental removal on 2003-01-06.
76 2003-03-04 Dmitry Diky <diwil@mail.ru>
78 * Makefile.am: Add new devices x1122 x1132 emulation
79 * configure.tgt: Likewise.
80 * Makefile.in: Regenerate.
81 * emulparams/msp430x1122.sh: New file.
82 * emulparams/msp430x1132.sh: New file.
84 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
86 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
89 * ldfile.h (struct search_dirs): Added sysrooted field.
90 * ldlang.h (struct lang_input_statement_struct): Likewise.
91 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
92 (ldfile_open_file_search): Look for sysrooted filename starting
93 with / in ld_sysroot instead of in the current directory. Clear
94 sysrooted flag if it's found in the current directory. Set it
95 from the search directory's sysrooted flag where it is found
97 * ldlang.c (ldlang_sysrooted_script): New static variable.
98 (new_afile): Mark search_file_enums as sysrooted if
99 ldlang_sysrooted_script.
100 (load_symbols): Set ldlang_sysrooted_script according to the
101 script's sysrooted field while processing it.
102 * ld.texinfo: Document INPUT behavior in sysroot.
104 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
106 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
108 2003-03-03 Alan Modra <amodra@bigpond.net.au>
110 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
111 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
112 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
113 PARSE_AND_LIST_EPILOGUE): Don't define.
114 * emultempl/alphaelf.em: New file.
116 2003-03-01 Alan Modra <amodra@bigpond.net.au>
118 * ldemul.c: Include getopt.h.
119 * emultempl/elf32.em: Include getopt.h earlier.
120 * emultempl/ticoff.em: Likewise.
122 2003-02-28 Alan Modra <amodra@bigpond.net.au>
124 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
125 support when scripts read from files.
127 2003-02-28 Alan Modra <amodra@bigpond.net.au>
129 * ldemul.c (ldemul_parse_args): Return FALSE by default.
130 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
133 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
134 (ldemul_parse_args): Return bfd_boolean. Formatting.
135 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
136 (ldemul_parse_args): Adjust.
137 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
138 Return bfd_boolean from parse_args.
139 * lexsup.c (parse_args): Malloc shortopts, longopts and
140 really_longopts. Call ldemul_add_options and ldemul_handle_option.
141 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
142 gld${EMULATION_NAME}_parse_args.
143 (gld${EMULATION_NAME}_handle_option): Likewise.
144 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
145 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
146 * emultempl/beos.em: Likewise.
147 * emultempl/pe.em: Likewise.
148 * emultempl/ticoff.em: Likewise.
149 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
150 (gld${EMULATION_NAME}_add_sysroot): Prototype.
151 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
153 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
154 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
155 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
156 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
158 * emultempl/generic.em: Likewise.
159 * emultempl/gld960.em: Likewise.
160 * emultempl/gld960c.em: Likewise.
161 * emultempl/linux.em: Likewise.
162 * emultempl/lnk960.em: Likewise.
163 * emultempl/m68kcoff.em: Likewise.
164 * emultempl/mipsecoff.em: Likewise.
165 * emultempl/sunos.em: Likewise.
166 * emultempl/vanilla.em: Likewise.
167 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
169 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
171 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
172 memory allocation error.
174 * Makefile.am (ldmain.o): Define TOOLBINDIR.
175 * Makefile.in: Rebuilt.
176 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
178 2003-02-21 Bob Wilson <bob.wilson@acm.org>
180 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
181 call os_region_check when it is set.
182 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
183 lang_size_sections_1.
184 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
185 only for the last call, not on every relaxation iteration.
186 * ldlang.h (lang_size_sections): Update prototype.
187 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
188 to lang_size_sections.
189 (pe_exe_fill_sections): Likewise.
190 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
191 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
192 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
193 (ppc_layout_sections_again): Likewise.
195 2003-02-21 Bob Wilson <bob.wilson@acm.org>
197 * gen-doc.texi: Set ARM and HPPA variables.
198 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
199 title capitalization more consistent. Add missing menu entries for
200 machine-specific sections and conditionalize them consistently.
201 Conditionalize text that is irrelevant when SingleFormat is set.
202 Add @group divisions to improve page breaks in long examples.
203 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
204 is correct. Remove "FIXME" comment about not using
205 @raisesections/@lowersections. Use @raisesections/@lowersections
206 consistently for machine-specific sections. Change to be more polite
207 about poor bug reports. Replace FDL appendix with include of fdl.texi.
208 Move WIN32 node to match its order in the menus.
209 * fdl.texi: New file.
211 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
213 * configure.in (TARGET_SYSTEM_ROOT): Set default to
214 ${exec_prefix}/${target_alias}/sys-root. Match explicit
215 '${exec_prefix}' (in addition to the expansion thereof) as
217 * configure: Rebuilt.
219 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
221 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
223 2003-02-20 Harri Porten <porten@kde.org>
225 * ldgram.y (vers_defns): Allow optional trailing semicolon in
228 2003-02-18 Alan Modra <amodra@bigpond.net.au>
230 * emultempl/ppc32elf.em: New file.
231 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
232 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
233 (eelf32lppcnto.c): Likewise.
234 (eelf32lppcsim.c): Likewise.
235 (eelf32ppcnto.c): Likewise.
236 (eelf32ppc.c): Likewise.
237 (eelf32ppc_fbsd.c): Likewise.
238 (eelf32ppcsim.c): Likewise.
239 (eelf32ppclinux.c): Likewise.
240 * Makefile.in: Regenerate.
242 2003-02-18 Alan Modra <amodra@bigpond.net.au>
244 * ld.texinfo: Remove spaces between @samp and opening brace.
246 2003-02-18 Alan Modra <amodra@bigpond.net.au>
248 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
250 (ppc_before_allocation): Don't do optimizations if wrong hash table.
251 (gld${EMULATION_NAME}_finish): Ditto.
253 2003-02-17 Nick Clifton <nickc@redhat.com>
255 * ldmain.c (main) Default allow_shlib_undefined to true.
256 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
257 (parse_args): Parse the new switch.
258 * ld.texinfo: Document new switch and default behaviour of
259 allowing undefined symbols in shared libraries.
261 2003-02-11 Dmitry Diky <diwil@mail.ru>
263 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
264 * scripttempl/elf32msp430_3.sc: Likewise.
266 2003-02-11 Uwe Stieber <uwe@wwws.de>
268 * configure.tgt: Add support for kaOS as cross build target
271 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
273 * hppaelf.em (group_size): Change default back to 1.
275 2003-02-09 Alan Modra <amodra@bigpond.net.au>
277 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
279 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
281 * hppaelf.em (group_size): Change default to -1.
283 2003-02-07 Nick Clifton <nickc@redhat.com>
285 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
287 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
288 no-pipeline-knowledge. This will prevent the getopt package from
289 thinking that there are any shorter abbreviations for
290 --no-pipeline-knowledge.
292 2003-02-07 Jakub Jelinek <jakub@redhat.com>
294 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
295 which already have it. Avoid duplicates.
297 2003-02-06 Jakub Jelinek <jakub@redhat.com>
299 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
300 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
301 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
303 2003-02-05 Alan Modra <amodra@bigpond.net.au>
305 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
306 call ppc64_elf_tls_optimize.
308 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
310 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
311 outside of GNU/Linux conditional.
313 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
315 * deffilep.y (def_get_module): New function: locate an already
317 * deffile.h (def_get_module): New prototype.
318 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
319 a dll multiple times.
321 2003-01-23 Alan Modra <amodra@bigpond.net.au>
323 * emultempl/sh64elf.em: Include elf32-sh64.h.
324 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
325 sh64_elf_section_data.
326 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
328 2003-01-23 Wu Yongwei <adah@netstd.com>
330 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
331 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
332 cross-80th-column-margin "an" to the next line.
334 2003-01-21 Nick Clifton <nickc@redhat.com>
336 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
337 * emulparams/tic3xcoff_onchip.sh: ...this.
338 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
339 * Makefile.in: Regenerate.
341 2003-01-21 Fabio Alemagna <falemagn@aros.org>
343 * configure.tgt: Handle i[3456]86-*-aros*
345 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
347 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
348 * Makefile.in: Regenerate
349 * configure.tgt: Added extra target emulations
350 * emulparams/tic3xcoff.sh: Remove old settings
351 * emulparams/tic4xcoff.sh: Ditto
352 * emulparams/tic3xcoff-onchip.sh: Added new
353 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
354 * scripttempl/tic3xcoff.sc: Remove
356 2003-01-17 Andreas Jaeger <aj@suse.de>
358 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
361 2003-01-16 Alan Modra <amodra@bigpond.net.au>
363 * Makefile.in: Regenerate.
365 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
367 * ld/ld.texinfo (node WIN32): Some clarifications
368 and formatting fixups.
370 2003-01-09 Chris Demetriou <cgd@broadcom.com>
372 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
373 order, and handle (ignore) -mips32r2.
375 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
377 * ldmain.c (main): Make sure ld_sysroot is initialized.
379 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
381 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
383 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
384 (GENSCRIPTS): Add @use_sysroot@.
385 * Makefile.in: Regenerated.
386 * configure.host: Move setting of NATIVE_LIB_DIRS to...
387 * configure.tgt: ... here. Use ${target} instead of ${host}
389 * configure.in: Add --with-sysroot.
390 * configure: Regenerated.
391 * genscripts.sh: Accept use_sysroot option. Set new variables
392 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
393 $use_sysroot. Don't search $tool_lib if $use_sysroot.
394 * ldfile.c (ldfile_add_library_path): Handle leading '='.
395 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
396 (ld_sysroot): New variable.
397 (main): Initialize ld_sysroot.
398 * ldmain.h (ld_sysroot): New extern.
399 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
400 searching $EMULATION_LIBPATH.
401 (gld${EMULATION_NAME}_add_sysroot): New function.
402 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
403 (gld${EMULATION_NAME}_after_open): Likewise. Only search
404 environment variables if $NATIVE.
405 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
406 * NEWS: Mention --with-sysroot.
408 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
409 instead of setting LIB_PATH.
410 * emulparams/elf32ppc.sh: Likewise.
411 * emulparams/elf64_s390.sh: Likewise.
412 * emulparams/elf64_sparc.sh: Likewise.
413 * emulparams/elf64ppc.sh: Likewise.
414 * emulparams/elf_x86_64.sh: Likewise.
416 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
417 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
419 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
421 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
423 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
425 * Makefile.am (ldmain.o): Pass BINDIR.
426 * Makefile.in: Regenerated.
427 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
430 2003-01-02 Ben Elliston <bje@redhat.com>
432 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
433 (eelf32iq2000.c): New target.
434 * Makefile.in: Regenerate.
435 * configure.tgt: Handle iq2000-*-elf.
436 * emulparams/elf32iq10.sh: New file.
437 * emulparams/elf32iq2000.sh: New file.
438 * scripttempl/iq2000.sc: New file.
440 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
442 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
443 and _pei386_runtime_relocator to the exclude list.
445 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
447 * ldfile.c: Fix comment typos.
448 * ldlang.c: Likewise.
450 * pe-dll.c: Likewise.
452 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
454 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
455 * Makefile.am (ld.1): Depend on configdoc.texi
457 * Makefile.in: Regenerated.
459 2002-12-24 Dmitry Diky <diwil@mail.ru>
461 * Makefile.am: Add msp430 target.
462 * configure.tgt: Likewise.
463 * Makefile.in: Regenerate.
464 * emulparams/msp430x???.sh: New files. Linker script parameters
465 for various msp430 configurations.
466 * gen-doc.texi: Enable msp430 documenation.
467 * ld.texinfo: Document msp430 sections.
468 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
469 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
471 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
472 Charles Wilson <cwilson@ece.gatech.edu>
474 * ld/config.in (HAVE_REALPATH): New entry.
475 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
477 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
479 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
482 2002-12-23 Alan Modra <amodra@bigpond.net.au>
484 * ldmain.c (main): Init "strip_discarded".
485 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
486 (OPTION_NO_STRIP_DISCARDED): Define.
487 (ld_options): Add "strip-discarded" and "no-strip-discarded".
488 (parse_args): Handle them.
490 2002-12-23 Nick Clifton <nickc@redhat.com>
492 * ld.h (struct args_type): Add new field
493 'accept_unknown_input_architecture'.
494 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
496 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
497 bfd_arch_get_compatible.
498 * ldfile.c (ldfile_try_open_bfd): Likewise.
499 * lexsup.c (ld_options): Add new command line switch
500 --accept-unknown-input-architecture and its inverse.
501 (parse_args): Handle --accept-unknown-input-architecture.
502 * ld.texinfo: Document new linker option.
503 * NEWS: Mention new linker option.
505 2002-12-20 Alan Modra <amodra@bigpond.net.au>
507 * ldmain.c (main): Re-order link_info initialization. Init all
510 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
512 * ld.texinfo: Clarify and extend the documentation
513 in the Machine Dependent, WIN32 section.
515 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
517 * ld.texinfo: Add win32 machine depending section.
518 * gen-doc.texi: Enable win32 machine depending section.
520 * configure.host: Add win32 library search path.
522 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
524 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
525 import when auto-import is disabled.
527 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
529 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
530 account for trailing '\0'.
532 2002-12-17 Nick Clifton <nickc@redhat.com>
534 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
535 so that it is not confused with -c.
537 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
538 Charles Wilson <cwilson@ece.gatech.edu>
540 * configure.in: Add check for realpath function.
541 * configure: Regenerate.
542 * config.in: Regenerate.
543 * aclocal.m4: Regenerate.
544 * deffile.h: Add .data field to def_file_import
546 * pe-dll.c (pe_proces_import_defs): Use .data field of
547 def_file_import structure to initialize flag_data field of
548 def_file_export structure.
549 (pe_implied_import_dll): New variables exp_funcbase and
550 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
551 not filename (which may be a symlink). Scan the sections and
552 initialize [data|bss]_[start|end]. When scanning the export
553 table, skip _nm_ symbols, and mark any symbols whose rva indicates
554 that it is in the .bss or .data sections as data.
555 * sysdep.h: Include limits.h and sys/param.h, and define
556 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
557 exists, NULL otherwise.
558 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
559 pe_process_import_defs before pe_find_data_imports, so that
560 auto-import will check the virtual implib as well as "real"
562 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
563 symlinks to their target; check that the target's extension is
564 .dll before calling pe_implied_import_dll(), not the filename
565 itself (which may be a symlink).
567 2002-12-10 Alan Modra <amodra@bigpond.net.au>
569 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
570 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
573 2002-12-08 Alan Modra <amodra@bigpond.net.au>
575 * ldlang.h: Formatting.
577 2002-12-07 Alan Modra <amodra@bigpond.net.au>
579 * ldlang.c (init_os): Ensure sections mentioned in load_base
582 2002-12-05 Alan Modra <amodra@bigpond.net.au>
584 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
585 load_base for orphans that follow a section with load_base set.
587 2002-12-01 H.J. Lu <hjl@gnu.org>
589 * ld.texinfo: Remove the extra `;' in sample version script.
591 2002-11-30 Alan Modra <amodra@bigpond.net.au>
593 * configure.host: Correct dynamic-linker for powerpc64 hosts.
595 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
596 * Makefile.in: Regenerate.
598 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
599 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
600 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
601 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
602 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
603 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
604 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
605 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
606 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
607 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
608 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
609 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
610 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
612 2002-11-27 David O'Brien <obrien@FreeBSD.org>
614 * configure.host: Fix generic FreeBSD configuration entry.
616 2002-11-27 H.J. Lu <hjl@gnu.org>
618 * ld.texinfo: Add the missing `;' to sample version scripts.
620 2002-11-20 Alan Modra <amodra@bigpond.net.au>
622 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
624 2002-11-14 Egor Duda <deo@logos-m.ru>
626 * ldmain.c (main): Make runtime relocs disabled by default. Remove
627 assignment which has no effect.
628 * pe-dll.h (pe_create_import_fixup): Change prototype.
629 * pe-dll.c (make_runtime_pseudo_reloc): New function.
630 (pe_create_runtime_relocator_reference): Ditto.
631 (pe_create_import_fixup): Handle relocations with non-zero addends.
632 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
633 --disable-runtime-pseudo-reloc.
634 (make_import_fixup): Handle relocations with non-zero addends. Create
635 an external reference to _pei386_runtime_relocator symbol if at least
636 one pseudo reloc was created.
637 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
638 --disable-runtime-pseudo-reloc options.
640 2002-11-12 Earl Chew <earl_chew@agilent.com>
642 * ldlang.c (lang_add_section): Discard debugging sections that have
643 been marked SEC_EXCLUDE.
645 2002-11-12 Nick Clifton <nickc@redhat.com>
647 * configure.in (ALL_LINGUAS): Add da.
648 * configure: Regenerate.
649 * po/da.po: New Danish translation.
651 2002-11-12 Alan Modra <amodra@bigpond.net.au>
653 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
654 (LDEMUL_BEFORE_ALLOCATION): Define.
655 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
657 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
659 2002-11-11 Christopher Faylor <cgf@redhat.com>
661 * configure.tgt (LIB_PATH): Default to searching w32api directory under
664 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
666 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
667 of restricted auto-export libs.
669 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
671 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
672 creative library naming instances like, e.g., libstdc++-2.a.
674 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
676 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
677 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
679 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
681 * deffilep.y (def_lex): Handle '@' as first character of an ID.
682 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
683 (make_one): Don't prefix decorated fastcall symbols with '_'.
684 (pe_process_import_defs): Likewise.
685 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
686 symbols to cdecl names or vise-versa.
688 2002-10-13 Eric Kohl <ekohl@rz-online.de>
690 * pe-dll.c (process_def_file): Handle fastcall symbols when
691 generating undecorated aliases. Don't prefix decorated fastcall
693 (fill_exported_offsets): Don't prefix decorated fastcall symbols
696 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
698 * emultempl/aix.em: Use include <> for generated headers.
699 * emultempl/beos.em: Likewise.
700 * emultempl/elf32.em: Likewise.
701 * emultempl/pe.em: Likewise.
702 * ldctor.c: Likewise.
704 * ldfile.c: Likewise.
705 * ldlang.c: Likewise.
708 * ldmain.c: Likewise.
709 * ldmisc.c: Likewise.
710 * ldwrite.c: Likewise.
711 * lexsup.c: Likewise.
713 * pe-dll.c: Likewise.
715 2002-10-23 Jakub Jelinek <jakub@redhat.com>
717 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
718 sections into .rel{,a}.dyn.
720 2002-10-23 Nick Clifton <nickc@redhat.com>
722 * lexsup.c (OPTION_NO_OMAGIC): Define.
723 (ld_options): Add "no-omagic" option.
724 (parse_args): Parse --no-omagic.
725 * ld.texinfo: Document --no-omagic.
726 * NEWS: Mention new option.
728 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
730 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
731 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
733 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
735 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
736 emulation name. Set LIB_PATH only for native tools, and
737 search the ABI-specific versions of NATIVE_LIB_DIRS before the
738 .../lib variants, not instead of them. Mostly copied from...
739 * emulparams/elf32ppc.sh: ... here. Fixed typo.
740 * emulparams/elf64bmip-defs.sh: Backed out.
741 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
742 * emulparams/elf64btsmip.sh: Likewise.
743 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
744 TEXT_DYNAMIC): Removed.
746 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
748 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
749 (GENERATE_SHLIB_SCRIPT): Set to yes.
750 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
751 * emulparams/elf32bmipn32.sh: here.
752 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
753 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
754 * emulparams/elf64bmip-defs.sh: New file. Extend
755 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
756 * emulparams/elf64bmip.sh: Bring in definitions from
758 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
760 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
761 * emulparams/elf64btsmip.sh: Bring in definitions from
763 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
764 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
766 2002-10-16 Jakub Jelinek <jakub@redhat.com>
768 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
769 (s390-*-linux*): Add elf64_s390 emulation if want64.
770 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
771 genscript.sh changes.
772 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
773 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
775 2002-10-15 Alan Modra <amodra@bigpond.net.au>
777 * ldlang.c (load_symbols): Revert last change.
779 2002-10-14 Alan Modra <amodra@bigpond.net.au>
781 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
783 (lang_reasonable_defaults): Don't compare against false.
784 (size_input_section): Likewise.
785 (lang_size_sections_1): Likewise.
786 (lang_do_assignments): Likewise.
787 (lang_add_output): Likewise.
789 * Makefile.am: Run "make dep-am".
790 * Makefile.in: Regenerate.
791 * ldver.c: #include "bfdver.h".
793 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
795 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
797 * scripttempl/elfm68hc12.sc: Likewise.
799 2002-10-11 Alan Modra <amodra@bigpond.net.au>
801 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
803 * ldgram.y (memory_spec): Provide empty action.
804 (section <NAME>): Likewise.
806 2002-10-10 Jakub Jelinek <jakub@redhat.com>
808 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
809 they have OUTPUT_FORMAT not matching actual output format.
810 * ldlang.c (lang_get_output_target): New function.
811 (open_output): Use it.
812 * ldlang.h (lang_get_output_target): New prototype.
814 2002-10-10 Alan Modra <amodra@bigpond.net.au>
816 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
817 when orphan is .rel, .rela when orphan is .rela.
818 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
819 first. Remove outsecname var.
821 2002-10-09 Richard Shann <richard.shann@superh.com>
822 Stephen Clarke <stephen.clarke@superh.com>
824 * Makefile.am: Add eshelf32_linux.o and
825 eshlelf32_linux.o, new emulations for sh64 Linux.
826 * Makefile.in: Regenerate.
827 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
828 * emulparams/shelf32_linux.sh: New file.
829 * emulparams/shlelf32_linux.sh: New file.
831 2002-10-08 H.J. Lu <hjl@gnu.org>
833 * ldlang.c (lang_file_exist): Removed.
834 (new_afile): Revert the last change.
835 * ldlang.h (lang_file_exist): Removed.
836 * lexsup.c (parse_args): Revert the last change.
838 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
840 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
842 (make_one): Create _nm_<symbol> for data only.
844 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
846 * ldlang.c (lang_file_exist): New function.
847 (new_afile): Abort if the filename to be added matches the linker
849 * ldlang.h: Add prototype for lang_file_exist.
850 * lexsup.c (parse_args): Abort if the output filename matches
851 one of the input filenames.
853 2002-10-02 Alan Modra <amodra@bigpond.net.au>
855 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
857 2002-09-30 Alan Modra <amodra@bigpond.net.au>
859 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
860 * scripttempl/elfm68hc11.sc: Likewise.
861 * scripttempl/elfm68hc12.sc: Likewise.
863 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
864 reloc sections just before .rel.plt/.rela.plt.
865 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
866 Only put loadable reloc sections in hold_rel.
868 2002-09-29 H.J. Lu <hjl@gnu.org>
870 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
872 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
874 From "Anita Kulkarni" <AnitaK@kpit.com>
875 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
878 2002-09-25 Alan Modra <amodra@bigpond.net.au>
880 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
882 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
883 SEGMENT_SIZE alignment.
884 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
885 (SEGMENT_SIZE): Define.
887 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
888 (fold_binary): Correct abs - non-abs case.
889 (fold_trinary): New. Split out from exp_fold_tree.
891 2002-09-24 Alan Modra <amodra@bigpond.net.au>
893 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
894 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
895 for start of .data, instead align up to 256M boundary.
896 * scripttempl/aix.sc: Likewise.
898 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
900 * scripttempl/i386go32.sc: Handle bss unique sections.
902 2002-09-21 Alan Modra <amodra@bigpond.net.au>
904 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
906 2002-09-17 Stan Cox <scox@redhat.com>
908 * emulparams/elf32bmipn32-defs.sh: New file.
909 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
910 * emulparams/elf32btsmipn32.sh: Likewise.
911 * emulparams/elf64bmip.sh: Likewise.
912 * emulparams/elf64btsmip.sh: Likewise.
914 2002-09-16 Bruno Haible <bruno@clisp.org>
916 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
918 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
921 2002-09-11 Nick Clifton <nickc@redhat.com>
923 * NEWS: New TI port supports both C4x and C3x series of DSPs.
925 * po/tr.po: Updated Turkish translation.
927 2002-09-06 Jeffrey A Law (law@redhat.com)
929 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
931 2002-09-02 Nick Clifton <nickc@redhat.com>
933 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
935 * emulparams/v850.sh (TEMPLATE_NAME): Define.
937 2002-08-30 Nick Clifton <nickc@redhat.com>
939 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
940 used. Change INSN to start at 0x01000000 and extend for
941 256K (ignoring holes). Start the STACK on a word aligned
943 (.rodata): Start it at the READONLY_START_ADDR.
945 2002-08-30 Alan Modra <amodra@bigpond.net.au>
947 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
949 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
951 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
952 added makefile targets for this file.
953 * Makefile.in: Regenerate.
954 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
955 * NEWS: Mention new port.
957 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
959 * emulparams/tic3xcoff.sh: New file.
960 * emulparams/tic4xcoff.sh: New file.
961 * scripttempl/tic3xcoff.sc: New file.
962 * scripttempl/tic4xcoff.sc: New file.
964 2002-08-28 Alan Modra <amodra@bigpond.net.au>
966 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
967 strtoul and strtoull with bfd_scan_vma.
968 (gld${EMULATION_NAME}_read_file): Likewise.
970 2002-08-28 Alan Modra <amodra@bigpond.net.au>
972 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
974 2002-08-27 Egor Duda <deo@logos-m.ru>
976 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
977 Add symbols for application to access them.
979 2002-08-27 Nick Clifton <nickc@redhat.com>
981 * emultempl/armelf.em: Revert this patch, it is not needed.
983 2002-08-22 Adam Nemet <anemet@lnxw.com>
985 2002-08-20 Dan Kegel <dank@kegel.com>
987 * configure.in: added --with-lib-path argument to ld's configure
989 * ld/NEWS: Document new switch.
990 * ld/README: Mention new switch.
991 * configure: Regenerate.
992 * Makefile.in: Regenerate.
995 2001-04-25 Christopher Faylor <cgf@cygnus.com>
997 * Makefile.in (LIB_PATH): Make configurable.
998 (GENSCRIPTS): Set LIB_PATH in environment.
999 * configure.in: Substitute LIB_PATH.
1001 2002-08-22 Adam Nemet <anemet@lnxw.com>
1003 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1004 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1005 depending on the type of the function.
1006 (arm_elf_convert_thumb_symbol_to_address): New function.
1008 2002-08-22 Graeme Peterson <gp@qnx.com>
1010 * Makefile.am: Add esh{l}elf_nto.o files.
1011 * Makefile.in: Regenerate.
1012 * configure.tgt: Add support for sh-**-nto* targets.
1013 * emulparams/shelf_nto.sh: New file.
1014 * emulparams/shlelf_nto.sh: New file.
1016 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1018 * ldlang.c (offsetof): Define if not defined.
1020 2002-08-14 H.J. Lu <hjl@gnu.org>
1022 * configure.tgt: Always enable 64bit emulations for 32bit
1025 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1027 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1028 (MAXPAGESIZE): Set to 1.
1030 * ld.h (ALIGN_N): Delete.
1031 * ldexp.h (align_n): Declare.
1032 * ldexp.c (align_n): New function.
1033 (fold_binary): Use align_n instead of ALIGN_N.
1034 (exp_fold_tree): Likewise.
1035 * ldlang.c (lang_size_sections_1): Likewise.
1036 (lang_one_common): Likewise.
1037 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1039 2002-07-31 Graeme Peterson <gp@qnx.com>
1041 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1042 * Makefile.am: Add eelf32{l}ppcnto.o files.
1043 * Makefile.in: Regenerate.
1044 * emulparams/elf32lppcnto.sh: New file.
1045 * emulparams/elf32ppcnto.sh: New file.
1047 2002-08-07 H.J. Lu <hjl@gnu.org>
1049 * ld.texinfo: Document --no-undefined-version.
1051 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1052 `script.' fields to 0.
1054 * ldmain.c (main): Initialize the allow_undefined_version to
1057 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1058 (ld_options): Add --no-undefined-version.
1059 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1061 2002-08-07 Nick Clifton <nickc@redhat.com>
1063 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1064 an interworking bfd if there are input bfds. (107501)
1066 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1068 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1071 2002-08-01 Nick Clifton <nickc@redhat.com>
1073 * emulparams/armelf.sh: Revert previous delta.
1074 * scripttempl/elf.sc: Revert previous delta.
1076 2002-07-31 H.J. Lu <hjl@gnu.org>
1078 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1079 --enable-64-bit-bfd.
1081 2002-07-31 H.J. Lu <hjl@gnu.org>
1083 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1084 64bit BFD is selected.
1086 2002-07-31 H.J. Lu <hjl@gnu.org>
1088 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1089 if 64bit BFD is selected.
1091 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1093 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1094 link_info.common_skip_ar_aymbols.
1095 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1097 * ldmain.c (main): Initialize new field
1098 link_info.common_skip_ar_aymbols.
1100 2002-07-31 Adam Nemet <anemet@lnxw.com>
1102 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1104 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1107 2002-07-31 Nick Clifton <nickc@redhat.com>
1109 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1110 of the PDP-11 and 2.11BSD a.out support.
1112 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1114 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1115 for n32 ABI support.
1116 * Makefile.in: Regenerate.
1117 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1118 n32 ABI emulations for these 64 bit targets.
1119 * emulparams/elf32bmipn32.sh: Expand comment.
1120 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1122 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1124 2002-07-30 Graeme Peterson <gp@qnx.com>
1126 * configure.tgt: Add support for arm-*-nto target.
1127 * Makefile.am: Add earmnto.o file.
1128 * Makefile.in: Regenerate.
1129 * NEWS: Mention port of ARM support to QNX.
1130 * emulparams/armnto.sh: New file.
1132 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1134 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1135 for relocatable link.
1136 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1139 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1141 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1144 2002-07-25 Nick Clifton <nickc@redhat.com>
1146 * po/sv.po: Updated Swedish translation.
1147 * po/es.po: Updated Spanish translation.
1148 * po/fr.po: Updated French translation.
1150 2002-07-24 Nick Clifton <nickc@redhat.com>
1152 * po/sv.po: Updated Swedish translation.
1153 * po/es.po: Updated Spanish translation.
1155 2002-07-23 Nick Clifton <nickc@redhat.com>
1157 * po/fr.po: Updated French translation.
1159 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1161 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1162 bomb on /DISCARD/ input section.
1163 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1164 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1166 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1168 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1171 2002-07-16 Denis Chertykov <denisc@overta.ru>
1172 Nick Clifton <nickc@redhat.com>
1173 Frank Ch. Eigler <fche@redhat.com>
1174 John Healy <jhealy@redhat.com>
1176 * configure.tgt: Add support for ip2k-elf.
1177 * Makefile.am: Add support for ip2k-elf.
1178 * Makefile.in: Regenerate.
1179 * emulparams/elf32ip2k.sh: New file.
1180 * scripttempl/ip2k.sc: New file
1181 * NEWS: Mention support for new port.
1183 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1185 * NEWS: Add 'Changes in 2.13'.
1187 2002-07-14 H.J. Lu <hjl@gnu.org>
1189 * ld.texinfo: Document a .symver takes precedence over a
1192 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1194 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1195 (COMMONPAGESIZE): Define.
1197 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1199 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1201 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1203 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1204 powerpc-*-openbsd* and sparc64-*-openbsd*.
1205 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1206 * Makefile.in: Regenerate.
1207 * emulparams/hppaobsd.sh: New file.
1209 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1211 * ldlang.c (print_wild_statement): Fix output formatting.
1213 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1215 * ldlang.c: (strip_excluded_output_sections): New function.
1216 (lang_process): Call it.
1217 (lang_size_sections_1): Revert 2002-06-10 change.
1219 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1221 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1223 * Makefile.in: Regenerate.
1225 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1227 * ldfile.c (ldfile_try_open_bfd): Formatting.
1229 * ldmisc.c (demangle): Move so that it doesn't intrude between
1230 vfinfo comment and body. Add comment.
1232 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1234 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1236 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1238 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1239 * ldlang.c (entry_sym): Likewise.
1240 (ldlang_undef_chain_list_type): Likewise.
1241 (lang_finish): Adjust references to entry_symbol.
1242 (lang_add_entry): Likewise.
1243 (lang_gc_sections): Use link_info.gc_sym_list.
1244 (lang_process): Set link_info.gc_sym_list.
1245 * ldlex.l: Include bfdlink.h.
1246 * ldmain.c (main): Init link_info.gc_sym_list.
1247 * emultempl/aix.em: Adjust references to entry_symbol.
1248 * emultempl/armcoff.em: Likewise.
1249 * emultempl/armelf.em: Likewise.
1250 * emultempl/pe.em: Likewise.
1251 * emultempl/ppc64elf.em (ppc_after_open): New function.
1252 (LDEMUL_AFTER_OPEN): Define.
1253 * emulparams/elf64ppc.sh: KEEP .opd sections.
1255 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1257 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1258 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1259 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1260 (EEPROM_START_ADDR): Define.
1261 (EEPROM_MEMORY): Define.
1262 * emulparams/m68hc12elf.sh: Likewise.
1263 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1264 section to put soft registers in .page0.
1265 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1267 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1269 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1270 section. Add ${RELOCATING-0}.
1272 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1274 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1275 (OTHER_SECTIONS): Define.
1276 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1277 (OTHER_SECTIONS): Undef.
1279 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1281 * ldmisc.c (demangle): Restore dots stripped from sym name.
1283 2002-06-25 H.J. Lu <hjl@gnu.org>
1285 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1286 * Makefile.in: Regenerated.
1288 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1290 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1291 the size of attached object files, to allow make the object files
1292 available via FTP or HTTP and to mention that the mail will be
1293 sent to a mailing list.
1295 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1297 * ld/configure.host (romp): Drop support.
1299 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1301 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1302 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1304 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1306 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1307 format specifier used to print BFD name.
1309 2002-06-18 Dave Brolley <brolley@redhat.com>
1311 From Catherine Moore, Michael Meissner, Jim Blandy:
1312 * emulparams/elf32frv.sh: New file.
1313 * configure.tgt: Support frv-*-*.
1314 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1315 (eelf32frv.c): New target.
1317 2002-06-17 Tom Rix <trix@redhat.com>
1319 * emultempl/elf32.em: gld*_get_script: Check for
1320 GENERATE_COMBRELOC_SCRIPT.
1321 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1322 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1324 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1326 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1328 2002-06-12 H.J. Lu <hjl@gnu.org>
1330 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1331 false if xvec doesn't match.
1333 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1335 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1337 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1339 * ldexp.c: Replace CONST with const.
1340 * ldfile.c: Likewise.
1341 * ldfile.h: Likewise.
1342 * ldlex.l: Likewise.
1344 * pe-dll.h: Likewise.
1346 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1348 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1350 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1352 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1353 to -1 == implicit enable.
1354 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1355 initialize link_info.pei386_auto_import to -1 == implicit
1357 (gld_${EMULATION_NAME}_parse_args): When processing
1358 --enable-auto-import and --disable-auto-import options, use
1359 '1' and '0' instead of 'true' and 'false'.
1360 (pe_find_data_imports): Only issue message about auto-import
1361 when the feature is implicitly enabled. Downgrade message to
1362 informational instead of warning.
1364 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1366 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1368 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1370 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1371 HOSTING_CRT0 and HOSTING_LIBS.
1373 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1375 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1377 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1379 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1380 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1382 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1385 SEC_EXCLUDE sections when doing a relocatable link.
1387 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1389 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1390 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1391 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1392 (eshlelf64_nbsd.c): New rules.
1393 * Makefile.in: Regenerate.
1394 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1395 (sh64-*-netbsd*): New targets.
1396 * emulparams/shelf32_nbsd.sh: New file.
1397 * emulparams/shelf64_nbsd.sh: New file.
1398 * emulparams/shlelf32_nbsd.sh: New file.
1399 * emulparams/shlelf64_nbsd.sh: New file.
1401 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1403 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1405 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1407 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1408 C++ constructors/destructors, loosely based on the m68hc11 port.
1410 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1412 * Makefile.in: Regenerate.
1413 * aclocal.m4: Regenerate.
1414 * config.in: Regenerate.
1415 * configure: Regenerate.
1417 2002-05-31 Graeme Peterson <gp@qnx.com>
1419 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1420 (ei386nto.c): Add rule.
1421 * Makefile.in: Regenerate.
1422 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1423 * emulparams/i386nto.sh: New file.
1425 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1427 * NEWS: Add entry for VAX ELF support.
1429 2002-05-29 Matt Thomas <matt@3am-software.com>
1430 Jason Thorpe <thorpej@wasabisystems.com>
1432 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1434 (evaxnbsd.c): New rules.
1435 * Makefile.in: Regenerate.
1436 * configure.tgt (vax-*-netbsdelf*)
1438 (vax-*-netbsd*): New targets.
1439 * emulparams/elf32vax.sh: New file.
1440 * emulparams/vaxnbsd.sh: New file.
1442 2002-05-29 Adam Nemet <anemet@lnxw.com>
1444 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1445 bfd_for_interwork, instead add glue sections to each input bfd.
1446 (bfd_for_interwork): New global.
1447 (arm_elf_set_bfd_for_interworking): New function.
1448 (arm_elf_before_allocation): Use it.
1450 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1452 * Makefile.am: Add DLX make target.
1453 * configure.tgt: Add DLX configuration.
1454 * Makefile.in: Regenerate.
1455 * emulparams/elf32_dlx.sh: New file
1456 * scripttempl/dlx.sc: New file
1458 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1460 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1461 * Makefile.in: Regenerate.
1462 * emulparams/elf_chaos.sh: Use elf_chaos script.
1463 * scripttempl/elf_chaos.sc: New file.
1465 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1467 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1468 addresses and regions from here...
1469 (lang_get_regions): ...to this new function.
1470 (lang_leave_output_section_statement): Use lang_get_regions.
1471 (lang_leave_overlay): Likewise.
1472 * mri.c (mri_draw_tree): Pass null as last argument to
1473 lang_leave_output_section_statement.
1474 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1475 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1476 * emultempl/pe.em (gld*_place_orphan): Likewise.
1478 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1480 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1482 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1484 * ldemul.c: Fix formatting.
1485 * ldfile.c: Likewise.
1486 * pe-dll.c: Likewise.
1487 * pe-dll.h: Likewise.
1489 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1491 * ldlang.c (lang_process): Formatting, grammar.
1493 * ldlex.l: Use #include "" instead of <> for local header files.
1495 2002-05-24 TAMURA Kent <kent@netbsd.org>
1497 * configure.tgt: Add a target for i386-netbsdpe.
1499 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1501 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1502 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1503 output section if necessary. Handle .tbss.
1504 (lang_size_sections): Clear _raw_size for .tbss section
1505 (it allocates space in PT_TLS segment only).
1506 * ldwrite.c (build_link_order): Build link order for .tbss too.
1508 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1510 * configure.in: Correct spelling of AC_PREREQ.
1512 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1514 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1516 (autofilter_objlist): Add crtbegin.o, crtend.o.
1518 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1520 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1521 (longopts): Add new option --exclude-libs.
1522 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1523 (gld_${EMULATION_NAME}_parse_args): Use it.
1524 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1525 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1526 from whole archives.
1527 (pe_dll_add_excludes): Set excludes->type.
1528 (auto_export): Add new variable libname and set to archive basename if
1529 abfd. Use it when filtering default and user-specified libarary
1530 excludes. Let string "ALL" mean all libs when filtering user-specified
1532 * ld.texinfo: Document --exclude-libs.
1534 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1536 * ldemul.c (ldemul_new_vers_pattern): New function.
1537 * ldemul.h (ldemul_new_vers_pattern): Declare.
1538 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1539 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1540 * emultempl/ppc64elf.em (dotsyms): New static var.
1541 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1542 (LDEMUL_NEW_VERS_PATTERN): Define.
1543 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1544 (PARSE_AND_LIST_LONGOPTS): Likewise.
1545 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1546 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1548 * emultempl/armcoff.em: Likewise.
1549 * emultempl/armelf_oabi.em: Likewise.
1550 * emultempl/beos.em: Likewise.
1551 * emultempl/elf32.em: Likewise.
1552 * emultempl/generic.em: Likewise.
1553 * emultempl/gld960.em: Likewise.
1554 * emultempl/gld960c.em: Likewise.
1555 * emultempl/linux.em: Likewise.
1556 * emultempl/lnk960.em: Likewise.
1557 * emultempl/m68kcoff.em: Likewise.
1558 * emultempl/mipsecoff.em: Likewise.
1559 * emultempl/pe.em: Likewise.
1560 * emultempl/sunos.em: Likewise.
1561 * emultempl/ticoff.em: Likewise.
1562 * emultempl/vanilla.em: Likewise.
1564 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1566 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1567 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1568 (LIB_SEARCH_DIRS): No need to use "tr".
1569 (COMPILE_IN): Only set for native targets.
1570 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1571 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1572 * configure.tgt (powerpc*): Set tdir_*.
1573 (powerpcle*): Correct targ_extra_emuls.
1574 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1575 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1577 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1579 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1580 calling lang_add_entry.
1582 2002-05-21 H.J. Lu (hjl@gnu.org)
1584 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1586 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1588 * ld.texinfo: Updated for --allow-multiple-definition and
1591 * ldmain.c (main): Initialize the allow_multiple_definition
1594 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1595 (ld_options): Add --allow-multiple-definition.
1596 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1598 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1600 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1601 (earmelfb_nbsd.c): New rule.
1602 * Makefile.in: Regenerate.
1603 * configure.tgt (armeb-*-netbsdelf*): New target.
1604 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1605 (arm-*-netbsd*): Likewise.
1606 * emulparams/armelfb_nbsd.sh: New file.
1608 2002-05-18 Tom Rix <trix@redhat.com>
1610 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1613 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1615 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1616 * Makefile.in: Regenerate.
1617 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1619 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1621 * emulparams/avr1.sh: New file.
1622 * emulparams/avr2.sh: New file.
1623 * emulparams/avr3.sh: New file.
1624 * emulparams/avr4.sh: New file.
1625 * emulparams/avr5.sh: New file.
1626 * scripttempl/avr.sc: New file.
1628 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1630 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1631 (lang_place_orphans): Abort if just_syms_flag.
1633 2002-05-10 Tom Rix <trix@redhat.com>
1635 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1636 architecture and machine information in the output bfd.
1637 (gld*_before_parse): Remove old arch and machine code.
1638 (choose_target): Rename to gld*_choose_target.
1639 (rtld): Change type to int.
1640 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1641 objects in XCOFF archives.
1642 * ldfile.h: Update copyright date.
1644 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1646 * ldmain.c (main): Enable -z combreloc by default.
1648 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1650 * Makefile.am: Honour DESTDIR.
1651 * Makefile.in: Regenerate.
1653 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1655 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1656 (lang_enter_overlay): Remove the last two parameters.
1657 (lang_leave_overlay): Take them here instead.
1658 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1659 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1660 than lang_enter_overlay.
1661 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1662 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1663 (lang_size_sections_1): Evaluate it.
1664 (lang_leave_output_section_statement): Rework LMA lookup.
1665 (overlay_lma, overlay_nocrossrefs): Remove.
1666 (lang_enter_overlay): Remove LMA and crossref arguments.
1667 (lang_enter_overlay_section): Don't set the LMA here.
1668 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1669 assignment to the last section's update_dot_tree. Unconditionally
1670 use the load and run-time regions specified in the OVERLAY statement.
1671 Likewise the first section's LMA. Only set the other sections' LMAs
1672 when no load region is given.
1674 2002-05-06 Nick Clifton <nickc@redhat.com>
1676 * po/sv.po: New translation.
1678 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1680 * emultempl/hppaelf.em (build_section_lists): New function.
1681 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1682 and build_section_lists.
1684 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1686 * ld.h: Fix formatting.
1687 * ldexp.c: Likewise.
1688 * ldfile.c: Likewise.
1689 * ldlang.c: Likewise.
1690 * ldmain.c: Likewise.
1691 * lexsup.c: Likewise.
1692 * pe-dll.c: Likewise.
1694 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1696 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1697 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1698 (build_section_lists): Do output_section tests here.
1700 2002-04-30 Tom Rix <trix@redhat.com>
1702 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1704 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1706 Long branch stubs, multiple stub sections.
1707 * emultempl/ppc64elf.em: Include ldctor.h.
1708 (stub_file): New var.
1709 (group_size): New var.
1710 (ppc_create_output_section_statements): New function.
1711 (struct hook_stub_info): New.
1712 (hook_in_stub): New function.
1713 (ppc_add_stub_section): New function.
1714 (ppc_layout_sections_again): New function.
1715 (build_section_lists): New function.
1716 (gld${EMULATION_NAME}_finish): Rewrite.
1717 (real_func): New var.
1718 (ppc_for_each_input_file_wrapper): New function.
1719 (ppc_lang_for_each_input_file): New function.
1720 (lang_for_each_input_file): Define.
1721 (PARSE_AND_LIST_PROLOGUE): Define.
1722 (PARSE_AND_LIST_LONGOPTS): Define.
1723 (PARSE_AND_LIST_OPTIONS): Define.
1724 (PARSE_AND_LIST_ARGS_CASES): Define.
1725 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1727 2002-04-30 Tom Rix <trix@redhat.com>
1729 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1730 -blibpath, -bnolibpath support.
1732 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1734 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1735 (eelf32ppcwindiss.c): New target.
1736 * Makefile.in: Regenerated.
1737 * configure.tgt: Add support for powerpc-*-windiss.
1738 * emulparams/elf32ppcwindiss.sh: New file.
1740 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1742 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1743 * ldexp.c (exp_print_token): Add "infix_p" argument.
1744 (exp_print_tree): Update accordingly.
1746 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1748 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1749 * Makefile.in: Regenerate.
1750 * mpw-elfmips.c: Delete.
1751 * mpw-eppcmac.c: Delete.
1752 * mpw-esh.c: Delete.
1753 * mpw-idtmips.c: Delete.
1755 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1757 * emulparams/shelf32.sh (MACHINE): Now sh5.
1759 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1761 * ldgram.y: Fix syntax warning.
1763 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1765 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1766 to prevent "-n" from being taken as an abbreviation for
1767 "--no-pipeline-knowledge".
1769 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1771 * ldlang.c (lang_size_sections_1): Don't complain about
1772 SEC_NEVER_LOAD sections having no memory region specified.
1774 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1776 2002-04-07 matthew green <mrg@redhat.com>
1778 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1780 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1782 * dep-in.sed: Cope with absolute paths.
1783 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1785 * Makefile.in: Regenerate.
1787 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1789 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1791 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1793 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1794 is smaller than maximum, round dot up to common page boundary.
1796 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1798 * configure.host: Set up for generic hosts first, then tweak as
1799 necessary in more specific targets.
1800 (HOSTING_LIBS): Include libgcc_eh.a if found.
1802 2002-03-23 Andreas Jaeger <aj@suse.de>
1804 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1806 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1808 * Makefile.am: Run "make dep-am".
1809 * Makefile.in: Regenerate.
1811 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1813 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1815 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1817 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1818 add the symbol to the linker hash table immediately.
1819 (lang_place_undefineds): Split symbol creation out..
1820 (insert_undefined): ..to here.
1822 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1824 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1825 the contents of the buffer returned from basename function will are
1826 getting overwritten while still being used.
1828 2002-03-18 Jan Hubicka <jh@suse.cz>
1829 Andreas Jaeger <aj@suse.de>
1830 Andreas Schwab <schwab@suse.de>
1832 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1833 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1834 set libraries to default to lib64 paths.
1836 2002-03-18 Tom Rix <trix@redhat.com>
1838 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1839 * configure.tgt : Same.
1840 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1841 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1842 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1843 emulation parameters for better -b32, -b64 support.
1844 * emulparms/aixrs6.sh : Same.
1845 * emulparms/ppcmacos.sh : Same.
1846 * emultempl/aix.em (choose_target) : Use new emulation parameters
1847 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1848 * Makefile.in : Regenerate.
1850 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1852 * po/fr.po: Updated version.
1854 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1856 * ldmain.c (main): Move .text readonly flag fudges from here..
1857 * ldlang.c (lang_process): ..to here.
1859 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1861 * ldlang.c (lang_check): Remove the word size check added in last
1862 change. Treat emitrelocations case as for relocatable links.
1864 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1866 * po/fr.po: Updated version.
1868 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1870 * ldlang.c (lang_check): Do relocatable link checks first, so that
1871 warn_mismatch can't override. Check compatible and word size too.
1873 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1875 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1877 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1879 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1882 2002-03-04 H.J. Lu <hjl@gnu.org>
1884 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1885 .fini_array in the data segment.
1887 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1889 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1891 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1893 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1894 .init_array, and .fini_array.
1896 2002-02-20 Andreas Schwab <schwab@suse.de>
1898 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1899 .IA64_unwind* in a relocatable link.
1901 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1903 * NEWS: Mark 2.12 branch.
1905 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1907 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1908 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1910 2002-02-18 Tom Rix <trix@redhat.com>
1912 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1913 (gld*_before_allocation): Same.
1914 (gld*_create_output_section_statements): Generate
1915 __rtinit if run time linking. Add librtl.a to the link.
1916 (gld*_read_file): Clean.
1918 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1920 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1922 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1924 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1925 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1926 and eelf64alpha_fbsd.
1927 * Makefile.in: Regenerate.
1928 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1929 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1930 use a FreeBSD-specific emulation rather than the psABI one.
1931 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1932 for all FreeBSD ELF systems.
1933 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1935 * emulparams/elf32ppc_fbsd.sh: Likewise.
1936 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1937 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1938 * emulparams/elf64alpha_fbsd.sh: Likewise.
1939 * emulparams/elf_i386_fbsd.sh: Likewise.
1940 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1942 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1944 * po/tr.po: Updated version.
1946 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1948 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1951 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1953 * emultempl/mmo.em (mmo_after_open): Don't call
1954 _bfd_mmix_check_all_relocs when producing ELF output.
1956 2002-02-15 Richard Henderson <rth@redhat.com>
1958 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1959 definition. Emit a unop+nop pair.
1961 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1963 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1964 for presence of .MMIX.reg_contents.linker_allocated before early
1967 * NEWS: Mention support for MMIX.
1969 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1971 Support arbitrary length fill patterns.
1972 * ld.texinfo (Output Section Fill): Describe fill expressions.
1973 (FILL): Refer to the above.
1974 * ldexp.h (etree_value_type): Add "str" field.
1975 (union etree_union): Add "str" to "value" struct.
1976 (exp_bigintop): Declare.
1977 (exp_get_fill): Declare.
1978 * ldexp.c: Include "safe-ctype.h".
1979 (exp_intop): Set value.str to NULL.
1980 (exp_bigintop): New function.
1981 (new_rel): Pass in "str", and set new.str from it.
1982 (new_rel_from_section): Set new.str to NULL.
1983 (fold_name): Adjust calls to new_rel.
1984 (exp_fold_tree): Likewise.
1985 (exp_get_fill): New function.
1986 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1987 (INT): Returns a "bigint". Adjust all code handling INTs.
1988 (fill_opt): Returns a "fill".
1989 (fill_exp): Split out of fill_opt, use for FILL.
1990 * ldlang.h (struct _fill_type): New.
1991 (fill_type): Move typedef to ldexp.h.
1992 (lang_output_section_statement_type): "fill" is now a pointer.
1993 (lang_fill_statement_type): Likewise.
1994 (lang_padding_statement_type): Likewise.
1995 (lang_add_fill): Now takes a "fill_type *" param.
1996 (lang_leave_output_section_statement): Likewise.
1997 (lang_do_assignments): Likewise.
1998 (lang_size_sections): Likewise.
1999 (lang_leave_overlay_section): Likewise.
2000 (lang_leave_overlay): Likewise.
2001 * ldlang.c: Include ldgram.h after ldexp.h.
2002 (lang_output_section_statement_lookup): Adjust for fill_type change.
2003 (print_fill_statement): Likewise.
2004 (print_padding_statement): Likewise.
2005 (insert_pad): Now takes a "fill_type *" arg.
2006 (size_input_section): Likewise.
2007 (lang_size_sections_1): Likewise.
2008 (lang_size_sections): Likewise.
2009 (lang_do_assignments): Likewise.
2010 (lang_add_fill): Likewise.
2011 (lang_leave_output_section_statement): Likewise.
2012 (lang_leave_overlay_section): Likewise.
2013 (lang_leave_overlay): Likewise.
2014 Adjust all callers of the above function.
2015 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2016 starting with "0X" as well as "0x". Return bigint.str for hex
2017 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2018 Always use base 16 for numbers starting with "$".
2019 * ldmain.c: Include ldgram.h after ldexp.h.
2020 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2021 of bfd_fill_link_order.
2022 * pe-dll.c: Adjust lang_do_assignments calls.
2023 * emultempl/elf32.em: Likewise.
2024 * emultempl/hppaelf.em: Likewise.
2025 * emultempl/ppc64elf.em: Likewise.
2026 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2027 lang_add_assignment call.
2028 * emultempl/pe.em: Likewise.
2030 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2032 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2033 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2034 the pattern in question is not a regexp.
2035 * ldlang.c: Likewise.
2036 * ldlang.h: Likewise.
2037 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2039 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2041 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2042 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2043 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2044 * ldexp.c (exp_data_seg): New variable.
2045 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2046 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2047 (exp_fold_tree): Handle DATA_SEGMENT_END.
2048 Pass allocation_done when recursing instead of hardcoding
2049 lang_allocating_phase_enum.
2050 * ldexp.h (exp_data_seg): New.
2051 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2052 (lang_size_sections): New.
2053 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2054 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2055 if COMMONPAGESIZE is defined.
2056 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2057 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2058 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2059 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2060 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2063 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2065 * Makefile.in: Regenerate.
2067 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2069 * lexsup.c: Remove strtoul declaration.
2071 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2073 * ldmain.c: Add prototype for main ().
2074 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2075 * emultempl/lnk960.em (lnk960_choose_target): Function should
2078 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2080 * ldlang.c (entry_section): New initialised variable.
2081 (lang_finish): Use it.
2082 * ldlang.h (entry_section): Declare.
2083 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2084 entry_section to ".opd".
2086 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2088 * ld.texinfo (Options): Add back in -nostdlib documentation,
2089 which had been inadvertently removed.
2091 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2093 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2094 register section vma to a sane value after emitting error. Make
2095 fatal conditions cause program exit when emitting message.
2097 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2099 * configure.tgt: Add or32-*-rtems target.
2101 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2103 Contribute sh64-elf.
2104 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2105 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2106 in OTHER_RELOCATABLE_SECTIONS.
2107 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2108 * emulparams/shelf32.sh (STACK_ADDR): Define.
2109 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2110 (OTHER_SECTIONS): this. Removed stack settings.
2111 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2112 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2113 2001-03-12 DJ Delorie <dj@redhat.com>
2114 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2115 relaxing if any shmedia or mixed sections are found.
2116 2001-03-07 DJ Delorie <dj@redhat.com>
2117 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2118 einfo. Gracefully decline to output to non-elf formats.
2119 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2120 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2121 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2122 * emulparams/shelf32.sh: Ditto.
2123 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2124 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2126 2001-01-10 Ben Elliston <bje@redhat.com>
2127 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2128 non-portable shell constructs. From Hans-Peter Nilsson.
2129 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2130 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2131 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2132 dependencies to the shell script include chain.
2133 * Makefile.in: Regenerate.
2134 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2135 * emultempl/sh64elf.em: Update and tweak comments.
2136 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2137 make a .cranges section SEC_IN_MEMORY.
2138 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2139 * emultempl/sh64elf.em
2140 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2141 .cranges section found to be necessary; continue and set stored
2142 section contents flags for sections with non-mixed contents.
2143 Use a struct sh64_section_data container and sh64_elf_section_data
2144 to store contents-type flags.
2145 Remove unused update of "isec".
2146 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2147 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2148 access contents-type flags. Assert that the associated container
2149 is initialized. Use that container, not elf_gp_size, to hold size
2150 of linker-generated cranges contents.
2151 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2152 * emultempl/sh64elf.em
2153 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2154 there's already a .cranges section. When section flag difference
2155 is found, don't NULL-check cranges a second time. Tweak comments.
2156 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2157 merging, not max size, as size of ld-generated .cranges contents.
2158 Don't set ELF section flags in output section. When checking for
2159 needed .cranges descriptors, don't use a variable; compare
2160 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2162 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2163 * emultempl/sh64elf.em: New file.
2164 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2165 * Makefile.in: Regenerate.
2166 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2167 (OTHER_RELOCATING_SECTIONS): Ditto.
2168 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2169 * emulparams/shlelf32.sh: Stub out all settings except
2170 OUTPUT_FORMAT. Source shelf32.sh.
2171 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2172 OTHER_RELOCATING_SECTIONS.
2173 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2174 * emulparams/shlelf64.sh: Stub out all settings except
2175 OUTPUT_FORMAT. Source shelf64.sh.
2176 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2177 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2179 (DATA_START_SYMBOLS): Define, provide ___data.
2180 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2181 for consecutive .data section.
2182 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2183 section after .data section.
2184 * emulparams/shlelf64.sh: Ditto.
2185 * emulparams/shelf32.sh: Ditto.
2186 (ALIGNMENT): Define to 8.
2187 * emulparams/shelf32.sh: Ditto.
2188 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2189 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2190 built-in linker scripts.
2191 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2192 * emulparams/shlelf64.sh: New.
2193 * emulparams/shelf64.sh: New.
2194 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2196 * Makefile.am: Add support for shlelf64 and shelf64.
2197 * Makefile.in: Regenerate.
2198 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2199 * configure.tgt (sh64-*-elf*): Add shelf as default.
2200 Add shlelf to targ_extra_emuls.
2201 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2202 * emulparams/shelf32.sh: New file.
2203 * emulparams/shlelf32.sh: New file.
2204 * Makefile.am: Add support for shlelf32 and shelf32.
2205 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2206 * Makefile.in: Regenerate.
2208 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2210 * ldlang.c (lang_reset_memory_regions): Rename from
2211 reset_memory_regions. Change all callers. Make public.
2212 * ldlang.h (lang_reset_memory_regions): Prototype.
2213 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2214 lang_reset_memory_regions before lang_size_sections.
2215 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2216 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2218 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2220 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2221 arithmetic when checking for too many global registers.
2223 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2225 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2226 (ehppanbsd.c): New rule.
2227 * Makefile.in: Regenerate.
2228 * configure.tgt (hppa*-*-netbsd*): New target.
2229 * emulparams/hppalinux.sh: Add comment to check other files
2230 that source this file it is modified, and list which
2232 * emulparams/hppanbsd.sh: New file.
2234 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2236 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2239 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2241 Support on-demand global register allocation from
2242 R_MMIX_BASE_PLUS_OFFSET relocs.
2243 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2244 mmix_set_reg_section_vma. Call
2245 _bfd_mmix_finalize_linker_allocated_gregs.
2246 (mmix_before_allocation): New function.
2247 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2248 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2249 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2250 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2251 before .MMIX.reg_contents.
2252 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2253 (mmo_after_open): New function.
2254 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2255 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2256 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2258 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2260 * emulparams/or32.sh: New file.
2261 * emulparams/or32elf.sh: New file.
2262 * scripttempl/or32.sc: New file.
2263 * configure.tgt : Add support for or32.
2264 * configure: Regenerate
2265 * Makefile.am: Add support for or32.
2266 * Makefile.in: Regenerate.
2267 * NEWS: Mention support for or32.
2268 * po/ld.pot: Regenerate.
2270 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2271 Mitch Lichtenberg <mpl@broadcom.com>
2273 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2274 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2275 reloc creation (ld --embedded-relocs).
2277 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2279 * configure: Regenerated.
2281 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2283 * Makefile.am (install): Depend on install-info.
2284 * Makefile.in: Regenerate.
2286 2002-01-26 Christian Rose <menthos@menthos.com>
2288 * ldmain.c (main): Use full sentences to ease translation.
2290 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2292 * po/fr.po: Updated version.
2294 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2296 * po/es.po: Updated version.
2298 2002-01-25 Andreas Jaeger <aj@suse.de>
2300 * ldlex.l (yy_input): Correct error check.
2302 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2304 * ldmisc.c (demangle): Put back dots when string not demangled.
2306 2002-01-22 Richard Henderson <rth@redhat.com>
2308 * emulparams/elf64alpha.sh (NOP): Use unop.
2310 2002-01-21 Andreas Jaeger <aj@suse.de>
2312 * ldlex.l: Use fread instead of read.
2314 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2316 * configure.tgt (ia64-*-netbsd*): New target.
2318 2002-01-21 H.J. Lu <hjl@gnu.org>
2320 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2322 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2324 2002-01-18 Andreas Jaeger <aj@suse.de>
2326 * ldver.c (ldversion): Update year.
2328 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2330 * po/ld.pot: Regenerate.
2332 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2334 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2335 * Makefile.in: Regenerate.
2336 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2337 * emultempl/ppc64elf.em: New file.
2339 2002-01-15 DJ Delorie <dj@redhat.com>
2341 * scripttempl/pe.sc: Add support for constructor priorities.
2343 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2345 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2346 * emulparams/avr23xx.sh: Likewise.
2347 * emulparams/avr4433.sh: Likewise.
2348 * emulparams/avr44x4.sh: Likewise.
2349 * emulparams/avr85xx.sh: Likewise.
2350 * emulparams/avrmega103.sh: Likewise.
2351 * emulparams/avrmega161.sh: Likewise.
2352 * emulparams/avrmega603.sh: Likewise.
2353 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2355 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2357 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2358 archive is excluded.
2360 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2362 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2363 (eshelf_nbsd.c): New rule.
2364 (eshlelf_nbsd.c): New rule.
2365 * Makefile.in: Regenerate.
2366 * configure.tgt (sh*le-*-netbsdelf*): New target.
2367 (sh*-*-netbsdelf*): New target.
2368 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2369 * ld/emulparams/shelf_nbsd.sh: New emulation.
2370 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2372 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2374 * po/es.po: New file: Spanish translation.
2375 * configure.in (ALL_LINGUAS): Add es.
2376 * configure: Regenerate.
2378 2002-01-06 John Marshall <jmarshall@acm.org>
2380 * ld.texinfo: Note that --emit-relocs is currently only
2381 implemented for ELF.
2383 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2385 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2386 of bfd_section_list_remove and bfd_section_list_insert macros.
2387 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2388 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2390 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2392 * configure.tgt (x86_64-*-netbsd*): New target.
2394 2001-12-21 Tom Rix <trix@redhat.com>
2396 (gld*_create_output_section_statements): New function.
2397 For -binitfini support.
2398 * emultempl/aix.em (gld*_before_parse): Fix comment.
2399 * emultempl/aix.em (gld*_parse_args): Fix comment.
2401 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2403 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2405 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2407 * configure.tgt (arm-*-netbsdelf*): Add target.
2408 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2409 * emulparams/armelf_nbsd.sh: Added.
2410 * Makefile.am: Add rules for earmelf_nbsd.
2411 * Makefile.in: Regenerate.
2413 2001-12-19 Andreas Jaeger <aj@suse.de>,
2414 Susanne Oberhauser <froh@suse.de>
2416 * configure.host: Add rules for x86_64-*linux-gnu. Change
2417 s390x-linux entry to use gcc to report configuration, replace gcc
2418 with $CC in s390-linux
2420 2001-12-19 Andreas Jaeger <aj@suse.de>
2422 * ld.texinfo (VERSION): Fix markup.
2424 2001-12-18 matthew green <mrg@eterna.com.au>
2426 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2427 (m68kelfnbsd.c): New rule.
2428 * Makefile.in: Regenerate.
2429 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2430 (m68*-*-netbsd*4k*): .. this.
2431 (m68*-*-netbsdelf*): New target.
2432 (m68*-*-netbsd*): Also include ELF support.
2433 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2434 * emulparams/m68kelfnbsd.sh: New emulation.
2436 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2438 * ldgram.y (vers_node): Support anonymous version tags.
2439 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2440 tag is not defined together with non-anonymous versions.
2441 * ld.texinfo: Document it.
2443 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2445 * po/tr.po: New file: Turkish translation.
2446 * configure.in (ALL_LINGUAS): Add tr.
2447 * configure: Regenerate.
2449 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2451 * Makefile.am: Add rules for eelf64alpha_nbsd.
2452 * Makefile.in: Regenerate.
2453 * configure.tgt (alpha*-*-netbsd*): Set
2454 targ_emul to elf64alpha_nbsd.
2455 * emulparams/elf64alpha_nbsd.sh: Added.
2457 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2460 section_tail when fiddling with section list.
2461 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2462 broken into separate strings to make translation easier.
2463 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2464 fiddling with section list.
2465 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2467 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2469 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2471 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2473 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2475 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2477 * emultempl/elf32.em (finish): Supply output_bfd
2478 to bfd_elf*_discard_info.
2479 (OPTION_EH_FRAME_HDR): Define.
2480 (longopts): Add --eh-frame-hdr.
2481 (parse_args): Handle it.
2482 (list_options): Add --eh-frame-hdr to help.
2483 * emultempl/hppaelf.em (finish): Supply output_bfd
2484 to bfd_elf*_discard_info.
2485 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2487 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2489 * lexsup.c (parse_args): Don't pass shortopts to second call to
2490 getopt functions. Restore optind rather than decrementing before
2491 second call. Remove errind as it now duplicates last_optind.
2493 2001-12-11 Christopher Faylor <cgf@redhat.com>
2495 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2497 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2498 Richard Henderson <rth@redhat.com>
2500 * Makefile.am: Add support for xstormy16.
2501 * configure.tgt: Add support for xstormy16.
2502 * Makefile.in: Regenerate.
2503 * emulparams/elf32xstormy16.sh: New file.
2504 * scripttempl/xstormy16.sc: New file.
2506 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2508 * Makefile.in (LIB_PATH): Make configurable.
2509 (GENSCRIPTS): Set LIB_PATH in environment.
2510 * configure.in: Substitute LIB_PATH.
2511 * configure: Regenerate.
2512 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2513 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2515 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2517 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2518 describing the -N option so that it is easier to translate into
2521 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2523 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2524 statements describing a single option with a single, newline
2525 escaped fprintf. This allows better translation into other
2528 * ldmain.c (add_archive_element): Combine multiple strings
2529 into a single string to permit better translation into other
2532 2001-12-05 Tom Rix <trix@redhat.com>
2534 * Makefile.am: Remove eaixppc64.
2535 * Makefile.in: Regenerate.
2537 2001-12-04 Tom Rix <trix@redhat.com>
2539 * emultempl/aix.em (choose_target): Change default target to
2540 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2542 (gld*_read_file): Fix typo.
2543 (change_symbol_mode): Add prototype.
2546 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2547 * emulparams/aixrs6.sh : Same.
2548 * emulparams/ppcmacos.sh : Same.
2549 * emulparams/aixppc64.sh : Delete file.
2550 * emultempl/aix.em : Formatting changes.
2552 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2554 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2555 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2557 (OTHER_END_SYMBOLS): Fix formatting.
2558 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2559 (OTHER_END_SYMBOLS): Fix formatting.
2561 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2563 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2565 2001-12-02 Tom Rix <trix@redhat.com>
2567 * configure.tgt : Remove eaixppc64 emulations.
2568 * Makefile.in : Remove eaixppc64.c
2569 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2570 (ldemul_default_target): Same.
2571 * emultempl/gld960.em (gld960_choose_target): Same.
2572 * emultempl/gld960c.em (gld960_choose_target): Same.
2573 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2574 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2575 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2576 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2577 * emultempl/aix.em (choose_target): New function. Handle emulation of
2580 2001-11-27 H.J. Lu <hjl@gnu.org>
2582 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2583 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2584 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2585 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2586 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2587 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2588 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2589 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2591 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2594 (REL_SDATA): Likewise.
2595 (REL_SBSS): Likewise.
2596 (REL_SDATA2): Likewise.
2597 (REL_SBSS2): Likewise.
2598 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2601 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2603 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2605 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2607 2001-11-22 H.J. Lu <hjl@gnu.org>
2609 * Makefile.in: Regenerated with automake based on automake
2610 1.4-8 in RedHat 7.1.
2612 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2614 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2615 (config.status): Delete rule.
2616 Add extra dependencies to cover sourced emulparams files.
2617 * Makefile.in: Regenerate.
2619 * scripttempl/elf.sc: Order <section>, <section>.* and
2620 corresponding linkonce sections as seen in input files.
2621 Formatting fixes. Zero vma of all sections if not relocating.
2622 (STACK): Define and insert if STACK_ADDR defined.
2623 (OTHER_RELOCATING_SECTIONS): Delete.
2624 (OTHER_END_SYMBOLS): Define.
2625 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2626 (OTHER_READWRITE_SECTIONS): Likewise.
2627 (OTHER_GOT_SECTIONS): Likewise.
2628 (OTHER_SDATA_SECTIONS): Likewise.
2629 (OTHER_BSS_SECTIONS): Likewise.
2630 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2631 (OTHER_READWRITE_SECTIONS): Likewise.
2632 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2633 (OTHER_READWRITE_SECTIONS): Likewise
2635 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2636 (STACK_ADDR): Define.
2637 * emulparams/armelf_oabi.sh: As for armelf.sh.
2638 * emulparams/elf32mcore.sh: As for armelf.sh.
2639 * emulparams/h8300elf.sh: As for armelf.sh.
2640 * emulparams/mn10200.sh: As for armelf.sh.
2641 * emulparams/shelf.sh: As for armelf.sh.
2643 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2644 (OTHER_END_SYMBOLS): Define.
2645 * emulparams/m32relf.sh: As for elf32fr30.sh.
2646 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2647 * emulparams/h8300self.sh: As for elf32fr30.sh.
2649 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2650 defines with RELOCATING test.
2651 (OTHER_SDATA_SECTIONS): Likewise.
2652 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2653 (OTHER_END_SYMBOLS): ..this.
2654 * emulparams/crislinux.sh: As for criself.sh.
2656 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2658 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2659 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2660 normal and linkonce sections as seen in input files.
2661 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2662 (TEXT_DYNAMIC): Likewise.
2663 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2664 (OTHER_SDATA_SECTIONS): Likewise.
2665 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2666 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2667 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2668 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2669 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2670 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2671 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2672 sections as seen in input files.
2673 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2674 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2676 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2677 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2678 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2679 (OTHER_SECTIONS): Instead, use this..
2680 (OTHER_END_SYMBOLS): ..and this.
2682 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2683 * emulparams/elf32bsmip.sh: Likewise.
2684 * emulparams/elf32btsmip.sh: Likewise.
2685 * emulparams/elf32ebmip.sh: Likewise.
2686 * emulparams/elf32lmip.sh: Likewise.
2687 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2688 * emulparams/elf32lsmip.sh: Likewise.
2689 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2690 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2691 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2692 * emulparams/elf64btsmip.sh: Likewise.
2693 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2694 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2695 * emulparams/elf32ppclinux.sh: Likewise.
2696 * emulparams/elf32ppcsim.sh: Likewise.
2697 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2698 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2699 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2700 * emulparams/h8300self.sh: Likewise.
2701 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2702 * emulparams/sh.sh: Comment.
2703 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2704 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2705 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2707 2001-11-21 David Heine <dlheine@tensilica.com>
2708 Alan Modra <amodra@bigpond.net.au>
2710 * ldlang.c (map_input_to_output_sections): Replace "break"
2711 accidentally removed with 2001-08-03 change.
2712 (lang_gc_sections_1): Likewise.
2714 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2716 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2718 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2720 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2721 of false when calling lang_size_sections.
2722 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2724 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2726 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2727 function when LDEMUL_FINISH isn't set to the same name. Don't
2728 call ${LDEMUL_FINISH}.
2729 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2730 * emultempl/armelf.em (arm_elf_finish): Call
2731 gld${EMULATION_NAME}_finish.
2732 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2733 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2734 hppaelf_layout_sections_again if necessary.
2735 (need_laying_out): New var.
2736 (hppaelf_layaout_sections_again): Rename to
2737 hppaelf_layout_sections_again. Clear need_laying_out.
2738 (PARSE_AND_LIST_OPTIONS): Format text.
2740 2001-11-14 H.J. Lu <hjl@gnu.org>
2742 * emultempl/armelf.em (arm_elf_finish): Renamed from
2743 gld${EMULATION_NAME}_finish.
2744 (LDEMUL_FINISH): Set to arm_elf_finish.
2746 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2748 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2749 (struct ld_emulation_xfer_struct): Use it.
2751 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2753 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2754 additional symbols referenced by newer crt0.o files from HP.
2756 2001-11-12 Anthony Green <green@redhat.com>
2758 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2760 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2762 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2763 * Makefile.in: Regenerate.
2765 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2767 * ld.texinfo: Use @command for commands, @option for options.
2768 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2770 * Makefile.in: Rebuild.
2772 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2774 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2775 Add support for targets.
2777 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2779 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2780 * configure: Regernate.
2781 * po/fr.po: New file.
2782 * po/sv.po: New file.
2784 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2786 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2787 as little endian default and to support big endian.
2789 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2791 * ld.texinfo (Options): Document new option, -nostdlib.
2792 * lexsup.c (OPTION_NOSTDLIB): New definition.
2793 (ld_options): Add entry for "nostdlib".
2794 (parse_args): Handle OPTIONS_NOSTDLIB.
2795 * ldfile.c (ldfile_add_library_path): Don't add directories
2796 to the search path if they weren't specified on the command line
2797 and -nostdlib was specified.
2798 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2800 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2802 * lexsup.c (parse_args): Prevent infinite parsing loop when
2803 "-rpath.a" is specified on the command line.
2804 Replace calls to fprintf with calls to einfo.
2806 2001-10-31 John Marshall <jmarshall@acm.org>
2808 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2809 appear only once across all the linker scripts involved in a link
2810 invocation no longer applies. Make the documentation reflect
2813 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2815 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2817 (sh-*-linux*): Added targ_extra_libpath.
2819 2001-10-31 David Heine <dlheine@tensilica.com>
2821 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2822 for padding statements.
2824 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2826 * configure.tgt (mmix-*-*): New target.
2827 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2828 Add dependencies to match.
2829 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2830 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2831 scripttempl/mmo.sc: New files.
2832 * gen-doc.texi: @set MMIX.
2833 * ld.texinfo: Ditto.
2834 [MMIX] Add MMIX node.
2835 * Makefile.in: Regenerate.
2837 2001-10-29 Kazu Hirata <kazu@hxi.com>
2839 * ldlang.c: Fix a comment typo.
2841 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2843 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2844 entries, and match *-*-linux*.
2846 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2848 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2849 with ldlex_script, ldlex_popstate.
2850 (ifile_p1): Likewise.
2851 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2853 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2854 to 1. Don't BEGIN(SCRIPT).
2855 (lex_redirect): Similarly.
2856 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2858 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2860 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2861 __EH_FRAME_END__ and accept eh frames into data section.
2862 Add ctor and dtor sections.
2864 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2866 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2867 (auto-export): Fix indentation.
2869 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2871 * pe-dll.c (autofilter_objectlist): Add startup objects
2873 (auto-export): Constify char * p.
2874 Extract file basename and use strcmp rather than ststr
2877 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2879 * ldmain.c (get_emulation): Improve comment about the handling
2882 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2884 * po/POTFILES.in: Regenerate.
2886 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2888 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2889 -z nocopyreloc and -z nocombreloc usage strings.
2891 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2893 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2896 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2898 * scripttempl/armaout.sc: Place .bss section after end of aligned
2899 data section to match behaviour of aout code in constructrion of
2902 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2904 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2905 startup files for mingw32 dlls to list.
2907 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2909 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2911 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2913 * configure.tgt (targ): Add arm9e-*-elf.
2915 2001-10-05 H.J. Lu <hjl@gnu.org>
2917 * genscripts.sh: Fix a typo in the last change.
2919 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2921 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2922 -z nocombreloc in usage.
2924 2001-10-03 Jim Blandy <jimb@redhat.com>
2926 * genscripts.sh: Include a comment at the top of each generated
2927 script, explaining its purpose.
2929 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2931 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2932 * NEWS: Mention -z nocopyreloc.
2933 * ld.texinfo (Options): Describe nocopyreloc.
2935 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2937 * configure: Regenerate.
2939 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2941 * ldver.h (ld_program_version): Remove declaration.
2942 * lexsup.c (parse_args): Move printing of copyright message..
2943 * ldver.c (ldversion): .. to here.
2944 Use BFD_VERSION_STRING in place of BFD_VERSION.
2945 (ld_program_version): Remove.
2946 * Makefile.am (Makefile): Depend on bfd/configure.in.
2948 * Makefile.in: Regenerate.
2950 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2952 * Makefile.am: Update dependencies with "make dep-am".
2953 * Makefile.in: Regenerate.
2955 2001-09-29 John Reiser <jreiser@BitWagon.com>
2957 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2958 * lexsup.c: Add --no-define-common commandline option.
2959 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2960 * ldlex.l: Likewise.
2961 * ld.h: Add command_line.inhibit_common_definition.
2962 * ldmain.c (main): Initialize.
2963 * ld.texinfo: Document.
2965 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2967 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2969 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2971 * ldmisc.c (USE_STDARG): Remove.
2972 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2977 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2978 declarations. Update copyright.
2980 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2982 * pe-dll.c: Remove obsoleted declaration of
2983 pe_get_data_import_dll_name.
2984 (pe_create_import_fixup): Fix thinko.
2986 * ld.texinfo(enable-auto-import): Clarify the explanation.
2988 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2990 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2991 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2992 DLL_SUPPORT controlled code.
2994 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2996 * emultempl/pe.em(pe_data_import_dll): Make static.
2997 (pe_get_data_import_dll_name): New accessor function.
2998 * pe-dll.c(pe_create_import_fixup): call
2999 pe_get_data_import_dll_name() from pe.em, instead of
3000 directly accessing pe_data_import_dll variable from pe.em.
3002 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3004 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3005 (def_file_add_directive): Use ISSPACE instead of isspace.
3006 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3007 isdigit/isxdigit/isalpha/isalnum.
3008 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3009 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3010 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3011 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3013 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3014 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3016 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3017 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3018 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3019 (ctor_prio): Use ISDIGIT instead of isdigit.
3020 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3021 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3022 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3024 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3025 (stricpy): Use TOLOWER instead of isupper/tolower.
3026 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3027 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3028 (lex_warn_invalid): Use ISPRINT instead of isprint.
3029 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3030 (main): For gettext, also set the LC_CTYPE locate facet.
3031 (add_keepsyms_file): Use ISSPACE instead of isspace.
3032 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3033 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3034 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3035 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3036 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3037 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3038 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3039 (quoteput): Use ISSPACE instead of isspace.
3040 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3043 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3045 * deffilep.y (def_stash_module): Constify "name" param.
3047 * pe-dll.c: Replace CONST with const throughout.
3048 (quick_symbol): Constify "n1", "n2", "n3" params.
3049 (make_singleton_name_thunk): Constify "import" param. Make
3050 "buffer_len" a size_t.
3051 (make_import_fixup_entry): Constify "name", "fixup_name",
3052 "dll_symname" params.
3053 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3054 (pe_get32): Likewise.
3055 (pe_implied_import_dll): Likewise.
3057 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3058 (sort_by_section_name): Likewise.
3060 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3061 (make_import_fixup): Cast printf arg, rel->address to long rather
3063 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3065 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3067 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3068 defines BufferSize. Increase buffer size by one.
3070 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3072 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3074 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3076 * configure.tgt: Add arm-openbsd target.
3078 2001-09-12 H.J. Lu <hjl@gnu.org>
3080 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3082 (ALL_64_EMULATIONS): Here.
3083 * Makefile.in: Regenerated.
3085 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3087 * emultempl/pe.em(make_import_fixup): change signature to
3088 take asection as well as arelec; we need this for proper
3089 error reporting. Only call pe_create_import_fixup() if
3090 there is no attempt to add a constant addend to the reloc;
3091 otherwise, report error condition.
3092 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3093 since final argument is a pointer to make_import_fixup().
3094 Change call to cb() to match make_import_fixup() signature.
3095 (make_import_fixup_mark): make buffer_len unsigned.
3096 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3098 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3100 * ld.texinfo: add verbose documentation for auto-import
3101 direct-addressing workaround, to compliment the terse
3104 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3106 * scripttempl/v850.sc: Add gcc_except_table sections.
3108 2001-09-11 Jeffrey A Law (law@cygnus.com)
3110 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3111 * emulparams/h8300self.sh: Similarly.
3113 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3115 * ld.texinfo (Options, --stack): Correct default value for stack
3118 2001-09-05 Tom Rix <trix@redhat.com>
3120 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3122 2001-09-03 Andreas Jaeger <aj@suse.de>
3124 * emultempl/beos.em: Declare prototypes for comparions functions,
3127 2001-09-02 Andreas Jaeger <aj@suse.de>
3129 * emultempl/aix.em: Add missing prototype.
3130 * emultempl/lnk960.em: Likewise.
3131 * emultempl/vanilla.em: Likewise.
3132 * emultempl/armcoff.em: Likewise.
3133 * emultempl/armelf_oabi.em: Likewise.
3134 * emultempl/beos.em: Likewise.
3135 * emultempl/gld960c.em: Likewise.
3136 * emultempl/gld960.em: Likewise.
3138 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3139 for prototype declaration.
3141 2001-08-31 Eric Christopher <echristo@redhat.com>
3142 Jason Eckhardt <jle@redhat.com>
3144 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3146 2001-08-31 Andreas Jaeger <aj@suse.de>
3148 * emultempl/pe.em: Add missing prototypes.
3149 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3150 pe_find_data_imports.
3151 (pr_sym): Add unused attribute.
3153 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3155 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3156 default from coff to elf.
3158 2001-08-29 Jeff Law <law@redhat.com>
3160 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3162 * emulparams/h8300self.sh: Similarly.
3164 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3166 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3168 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3169 * configure.tgt (h8300-*-elf*): New case.
3170 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3171 * emulparams/h8300self.sh: New file.
3172 * Makefile.in: Regenerated.
3174 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3176 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3179 2001-08-27 Linus Nordberg <linus@swox.com>
3180 Alan Modra <amodra@bigpond.net.au>
3182 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3183 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3185 * Makefile.in: Regenerate.
3186 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3187 entries to correct alphabetical position.
3188 * emulparams/elf64ppc.sh: New.
3189 * emulparams/elf64lppc.sh: New.
3191 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3193 * ldmain.c (main): Declare BSIZE as static.
3195 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3197 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3198 into .rel.dyn resp. .rela.dyn if combreloc.
3199 (get_script): If .x linker script is equal to .xn, only put it
3200 once into the binary.
3201 Add .xc and .xsc scripts.
3202 (parse_args): Handle -z combreloc and -z nocombreloc.
3203 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3204 For .xc and .xsc scripts put all .rel* or .rela* input sections
3205 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3206 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3208 Strip trailing whitespace from script.
3209 Generate .xc and .xsc scripts if requested.
3210 * ldmain.c (main): Initialize link_info.combreloc and
3211 link_info.spare_dynamic_tags.
3212 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3213 (ld_options): Add --spare-dynamic-tags option.
3214 (parse_args): Likewise.
3215 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3216 * ldint.texinfo: Document .xc and .xsc linker scripts.
3217 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3219 2001-08-22 H.J. Lu <hjl@gnu.org>
3221 * emulparams/elf32fr30.sh: Add a newline.
3223 2001-08-21 Andreas Jaeger <aj@suse.de>
3225 * deffilep.y: Add missing prototypes.
3226 * pe-dll.c: Likewise.
3228 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3230 * ldlang.c (insert_pad): Fix typos in last patch.
3232 * ldlang.c: When traversing lang_statement_union_type lists,
3233 consistently use "header.next" rather than "next".
3234 * mpw-eppcmac.c: Likewise.
3235 * emultempl/beos.em: Likewise.
3236 * emultempl/hppaelf.em: Likewise.
3237 * emultempl/pe.em: Likewise.
3238 * ldlang.h (union lang_statement_union): Remove "next" field.
3240 * ldlang.c (insert_pad): Use offsetof macro.
3241 (lang_size_sections): Always neuter padding statements.
3242 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3244 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3245 passed to lang_size_sections.
3246 (pe_exe_fill_sections): Likewise.
3247 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3248 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3250 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3252 * emultempl/aix.em: Formatting fixes.
3254 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3256 * ldlang.c (insert_pad): Make use of an existing pad statement if
3257 available. Move code calculating alignment, adjusting section
3258 alignment power, and adjusting dot to ..
3259 (size_input_section): .. here. Remove unused relax param.
3260 (lang_size_sections): Change boolean `relax' param to boolean *.
3261 Adjust call to size_input_section. Make use of insert_pad to
3262 place pad after the assignment statement. If relaxing, zap
3264 (reset_memory_regions): Reset output_bfd section sizes too.
3265 (relax_again): Move to..
3266 (lang_process): ..here. Adjust call to lang_size_sections, and
3267 remove duplicated code.
3268 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3270 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3272 * ld.texinfo: Document that fill values now use the four least
3274 * emulparams/elf32fr30.sh (NOP): Update.
3275 * emulparams/elf32mcore.sh: Likewise.
3276 * emulparams/elf64_s390.sh: Likewise.
3277 * emulparams/elf_i386.sh: Likewise.
3278 * emulparams/elf_i386_be.sh: Likewise.
3279 * emulparams/elf_i386_chaos.sh: Likewise.
3280 * emulparams/elf_i386_ldso.sh: Likewise.
3281 * emulparams/elf_s390.sh: Likewise.
3282 * emulparams/elf_x86_64.sh: Likewise.
3283 * emulparams/i386moss.sh: Likewise.
3284 * emulparams/i386nw.sh: Likewise.
3285 * emulparams/m68kelf.sh: Likewise.
3286 * scripttempl/elf.sc: Update NOP comment.
3287 * scripttempl/elfi370.sc: Likewise.
3288 * scripttempl/elfm68hc11.sc: Likewise.
3289 * scripttempl/elfm68hc12.sc: Likewise.
3290 * scripttempl/nw.sc: Likewise.
3292 2001-08-15 Tom Rix <trix@redhat.com>
3294 * ldgram.y (saved_script_handle): Initialize to NULL.
3295 * ldmain.c (main): Change check on saved_script_handle.
3297 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3299 * emultempl/elf32.em: Formatting fixes.
3300 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3301 looking at sec->owner.
3302 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3303 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3304 unused code, and reorganize orphan section placement code.
3306 * ldlang.c (wild_doit): Rename to lang_add_section.
3307 * ldlang.h: Here too.
3308 * mpw-elfmips.c: And here.
3309 * emultempl/beos.em: And here.
3310 * emultempl/elf32.em: And here.
3311 * emultempl/hppaelf.em: And here.
3312 * emultempl/pe.em: And here.
3314 2001-08-13 Richard Henderson <rth@redhat.com>
3316 * emultempl/needrelax.em: New file.
3317 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3318 * Makefile.am (eelf64_ia64.c): Depend on it.
3319 * Makefile.in: Rebuild.
3321 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3323 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3324 output_section is set non-NULL.
3326 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3327 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3328 needlessly create an output_section_statement. Treat a correctly
3329 named output_section_statement with NULL bfd_section as compatible.
3331 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3333 * emultempl/generic.em: Support EXTRA_EM_FILE.
3334 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3335 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3336 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3337 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3338 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3339 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3340 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3341 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3342 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3343 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3345 2001-08-12 Richard Henderson <rth@redhat.com>
3347 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3348 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3349 scripttempl/v850.sc: Keep .jcr data.
3351 2001-08-12 H.J. Lu <hjl@gnu.org>
3352 Andrew Haley <aph@cambridge.redhat.com>
3353 Nick Clifton <nickc@redhat.com>
3355 * ldgram.y (had_script): Change name to saved_script_handle.
3356 Change type to file handle.
3357 * ld.h (had_script): Rename and retype.
3358 * ldfile.c (ldfile_open_command_file): Save the file handle
3359 used in saved_script_handle.
3360 * lexsup.c (parse_args): Do not allow -c option to alter
3361 saved_script_handle.
3362 * ldmain.c (main): Print out the linker script used if
3363 --verbose is given. Check saved_script_handle to obtain the
3364 external linker script used, or if NULL, dump the builtin
3366 * ld.texinfo: Document that --verbose now dumps the linker
3367 script used, regardless of whether it was an internal or an
3370 2001-08-10 Andreas Jaeger <aj@suse.de>
3372 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3374 * configure: Regenerate.
3376 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3378 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3380 * scripttempl/elf.sc: Move non-text .dynamic section before
3381 .plt/.got/.sdata* group.
3382 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3383 (OTHER_SDATA_SECTIONS): Add.
3384 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3386 * emulparams/crislinux.sh: Likewise.
3387 * emulparams/elf32b4300.sh: Likewise.
3388 * emulparams/elf32bmip.sh: Likewise.
3389 * emulparams/elf32bmipn32.sh: Likewise.
3390 * emulparams/elf32bsmip.sh: Likewise.
3391 * emulparams/elf32btsmip.sh: Likewise.
3392 * emulparams/elf32ebmip.sh: Likewise.
3393 * emulparams/elf32elmip.sh: Likewise.
3394 * emulparams/elf32l4300.sh: Likewise.
3395 * emulparams/elf32lmip.sh: Likewise.
3396 * emulparams/elf32lsmip.sh: Likewise.
3397 * emulparams/elf32ltsmip.sh: Likewise.
3398 * emulparams/elf64bmip.sh: Likewise.
3399 * emulparams/elf64btsmip.sh: Likewise.
3400 * emulparams/elf64ltsmip.sh: Likewise.
3402 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3404 * genscripts.sh: Source the emulparams script before each output
3405 script is generated so that variables like `RELOCATING' may affect
3406 variables defined in the emulparams script.
3408 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3410 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3413 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3414 ie. iterate over wild_statement.section_list.
3415 (gld${EMULATION_NAME}_place_orphan): Likewise.
3417 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3419 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3420 .fini[0-4] sections used by _exit
3421 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3422 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3423 * scripttempl/elfm68hc11.sc: Likewise.
3425 2001-08-03 H.J. Lu <hjl@gnu.org>
3427 * emultempl/beos.em (init): Add the missing initialization.
3429 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3431 * ld.texinfo (Input Section Basics): Clarify ordering of output
3433 * ldlang.c (callback_t): Add wildcard_list param.
3434 (walk_wild_section): Remove "section" param. Rewrite for
3435 lang_wild_statement_type change. Remove unique_section_p test.
3436 (walk_wild_file): Remove "section" param.
3437 (walk_wild): Remove "section" and "file" params.
3438 (lang_gc_wild): Likewise.
3439 (wild): Likewise. Modify for lang_wild_statement_type change.
3440 (wild_sort): Likewise. Add "sec" param.
3441 (gc_section_callback): Likewise.
3442 (output_section_callback): Likewise. Do unique_section_p test.
3443 (map_input_to_output_sections): Modify call to wild.
3444 (lang_gc_sections_1): Likewise.
3445 (print_wild_statement): Modify for lang_wild_statement_type
3447 (lang_add_wild): Replace filename, filenames_sorted param with
3448 filespec. Replace section_name, sections_sorted,
3449 exclude_filename_list with section_list.
3450 * ldlang.h (lang_add_wild): Here too.
3451 (lang_wild_statement_type): Replace section_name, sections_sorted,
3452 and exclude_filename_list with section_list.
3453 * ldgram.y (current_file): Delete.
3454 (%union): Add wildcard_list.
3455 (file_NAME_list): Set type to wildcard_list. Build a linked list
3456 rather than calling lang_add_wild for each entry.
3457 (input_section_spec_no_keep): Call lang_add_wild here instead.
3458 * ld.h (struct wildcard_list): Declare.
3459 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3461 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3463 * ldmain.c (main): initialize link_info.pei386_auto_import
3464 * pe-dll.c: new tables for auto-export filtering
3465 (auto_export): change API, pass abfd for contextual filtering.
3466 Loop thru tables of excluded symbols instead of comparing
3469 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3471 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3472 static variable current_sec (static struct sec *). Add
3473 forward declaration for add_bfd_to_link.
3474 (process_def_file): Don't export undefined symbols. Do not
3475 export symbols starting with "_imp__". Call auto_export()
3477 (pe_walk_relocs_of_symbol): New function.
3478 (generate_reloc): add optional extra debugging
3479 (pe_dll_generate_def_file): eliminate extraneous initial blank
3481 (make_one): enlarge symtab to make room for __nm__ symbols
3482 (DATA auto-import support).
3483 (make_singleton_name_thunk): New function.
3484 (make_import_fixup_mark): New function.
3485 (make_import_fixup_entry): New function.
3486 (pe_create_import_fixup): New function.
3487 (add_bfd_to_link): Specify that 'name' argument is a CONST
3489 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3490 declare new functions pe_walk_relocs_of_symbol and
3491 pe_create_import_fixup.
3492 * emultempl/pe.em: add new options --enable-auto-import,
3493 --disable-auto-import, and --enable-extra-pe-debug.
3494 (make_import_fixup): New function.
3495 (pe_find_data_imports): New function.
3496 (pr_sym): New function.
3497 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3498 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3501 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3503 * ld.texinfo: add additional documentation for
3504 --export-all-symbols. Document --out-implib,
3505 --enable-auto-image-base, --disable-auto-image-base,
3506 --dll-search-prefix, --enable-auto-import, and
3507 --disable-auto-import.
3508 * ldint.texinfo: Add detailed documentation on auto-import
3511 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3513 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3516 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3518 * Makefile.am: Update dependencies with "make dep-am".
3519 * Makefile.in: Regenerate
3521 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3523 * ldcref.c (check_section_sym_xref): New function.
3524 (check_nocrossrefs): Call it.
3525 (check_nocrossref): Interate over h->refs here instead of..
3526 (check_refs): ..here. Pass in the symbol name, section, and bfd
3527 rather than hash_entry pointers.
3528 (struct check_refs_info): Keep symbol name rather than hash entry.
3530 (check_reloc_refs): Tweak for above changes in check_refs_info.
3531 Only report references to section syms when symname is NULL to
3532 prevent duplicate messages for the same reloc.
3534 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3536 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3537 available. Do not print NULL trees.
3538 (exp_print_token): Print unknown tokens with values > 126 as
3539 decimal values not ASCII characters.
3541 * ldlang.c (lang_leave_overlay): If a region is specified assign
3542 it to all sections inside the overlay unless they have been
3543 assigned to the own, non-default, memory region.
3545 * README: Add header for consistency with other README files.
3547 2001-07-14 H.J. Lu <hjl@gnu.org>
3549 * emultempl/elf32.em (output_prev_sec_find): Never return
3550 bfd_abs_section_ptr, bfd_com_section_ptr nor
3551 bfd_und_section_ptr.
3553 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3555 * Makefile.am (em32relf.c): Change dependency from generic.em to
3557 * Makefile.in: Regenerate.
3559 2001-07-14 matthew green <mrg@eterna.com.au>
3561 * configure.tgt (i386-*-netbsdelf*): New target.
3562 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3564 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3566 * emultempl/elf32.em (output_prev_sec_find): New.
3567 (place_orphan): Use it.
3569 2001-07-11 H.J. Lu <hjl@gnu.org>
3571 * ldmain.c (main): Fix typos in the last change.
3573 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3575 * ldmain.c (main): Disallow -F and -f without -shared.
3577 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3579 * emultempl/pe.em (after_open): Check for the output_bfd not
3580 having any coff_data structure allocated to it.
3582 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3584 * emultempl/elf32.em: Do not assuming that contents of the buffer
3585 returned from basename function will remain unchanged accross other
3588 2001-07-03 H.J. Lu <hjl@gnu.org>
3590 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3591 2001-07-03. It creates dynamic entries even for static binaries.
3593 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3595 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3596 (DYNAMIC): Use it to reserve few dynamic entries for
3599 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3601 * emulparams/hppa64linux.sh: New file.
3602 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3603 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3604 (ehppa64linux.c): Add rule to make it.
3606 * Makefile.in: Regenerate.
3608 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3610 * ld.texinfo (Options, -r): Mention restrictions when using
3611 different object formats.
3613 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3615 * ldlang.c (lang_check): Emit fatal error if relocatable link
3616 between different object flavours with relocations in input.
3618 2001-06-19 H.J. Lu <hjl@gnu.org>
3620 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3621 (--version-script): Mention the language support.
3623 2001-06-19 H.J. Lu <hjl@gnu.org>
3625 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3627 2001-06-18 H.J. Lu <hjl@gnu.org>
3629 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3630 (diststuff): Add $(MANS).
3631 * Makefile.in: Regenerated.
3635 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3637 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3638 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3639 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3640 * ld.h (args_type): Remove member export_dynamic. All users
3641 changed to use struct bfd_link_info member.
3643 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3644 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3645 * Makefile.in: Regenerate.
3647 2001-06-18 H.J. Lu <hjl@gnu.org>
3649 * ldlang.c (init_os): Add the newline to the einfo call.
3650 (lang_check): Likewise.
3651 (lang_do_version_exports_section): Likewise.
3653 2001-06-15 H.J. Lu <hjl@gnu.org>
3655 * lexsup.c (parse_args); Save optind to report unrecognized
3658 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3660 * ldlang.c (lang_check): Emit fatal error if relocatable link
3661 between different object flavours.
3663 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3664 Set new link_info member export_dynamic.
3665 * ldmain.c (main): Initialize new link_info member export_dynamic.
3667 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3669 * ldlang.c (walk_wild): Only call walk_wild_file if
3670 lookup_name returns something.
3671 (lookup_name): If load_symbols fails, return NULL.
3672 (load_symbols): Change to a boolean function.
3673 (open_input_bfds): If load_symbols fails then do not make the
3676 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3678 * ldlang.c (record_bfd_errors): Remove.
3680 * emultempl/aix.em: Fix copyright dates.
3682 2001-06-07 Andreas Jaeger <aj@suse.de>
3684 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3685 (TEXT_START_ADDR): Likewise.
3687 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3689 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3691 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3693 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3695 2001-05-31 H.J. Lu <hjl@gnu.org>
3697 * ldlang.c (open_input_bfds): Don't change the bfd error
3698 handler whilst loading symbols.
3700 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3702 * configure.tgt: Remove i370-mvs architecture, it is not currently
3705 2001-05-25 H.J. Lu <hjl@gnu.org>
3707 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3708 like emulparams/aixppc.sh.
3710 2001-05-25 H.J. Lu <hjl@gnu.org>
3712 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3713 setting of output_filename after bfd_scan_arch.
3714 * emultempl/pe.em: Likewise.
3716 2001-05-25 H.J. Lu <hjl@gnu.org>
3718 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3719 like emulparams/aixppc.sh.
3721 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3722 instead of ${srcdir}/emultempl/stringify.sed.
3724 2001-05-25 Timothy Wall <twall@oculustech.com>
3726 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3729 2001-05-25 Alan Modra <amodra@one.net.au>
3731 * configure.host: Replace linuxoldld with linux*oldld.
3732 * configure.tgt: Likewise.
3734 2001-05-24 H.J. Lu <hjl@gnu.org>
3736 * emultempl/stringify.sed: Removed again.
3738 2001-05-24 H.J. Lu <hjl@gnu.org>
3740 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3741 (gld${EMULATION_NAME}_before_parse): Initialize
3742 ldfile_output_architecture, ldfile_output_machine and
3743 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3744 * emultempl/beos.em: Likewise.
3745 * emultempl/elf32.em: Likewise.
3746 * emultempl/linux.em: Likewise.
3747 * emultempl/mipsecoff.em: Likewise.
3748 * emultempl/pe.em: Likewise.
3749 * emultempl/sunos.em: Likewise.
3751 2001-05-24 Tom Rix <trix@redhat.com>
3753 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3754 udate import file format.
3755 (change_symbol_mode) New, same
3756 (is_syscall) New, same
3757 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3758 * emulparams/aixppc64.sh : same
3759 * emulparams/aixrs6.sh : same
3760 * emulparams/ppcmacos.sh : same
3761 * emultempl/aix.em : use strtoull to parse options
3762 * Makefile.am : add eaixppc64 emulation for xcoff64
3763 * Makefile.in : same
3764 * configure.tgt : same
3766 * scripttempl/aix.sc : default text section offset to 0x10000000
3767 default data section offset to 0x20000000
3768 add .sv3264 and .sv64 pseudo sections
3769 loader and debug sections use the currect section offset.
3771 * emultempl/aix.em : Add xcoff64 support
3772 Add -binitfini support
3773 (gld${EMULATION_NAME}_before_parse) -binitfini
3774 (gld${EMULATION_NAME}_parse_args) same
3775 (gld${EMULATION_NAME}_before_allocation) format change for special
3778 * emulparams/aixppc64.sh : New file for xcoff64 support
3780 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3782 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3783 variable to avoid non-portable shell construct.
3785 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3787 * ldmain.c (get_emulation): Add -mips5 command line argument.
3789 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3791 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3792 (ELF_INTERPRETER_NAME): Define it.
3793 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3795 * configure.tgt (targ_emul, targ_extra_emuls)
3796 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3797 as primary, elf_i386 as extra.
3798 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3799 (eelf_i386_ldso.c): New rule.
3800 * Makefile.in: Rebuilt.
3802 2001-05-22 Nick Clifton <nickc@redhat.com>
3804 * lexsup.c (ld_options): Allow -I to be an alias for
3805 --dynamic-linker. This is for Solaris compatability.
3806 * ld.texinfo: Document that -I can be used.
3809 2001-05-16 Alan Modra <amodra@one.net.au>
3811 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3812 whether an input section is the first one assigned to an output
3814 Assorted formatting fixes.
3816 2001-05-14 DJ Delorie <dj@delorie.com>
3818 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3819 * Makefile.in: Ditto.
3821 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3823 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3824 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3826 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3828 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3830 * ldlang.c (lang_process): Call bfd_merge_sections.
3832 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3834 * ldgram.y: Fix typo.
3836 2001-05-03 H.J. Lu <hjl@gnu.org>
3838 * emultempl/elf32.em: Include "libiberty.h".
3839 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3840 basename of the bfd filename.
3841 (gld${EMULATION_NAME}_stat_needed): Likewise.
3842 (gld${EMULATION_NAME}_try_needed): Likewise.
3843 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3845 2001-05-02 H.J. Lu <hjl@gnu.org>
3847 * emultempl/pe.em: Include <ctype.h>.
3849 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3851 * emulparams/elf32openrisc.sh: New file.
3853 * Makefile.am: Add OpenRISC target.
3854 * Makefile.in: Regenerated.
3856 * configure.tgt: Add openrisc-*-* mapping.
3858 2001-05-02 Nick Clifton <nickc@redhat.com>
3860 * emultempl/aix.em: Replace buystring with xstrdup.
3861 * emultempl/beos.em: Replace buystring with xstrdup.
3863 2001-05-02 H.J. Lu <hjl@gnu.org>
3865 * ldfile.c: Include "libiberty.h".
3866 * ldlex.l: Likewise.
3868 * ldmisc.c (buystring): Removed.
3869 * ldmisc.h: Likewise.
3871 * ldfile.c: Replace buystring with xstrdup.
3872 * ldlang.c: Likewise.
3873 * ldlex.l: Likewise.
3874 * ldmain.c: Likewise.
3875 * ldmisc.c: Likewise.
3876 * lexsup.c: Likewise.
3877 * mpw-eppcmac.c: Likewise.
3879 2001-04-30 Andreas Jaeger <aj@suse.de>
3881 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3883 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3885 * ldlang.c (load_symbols): Give emulation a chance
3886 to process unrecognized file before fatal error is
3887 reported, not after.
3889 2001-04-27 Sean McNeil <sean@mcneil.com>
3891 * configure.tgt: Add arm-vxworks target.
3892 * scripttempl/armcoff.sc: Support .text or .data as a section name
3896 2001-04-13 J.T. Conklin <jtc@redback.com>
3898 * ld.texinfo: Document --fatal-warnings.
3901 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3902 warnings have been turned into errors.
3903 * lexsup.c (OPTION_WARN_FATAL): Define.
3904 (ld_options): Entry for --fatal-warnings.
3905 (parse_args): Handle OPTION_WARN_FATAL.
3906 * ld.h (ld_config_type): Add fatal_warnings field.
3908 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3910 * ldmain.c (main): Default to discard_sec_merge.
3911 * lexsup.c (OPTION_DISCARD_NONE): Define.
3912 (ld_options): Add --discard-none.
3913 (parse_args): Handle OPTION_DISCARD_NONE.
3914 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3915 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3916 all its input sections match.
3918 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3920 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3921 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3922 (eelf32ltsmip.c): New target.
3923 (eelf64btsmip.c): Likewise.
3924 (eelf64ltsmip.c): Likewise.
3925 * Makefile.in: Regenerated.
3927 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3929 (mips*-*-linux-gnu*): Likewise.
3931 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3933 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3935 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3938 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3940 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3941 correct value of __Stext here.
3942 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3945 * emulparams/crislinux.sh: Remove FIXME.
3947 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3949 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3950 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3952 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3954 * configure.tgt (cris-*-*): Change default emulation to criself.
3955 (cris-*-*aout*): New rule.
3957 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3959 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3960 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3962 2001-03-26 Andreas Jaeger <aj@suse.de>
3964 * ld.texinfo (Overview): Fix syntax in texi code.
3966 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3968 * ld.texinfo: Put @c man indications to generate the ld man page.
3969 When generating man, define all the variables. Define SEEALSO
3970 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3971 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3972 (ld.1): Generate from ld.texinfo.
3973 * Makefile.in: Regenerate.
3975 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3977 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3978 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3980 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3982 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3983 is an absolute path look only for this file and not along the path.
3985 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3987 * emultempl/elf32.em (OPTION_GROUP): New macro.
3988 Add new option Bgroup to longopts.
3989 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3990 (gld*_list_options): Add -Bgroup and -z defs.
3991 * ld.1: Document -Bgroup and -z defs.
3992 * ld.texinfo: Likewise.
3994 2001-03-07 Michael Meissner <meissner@redhat.com>
3996 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3997 with sections created by -fdata-sections.
3998 (.dynbss,.bss): Ditto.
4000 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4002 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4003 after_allocation_default, not gld..._before_allocation.
4005 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4007 * configure.in (BFD_VERSION): New.
4008 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4009 * configure: Regenerate.
4010 * Makefile.am: Run "make dep-am"
4011 * Makefile.in: Regenerate.
4013 2001-02-26 Timothy Wall <twall@cygnus.com>
4015 * emulparams/elf64_aix.sh: Add additional read-only sections;
4016 uncomment lines which are now required.
4018 2001-02-26 H.J. Lu <hjl@gnu.org>
4020 * ldlang.c (open_input_bfds): Set the bfd error handler so
4021 that problems can be caught whilst loading symbols.
4022 (record_bfd_errors): New function: Report BFD errors and mark
4023 the executable output as being invalid.
4025 2001-02-22 Timothy Wall <twall@cygnus.com>
4027 * configure.host: Add configuration for ia64-*-aix*.
4028 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4029 Add dependencies for eelf64_aix.c.
4030 * Makefile.in: Regenerate.
4031 * configure.tgt: Add ia64-*-aix* mapping.
4032 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4034 2001-02-20 H.J. Lu <hjl@gnu.org>
4036 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4037 false if we found the file.
4039 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4041 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4042 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4044 2001-02-18 lars brinkhoff <lars@nocrew.org>
4046 * Makefile.am: Add PDP-11 target.
4047 * configure.tgt: Likewise.
4048 * emulparams/pdp11.sh: New file.
4050 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4052 * configure.host: Add a generic FreeBSD configuration entry such that
4053 all [modern] FreeBSD systems on all platforms will look the same.
4055 2001-02-14 H.J. Lu <hjl@gnu.org>
4057 * configure.tgt: Remove mention of earmelf_linux26.
4059 2001-02-13 Richard Henderson <rth@redhat.com>
4061 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4063 2001-02-13 H.J. Lu <hjl@gnu.org>
4065 * ldexp.h (node_type): Add etree_provided.
4066 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4067 type to etree_provided if defined by PROVIDE. Allow updating
4069 (exp_print_tree): Handle etree_provided.
4070 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4073 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4075 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4076 .IA_64.unwind.* pattern to unwind table section and
4077 .IA_64.unwind_info* pattern to unwind info section.
4079 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4081 * Makefile.am: Add linux target for S/390.
4082 * Makefile.in: Likewise.
4083 * configure.host: Likewise.
4084 * configure.tgt: Likewise.
4085 * emulparams/elf64_s390.sh: New file.
4086 * emulparams/elf_s390.sh: New file.
4088 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4090 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4092 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4094 2001-02-06 Philip Blundell <philb@gnu.org>
4096 * Makefile.am: Remove mention of earmelf_linux26.
4097 * Makefile.in: Regenerate.
4099 2001-02-04 Philip Blundell <philb@gnu.org>
4101 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4102 * emulparams/armelf_linux26.sh: Delete.
4103 * configure.tgt: Remove mention of armelf_linux26 emulation.
4105 2001-02-01 Nick Clifton <nickc@redhat.com>
4107 * ld.1: Replace occurances of -oformat with --oformat.
4109 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4111 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4112 load_base is specified.
4114 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4116 * emultempl/elf32.em: Correct spelling in comments and listed
4119 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4121 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4122 default for the first section of a group of overlay sections.
4124 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4126 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4127 * Makefile.in: Regenerate.
4128 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4129 Check for null tool_dir.
4131 2001-01-16 Jim Wilson <wilson@redhat.com>
4133 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4134 and IA_64.unwind.info.
4136 2001-01-16 H.J. Lu <hjl@gnu.org>
4138 * ldlang.c (lang_check): Merge the private data only if the
4139 input file has contents.
4141 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4143 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4145 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4146 enabling search for libmilli. On a relocatable link, make .text
4148 (LDEMUL_AFTER_PARSE): Define.
4149 (hppaelf_finish): Correct spelling of relocatable in comments.
4151 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4152 rummage through the script for sections on the unique list.
4153 Correct length of strncmp for ".note".
4154 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4156 * ldlang.c (unique_section_list): New var.
4157 (unique_section_p): New function.
4158 (walk_wild_section): Don't match sections on unique_section_list.
4159 (lang_add_unique): New function.
4160 Correct spelling of relocatable in comments.
4162 * ldlang.h (struct unique_sections): Declare.
4163 (unique_section_list): Declare.
4164 (unique_section_p): Declare.
4165 (lang_add_unique): Declare.
4167 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4168 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4170 * ld.texinfo (--unique): Update.
4172 2001-01-13 Nick Clifton <nickc@redhat.com>
4174 * lexsup.c (parse_args): Remove spurious white space.
4176 2001-01-12 Nick Clifton <nickc@redhat.com>
4178 * lexsup.c (parse_args): Update copyright date.
4180 2001-01-12 Philip Blundell <pb@futuretv.com>
4182 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4184 2001-01-10 Kazu Hirata <kazu@hxi.com>
4186 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4187 * scripttempl/h8300h.sc: Fix formatting.
4188 * scripttempl/h8300s.sc: Likewise.
4189 * scripttempl/h8500.sc: Likewise.
4190 * scripttempl/h8500b.sc: Likewise.
4191 * scripttempl/h8500c.sc: Likewise.
4192 * scripttempl/h8500m.sc: Likewise.
4193 * scripttempl/h8500s.sc: Likewise.
4195 2000-01-07 David O'Brien <obrien@BSDi.com>
4197 * emultempl/elf32.em: Only perform Linux ld hints processing when
4200 2001-01-07 Philip Blundell <philb@gnu.org>
4202 * ld.texinfo (Bug Reporting): Update email address for reports.
4204 2000-12-31 Nick Clifton <nickc@redhat.com>
4206 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4207 options by checking for a return value of '?' not -1.
4209 2000-12-28 Nick Clifton <nickc@redhat.com>
4211 * lexsup.c (struct ld_option): Add new enum value:
4213 (ld_options[]): Change -omagic, -output and -oformat options
4214 to be EXACTLY_TWO_DASHES.
4215 (OUTPUT_COUNT): Use ARRAY_SIZE.
4216 (parse_args): Change parameter 'argc' to unsigned.
4217 Place EXACTLY_TWO_DASHES options into new really_longopts
4219 If getopt_long_only fails, try calling getopt_long using the
4220 really_longopts array.
4221 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4224 * ldlex.h: Fix prototype of parse_args.
4226 * ld.texinfo: Document that long options starting with 'o'
4227 must be preceeded by two dashes. Change example of a single
4228 dashed long option from -oformat to -trace-symbol.
4230 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4232 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4233 (longopts[]): New --no-default-excludes option.
4234 (gld_${EMULATION_NAME}_list_options): Document.
4235 (gld_${EMULATION_NAME}_parse_args): Handle.
4237 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4239 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4240 whitespace, it breaks the K&R C preprocessor.
4242 2000-12-11 DJ Delorie <dj@redhat.com>
4244 * ld.texinfo: Add notes about --whole-archive and gcc.
4246 2000-11-18 Fred Fish <fnf@be.com>
4248 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4249 (ld_options): Entry for --allow-shlib-undefined.
4250 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4251 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4253 * ld.texinfo: Document new command line switch.
4255 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4257 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4258 .fixup is actually read/write.
4259 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4260 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4261 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4263 2000-12-11 Jan Hubicka <jh@suse.cz>
4265 * NEWS: Add note about x86_64 architecture.
4267 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4269 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4270 Set DWARF2 sections to a VMA of zero.
4272 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4274 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4276 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4277 (sparc*-*-rtems*): Switched from a.out to ELF.
4279 2000-11-30 Jan Hubicka <jh@suse.cz>
4281 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4282 (eelf_x86_64.c): New.
4283 * Makefile.in: Regenerate.
4284 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4285 * emulparams/elf_x86_64.sh: New.
4287 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4289 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4290 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4292 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4293 merging non-a.out sections into CONSTRUCTING.
4295 2000-11-28 Nick Clifton <nickc@redhat.com>
4297 * ld.1 (COPYING): Mention that the GNU Free Documentation
4298 License is present in the sources, but not the output, and
4299 also available from the GNU website.
4300 (GNU Free Documentation License): Comment out this section.
4302 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4304 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4307 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4309 * ld.1: Remove old date so it does not give the impression the manpage
4312 2000-11-24 Nick Clifton <nickc@redhat.com>
4314 * configure.tgt (xscale-coff): Add target.
4315 (xscale-elf): Add target.
4317 2000-11-24 Fred Fish <fnf@be.com>
4319 * ldmain.c (main): Remove redundant init of config.make_executable
4322 2000-11-15 Richard Henderson <rth@redhat.com>
4324 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4326 2000-11-14 Kazu Hirata <kazu@hxi.com>
4328 * scripttempl/h8300.sc: Fix formatting.
4329 * scripttempl/h8300h.sc: Likewise.
4330 * scripttempl/h8300s.sc: Likewise.
4332 2000-11-14 Denis Chertykov <denisc@overta.ru>
4334 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4336 2000-11-09 Philip Blundell <pb@futuretv.com>
4338 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4339 around orphan sections whose names can be represented in C.
4341 2000-11-07 Jim Wilson <wilson@redhat.com>
4343 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4344 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4346 2000-11-06 Nick Clifton <nickc@redhat.com>
4348 * ld.texinfo: Add GNU Free Documentation License.
4349 * ldint.texinfo: Add GNU Free Documentation License.
4350 * ld.1: Add GNU Free Documentation License.
4352 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4354 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4355 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4357 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4358 Move 2000-11-02 Makefile.in changes to this file.
4359 * Makefile.in: Regenerate.
4361 2000-11-03 Nick Clifton <nickc@redhat.com>
4363 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4364 constructors and destructors.
4365 * scripttempl/h8300h.sc: Ditto.
4366 * scripttempl/h8300s.sc: Ditto.
4367 * scripttempl/h8500.sc: Ditto.
4368 * scripttempl/h8500b.sc: Ditto.
4369 * scripttempl/h8500c.sc: Ditto.
4370 * scripttempl/h8500m.sc: Ditto.
4371 * scripttempl/h8500s.sc: Ditto.
4372 * scripttempl/v850.sc: Ditto.
4373 * scripttempl/w65.sc: Ditto.
4374 * scripttempl/z8000.sc: Ditto.
4376 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4378 * Makefile.in (e_i386_chaos.c): New rule.
4379 (ALL_EMULATIONS): Added e_i386_chaos.o.
4380 * emulparams/elf_i386_chaos.sh: New file.
4381 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4383 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4385 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4386 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4387 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4388 library path suffix.
4389 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4391 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4393 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4394 for consecutive sections.
4396 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4398 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4400 * ld.texinfo: Added notes about this new option.
4402 2000-10-16 Nick Clifton <nickc@redhat.com>
4404 * emultempl/pe.em (_after_open): Add tests of return values from
4405 bfd functions. Emit appropriate error messages if necessary.
4407 2000-10-13 Nick Clifton <nickc@redhat.com>
4409 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4410 local variables - they are not used, but leave in the call to
4411 bfd_canonicalize_symtab.
4412 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4413 pe_dll_search_prefix.
4415 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4417 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4418 (longopts): New --dll-search-prefix option.
4419 (gld_${EMULATION_NAME}_list_options): Document.
4420 (gld_${EMULATION_NAME}_parse_args): Handle.
4421 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4422 dynamically, search for a dll named '<prefix><basename>.dll'
4423 in preference to 'lib<basename>.dll' if --dll-search-prefix
4426 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4428 * ldlang.c (section_already_linked): Set kept_section instead of
4431 2000-10-10 Kazu Hirata <kazu@hxi.com>
4433 * deffile.h: Fix formatting.
4434 * lexsup.c: Likewise.
4437 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4439 * pe-dll.c (make_one): Do not generate code thunk for DATA
4441 (process_def_file): deduce DATA flag for auto-export sumbols.
4443 2000-10-09 Kazu Hirata <kazu@hxi.com>
4445 * ld.h: Fix formatting.
4446 * ldcref.c: Likewise.
4447 * ldctor.h: Likewise.
4448 * ldemul.c: Likewise.
4449 * ldemul.h: Likewise.
4450 * ldexp.c: Likewise.
4451 * ldexp.h: Likewise.
4452 * ldfile.c: Likewise.
4453 * ldfile.h: Likewise.
4454 * ldlang.c: Likewise.
4455 * ldlang.h: Likewise.
4456 * ldmain.c: Likewise.
4457 * pe-dll.c: Likewise.
4459 * pe-dll.c: Revert some formatting fixes.
4461 2000-10-08 Kazu Hirata <kazu@hxi.com>
4463 * pe-dll.c: Fix formatting.
4465 2000-10-05 Kazu Hirata <kazu@hxi.com>
4467 * ldlang.c: Fix formatting.
4469 2000-10-03 DJ Delorie <dj@redhat.com>
4471 * pe-dll.c (fill_edata): initialize entire block
4472 (make_one): fill in correct section.
4474 2000-10-03 Kazu Hirata <kazu@hxi.com>
4476 * ldexp.c: Fix formatting.
4478 2000-10-02 DJ Delorie <dj@redhat.com>
4480 * emultempl/pe.em (gld_*_after_open): detect case where there two
4481 import libraries for same dll; rename one to ensure proper link
4484 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4486 (generate_edata): fix typo
4488 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4490 * scripttempl/crisaout.sc (ENTRY): Now __start.
4491 (.text): Add default setting for __start.
4492 Remove CONSTRUCTORS handling.
4493 (/DISCARD/): Add .gnu.warning.*.
4494 * emulparams/crislinux.sh (ENTRY): Now __start.
4495 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4496 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4497 (ENTRY): Now __start.
4498 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4499 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4501 2000-09-29 Kazu Hirata <kazu@hxi.com>
4503 * deffile.h: Fix formatting.
4505 * ldcref.c: Likewise.
4506 * ldctor.c: Likewise.
4507 * ldctor.h: Likewise.
4508 * ldemul.c: Likewise.
4509 * ldemul.h: Likewise.
4510 * ldexp.c: Likewise.
4511 * ldexp.h: Likewise.
4512 * ldfile.c: Likewise.
4513 * ldfile.h: Likewise.
4514 * ldlang.c: Likewise.
4515 * ldlang.h: Likewise.
4516 * lexsup.c: Likewise.
4518 * pe-dll.c: Likewise.
4520 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4522 * pe-dll.c (process_def_file): Uninitialized data wasn't
4523 exported with --export-all-symbols switch.
4525 2000-09-28 DJ Delorie <dj@redhat.com>
4527 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4528 noname work properly.
4530 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4532 * ld.texinfo (HPPA ELF32): New section.
4534 * emultempl/hppaelf.em (group_size): New.
4535 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4536 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4537 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4538 options to prevent abbreviations matching.
4539 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4540 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4542 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4544 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4545 on the m68*-*-elf target. Make it support COFF input objects.
4547 2000-09-21 Kazu Hirata <kazu@hxi.com>
4549 * ldmain.c: Fix formatting.
4550 * ldmisc.c: Likewise.
4551 * ldver.c: Likewise.
4552 * ldwrite.c: Likewise.
4554 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4556 * ldwrite.c (clone_section): Silence gcc warnings.
4558 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4560 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4561 out of memory failure.
4563 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4564 (clone_section): Handle out of memory failures. Rename var to
4565 avoid c++ reserved word.
4567 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4569 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4570 stub_name param to stub_sec_name.
4571 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4573 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4575 * emultempl/m68kelf.em: New file.
4576 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4577 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4578 * Makefile.in: Regenerate.
4580 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4582 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4585 2000-09-13 Nick Clifton <nickc@redhat.com>
4587 * ldmain.c (multiple_definition): Disable relaxation if
4588 multiple symbol definitions are encountered - otherwise the
4589 linker could abort with an assertion failure.
4591 2000-09-10 Nick Clifton <nickc@redhat.com>
4593 * mri.c: Fix formatting.
4595 2000-09-07 H.J. Lu <hjl@gnu.org>
4597 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4598 * configure: Rebuild.
4600 2000-09-07 H.J. Lu <hjl@gnu.org>
4602 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4603 * Makefile.in: Rebuild.
4605 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4607 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4608 broken list handling. Create __start_SECNAME and __stop_SECNAME
4609 when no place-holder. Add some comments. Test both SEC_CODE and
4610 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4611 Handle case where no output section statement created.
4613 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4615 * configure.tgt (sh-*-linux*): Added.
4616 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4617 * Makefile.in: Rebuilt.
4618 * emulparams/shelf_linux.sh: New file.
4619 * emulparams/shlelf_linux.sh: New file.
4621 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4623 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4624 try shuffling sections when the orphan happens to be the place
4625 holder. Keep count of unique section names generated so we speed
4626 the search for a new name.
4628 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4630 * configure: Rebuilt with new libtool.m4.
4632 2000-09-05 Nick Clifton <nickc@redhat.com>
4634 * Makefile.in: Regenerate.
4635 * aclocal.m4: Regenerate.
4636 * configure: Regenerate.
4637 * config.in: Regenerate.
4638 * po/ld.pot: Regenerate.
4640 * ldint.texinfo: Remove CVS revision marker - it foils local
4643 * emultempl/ticoff.em: Remove extraneous comma.
4645 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4647 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4648 to stub section flags.
4649 (hppa_for_each_input_file_wrapper): New.
4650 (hppa_lang_for_each_input_file): New.
4651 (lang_for_each_input_file): Define to call above.
4652 (multi_subspace): New.
4653 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4654 (PARSE_AND_LIST_PROLOGUE): Define.
4655 (PARSE_AND_LIST_LONGOPTS): Define.
4656 (PARSE_AND_LIST_OPTIONS): Define.
4657 (PARSE_AND_LIST_ARGS_CASES): Define.
4658 (hppaelf_finish): Call elf32_hppa_set_gp.
4659 (hppaelf_set_output_arch): Remove.
4660 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4662 * emulparams/hppalinux.sh (ELFSIZE): Define.
4664 (OTHER_READONLY_SECTIONS): Define.
4666 (GENERATE_SHLIB_SCRIPT): Define.
4668 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4669 to const throughout. Change `void *' to `PTR' throughout.
4670 (lang_memory_default): Function is local to file, add `static'.
4672 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4673 (ehppalinux.c): Likewise.
4674 (earmelf.c): Likewise.
4675 (earmelf_linux.c): Likewise.
4676 (earmelf_linux26.c): Likewise.
4677 * Makefile.in: Regenerate.
4679 * ld.h (ld_config_type): Add unique_orphan_sections.
4680 * lexsup.c (OPTION_UNIQUE): Define.
4681 (ld_options): Add "--unique".
4682 (parse_args): Handle it.
4683 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4684 search for an existing output section if unique_orphan_sections is
4685 set. Make use of bfd_get_unique_section_name rather than
4686 duplicating code here.
4687 * ld.texinfo: Describe --unique.
4689 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4690 optional arg to split-by-file.
4691 (parse_args): Handle them.
4692 * ld.texinfo: Update description of these options.
4693 * ldwrite.c (clone_section): Pass in the section name. Replace
4694 local code with bfd_get_unique_section_name.
4695 (split_sections): Tidy code and comments. Use a list traversal
4696 more appropriate to the list construction. Handle cooked section
4697 sizes. Split when split_by_reloc reached rather than exceeded.
4698 Track section size and split when split_by_file reached. Fix
4699 link_order_tail (even though it's not used).
4700 (ldwrite): Modify condition for calling split_sections to suit
4701 changed split_by_reloc and split_by_file.
4702 * ldmain.c (main): Init config.split_by_reloc and
4703 config.split_by_file to -1.
4704 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4705 Change split_by_file to bfd_size_type.
4707 2000-09-02 Nick Clifton <nickc@redhat.com>
4709 * configure.in: Increase version number to 2.10.91.
4710 * NEWS: Mention new ability to support removal of duplicate DWARF2
4712 * configure: Regenerate.
4713 * aclocal.m4: Regenerate.
4714 * config.in: Regenerate.
4716 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4718 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4720 * scripttempl/elf32avr.sc: Ditto.
4721 * scripttempl/elfd10v.sc: Ditto.
4722 * scripttempl/elfd30v.sc: Ditto.
4723 * scripttempl/elfi370.sc: Ditto.
4724 * scripttempl/elfm68hc11.sc: Ditto.
4725 * scripttempl/elfm68hc12.sc: Ditto.
4726 * scripttempl/elfi386beos.sc: Ditto.
4727 * scripttempl/v850.sc: Ditto.
4729 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4731 * acinclude.m4: Include libtool and gettext macros from the
4733 * aclocal.m4, configure: Rebuilt.
4735 2000-08-25 Nick Clifton <nickc@redhat.com>
4737 * ldlang.c (open_output): When choosing the target for a
4738 particular endianness, do nothing if the target is not
4741 2000-08-25 H.J. Lu <hjl@gnu.org>
4743 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4744 check -rpath nor LD_RUN_PATH for cross link.
4745 * ld.texinfo: Document the change.
4747 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4749 * NEWS: Mention support for CRIS.
4751 2000-08-23 H.J. Lu <hjl@gnu.org>
4753 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4754 the current runpath list from bfd_elf_get_runpath_list ()
4757 2000-08-22 H.J. Lu <hjl@gnu.org>
4759 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4760 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4761 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4762 trace_file_tries is non-zero.
4763 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4764 if trace_file_tries is non-zero.
4766 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4769 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4771 * NEWS: Mention i860 support.
4773 2000-08-14 Andreas Schwab <schwab@suse.de>
4775 * scripttempl/elf.sc: Fix last change to use correct comment
4778 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4780 * scripttempl/elf.sc: Add a comment giving the correspondence
4781 between sections, per-datum sections, and linkonce sections. Make
4782 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4785 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4787 * emulparams/elf32_i860.sh: New file.
4788 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4789 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4790 (eelf32_i860.c): New rule.
4791 * Makefile.in: Regenerate.
4793 2000-08-10 Nick Clifton <nickc@cygnus.com>
4795 * emulparams/mipspe.sh (ENTRY): Add definition.
4797 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4799 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4802 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4804 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4805 the final size of .bss section.
4806 * scripttempl/elfm68hc12.sc: Likewise.
4808 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4810 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4811 gld${EMULATION_NAME}_parse_args for consistency. Combine
4812 lastoptind and prevoptind vars, and keep track of last optind.
4813 (gld_${EMULATION_NAME}_list_options): Rename to
4814 gld${EMULATION_NAME}_list_options.
4816 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4818 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4819 (i586-sco-sysv5uw7.1.0).
4821 2000-07-27 H.J. Lu <hjl@gnu.org>
4823 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4824 (PARSE_AND_LIST_PROLOGUE): New.
4825 (PARSE_AND_LIST_LONGOPTS): Likewise.
4826 (PARSE_AND_LIST_OPTIONS): Likewise.
4827 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4828 (PARSE_AND_LIST_EPILOGUE): Likewise.
4830 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4832 * emultempl/armelf.em: Elide functions common to elf32.em,
4833 ie. most of the file.
4834 (arm_elf_after_open): New. Do arm specific things then call
4835 gld${EMULATION_NAME}_after_open.
4836 (arm_elf_before_allocation): New. Call
4837 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4838 (PARSE_AND_LIST_PROLOGUE): Define.
4839 (PARSE_AND_LIST_SHORTOPTS): Define.
4840 (PARSE_AND_LIST_LONGOPTS): Define.
4841 (PARSE_AND_LIST_OPTIONS): Define.
4842 (PARSE_AND_LIST_ARGS_CASES): Define.
4843 (LDEMUL_AFTER_OPEN): Define.
4844 (LDEMUL_BEFORE_ALLOCATION): Define.
4845 (LDEMUL_BEFORE_PARSE): Define.
4846 (LDEMUL_FINISH): Define.
4848 * emultempl/hppaelf.em: Similarly zap most of this file.
4849 (hppaelf_add_stub_section): Prototype.
4850 (hppaelf_layaout_sections_again): Prototype.
4851 (hook_in_stub): Prototype.
4852 (LDEMUL_SET_OUTPUT_ARCH): Define.
4853 (LDEMUL_FINISH): Define.
4854 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4856 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4857 (EXTRA_EM_FILE): New.
4858 * emulparams/armelf_linux.sh: Likewise.
4859 * emulparams/armelf_linux26.sh: Likewise.
4860 * emulparams/hppalinux.sh: Likewise.
4861 * emulparams/hppaelf.sh: Likewise.
4864 * emultempl/elf32.em: Fix formatting.
4865 (EXTRA_EM_FILE): Source it.
4866 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4867 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4868 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4869 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4870 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4871 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4872 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4873 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4874 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4875 allow functions in this file to be overridden.
4876 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4878 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4880 * emultempl/elf32.em: Reorganize file.
4882 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4884 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4885 specific option to fit 64-bit executable in the lower
4886 31-bit address range. This is done by changing start
4887 address of .interp (the very first section of executable)
4888 and then setting EF_ALPHA_32BIT elf header flag.
4890 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4892 * emultempl/m68kcoff.em: New file.
4893 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4894 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4896 * Makefile.in: Regenerate.
4898 2000-07-20 H.J. Lu <hjl@gnu.org>
4900 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4901 and "disable-new-dtags" to stop getopt from treating -d/-e as
4902 abbreviations for these options.
4904 2000-07-20 H.J. Lu <hjl@gnu.org>
4906 * ld.texinfo: Add documentation for --disable-new-dtags and
4909 * ldmain.c (main): Initialize link_info.new_dtags to false.
4911 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4912 --disable-new-dtags and --enable-new-dtags.
4913 (gld_${EMULATION_NAME}_list_options): Likewise.
4915 2000-07-05 Kenneth Block <krblock@computer.org>
4917 * lexsup.c: Add optional style to demangle switch
4918 * ld.texinfo: Document optional style to demangle switch.
4920 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4922 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4924 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4925 Regenerate dependencies.
4926 * Makefile.in: Rebuild.
4927 * configure.tgt (cris-*-*): New target.
4928 * emulparams/crisaout.sh, emulparams/criself.sh,
4929 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4930 * po/POTFILES.in, po/ld.pot: Regenerate.
4932 2000-07-20 H.J. Lu <hjl@gnu.org>
4934 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4935 Print out ignored -z options.
4937 2000-07-19 H.J. Lu <hjl@gnu.org>
4939 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4940 (PARSE_AND_LIST_PROLOGUE): New.
4941 (PARSE_AND_LIST_LONGOPTS): Likewise.
4942 (PARSE_AND_LIST_OPTIONS): Likewise.
4943 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4945 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4947 * lexsup.c (ld_options): Comment out 'z'.
4948 (parse_args): Likewise.
4950 * emultempl/elf32.em: Include "elf/common.h".
4951 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4953 (gld_${EMULATION_NAME}_list_options): Likewise.
4955 * ld.texinfo: Add documentation for the recognized -z options.
4957 2000-07-19 H.J. Lu <hjl@gnu.org>
4959 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4960 bfd_elf_set_dt_needed_soname ().
4962 2000-07-18 DJ Delorie <dj@cygnus.com>
4964 * pe-dll.c (pe_dll_id_target): check object target name also
4966 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4968 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4969 ${INIT_END} if relocating.
4970 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4972 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4974 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4975 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4976 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4977 errors introduced by the old dynamic lib search order.
4979 2000-07-17 DJ Delorie <dj@cygnus.com>
4981 * pe-dll.c (process_def_file): auto-export data items also
4982 (pe_process_import_defs): also see if _imp_ form needed
4984 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4986 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4987 for dll import libraries
4989 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4991 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4992 gcc 2.95.2 and later.
4994 2000-07-11 Kazu Hirata <kazu@hxi.com>
4996 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4999 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5001 * ldemul.h (struct lang_input_statement_struct): Remove forward
5003 (struct search_dirs): Likewise.
5004 * ldfile.h (struct lang_input_statement_struct): Likewise.
5005 Protect file from multiple inclusion.
5006 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5007 declaration from macro to file scope.
5009 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5010 * ldgram.y: Likewise here.
5011 * ldlang.c: And here.
5012 * ldmain.c: And here.
5013 * mpw-elfmips.c: And here.
5014 * mpw-eppcmac.c: And here.
5015 * emultempl/aix.em: And here.
5016 * emultempl/armcoff.em: And here.
5017 * emultempl/armelf.em: And here.
5018 * emultempl/armelf_oabi.em: And here.
5019 * emultempl/beos.em: And here.
5020 * emultempl/elf32.em: And here.
5021 * emultempl/hppaelf.em: And here.
5022 * emultempl/linux.em: And here.
5023 * emultempl/lnk960.em: And here.
5024 * emultempl/pe.em: And here.
5025 * emultempl/sunos.em: And here.
5026 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5027 * mpw-idtmips.c: Ditto.
5028 * emultempl/generic.em: Ditto.
5029 * emultempl/gld960.em: Ditto.
5030 * emultempl/gld960c.em: Ditto.
5031 * emultempl/mipsecoff.em: Ditto.
5032 * emultempl/ticoff.em: Ditto.
5033 * emultempl/vanilla.em: Ditto.
5035 * pe-dll.c: Include ldfile.h
5036 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5038 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5039 arguments to bfd_elf32_size_dynamic_sections call.
5040 (gldelf32ebmip_place_orphan): Add missing arguments to
5041 lang_leave_output_section_statement call.
5043 2000-07-10 H.J. Lu <hjl@gnu.org>
5045 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5047 (strhash): Likewise.
5048 (compute_dll_image_base): Likewise.
5049 (pe_undef_found_sym): Likewise.
5050 (pe_undef_cdecl_match): Likewise.
5051 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5052 argument "arch" with ATTRIBUTE_UNUSED.
5054 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5056 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5058 From Ryan Bradetich <rbradetich@uswest.net>
5059 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5061 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5063 Changes to create multiple linker stubs, positioned immediately
5064 before the section where they are required.
5065 * emultempl/hppaelf.em: Include elf32-hppa.h.
5066 (stub_sec, file_chain): Delete.
5067 (hppaelf_create_output_section_statements): Don't make a stub
5069 (hook_stub_info): New struct.
5070 (hook_in_stub): New function.
5071 (hppaelf_add_stub_section): New function.
5072 (hppaelf_finish): Do nothing for relocateable links. Modify the
5073 call to elf32_hppa_size_stubs. Move code for updating section
5075 (hppaelf_layaout_sections_again): ..to here, a new function.
5077 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5078 broken list handling. Pass in a pointer to the list.
5079 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5081 (hppaelf_before_parse): Prototype.
5082 (hppaelf_set_output_arch): Prototype.
5083 (hppaelf_create_output_section_statements): Prototype.
5084 (hppaelf_delete_padding_statements): Prototype.
5085 (hppaelf_finish): Prototype.
5088 * emultempl/hppaelf.em: Include ctype.h.
5089 (struct orphan_save): New.
5090 (gld${EMULATION_NAME}_place_orphan): New.
5091 (output_rel_find): New.
5092 (hppaelf_get_script): Update from elf32.em.
5093 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5094 Change emulation_name field to "${EMULATION_NAME}". Add
5095 gld${EMULATION_NAME}_place_orphan.
5097 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5098 ehppalinux.o, sort it. Regenerate dependencies.
5099 (ehppalinux.c): Depend on hppaelf.em
5100 * Makefile.in: Regenerate.
5102 * configure.tgt: targ_emul=hppalinux for hppa*linux
5104 * emulparams/hppalinux.sh: New.
5105 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5107 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5109 * lexsup.c (parse_args): Copy section name.
5111 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5113 * emultempl/pe.em: institute the following search order for
5114 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5115 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5116 static lib (libfoo.a) if none of the above are found.
5118 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5120 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5121 (longopts): New --{enable,disable}-auto-image-base options.
5122 (gld_${EMULATION_NAME}_list_options): Document.
5123 (gld_${EMULATION_NAME}_parse): Handle.
5124 (strhash): New static function.
5125 (compute_dll_image_base): New static function.
5126 (gld_${EMULATION_NAME}_set_symbols): Use.
5128 2000-07-05 DJ Delorie <dj@redhat.com>
5132 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5134 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5135 * emulparams/elf32btsmip.sh: New file.
5136 * Makefile.am: Add traditional mips target.
5137 * Makefile.in: Rebuild.
5139 2000-07-01 H.J. Lu <hjl@gnu.org>
5141 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5142 automake to use YLWRAP.
5143 * Makefile.in: Rebuild.
5145 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5147 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5148 (CLEANFILES): Add DEPA.
5149 * Makefile.in: Regenerate.
5151 2000-06-30 Timothy Wall <twall@ppc>
5153 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5154 the page in the upper octet of the address.
5156 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5158 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5160 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5162 * NEWS: arm-elf does --gc-sections too.
5164 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5166 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5168 * Makefile.in: Regenerate.
5170 2000-06-21 H.J. Lu <hjl@gnu.org>
5172 * Makefile.am: Rebuild dependency.
5173 * Makefile.in: Rebuild.
5175 2000-06-20 H.J. Lu <hjl@gnu.org>
5177 * Makefile.am: Rebuild dependency.
5178 * Makefile.in: Rebuild.
5180 2000-06-20 Timothy Wall <twall@cygnus.com>
5182 * scripttempl/tic54xcoff.sc: New.
5183 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5184 * gen-doc.texi: Add flag for TI COFF.
5185 * ld.texinfo: Add documentation for TI COFF handling switches.
5186 * emultempl/ticoff.em: New. TI COFF handling.
5187 * configure.tgt: Add tic54x target.
5188 * Makefile.am: Add tic54x target.
5189 * Makefile.in: Ditto.
5191 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5193 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5194 checking for backslashes.
5196 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5198 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5200 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5202 * NEWS: Update list of targets supporting --gc-sections.
5204 * scripttempl/elf.sc: KEEP .eh_frame contents.
5205 * scripttempl/elfd30v.sc: Same here.
5207 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5209 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5211 * Makefile.in: Rebuild.
5212 * configure.tgt: Recognize m68hc12 and m68hc11.
5213 * scripttempl/elfm68hc12.sc: New file.
5214 * emulparams/m68hc12elfb: New emulation.
5215 * emulparams/m68hc12elf: New emulation.
5216 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5217 (includes a memory.x script to define the ROM and RAM banks).
5218 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5219 New configuration files for support of Motorola 68hc11
5221 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5223 * ldmain.c (main): Only change SEC_READONLY for final link.
5225 2000-06-13 H.J. Lu <hjl@gnu.org>
5227 * configure: Regenerate.
5229 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5231 * configure.in (VERSION): Update to show this is the CVS mainline.
5233 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5235 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5236 input objects to be ECOFF.
5237 (check_sections): einfo takes %B, not %P, to print a BFD name.
5239 2000-06-05 Michael Matz <matz@ifh.de>
5241 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5244 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5246 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5248 * emulparams/avr1200.sh (STACK): Define as 0.
5249 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5250 * emulparams/avr4433.sh (STACK): Likewise.
5251 * emulparams/avr44x4.sh (STACK): Likewise.
5252 * emulparams/avr85xx.sh (STACK): Likewise.
5253 * emulparams/avrmega103.sh (STACK): Likewise.
5254 * emulparams/avrmega161.sh (STACK): Likewise.
5255 * emulparams/avrmega603.sh (STACK): Likewise.
5256 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5257 (__stack): Define from ${STACK} for main().
5259 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5261 * Makefile.am: Update dependencies with "make dep-am"
5262 * Makefile.in: Regenerate.
5264 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5266 * ldmain.c: Include filenames.h.
5267 (set_scripts_dir): Support backslashes in program name.
5269 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5271 * ldmain.c (main): When deciding if ".text" section should be
5272 read-only, don't forget to reset SEC_READONLY because it
5273 could be already set.
5275 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5277 * ld.1: Add documentation for new command line option:
5278 --section-start <sectionname>=<sectionorg>
5279 This is a generic version of -Ttext etc. which accepts
5280 any section name as a parameter instead of just text/data/
5282 * ld.texinfo: More docs.
5284 * lexsup.c: (parse_args): Recognize new command line option.
5285 (ld_options): Add new option.
5287 2000-05-18 H.J. Lu <hjl@gnu.org>
5289 * lexsup.c (parse_args): `i' == `r', not `q'.
5291 2000-05-18 Jeffrey A Law (law@cygnus.com)
5293 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5295 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5296 Rick Gorton <gorton@scrugs.lkg.dec.com>
5298 Add support for '-q' == '--emit-relocs' switch.
5299 * ldmain.c (main): Default to false.
5300 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5301 * NEWS: Describe the emitrelocations switch.
5302 * ld.texinfo: Describe the emitrelocations switch.
5304 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5306 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5307 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5308 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5311 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5313 * lexsup.c (parse_args): Update the year in the copyright notice.
5315 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5317 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5318 Replace defines with those from intl/libgettext.h to quieten gcc
5321 2000-05-10 H.J. Lu <hjl@gnu.org>
5323 * ldlang.c (open_input_bfds): Don't load the same file within
5324 a group again if the whole archive has been loaded already.
5326 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5328 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5329 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5332 2000-05-01 Jim Wilson <wilson@cygnus.com>
5334 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5336 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5337 host "ia64-*-linux-gnu*".
5339 2000-04-29 Andreas Jaeger <aj@suse.de>
5341 * ld.h: Correctly check GCC version.
5343 2000-04-25 Jeffrey A Law (law@cygnus.com)
5345 * Makefile.am: Add PA64 support. Add missing dependencies for
5347 * Makefile.in: Rebuilt.
5348 * configure.tgt: Add PA64 support (currently disabled).
5350 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5352 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5353 (output_rel_find): New function.
5354 (hold_section, hold_use): Delete.
5355 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5356 hold_interp): Make local to place_orphan.
5357 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5358 rather than place_section to find possible previous use of orphan.
5359 Similarly find the place-holder output sections. Use returned
5360 value from lang_enter_output_section_statement rather than calling
5361 lang_output_section_statement_lookup.
5362 * emultempl/armelf.em: Same here.
5363 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5365 * ldlang.c (lang_enter_output_section_statement): Return output
5367 * ldlang.h (lang_enter_output_section_statement): Change
5370 * ldlang.h (lang_output_section_statement): Export it.
5371 * ldlang.c (lang_output_section_statement): Ditto.
5373 2000-04-24 Nick Clifton <nickc@cygnus.com>
5375 * ld.texinfo (Output Section Data): Add note that section data
5376 commands cannot appear outside of section directives.
5378 2000-04-2 Matthew Green <mrg@cygnus.com>
5380 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5382 2000-04-21 Richard Henderson <rth@cygnus.com>
5383 David Mosberger <davidm@hpl.hp.com>
5385 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5386 (eelf64_ia64.c): New rule.
5387 * Makefile.in: Rebuild.
5388 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5389 * emulparams/elf64_ia64.sh: New file.
5391 2000-04-21 Richard Henderson <rth@cygnus.com>
5393 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5395 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5397 * dep-in.sed: Match space at start of file name, not at end.
5399 2000-04-18 H.J. Lu <hjl@gnu.org>
5401 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5402 lang_leave_output_section_statement () after calling
5403 lang_enter_output_section_statement ().
5404 * emultempl/armelf.em: Likewise.
5406 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5408 * emultempl/elf32.em (struct orphan_save): Add section field.
5409 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5410 better order, and place first orphan section as we did before the
5411 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5412 Don't call make_bfd_section here, let wild_doit do the job for us.
5413 Don't build a statement list when we'll only throw it away.
5414 * emultempl/armelf.em: Ditto.
5415 * emultempl/pe.em: Similarly.
5417 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5419 * scripttempl/elfppc.sc: Remove.
5420 * emulparams/elf32ppc.sh: Use elf.sc.
5421 * emulparams/elf32lppc.sh: Use elf.sc.
5422 * emulparams/elf32ppclinux.sh: Use elf.sc.
5423 * emulparams/elf32ppcsim.sh: New file.
5424 * emulparams/elf32lppcsim.sh: New file.
5425 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5426 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5427 * Makefile.in: Regenerate.
5428 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5430 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5432 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5433 ~SEC_ALLOC sections too. Init start address of debug sections.
5434 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5435 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5436 Also set all relocateable section start addresses.
5438 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5440 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5441 Add new BSS_PLT variable for when .plt need not be contained in
5442 the file. Move _etext so that it is also after .fini, and provide
5443 both etext and _etext with a leading underscore. Mark the start
5446 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5448 * emultempl/elf32.em (struct orphan_save): New.
5449 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5450 hold_interp): Make them struct orphan_save.
5451 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5452 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5453 the end of the relevant section list. Also add associated section
5454 statements to the end of any previous orphan statements.
5455 * emultempl/armelf.em: Similarly.
5456 * emultempl/pe.em: Similarly.
5458 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5460 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5462 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5464 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5465 --enable-build-warnings option.
5466 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5467 * Makefile.in, configure: Re-generate.
5469 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5471 * po/ld.pot: Regenerate.
5473 * lexsup.c (help): Restore translated part of bug string.
5475 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5476 (DEP): Quote when passing vars to sub-make. Add warning message
5478 (DEP1): Rewrite for "gcc -MM".
5479 (CLEANFILES): Add DEP2.
5480 Update dependencies.
5481 * Makefile.in: Regenerate.
5483 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5485 * ld.h: #include "bin-bugs.h"
5486 * lexsup.c (help): Use REPORT_BUGS_TO.
5488 2000-03-27 Denis Chertykov <denisc@overta.ru>
5490 * configure.tgt (avr-*-*): New target support.
5491 * Makefile.am: Likewise.
5492 * scripttempl/elf32avr.sc: New script file.
5493 * emulparams/avr1200.sh: New file.
5494 * emulparams/avr23xx.sh: New file.
5495 * emulparams/avr4433.sh New file.
5496 * emulparams/avr44x4.sh New file.
5497 * emulparams/avr85xx.sh New file.
5498 * emulparams/avrmega103.sh New file.
5499 * emulparams/avrmega161.sh New file.
5500 * emulparams/avrmega603.sh New file.
5501 * Makefile.in: Regenerate.
5503 2000-03-09 Andreas Jaeger <aj@suse.de>
5505 * Makefile.am (check-DEJAGNU): Also unset LANG.
5506 * Makefile.in: Rebuild.
5508 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5510 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5513 2000-03-02 H.J. Lu <hjl@gnu.org>
5515 * emulparams/elf32mcore.sh: Include "getopt.h".
5517 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5519 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5521 2000-03-01 H.J. Lu <hjl@gnu.org>
5523 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5524 * emulparams/shpe.sh: Likewise.
5526 2000-03-01 Nick Clifton <nickc@cygnus.com>
5528 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5529 to unused parameters.
5531 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5532 functions only used by DLL code.
5533 (_place_orphan): Initialise 'dollar'.
5535 2000-03-01 H.J. Lu <hjl@gnu.org>
5537 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5538 indicate if the undefined symbol is a fatal error or not.
5539 Don't delete the output file if "fatal" is false.
5541 2000-02-29 H.J. Lu <hjl@gnu.org>
5543 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5544 Set LC_COLLATE and LC_ALL to null and export them. It is for
5545 sort which expects the C locale.
5546 Add $(LIBS) to all $(HOSTING_LIBS).
5547 * Makefile.in: Rebuild.
5549 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5551 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5552 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5553 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5554 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5555 find_potential_libraries.
5557 2000-02-28 Jim Blandy <jimb@redhat.com>
5559 * ldgram.y (exclude_name_list): Don't require a comma to separate
5560 list entries; the lexer considers commas to be valid part of a
5561 filename, so in something like `foo, bar' the comma is considered
5562 part of the first filename, `foo,'.
5563 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5565 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5567 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5568 host "i[3456]86-*-freebsdelf*".
5570 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5572 * scripttempl/i386go32.sc: Move misplaced semicolons.
5574 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5576 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5577 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5578 (eelf64hppa.c, ehppaelf.c): Remove targets.
5579 * Makefile.in: Rebuild.
5581 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5583 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5584 GNU/Linux/sparc, but keep the default as 32.
5586 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5587 it default if sparcv9 or sparc64.
5589 2000-02-24 Nick Clifton <nickc@cygnus.com>
5591 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5592 * Makefile.in: Regenerate.
5593 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5595 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5596 find_potential_libraries.
5597 * ldemul.c (ldemul_find_potential_libraries): New function.
5599 * ldfile.c (ldfile_open_file_search): Allow function to be
5601 (ldfile_open_file): Call ldemul_find_potential_libraries.
5602 * ldfile.h: Add prototype for ldfile_open_file_search.
5604 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5606 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5607 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5609 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5610 (gld_X_find_potential_libraries): New function. Search for
5611 libraries called "*.lib".
5613 * scripttempl/pe.sc: Add .pdata section.
5615 2000-02-23 Richard Henderson <rth@cygnus.com>
5617 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5618 Add and use memory regions.
5620 2000-02-23 Linas Vepstas (linas@linas.org)
5622 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5624 * Makefile.am: Add support for Linux/IBM 370.
5625 * configure.tgt: Likewise.
5627 * Makefile.in: Regenerate.
5629 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5631 * ldlang.c (print_input_section, print_data_statement,
5632 print_reloc_statement, print_padding_statement, insert_pad,
5633 size_input_section, lang_check_section_addresses,
5634 lang_size_sections, lang_do_assignments, lang_set_startof,
5635 lang_one_common): Change `opb' to unsigned.
5636 (lang_do_assignments): Also change `size' to unsigned.
5638 2000-02-16 Richard Henderson <rth@cygnus.com>
5640 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5642 2000-02-16 Timothy Wall <twall@cygnus.com>
5644 * mri.c (mri_draw_tree): Add default LMA region argument to call
5645 to lang_leave_output_section_statement.
5646 * ldlang.h: Update prototypes with LMA region arguments.
5647 * ldlang.c (lang_size_sections): Encapsulate region bounds
5648 checking in os_check_region call.
5649 (os_check_region): New function.
5650 (lang_output_section_statement_lookup): Initialize lma_region.
5651 (lang_leave_output_section_statement): Add LMA region argument.
5652 (lang_leave_overlay): Ditto.
5653 * ldgram.y: Handle LMA region syntax.
5654 * ld.texinfo (Output Section Description): Describe LMA region usage.
5655 * emultempl/armelf.em (gld$place_orphan): Add default value for
5656 lma region in call to lang_leave_output_section_statement.
5657 * emultempl/elf32.em (gld$place_orphan): Add default value for
5658 lma region in call to lang_leave_output_section_statement.
5659 * emultempl/pe.em (gld$place_orphan): Add default value for
5660 lma region in call to lang_leave_output_section_statement.
5663 2000-02-04 Timothy Wall <twall@redhat.com>
5665 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5666 octets when calculating section end addresses.
5668 2000-02-04 Timothy Wall <twall@redhat.com>
5670 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5672 2000-02-03 Timothy Wall <twall@redhat.com>
5674 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5676 * ldlang.c (print_input_section, print_data_statement,
5677 print_reloc_statement, print_padding_statement): Print target
5678 address values and section sizes as bytes, not octets.
5679 (insert_pad) Calculate padding size in octets, and adjust "dot"
5681 (size_input_section) Always adjust "dot" by bytes, not octets.
5682 (lang_check_section_addresses, lang_do_assignments) Adjust
5683 "dot" by bytes, not octets. Use the larger of the directive size
5684 or octets_per_byte for the number of octets actually allocated in
5686 (lang_set_startof) Make sure STARTOF returns a target address.
5687 (lang_one_common) Record size changes in octets.
5688 (lang_abs_symbol_at_end_of) Section end symbol's value is
5689 recorded in target bytes.
5690 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5691 to be clear about behavior when an octet is smaller than one byte.
5693 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5695 * ldcref.c (output_cref): Don't pass message strings to printf
5699 * ldmisc.c (vfinfo): Same here.
5702 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5704 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5705 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5706 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5707 Add missing NULL initialisers, and comments.
5709 2000-01-21 Nick Clifton <nickc@cygnus.com>
5711 * ldlang.c (lang_size_sections): Fix typo in comment.
5713 2000-01-18 H.J. Lu <hjl@gnu.org>
5715 * ldlang.c (lang_size_sections): Also update the current
5716 address of a region if the SEC_NEVER_LOAD bit is not set.
5718 2000-01-10 Philip Blundell <pb@futuretv.com>
5720 * configure.tgt (arm*-*-conix*): New target.
5722 2000-01-07 Nick Clifton <nickc@cygnus.com>
5724 * ld.texinfo (Options): Remind users to preceed linker command
5725 line switches with -Wl, (or whatever is appropriate) if it is
5726 being invoked by a comnpiler driver program.
5727 Fix description of the behaviour of the -n command line switch.
5729 2000-01-05 Catherine Moore <clm@cygnus.com>
5731 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5733 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5734 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5735 (exclude_name_list): New.
5736 ldlang.c (walk_wild_section): Support list of excluded files.
5737 (print_wild_statement): Likewise.
5738 (lang_add_wild): Likewise.
5739 * ldlang.h (lang_wild_statement_type): Likewise.
5740 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5742 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5744 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5745 (process_def_file): Use.
5746 (pe_dll_compat_implib): New variable.
5749 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5750 pe_dll_compat_implib.
5752 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5753 compat-implib options.
5754 (gld_${EMULATION_NAME}_list_options): List new options.
5755 (gld_${EMULATION_NAME}_parse_args): Handle.
5757 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5760 * deffilep.y (opt_name): Allow "." in name.
5762 For older changes see ChangeLog-9899
5768 version-control: never