1 2003-04-01 Jakub Jelinek <jakub@redhat.com>
3 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
4 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
5 if --enable-64-bit-bfd.
7 2003-04-01 Nick Clifton <nickc@redhat.com>
9 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
11 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
14 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
16 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
19 2003-03-31 David Heine <dlheine@suif.stanford.edu>
21 * ldfile.c (ldfile_add_library_path): Always allocate space for
23 * ldlang.c (lang_register_vers_node): Free the node if it cannot
25 * ldmain.c (set_scripts_dir): Always free the constructed
27 (add_keepsyms_file): Fix memory leak.
28 * ldmisc.c (vfinfo): Likewise.
29 * lexsup.c (parse_args): Likewise
31 2003-03-25 Stan Cox <scox@redhat.com>
32 Nick Clifton <nickc@redhat.com>
34 Contribute support for Intel's iWMMXt chip - an ARM variant:
36 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
37 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
38 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
41 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
43 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
44 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
45 (main): Initialize them.
46 * ldfile.c: Include pathnames.h.
47 (is_sysrooted_pathname): New.
48 (ldfile_add_library_path): Use it.
49 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
50 search_dirs if given an absolute pathname.
51 (ldfile_open_file): Issue error message for sysrooted
53 * Makefile.am: Updated dependencies.
54 * Makefile.in: Rebuild.
56 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
58 * ld.texinfo: Rename all occurances of C54X to TIC54X.
60 2003-03-19 Andreas Schwab <schwab@suse.de>
62 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
65 2003-03-18 Danny Smith <dannysmith@users.sourceforge,net>
67 * defilep.y (opt_base): If no number given, set to default
70 2003-03-13 Danny Smith <dannysmith@users.sourceforge,net>
72 * deffilep.y (def_import): Use default extension of "dll"
73 if no extension provided in parsed IMPORT definition.
75 * deffilep.y (def_lex): Revert 2003-03-12 change.
76 (dot_name): New id type and rule.
77 (expline): Use instead of ID.
78 (opt_equal_name): Likewise.
80 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
82 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
84 2003-03-07 Christopher Faylor <cgf@redhat.com>
86 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
87 apparent accidental removal on 2003-01-06.
89 2003-03-04 Dmitry Diky <diwil@mail.ru>
91 * Makefile.am: Add new devices x1122 x1132 emulation
92 * configure.tgt: Likewise.
93 * Makefile.in: Regenerate.
94 * emulparams/msp430x1122.sh: New file.
95 * emulparams/msp430x1132.sh: New file.
97 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
99 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
102 * ldfile.h (struct search_dirs): Added sysrooted field.
103 * ldlang.h (struct lang_input_statement_struct): Likewise.
104 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
105 (ldfile_open_file_search): Look for sysrooted filename starting
106 with / in ld_sysroot instead of in the current directory. Clear
107 sysrooted flag if it's found in the current directory. Set it
108 from the search directory's sysrooted flag where it is found
110 * ldlang.c (ldlang_sysrooted_script): New static variable.
111 (new_afile): Mark search_file_enums as sysrooted if
112 ldlang_sysrooted_script.
113 (load_symbols): Set ldlang_sysrooted_script according to the
114 script's sysrooted field while processing it.
115 * ld.texinfo: Document INPUT behavior in sysroot.
117 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
119 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
121 2003-03-03 Alan Modra <amodra@bigpond.net.au>
123 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
124 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
125 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
126 PARSE_AND_LIST_EPILOGUE): Don't define.
127 * emultempl/alphaelf.em: New file.
129 2003-03-01 Alan Modra <amodra@bigpond.net.au>
131 * ldemul.c: Include getopt.h.
132 * emultempl/elf32.em: Include getopt.h earlier.
133 * emultempl/ticoff.em: Likewise.
135 2003-02-28 Alan Modra <amodra@bigpond.net.au>
137 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
138 support when scripts read from files.
140 2003-02-28 Alan Modra <amodra@bigpond.net.au>
142 * ldemul.c (ldemul_parse_args): Return FALSE by default.
143 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
146 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
147 (ldemul_parse_args): Return bfd_boolean. Formatting.
148 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
149 (ldemul_parse_args): Adjust.
150 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
151 Return bfd_boolean from parse_args.
152 * lexsup.c (parse_args): Malloc shortopts, longopts and
153 really_longopts. Call ldemul_add_options and ldemul_handle_option.
154 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
155 gld${EMULATION_NAME}_parse_args.
156 (gld${EMULATION_NAME}_handle_option): Likewise.
157 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
158 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
159 * emultempl/beos.em: Likewise.
160 * emultempl/pe.em: Likewise.
161 * emultempl/ticoff.em: Likewise.
162 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
163 (gld${EMULATION_NAME}_add_sysroot): Prototype.
164 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
166 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
167 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
168 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
169 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
171 * emultempl/generic.em: Likewise.
172 * emultempl/gld960.em: Likewise.
173 * emultempl/gld960c.em: Likewise.
174 * emultempl/linux.em: Likewise.
175 * emultempl/lnk960.em: Likewise.
176 * emultempl/m68kcoff.em: Likewise.
177 * emultempl/mipsecoff.em: Likewise.
178 * emultempl/sunos.em: Likewise.
179 * emultempl/vanilla.em: Likewise.
180 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
182 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
184 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
185 memory allocation error.
187 * Makefile.am (ldmain.o): Define TOOLBINDIR.
188 * Makefile.in: Rebuilt.
189 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
191 2003-02-21 Bob Wilson <bob.wilson@acm.org>
193 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
194 call os_region_check when it is set.
195 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
196 lang_size_sections_1.
197 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
198 only for the last call, not on every relaxation iteration.
199 * ldlang.h (lang_size_sections): Update prototype.
200 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
201 to lang_size_sections.
202 (pe_exe_fill_sections): Likewise.
203 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
204 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
205 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
206 (ppc_layout_sections_again): Likewise.
208 2003-02-21 Bob Wilson <bob.wilson@acm.org>
210 * gen-doc.texi: Set ARM and HPPA variables.
211 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
212 title capitalization more consistent. Add missing menu entries for
213 machine-specific sections and conditionalize them consistently.
214 Conditionalize text that is irrelevant when SingleFormat is set.
215 Add @group divisions to improve page breaks in long examples.
216 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
217 is correct. Remove "FIXME" comment about not using
218 @raisesections/@lowersections. Use @raisesections/@lowersections
219 consistently for machine-specific sections. Change to be more polite
220 about poor bug reports. Replace FDL appendix with include of fdl.texi.
221 Move WIN32 node to match its order in the menus.
222 * fdl.texi: New file.
224 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
226 * configure.in (TARGET_SYSTEM_ROOT): Set default to
227 ${exec_prefix}/${target_alias}/sys-root. Match explicit
228 '${exec_prefix}' (in addition to the expansion thereof) as
230 * configure: Rebuilt.
232 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
234 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
236 2003-02-20 Harri Porten <porten@kde.org>
238 * ldgram.y (vers_defns): Allow optional trailing semicolon in
241 2003-02-18 Alan Modra <amodra@bigpond.net.au>
243 * emultempl/ppc32elf.em: New file.
244 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
245 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
246 (eelf32lppcnto.c): Likewise.
247 (eelf32lppcsim.c): Likewise.
248 (eelf32ppcnto.c): Likewise.
249 (eelf32ppc.c): Likewise.
250 (eelf32ppc_fbsd.c): Likewise.
251 (eelf32ppcsim.c): Likewise.
252 (eelf32ppclinux.c): Likewise.
253 * Makefile.in: Regenerate.
255 2003-02-18 Alan Modra <amodra@bigpond.net.au>
257 * ld.texinfo: Remove spaces between @samp and opening brace.
259 2003-02-18 Alan Modra <amodra@bigpond.net.au>
261 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
263 (ppc_before_allocation): Don't do optimizations if wrong hash table.
264 (gld${EMULATION_NAME}_finish): Ditto.
266 2003-02-17 Nick Clifton <nickc@redhat.com>
268 * ldmain.c (main) Default allow_shlib_undefined to true.
269 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
270 (parse_args): Parse the new switch.
271 * ld.texinfo: Document new switch and default behaviour of
272 allowing undefined symbols in shared libraries.
274 2003-02-11 Dmitry Diky <diwil@mail.ru>
276 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
277 * scripttempl/elf32msp430_3.sc: Likewise.
279 2003-02-11 Uwe Stieber <uwe@wwws.de>
281 * configure.tgt: Add support for kaOS as cross build target
284 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
286 * hppaelf.em (group_size): Change default back to 1.
288 2003-02-09 Alan Modra <amodra@bigpond.net.au>
290 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
292 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
294 * hppaelf.em (group_size): Change default to -1.
296 2003-02-07 Nick Clifton <nickc@redhat.com>
298 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
300 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
301 no-pipeline-knowledge. This will prevent the getopt package from
302 thinking that there are any shorter abbreviations for
303 --no-pipeline-knowledge.
305 2003-02-07 Jakub Jelinek <jakub@redhat.com>
307 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
308 which already have it. Avoid duplicates.
310 2003-02-06 Jakub Jelinek <jakub@redhat.com>
312 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
313 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
314 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
316 2003-02-05 Alan Modra <amodra@bigpond.net.au>
318 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
319 call ppc64_elf_tls_optimize.
321 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
323 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
324 outside of GNU/Linux conditional.
326 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
328 * deffilep.y (def_get_module): New function: locate an already
330 * deffile.h (def_get_module): New prototype.
331 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
332 a dll multiple times.
334 2003-01-23 Alan Modra <amodra@bigpond.net.au>
336 * emultempl/sh64elf.em: Include elf32-sh64.h.
337 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
338 sh64_elf_section_data.
339 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
341 2003-01-23 Wu Yongwei <adah@netstd.com>
343 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
344 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
345 cross-80th-column-margin "an" to the next line.
347 2003-01-21 Nick Clifton <nickc@redhat.com>
349 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
350 * emulparams/tic3xcoff_onchip.sh: ...this.
351 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
352 * Makefile.in: Regenerate.
354 2003-01-21 Fabio Alemagna <falemagn@aros.org>
356 * configure.tgt: Handle i[3456]86-*-aros*
358 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
360 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
361 * Makefile.in: Regenerate
362 * configure.tgt: Added extra target emulations
363 * emulparams/tic3xcoff.sh: Remove old settings
364 * emulparams/tic4xcoff.sh: Ditto
365 * emulparams/tic3xcoff-onchip.sh: Added new
366 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
367 * scripttempl/tic3xcoff.sc: Remove
369 2003-01-17 Andreas Jaeger <aj@suse.de>
371 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
374 2003-01-16 Alan Modra <amodra@bigpond.net.au>
376 * Makefile.in: Regenerate.
378 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
380 * ld/ld.texinfo (node WIN32): Some clarifications
381 and formatting fixups.
383 2003-01-09 Chris Demetriou <cgd@broadcom.com>
385 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
386 order, and handle (ignore) -mips32r2.
388 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
390 * ldmain.c (main): Make sure ld_sysroot is initialized.
392 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
394 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
396 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
397 (GENSCRIPTS): Add @use_sysroot@.
398 * Makefile.in: Regenerated.
399 * configure.host: Move setting of NATIVE_LIB_DIRS to...
400 * configure.tgt: ... here. Use ${target} instead of ${host}
402 * configure.in: Add --with-sysroot.
403 * configure: Regenerated.
404 * genscripts.sh: Accept use_sysroot option. Set new variables
405 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
406 $use_sysroot. Don't search $tool_lib if $use_sysroot.
407 * ldfile.c (ldfile_add_library_path): Handle leading '='.
408 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
409 (ld_sysroot): New variable.
410 (main): Initialize ld_sysroot.
411 * ldmain.h (ld_sysroot): New extern.
412 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
413 searching $EMULATION_LIBPATH.
414 (gld${EMULATION_NAME}_add_sysroot): New function.
415 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
416 (gld${EMULATION_NAME}_after_open): Likewise. Only search
417 environment variables if $NATIVE.
418 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
419 * NEWS: Mention --with-sysroot.
421 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
422 instead of setting LIB_PATH.
423 * emulparams/elf32ppc.sh: Likewise.
424 * emulparams/elf64_s390.sh: Likewise.
425 * emulparams/elf64_sparc.sh: Likewise.
426 * emulparams/elf64ppc.sh: Likewise.
427 * emulparams/elf_x86_64.sh: Likewise.
429 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
430 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
432 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
434 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
436 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
438 * Makefile.am (ldmain.o): Pass BINDIR.
439 * Makefile.in: Regenerated.
440 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
443 2003-01-02 Ben Elliston <bje@redhat.com>
445 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
446 (eelf32iq2000.c): New target.
447 * Makefile.in: Regenerate.
448 * configure.tgt: Handle iq2000-*-elf.
449 * emulparams/elf32iq10.sh: New file.
450 * emulparams/elf32iq2000.sh: New file.
451 * scripttempl/iq2000.sc: New file.
453 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
455 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
456 and _pei386_runtime_relocator to the exclude list.
458 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
460 * ldfile.c: Fix comment typos.
461 * ldlang.c: Likewise.
463 * pe-dll.c: Likewise.
465 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
467 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
468 * Makefile.am (ld.1): Depend on configdoc.texi
470 * Makefile.in: Regenerated.
472 2002-12-24 Dmitry Diky <diwil@mail.ru>
474 * Makefile.am: Add msp430 target.
475 * configure.tgt: Likewise.
476 * Makefile.in: Regenerate.
477 * emulparams/msp430x???.sh: New files. Linker script parameters
478 for various msp430 configurations.
479 * gen-doc.texi: Enable msp430 documenation.
480 * ld.texinfo: Document msp430 sections.
481 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
482 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
484 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
485 Charles Wilson <cwilson@ece.gatech.edu>
487 * ld/config.in (HAVE_REALPATH): New entry.
488 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
490 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
492 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
495 2002-12-23 Alan Modra <amodra@bigpond.net.au>
497 * ldmain.c (main): Init "strip_discarded".
498 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
499 (OPTION_NO_STRIP_DISCARDED): Define.
500 (ld_options): Add "strip-discarded" and "no-strip-discarded".
501 (parse_args): Handle them.
503 2002-12-23 Nick Clifton <nickc@redhat.com>
505 * ld.h (struct args_type): Add new field
506 'accept_unknown_input_architecture'.
507 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
509 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
510 bfd_arch_get_compatible.
511 * ldfile.c (ldfile_try_open_bfd): Likewise.
512 * lexsup.c (ld_options): Add new command line switch
513 --accept-unknown-input-architecture and its inverse.
514 (parse_args): Handle --accept-unknown-input-architecture.
515 * ld.texinfo: Document new linker option.
516 * NEWS: Mention new linker option.
518 2002-12-20 Alan Modra <amodra@bigpond.net.au>
520 * ldmain.c (main): Re-order link_info initialization. Init all
523 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
525 * ld.texinfo: Clarify and extend the documentation
526 in the Machine Dependent, WIN32 section.
528 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
530 * ld.texinfo: Add win32 machine depending section.
531 * gen-doc.texi: Enable win32 machine depending section.
533 * configure.host: Add win32 library search path.
535 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
537 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
538 import when auto-import is disabled.
540 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
542 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
543 account for trailing '\0'.
545 2002-12-17 Nick Clifton <nickc@redhat.com>
547 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
548 so that it is not confused with -c.
550 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
551 Charles Wilson <cwilson@ece.gatech.edu>
553 * configure.in: Add check for realpath function.
554 * configure: Regenerate.
555 * config.in: Regenerate.
556 * aclocal.m4: Regenerate.
557 * deffile.h: Add .data field to def_file_import
559 * pe-dll.c (pe_proces_import_defs): Use .data field of
560 def_file_import structure to initialize flag_data field of
561 def_file_export structure.
562 (pe_implied_import_dll): New variables exp_funcbase and
563 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
564 not filename (which may be a symlink). Scan the sections and
565 initialize [data|bss]_[start|end]. When scanning the export
566 table, skip _nm_ symbols, and mark any symbols whose rva indicates
567 that it is in the .bss or .data sections as data.
568 * sysdep.h: Include limits.h and sys/param.h, and define
569 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
570 exists, NULL otherwise.
571 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
572 pe_process_import_defs before pe_find_data_imports, so that
573 auto-import will check the virtual implib as well as "real"
575 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
576 symlinks to their target; check that the target's extension is
577 .dll before calling pe_implied_import_dll(), not the filename
578 itself (which may be a symlink).
580 2002-12-10 Alan Modra <amodra@bigpond.net.au>
582 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
583 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
586 2002-12-08 Alan Modra <amodra@bigpond.net.au>
588 * ldlang.h: Formatting.
590 2002-12-07 Alan Modra <amodra@bigpond.net.au>
592 * ldlang.c (init_os): Ensure sections mentioned in load_base
595 2002-12-05 Alan Modra <amodra@bigpond.net.au>
597 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
598 load_base for orphans that follow a section with load_base set.
600 2002-12-01 H.J. Lu <hjl@gnu.org>
602 * ld.texinfo: Remove the extra `;' in sample version script.
604 2002-11-30 Alan Modra <amodra@bigpond.net.au>
606 * configure.host: Correct dynamic-linker for powerpc64 hosts.
608 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
609 * Makefile.in: Regenerate.
611 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
612 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
613 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
614 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
615 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
616 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
617 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
618 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
619 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
620 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
621 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
622 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
623 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
625 2002-11-27 David O'Brien <obrien@FreeBSD.org>
627 * configure.host: Fix generic FreeBSD configuration entry.
629 2002-11-27 H.J. Lu <hjl@gnu.org>
631 * ld.texinfo: Add the missing `;' to sample version scripts.
633 2002-11-20 Alan Modra <amodra@bigpond.net.au>
635 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
637 2002-11-14 Egor Duda <deo@logos-m.ru>
639 * ldmain.c (main): Make runtime relocs disabled by default. Remove
640 assignment which has no effect.
641 * pe-dll.h (pe_create_import_fixup): Change prototype.
642 * pe-dll.c (make_runtime_pseudo_reloc): New function.
643 (pe_create_runtime_relocator_reference): Ditto.
644 (pe_create_import_fixup): Handle relocations with non-zero addends.
645 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
646 --disable-runtime-pseudo-reloc.
647 (make_import_fixup): Handle relocations with non-zero addends. Create
648 an external reference to _pei386_runtime_relocator symbol if at least
649 one pseudo reloc was created.
650 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
651 --disable-runtime-pseudo-reloc options.
653 2002-11-12 Earl Chew <earl_chew@agilent.com>
655 * ldlang.c (lang_add_section): Discard debugging sections that have
656 been marked SEC_EXCLUDE.
658 2002-11-12 Nick Clifton <nickc@redhat.com>
660 * configure.in (ALL_LINGUAS): Add da.
661 * configure: Regenerate.
662 * po/da.po: New Danish translation.
664 2002-11-12 Alan Modra <amodra@bigpond.net.au>
666 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
667 (LDEMUL_BEFORE_ALLOCATION): Define.
668 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
670 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
672 2002-11-11 Christopher Faylor <cgf@redhat.com>
674 * configure.tgt (LIB_PATH): Default to searching w32api directory under
677 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
679 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
680 of restricted auto-export libs.
682 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
684 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
685 creative library naming instances like, e.g., libstdc++-2.a.
687 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
689 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
690 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
692 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
694 * deffilep.y (def_lex): Handle '@' as first character of an ID.
695 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
696 (make_one): Don't prefix decorated fastcall symbols with '_'.
697 (pe_process_import_defs): Likewise.
698 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
699 symbols to cdecl names or vise-versa.
701 2002-10-13 Eric Kohl <ekohl@rz-online.de>
703 * pe-dll.c (process_def_file): Handle fastcall symbols when
704 generating undecorated aliases. Don't prefix decorated fastcall
706 (fill_exported_offsets): Don't prefix decorated fastcall symbols
709 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
711 * emultempl/aix.em: Use include <> for generated headers.
712 * emultempl/beos.em: Likewise.
713 * emultempl/elf32.em: Likewise.
714 * emultempl/pe.em: Likewise.
715 * ldctor.c: Likewise.
717 * ldfile.c: Likewise.
718 * ldlang.c: Likewise.
721 * ldmain.c: Likewise.
722 * ldmisc.c: Likewise.
723 * ldwrite.c: Likewise.
724 * lexsup.c: Likewise.
726 * pe-dll.c: Likewise.
728 2002-10-23 Jakub Jelinek <jakub@redhat.com>
730 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
731 sections into .rel{,a}.dyn.
733 2002-10-23 Nick Clifton <nickc@redhat.com>
735 * lexsup.c (OPTION_NO_OMAGIC): Define.
736 (ld_options): Add "no-omagic" option.
737 (parse_args): Parse --no-omagic.
738 * ld.texinfo: Document --no-omagic.
739 * NEWS: Mention new option.
741 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
743 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
744 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
746 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
748 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
749 emulation name. Set LIB_PATH only for native tools, and
750 search the ABI-specific versions of NATIVE_LIB_DIRS before the
751 .../lib variants, not instead of them. Mostly copied from...
752 * emulparams/elf32ppc.sh: ... here. Fixed typo.
753 * emulparams/elf64bmip-defs.sh: Backed out.
754 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
755 * emulparams/elf64btsmip.sh: Likewise.
756 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
757 TEXT_DYNAMIC): Removed.
759 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
761 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
762 (GENERATE_SHLIB_SCRIPT): Set to yes.
763 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
764 * emulparams/elf32bmipn32.sh: here.
765 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
766 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
767 * emulparams/elf64bmip-defs.sh: New file. Extend
768 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
769 * emulparams/elf64bmip.sh: Bring in definitions from
771 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
773 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
774 * emulparams/elf64btsmip.sh: Bring in definitions from
776 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
777 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
779 2002-10-16 Jakub Jelinek <jakub@redhat.com>
781 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
782 (s390-*-linux*): Add elf64_s390 emulation if want64.
783 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
784 genscript.sh changes.
785 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
786 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
788 2002-10-15 Alan Modra <amodra@bigpond.net.au>
790 * ldlang.c (load_symbols): Revert last change.
792 2002-10-14 Alan Modra <amodra@bigpond.net.au>
794 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
796 (lang_reasonable_defaults): Don't compare against false.
797 (size_input_section): Likewise.
798 (lang_size_sections_1): Likewise.
799 (lang_do_assignments): Likewise.
800 (lang_add_output): Likewise.
802 * Makefile.am: Run "make dep-am".
803 * Makefile.in: Regenerate.
804 * ldver.c: #include "bfdver.h".
806 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
808 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
810 * scripttempl/elfm68hc12.sc: Likewise.
812 2002-10-11 Alan Modra <amodra@bigpond.net.au>
814 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
816 * ldgram.y (memory_spec): Provide empty action.
817 (section <NAME>): Likewise.
819 2002-10-10 Jakub Jelinek <jakub@redhat.com>
821 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
822 they have OUTPUT_FORMAT not matching actual output format.
823 * ldlang.c (lang_get_output_target): New function.
824 (open_output): Use it.
825 * ldlang.h (lang_get_output_target): New prototype.
827 2002-10-10 Alan Modra <amodra@bigpond.net.au>
829 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
830 when orphan is .rel, .rela when orphan is .rela.
831 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
832 first. Remove outsecname var.
834 2002-10-09 Richard Shann <richard.shann@superh.com>
835 Stephen Clarke <stephen.clarke@superh.com>
837 * Makefile.am: Add eshelf32_linux.o and
838 eshlelf32_linux.o, new emulations for sh64 Linux.
839 * Makefile.in: Regenerate.
840 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
841 * emulparams/shelf32_linux.sh: New file.
842 * emulparams/shlelf32_linux.sh: New file.
844 2002-10-08 H.J. Lu <hjl@gnu.org>
846 * ldlang.c (lang_file_exist): Removed.
847 (new_afile): Revert the last change.
848 * ldlang.h (lang_file_exist): Removed.
849 * lexsup.c (parse_args): Revert the last change.
851 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
853 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
855 (make_one): Create _nm_<symbol> for data only.
857 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
859 * ldlang.c (lang_file_exist): New function.
860 (new_afile): Abort if the filename to be added matches the linker
862 * ldlang.h: Add prototype for lang_file_exist.
863 * lexsup.c (parse_args): Abort if the output filename matches
864 one of the input filenames.
866 2002-10-02 Alan Modra <amodra@bigpond.net.au>
868 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
870 2002-09-30 Alan Modra <amodra@bigpond.net.au>
872 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
873 * scripttempl/elfm68hc11.sc: Likewise.
874 * scripttempl/elfm68hc12.sc: Likewise.
876 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
877 reloc sections just before .rel.plt/.rela.plt.
878 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
879 Only put loadable reloc sections in hold_rel.
881 2002-09-29 H.J. Lu <hjl@gnu.org>
883 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
885 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
887 From "Anita Kulkarni" <AnitaK@kpit.com>
888 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
891 2002-09-25 Alan Modra <amodra@bigpond.net.au>
893 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
895 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
896 SEGMENT_SIZE alignment.
897 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
898 (SEGMENT_SIZE): Define.
900 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
901 (fold_binary): Correct abs - non-abs case.
902 (fold_trinary): New. Split out from exp_fold_tree.
904 2002-09-24 Alan Modra <amodra@bigpond.net.au>
906 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
907 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
908 for start of .data, instead align up to 256M boundary.
909 * scripttempl/aix.sc: Likewise.
911 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
913 * scripttempl/i386go32.sc: Handle bss unique sections.
915 2002-09-21 Alan Modra <amodra@bigpond.net.au>
917 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
919 2002-09-17 Stan Cox <scox@redhat.com>
921 * emulparams/elf32bmipn32-defs.sh: New file.
922 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
923 * emulparams/elf32btsmipn32.sh: Likewise.
924 * emulparams/elf64bmip.sh: Likewise.
925 * emulparams/elf64btsmip.sh: Likewise.
927 2002-09-16 Bruno Haible <bruno@clisp.org>
929 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
931 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
934 2002-09-11 Nick Clifton <nickc@redhat.com>
936 * NEWS: New TI port supports both C4x and C3x series of DSPs.
938 * po/tr.po: Updated Turkish translation.
940 2002-09-06 Jeffrey A Law (law@redhat.com)
942 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
944 2002-09-02 Nick Clifton <nickc@redhat.com>
946 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
948 * emulparams/v850.sh (TEMPLATE_NAME): Define.
950 2002-08-30 Nick Clifton <nickc@redhat.com>
952 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
953 used. Change INSN to start at 0x01000000 and extend for
954 256K (ignoring holes). Start the STACK on a word aligned
956 (.rodata): Start it at the READONLY_START_ADDR.
958 2002-08-30 Alan Modra <amodra@bigpond.net.au>
960 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
962 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
964 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
965 added makefile targets for this file.
966 * Makefile.in: Regenerate.
967 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
968 * NEWS: Mention new port.
970 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
972 * emulparams/tic3xcoff.sh: New file.
973 * emulparams/tic4xcoff.sh: New file.
974 * scripttempl/tic3xcoff.sc: New file.
975 * scripttempl/tic4xcoff.sc: New file.
977 2002-08-28 Alan Modra <amodra@bigpond.net.au>
979 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
980 strtoul and strtoull with bfd_scan_vma.
981 (gld${EMULATION_NAME}_read_file): Likewise.
983 2002-08-28 Alan Modra <amodra@bigpond.net.au>
985 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
987 2002-08-27 Egor Duda <deo@logos-m.ru>
989 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
990 Add symbols for application to access them.
992 2002-08-27 Nick Clifton <nickc@redhat.com>
994 * emultempl/armelf.em: Revert this patch, it is not needed.
996 2002-08-22 Adam Nemet <anemet@lnxw.com>
998 2002-08-20 Dan Kegel <dank@kegel.com>
1000 * configure.in: added --with-lib-path argument to ld's configure
1002 * ld/NEWS: Document new switch.
1003 * ld/README: Mention new switch.
1004 * configure: Regenerate.
1005 * Makefile.in: Regenerate.
1007 Based on this patch:
1008 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1010 * Makefile.in (LIB_PATH): Make configurable.
1011 (GENSCRIPTS): Set LIB_PATH in environment.
1012 * configure.in: Substitute LIB_PATH.
1014 2002-08-22 Adam Nemet <anemet@lnxw.com>
1016 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1017 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1018 depending on the type of the function.
1019 (arm_elf_convert_thumb_symbol_to_address): New function.
1021 2002-08-22 Graeme Peterson <gp@qnx.com>
1023 * Makefile.am: Add esh{l}elf_nto.o files.
1024 * Makefile.in: Regenerate.
1025 * configure.tgt: Add support for sh-**-nto* targets.
1026 * emulparams/shelf_nto.sh: New file.
1027 * emulparams/shlelf_nto.sh: New file.
1029 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1031 * ldlang.c (offsetof): Define if not defined.
1033 2002-08-14 H.J. Lu <hjl@gnu.org>
1035 * configure.tgt: Always enable 64bit emulations for 32bit
1038 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1040 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1041 (MAXPAGESIZE): Set to 1.
1043 * ld.h (ALIGN_N): Delete.
1044 * ldexp.h (align_n): Declare.
1045 * ldexp.c (align_n): New function.
1046 (fold_binary): Use align_n instead of ALIGN_N.
1047 (exp_fold_tree): Likewise.
1048 * ldlang.c (lang_size_sections_1): Likewise.
1049 (lang_one_common): Likewise.
1050 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1052 2002-07-31 Graeme Peterson <gp@qnx.com>
1054 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1055 * Makefile.am: Add eelf32{l}ppcnto.o files.
1056 * Makefile.in: Regenerate.
1057 * emulparams/elf32lppcnto.sh: New file.
1058 * emulparams/elf32ppcnto.sh: New file.
1060 2002-08-07 H.J. Lu <hjl@gnu.org>
1062 * ld.texinfo: Document --no-undefined-version.
1064 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1065 `script.' fields to 0.
1067 * ldmain.c (main): Initialize the allow_undefined_version to
1070 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1071 (ld_options): Add --no-undefined-version.
1072 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1074 2002-08-07 Nick Clifton <nickc@redhat.com>
1076 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1077 an interworking bfd if there are input bfds. (107501)
1079 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1081 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1084 2002-08-01 Nick Clifton <nickc@redhat.com>
1086 * emulparams/armelf.sh: Revert previous delta.
1087 * scripttempl/elf.sc: Revert previous delta.
1089 2002-07-31 H.J. Lu <hjl@gnu.org>
1091 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1092 --enable-64-bit-bfd.
1094 2002-07-31 H.J. Lu <hjl@gnu.org>
1096 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1097 64bit BFD is selected.
1099 2002-07-31 H.J. Lu <hjl@gnu.org>
1101 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1102 if 64bit BFD is selected.
1104 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1106 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1107 link_info.common_skip_ar_aymbols.
1108 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1110 * ldmain.c (main): Initialize new field
1111 link_info.common_skip_ar_aymbols.
1113 2002-07-31 Adam Nemet <anemet@lnxw.com>
1115 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1117 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1120 2002-07-31 Nick Clifton <nickc@redhat.com>
1122 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1123 of the PDP-11 and 2.11BSD a.out support.
1125 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1127 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1128 for n32 ABI support.
1129 * Makefile.in: Regenerate.
1130 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1131 n32 ABI emulations for these 64 bit targets.
1132 * emulparams/elf32bmipn32.sh: Expand comment.
1133 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1135 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1137 2002-07-30 Graeme Peterson <gp@qnx.com>
1139 * configure.tgt: Add support for arm-*-nto target.
1140 * Makefile.am: Add earmnto.o file.
1141 * Makefile.in: Regenerate.
1142 * NEWS: Mention port of ARM support to QNX.
1143 * emulparams/armnto.sh: New file.
1145 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1147 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1148 for relocatable link.
1149 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1152 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1154 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1157 2002-07-25 Nick Clifton <nickc@redhat.com>
1159 * po/sv.po: Updated Swedish translation.
1160 * po/es.po: Updated Spanish translation.
1161 * po/fr.po: Updated French translation.
1163 2002-07-24 Nick Clifton <nickc@redhat.com>
1165 * po/sv.po: Updated Swedish translation.
1166 * po/es.po: Updated Spanish translation.
1168 2002-07-23 Nick Clifton <nickc@redhat.com>
1170 * po/fr.po: Updated French translation.
1172 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1174 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1175 bomb on /DISCARD/ input section.
1176 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1177 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1179 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1181 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1184 2002-07-16 Denis Chertykov <denisc@overta.ru>
1185 Nick Clifton <nickc@redhat.com>
1186 Frank Ch. Eigler <fche@redhat.com>
1187 John Healy <jhealy@redhat.com>
1189 * configure.tgt: Add support for ip2k-elf.
1190 * Makefile.am: Add support for ip2k-elf.
1191 * Makefile.in: Regenerate.
1192 * emulparams/elf32ip2k.sh: New file.
1193 * scripttempl/ip2k.sc: New file
1194 * NEWS: Mention support for new port.
1196 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1198 * NEWS: Add 'Changes in 2.13'.
1200 2002-07-14 H.J. Lu <hjl@gnu.org>
1202 * ld.texinfo: Document a .symver takes precedence over a
1205 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1207 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1208 (COMMONPAGESIZE): Define.
1210 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1212 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1214 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1216 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1217 powerpc-*-openbsd* and sparc64-*-openbsd*.
1218 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1219 * Makefile.in: Regenerate.
1220 * emulparams/hppaobsd.sh: New file.
1222 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1224 * ldlang.c (print_wild_statement): Fix output formatting.
1226 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1228 * ldlang.c: (strip_excluded_output_sections): New function.
1229 (lang_process): Call it.
1230 (lang_size_sections_1): Revert 2002-06-10 change.
1232 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1234 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1236 * Makefile.in: Regenerate.
1238 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1240 * ldfile.c (ldfile_try_open_bfd): Formatting.
1242 * ldmisc.c (demangle): Move so that it doesn't intrude between
1243 vfinfo comment and body. Add comment.
1245 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1247 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1249 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1251 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1252 * ldlang.c (entry_sym): Likewise.
1253 (ldlang_undef_chain_list_type): Likewise.
1254 (lang_finish): Adjust references to entry_symbol.
1255 (lang_add_entry): Likewise.
1256 (lang_gc_sections): Use link_info.gc_sym_list.
1257 (lang_process): Set link_info.gc_sym_list.
1258 * ldlex.l: Include bfdlink.h.
1259 * ldmain.c (main): Init link_info.gc_sym_list.
1260 * emultempl/aix.em: Adjust references to entry_symbol.
1261 * emultempl/armcoff.em: Likewise.
1262 * emultempl/armelf.em: Likewise.
1263 * emultempl/pe.em: Likewise.
1264 * emultempl/ppc64elf.em (ppc_after_open): New function.
1265 (LDEMUL_AFTER_OPEN): Define.
1266 * emulparams/elf64ppc.sh: KEEP .opd sections.
1268 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1270 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1271 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1272 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1273 (EEPROM_START_ADDR): Define.
1274 (EEPROM_MEMORY): Define.
1275 * emulparams/m68hc12elf.sh: Likewise.
1276 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1277 section to put soft registers in .page0.
1278 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1280 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1282 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1283 section. Add ${RELOCATING-0}.
1285 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1287 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1288 (OTHER_SECTIONS): Define.
1289 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1290 (OTHER_SECTIONS): Undef.
1292 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1294 * ldmisc.c (demangle): Restore dots stripped from sym name.
1296 2002-06-25 H.J. Lu <hjl@gnu.org>
1298 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1299 * Makefile.in: Regenerated.
1301 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1303 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1304 the size of attached object files, to allow make the object files
1305 available via FTP or HTTP and to mention that the mail will be
1306 sent to a mailing list.
1308 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1310 * ld/configure.host (romp): Drop support.
1312 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1314 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1315 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1317 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1319 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1320 format specifier used to print BFD name.
1322 2002-06-18 Dave Brolley <brolley@redhat.com>
1324 From Catherine Moore, Michael Meissner, Jim Blandy:
1325 * emulparams/elf32frv.sh: New file.
1326 * configure.tgt: Support frv-*-*.
1327 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1328 (eelf32frv.c): New target.
1330 2002-06-17 Tom Rix <trix@redhat.com>
1332 * emultempl/elf32.em: gld*_get_script: Check for
1333 GENERATE_COMBRELOC_SCRIPT.
1334 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1335 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1337 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1339 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1341 2002-06-12 H.J. Lu <hjl@gnu.org>
1343 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1344 false if xvec doesn't match.
1346 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1348 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1350 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1352 * ldexp.c: Replace CONST with const.
1353 * ldfile.c: Likewise.
1354 * ldfile.h: Likewise.
1355 * ldlex.l: Likewise.
1357 * pe-dll.h: Likewise.
1359 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1361 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1363 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1365 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1366 to -1 == implicit enable.
1367 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1368 initialize link_info.pei386_auto_import to -1 == implicit
1370 (gld_${EMULATION_NAME}_parse_args): When processing
1371 --enable-auto-import and --disable-auto-import options, use
1372 '1' and '0' instead of 'true' and 'false'.
1373 (pe_find_data_imports): Only issue message about auto-import
1374 when the feature is implicitly enabled. Downgrade message to
1375 informational instead of warning.
1377 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1379 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1381 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1383 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1384 HOSTING_CRT0 and HOSTING_LIBS.
1386 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1388 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1390 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1392 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1393 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1395 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1397 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1398 SEC_EXCLUDE sections when doing a relocatable link.
1400 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1402 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1403 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1404 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1405 (eshlelf64_nbsd.c): New rules.
1406 * Makefile.in: Regenerate.
1407 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1408 (sh64-*-netbsd*): New targets.
1409 * emulparams/shelf32_nbsd.sh: New file.
1410 * emulparams/shelf64_nbsd.sh: New file.
1411 * emulparams/shlelf32_nbsd.sh: New file.
1412 * emulparams/shlelf64_nbsd.sh: New file.
1414 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1416 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1418 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1420 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1421 C++ constructors/destructors, loosely based on the m68hc11 port.
1423 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1425 * Makefile.in: Regenerate.
1426 * aclocal.m4: Regenerate.
1427 * config.in: Regenerate.
1428 * configure: Regenerate.
1430 2002-05-31 Graeme Peterson <gp@qnx.com>
1432 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1433 (ei386nto.c): Add rule.
1434 * Makefile.in: Regenerate.
1435 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1436 * emulparams/i386nto.sh: New file.
1438 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1440 * NEWS: Add entry for VAX ELF support.
1442 2002-05-29 Matt Thomas <matt@3am-software.com>
1443 Jason Thorpe <thorpej@wasabisystems.com>
1445 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1447 (evaxnbsd.c): New rules.
1448 * Makefile.in: Regenerate.
1449 * configure.tgt (vax-*-netbsdelf*)
1451 (vax-*-netbsd*): New targets.
1452 * emulparams/elf32vax.sh: New file.
1453 * emulparams/vaxnbsd.sh: New file.
1455 2002-05-29 Adam Nemet <anemet@lnxw.com>
1457 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1458 bfd_for_interwork, instead add glue sections to each input bfd.
1459 (bfd_for_interwork): New global.
1460 (arm_elf_set_bfd_for_interworking): New function.
1461 (arm_elf_before_allocation): Use it.
1463 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1465 * Makefile.am: Add DLX make target.
1466 * configure.tgt: Add DLX configuration.
1467 * Makefile.in: Regenerate.
1468 * emulparams/elf32_dlx.sh: New file
1469 * scripttempl/dlx.sc: New file
1471 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1473 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1474 * Makefile.in: Regenerate.
1475 * emulparams/elf_chaos.sh: Use elf_chaos script.
1476 * scripttempl/elf_chaos.sc: New file.
1478 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1480 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1481 addresses and regions from here...
1482 (lang_get_regions): ...to this new function.
1483 (lang_leave_output_section_statement): Use lang_get_regions.
1484 (lang_leave_overlay): Likewise.
1485 * mri.c (mri_draw_tree): Pass null as last argument to
1486 lang_leave_output_section_statement.
1487 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1488 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1489 * emultempl/pe.em (gld*_place_orphan): Likewise.
1491 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1493 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1495 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1497 * ldemul.c: Fix formatting.
1498 * ldfile.c: Likewise.
1499 * pe-dll.c: Likewise.
1500 * pe-dll.h: Likewise.
1502 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1504 * ldlang.c (lang_process): Formatting, grammar.
1506 * ldlex.l: Use #include "" instead of <> for local header files.
1508 2002-05-24 TAMURA Kent <kent@netbsd.org>
1510 * configure.tgt: Add a target for i386-netbsdpe.
1512 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1514 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1515 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1516 output section if necessary. Handle .tbss.
1517 (lang_size_sections): Clear _raw_size for .tbss section
1518 (it allocates space in PT_TLS segment only).
1519 * ldwrite.c (build_link_order): Build link order for .tbss too.
1521 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1523 * configure.in: Correct spelling of AC_PREREQ.
1525 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1527 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1529 (autofilter_objlist): Add crtbegin.o, crtend.o.
1531 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1533 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1534 (longopts): Add new option --exclude-libs.
1535 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1536 (gld_${EMULATION_NAME}_parse_args): Use it.
1537 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1538 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1539 from whole archives.
1540 (pe_dll_add_excludes): Set excludes->type.
1541 (auto_export): Add new variable libname and set to archive basename if
1542 abfd. Use it when filtering default and user-specified libarary
1543 excludes. Let string "ALL" mean all libs when filtering user-specified
1545 * ld.texinfo: Document --exclude-libs.
1547 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1549 * ldemul.c (ldemul_new_vers_pattern): New function.
1550 * ldemul.h (ldemul_new_vers_pattern): Declare.
1551 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1552 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1553 * emultempl/ppc64elf.em (dotsyms): New static var.
1554 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1555 (LDEMUL_NEW_VERS_PATTERN): Define.
1556 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1557 (PARSE_AND_LIST_LONGOPTS): Likewise.
1558 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1559 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1561 * emultempl/armcoff.em: Likewise.
1562 * emultempl/armelf_oabi.em: Likewise.
1563 * emultempl/beos.em: Likewise.
1564 * emultempl/elf32.em: Likewise.
1565 * emultempl/generic.em: Likewise.
1566 * emultempl/gld960.em: Likewise.
1567 * emultempl/gld960c.em: Likewise.
1568 * emultempl/linux.em: Likewise.
1569 * emultempl/lnk960.em: Likewise.
1570 * emultempl/m68kcoff.em: Likewise.
1571 * emultempl/mipsecoff.em: Likewise.
1572 * emultempl/pe.em: Likewise.
1573 * emultempl/sunos.em: Likewise.
1574 * emultempl/ticoff.em: Likewise.
1575 * emultempl/vanilla.em: Likewise.
1577 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1579 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1580 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1581 (LIB_SEARCH_DIRS): No need to use "tr".
1582 (COMPILE_IN): Only set for native targets.
1583 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1584 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1585 * configure.tgt (powerpc*): Set tdir_*.
1586 (powerpcle*): Correct targ_extra_emuls.
1587 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1588 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1590 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1592 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1593 calling lang_add_entry.
1595 2002-05-21 H.J. Lu (hjl@gnu.org)
1597 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1599 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1601 * ld.texinfo: Updated for --allow-multiple-definition and
1604 * ldmain.c (main): Initialize the allow_multiple_definition
1607 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1608 (ld_options): Add --allow-multiple-definition.
1609 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1611 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1613 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1614 (earmelfb_nbsd.c): New rule.
1615 * Makefile.in: Regenerate.
1616 * configure.tgt (armeb-*-netbsdelf*): New target.
1617 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1618 (arm-*-netbsd*): Likewise.
1619 * emulparams/armelfb_nbsd.sh: New file.
1621 2002-05-18 Tom Rix <trix@redhat.com>
1623 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1626 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1628 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1629 * Makefile.in: Regenerate.
1630 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1632 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1634 * emulparams/avr1.sh: New file.
1635 * emulparams/avr2.sh: New file.
1636 * emulparams/avr3.sh: New file.
1637 * emulparams/avr4.sh: New file.
1638 * emulparams/avr5.sh: New file.
1639 * scripttempl/avr.sc: New file.
1641 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1643 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1644 (lang_place_orphans): Abort if just_syms_flag.
1646 2002-05-10 Tom Rix <trix@redhat.com>
1648 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1649 architecture and machine information in the output bfd.
1650 (gld*_before_parse): Remove old arch and machine code.
1651 (choose_target): Rename to gld*_choose_target.
1652 (rtld): Change type to int.
1653 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1654 objects in XCOFF archives.
1655 * ldfile.h: Update copyright date.
1657 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1659 * ldmain.c (main): Enable -z combreloc by default.
1661 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1663 * Makefile.am: Honour DESTDIR.
1664 * Makefile.in: Regenerate.
1666 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1668 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1669 (lang_enter_overlay): Remove the last two parameters.
1670 (lang_leave_overlay): Take them here instead.
1671 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1672 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1673 than lang_enter_overlay.
1674 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1675 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1676 (lang_size_sections_1): Evaluate it.
1677 (lang_leave_output_section_statement): Rework LMA lookup.
1678 (overlay_lma, overlay_nocrossrefs): Remove.
1679 (lang_enter_overlay): Remove LMA and crossref arguments.
1680 (lang_enter_overlay_section): Don't set the LMA here.
1681 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1682 assignment to the last section's update_dot_tree. Unconditionally
1683 use the load and run-time regions specified in the OVERLAY statement.
1684 Likewise the first section's LMA. Only set the other sections' LMAs
1685 when no load region is given.
1687 2002-05-06 Nick Clifton <nickc@redhat.com>
1689 * po/sv.po: New translation.
1691 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1693 * emultempl/hppaelf.em (build_section_lists): New function.
1694 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1695 and build_section_lists.
1697 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1699 * ld.h: Fix formatting.
1700 * ldexp.c: Likewise.
1701 * ldfile.c: Likewise.
1702 * ldlang.c: Likewise.
1703 * ldmain.c: Likewise.
1704 * lexsup.c: Likewise.
1705 * pe-dll.c: Likewise.
1707 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1709 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1710 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1711 (build_section_lists): Do output_section tests here.
1713 2002-04-30 Tom Rix <trix@redhat.com>
1715 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1717 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1719 Long branch stubs, multiple stub sections.
1720 * emultempl/ppc64elf.em: Include ldctor.h.
1721 (stub_file): New var.
1722 (group_size): New var.
1723 (ppc_create_output_section_statements): New function.
1724 (struct hook_stub_info): New.
1725 (hook_in_stub): New function.
1726 (ppc_add_stub_section): New function.
1727 (ppc_layout_sections_again): New function.
1728 (build_section_lists): New function.
1729 (gld${EMULATION_NAME}_finish): Rewrite.
1730 (real_func): New var.
1731 (ppc_for_each_input_file_wrapper): New function.
1732 (ppc_lang_for_each_input_file): New function.
1733 (lang_for_each_input_file): Define.
1734 (PARSE_AND_LIST_PROLOGUE): Define.
1735 (PARSE_AND_LIST_LONGOPTS): Define.
1736 (PARSE_AND_LIST_OPTIONS): Define.
1737 (PARSE_AND_LIST_ARGS_CASES): Define.
1738 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1740 2002-04-30 Tom Rix <trix@redhat.com>
1742 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1743 -blibpath, -bnolibpath support.
1745 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1747 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1748 (eelf32ppcwindiss.c): New target.
1749 * Makefile.in: Regenerated.
1750 * configure.tgt: Add support for powerpc-*-windiss.
1751 * emulparams/elf32ppcwindiss.sh: New file.
1753 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1755 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1756 * ldexp.c (exp_print_token): Add "infix_p" argument.
1757 (exp_print_tree): Update accordingly.
1759 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1761 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1762 * Makefile.in: Regenerate.
1763 * mpw-elfmips.c: Delete.
1764 * mpw-eppcmac.c: Delete.
1765 * mpw-esh.c: Delete.
1766 * mpw-idtmips.c: Delete.
1768 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1770 * emulparams/shelf32.sh (MACHINE): Now sh5.
1772 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1774 * ldgram.y: Fix syntax warning.
1776 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1778 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1779 to prevent "-n" from being taken as an abbreviation for
1780 "--no-pipeline-knowledge".
1782 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1784 * ldlang.c (lang_size_sections_1): Don't complain about
1785 SEC_NEVER_LOAD sections having no memory region specified.
1787 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1789 2002-04-07 matthew green <mrg@redhat.com>
1791 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1793 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1795 * dep-in.sed: Cope with absolute paths.
1796 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1798 * Makefile.in: Regenerate.
1800 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1802 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1804 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1806 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1807 is smaller than maximum, round dot up to common page boundary.
1809 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1811 * configure.host: Set up for generic hosts first, then tweak as
1812 necessary in more specific targets.
1813 (HOSTING_LIBS): Include libgcc_eh.a if found.
1815 2002-03-23 Andreas Jaeger <aj@suse.de>
1817 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1819 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1821 * Makefile.am: Run "make dep-am".
1822 * Makefile.in: Regenerate.
1824 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1826 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1828 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1830 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1831 add the symbol to the linker hash table immediately.
1832 (lang_place_undefineds): Split symbol creation out..
1833 (insert_undefined): ..to here.
1835 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1837 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1838 the contents of the buffer returned from basename function will are
1839 getting overwritten while still being used.
1841 2002-03-18 Jan Hubicka <jh@suse.cz>
1842 Andreas Jaeger <aj@suse.de>
1843 Andreas Schwab <schwab@suse.de>
1845 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1846 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1847 set libraries to default to lib64 paths.
1849 2002-03-18 Tom Rix <trix@redhat.com>
1851 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1852 * configure.tgt : Same.
1853 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1854 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1855 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1856 emulation parameters for better -b32, -b64 support.
1857 * emulparms/aixrs6.sh : Same.
1858 * emulparms/ppcmacos.sh : Same.
1859 * emultempl/aix.em (choose_target) : Use new emulation parameters
1860 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1861 * Makefile.in : Regenerate.
1863 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1865 * po/fr.po: Updated version.
1867 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1869 * ldmain.c (main): Move .text readonly flag fudges from here..
1870 * ldlang.c (lang_process): ..to here.
1872 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1874 * ldlang.c (lang_check): Remove the word size check added in last
1875 change. Treat emitrelocations case as for relocatable links.
1877 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1879 * po/fr.po: Updated version.
1881 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1883 * ldlang.c (lang_check): Do relocatable link checks first, so that
1884 warn_mismatch can't override. Check compatible and word size too.
1886 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1888 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1890 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1892 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1895 2002-03-04 H.J. Lu <hjl@gnu.org>
1897 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1898 .fini_array in the data segment.
1900 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1902 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1904 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1906 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1907 .init_array, and .fini_array.
1909 2002-02-20 Andreas Schwab <schwab@suse.de>
1911 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1912 .IA64_unwind* in a relocatable link.
1914 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1916 * NEWS: Mark 2.12 branch.
1918 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1920 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1921 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1923 2002-02-18 Tom Rix <trix@redhat.com>
1925 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1926 (gld*_before_allocation): Same.
1927 (gld*_create_output_section_statements): Generate
1928 __rtinit if run time linking. Add librtl.a to the link.
1929 (gld*_read_file): Clean.
1931 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1933 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1935 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1937 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1938 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1939 and eelf64alpha_fbsd.
1940 * Makefile.in: Regenerate.
1941 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1942 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1943 use a FreeBSD-specific emulation rather than the psABI one.
1944 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1945 for all FreeBSD ELF systems.
1946 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1948 * emulparams/elf32ppc_fbsd.sh: Likewise.
1949 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1950 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1951 * emulparams/elf64alpha_fbsd.sh: Likewise.
1952 * emulparams/elf_i386_fbsd.sh: Likewise.
1953 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1955 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1957 * po/tr.po: Updated version.
1959 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1961 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1964 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1966 * emultempl/mmo.em (mmo_after_open): Don't call
1967 _bfd_mmix_check_all_relocs when producing ELF output.
1969 2002-02-15 Richard Henderson <rth@redhat.com>
1971 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1972 definition. Emit a unop+nop pair.
1974 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1976 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1977 for presence of .MMIX.reg_contents.linker_allocated before early
1980 * NEWS: Mention support for MMIX.
1982 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1984 Support arbitrary length fill patterns.
1985 * ld.texinfo (Output Section Fill): Describe fill expressions.
1986 (FILL): Refer to the above.
1987 * ldexp.h (etree_value_type): Add "str" field.
1988 (union etree_union): Add "str" to "value" struct.
1989 (exp_bigintop): Declare.
1990 (exp_get_fill): Declare.
1991 * ldexp.c: Include "safe-ctype.h".
1992 (exp_intop): Set value.str to NULL.
1993 (exp_bigintop): New function.
1994 (new_rel): Pass in "str", and set new.str from it.
1995 (new_rel_from_section): Set new.str to NULL.
1996 (fold_name): Adjust calls to new_rel.
1997 (exp_fold_tree): Likewise.
1998 (exp_get_fill): New function.
1999 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2000 (INT): Returns a "bigint". Adjust all code handling INTs.
2001 (fill_opt): Returns a "fill".
2002 (fill_exp): Split out of fill_opt, use for FILL.
2003 * ldlang.h (struct _fill_type): New.
2004 (fill_type): Move typedef to ldexp.h.
2005 (lang_output_section_statement_type): "fill" is now a pointer.
2006 (lang_fill_statement_type): Likewise.
2007 (lang_padding_statement_type): Likewise.
2008 (lang_add_fill): Now takes a "fill_type *" param.
2009 (lang_leave_output_section_statement): Likewise.
2010 (lang_do_assignments): Likewise.
2011 (lang_size_sections): Likewise.
2012 (lang_leave_overlay_section): Likewise.
2013 (lang_leave_overlay): Likewise.
2014 * ldlang.c: Include ldgram.h after ldexp.h.
2015 (lang_output_section_statement_lookup): Adjust for fill_type change.
2016 (print_fill_statement): Likewise.
2017 (print_padding_statement): Likewise.
2018 (insert_pad): Now takes a "fill_type *" arg.
2019 (size_input_section): Likewise.
2020 (lang_size_sections_1): Likewise.
2021 (lang_size_sections): Likewise.
2022 (lang_do_assignments): Likewise.
2023 (lang_add_fill): Likewise.
2024 (lang_leave_output_section_statement): Likewise.
2025 (lang_leave_overlay_section): Likewise.
2026 (lang_leave_overlay): Likewise.
2027 Adjust all callers of the above function.
2028 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2029 starting with "0X" as well as "0x". Return bigint.str for hex
2030 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2031 Always use base 16 for numbers starting with "$".
2032 * ldmain.c: Include ldgram.h after ldexp.h.
2033 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2034 of bfd_fill_link_order.
2035 * pe-dll.c: Adjust lang_do_assignments calls.
2036 * emultempl/elf32.em: Likewise.
2037 * emultempl/hppaelf.em: Likewise.
2038 * emultempl/ppc64elf.em: Likewise.
2039 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2040 lang_add_assignment call.
2041 * emultempl/pe.em: Likewise.
2043 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2045 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2046 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2047 the pattern in question is not a regexp.
2048 * ldlang.c: Likewise.
2049 * ldlang.h: Likewise.
2050 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2052 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2054 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2055 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2056 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2057 * ldexp.c (exp_data_seg): New variable.
2058 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2059 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2060 (exp_fold_tree): Handle DATA_SEGMENT_END.
2061 Pass allocation_done when recursing instead of hardcoding
2062 lang_allocating_phase_enum.
2063 * ldexp.h (exp_data_seg): New.
2064 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2065 (lang_size_sections): New.
2066 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2067 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2068 if COMMONPAGESIZE is defined.
2069 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2070 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2071 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2072 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2073 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2076 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2078 * Makefile.in: Regenerate.
2080 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2082 * lexsup.c: Remove strtoul declaration.
2084 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2086 * ldmain.c: Add prototype for main ().
2087 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2088 * emultempl/lnk960.em (lnk960_choose_target): Function should
2091 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2093 * ldlang.c (entry_section): New initialised variable.
2094 (lang_finish): Use it.
2095 * ldlang.h (entry_section): Declare.
2096 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2097 entry_section to ".opd".
2099 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2101 * ld.texinfo (Options): Add back in -nostdlib documentation,
2102 which had been inadvertently removed.
2104 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2106 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2107 register section vma to a sane value after emitting error. Make
2108 fatal conditions cause program exit when emitting message.
2110 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2112 * configure.tgt: Add or32-*-rtems target.
2114 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2116 Contribute sh64-elf.
2117 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2118 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2119 in OTHER_RELOCATABLE_SECTIONS.
2120 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2121 * emulparams/shelf32.sh (STACK_ADDR): Define.
2122 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2123 (OTHER_SECTIONS): this. Removed stack settings.
2124 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2125 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2126 2001-03-12 DJ Delorie <dj@redhat.com>
2127 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2128 relaxing if any shmedia or mixed sections are found.
2129 2001-03-07 DJ Delorie <dj@redhat.com>
2130 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2131 einfo. Gracefully decline to output to non-elf formats.
2132 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2133 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2134 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2135 * emulparams/shelf32.sh: Ditto.
2136 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2137 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2139 2001-01-10 Ben Elliston <bje@redhat.com>
2140 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2141 non-portable shell constructs. From Hans-Peter Nilsson.
2142 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2143 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2144 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2145 dependencies to the shell script include chain.
2146 * Makefile.in: Regenerate.
2147 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2148 * emultempl/sh64elf.em: Update and tweak comments.
2149 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2150 make a .cranges section SEC_IN_MEMORY.
2151 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2152 * emultempl/sh64elf.em
2153 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2154 .cranges section found to be necessary; continue and set stored
2155 section contents flags for sections with non-mixed contents.
2156 Use a struct sh64_section_data container and sh64_elf_section_data
2157 to store contents-type flags.
2158 Remove unused update of "isec".
2159 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2160 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2161 access contents-type flags. Assert that the associated container
2162 is initialized. Use that container, not elf_gp_size, to hold size
2163 of linker-generated cranges contents.
2164 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2165 * emultempl/sh64elf.em
2166 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2167 there's already a .cranges section. When section flag difference
2168 is found, don't NULL-check cranges a second time. Tweak comments.
2169 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2170 merging, not max size, as size of ld-generated .cranges contents.
2171 Don't set ELF section flags in output section. When checking for
2172 needed .cranges descriptors, don't use a variable; compare
2173 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2175 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2176 * emultempl/sh64elf.em: New file.
2177 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2178 * Makefile.in: Regenerate.
2179 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2180 (OTHER_RELOCATING_SECTIONS): Ditto.
2181 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2182 * emulparams/shlelf32.sh: Stub out all settings except
2183 OUTPUT_FORMAT. Source shelf32.sh.
2184 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2185 OTHER_RELOCATING_SECTIONS.
2186 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2187 * emulparams/shlelf64.sh: Stub out all settings except
2188 OUTPUT_FORMAT. Source shelf64.sh.
2189 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2190 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2192 (DATA_START_SYMBOLS): Define, provide ___data.
2193 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2194 for consecutive .data section.
2195 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2196 section after .data section.
2197 * emulparams/shlelf64.sh: Ditto.
2198 * emulparams/shelf32.sh: Ditto.
2199 (ALIGNMENT): Define to 8.
2200 * emulparams/shelf32.sh: Ditto.
2201 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2202 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2203 built-in linker scripts.
2204 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2205 * emulparams/shlelf64.sh: New.
2206 * emulparams/shelf64.sh: New.
2207 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2209 * Makefile.am: Add support for shlelf64 and shelf64.
2210 * Makefile.in: Regenerate.
2211 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2212 * configure.tgt (sh64-*-elf*): Add shelf as default.
2213 Add shlelf to targ_extra_emuls.
2214 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2215 * emulparams/shelf32.sh: New file.
2216 * emulparams/shlelf32.sh: New file.
2217 * Makefile.am: Add support for shlelf32 and shelf32.
2218 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2219 * Makefile.in: Regenerate.
2221 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2223 * ldlang.c (lang_reset_memory_regions): Rename from
2224 reset_memory_regions. Change all callers. Make public.
2225 * ldlang.h (lang_reset_memory_regions): Prototype.
2226 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2227 lang_reset_memory_regions before lang_size_sections.
2228 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2229 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2231 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2233 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2234 arithmetic when checking for too many global registers.
2236 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2238 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2239 (ehppanbsd.c): New rule.
2240 * Makefile.in: Regenerate.
2241 * configure.tgt (hppa*-*-netbsd*): New target.
2242 * emulparams/hppalinux.sh: Add comment to check other files
2243 that source this file it is modified, and list which
2245 * emulparams/hppanbsd.sh: New file.
2247 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2249 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2252 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2254 Support on-demand global register allocation from
2255 R_MMIX_BASE_PLUS_OFFSET relocs.
2256 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2257 mmix_set_reg_section_vma. Call
2258 _bfd_mmix_finalize_linker_allocated_gregs.
2259 (mmix_before_allocation): New function.
2260 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2261 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2262 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2263 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2264 before .MMIX.reg_contents.
2265 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2266 (mmo_after_open): New function.
2267 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2268 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2269 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2271 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2273 * emulparams/or32.sh: New file.
2274 * emulparams/or32elf.sh: New file.
2275 * scripttempl/or32.sc: New file.
2276 * configure.tgt : Add support for or32.
2277 * configure: Regenerate
2278 * Makefile.am: Add support for or32.
2279 * Makefile.in: Regenerate.
2280 * NEWS: Mention support for or32.
2281 * po/ld.pot: Regenerate.
2283 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2284 Mitch Lichtenberg <mpl@broadcom.com>
2286 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2287 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2288 reloc creation (ld --embedded-relocs).
2290 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2292 * configure: Regenerated.
2294 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2296 * Makefile.am (install): Depend on install-info.
2297 * Makefile.in: Regenerate.
2299 2002-01-26 Christian Rose <menthos@menthos.com>
2301 * ldmain.c (main): Use full sentences to ease translation.
2303 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2305 * po/fr.po: Updated version.
2307 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2309 * po/es.po: Updated version.
2311 2002-01-25 Andreas Jaeger <aj@suse.de>
2313 * ldlex.l (yy_input): Correct error check.
2315 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2317 * ldmisc.c (demangle): Put back dots when string not demangled.
2319 2002-01-22 Richard Henderson <rth@redhat.com>
2321 * emulparams/elf64alpha.sh (NOP): Use unop.
2323 2002-01-21 Andreas Jaeger <aj@suse.de>
2325 * ldlex.l: Use fread instead of read.
2327 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2329 * configure.tgt (ia64-*-netbsd*): New target.
2331 2002-01-21 H.J. Lu <hjl@gnu.org>
2333 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2335 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2337 2002-01-18 Andreas Jaeger <aj@suse.de>
2339 * ldver.c (ldversion): Update year.
2341 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2343 * po/ld.pot: Regenerate.
2345 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2347 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2348 * Makefile.in: Regenerate.
2349 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2350 * emultempl/ppc64elf.em: New file.
2352 2002-01-15 DJ Delorie <dj@redhat.com>
2354 * scripttempl/pe.sc: Add support for constructor priorities.
2356 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2358 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2359 * emulparams/avr23xx.sh: Likewise.
2360 * emulparams/avr4433.sh: Likewise.
2361 * emulparams/avr44x4.sh: Likewise.
2362 * emulparams/avr85xx.sh: Likewise.
2363 * emulparams/avrmega103.sh: Likewise.
2364 * emulparams/avrmega161.sh: Likewise.
2365 * emulparams/avrmega603.sh: Likewise.
2366 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2368 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2370 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2371 archive is excluded.
2373 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2375 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2376 (eshelf_nbsd.c): New rule.
2377 (eshlelf_nbsd.c): New rule.
2378 * Makefile.in: Regenerate.
2379 * configure.tgt (sh*le-*-netbsdelf*): New target.
2380 (sh*-*-netbsdelf*): New target.
2381 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2382 * ld/emulparams/shelf_nbsd.sh: New emulation.
2383 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2385 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2387 * po/es.po: New file: Spanish translation.
2388 * configure.in (ALL_LINGUAS): Add es.
2389 * configure: Regenerate.
2391 2002-01-06 John Marshall <jmarshall@acm.org>
2393 * ld.texinfo: Note that --emit-relocs is currently only
2394 implemented for ELF.
2396 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2398 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2399 of bfd_section_list_remove and bfd_section_list_insert macros.
2400 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2401 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2403 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2405 * configure.tgt (x86_64-*-netbsd*): New target.
2407 2001-12-21 Tom Rix <trix@redhat.com>
2409 (gld*_create_output_section_statements): New function.
2410 For -binitfini support.
2411 * emultempl/aix.em (gld*_before_parse): Fix comment.
2412 * emultempl/aix.em (gld*_parse_args): Fix comment.
2414 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2416 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2418 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2420 * configure.tgt (arm-*-netbsdelf*): Add target.
2421 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2422 * emulparams/armelf_nbsd.sh: Added.
2423 * Makefile.am: Add rules for earmelf_nbsd.
2424 * Makefile.in: Regenerate.
2426 2001-12-19 Andreas Jaeger <aj@suse.de>,
2427 Susanne Oberhauser <froh@suse.de>
2429 * configure.host: Add rules for x86_64-*linux-gnu. Change
2430 s390x-linux entry to use gcc to report configuration, replace gcc
2431 with $CC in s390-linux
2433 2001-12-19 Andreas Jaeger <aj@suse.de>
2435 * ld.texinfo (VERSION): Fix markup.
2437 2001-12-18 matthew green <mrg@eterna.com.au>
2439 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2440 (m68kelfnbsd.c): New rule.
2441 * Makefile.in: Regenerate.
2442 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2443 (m68*-*-netbsd*4k*): .. this.
2444 (m68*-*-netbsdelf*): New target.
2445 (m68*-*-netbsd*): Also include ELF support.
2446 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2447 * emulparams/m68kelfnbsd.sh: New emulation.
2449 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2451 * ldgram.y (vers_node): Support anonymous version tags.
2452 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2453 tag is not defined together with non-anonymous versions.
2454 * ld.texinfo: Document it.
2456 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2458 * po/tr.po: New file: Turkish translation.
2459 * configure.in (ALL_LINGUAS): Add tr.
2460 * configure: Regenerate.
2462 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2464 * Makefile.am: Add rules for eelf64alpha_nbsd.
2465 * Makefile.in: Regenerate.
2466 * configure.tgt (alpha*-*-netbsd*): Set
2467 targ_emul to elf64alpha_nbsd.
2468 * emulparams/elf64alpha_nbsd.sh: Added.
2470 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2472 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2473 section_tail when fiddling with section list.
2474 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2475 broken into separate strings to make translation easier.
2476 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2477 fiddling with section list.
2478 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2480 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2482 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2484 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2486 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2488 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2490 * emultempl/elf32.em (finish): Supply output_bfd
2491 to bfd_elf*_discard_info.
2492 (OPTION_EH_FRAME_HDR): Define.
2493 (longopts): Add --eh-frame-hdr.
2494 (parse_args): Handle it.
2495 (list_options): Add --eh-frame-hdr to help.
2496 * emultempl/hppaelf.em (finish): Supply output_bfd
2497 to bfd_elf*_discard_info.
2498 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2500 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2502 * lexsup.c (parse_args): Don't pass shortopts to second call to
2503 getopt functions. Restore optind rather than decrementing before
2504 second call. Remove errind as it now duplicates last_optind.
2506 2001-12-11 Christopher Faylor <cgf@redhat.com>
2508 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2510 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2511 Richard Henderson <rth@redhat.com>
2513 * Makefile.am: Add support for xstormy16.
2514 * configure.tgt: Add support for xstormy16.
2515 * Makefile.in: Regenerate.
2516 * emulparams/elf32xstormy16.sh: New file.
2517 * scripttempl/xstormy16.sc: New file.
2519 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2521 * Makefile.in (LIB_PATH): Make configurable.
2522 (GENSCRIPTS): Set LIB_PATH in environment.
2523 * configure.in: Substitute LIB_PATH.
2524 * configure: Regenerate.
2525 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2526 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2528 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2530 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2531 describing the -N option so that it is easier to translate into
2534 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2536 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2537 statements describing a single option with a single, newline
2538 escaped fprintf. This allows better translation into other
2541 * ldmain.c (add_archive_element): Combine multiple strings
2542 into a single string to permit better translation into other
2545 2001-12-05 Tom Rix <trix@redhat.com>
2547 * Makefile.am: Remove eaixppc64.
2548 * Makefile.in: Regenerate.
2550 2001-12-04 Tom Rix <trix@redhat.com>
2552 * emultempl/aix.em (choose_target): Change default target to
2553 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2555 (gld*_read_file): Fix typo.
2556 (change_symbol_mode): Add prototype.
2559 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2560 * emulparams/aixrs6.sh : Same.
2561 * emulparams/ppcmacos.sh : Same.
2562 * emulparams/aixppc64.sh : Delete file.
2563 * emultempl/aix.em : Formatting changes.
2565 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2567 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2568 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2570 (OTHER_END_SYMBOLS): Fix formatting.
2571 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2572 (OTHER_END_SYMBOLS): Fix formatting.
2574 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2576 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2578 2001-12-02 Tom Rix <trix@redhat.com>
2580 * configure.tgt : Remove eaixppc64 emulations.
2581 * Makefile.in : Remove eaixppc64.c
2582 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2583 (ldemul_default_target): Same.
2584 * emultempl/gld960.em (gld960_choose_target): Same.
2585 * emultempl/gld960c.em (gld960_choose_target): Same.
2586 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2587 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2588 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2589 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2590 * emultempl/aix.em (choose_target): New function. Handle emulation of
2593 2001-11-27 H.J. Lu <hjl@gnu.org>
2595 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2596 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2597 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2598 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2599 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2600 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2601 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2602 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2604 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2607 (REL_SDATA): Likewise.
2608 (REL_SBSS): Likewise.
2609 (REL_SDATA2): Likewise.
2610 (REL_SBSS2): Likewise.
2611 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2614 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2616 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2618 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2620 2001-11-22 H.J. Lu <hjl@gnu.org>
2622 * Makefile.in: Regenerated with automake based on automake
2623 1.4-8 in RedHat 7.1.
2625 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2627 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2628 (config.status): Delete rule.
2629 Add extra dependencies to cover sourced emulparams files.
2630 * Makefile.in: Regenerate.
2632 * scripttempl/elf.sc: Order <section>, <section>.* and
2633 corresponding linkonce sections as seen in input files.
2634 Formatting fixes. Zero vma of all sections if not relocating.
2635 (STACK): Define and insert if STACK_ADDR defined.
2636 (OTHER_RELOCATING_SECTIONS): Delete.
2637 (OTHER_END_SYMBOLS): Define.
2638 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2639 (OTHER_READWRITE_SECTIONS): Likewise.
2640 (OTHER_GOT_SECTIONS): Likewise.
2641 (OTHER_SDATA_SECTIONS): Likewise.
2642 (OTHER_BSS_SECTIONS): Likewise.
2643 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2644 (OTHER_READWRITE_SECTIONS): Likewise.
2645 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2646 (OTHER_READWRITE_SECTIONS): Likewise
2648 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2649 (STACK_ADDR): Define.
2650 * emulparams/armelf_oabi.sh: As for armelf.sh.
2651 * emulparams/elf32mcore.sh: As for armelf.sh.
2652 * emulparams/h8300elf.sh: As for armelf.sh.
2653 * emulparams/mn10200.sh: As for armelf.sh.
2654 * emulparams/shelf.sh: As for armelf.sh.
2656 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2657 (OTHER_END_SYMBOLS): Define.
2658 * emulparams/m32relf.sh: As for elf32fr30.sh.
2659 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2660 * emulparams/h8300self.sh: As for elf32fr30.sh.
2662 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2663 defines with RELOCATING test.
2664 (OTHER_SDATA_SECTIONS): Likewise.
2665 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2666 (OTHER_END_SYMBOLS): ..this.
2667 * emulparams/crislinux.sh: As for criself.sh.
2669 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2671 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2672 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2673 normal and linkonce sections as seen in input files.
2674 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2675 (TEXT_DYNAMIC): Likewise.
2676 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2677 (OTHER_SDATA_SECTIONS): Likewise.
2678 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2679 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2680 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2681 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2682 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2683 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2684 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2685 sections as seen in input files.
2686 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2687 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2689 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2690 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2691 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2692 (OTHER_SECTIONS): Instead, use this..
2693 (OTHER_END_SYMBOLS): ..and this.
2695 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2696 * emulparams/elf32bsmip.sh: Likewise.
2697 * emulparams/elf32btsmip.sh: Likewise.
2698 * emulparams/elf32ebmip.sh: Likewise.
2699 * emulparams/elf32lmip.sh: Likewise.
2700 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2701 * emulparams/elf32lsmip.sh: Likewise.
2702 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2703 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2704 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2705 * emulparams/elf64btsmip.sh: Likewise.
2706 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2707 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2708 * emulparams/elf32ppclinux.sh: Likewise.
2709 * emulparams/elf32ppcsim.sh: Likewise.
2710 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2711 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2712 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2713 * emulparams/h8300self.sh: Likewise.
2714 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2715 * emulparams/sh.sh: Comment.
2716 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2717 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2718 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2720 2001-11-21 David Heine <dlheine@tensilica.com>
2721 Alan Modra <amodra@bigpond.net.au>
2723 * ldlang.c (map_input_to_output_sections): Replace "break"
2724 accidentally removed with 2001-08-03 change.
2725 (lang_gc_sections_1): Likewise.
2727 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2729 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2731 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2733 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2734 of false when calling lang_size_sections.
2735 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2737 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2739 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2740 function when LDEMUL_FINISH isn't set to the same name. Don't
2741 call ${LDEMUL_FINISH}.
2742 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2743 * emultempl/armelf.em (arm_elf_finish): Call
2744 gld${EMULATION_NAME}_finish.
2745 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2746 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2747 hppaelf_layout_sections_again if necessary.
2748 (need_laying_out): New var.
2749 (hppaelf_layaout_sections_again): Rename to
2750 hppaelf_layout_sections_again. Clear need_laying_out.
2751 (PARSE_AND_LIST_OPTIONS): Format text.
2753 2001-11-14 H.J. Lu <hjl@gnu.org>
2755 * emultempl/armelf.em (arm_elf_finish): Renamed from
2756 gld${EMULATION_NAME}_finish.
2757 (LDEMUL_FINISH): Set to arm_elf_finish.
2759 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2761 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2762 (struct ld_emulation_xfer_struct): Use it.
2764 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2766 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2767 additional symbols referenced by newer crt0.o files from HP.
2769 2001-11-12 Anthony Green <green@redhat.com>
2771 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2773 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2775 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2776 * Makefile.in: Regenerate.
2778 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2780 * ld.texinfo: Use @command for commands, @option for options.
2781 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2783 * Makefile.in: Rebuild.
2785 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2787 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2788 Add support for targets.
2790 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2792 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2793 * configure: Regernate.
2794 * po/fr.po: New file.
2795 * po/sv.po: New file.
2797 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2799 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2800 as little endian default and to support big endian.
2802 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2804 * ld.texinfo (Options): Document new option, -nostdlib.
2805 * lexsup.c (OPTION_NOSTDLIB): New definition.
2806 (ld_options): Add entry for "nostdlib".
2807 (parse_args): Handle OPTIONS_NOSTDLIB.
2808 * ldfile.c (ldfile_add_library_path): Don't add directories
2809 to the search path if they weren't specified on the command line
2810 and -nostdlib was specified.
2811 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2813 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2815 * lexsup.c (parse_args): Prevent infinite parsing loop when
2816 "-rpath.a" is specified on the command line.
2817 Replace calls to fprintf with calls to einfo.
2819 2001-10-31 John Marshall <jmarshall@acm.org>
2821 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2822 appear only once across all the linker scripts involved in a link
2823 invocation no longer applies. Make the documentation reflect
2826 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2828 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2830 (sh-*-linux*): Added targ_extra_libpath.
2832 2001-10-31 David Heine <dlheine@tensilica.com>
2834 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2835 for padding statements.
2837 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2839 * configure.tgt (mmix-*-*): New target.
2840 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2841 Add dependencies to match.
2842 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2843 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2844 scripttempl/mmo.sc: New files.
2845 * gen-doc.texi: @set MMIX.
2846 * ld.texinfo: Ditto.
2847 [MMIX] Add MMIX node.
2848 * Makefile.in: Regenerate.
2850 2001-10-29 Kazu Hirata <kazu@hxi.com>
2852 * ldlang.c: Fix a comment typo.
2854 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2856 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2857 entries, and match *-*-linux*.
2859 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2861 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2862 with ldlex_script, ldlex_popstate.
2863 (ifile_p1): Likewise.
2864 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2866 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2867 to 1. Don't BEGIN(SCRIPT).
2868 (lex_redirect): Similarly.
2869 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2871 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2873 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2874 __EH_FRAME_END__ and accept eh frames into data section.
2875 Add ctor and dtor sections.
2877 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2879 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2880 (auto-export): Fix indentation.
2882 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2884 * pe-dll.c (autofilter_objectlist): Add startup objects
2886 (auto-export): Constify char * p.
2887 Extract file basename and use strcmp rather than ststr
2890 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2892 * ldmain.c (get_emulation): Improve comment about the handling
2895 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2897 * po/POTFILES.in: Regenerate.
2899 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2901 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2902 -z nocopyreloc and -z nocombreloc usage strings.
2904 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2906 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2909 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2911 * scripttempl/armaout.sc: Place .bss section after end of aligned
2912 data section to match behaviour of aout code in constructrion of
2915 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2917 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2918 startup files for mingw32 dlls to list.
2920 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2922 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2924 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2926 * configure.tgt (targ): Add arm9e-*-elf.
2928 2001-10-05 H.J. Lu <hjl@gnu.org>
2930 * genscripts.sh: Fix a typo in the last change.
2932 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2934 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2935 -z nocombreloc in usage.
2937 2001-10-03 Jim Blandy <jimb@redhat.com>
2939 * genscripts.sh: Include a comment at the top of each generated
2940 script, explaining its purpose.
2942 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2944 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2945 * NEWS: Mention -z nocopyreloc.
2946 * ld.texinfo (Options): Describe nocopyreloc.
2948 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2950 * configure: Regenerate.
2952 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2954 * ldver.h (ld_program_version): Remove declaration.
2955 * lexsup.c (parse_args): Move printing of copyright message..
2956 * ldver.c (ldversion): .. to here.
2957 Use BFD_VERSION_STRING in place of BFD_VERSION.
2958 (ld_program_version): Remove.
2959 * Makefile.am (Makefile): Depend on bfd/configure.in.
2961 * Makefile.in: Regenerate.
2963 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2965 * Makefile.am: Update dependencies with "make dep-am".
2966 * Makefile.in: Regenerate.
2968 2001-09-29 John Reiser <jreiser@BitWagon.com>
2970 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2971 * lexsup.c: Add --no-define-common commandline option.
2972 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2973 * ldlex.l: Likewise.
2974 * ld.h: Add command_line.inhibit_common_definition.
2975 * ldmain.c (main): Initialize.
2976 * ld.texinfo: Document.
2978 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2980 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2982 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2984 * ldmisc.c (USE_STDARG): Remove.
2985 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2990 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2991 declarations. Update copyright.
2993 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2995 * pe-dll.c: Remove obsoleted declaration of
2996 pe_get_data_import_dll_name.
2997 (pe_create_import_fixup): Fix thinko.
2999 * ld.texinfo(enable-auto-import): Clarify the explanation.
3001 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3003 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3004 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3005 DLL_SUPPORT controlled code.
3007 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3009 * emultempl/pe.em(pe_data_import_dll): Make static.
3010 (pe_get_data_import_dll_name): New accessor function.
3011 * pe-dll.c(pe_create_import_fixup): call
3012 pe_get_data_import_dll_name() from pe.em, instead of
3013 directly accessing pe_data_import_dll variable from pe.em.
3015 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3017 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3018 (def_file_add_directive): Use ISSPACE instead of isspace.
3019 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3020 isdigit/isxdigit/isalpha/isalnum.
3021 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3022 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3023 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3024 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3026 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3027 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3029 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3030 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3031 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3032 (ctor_prio): Use ISDIGIT instead of isdigit.
3033 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3034 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3035 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3037 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3038 (stricpy): Use TOLOWER instead of isupper/tolower.
3039 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3040 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3041 (lex_warn_invalid): Use ISPRINT instead of isprint.
3042 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3043 (main): For gettext, also set the LC_CTYPE locate facet.
3044 (add_keepsyms_file): Use ISSPACE instead of isspace.
3045 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3046 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3047 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3048 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3049 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3050 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3051 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3052 (quoteput): Use ISSPACE instead of isspace.
3053 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3056 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3058 * deffilep.y (def_stash_module): Constify "name" param.
3060 * pe-dll.c: Replace CONST with const throughout.
3061 (quick_symbol): Constify "n1", "n2", "n3" params.
3062 (make_singleton_name_thunk): Constify "import" param. Make
3063 "buffer_len" a size_t.
3064 (make_import_fixup_entry): Constify "name", "fixup_name",
3065 "dll_symname" params.
3066 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3067 (pe_get32): Likewise.
3068 (pe_implied_import_dll): Likewise.
3070 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3071 (sort_by_section_name): Likewise.
3073 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3074 (make_import_fixup): Cast printf arg, rel->address to long rather
3076 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3078 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3080 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3081 defines BufferSize. Increase buffer size by one.
3083 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3085 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3087 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3089 * configure.tgt: Add arm-openbsd target.
3091 2001-09-12 H.J. Lu <hjl@gnu.org>
3093 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3095 (ALL_64_EMULATIONS): Here.
3096 * Makefile.in: Regenerated.
3098 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3100 * emultempl/pe.em(make_import_fixup): change signature to
3101 take asection as well as arelec; we need this for proper
3102 error reporting. Only call pe_create_import_fixup() if
3103 there is no attempt to add a constant addend to the reloc;
3104 otherwise, report error condition.
3105 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3106 since final argument is a pointer to make_import_fixup().
3107 Change call to cb() to match make_import_fixup() signature.
3108 (make_import_fixup_mark): make buffer_len unsigned.
3109 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3111 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3113 * ld.texinfo: add verbose documentation for auto-import
3114 direct-addressing workaround, to compliment the terse
3117 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3119 * scripttempl/v850.sc: Add gcc_except_table sections.
3121 2001-09-11 Jeffrey A Law (law@cygnus.com)
3123 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3124 * emulparams/h8300self.sh: Similarly.
3126 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3128 * ld.texinfo (Options, --stack): Correct default value for stack
3131 2001-09-05 Tom Rix <trix@redhat.com>
3133 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3135 2001-09-03 Andreas Jaeger <aj@suse.de>
3137 * emultempl/beos.em: Declare prototypes for comparions functions,
3140 2001-09-02 Andreas Jaeger <aj@suse.de>
3142 * emultempl/aix.em: Add missing prototype.
3143 * emultempl/lnk960.em: Likewise.
3144 * emultempl/vanilla.em: Likewise.
3145 * emultempl/armcoff.em: Likewise.
3146 * emultempl/armelf_oabi.em: Likewise.
3147 * emultempl/beos.em: Likewise.
3148 * emultempl/gld960c.em: Likewise.
3149 * emultempl/gld960.em: Likewise.
3151 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3152 for prototype declaration.
3154 2001-08-31 Eric Christopher <echristo@redhat.com>
3155 Jason Eckhardt <jle@redhat.com>
3157 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3159 2001-08-31 Andreas Jaeger <aj@suse.de>
3161 * emultempl/pe.em: Add missing prototypes.
3162 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3163 pe_find_data_imports.
3164 (pr_sym): Add unused attribute.
3166 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3168 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3169 default from coff to elf.
3171 2001-08-29 Jeff Law <law@redhat.com>
3173 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3175 * emulparams/h8300self.sh: Similarly.
3177 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3179 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3181 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3182 * configure.tgt (h8300-*-elf*): New case.
3183 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3184 * emulparams/h8300self.sh: New file.
3185 * Makefile.in: Regenerated.
3187 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3189 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3192 2001-08-27 Linus Nordberg <linus@swox.com>
3193 Alan Modra <amodra@bigpond.net.au>
3195 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3196 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3198 * Makefile.in: Regenerate.
3199 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3200 entries to correct alphabetical position.
3201 * emulparams/elf64ppc.sh: New.
3202 * emulparams/elf64lppc.sh: New.
3204 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3206 * ldmain.c (main): Declare BSIZE as static.
3208 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3210 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3211 into .rel.dyn resp. .rela.dyn if combreloc.
3212 (get_script): If .x linker script is equal to .xn, only put it
3213 once into the binary.
3214 Add .xc and .xsc scripts.
3215 (parse_args): Handle -z combreloc and -z nocombreloc.
3216 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3217 For .xc and .xsc scripts put all .rel* or .rela* input sections
3218 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3219 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3221 Strip trailing whitespace from script.
3222 Generate .xc and .xsc scripts if requested.
3223 * ldmain.c (main): Initialize link_info.combreloc and
3224 link_info.spare_dynamic_tags.
3225 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3226 (ld_options): Add --spare-dynamic-tags option.
3227 (parse_args): Likewise.
3228 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3229 * ldint.texinfo: Document .xc and .xsc linker scripts.
3230 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3232 2001-08-22 H.J. Lu <hjl@gnu.org>
3234 * emulparams/elf32fr30.sh: Add a newline.
3236 2001-08-21 Andreas Jaeger <aj@suse.de>
3238 * deffilep.y: Add missing prototypes.
3239 * pe-dll.c: Likewise.
3241 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3243 * ldlang.c (insert_pad): Fix typos in last patch.
3245 * ldlang.c: When traversing lang_statement_union_type lists,
3246 consistently use "header.next" rather than "next".
3247 * mpw-eppcmac.c: Likewise.
3248 * emultempl/beos.em: Likewise.
3249 * emultempl/hppaelf.em: Likewise.
3250 * emultempl/pe.em: Likewise.
3251 * ldlang.h (union lang_statement_union): Remove "next" field.
3253 * ldlang.c (insert_pad): Use offsetof macro.
3254 (lang_size_sections): Always neuter padding statements.
3255 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3257 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3258 passed to lang_size_sections.
3259 (pe_exe_fill_sections): Likewise.
3260 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3261 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3263 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3265 * emultempl/aix.em: Formatting fixes.
3267 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3269 * ldlang.c (insert_pad): Make use of an existing pad statement if
3270 available. Move code calculating alignment, adjusting section
3271 alignment power, and adjusting dot to ..
3272 (size_input_section): .. here. Remove unused relax param.
3273 (lang_size_sections): Change boolean `relax' param to boolean *.
3274 Adjust call to size_input_section. Make use of insert_pad to
3275 place pad after the assignment statement. If relaxing, zap
3277 (reset_memory_regions): Reset output_bfd section sizes too.
3278 (relax_again): Move to..
3279 (lang_process): ..here. Adjust call to lang_size_sections, and
3280 remove duplicated code.
3281 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3283 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3285 * ld.texinfo: Document that fill values now use the four least
3287 * emulparams/elf32fr30.sh (NOP): Update.
3288 * emulparams/elf32mcore.sh: Likewise.
3289 * emulparams/elf64_s390.sh: Likewise.
3290 * emulparams/elf_i386.sh: Likewise.
3291 * emulparams/elf_i386_be.sh: Likewise.
3292 * emulparams/elf_i386_chaos.sh: Likewise.
3293 * emulparams/elf_i386_ldso.sh: Likewise.
3294 * emulparams/elf_s390.sh: Likewise.
3295 * emulparams/elf_x86_64.sh: Likewise.
3296 * emulparams/i386moss.sh: Likewise.
3297 * emulparams/i386nw.sh: Likewise.
3298 * emulparams/m68kelf.sh: Likewise.
3299 * scripttempl/elf.sc: Update NOP comment.
3300 * scripttempl/elfi370.sc: Likewise.
3301 * scripttempl/elfm68hc11.sc: Likewise.
3302 * scripttempl/elfm68hc12.sc: Likewise.
3303 * scripttempl/nw.sc: Likewise.
3305 2001-08-15 Tom Rix <trix@redhat.com>
3307 * ldgram.y (saved_script_handle): Initialize to NULL.
3308 * ldmain.c (main): Change check on saved_script_handle.
3310 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3312 * emultempl/elf32.em: Formatting fixes.
3313 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3314 looking at sec->owner.
3315 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3316 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3317 unused code, and reorganize orphan section placement code.
3319 * ldlang.c (wild_doit): Rename to lang_add_section.
3320 * ldlang.h: Here too.
3321 * mpw-elfmips.c: And here.
3322 * emultempl/beos.em: And here.
3323 * emultempl/elf32.em: And here.
3324 * emultempl/hppaelf.em: And here.
3325 * emultempl/pe.em: And here.
3327 2001-08-13 Richard Henderson <rth@redhat.com>
3329 * emultempl/needrelax.em: New file.
3330 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3331 * Makefile.am (eelf64_ia64.c): Depend on it.
3332 * Makefile.in: Rebuild.
3334 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3336 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3337 output_section is set non-NULL.
3339 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3340 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3341 needlessly create an output_section_statement. Treat a correctly
3342 named output_section_statement with NULL bfd_section as compatible.
3344 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3346 * emultempl/generic.em: Support EXTRA_EM_FILE.
3347 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3348 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3349 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3350 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3351 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3352 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3353 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3354 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3355 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3356 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3358 2001-08-12 Richard Henderson <rth@redhat.com>
3360 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3361 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3362 scripttempl/v850.sc: Keep .jcr data.
3364 2001-08-12 H.J. Lu <hjl@gnu.org>
3365 Andrew Haley <aph@cambridge.redhat.com>
3366 Nick Clifton <nickc@redhat.com>
3368 * ldgram.y (had_script): Change name to saved_script_handle.
3369 Change type to file handle.
3370 * ld.h (had_script): Rename and retype.
3371 * ldfile.c (ldfile_open_command_file): Save the file handle
3372 used in saved_script_handle.
3373 * lexsup.c (parse_args): Do not allow -c option to alter
3374 saved_script_handle.
3375 * ldmain.c (main): Print out the linker script used if
3376 --verbose is given. Check saved_script_handle to obtain the
3377 external linker script used, or if NULL, dump the builtin
3379 * ld.texinfo: Document that --verbose now dumps the linker
3380 script used, regardless of whether it was an internal or an
3383 2001-08-10 Andreas Jaeger <aj@suse.de>
3385 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3387 * configure: Regenerate.
3389 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3391 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3393 * scripttempl/elf.sc: Move non-text .dynamic section before
3394 .plt/.got/.sdata* group.
3395 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3396 (OTHER_SDATA_SECTIONS): Add.
3397 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3399 * emulparams/crislinux.sh: Likewise.
3400 * emulparams/elf32b4300.sh: Likewise.
3401 * emulparams/elf32bmip.sh: Likewise.
3402 * emulparams/elf32bmipn32.sh: Likewise.
3403 * emulparams/elf32bsmip.sh: Likewise.
3404 * emulparams/elf32btsmip.sh: Likewise.
3405 * emulparams/elf32ebmip.sh: Likewise.
3406 * emulparams/elf32elmip.sh: Likewise.
3407 * emulparams/elf32l4300.sh: Likewise.
3408 * emulparams/elf32lmip.sh: Likewise.
3409 * emulparams/elf32lsmip.sh: Likewise.
3410 * emulparams/elf32ltsmip.sh: Likewise.
3411 * emulparams/elf64bmip.sh: Likewise.
3412 * emulparams/elf64btsmip.sh: Likewise.
3413 * emulparams/elf64ltsmip.sh: Likewise.
3415 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3417 * genscripts.sh: Source the emulparams script before each output
3418 script is generated so that variables like `RELOCATING' may affect
3419 variables defined in the emulparams script.
3421 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3423 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3426 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3427 ie. iterate over wild_statement.section_list.
3428 (gld${EMULATION_NAME}_place_orphan): Likewise.
3430 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3432 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3433 .fini[0-4] sections used by _exit
3434 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3435 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3436 * scripttempl/elfm68hc11.sc: Likewise.
3438 2001-08-03 H.J. Lu <hjl@gnu.org>
3440 * emultempl/beos.em (init): Add the missing initialization.
3442 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3444 * ld.texinfo (Input Section Basics): Clarify ordering of output
3446 * ldlang.c (callback_t): Add wildcard_list param.
3447 (walk_wild_section): Remove "section" param. Rewrite for
3448 lang_wild_statement_type change. Remove unique_section_p test.
3449 (walk_wild_file): Remove "section" param.
3450 (walk_wild): Remove "section" and "file" params.
3451 (lang_gc_wild): Likewise.
3452 (wild): Likewise. Modify for lang_wild_statement_type change.
3453 (wild_sort): Likewise. Add "sec" param.
3454 (gc_section_callback): Likewise.
3455 (output_section_callback): Likewise. Do unique_section_p test.
3456 (map_input_to_output_sections): Modify call to wild.
3457 (lang_gc_sections_1): Likewise.
3458 (print_wild_statement): Modify for lang_wild_statement_type
3460 (lang_add_wild): Replace filename, filenames_sorted param with
3461 filespec. Replace section_name, sections_sorted,
3462 exclude_filename_list with section_list.
3463 * ldlang.h (lang_add_wild): Here too.
3464 (lang_wild_statement_type): Replace section_name, sections_sorted,
3465 and exclude_filename_list with section_list.
3466 * ldgram.y (current_file): Delete.
3467 (%union): Add wildcard_list.
3468 (file_NAME_list): Set type to wildcard_list. Build a linked list
3469 rather than calling lang_add_wild for each entry.
3470 (input_section_spec_no_keep): Call lang_add_wild here instead.
3471 * ld.h (struct wildcard_list): Declare.
3472 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3474 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3476 * ldmain.c (main): initialize link_info.pei386_auto_import
3477 * pe-dll.c: new tables for auto-export filtering
3478 (auto_export): change API, pass abfd for contextual filtering.
3479 Loop thru tables of excluded symbols instead of comparing
3482 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3484 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3485 static variable current_sec (static struct sec *). Add
3486 forward declaration for add_bfd_to_link.
3487 (process_def_file): Don't export undefined symbols. Do not
3488 export symbols starting with "_imp__". Call auto_export()
3490 (pe_walk_relocs_of_symbol): New function.
3491 (generate_reloc): add optional extra debugging
3492 (pe_dll_generate_def_file): eliminate extraneous initial blank
3494 (make_one): enlarge symtab to make room for __nm__ symbols
3495 (DATA auto-import support).
3496 (make_singleton_name_thunk): New function.
3497 (make_import_fixup_mark): New function.
3498 (make_import_fixup_entry): New function.
3499 (pe_create_import_fixup): New function.
3500 (add_bfd_to_link): Specify that 'name' argument is a CONST
3502 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3503 declare new functions pe_walk_relocs_of_symbol and
3504 pe_create_import_fixup.
3505 * emultempl/pe.em: add new options --enable-auto-import,
3506 --disable-auto-import, and --enable-extra-pe-debug.
3507 (make_import_fixup): New function.
3508 (pe_find_data_imports): New function.
3509 (pr_sym): New function.
3510 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3511 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3514 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3516 * ld.texinfo: add additional documentation for
3517 --export-all-symbols. Document --out-implib,
3518 --enable-auto-image-base, --disable-auto-image-base,
3519 --dll-search-prefix, --enable-auto-import, and
3520 --disable-auto-import.
3521 * ldint.texinfo: Add detailed documentation on auto-import
3524 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3526 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3529 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3531 * Makefile.am: Update dependencies with "make dep-am".
3532 * Makefile.in: Regenerate
3534 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3536 * ldcref.c (check_section_sym_xref): New function.
3537 (check_nocrossrefs): Call it.
3538 (check_nocrossref): Interate over h->refs here instead of..
3539 (check_refs): ..here. Pass in the symbol name, section, and bfd
3540 rather than hash_entry pointers.
3541 (struct check_refs_info): Keep symbol name rather than hash entry.
3543 (check_reloc_refs): Tweak for above changes in check_refs_info.
3544 Only report references to section syms when symname is NULL to
3545 prevent duplicate messages for the same reloc.
3547 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3549 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3550 available. Do not print NULL trees.
3551 (exp_print_token): Print unknown tokens with values > 126 as
3552 decimal values not ASCII characters.
3554 * ldlang.c (lang_leave_overlay): If a region is specified assign
3555 it to all sections inside the overlay unless they have been
3556 assigned to the own, non-default, memory region.
3558 * README: Add header for consistency with other README files.
3560 2001-07-14 H.J. Lu <hjl@gnu.org>
3562 * emultempl/elf32.em (output_prev_sec_find): Never return
3563 bfd_abs_section_ptr, bfd_com_section_ptr nor
3564 bfd_und_section_ptr.
3566 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3568 * Makefile.am (em32relf.c): Change dependency from generic.em to
3570 * Makefile.in: Regenerate.
3572 2001-07-14 matthew green <mrg@eterna.com.au>
3574 * configure.tgt (i386-*-netbsdelf*): New target.
3575 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3577 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3579 * emultempl/elf32.em (output_prev_sec_find): New.
3580 (place_orphan): Use it.
3582 2001-07-11 H.J. Lu <hjl@gnu.org>
3584 * ldmain.c (main): Fix typos in the last change.
3586 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3588 * ldmain.c (main): Disallow -F and -f without -shared.
3590 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3592 * emultempl/pe.em (after_open): Check for the output_bfd not
3593 having any coff_data structure allocated to it.
3595 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3597 * emultempl/elf32.em: Do not assuming that contents of the buffer
3598 returned from basename function will remain unchanged accross other
3601 2001-07-03 H.J. Lu <hjl@gnu.org>
3603 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3604 2001-07-03. It creates dynamic entries even for static binaries.
3606 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3608 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3609 (DYNAMIC): Use it to reserve few dynamic entries for
3612 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3614 * emulparams/hppa64linux.sh: New file.
3615 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3616 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3617 (ehppa64linux.c): Add rule to make it.
3619 * Makefile.in: Regenerate.
3621 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3623 * ld.texinfo (Options, -r): Mention restrictions when using
3624 different object formats.
3626 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3628 * ldlang.c (lang_check): Emit fatal error if relocatable link
3629 between different object flavours with relocations in input.
3631 2001-06-19 H.J. Lu <hjl@gnu.org>
3633 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3634 (--version-script): Mention the language support.
3636 2001-06-19 H.J. Lu <hjl@gnu.org>
3638 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3640 2001-06-18 H.J. Lu <hjl@gnu.org>
3642 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3643 (diststuff): Add $(MANS).
3644 * Makefile.in: Regenerated.
3648 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3650 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3651 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3652 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3653 * ld.h (args_type): Remove member export_dynamic. All users
3654 changed to use struct bfd_link_info member.
3656 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3657 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3658 * Makefile.in: Regenerate.
3660 2001-06-18 H.J. Lu <hjl@gnu.org>
3662 * ldlang.c (init_os): Add the newline to the einfo call.
3663 (lang_check): Likewise.
3664 (lang_do_version_exports_section): Likewise.
3666 2001-06-15 H.J. Lu <hjl@gnu.org>
3668 * lexsup.c (parse_args); Save optind to report unrecognized
3671 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3673 * ldlang.c (lang_check): Emit fatal error if relocatable link
3674 between different object flavours.
3676 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3677 Set new link_info member export_dynamic.
3678 * ldmain.c (main): Initialize new link_info member export_dynamic.
3680 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3682 * ldlang.c (walk_wild): Only call walk_wild_file if
3683 lookup_name returns something.
3684 (lookup_name): If load_symbols fails, return NULL.
3685 (load_symbols): Change to a boolean function.
3686 (open_input_bfds): If load_symbols fails then do not make the
3689 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3691 * ldlang.c (record_bfd_errors): Remove.
3693 * emultempl/aix.em: Fix copyright dates.
3695 2001-06-07 Andreas Jaeger <aj@suse.de>
3697 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3698 (TEXT_START_ADDR): Likewise.
3700 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3702 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3704 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3706 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3708 2001-05-31 H.J. Lu <hjl@gnu.org>
3710 * ldlang.c (open_input_bfds): Don't change the bfd error
3711 handler whilst loading symbols.
3713 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3715 * configure.tgt: Remove i370-mvs architecture, it is not currently
3718 2001-05-25 H.J. Lu <hjl@gnu.org>
3720 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3721 like emulparams/aixppc.sh.
3723 2001-05-25 H.J. Lu <hjl@gnu.org>
3725 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3726 setting of output_filename after bfd_scan_arch.
3727 * emultempl/pe.em: Likewise.
3729 2001-05-25 H.J. Lu <hjl@gnu.org>
3731 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3732 like emulparams/aixppc.sh.
3734 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3735 instead of ${srcdir}/emultempl/stringify.sed.
3737 2001-05-25 Timothy Wall <twall@oculustech.com>
3739 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3742 2001-05-25 Alan Modra <amodra@one.net.au>
3744 * configure.host: Replace linuxoldld with linux*oldld.
3745 * configure.tgt: Likewise.
3747 2001-05-24 H.J. Lu <hjl@gnu.org>
3749 * emultempl/stringify.sed: Removed again.
3751 2001-05-24 H.J. Lu <hjl@gnu.org>
3753 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3754 (gld${EMULATION_NAME}_before_parse): Initialize
3755 ldfile_output_architecture, ldfile_output_machine and
3756 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3757 * emultempl/beos.em: Likewise.
3758 * emultempl/elf32.em: Likewise.
3759 * emultempl/linux.em: Likewise.
3760 * emultempl/mipsecoff.em: Likewise.
3761 * emultempl/pe.em: Likewise.
3762 * emultempl/sunos.em: Likewise.
3764 2001-05-24 Tom Rix <trix@redhat.com>
3766 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3767 udate import file format.
3768 (change_symbol_mode) New, same
3769 (is_syscall) New, same
3770 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3771 * emulparams/aixppc64.sh : same
3772 * emulparams/aixrs6.sh : same
3773 * emulparams/ppcmacos.sh : same
3774 * emultempl/aix.em : use strtoull to parse options
3775 * Makefile.am : add eaixppc64 emulation for xcoff64
3776 * Makefile.in : same
3777 * configure.tgt : same
3779 * scripttempl/aix.sc : default text section offset to 0x10000000
3780 default data section offset to 0x20000000
3781 add .sv3264 and .sv64 pseudo sections
3782 loader and debug sections use the currect section offset.
3784 * emultempl/aix.em : Add xcoff64 support
3785 Add -binitfini support
3786 (gld${EMULATION_NAME}_before_parse) -binitfini
3787 (gld${EMULATION_NAME}_parse_args) same
3788 (gld${EMULATION_NAME}_before_allocation) format change for special
3791 * emulparams/aixppc64.sh : New file for xcoff64 support
3793 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3795 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3796 variable to avoid non-portable shell construct.
3798 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3800 * ldmain.c (get_emulation): Add -mips5 command line argument.
3802 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3804 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3805 (ELF_INTERPRETER_NAME): Define it.
3806 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3808 * configure.tgt (targ_emul, targ_extra_emuls)
3809 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3810 as primary, elf_i386 as extra.
3811 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3812 (eelf_i386_ldso.c): New rule.
3813 * Makefile.in: Rebuilt.
3815 2001-05-22 Nick Clifton <nickc@redhat.com>
3817 * lexsup.c (ld_options): Allow -I to be an alias for
3818 --dynamic-linker. This is for Solaris compatability.
3819 * ld.texinfo: Document that -I can be used.
3822 2001-05-16 Alan Modra <amodra@one.net.au>
3824 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3825 whether an input section is the first one assigned to an output
3827 Assorted formatting fixes.
3829 2001-05-14 DJ Delorie <dj@delorie.com>
3831 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3832 * Makefile.in: Ditto.
3834 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3836 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3837 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3839 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3841 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3843 * ldlang.c (lang_process): Call bfd_merge_sections.
3845 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3847 * ldgram.y: Fix typo.
3849 2001-05-03 H.J. Lu <hjl@gnu.org>
3851 * emultempl/elf32.em: Include "libiberty.h".
3852 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3853 basename of the bfd filename.
3854 (gld${EMULATION_NAME}_stat_needed): Likewise.
3855 (gld${EMULATION_NAME}_try_needed): Likewise.
3856 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3858 2001-05-02 H.J. Lu <hjl@gnu.org>
3860 * emultempl/pe.em: Include <ctype.h>.
3862 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3864 * emulparams/elf32openrisc.sh: New file.
3866 * Makefile.am: Add OpenRISC target.
3867 * Makefile.in: Regenerated.
3869 * configure.tgt: Add openrisc-*-* mapping.
3871 2001-05-02 Nick Clifton <nickc@redhat.com>
3873 * emultempl/aix.em: Replace buystring with xstrdup.
3874 * emultempl/beos.em: Replace buystring with xstrdup.
3876 2001-05-02 H.J. Lu <hjl@gnu.org>
3878 * ldfile.c: Include "libiberty.h".
3879 * ldlex.l: Likewise.
3881 * ldmisc.c (buystring): Removed.
3882 * ldmisc.h: Likewise.
3884 * ldfile.c: Replace buystring with xstrdup.
3885 * ldlang.c: Likewise.
3886 * ldlex.l: Likewise.
3887 * ldmain.c: Likewise.
3888 * ldmisc.c: Likewise.
3889 * lexsup.c: Likewise.
3890 * mpw-eppcmac.c: Likewise.
3892 2001-04-30 Andreas Jaeger <aj@suse.de>
3894 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3896 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3898 * ldlang.c (load_symbols): Give emulation a chance
3899 to process unrecognized file before fatal error is
3900 reported, not after.
3902 2001-04-27 Sean McNeil <sean@mcneil.com>
3904 * configure.tgt: Add arm-vxworks target.
3905 * scripttempl/armcoff.sc: Support .text or .data as a section name
3909 2001-04-13 J.T. Conklin <jtc@redback.com>
3911 * ld.texinfo: Document --fatal-warnings.
3914 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3915 warnings have been turned into errors.
3916 * lexsup.c (OPTION_WARN_FATAL): Define.
3917 (ld_options): Entry for --fatal-warnings.
3918 (parse_args): Handle OPTION_WARN_FATAL.
3919 * ld.h (ld_config_type): Add fatal_warnings field.
3921 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3923 * ldmain.c (main): Default to discard_sec_merge.
3924 * lexsup.c (OPTION_DISCARD_NONE): Define.
3925 (ld_options): Add --discard-none.
3926 (parse_args): Handle OPTION_DISCARD_NONE.
3927 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3928 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3929 all its input sections match.
3931 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3933 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3934 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3935 (eelf32ltsmip.c): New target.
3936 (eelf64btsmip.c): Likewise.
3937 (eelf64ltsmip.c): Likewise.
3938 * Makefile.in: Regenerated.
3940 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3942 (mips*-*-linux-gnu*): Likewise.
3944 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3946 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3948 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3951 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3953 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3954 correct value of __Stext here.
3955 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3958 * emulparams/crislinux.sh: Remove FIXME.
3960 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3962 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3963 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3965 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3967 * configure.tgt (cris-*-*): Change default emulation to criself.
3968 (cris-*-*aout*): New rule.
3970 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3972 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3973 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3975 2001-03-26 Andreas Jaeger <aj@suse.de>
3977 * ld.texinfo (Overview): Fix syntax in texi code.
3979 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3981 * ld.texinfo: Put @c man indications to generate the ld man page.
3982 When generating man, define all the variables. Define SEEALSO
3983 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3984 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3985 (ld.1): Generate from ld.texinfo.
3986 * Makefile.in: Regenerate.
3988 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3990 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3991 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3993 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3995 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3996 is an absolute path look only for this file and not along the path.
3998 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4000 * emultempl/elf32.em (OPTION_GROUP): New macro.
4001 Add new option Bgroup to longopts.
4002 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4003 (gld*_list_options): Add -Bgroup and -z defs.
4004 * ld.1: Document -Bgroup and -z defs.
4005 * ld.texinfo: Likewise.
4007 2001-03-07 Michael Meissner <meissner@redhat.com>
4009 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4010 with sections created by -fdata-sections.
4011 (.dynbss,.bss): Ditto.
4013 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4015 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4016 after_allocation_default, not gld..._before_allocation.
4018 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4020 * configure.in (BFD_VERSION): New.
4021 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4022 * configure: Regenerate.
4023 * Makefile.am: Run "make dep-am"
4024 * Makefile.in: Regenerate.
4026 2001-02-26 Timothy Wall <twall@cygnus.com>
4028 * emulparams/elf64_aix.sh: Add additional read-only sections;
4029 uncomment lines which are now required.
4031 2001-02-26 H.J. Lu <hjl@gnu.org>
4033 * ldlang.c (open_input_bfds): Set the bfd error handler so
4034 that problems can be caught whilst loading symbols.
4035 (record_bfd_errors): New function: Report BFD errors and mark
4036 the executable output as being invalid.
4038 2001-02-22 Timothy Wall <twall@cygnus.com>
4040 * configure.host: Add configuration for ia64-*-aix*.
4041 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4042 Add dependencies for eelf64_aix.c.
4043 * Makefile.in: Regenerate.
4044 * configure.tgt: Add ia64-*-aix* mapping.
4045 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4047 2001-02-20 H.J. Lu <hjl@gnu.org>
4049 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4050 false if we found the file.
4052 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4054 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4055 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4057 2001-02-18 lars brinkhoff <lars@nocrew.org>
4059 * Makefile.am: Add PDP-11 target.
4060 * configure.tgt: Likewise.
4061 * emulparams/pdp11.sh: New file.
4063 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4065 * configure.host: Add a generic FreeBSD configuration entry such that
4066 all [modern] FreeBSD systems on all platforms will look the same.
4068 2001-02-14 H.J. Lu <hjl@gnu.org>
4070 * configure.tgt: Remove mention of earmelf_linux26.
4072 2001-02-13 Richard Henderson <rth@redhat.com>
4074 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4076 2001-02-13 H.J. Lu <hjl@gnu.org>
4078 * ldexp.h (node_type): Add etree_provided.
4079 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4080 type to etree_provided if defined by PROVIDE. Allow updating
4082 (exp_print_tree): Handle etree_provided.
4083 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4086 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4088 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4089 .IA_64.unwind.* pattern to unwind table section and
4090 .IA_64.unwind_info* pattern to unwind info section.
4092 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4094 * Makefile.am: Add linux target for S/390.
4095 * Makefile.in: Likewise.
4096 * configure.host: Likewise.
4097 * configure.tgt: Likewise.
4098 * emulparams/elf64_s390.sh: New file.
4099 * emulparams/elf_s390.sh: New file.
4101 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4103 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4105 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4107 2001-02-06 Philip Blundell <philb@gnu.org>
4109 * Makefile.am: Remove mention of earmelf_linux26.
4110 * Makefile.in: Regenerate.
4112 2001-02-04 Philip Blundell <philb@gnu.org>
4114 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4115 * emulparams/armelf_linux26.sh: Delete.
4116 * configure.tgt: Remove mention of armelf_linux26 emulation.
4118 2001-02-01 Nick Clifton <nickc@redhat.com>
4120 * ld.1: Replace occurances of -oformat with --oformat.
4122 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4124 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4125 load_base is specified.
4127 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4129 * emultempl/elf32.em: Correct spelling in comments and listed
4132 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4134 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4135 default for the first section of a group of overlay sections.
4137 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4139 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4140 * Makefile.in: Regenerate.
4141 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4142 Check for null tool_dir.
4144 2001-01-16 Jim Wilson <wilson@redhat.com>
4146 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4147 and IA_64.unwind.info.
4149 2001-01-16 H.J. Lu <hjl@gnu.org>
4151 * ldlang.c (lang_check): Merge the private data only if the
4152 input file has contents.
4154 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4156 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4158 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4159 enabling search for libmilli. On a relocatable link, make .text
4161 (LDEMUL_AFTER_PARSE): Define.
4162 (hppaelf_finish): Correct spelling of relocatable in comments.
4164 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4165 rummage through the script for sections on the unique list.
4166 Correct length of strncmp for ".note".
4167 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4169 * ldlang.c (unique_section_list): New var.
4170 (unique_section_p): New function.
4171 (walk_wild_section): Don't match sections on unique_section_list.
4172 (lang_add_unique): New function.
4173 Correct spelling of relocatable in comments.
4175 * ldlang.h (struct unique_sections): Declare.
4176 (unique_section_list): Declare.
4177 (unique_section_p): Declare.
4178 (lang_add_unique): Declare.
4180 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4181 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4183 * ld.texinfo (--unique): Update.
4185 2001-01-13 Nick Clifton <nickc@redhat.com>
4187 * lexsup.c (parse_args): Remove spurious white space.
4189 2001-01-12 Nick Clifton <nickc@redhat.com>
4191 * lexsup.c (parse_args): Update copyright date.
4193 2001-01-12 Philip Blundell <pb@futuretv.com>
4195 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4197 2001-01-10 Kazu Hirata <kazu@hxi.com>
4199 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4200 * scripttempl/h8300h.sc: Fix formatting.
4201 * scripttempl/h8300s.sc: Likewise.
4202 * scripttempl/h8500.sc: Likewise.
4203 * scripttempl/h8500b.sc: Likewise.
4204 * scripttempl/h8500c.sc: Likewise.
4205 * scripttempl/h8500m.sc: Likewise.
4206 * scripttempl/h8500s.sc: Likewise.
4208 2000-01-07 David O'Brien <obrien@BSDi.com>
4210 * emultempl/elf32.em: Only perform Linux ld hints processing when
4213 2001-01-07 Philip Blundell <philb@gnu.org>
4215 * ld.texinfo (Bug Reporting): Update email address for reports.
4217 2000-12-31 Nick Clifton <nickc@redhat.com>
4219 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4220 options by checking for a return value of '?' not -1.
4222 2000-12-28 Nick Clifton <nickc@redhat.com>
4224 * lexsup.c (struct ld_option): Add new enum value:
4226 (ld_options[]): Change -omagic, -output and -oformat options
4227 to be EXACTLY_TWO_DASHES.
4228 (OUTPUT_COUNT): Use ARRAY_SIZE.
4229 (parse_args): Change parameter 'argc' to unsigned.
4230 Place EXACTLY_TWO_DASHES options into new really_longopts
4232 If getopt_long_only fails, try calling getopt_long using the
4233 really_longopts array.
4234 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4237 * ldlex.h: Fix prototype of parse_args.
4239 * ld.texinfo: Document that long options starting with 'o'
4240 must be preceeded by two dashes. Change example of a single
4241 dashed long option from -oformat to -trace-symbol.
4243 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4245 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4246 (longopts[]): New --no-default-excludes option.
4247 (gld_${EMULATION_NAME}_list_options): Document.
4248 (gld_${EMULATION_NAME}_parse_args): Handle.
4250 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4252 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4253 whitespace, it breaks the K&R C preprocessor.
4255 2000-12-11 DJ Delorie <dj@redhat.com>
4257 * ld.texinfo: Add notes about --whole-archive and gcc.
4259 2000-11-18 Fred Fish <fnf@be.com>
4261 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4262 (ld_options): Entry for --allow-shlib-undefined.
4263 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4264 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4266 * ld.texinfo: Document new command line switch.
4268 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4270 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4271 .fixup is actually read/write.
4272 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4273 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4274 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4276 2000-12-11 Jan Hubicka <jh@suse.cz>
4278 * NEWS: Add note about x86_64 architecture.
4280 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4282 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4283 Set DWARF2 sections to a VMA of zero.
4285 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4287 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4289 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4290 (sparc*-*-rtems*): Switched from a.out to ELF.
4292 2000-11-30 Jan Hubicka <jh@suse.cz>
4294 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4295 (eelf_x86_64.c): New.
4296 * Makefile.in: Regenerate.
4297 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4298 * emulparams/elf_x86_64.sh: New.
4300 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4302 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4303 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4305 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4306 merging non-a.out sections into CONSTRUCTING.
4308 2000-11-28 Nick Clifton <nickc@redhat.com>
4310 * ld.1 (COPYING): Mention that the GNU Free Documentation
4311 License is present in the sources, but not the output, and
4312 also available from the GNU website.
4313 (GNU Free Documentation License): Comment out this section.
4315 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4317 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4320 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4322 * ld.1: Remove old date so it does not give the impression the manpage
4325 2000-11-24 Nick Clifton <nickc@redhat.com>
4327 * configure.tgt (xscale-coff): Add target.
4328 (xscale-elf): Add target.
4330 2000-11-24 Fred Fish <fnf@be.com>
4332 * ldmain.c (main): Remove redundant init of config.make_executable
4335 2000-11-15 Richard Henderson <rth@redhat.com>
4337 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4339 2000-11-14 Kazu Hirata <kazu@hxi.com>
4341 * scripttempl/h8300.sc: Fix formatting.
4342 * scripttempl/h8300h.sc: Likewise.
4343 * scripttempl/h8300s.sc: Likewise.
4345 2000-11-14 Denis Chertykov <denisc@overta.ru>
4347 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4349 2000-11-09 Philip Blundell <pb@futuretv.com>
4351 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4352 around orphan sections whose names can be represented in C.
4354 2000-11-07 Jim Wilson <wilson@redhat.com>
4356 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4357 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4359 2000-11-06 Nick Clifton <nickc@redhat.com>
4361 * ld.texinfo: Add GNU Free Documentation License.
4362 * ldint.texinfo: Add GNU Free Documentation License.
4363 * ld.1: Add GNU Free Documentation License.
4365 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4367 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4368 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4370 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4371 Move 2000-11-02 Makefile.in changes to this file.
4372 * Makefile.in: Regenerate.
4374 2000-11-03 Nick Clifton <nickc@redhat.com>
4376 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4377 constructors and destructors.
4378 * scripttempl/h8300h.sc: Ditto.
4379 * scripttempl/h8300s.sc: Ditto.
4380 * scripttempl/h8500.sc: Ditto.
4381 * scripttempl/h8500b.sc: Ditto.
4382 * scripttempl/h8500c.sc: Ditto.
4383 * scripttempl/h8500m.sc: Ditto.
4384 * scripttempl/h8500s.sc: Ditto.
4385 * scripttempl/v850.sc: Ditto.
4386 * scripttempl/w65.sc: Ditto.
4387 * scripttempl/z8000.sc: Ditto.
4389 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4391 * Makefile.in (e_i386_chaos.c): New rule.
4392 (ALL_EMULATIONS): Added e_i386_chaos.o.
4393 * emulparams/elf_i386_chaos.sh: New file.
4394 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4396 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4398 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4399 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4400 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4401 library path suffix.
4402 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4404 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4406 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4407 for consecutive sections.
4409 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4411 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4413 * ld.texinfo: Added notes about this new option.
4415 2000-10-16 Nick Clifton <nickc@redhat.com>
4417 * emultempl/pe.em (_after_open): Add tests of return values from
4418 bfd functions. Emit appropriate error messages if necessary.
4420 2000-10-13 Nick Clifton <nickc@redhat.com>
4422 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4423 local variables - they are not used, but leave in the call to
4424 bfd_canonicalize_symtab.
4425 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4426 pe_dll_search_prefix.
4428 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4430 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4431 (longopts): New --dll-search-prefix option.
4432 (gld_${EMULATION_NAME}_list_options): Document.
4433 (gld_${EMULATION_NAME}_parse_args): Handle.
4434 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4435 dynamically, search for a dll named '<prefix><basename>.dll'
4436 in preference to 'lib<basename>.dll' if --dll-search-prefix
4439 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4441 * ldlang.c (section_already_linked): Set kept_section instead of
4444 2000-10-10 Kazu Hirata <kazu@hxi.com>
4446 * deffile.h: Fix formatting.
4447 * lexsup.c: Likewise.
4450 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4452 * pe-dll.c (make_one): Do not generate code thunk for DATA
4454 (process_def_file): deduce DATA flag for auto-export sumbols.
4456 2000-10-09 Kazu Hirata <kazu@hxi.com>
4458 * ld.h: Fix formatting.
4459 * ldcref.c: Likewise.
4460 * ldctor.h: Likewise.
4461 * ldemul.c: Likewise.
4462 * ldemul.h: Likewise.
4463 * ldexp.c: Likewise.
4464 * ldexp.h: Likewise.
4465 * ldfile.c: Likewise.
4466 * ldfile.h: Likewise.
4467 * ldlang.c: Likewise.
4468 * ldlang.h: Likewise.
4469 * ldmain.c: Likewise.
4470 * pe-dll.c: Likewise.
4472 * pe-dll.c: Revert some formatting fixes.
4474 2000-10-08 Kazu Hirata <kazu@hxi.com>
4476 * pe-dll.c: Fix formatting.
4478 2000-10-05 Kazu Hirata <kazu@hxi.com>
4480 * ldlang.c: Fix formatting.
4482 2000-10-03 DJ Delorie <dj@redhat.com>
4484 * pe-dll.c (fill_edata): initialize entire block
4485 (make_one): fill in correct section.
4487 2000-10-03 Kazu Hirata <kazu@hxi.com>
4489 * ldexp.c: Fix formatting.
4491 2000-10-02 DJ Delorie <dj@redhat.com>
4493 * emultempl/pe.em (gld_*_after_open): detect case where there two
4494 import libraries for same dll; rename one to ensure proper link
4497 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4499 (generate_edata): fix typo
4501 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4503 * scripttempl/crisaout.sc (ENTRY): Now __start.
4504 (.text): Add default setting for __start.
4505 Remove CONSTRUCTORS handling.
4506 (/DISCARD/): Add .gnu.warning.*.
4507 * emulparams/crislinux.sh (ENTRY): Now __start.
4508 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4509 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4510 (ENTRY): Now __start.
4511 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4512 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4514 2000-09-29 Kazu Hirata <kazu@hxi.com>
4516 * deffile.h: Fix formatting.
4518 * ldcref.c: Likewise.
4519 * ldctor.c: Likewise.
4520 * ldctor.h: Likewise.
4521 * ldemul.c: Likewise.
4522 * ldemul.h: Likewise.
4523 * ldexp.c: Likewise.
4524 * ldexp.h: Likewise.
4525 * ldfile.c: Likewise.
4526 * ldfile.h: Likewise.
4527 * ldlang.c: Likewise.
4528 * ldlang.h: Likewise.
4529 * lexsup.c: Likewise.
4531 * pe-dll.c: Likewise.
4533 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4535 * pe-dll.c (process_def_file): Uninitialized data wasn't
4536 exported with --export-all-symbols switch.
4538 2000-09-28 DJ Delorie <dj@redhat.com>
4540 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4541 noname work properly.
4543 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4545 * ld.texinfo (HPPA ELF32): New section.
4547 * emultempl/hppaelf.em (group_size): New.
4548 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4549 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4550 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4551 options to prevent abbreviations matching.
4552 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4553 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4555 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4557 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4558 on the m68*-*-elf target. Make it support COFF input objects.
4560 2000-09-21 Kazu Hirata <kazu@hxi.com>
4562 * ldmain.c: Fix formatting.
4563 * ldmisc.c: Likewise.
4564 * ldver.c: Likewise.
4565 * ldwrite.c: Likewise.
4567 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4569 * ldwrite.c (clone_section): Silence gcc warnings.
4571 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4573 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4574 out of memory failure.
4576 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4577 (clone_section): Handle out of memory failures. Rename var to
4578 avoid c++ reserved word.
4580 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4582 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4583 stub_name param to stub_sec_name.
4584 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4586 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4588 * emultempl/m68kelf.em: New file.
4589 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4590 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4591 * Makefile.in: Regenerate.
4593 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4595 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4598 2000-09-13 Nick Clifton <nickc@redhat.com>
4600 * ldmain.c (multiple_definition): Disable relaxation if
4601 multiple symbol definitions are encountered - otherwise the
4602 linker could abort with an assertion failure.
4604 2000-09-10 Nick Clifton <nickc@redhat.com>
4606 * mri.c: Fix formatting.
4608 2000-09-07 H.J. Lu <hjl@gnu.org>
4610 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4611 * configure: Rebuild.
4613 2000-09-07 H.J. Lu <hjl@gnu.org>
4615 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4616 * Makefile.in: Rebuild.
4618 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4620 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4621 broken list handling. Create __start_SECNAME and __stop_SECNAME
4622 when no place-holder. Add some comments. Test both SEC_CODE and
4623 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4624 Handle case where no output section statement created.
4626 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4628 * configure.tgt (sh-*-linux*): Added.
4629 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4630 * Makefile.in: Rebuilt.
4631 * emulparams/shelf_linux.sh: New file.
4632 * emulparams/shlelf_linux.sh: New file.
4634 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4636 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4637 try shuffling sections when the orphan happens to be the place
4638 holder. Keep count of unique section names generated so we speed
4639 the search for a new name.
4641 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4643 * configure: Rebuilt with new libtool.m4.
4645 2000-09-05 Nick Clifton <nickc@redhat.com>
4647 * Makefile.in: Regenerate.
4648 * aclocal.m4: Regenerate.
4649 * configure: Regenerate.
4650 * config.in: Regenerate.
4651 * po/ld.pot: Regenerate.
4653 * ldint.texinfo: Remove CVS revision marker - it foils local
4656 * emultempl/ticoff.em: Remove extraneous comma.
4658 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4660 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4661 to stub section flags.
4662 (hppa_for_each_input_file_wrapper): New.
4663 (hppa_lang_for_each_input_file): New.
4664 (lang_for_each_input_file): Define to call above.
4665 (multi_subspace): New.
4666 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4667 (PARSE_AND_LIST_PROLOGUE): Define.
4668 (PARSE_AND_LIST_LONGOPTS): Define.
4669 (PARSE_AND_LIST_OPTIONS): Define.
4670 (PARSE_AND_LIST_ARGS_CASES): Define.
4671 (hppaelf_finish): Call elf32_hppa_set_gp.
4672 (hppaelf_set_output_arch): Remove.
4673 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4675 * emulparams/hppalinux.sh (ELFSIZE): Define.
4677 (OTHER_READONLY_SECTIONS): Define.
4679 (GENERATE_SHLIB_SCRIPT): Define.
4681 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4682 to const throughout. Change `void *' to `PTR' throughout.
4683 (lang_memory_default): Function is local to file, add `static'.
4685 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4686 (ehppalinux.c): Likewise.
4687 (earmelf.c): Likewise.
4688 (earmelf_linux.c): Likewise.
4689 (earmelf_linux26.c): Likewise.
4690 * Makefile.in: Regenerate.
4692 * ld.h (ld_config_type): Add unique_orphan_sections.
4693 * lexsup.c (OPTION_UNIQUE): Define.
4694 (ld_options): Add "--unique".
4695 (parse_args): Handle it.
4696 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4697 search for an existing output section if unique_orphan_sections is
4698 set. Make use of bfd_get_unique_section_name rather than
4699 duplicating code here.
4700 * ld.texinfo: Describe --unique.
4702 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4703 optional arg to split-by-file.
4704 (parse_args): Handle them.
4705 * ld.texinfo: Update description of these options.
4706 * ldwrite.c (clone_section): Pass in the section name. Replace
4707 local code with bfd_get_unique_section_name.
4708 (split_sections): Tidy code and comments. Use a list traversal
4709 more appropriate to the list construction. Handle cooked section
4710 sizes. Split when split_by_reloc reached rather than exceeded.
4711 Track section size and split when split_by_file reached. Fix
4712 link_order_tail (even though it's not used).
4713 (ldwrite): Modify condition for calling split_sections to suit
4714 changed split_by_reloc and split_by_file.
4715 * ldmain.c (main): Init config.split_by_reloc and
4716 config.split_by_file to -1.
4717 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4718 Change split_by_file to bfd_size_type.
4720 2000-09-02 Nick Clifton <nickc@redhat.com>
4722 * configure.in: Increase version number to 2.10.91.
4723 * NEWS: Mention new ability to support removal of duplicate DWARF2
4725 * configure: Regenerate.
4726 * aclocal.m4: Regenerate.
4727 * config.in: Regenerate.
4729 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4731 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4733 * scripttempl/elf32avr.sc: Ditto.
4734 * scripttempl/elfd10v.sc: Ditto.
4735 * scripttempl/elfd30v.sc: Ditto.
4736 * scripttempl/elfi370.sc: Ditto.
4737 * scripttempl/elfm68hc11.sc: Ditto.
4738 * scripttempl/elfm68hc12.sc: Ditto.
4739 * scripttempl/elfi386beos.sc: Ditto.
4740 * scripttempl/v850.sc: Ditto.
4742 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4744 * acinclude.m4: Include libtool and gettext macros from the
4746 * aclocal.m4, configure: Rebuilt.
4748 2000-08-25 Nick Clifton <nickc@redhat.com>
4750 * ldlang.c (open_output): When choosing the target for a
4751 particular endianness, do nothing if the target is not
4754 2000-08-25 H.J. Lu <hjl@gnu.org>
4756 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4757 check -rpath nor LD_RUN_PATH for cross link.
4758 * ld.texinfo: Document the change.
4760 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4762 * NEWS: Mention support for CRIS.
4764 2000-08-23 H.J. Lu <hjl@gnu.org>
4766 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4767 the current runpath list from bfd_elf_get_runpath_list ()
4770 2000-08-22 H.J. Lu <hjl@gnu.org>
4772 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4773 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4774 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4775 trace_file_tries is non-zero.
4776 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4777 if trace_file_tries is non-zero.
4779 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4782 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4784 * NEWS: Mention i860 support.
4786 2000-08-14 Andreas Schwab <schwab@suse.de>
4788 * scripttempl/elf.sc: Fix last change to use correct comment
4791 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4793 * scripttempl/elf.sc: Add a comment giving the correspondence
4794 between sections, per-datum sections, and linkonce sections. Make
4795 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4798 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4800 * emulparams/elf32_i860.sh: New file.
4801 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4802 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4803 (eelf32_i860.c): New rule.
4804 * Makefile.in: Regenerate.
4806 2000-08-10 Nick Clifton <nickc@cygnus.com>
4808 * emulparams/mipspe.sh (ENTRY): Add definition.
4810 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4812 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4815 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4817 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4818 the final size of .bss section.
4819 * scripttempl/elfm68hc12.sc: Likewise.
4821 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4823 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4824 gld${EMULATION_NAME}_parse_args for consistency. Combine
4825 lastoptind and prevoptind vars, and keep track of last optind.
4826 (gld_${EMULATION_NAME}_list_options): Rename to
4827 gld${EMULATION_NAME}_list_options.
4829 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4831 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4832 (i586-sco-sysv5uw7.1.0).
4834 2000-07-27 H.J. Lu <hjl@gnu.org>
4836 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4837 (PARSE_AND_LIST_PROLOGUE): New.
4838 (PARSE_AND_LIST_LONGOPTS): Likewise.
4839 (PARSE_AND_LIST_OPTIONS): Likewise.
4840 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4841 (PARSE_AND_LIST_EPILOGUE): Likewise.
4843 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4845 * emultempl/armelf.em: Elide functions common to elf32.em,
4846 ie. most of the file.
4847 (arm_elf_after_open): New. Do arm specific things then call
4848 gld${EMULATION_NAME}_after_open.
4849 (arm_elf_before_allocation): New. Call
4850 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4851 (PARSE_AND_LIST_PROLOGUE): Define.
4852 (PARSE_AND_LIST_SHORTOPTS): Define.
4853 (PARSE_AND_LIST_LONGOPTS): Define.
4854 (PARSE_AND_LIST_OPTIONS): Define.
4855 (PARSE_AND_LIST_ARGS_CASES): Define.
4856 (LDEMUL_AFTER_OPEN): Define.
4857 (LDEMUL_BEFORE_ALLOCATION): Define.
4858 (LDEMUL_BEFORE_PARSE): Define.
4859 (LDEMUL_FINISH): Define.
4861 * emultempl/hppaelf.em: Similarly zap most of this file.
4862 (hppaelf_add_stub_section): Prototype.
4863 (hppaelf_layaout_sections_again): Prototype.
4864 (hook_in_stub): Prototype.
4865 (LDEMUL_SET_OUTPUT_ARCH): Define.
4866 (LDEMUL_FINISH): Define.
4867 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4869 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4870 (EXTRA_EM_FILE): New.
4871 * emulparams/armelf_linux.sh: Likewise.
4872 * emulparams/armelf_linux26.sh: Likewise.
4873 * emulparams/hppalinux.sh: Likewise.
4874 * emulparams/hppaelf.sh: Likewise.
4877 * emultempl/elf32.em: Fix formatting.
4878 (EXTRA_EM_FILE): Source it.
4879 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4880 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4881 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4882 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4883 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4884 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4885 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4886 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4887 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4888 allow functions in this file to be overridden.
4889 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4891 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4893 * emultempl/elf32.em: Reorganize file.
4895 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4897 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4898 specific option to fit 64-bit executable in the lower
4899 31-bit address range. This is done by changing start
4900 address of .interp (the very first section of executable)
4901 and then setting EF_ALPHA_32BIT elf header flag.
4903 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4905 * emultempl/m68kcoff.em: New file.
4906 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4907 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4909 * Makefile.in: Regenerate.
4911 2000-07-20 H.J. Lu <hjl@gnu.org>
4913 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4914 and "disable-new-dtags" to stop getopt from treating -d/-e as
4915 abbreviations for these options.
4917 2000-07-20 H.J. Lu <hjl@gnu.org>
4919 * ld.texinfo: Add documentation for --disable-new-dtags and
4922 * ldmain.c (main): Initialize link_info.new_dtags to false.
4924 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4925 --disable-new-dtags and --enable-new-dtags.
4926 (gld_${EMULATION_NAME}_list_options): Likewise.
4928 2000-07-05 Kenneth Block <krblock@computer.org>
4930 * lexsup.c: Add optional style to demangle switch
4931 * ld.texinfo: Document optional style to demangle switch.
4933 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4935 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4937 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4938 Regenerate dependencies.
4939 * Makefile.in: Rebuild.
4940 * configure.tgt (cris-*-*): New target.
4941 * emulparams/crisaout.sh, emulparams/criself.sh,
4942 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4943 * po/POTFILES.in, po/ld.pot: Regenerate.
4945 2000-07-20 H.J. Lu <hjl@gnu.org>
4947 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4948 Print out ignored -z options.
4950 2000-07-19 H.J. Lu <hjl@gnu.org>
4952 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4953 (PARSE_AND_LIST_PROLOGUE): New.
4954 (PARSE_AND_LIST_LONGOPTS): Likewise.
4955 (PARSE_AND_LIST_OPTIONS): Likewise.
4956 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4958 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4960 * lexsup.c (ld_options): Comment out 'z'.
4961 (parse_args): Likewise.
4963 * emultempl/elf32.em: Include "elf/common.h".
4964 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4966 (gld_${EMULATION_NAME}_list_options): Likewise.
4968 * ld.texinfo: Add documentation for the recognized -z options.
4970 2000-07-19 H.J. Lu <hjl@gnu.org>
4972 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4973 bfd_elf_set_dt_needed_soname ().
4975 2000-07-18 DJ Delorie <dj@cygnus.com>
4977 * pe-dll.c (pe_dll_id_target): check object target name also
4979 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4981 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4982 ${INIT_END} if relocating.
4983 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4985 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4987 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4988 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4989 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4990 errors introduced by the old dynamic lib search order.
4992 2000-07-17 DJ Delorie <dj@cygnus.com>
4994 * pe-dll.c (process_def_file): auto-export data items also
4995 (pe_process_import_defs): also see if _imp_ form needed
4997 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4999 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5000 for dll import libraries
5002 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5004 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5005 gcc 2.95.2 and later.
5007 2000-07-11 Kazu Hirata <kazu@hxi.com>
5009 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5012 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5014 * ldemul.h (struct lang_input_statement_struct): Remove forward
5016 (struct search_dirs): Likewise.
5017 * ldfile.h (struct lang_input_statement_struct): Likewise.
5018 Protect file from multiple inclusion.
5019 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5020 declaration from macro to file scope.
5022 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5023 * ldgram.y: Likewise here.
5024 * ldlang.c: And here.
5025 * ldmain.c: And here.
5026 * mpw-elfmips.c: And here.
5027 * mpw-eppcmac.c: And here.
5028 * emultempl/aix.em: And here.
5029 * emultempl/armcoff.em: And here.
5030 * emultempl/armelf.em: And here.
5031 * emultempl/armelf_oabi.em: And here.
5032 * emultempl/beos.em: And here.
5033 * emultempl/elf32.em: And here.
5034 * emultempl/hppaelf.em: And here.
5035 * emultempl/linux.em: And here.
5036 * emultempl/lnk960.em: And here.
5037 * emultempl/pe.em: And here.
5038 * emultempl/sunos.em: And here.
5039 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5040 * mpw-idtmips.c: Ditto.
5041 * emultempl/generic.em: Ditto.
5042 * emultempl/gld960.em: Ditto.
5043 * emultempl/gld960c.em: Ditto.
5044 * emultempl/mipsecoff.em: Ditto.
5045 * emultempl/ticoff.em: Ditto.
5046 * emultempl/vanilla.em: Ditto.
5048 * pe-dll.c: Include ldfile.h
5049 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5051 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5052 arguments to bfd_elf32_size_dynamic_sections call.
5053 (gldelf32ebmip_place_orphan): Add missing arguments to
5054 lang_leave_output_section_statement call.
5056 2000-07-10 H.J. Lu <hjl@gnu.org>
5058 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5060 (strhash): Likewise.
5061 (compute_dll_image_base): Likewise.
5062 (pe_undef_found_sym): Likewise.
5063 (pe_undef_cdecl_match): Likewise.
5064 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5065 argument "arch" with ATTRIBUTE_UNUSED.
5067 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5069 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5071 From Ryan Bradetich <rbradetich@uswest.net>
5072 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5074 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5076 Changes to create multiple linker stubs, positioned immediately
5077 before the section where they are required.
5078 * emultempl/hppaelf.em: Include elf32-hppa.h.
5079 (stub_sec, file_chain): Delete.
5080 (hppaelf_create_output_section_statements): Don't make a stub
5082 (hook_stub_info): New struct.
5083 (hook_in_stub): New function.
5084 (hppaelf_add_stub_section): New function.
5085 (hppaelf_finish): Do nothing for relocateable links. Modify the
5086 call to elf32_hppa_size_stubs. Move code for updating section
5088 (hppaelf_layaout_sections_again): ..to here, a new function.
5090 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5091 broken list handling. Pass in a pointer to the list.
5092 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5094 (hppaelf_before_parse): Prototype.
5095 (hppaelf_set_output_arch): Prototype.
5096 (hppaelf_create_output_section_statements): Prototype.
5097 (hppaelf_delete_padding_statements): Prototype.
5098 (hppaelf_finish): Prototype.
5101 * emultempl/hppaelf.em: Include ctype.h.
5102 (struct orphan_save): New.
5103 (gld${EMULATION_NAME}_place_orphan): New.
5104 (output_rel_find): New.
5105 (hppaelf_get_script): Update from elf32.em.
5106 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5107 Change emulation_name field to "${EMULATION_NAME}". Add
5108 gld${EMULATION_NAME}_place_orphan.
5110 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5111 ehppalinux.o, sort it. Regenerate dependencies.
5112 (ehppalinux.c): Depend on hppaelf.em
5113 * Makefile.in: Regenerate.
5115 * configure.tgt: targ_emul=hppalinux for hppa*linux
5117 * emulparams/hppalinux.sh: New.
5118 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5120 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5122 * lexsup.c (parse_args): Copy section name.
5124 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5126 * emultempl/pe.em: institute the following search order for
5127 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5128 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5129 static lib (libfoo.a) if none of the above are found.
5131 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5133 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5134 (longopts): New --{enable,disable}-auto-image-base options.
5135 (gld_${EMULATION_NAME}_list_options): Document.
5136 (gld_${EMULATION_NAME}_parse): Handle.
5137 (strhash): New static function.
5138 (compute_dll_image_base): New static function.
5139 (gld_${EMULATION_NAME}_set_symbols): Use.
5141 2000-07-05 DJ Delorie <dj@redhat.com>
5145 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5147 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5148 * emulparams/elf32btsmip.sh: New file.
5149 * Makefile.am: Add traditional mips target.
5150 * Makefile.in: Rebuild.
5152 2000-07-01 H.J. Lu <hjl@gnu.org>
5154 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5155 automake to use YLWRAP.
5156 * Makefile.in: Rebuild.
5158 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5160 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5161 (CLEANFILES): Add DEPA.
5162 * Makefile.in: Regenerate.
5164 2000-06-30 Timothy Wall <twall@ppc>
5166 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5167 the page in the upper octet of the address.
5169 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5171 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5173 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5175 * NEWS: arm-elf does --gc-sections too.
5177 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5179 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5181 * Makefile.in: Regenerate.
5183 2000-06-21 H.J. Lu <hjl@gnu.org>
5185 * Makefile.am: Rebuild dependency.
5186 * Makefile.in: Rebuild.
5188 2000-06-20 H.J. Lu <hjl@gnu.org>
5190 * Makefile.am: Rebuild dependency.
5191 * Makefile.in: Rebuild.
5193 2000-06-20 Timothy Wall <twall@cygnus.com>
5195 * scripttempl/tic54xcoff.sc: New.
5196 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5197 * gen-doc.texi: Add flag for TI COFF.
5198 * ld.texinfo: Add documentation for TI COFF handling switches.
5199 * emultempl/ticoff.em: New. TI COFF handling.
5200 * configure.tgt: Add tic54x target.
5201 * Makefile.am: Add tic54x target.
5202 * Makefile.in: Ditto.
5204 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5206 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5207 checking for backslashes.
5209 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5211 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5213 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5215 * NEWS: Update list of targets supporting --gc-sections.
5217 * scripttempl/elf.sc: KEEP .eh_frame contents.
5218 * scripttempl/elfd30v.sc: Same here.
5220 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5222 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5224 * Makefile.in: Rebuild.
5225 * configure.tgt: Recognize m68hc12 and m68hc11.
5226 * scripttempl/elfm68hc12.sc: New file.
5227 * emulparams/m68hc12elfb: New emulation.
5228 * emulparams/m68hc12elf: New emulation.
5229 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5230 (includes a memory.x script to define the ROM and RAM banks).
5231 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5232 New configuration files for support of Motorola 68hc11
5234 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5236 * ldmain.c (main): Only change SEC_READONLY for final link.
5238 2000-06-13 H.J. Lu <hjl@gnu.org>
5240 * configure: Regenerate.
5242 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5244 * configure.in (VERSION): Update to show this is the CVS mainline.
5246 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5248 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5249 input objects to be ECOFF.
5250 (check_sections): einfo takes %B, not %P, to print a BFD name.
5252 2000-06-05 Michael Matz <matz@ifh.de>
5254 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5257 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5259 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5261 * emulparams/avr1200.sh (STACK): Define as 0.
5262 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5263 * emulparams/avr4433.sh (STACK): Likewise.
5264 * emulparams/avr44x4.sh (STACK): Likewise.
5265 * emulparams/avr85xx.sh (STACK): Likewise.
5266 * emulparams/avrmega103.sh (STACK): Likewise.
5267 * emulparams/avrmega161.sh (STACK): Likewise.
5268 * emulparams/avrmega603.sh (STACK): Likewise.
5269 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5270 (__stack): Define from ${STACK} for main().
5272 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5274 * Makefile.am: Update dependencies with "make dep-am"
5275 * Makefile.in: Regenerate.
5277 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5279 * ldmain.c: Include filenames.h.
5280 (set_scripts_dir): Support backslashes in program name.
5282 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5284 * ldmain.c (main): When deciding if ".text" section should be
5285 read-only, don't forget to reset SEC_READONLY because it
5286 could be already set.
5288 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5290 * ld.1: Add documentation for new command line option:
5291 --section-start <sectionname>=<sectionorg>
5292 This is a generic version of -Ttext etc. which accepts
5293 any section name as a parameter instead of just text/data/
5295 * ld.texinfo: More docs.
5297 * lexsup.c: (parse_args): Recognize new command line option.
5298 (ld_options): Add new option.
5300 2000-05-18 H.J. Lu <hjl@gnu.org>
5302 * lexsup.c (parse_args): `i' == `r', not `q'.
5304 2000-05-18 Jeffrey A Law (law@cygnus.com)
5306 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5308 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5309 Rick Gorton <gorton@scrugs.lkg.dec.com>
5311 Add support for '-q' == '--emit-relocs' switch.
5312 * ldmain.c (main): Default to false.
5313 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5314 * NEWS: Describe the emitrelocations switch.
5315 * ld.texinfo: Describe the emitrelocations switch.
5317 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5319 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5320 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5321 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5324 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5326 * lexsup.c (parse_args): Update the year in the copyright notice.
5328 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5330 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5331 Replace defines with those from intl/libgettext.h to quieten gcc
5334 2000-05-10 H.J. Lu <hjl@gnu.org>
5336 * ldlang.c (open_input_bfds): Don't load the same file within
5337 a group again if the whole archive has been loaded already.
5339 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5341 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5342 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5345 2000-05-01 Jim Wilson <wilson@cygnus.com>
5347 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5349 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5350 host "ia64-*-linux-gnu*".
5352 2000-04-29 Andreas Jaeger <aj@suse.de>
5354 * ld.h: Correctly check GCC version.
5356 2000-04-25 Jeffrey A Law (law@cygnus.com)
5358 * Makefile.am: Add PA64 support. Add missing dependencies for
5360 * Makefile.in: Rebuilt.
5361 * configure.tgt: Add PA64 support (currently disabled).
5363 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5365 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5366 (output_rel_find): New function.
5367 (hold_section, hold_use): Delete.
5368 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5369 hold_interp): Make local to place_orphan.
5370 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5371 rather than place_section to find possible previous use of orphan.
5372 Similarly find the place-holder output sections. Use returned
5373 value from lang_enter_output_section_statement rather than calling
5374 lang_output_section_statement_lookup.
5375 * emultempl/armelf.em: Same here.
5376 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5378 * ldlang.c (lang_enter_output_section_statement): Return output
5380 * ldlang.h (lang_enter_output_section_statement): Change
5383 * ldlang.h (lang_output_section_statement): Export it.
5384 * ldlang.c (lang_output_section_statement): Ditto.
5386 2000-04-24 Nick Clifton <nickc@cygnus.com>
5388 * ld.texinfo (Output Section Data): Add note that section data
5389 commands cannot appear outside of section directives.
5391 2000-04-2 Matthew Green <mrg@cygnus.com>
5393 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5395 2000-04-21 Richard Henderson <rth@cygnus.com>
5396 David Mosberger <davidm@hpl.hp.com>
5398 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5399 (eelf64_ia64.c): New rule.
5400 * Makefile.in: Rebuild.
5401 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5402 * emulparams/elf64_ia64.sh: New file.
5404 2000-04-21 Richard Henderson <rth@cygnus.com>
5406 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5408 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5410 * dep-in.sed: Match space at start of file name, not at end.
5412 2000-04-18 H.J. Lu <hjl@gnu.org>
5414 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5415 lang_leave_output_section_statement () after calling
5416 lang_enter_output_section_statement ().
5417 * emultempl/armelf.em: Likewise.
5419 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5421 * emultempl/elf32.em (struct orphan_save): Add section field.
5422 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5423 better order, and place first orphan section as we did before the
5424 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5425 Don't call make_bfd_section here, let wild_doit do the job for us.
5426 Don't build a statement list when we'll only throw it away.
5427 * emultempl/armelf.em: Ditto.
5428 * emultempl/pe.em: Similarly.
5430 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5432 * scripttempl/elfppc.sc: Remove.
5433 * emulparams/elf32ppc.sh: Use elf.sc.
5434 * emulparams/elf32lppc.sh: Use elf.sc.
5435 * emulparams/elf32ppclinux.sh: Use elf.sc.
5436 * emulparams/elf32ppcsim.sh: New file.
5437 * emulparams/elf32lppcsim.sh: New file.
5438 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5439 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5440 * Makefile.in: Regenerate.
5441 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5443 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5445 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5446 ~SEC_ALLOC sections too. Init start address of debug sections.
5447 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5448 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5449 Also set all relocateable section start addresses.
5451 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5453 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5454 Add new BSS_PLT variable for when .plt need not be contained in
5455 the file. Move _etext so that it is also after .fini, and provide
5456 both etext and _etext with a leading underscore. Mark the start
5459 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5461 * emultempl/elf32.em (struct orphan_save): New.
5462 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5463 hold_interp): Make them struct orphan_save.
5464 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5465 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5466 the end of the relevant section list. Also add associated section
5467 statements to the end of any previous orphan statements.
5468 * emultempl/armelf.em: Similarly.
5469 * emultempl/pe.em: Similarly.
5471 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5473 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5475 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5477 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5478 --enable-build-warnings option.
5479 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5480 * Makefile.in, configure: Re-generate.
5482 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5484 * po/ld.pot: Regenerate.
5486 * lexsup.c (help): Restore translated part of bug string.
5488 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5489 (DEP): Quote when passing vars to sub-make. Add warning message
5491 (DEP1): Rewrite for "gcc -MM".
5492 (CLEANFILES): Add DEP2.
5493 Update dependencies.
5494 * Makefile.in: Regenerate.
5496 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5498 * ld.h: #include "bin-bugs.h"
5499 * lexsup.c (help): Use REPORT_BUGS_TO.
5501 2000-03-27 Denis Chertykov <denisc@overta.ru>
5503 * configure.tgt (avr-*-*): New target support.
5504 * Makefile.am: Likewise.
5505 * scripttempl/elf32avr.sc: New script file.
5506 * emulparams/avr1200.sh: New file.
5507 * emulparams/avr23xx.sh: New file.
5508 * emulparams/avr4433.sh New file.
5509 * emulparams/avr44x4.sh New file.
5510 * emulparams/avr85xx.sh New file.
5511 * emulparams/avrmega103.sh New file.
5512 * emulparams/avrmega161.sh New file.
5513 * emulparams/avrmega603.sh New file.
5514 * Makefile.in: Regenerate.
5516 2000-03-09 Andreas Jaeger <aj@suse.de>
5518 * Makefile.am (check-DEJAGNU): Also unset LANG.
5519 * Makefile.in: Rebuild.
5521 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5523 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5526 2000-03-02 H.J. Lu <hjl@gnu.org>
5528 * emulparams/elf32mcore.sh: Include "getopt.h".
5530 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5532 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5534 2000-03-01 H.J. Lu <hjl@gnu.org>
5536 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5537 * emulparams/shpe.sh: Likewise.
5539 2000-03-01 Nick Clifton <nickc@cygnus.com>
5541 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5542 to unused parameters.
5544 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5545 functions only used by DLL code.
5546 (_place_orphan): Initialise 'dollar'.
5548 2000-03-01 H.J. Lu <hjl@gnu.org>
5550 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5551 indicate if the undefined symbol is a fatal error or not.
5552 Don't delete the output file if "fatal" is false.
5554 2000-02-29 H.J. Lu <hjl@gnu.org>
5556 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5557 Set LC_COLLATE and LC_ALL to null and export them. It is for
5558 sort which expects the C locale.
5559 Add $(LIBS) to all $(HOSTING_LIBS).
5560 * Makefile.in: Rebuild.
5562 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5564 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5565 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5566 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5567 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5568 find_potential_libraries.
5570 2000-02-28 Jim Blandy <jimb@redhat.com>
5572 * ldgram.y (exclude_name_list): Don't require a comma to separate
5573 list entries; the lexer considers commas to be valid part of a
5574 filename, so in something like `foo, bar' the comma is considered
5575 part of the first filename, `foo,'.
5576 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5578 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5580 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5581 host "i[3456]86-*-freebsdelf*".
5583 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5585 * scripttempl/i386go32.sc: Move misplaced semicolons.
5587 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5589 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5590 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5591 (eelf64hppa.c, ehppaelf.c): Remove targets.
5592 * Makefile.in: Rebuild.
5594 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5596 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5597 GNU/Linux/sparc, but keep the default as 32.
5599 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5600 it default if sparcv9 or sparc64.
5602 2000-02-24 Nick Clifton <nickc@cygnus.com>
5604 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5605 * Makefile.in: Regenerate.
5606 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5608 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5609 find_potential_libraries.
5610 * ldemul.c (ldemul_find_potential_libraries): New function.
5612 * ldfile.c (ldfile_open_file_search): Allow function to be
5614 (ldfile_open_file): Call ldemul_find_potential_libraries.
5615 * ldfile.h: Add prototype for ldfile_open_file_search.
5617 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5619 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5620 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5622 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5623 (gld_X_find_potential_libraries): New function. Search for
5624 libraries called "*.lib".
5626 * scripttempl/pe.sc: Add .pdata section.
5628 2000-02-23 Richard Henderson <rth@cygnus.com>
5630 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5631 Add and use memory regions.
5633 2000-02-23 Linas Vepstas (linas@linas.org)
5635 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5637 * Makefile.am: Add support for Linux/IBM 370.
5638 * configure.tgt: Likewise.
5640 * Makefile.in: Regenerate.
5642 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5644 * ldlang.c (print_input_section, print_data_statement,
5645 print_reloc_statement, print_padding_statement, insert_pad,
5646 size_input_section, lang_check_section_addresses,
5647 lang_size_sections, lang_do_assignments, lang_set_startof,
5648 lang_one_common): Change `opb' to unsigned.
5649 (lang_do_assignments): Also change `size' to unsigned.
5651 2000-02-16 Richard Henderson <rth@cygnus.com>
5653 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5655 2000-02-16 Timothy Wall <twall@cygnus.com>
5657 * mri.c (mri_draw_tree): Add default LMA region argument to call
5658 to lang_leave_output_section_statement.
5659 * ldlang.h: Update prototypes with LMA region arguments.
5660 * ldlang.c (lang_size_sections): Encapsulate region bounds
5661 checking in os_check_region call.
5662 (os_check_region): New function.
5663 (lang_output_section_statement_lookup): Initialize lma_region.
5664 (lang_leave_output_section_statement): Add LMA region argument.
5665 (lang_leave_overlay): Ditto.
5666 * ldgram.y: Handle LMA region syntax.
5667 * ld.texinfo (Output Section Description): Describe LMA region usage.
5668 * emultempl/armelf.em (gld$place_orphan): Add default value for
5669 lma region in call to lang_leave_output_section_statement.
5670 * emultempl/elf32.em (gld$place_orphan): Add default value for
5671 lma region in call to lang_leave_output_section_statement.
5672 * emultempl/pe.em (gld$place_orphan): Add default value for
5673 lma region in call to lang_leave_output_section_statement.
5676 2000-02-04 Timothy Wall <twall@redhat.com>
5678 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5679 octets when calculating section end addresses.
5681 2000-02-04 Timothy Wall <twall@redhat.com>
5683 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5685 2000-02-03 Timothy Wall <twall@redhat.com>
5687 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5689 * ldlang.c (print_input_section, print_data_statement,
5690 print_reloc_statement, print_padding_statement): Print target
5691 address values and section sizes as bytes, not octets.
5692 (insert_pad) Calculate padding size in octets, and adjust "dot"
5694 (size_input_section) Always adjust "dot" by bytes, not octets.
5695 (lang_check_section_addresses, lang_do_assignments) Adjust
5696 "dot" by bytes, not octets. Use the larger of the directive size
5697 or octets_per_byte for the number of octets actually allocated in
5699 (lang_set_startof) Make sure STARTOF returns a target address.
5700 (lang_one_common) Record size changes in octets.
5701 (lang_abs_symbol_at_end_of) Section end symbol's value is
5702 recorded in target bytes.
5703 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5704 to be clear about behavior when an octet is smaller than one byte.
5706 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5708 * ldcref.c (output_cref): Don't pass message strings to printf
5712 * ldmisc.c (vfinfo): Same here.
5715 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5717 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5718 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5719 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5720 Add missing NULL initialisers, and comments.
5722 2000-01-21 Nick Clifton <nickc@cygnus.com>
5724 * ldlang.c (lang_size_sections): Fix typo in comment.
5726 2000-01-18 H.J. Lu <hjl@gnu.org>
5728 * ldlang.c (lang_size_sections): Also update the current
5729 address of a region if the SEC_NEVER_LOAD bit is not set.
5731 2000-01-10 Philip Blundell <pb@futuretv.com>
5733 * configure.tgt (arm*-*-conix*): New target.
5735 2000-01-07 Nick Clifton <nickc@cygnus.com>
5737 * ld.texinfo (Options): Remind users to preceed linker command
5738 line switches with -Wl, (or whatever is appropriate) if it is
5739 being invoked by a comnpiler driver program.
5740 Fix description of the behaviour of the -n command line switch.
5742 2000-01-05 Catherine Moore <clm@cygnus.com>
5744 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5746 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5747 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5748 (exclude_name_list): New.
5749 ldlang.c (walk_wild_section): Support list of excluded files.
5750 (print_wild_statement): Likewise.
5751 (lang_add_wild): Likewise.
5752 * ldlang.h (lang_wild_statement_type): Likewise.
5753 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5755 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5757 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5758 (process_def_file): Use.
5759 (pe_dll_compat_implib): New variable.
5762 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5763 pe_dll_compat_implib.
5765 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5766 compat-implib options.
5767 (gld_${EMULATION_NAME}_list_options): List new options.
5768 (gld_${EMULATION_NAME}_parse_args): Handle.
5770 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5773 * deffilep.y (opt_name): Allow "." in name.
5775 For older changes see ChangeLog-9899
5781 version-control: never