1 2003-05-02 Nick Clifton <nickc@redhat.com>
3 * ldlang.c (lang_size_sections_1): Default to generating a
4 fatal error message if a loadable section is not allocated
5 to a memory region when regions are defined.
7 2003-05-09 Alan Modra <amodra@bigpond.net.au>
9 * Makefile.am (em68hc11elf.c): Correct dependencies.
10 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
11 * Makefile.in: Regenerate.
12 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
13 bfd_elf_record_link_assignment name.
15 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
17 * ldmain.h (overflow_cutoff_limit): Declare.
18 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
19 (reloc_overflow): Limit error messages based on it.
20 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
23 2003-05-05 Alan Modra <amodra@bigpond.net.au>
25 * ldlex.l: Accept C style comments in version scripts.
27 2003-04-28 H.J. Lu <hjl@gnu.org>
29 * ldlang.c (lang_process): Add the relax finalize pass.
31 * ldmain.c (main): Initialize link_info.relax_finalizing to
34 2003-04-24 Roland McGrath <roland@redhat.com>
36 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
37 If a name string is unknown, give an error rather than crashing later.
39 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
41 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
42 eh8300hnelf.o, eh8300snelf.o and respective rules.
43 * Makefile.in: Regenerate.
44 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
45 * emulparams/h8300hn.sh: New
46 * emulparams/h8300sn.sh: New
47 * emulparams/h8300hnelf.sh: New
48 * emulparams/h8300snelf.sh: New
49 * scripttempl/h8300hn.sc: new
50 * scripttempl/h8300sn.sc: new
52 2003-04-23 H.J. Lu <hjl@gnu.org>
54 * ldmain.c (link_callbacks): Initialize error_handler.
56 * ldmisc.c (error_handler): New function.
58 * ldmisc.h (error_handler): New prototype.
60 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
62 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
63 * emulparams/m68hc11elfb.sh: Likewise.
64 * emulparams/m68hc12elf.sh: Likewise.
65 * emulparams/m68hc12elfb.sh: Likewise.
67 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
69 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
71 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
73 (LDEMUL_FINISH): Override to generate the trampolines after gc and
75 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
76 stub file for trampolines.
77 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
78 --no-trampoline and --bank-window to control the memory bank window.
80 2003-04-18 H.J. Lu <hjl@gnu.org>
82 * ldfile.c (ldfile_add_library_path): Remove the unused
85 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
87 * scripttempl/xstormy16.sc (__data, __rdata): New.
89 2003-04-16 Nick Clifton <nickc@redhat.com>
91 * scripttempl/xstormy16.sc: Add .jcr section mapping.
93 2003-04-15 H.J. Lu <hjl@gnu.org>
95 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
97 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
99 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
101 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
102 * ld.texinfo: Likewise.
104 2003-04-14 Alan Modra <amodra@bigpond.net.au>
106 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
107 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
108 other variants of crtbegin.o, crtend.o.
110 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
111 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
112 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
113 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
114 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
115 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
116 * scripttempl/mmo.sc (ctors, dtors): Likewise.
117 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
119 2003-04-09 Dmitry Diky <diwil@mail.ru>
121 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
122 sections to respect C++ constructor/destructor. Add ctors/dtors
123 start/stop definitions.
124 * scripttempl/elf32msp430_3.sc: Likewise.
126 2003-04-06 Nick Clifton <nickc@redhat.com>
128 * ld.texinfo (Options): Add a reminder of the target specific
129 nature to the description of the i386 PE specific options, for
130 readers who have not read all the way through the manual.
132 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
134 * configure.tgt: Fixed bug in list of targ_extra_emuls.
135 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
136 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
137 * emulparams/tic3xcoff_onchip.sh: Ditto
138 * emulparams/tic4xcoff.sh: Ditto
139 * scripttempl/tic4xcoff.sc: Ditto
141 2003-04-03 Nick Clifton <nickc@redhat.com>
143 * NEWS: Mention support for Xtensa architecture.
145 2003-04-02 Nick Clifton <nickc@redhat.com>
147 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
149 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
151 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
152 Don't call pe_dll_build_section() if link_info.relocateable.
153 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
154 if link_info.relocateable.
156 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
158 * pe-dll.c (process_def_file): Don't create an export
159 section if there are no exports and we're building an exe
160 (pe_dll_build_sections): Ditto
161 (pe_dll_fill_sections): Conditionalize setting
162 abfd->dll true on info->shared
163 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
164 If i386pe or armpe, call pe_dll_build_section()
165 for both exe's and dll's, not just dll's.
166 (gld_${EMULATION_NAME}_finish): For all targets except
167 shpe and mipspe, call pe_dll_fill_sections() for both
168 exe's and dll's, not just dll's.
170 2003-04-02 Bob Wilson <bob.wilson@acm.org>
172 * emulparams/xtensa-config.sh: Remove comment indicating that this is
175 2003-04-01 Bob Wilson <bob.wilson@acm.org>
177 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
178 (eelf32xtensa.c): New target.
179 * Makefile.in: Regenerate.
180 * configure.tgt: Handle xtensa-*-*.
181 * gen-doc.texi: Set XTENSA variable.
182 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
183 * emulparams/elf32xtensa.sh: New file.
184 * emulparams/xtensa-config.sh: Likewise.
185 * emultempl/xtensaelf.em: Likewise.
186 * scripttempl/elfxtensa.sc: Likewise.
188 2003-04-01 Jakub Jelinek <jakub@redhat.com>
190 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
191 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
192 if --enable-64-bit-bfd.
194 2003-04-01 Nick Clifton <nickc@redhat.com>
196 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
198 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
199 name of note section.
201 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
203 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
206 2003-03-31 David Heine <dlheine@suif.stanford.edu>
208 * ldfile.c (ldfile_add_library_path): Always allocate space for
210 * ldlang.c (lang_register_vers_node): Free the node if it cannot
212 * ldmain.c (set_scripts_dir): Always free the constructed
214 (add_keepsyms_file): Fix memory leak.
215 * ldmisc.c (vfinfo): Likewise.
216 * lexsup.c (parse_args): Likewise.
218 2003-03-25 Stan Cox <scox@redhat.com>
219 Nick Clifton <nickc@redhat.com>
221 Contribute support for Intel's iWMMXt chip - an ARM variant:
223 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
224 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
225 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
228 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
230 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
231 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
232 (main): Initialize them.
233 * ldfile.c: Include pathnames.h.
234 (is_sysrooted_pathname): New.
235 (ldfile_add_library_path): Use it.
236 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
237 search_dirs if given an absolute pathname.
238 (ldfile_open_file): Issue error message for sysrooted
240 * Makefile.am: Updated dependencies.
241 * Makefile.in: Rebuild.
243 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
245 * ld.texinfo: Rename all occurances of C54X to TIC54X.
247 2003-03-19 Andreas Schwab <schwab@suse.de>
249 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
252 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
254 * defilep.y (opt_base): If no number given, set to default
257 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
259 * deffilep.y (def_import): Use default extension of "dll"
260 if no extension provided in parsed IMPORT definition.
262 * deffilep.y (def_lex): Revert 2003-03-12 change.
263 (dot_name): New id type and rule.
264 (expline): Use instead of ID.
265 (opt_equal_name): Likewise.
267 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
269 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
271 2003-03-07 Christopher Faylor <cgf@redhat.com>
273 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
274 apparent accidental removal on 2003-01-06.
276 2003-03-04 Dmitry Diky <diwil@mail.ru>
278 * Makefile.am: Add new devices x1122 x1132 emulation
279 * configure.tgt: Likewise.
280 * Makefile.in: Regenerate.
281 * emulparams/msp430x1122.sh: New file.
282 * emulparams/msp430x1132.sh: New file.
284 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
286 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
289 * ldfile.h (struct search_dirs): Added sysrooted field.
290 * ldlang.h (struct lang_input_statement_struct): Likewise.
291 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
292 (ldfile_open_file_search): Look for sysrooted filename starting
293 with / in ld_sysroot instead of in the current directory. Clear
294 sysrooted flag if it's found in the current directory. Set it
295 from the search directory's sysrooted flag where it is found
297 * ldlang.c (ldlang_sysrooted_script): New static variable.
298 (new_afile): Mark search_file_enums as sysrooted if
299 ldlang_sysrooted_script.
300 (load_symbols): Set ldlang_sysrooted_script according to the
301 script's sysrooted field while processing it.
302 * ld.texinfo: Document INPUT behavior in sysroot.
304 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
306 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
308 2003-03-03 Alan Modra <amodra@bigpond.net.au>
310 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
311 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
312 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
313 PARSE_AND_LIST_EPILOGUE): Don't define.
314 * emultempl/alphaelf.em: New file.
316 2003-03-01 Alan Modra <amodra@bigpond.net.au>
318 * ldemul.c: Include getopt.h.
319 * emultempl/elf32.em: Include getopt.h earlier.
320 * emultempl/ticoff.em: Likewise.
322 2003-02-28 Alan Modra <amodra@bigpond.net.au>
324 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
325 support when scripts read from files.
327 2003-02-28 Alan Modra <amodra@bigpond.net.au>
329 * ldemul.c (ldemul_parse_args): Return FALSE by default.
330 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
333 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
334 (ldemul_parse_args): Return bfd_boolean. Formatting.
335 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
336 (ldemul_parse_args): Adjust.
337 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
338 Return bfd_boolean from parse_args.
339 * lexsup.c (parse_args): Malloc shortopts, longopts and
340 really_longopts. Call ldemul_add_options and ldemul_handle_option.
341 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
342 gld${EMULATION_NAME}_parse_args.
343 (gld${EMULATION_NAME}_handle_option): Likewise.
344 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
345 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
346 * emultempl/beos.em: Likewise.
347 * emultempl/pe.em: Likewise.
348 * emultempl/ticoff.em: Likewise.
349 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
350 (gld${EMULATION_NAME}_add_sysroot): Prototype.
351 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
353 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
354 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
355 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
356 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
358 * emultempl/generic.em: Likewise.
359 * emultempl/gld960.em: Likewise.
360 * emultempl/gld960c.em: Likewise.
361 * emultempl/linux.em: Likewise.
362 * emultempl/lnk960.em: Likewise.
363 * emultempl/m68kcoff.em: Likewise.
364 * emultempl/mipsecoff.em: Likewise.
365 * emultempl/sunos.em: Likewise.
366 * emultempl/vanilla.em: Likewise.
367 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
369 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
371 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
372 memory allocation error.
374 * Makefile.am (ldmain.o): Define TOOLBINDIR.
375 * Makefile.in: Rebuilt.
376 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
378 2003-02-21 Bob Wilson <bob.wilson@acm.org>
380 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
381 call os_region_check when it is set.
382 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
383 lang_size_sections_1.
384 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
385 only for the last call, not on every relaxation iteration.
386 * ldlang.h (lang_size_sections): Update prototype.
387 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
388 to lang_size_sections.
389 (pe_exe_fill_sections): Likewise.
390 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
391 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
392 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
393 (ppc_layout_sections_again): Likewise.
395 2003-02-21 Bob Wilson <bob.wilson@acm.org>
397 * gen-doc.texi: Set ARM and HPPA variables.
398 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
399 title capitalization more consistent. Add missing menu entries for
400 machine-specific sections and conditionalize them consistently.
401 Conditionalize text that is irrelevant when SingleFormat is set.
402 Add @group divisions to improve page breaks in long examples.
403 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
404 is correct. Remove "FIXME" comment about not using
405 @raisesections/@lowersections. Use @raisesections/@lowersections
406 consistently for machine-specific sections. Change to be more polite
407 about poor bug reports. Replace FDL appendix with include of fdl.texi.
408 Move WIN32 node to match its order in the menus.
409 * fdl.texi: New file.
411 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
413 * configure.in (TARGET_SYSTEM_ROOT): Set default to
414 ${exec_prefix}/${target_alias}/sys-root. Match explicit
415 '${exec_prefix}' (in addition to the expansion thereof) as
417 * configure: Rebuilt.
419 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
421 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
423 2003-02-20 Harri Porten <porten@kde.org>
425 * ldgram.y (vers_defns): Allow optional trailing semicolon in
428 2003-02-18 Alan Modra <amodra@bigpond.net.au>
430 * emultempl/ppc32elf.em: New file.
431 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
432 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
433 (eelf32lppcnto.c): Likewise.
434 (eelf32lppcsim.c): Likewise.
435 (eelf32ppcnto.c): Likewise.
436 (eelf32ppc.c): Likewise.
437 (eelf32ppc_fbsd.c): Likewise.
438 (eelf32ppcsim.c): Likewise.
439 (eelf32ppclinux.c): Likewise.
440 * Makefile.in: Regenerate.
442 2003-02-18 Alan Modra <amodra@bigpond.net.au>
444 * ld.texinfo: Remove spaces between @samp and opening brace.
446 2003-02-18 Alan Modra <amodra@bigpond.net.au>
448 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
450 (ppc_before_allocation): Don't do optimizations if wrong hash table.
451 (gld${EMULATION_NAME}_finish): Ditto.
453 2003-02-17 Nick Clifton <nickc@redhat.com>
455 * ldmain.c (main) Default allow_shlib_undefined to true.
456 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
457 (parse_args): Parse the new switch.
458 * ld.texinfo: Document new switch and default behaviour of
459 allowing undefined symbols in shared libraries.
461 2003-02-11 Dmitry Diky <diwil@mail.ru>
463 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
464 * scripttempl/elf32msp430_3.sc: Likewise.
466 2003-02-11 Uwe Stieber <uwe@wwws.de>
468 * configure.tgt: Add support for kaOS as cross build target
471 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
473 * hppaelf.em (group_size): Change default back to 1.
475 2003-02-09 Alan Modra <amodra@bigpond.net.au>
477 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
479 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
481 * hppaelf.em (group_size): Change default to -1.
483 2003-02-07 Nick Clifton <nickc@redhat.com>
485 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
487 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
488 no-pipeline-knowledge. This will prevent the getopt package from
489 thinking that there are any shorter abbreviations for
490 --no-pipeline-knowledge.
492 2003-02-07 Jakub Jelinek <jakub@redhat.com>
494 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
495 which already have it. Avoid duplicates.
497 2003-02-06 Jakub Jelinek <jakub@redhat.com>
499 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
500 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
501 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
503 2003-02-05 Alan Modra <amodra@bigpond.net.au>
505 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
506 call ppc64_elf_tls_optimize.
508 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
510 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
511 outside of GNU/Linux conditional.
513 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
515 * deffilep.y (def_get_module): New function: locate an already
517 * deffile.h (def_get_module): New prototype.
518 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
519 a dll multiple times.
521 2003-01-23 Alan Modra <amodra@bigpond.net.au>
523 * emultempl/sh64elf.em: Include elf32-sh64.h.
524 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
525 sh64_elf_section_data.
526 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
528 2003-01-23 Wu Yongwei <adah@netstd.com>
530 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
531 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
532 cross-80th-column-margin "an" to the next line.
534 2003-01-21 Nick Clifton <nickc@redhat.com>
536 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
537 * emulparams/tic3xcoff_onchip.sh: ...this.
538 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
539 * Makefile.in: Regenerate.
541 2003-01-21 Fabio Alemagna <falemagn@aros.org>
543 * configure.tgt: Handle i[3456]86-*-aros*
545 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
547 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
548 * Makefile.in: Regenerate
549 * configure.tgt: Added extra target emulations
550 * emulparams/tic3xcoff.sh: Remove old settings
551 * emulparams/tic4xcoff.sh: Ditto
552 * emulparams/tic3xcoff-onchip.sh: Added new
553 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
554 * scripttempl/tic3xcoff.sc: Remove
556 2003-01-17 Andreas Jaeger <aj@suse.de>
558 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
561 2003-01-16 Alan Modra <amodra@bigpond.net.au>
563 * Makefile.in: Regenerate.
565 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
567 * ld/ld.texinfo (node WIN32): Some clarifications
568 and formatting fixups.
570 2003-01-09 Chris Demetriou <cgd@broadcom.com>
572 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
573 order, and handle (ignore) -mips32r2.
575 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
577 * ldmain.c (main): Make sure ld_sysroot is initialized.
579 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
581 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
583 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
584 (GENSCRIPTS): Add @use_sysroot@.
585 * Makefile.in: Regenerated.
586 * configure.host: Move setting of NATIVE_LIB_DIRS to...
587 * configure.tgt: ... here. Use ${target} instead of ${host}
589 * configure.in: Add --with-sysroot.
590 * configure: Regenerated.
591 * genscripts.sh: Accept use_sysroot option. Set new variables
592 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
593 $use_sysroot. Don't search $tool_lib if $use_sysroot.
594 * ldfile.c (ldfile_add_library_path): Handle leading '='.
595 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
596 (ld_sysroot): New variable.
597 (main): Initialize ld_sysroot.
598 * ldmain.h (ld_sysroot): New extern.
599 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
600 searching $EMULATION_LIBPATH.
601 (gld${EMULATION_NAME}_add_sysroot): New function.
602 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
603 (gld${EMULATION_NAME}_after_open): Likewise. Only search
604 environment variables if $NATIVE.
605 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
606 * NEWS: Mention --with-sysroot.
608 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
609 instead of setting LIB_PATH.
610 * emulparams/elf32ppc.sh: Likewise.
611 * emulparams/elf64_s390.sh: Likewise.
612 * emulparams/elf64_sparc.sh: Likewise.
613 * emulparams/elf64ppc.sh: Likewise.
614 * emulparams/elf_x86_64.sh: Likewise.
616 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
617 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
619 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
621 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
623 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
625 * Makefile.am (ldmain.o): Pass BINDIR.
626 * Makefile.in: Regenerated.
627 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
630 2003-01-02 Ben Elliston <bje@redhat.com>
632 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
633 (eelf32iq2000.c): New target.
634 * Makefile.in: Regenerate.
635 * configure.tgt: Handle iq2000-*-elf.
636 * emulparams/elf32iq10.sh: New file.
637 * emulparams/elf32iq2000.sh: New file.
638 * scripttempl/iq2000.sc: New file.
640 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
642 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
643 and _pei386_runtime_relocator to the exclude list.
645 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
647 * ldfile.c: Fix comment typos.
648 * ldlang.c: Likewise.
650 * pe-dll.c: Likewise.
652 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
654 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
655 * Makefile.am (ld.1): Depend on configdoc.texi
657 * Makefile.in: Regenerated.
659 2002-12-24 Dmitry Diky <diwil@mail.ru>
661 * Makefile.am: Add msp430 target.
662 * configure.tgt: Likewise.
663 * Makefile.in: Regenerate.
664 * emulparams/msp430x???.sh: New files. Linker script parameters
665 for various msp430 configurations.
666 * gen-doc.texi: Enable msp430 documenation.
667 * ld.texinfo: Document msp430 sections.
668 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
669 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
671 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
672 Charles Wilson <cwilson@ece.gatech.edu>
674 * ld/config.in (HAVE_REALPATH): New entry.
675 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
677 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
679 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
682 2002-12-23 Alan Modra <amodra@bigpond.net.au>
684 * ldmain.c (main): Init "strip_discarded".
685 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
686 (OPTION_NO_STRIP_DISCARDED): Define.
687 (ld_options): Add "strip-discarded" and "no-strip-discarded".
688 (parse_args): Handle them.
690 2002-12-23 Nick Clifton <nickc@redhat.com>
692 * ld.h (struct args_type): Add new field
693 'accept_unknown_input_architecture'.
694 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
696 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
697 bfd_arch_get_compatible.
698 * ldfile.c (ldfile_try_open_bfd): Likewise.
699 * lexsup.c (ld_options): Add new command line switch
700 --accept-unknown-input-architecture and its inverse.
701 (parse_args): Handle --accept-unknown-input-architecture.
702 * ld.texinfo: Document new linker option.
703 * NEWS: Mention new linker option.
705 2002-12-20 Alan Modra <amodra@bigpond.net.au>
707 * ldmain.c (main): Re-order link_info initialization. Init all
710 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
712 * ld.texinfo: Clarify and extend the documentation
713 in the Machine Dependent, WIN32 section.
715 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
717 * ld.texinfo: Add win32 machine depending section.
718 * gen-doc.texi: Enable win32 machine depending section.
720 * configure.host: Add win32 library search path.
722 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
724 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
725 import when auto-import is disabled.
727 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
729 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
730 account for trailing '\0'.
732 2002-12-17 Nick Clifton <nickc@redhat.com>
734 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
735 so that it is not confused with -c.
737 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
738 Charles Wilson <cwilson@ece.gatech.edu>
740 * configure.in: Add check for realpath function.
741 * configure: Regenerate.
742 * config.in: Regenerate.
743 * aclocal.m4: Regenerate.
744 * deffile.h: Add .data field to def_file_import
746 * pe-dll.c (pe_proces_import_defs): Use .data field of
747 def_file_import structure to initialize flag_data field of
748 def_file_export structure.
749 (pe_implied_import_dll): New variables exp_funcbase and
750 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
751 not filename (which may be a symlink). Scan the sections and
752 initialize [data|bss]_[start|end]. When scanning the export
753 table, skip _nm_ symbols, and mark any symbols whose rva indicates
754 that it is in the .bss or .data sections as data.
755 * sysdep.h: Include limits.h and sys/param.h, and define
756 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
757 exists, NULL otherwise.
758 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
759 pe_process_import_defs before pe_find_data_imports, so that
760 auto-import will check the virtual implib as well as "real"
762 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
763 symlinks to their target; check that the target's extension is
764 .dll before calling pe_implied_import_dll(), not the filename
765 itself (which may be a symlink).
767 2002-12-10 Alan Modra <amodra@bigpond.net.au>
769 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
770 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
773 2002-12-08 Alan Modra <amodra@bigpond.net.au>
775 * ldlang.h: Formatting.
777 2002-12-07 Alan Modra <amodra@bigpond.net.au>
779 * ldlang.c (init_os): Ensure sections mentioned in load_base
782 2002-12-05 Alan Modra <amodra@bigpond.net.au>
784 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
785 load_base for orphans that follow a section with load_base set.
787 2002-12-01 H.J. Lu <hjl@gnu.org>
789 * ld.texinfo: Remove the extra `;' in sample version script.
791 2002-11-30 Alan Modra <amodra@bigpond.net.au>
793 * configure.host: Correct dynamic-linker for powerpc64 hosts.
795 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
796 * Makefile.in: Regenerate.
798 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
799 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
800 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
801 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
802 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
803 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
804 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
805 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
806 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
807 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
808 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
809 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
810 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
812 2002-11-27 David O'Brien <obrien@FreeBSD.org>
814 * configure.host: Fix generic FreeBSD configuration entry.
816 2002-11-27 H.J. Lu <hjl@gnu.org>
818 * ld.texinfo: Add the missing `;' to sample version scripts.
820 2002-11-20 Alan Modra <amodra@bigpond.net.au>
822 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
824 2002-11-14 Egor Duda <deo@logos-m.ru>
826 * ldmain.c (main): Make runtime relocs disabled by default. Remove
827 assignment which has no effect.
828 * pe-dll.h (pe_create_import_fixup): Change prototype.
829 * pe-dll.c (make_runtime_pseudo_reloc): New function.
830 (pe_create_runtime_relocator_reference): Ditto.
831 (pe_create_import_fixup): Handle relocations with non-zero addends.
832 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
833 --disable-runtime-pseudo-reloc.
834 (make_import_fixup): Handle relocations with non-zero addends. Create
835 an external reference to _pei386_runtime_relocator symbol if at least
836 one pseudo reloc was created.
837 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
838 --disable-runtime-pseudo-reloc options.
840 2002-11-12 Earl Chew <earl_chew@agilent.com>
842 * ldlang.c (lang_add_section): Discard debugging sections that have
843 been marked SEC_EXCLUDE.
845 2002-11-12 Nick Clifton <nickc@redhat.com>
847 * configure.in (ALL_LINGUAS): Add da.
848 * configure: Regenerate.
849 * po/da.po: New Danish translation.
851 2002-11-12 Alan Modra <amodra@bigpond.net.au>
853 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
854 (LDEMUL_BEFORE_ALLOCATION): Define.
855 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
857 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
859 2002-11-11 Christopher Faylor <cgf@redhat.com>
861 * configure.tgt (LIB_PATH): Default to searching w32api directory under
864 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
866 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
867 of restricted auto-export libs.
869 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
871 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
872 creative library naming instances like, e.g., libstdc++-2.a.
874 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
876 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
877 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
879 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
881 * deffilep.y (def_lex): Handle '@' as first character of an ID.
882 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
883 (make_one): Don't prefix decorated fastcall symbols with '_'.
884 (pe_process_import_defs): Likewise.
885 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
886 symbols to cdecl names or vise-versa.
888 2002-10-13 Eric Kohl <ekohl@rz-online.de>
890 * pe-dll.c (process_def_file): Handle fastcall symbols when
891 generating undecorated aliases. Don't prefix decorated fastcall
893 (fill_exported_offsets): Don't prefix decorated fastcall symbols
896 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
898 * emultempl/aix.em: Use include <> for generated headers.
899 * emultempl/beos.em: Likewise.
900 * emultempl/elf32.em: Likewise.
901 * emultempl/pe.em: Likewise.
902 * ldctor.c: Likewise.
904 * ldfile.c: Likewise.
905 * ldlang.c: Likewise.
908 * ldmain.c: Likewise.
909 * ldmisc.c: Likewise.
910 * ldwrite.c: Likewise.
911 * lexsup.c: Likewise.
913 * pe-dll.c: Likewise.
915 2002-10-23 Jakub Jelinek <jakub@redhat.com>
917 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
918 sections into .rel{,a}.dyn.
920 2002-10-23 Nick Clifton <nickc@redhat.com>
922 * lexsup.c (OPTION_NO_OMAGIC): Define.
923 (ld_options): Add "no-omagic" option.
924 (parse_args): Parse --no-omagic.
925 * ld.texinfo: Document --no-omagic.
926 * NEWS: Mention new option.
928 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
930 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
931 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
933 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
935 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
936 emulation name. Set LIB_PATH only for native tools, and
937 search the ABI-specific versions of NATIVE_LIB_DIRS before the
938 .../lib variants, not instead of them. Mostly copied from...
939 * emulparams/elf32ppc.sh: ... here. Fixed typo.
940 * emulparams/elf64bmip-defs.sh: Backed out.
941 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
942 * emulparams/elf64btsmip.sh: Likewise.
943 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
944 TEXT_DYNAMIC): Removed.
946 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
948 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
949 (GENERATE_SHLIB_SCRIPT): Set to yes.
950 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
951 * emulparams/elf32bmipn32.sh: here.
952 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
953 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
954 * emulparams/elf64bmip-defs.sh: New file. Extend
955 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
956 * emulparams/elf64bmip.sh: Bring in definitions from
958 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
960 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
961 * emulparams/elf64btsmip.sh: Bring in definitions from
963 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
964 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
966 2002-10-16 Jakub Jelinek <jakub@redhat.com>
968 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
969 (s390-*-linux*): Add elf64_s390 emulation if want64.
970 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
971 genscript.sh changes.
972 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
973 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
975 2002-10-15 Alan Modra <amodra@bigpond.net.au>
977 * ldlang.c (load_symbols): Revert last change.
979 2002-10-14 Alan Modra <amodra@bigpond.net.au>
981 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
983 (lang_reasonable_defaults): Don't compare against false.
984 (size_input_section): Likewise.
985 (lang_size_sections_1): Likewise.
986 (lang_do_assignments): Likewise.
987 (lang_add_output): Likewise.
989 * Makefile.am: Run "make dep-am".
990 * Makefile.in: Regenerate.
991 * ldver.c: #include "bfdver.h".
993 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
995 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
997 * scripttempl/elfm68hc12.sc: Likewise.
999 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1001 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1003 * ldgram.y (memory_spec): Provide empty action.
1004 (section <NAME>): Likewise.
1006 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1008 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1009 they have OUTPUT_FORMAT not matching actual output format.
1010 * ldlang.c (lang_get_output_target): New function.
1011 (open_output): Use it.
1012 * ldlang.h (lang_get_output_target): New prototype.
1014 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1016 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1017 when orphan is .rel, .rela when orphan is .rela.
1018 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1019 first. Remove outsecname var.
1021 2002-10-09 Richard Shann <richard.shann@superh.com>
1022 Stephen Clarke <stephen.clarke@superh.com>
1024 * Makefile.am: Add eshelf32_linux.o and
1025 eshlelf32_linux.o, new emulations for sh64 Linux.
1026 * Makefile.in: Regenerate.
1027 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1028 * emulparams/shelf32_linux.sh: New file.
1029 * emulparams/shlelf32_linux.sh: New file.
1031 2002-10-08 H.J. Lu <hjl@gnu.org>
1033 * ldlang.c (lang_file_exist): Removed.
1034 (new_afile): Revert the last change.
1035 * ldlang.h (lang_file_exist): Removed.
1036 * lexsup.c (parse_args): Revert the last change.
1038 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1040 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1041 auto-import symbols.
1042 (make_one): Create _nm_<symbol> for data only.
1044 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1046 * ldlang.c (lang_file_exist): New function.
1047 (new_afile): Abort if the filename to be added matches the linker
1049 * ldlang.h: Add prototype for lang_file_exist.
1050 * lexsup.c (parse_args): Abort if the output filename matches
1051 one of the input filenames.
1053 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1055 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1057 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1059 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1060 * scripttempl/elfm68hc11.sc: Likewise.
1061 * scripttempl/elfm68hc12.sc: Likewise.
1063 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1064 reloc sections just before .rel.plt/.rela.plt.
1065 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1066 Only put loadable reloc sections in hold_rel.
1068 2002-09-29 H.J. Lu <hjl@gnu.org>
1070 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1072 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1074 From "Anita Kulkarni" <AnitaK@kpit.com>
1075 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1078 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1080 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1082 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1083 SEGMENT_SIZE alignment.
1084 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1085 (SEGMENT_SIZE): Define.
1087 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1088 (fold_binary): Correct abs - non-abs case.
1089 (fold_trinary): New. Split out from exp_fold_tree.
1091 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1093 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1094 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1095 for start of .data, instead align up to 256M boundary.
1096 * scripttempl/aix.sc: Likewise.
1098 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1100 * scripttempl/i386go32.sc: Handle bss unique sections.
1102 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1104 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1106 2002-09-17 Stan Cox <scox@redhat.com>
1108 * emulparams/elf32bmipn32-defs.sh: New file.
1109 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1110 * emulparams/elf32btsmipn32.sh: Likewise.
1111 * emulparams/elf64bmip.sh: Likewise.
1112 * emulparams/elf64btsmip.sh: Likewise.
1114 2002-09-16 Bruno Haible <bruno@clisp.org>
1116 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1118 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1119 elf64-alpha-freebsd.
1121 2002-09-11 Nick Clifton <nickc@redhat.com>
1123 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1125 * po/tr.po: Updated Turkish translation.
1127 2002-09-06 Jeffrey A Law (law@redhat.com)
1129 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1131 2002-09-02 Nick Clifton <nickc@redhat.com>
1133 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1135 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1137 2002-08-30 Nick Clifton <nickc@redhat.com>
1139 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1140 used. Change INSN to start at 0x01000000 and extend for
1141 256K (ignoring holes). Start the STACK on a word aligned
1143 (.rodata): Start it at the READONLY_START_ADDR.
1145 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1147 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1149 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1151 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1152 added makefile targets for this file.
1153 * Makefile.in: Regenerate.
1154 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1155 * NEWS: Mention new port.
1157 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1159 * emulparams/tic3xcoff.sh: New file.
1160 * emulparams/tic4xcoff.sh: New file.
1161 * scripttempl/tic3xcoff.sc: New file.
1162 * scripttempl/tic4xcoff.sc: New file.
1164 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1166 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1167 strtoul and strtoull with bfd_scan_vma.
1168 (gld${EMULATION_NAME}_read_file): Likewise.
1170 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1172 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1174 2002-08-27 Egor Duda <deo@logos-m.ru>
1176 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1177 Add symbols for application to access them.
1179 2002-08-27 Nick Clifton <nickc@redhat.com>
1181 * emultempl/armelf.em: Revert this patch, it is not needed.
1183 2002-08-22 Adam Nemet <anemet@lnxw.com>
1185 2002-08-20 Dan Kegel <dank@kegel.com>
1187 * configure.in: added --with-lib-path argument to ld's configure
1189 * ld/NEWS: Document new switch.
1190 * ld/README: Mention new switch.
1191 * configure: Regenerate.
1192 * Makefile.in: Regenerate.
1194 Based on this patch:
1195 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1197 * Makefile.in (LIB_PATH): Make configurable.
1198 (GENSCRIPTS): Set LIB_PATH in environment.
1199 * configure.in: Substitute LIB_PATH.
1201 2002-08-22 Adam Nemet <anemet@lnxw.com>
1203 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1204 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1205 depending on the type of the function.
1206 (arm_elf_convert_thumb_symbol_to_address): New function.
1208 2002-08-22 Graeme Peterson <gp@qnx.com>
1210 * Makefile.am: Add esh{l}elf_nto.o files.
1211 * Makefile.in: Regenerate.
1212 * configure.tgt: Add support for sh-**-nto* targets.
1213 * emulparams/shelf_nto.sh: New file.
1214 * emulparams/shlelf_nto.sh: New file.
1216 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1218 * ldlang.c (offsetof): Define if not defined.
1220 2002-08-14 H.J. Lu <hjl@gnu.org>
1222 * configure.tgt: Always enable 64bit emulations for 32bit
1225 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1227 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1228 (MAXPAGESIZE): Set to 1.
1230 * ld.h (ALIGN_N): Delete.
1231 * ldexp.h (align_n): Declare.
1232 * ldexp.c (align_n): New function.
1233 (fold_binary): Use align_n instead of ALIGN_N.
1234 (exp_fold_tree): Likewise.
1235 * ldlang.c (lang_size_sections_1): Likewise.
1236 (lang_one_common): Likewise.
1237 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1239 2002-07-31 Graeme Peterson <gp@qnx.com>
1241 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1242 * Makefile.am: Add eelf32{l}ppcnto.o files.
1243 * Makefile.in: Regenerate.
1244 * emulparams/elf32lppcnto.sh: New file.
1245 * emulparams/elf32ppcnto.sh: New file.
1247 2002-08-07 H.J. Lu <hjl@gnu.org>
1249 * ld.texinfo: Document --no-undefined-version.
1251 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1252 `script.' fields to 0.
1254 * ldmain.c (main): Initialize the allow_undefined_version to
1257 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1258 (ld_options): Add --no-undefined-version.
1259 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1261 2002-08-07 Nick Clifton <nickc@redhat.com>
1263 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1264 an interworking bfd if there are input bfds. (107501)
1266 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1268 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1271 2002-08-01 Nick Clifton <nickc@redhat.com>
1273 * emulparams/armelf.sh: Revert previous delta.
1274 * scripttempl/elf.sc: Revert previous delta.
1276 2002-07-31 H.J. Lu <hjl@gnu.org>
1278 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1279 --enable-64-bit-bfd.
1281 2002-07-31 H.J. Lu <hjl@gnu.org>
1283 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1284 64bit BFD is selected.
1286 2002-07-31 H.J. Lu <hjl@gnu.org>
1288 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1289 if 64bit BFD is selected.
1291 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1293 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1294 link_info.common_skip_ar_aymbols.
1295 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1297 * ldmain.c (main): Initialize new field
1298 link_info.common_skip_ar_aymbols.
1300 2002-07-31 Adam Nemet <anemet@lnxw.com>
1302 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1304 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1307 2002-07-31 Nick Clifton <nickc@redhat.com>
1309 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1310 of the PDP-11 and 2.11BSD a.out support.
1312 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1314 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1315 for n32 ABI support.
1316 * Makefile.in: Regenerate.
1317 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1318 n32 ABI emulations for these 64 bit targets.
1319 * emulparams/elf32bmipn32.sh: Expand comment.
1320 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1322 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1324 2002-07-30 Graeme Peterson <gp@qnx.com>
1326 * configure.tgt: Add support for arm-*-nto target.
1327 * Makefile.am: Add earmnto.o file.
1328 * Makefile.in: Regenerate.
1329 * NEWS: Mention port of ARM support to QNX.
1330 * emulparams/armnto.sh: New file.
1332 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1334 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1335 for relocatable link.
1336 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1339 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1341 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1344 2002-07-25 Nick Clifton <nickc@redhat.com>
1346 * po/sv.po: Updated Swedish translation.
1347 * po/es.po: Updated Spanish translation.
1348 * po/fr.po: Updated French translation.
1350 2002-07-24 Nick Clifton <nickc@redhat.com>
1352 * po/sv.po: Updated Swedish translation.
1353 * po/es.po: Updated Spanish translation.
1355 2002-07-23 Nick Clifton <nickc@redhat.com>
1357 * po/fr.po: Updated French translation.
1359 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1361 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1362 bomb on /DISCARD/ input section.
1363 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1364 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1366 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1368 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1371 2002-07-16 Denis Chertykov <denisc@overta.ru>
1372 Nick Clifton <nickc@redhat.com>
1373 Frank Ch. Eigler <fche@redhat.com>
1374 John Healy <jhealy@redhat.com>
1376 * configure.tgt: Add support for ip2k-elf.
1377 * Makefile.am: Add support for ip2k-elf.
1378 * Makefile.in: Regenerate.
1379 * emulparams/elf32ip2k.sh: New file.
1380 * scripttempl/ip2k.sc: New file
1381 * NEWS: Mention support for new port.
1383 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1385 * NEWS: Add 'Changes in 2.13'.
1387 2002-07-14 H.J. Lu <hjl@gnu.org>
1389 * ld.texinfo: Document a .symver takes precedence over a
1392 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1394 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1395 (COMMONPAGESIZE): Define.
1397 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1399 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1401 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1403 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1404 powerpc-*-openbsd* and sparc64-*-openbsd*.
1405 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1406 * Makefile.in: Regenerate.
1407 * emulparams/hppaobsd.sh: New file.
1409 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1411 * ldlang.c (print_wild_statement): Fix output formatting.
1413 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1415 * ldlang.c: (strip_excluded_output_sections): New function.
1416 (lang_process): Call it.
1417 (lang_size_sections_1): Revert 2002-06-10 change.
1419 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1421 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1423 * Makefile.in: Regenerate.
1425 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1427 * ldfile.c (ldfile_try_open_bfd): Formatting.
1429 * ldmisc.c (demangle): Move so that it doesn't intrude between
1430 vfinfo comment and body. Add comment.
1432 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1434 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1436 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1438 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1439 * ldlang.c (entry_sym): Likewise.
1440 (ldlang_undef_chain_list_type): Likewise.
1441 (lang_finish): Adjust references to entry_symbol.
1442 (lang_add_entry): Likewise.
1443 (lang_gc_sections): Use link_info.gc_sym_list.
1444 (lang_process): Set link_info.gc_sym_list.
1445 * ldlex.l: Include bfdlink.h.
1446 * ldmain.c (main): Init link_info.gc_sym_list.
1447 * emultempl/aix.em: Adjust references to entry_symbol.
1448 * emultempl/armcoff.em: Likewise.
1449 * emultempl/armelf.em: Likewise.
1450 * emultempl/pe.em: Likewise.
1451 * emultempl/ppc64elf.em (ppc_after_open): New function.
1452 (LDEMUL_AFTER_OPEN): Define.
1453 * emulparams/elf64ppc.sh: KEEP .opd sections.
1455 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1457 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1458 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1459 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1460 (EEPROM_START_ADDR): Define.
1461 (EEPROM_MEMORY): Define.
1462 * emulparams/m68hc12elf.sh: Likewise.
1463 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1464 section to put soft registers in .page0.
1465 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1467 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1469 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1470 section. Add ${RELOCATING-0}.
1472 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1474 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1475 (OTHER_SECTIONS): Define.
1476 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1477 (OTHER_SECTIONS): Undef.
1479 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1481 * ldmisc.c (demangle): Restore dots stripped from sym name.
1483 2002-06-25 H.J. Lu <hjl@gnu.org>
1485 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1486 * Makefile.in: Regenerated.
1488 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1490 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1491 the size of attached object files, to allow make the object files
1492 available via FTP or HTTP and to mention that the mail will be
1493 sent to a mailing list.
1495 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1497 * ld/configure.host (romp): Drop support.
1499 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1501 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1502 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1504 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1506 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1507 format specifier used to print BFD name.
1509 2002-06-18 Dave Brolley <brolley@redhat.com>
1511 From Catherine Moore, Michael Meissner, Jim Blandy:
1512 * emulparams/elf32frv.sh: New file.
1513 * configure.tgt: Support frv-*-*.
1514 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1515 (eelf32frv.c): New target.
1517 2002-06-17 Tom Rix <trix@redhat.com>
1519 * emultempl/elf32.em: gld*_get_script: Check for
1520 GENERATE_COMBRELOC_SCRIPT.
1521 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1522 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1524 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1526 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1528 2002-06-12 H.J. Lu <hjl@gnu.org>
1530 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1531 false if xvec doesn't match.
1533 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1535 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1537 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1539 * ldexp.c: Replace CONST with const.
1540 * ldfile.c: Likewise.
1541 * ldfile.h: Likewise.
1542 * ldlex.l: Likewise.
1544 * pe-dll.h: Likewise.
1546 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1548 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1550 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1552 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1553 to -1 == implicit enable.
1554 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1555 initialize link_info.pei386_auto_import to -1 == implicit
1557 (gld_${EMULATION_NAME}_parse_args): When processing
1558 --enable-auto-import and --disable-auto-import options, use
1559 '1' and '0' instead of 'true' and 'false'.
1560 (pe_find_data_imports): Only issue message about auto-import
1561 when the feature is implicitly enabled. Downgrade message to
1562 informational instead of warning.
1564 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1566 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1568 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1570 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1571 HOSTING_CRT0 and HOSTING_LIBS.
1573 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1575 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1577 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1579 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1580 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1582 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1584 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1585 SEC_EXCLUDE sections when doing a relocatable link.
1587 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1589 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1590 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1591 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1592 (eshlelf64_nbsd.c): New rules.
1593 * Makefile.in: Regenerate.
1594 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1595 (sh64-*-netbsd*): New targets.
1596 * emulparams/shelf32_nbsd.sh: New file.
1597 * emulparams/shelf64_nbsd.sh: New file.
1598 * emulparams/shlelf32_nbsd.sh: New file.
1599 * emulparams/shlelf64_nbsd.sh: New file.
1601 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1603 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1605 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1607 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1608 C++ constructors/destructors, loosely based on the m68hc11 port.
1610 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1612 * Makefile.in: Regenerate.
1613 * aclocal.m4: Regenerate.
1614 * config.in: Regenerate.
1615 * configure: Regenerate.
1617 2002-05-31 Graeme Peterson <gp@qnx.com>
1619 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1620 (ei386nto.c): Add rule.
1621 * Makefile.in: Regenerate.
1622 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1623 * emulparams/i386nto.sh: New file.
1625 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1627 * NEWS: Add entry for VAX ELF support.
1629 2002-05-29 Matt Thomas <matt@3am-software.com>
1630 Jason Thorpe <thorpej@wasabisystems.com>
1632 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1634 (evaxnbsd.c): New rules.
1635 * Makefile.in: Regenerate.
1636 * configure.tgt (vax-*-netbsdelf*)
1638 (vax-*-netbsd*): New targets.
1639 * emulparams/elf32vax.sh: New file.
1640 * emulparams/vaxnbsd.sh: New file.
1642 2002-05-29 Adam Nemet <anemet@lnxw.com>
1644 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1645 bfd_for_interwork, instead add glue sections to each input bfd.
1646 (bfd_for_interwork): New global.
1647 (arm_elf_set_bfd_for_interworking): New function.
1648 (arm_elf_before_allocation): Use it.
1650 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1652 * Makefile.am: Add DLX make target.
1653 * configure.tgt: Add DLX configuration.
1654 * Makefile.in: Regenerate.
1655 * emulparams/elf32_dlx.sh: New file
1656 * scripttempl/dlx.sc: New file
1658 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1660 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1661 * Makefile.in: Regenerate.
1662 * emulparams/elf_chaos.sh: Use elf_chaos script.
1663 * scripttempl/elf_chaos.sc: New file.
1665 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1667 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1668 addresses and regions from here...
1669 (lang_get_regions): ...to this new function.
1670 (lang_leave_output_section_statement): Use lang_get_regions.
1671 (lang_leave_overlay): Likewise.
1672 * mri.c (mri_draw_tree): Pass null as last argument to
1673 lang_leave_output_section_statement.
1674 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1675 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1676 * emultempl/pe.em (gld*_place_orphan): Likewise.
1678 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1680 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1682 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1684 * ldemul.c: Fix formatting.
1685 * ldfile.c: Likewise.
1686 * pe-dll.c: Likewise.
1687 * pe-dll.h: Likewise.
1689 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1691 * ldlang.c (lang_process): Formatting, grammar.
1693 * ldlex.l: Use #include "" instead of <> for local header files.
1695 2002-05-24 TAMURA Kent <kent@netbsd.org>
1697 * configure.tgt: Add a target for i386-netbsdpe.
1699 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1701 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1702 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1703 output section if necessary. Handle .tbss.
1704 (lang_size_sections): Clear _raw_size for .tbss section
1705 (it allocates space in PT_TLS segment only).
1706 * ldwrite.c (build_link_order): Build link order for .tbss too.
1708 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1710 * configure.in: Correct spelling of AC_PREREQ.
1712 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1714 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1716 (autofilter_objlist): Add crtbegin.o, crtend.o.
1718 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1720 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1721 (longopts): Add new option --exclude-libs.
1722 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1723 (gld_${EMULATION_NAME}_parse_args): Use it.
1724 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1725 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1726 from whole archives.
1727 (pe_dll_add_excludes): Set excludes->type.
1728 (auto_export): Add new variable libname and set to archive basename if
1729 abfd. Use it when filtering default and user-specified libarary
1730 excludes. Let string "ALL" mean all libs when filtering user-specified
1732 * ld.texinfo: Document --exclude-libs.
1734 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1736 * ldemul.c (ldemul_new_vers_pattern): New function.
1737 * ldemul.h (ldemul_new_vers_pattern): Declare.
1738 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1739 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1740 * emultempl/ppc64elf.em (dotsyms): New static var.
1741 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1742 (LDEMUL_NEW_VERS_PATTERN): Define.
1743 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1744 (PARSE_AND_LIST_LONGOPTS): Likewise.
1745 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1746 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1748 * emultempl/armcoff.em: Likewise.
1749 * emultempl/armelf_oabi.em: Likewise.
1750 * emultempl/beos.em: Likewise.
1751 * emultempl/elf32.em: Likewise.
1752 * emultempl/generic.em: Likewise.
1753 * emultempl/gld960.em: Likewise.
1754 * emultempl/gld960c.em: Likewise.
1755 * emultempl/linux.em: Likewise.
1756 * emultempl/lnk960.em: Likewise.
1757 * emultempl/m68kcoff.em: Likewise.
1758 * emultempl/mipsecoff.em: Likewise.
1759 * emultempl/pe.em: Likewise.
1760 * emultempl/sunos.em: Likewise.
1761 * emultempl/ticoff.em: Likewise.
1762 * emultempl/vanilla.em: Likewise.
1764 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1766 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1767 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1768 (LIB_SEARCH_DIRS): No need to use "tr".
1769 (COMPILE_IN): Only set for native targets.
1770 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1771 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1772 * configure.tgt (powerpc*): Set tdir_*.
1773 (powerpcle*): Correct targ_extra_emuls.
1774 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1775 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1777 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1779 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1780 calling lang_add_entry.
1782 2002-05-21 H.J. Lu (hjl@gnu.org)
1784 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1786 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1788 * ld.texinfo: Updated for --allow-multiple-definition and
1791 * ldmain.c (main): Initialize the allow_multiple_definition
1794 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1795 (ld_options): Add --allow-multiple-definition.
1796 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1798 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1800 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1801 (earmelfb_nbsd.c): New rule.
1802 * Makefile.in: Regenerate.
1803 * configure.tgt (armeb-*-netbsdelf*): New target.
1804 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1805 (arm-*-netbsd*): Likewise.
1806 * emulparams/armelfb_nbsd.sh: New file.
1808 2002-05-18 Tom Rix <trix@redhat.com>
1810 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1813 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1815 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1816 * Makefile.in: Regenerate.
1817 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1819 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1821 * emulparams/avr1.sh: New file.
1822 * emulparams/avr2.sh: New file.
1823 * emulparams/avr3.sh: New file.
1824 * emulparams/avr4.sh: New file.
1825 * emulparams/avr5.sh: New file.
1826 * scripttempl/avr.sc: New file.
1828 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1830 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1831 (lang_place_orphans): Abort if just_syms_flag.
1833 2002-05-10 Tom Rix <trix@redhat.com>
1835 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1836 architecture and machine information in the output bfd.
1837 (gld*_before_parse): Remove old arch and machine code.
1838 (choose_target): Rename to gld*_choose_target.
1839 (rtld): Change type to int.
1840 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1841 objects in XCOFF archives.
1842 * ldfile.h: Update copyright date.
1844 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1846 * ldmain.c (main): Enable -z combreloc by default.
1848 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1850 * Makefile.am: Honour DESTDIR.
1851 * Makefile.in: Regenerate.
1853 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1855 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1856 (lang_enter_overlay): Remove the last two parameters.
1857 (lang_leave_overlay): Take them here instead.
1858 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1859 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1860 than lang_enter_overlay.
1861 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1862 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1863 (lang_size_sections_1): Evaluate it.
1864 (lang_leave_output_section_statement): Rework LMA lookup.
1865 (overlay_lma, overlay_nocrossrefs): Remove.
1866 (lang_enter_overlay): Remove LMA and crossref arguments.
1867 (lang_enter_overlay_section): Don't set the LMA here.
1868 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1869 assignment to the last section's update_dot_tree. Unconditionally
1870 use the load and run-time regions specified in the OVERLAY statement.
1871 Likewise the first section's LMA. Only set the other sections' LMAs
1872 when no load region is given.
1874 2002-05-06 Nick Clifton <nickc@redhat.com>
1876 * po/sv.po: New translation.
1878 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1880 * emultempl/hppaelf.em (build_section_lists): New function.
1881 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1882 and build_section_lists.
1884 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1886 * ld.h: Fix formatting.
1887 * ldexp.c: Likewise.
1888 * ldfile.c: Likewise.
1889 * ldlang.c: Likewise.
1890 * ldmain.c: Likewise.
1891 * lexsup.c: Likewise.
1892 * pe-dll.c: Likewise.
1894 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1896 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1897 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1898 (build_section_lists): Do output_section tests here.
1900 2002-04-30 Tom Rix <trix@redhat.com>
1902 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1904 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1906 Long branch stubs, multiple stub sections.
1907 * emultempl/ppc64elf.em: Include ldctor.h.
1908 (stub_file): New var.
1909 (group_size): New var.
1910 (ppc_create_output_section_statements): New function.
1911 (struct hook_stub_info): New.
1912 (hook_in_stub): New function.
1913 (ppc_add_stub_section): New function.
1914 (ppc_layout_sections_again): New function.
1915 (build_section_lists): New function.
1916 (gld${EMULATION_NAME}_finish): Rewrite.
1917 (real_func): New var.
1918 (ppc_for_each_input_file_wrapper): New function.
1919 (ppc_lang_for_each_input_file): New function.
1920 (lang_for_each_input_file): Define.
1921 (PARSE_AND_LIST_PROLOGUE): Define.
1922 (PARSE_AND_LIST_LONGOPTS): Define.
1923 (PARSE_AND_LIST_OPTIONS): Define.
1924 (PARSE_AND_LIST_ARGS_CASES): Define.
1925 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1927 2002-04-30 Tom Rix <trix@redhat.com>
1929 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1930 -blibpath, -bnolibpath support.
1932 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1934 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1935 (eelf32ppcwindiss.c): New target.
1936 * Makefile.in: Regenerated.
1937 * configure.tgt: Add support for powerpc-*-windiss.
1938 * emulparams/elf32ppcwindiss.sh: New file.
1940 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1942 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1943 * ldexp.c (exp_print_token): Add "infix_p" argument.
1944 (exp_print_tree): Update accordingly.
1946 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1948 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1949 * Makefile.in: Regenerate.
1950 * mpw-elfmips.c: Delete.
1951 * mpw-eppcmac.c: Delete.
1952 * mpw-esh.c: Delete.
1953 * mpw-idtmips.c: Delete.
1955 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1957 * emulparams/shelf32.sh (MACHINE): Now sh5.
1959 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1961 * ldgram.y: Fix syntax warning.
1963 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1965 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1966 to prevent "-n" from being taken as an abbreviation for
1967 "--no-pipeline-knowledge".
1969 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1971 * ldlang.c (lang_size_sections_1): Don't complain about
1972 SEC_NEVER_LOAD sections having no memory region specified.
1974 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1976 2002-04-07 matthew green <mrg@redhat.com>
1978 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1980 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1982 * dep-in.sed: Cope with absolute paths.
1983 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1985 * Makefile.in: Regenerate.
1987 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1989 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1991 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1993 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1994 is smaller than maximum, round dot up to common page boundary.
1996 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1998 * configure.host: Set up for generic hosts first, then tweak as
1999 necessary in more specific targets.
2000 (HOSTING_LIBS): Include libgcc_eh.a if found.
2002 2002-03-23 Andreas Jaeger <aj@suse.de>
2004 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2006 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2008 * Makefile.am: Run "make dep-am".
2009 * Makefile.in: Regenerate.
2011 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2013 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2015 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2017 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2018 add the symbol to the linker hash table immediately.
2019 (lang_place_undefineds): Split symbol creation out..
2020 (insert_undefined): ..to here.
2022 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2024 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2025 the contents of the buffer returned from basename function will are
2026 getting overwritten while still being used.
2028 2002-03-18 Jan Hubicka <jh@suse.cz>
2029 Andreas Jaeger <aj@suse.de>
2030 Andreas Schwab <schwab@suse.de>
2032 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2033 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2034 set libraries to default to lib64 paths.
2036 2002-03-18 Tom Rix <trix@redhat.com>
2038 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2039 * configure.tgt : Same.
2040 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2041 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2042 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2043 emulation parameters for better -b32, -b64 support.
2044 * emulparms/aixrs6.sh : Same.
2045 * emulparms/ppcmacos.sh : Same.
2046 * emultempl/aix.em (choose_target) : Use new emulation parameters
2047 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2048 * Makefile.in : Regenerate.
2050 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2052 * po/fr.po: Updated version.
2054 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2056 * ldmain.c (main): Move .text readonly flag fudges from here..
2057 * ldlang.c (lang_process): ..to here.
2059 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2061 * ldlang.c (lang_check): Remove the word size check added in last
2062 change. Treat emitrelocations case as for relocatable links.
2064 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2066 * po/fr.po: Updated version.
2068 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2070 * ldlang.c (lang_check): Do relocatable link checks first, so that
2071 warn_mismatch can't override. Check compatible and word size too.
2073 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2075 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2077 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2079 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2082 2002-03-04 H.J. Lu <hjl@gnu.org>
2084 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2085 .fini_array in the data segment.
2087 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2089 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2091 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2093 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2094 .init_array, and .fini_array.
2096 2002-02-20 Andreas Schwab <schwab@suse.de>
2098 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2099 .IA64_unwind* in a relocatable link.
2101 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2103 * NEWS: Mark 2.12 branch.
2105 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2107 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2108 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2110 2002-02-18 Tom Rix <trix@redhat.com>
2112 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2113 (gld*_before_allocation): Same.
2114 (gld*_create_output_section_statements): Generate
2115 __rtinit if run time linking. Add librtl.a to the link.
2116 (gld*_read_file): Clean.
2118 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2120 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2122 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2124 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2125 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2126 and eelf64alpha_fbsd.
2127 * Makefile.in: Regenerate.
2128 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2129 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2130 use a FreeBSD-specific emulation rather than the psABI one.
2131 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2132 for all FreeBSD ELF systems.
2133 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2135 * emulparams/elf32ppc_fbsd.sh: Likewise.
2136 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2137 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2138 * emulparams/elf64alpha_fbsd.sh: Likewise.
2139 * emulparams/elf_i386_fbsd.sh: Likewise.
2140 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2142 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2144 * po/tr.po: Updated version.
2146 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2148 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2151 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2153 * emultempl/mmo.em (mmo_after_open): Don't call
2154 _bfd_mmix_check_all_relocs when producing ELF output.
2156 2002-02-15 Richard Henderson <rth@redhat.com>
2158 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2159 definition. Emit a unop+nop pair.
2161 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2163 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2164 for presence of .MMIX.reg_contents.linker_allocated before early
2167 * NEWS: Mention support for MMIX.
2169 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2171 Support arbitrary length fill patterns.
2172 * ld.texinfo (Output Section Fill): Describe fill expressions.
2173 (FILL): Refer to the above.
2174 * ldexp.h (etree_value_type): Add "str" field.
2175 (union etree_union): Add "str" to "value" struct.
2176 (exp_bigintop): Declare.
2177 (exp_get_fill): Declare.
2178 * ldexp.c: Include "safe-ctype.h".
2179 (exp_intop): Set value.str to NULL.
2180 (exp_bigintop): New function.
2181 (new_rel): Pass in "str", and set new.str from it.
2182 (new_rel_from_section): Set new.str to NULL.
2183 (fold_name): Adjust calls to new_rel.
2184 (exp_fold_tree): Likewise.
2185 (exp_get_fill): New function.
2186 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2187 (INT): Returns a "bigint". Adjust all code handling INTs.
2188 (fill_opt): Returns a "fill".
2189 (fill_exp): Split out of fill_opt, use for FILL.
2190 * ldlang.h (struct _fill_type): New.
2191 (fill_type): Move typedef to ldexp.h.
2192 (lang_output_section_statement_type): "fill" is now a pointer.
2193 (lang_fill_statement_type): Likewise.
2194 (lang_padding_statement_type): Likewise.
2195 (lang_add_fill): Now takes a "fill_type *" param.
2196 (lang_leave_output_section_statement): Likewise.
2197 (lang_do_assignments): Likewise.
2198 (lang_size_sections): Likewise.
2199 (lang_leave_overlay_section): Likewise.
2200 (lang_leave_overlay): Likewise.
2201 * ldlang.c: Include ldgram.h after ldexp.h.
2202 (lang_output_section_statement_lookup): Adjust for fill_type change.
2203 (print_fill_statement): Likewise.
2204 (print_padding_statement): Likewise.
2205 (insert_pad): Now takes a "fill_type *" arg.
2206 (size_input_section): Likewise.
2207 (lang_size_sections_1): Likewise.
2208 (lang_size_sections): Likewise.
2209 (lang_do_assignments): Likewise.
2210 (lang_add_fill): Likewise.
2211 (lang_leave_output_section_statement): Likewise.
2212 (lang_leave_overlay_section): Likewise.
2213 (lang_leave_overlay): Likewise.
2214 Adjust all callers of the above function.
2215 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2216 starting with "0X" as well as "0x". Return bigint.str for hex
2217 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2218 Always use base 16 for numbers starting with "$".
2219 * ldmain.c: Include ldgram.h after ldexp.h.
2220 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2221 of bfd_fill_link_order.
2222 * pe-dll.c: Adjust lang_do_assignments calls.
2223 * emultempl/elf32.em: Likewise.
2224 * emultempl/hppaelf.em: Likewise.
2225 * emultempl/ppc64elf.em: Likewise.
2226 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2227 lang_add_assignment call.
2228 * emultempl/pe.em: Likewise.
2230 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2232 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2233 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2234 the pattern in question is not a regexp.
2235 * ldlang.c: Likewise.
2236 * ldlang.h: Likewise.
2237 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2239 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2241 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2242 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2243 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2244 * ldexp.c (exp_data_seg): New variable.
2245 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2246 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2247 (exp_fold_tree): Handle DATA_SEGMENT_END.
2248 Pass allocation_done when recursing instead of hardcoding
2249 lang_allocating_phase_enum.
2250 * ldexp.h (exp_data_seg): New.
2251 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2252 (lang_size_sections): New.
2253 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2254 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2255 if COMMONPAGESIZE is defined.
2256 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2257 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2258 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2259 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2260 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2263 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2265 * Makefile.in: Regenerate.
2267 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2269 * lexsup.c: Remove strtoul declaration.
2271 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2273 * ldmain.c: Add prototype for main ().
2274 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2275 * emultempl/lnk960.em (lnk960_choose_target): Function should
2278 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2280 * ldlang.c (entry_section): New initialised variable.
2281 (lang_finish): Use it.
2282 * ldlang.h (entry_section): Declare.
2283 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2284 entry_section to ".opd".
2286 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2288 * ld.texinfo (Options): Add back in -nostdlib documentation,
2289 which had been inadvertently removed.
2291 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2293 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2294 register section vma to a sane value after emitting error. Make
2295 fatal conditions cause program exit when emitting message.
2297 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2299 * configure.tgt: Add or32-*-rtems target.
2301 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2303 Contribute sh64-elf.
2304 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2305 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2306 in OTHER_RELOCATABLE_SECTIONS.
2307 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2308 * emulparams/shelf32.sh (STACK_ADDR): Define.
2309 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2310 (OTHER_SECTIONS): this. Removed stack settings.
2311 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2312 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2313 2001-03-12 DJ Delorie <dj@redhat.com>
2314 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2315 relaxing if any shmedia or mixed sections are found.
2316 2001-03-07 DJ Delorie <dj@redhat.com>
2317 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2318 einfo. Gracefully decline to output to non-elf formats.
2319 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2320 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2321 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2322 * emulparams/shelf32.sh: Ditto.
2323 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2324 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2326 2001-01-10 Ben Elliston <bje@redhat.com>
2327 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2328 non-portable shell constructs. From Hans-Peter Nilsson.
2329 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2330 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2331 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2332 dependencies to the shell script include chain.
2333 * Makefile.in: Regenerate.
2334 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2335 * emultempl/sh64elf.em: Update and tweak comments.
2336 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2337 make a .cranges section SEC_IN_MEMORY.
2338 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2339 * emultempl/sh64elf.em
2340 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2341 .cranges section found to be necessary; continue and set stored
2342 section contents flags for sections with non-mixed contents.
2343 Use a struct sh64_section_data container and sh64_elf_section_data
2344 to store contents-type flags.
2345 Remove unused update of "isec".
2346 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2347 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2348 access contents-type flags. Assert that the associated container
2349 is initialized. Use that container, not elf_gp_size, to hold size
2350 of linker-generated cranges contents.
2351 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2352 * emultempl/sh64elf.em
2353 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2354 there's already a .cranges section. When section flag difference
2355 is found, don't NULL-check cranges a second time. Tweak comments.
2356 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2357 merging, not max size, as size of ld-generated .cranges contents.
2358 Don't set ELF section flags in output section. When checking for
2359 needed .cranges descriptors, don't use a variable; compare
2360 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2362 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2363 * emultempl/sh64elf.em: New file.
2364 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2365 * Makefile.in: Regenerate.
2366 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2367 (OTHER_RELOCATING_SECTIONS): Ditto.
2368 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2369 * emulparams/shlelf32.sh: Stub out all settings except
2370 OUTPUT_FORMAT. Source shelf32.sh.
2371 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2372 OTHER_RELOCATING_SECTIONS.
2373 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2374 * emulparams/shlelf64.sh: Stub out all settings except
2375 OUTPUT_FORMAT. Source shelf64.sh.
2376 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2377 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2379 (DATA_START_SYMBOLS): Define, provide ___data.
2380 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2381 for consecutive .data section.
2382 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2383 section after .data section.
2384 * emulparams/shlelf64.sh: Ditto.
2385 * emulparams/shelf32.sh: Ditto.
2386 (ALIGNMENT): Define to 8.
2387 * emulparams/shelf32.sh: Ditto.
2388 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2389 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2390 built-in linker scripts.
2391 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2392 * emulparams/shlelf64.sh: New.
2393 * emulparams/shelf64.sh: New.
2394 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2396 * Makefile.am: Add support for shlelf64 and shelf64.
2397 * Makefile.in: Regenerate.
2398 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2399 * configure.tgt (sh64-*-elf*): Add shelf as default.
2400 Add shlelf to targ_extra_emuls.
2401 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2402 * emulparams/shelf32.sh: New file.
2403 * emulparams/shlelf32.sh: New file.
2404 * Makefile.am: Add support for shlelf32 and shelf32.
2405 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2406 * Makefile.in: Regenerate.
2408 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2410 * ldlang.c (lang_reset_memory_regions): Rename from
2411 reset_memory_regions. Change all callers. Make public.
2412 * ldlang.h (lang_reset_memory_regions): Prototype.
2413 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2414 lang_reset_memory_regions before lang_size_sections.
2415 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2416 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2418 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2420 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2421 arithmetic when checking for too many global registers.
2423 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2425 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2426 (ehppanbsd.c): New rule.
2427 * Makefile.in: Regenerate.
2428 * configure.tgt (hppa*-*-netbsd*): New target.
2429 * emulparams/hppalinux.sh: Add comment to check other files
2430 that source this file it is modified, and list which
2432 * emulparams/hppanbsd.sh: New file.
2434 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2436 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2439 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2441 Support on-demand global register allocation from
2442 R_MMIX_BASE_PLUS_OFFSET relocs.
2443 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2444 mmix_set_reg_section_vma. Call
2445 _bfd_mmix_finalize_linker_allocated_gregs.
2446 (mmix_before_allocation): New function.
2447 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2448 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2449 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2450 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2451 before .MMIX.reg_contents.
2452 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2453 (mmo_after_open): New function.
2454 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2455 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2456 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2458 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2460 * emulparams/or32.sh: New file.
2461 * emulparams/or32elf.sh: New file.
2462 * scripttempl/or32.sc: New file.
2463 * configure.tgt : Add support for or32.
2464 * configure: Regenerate
2465 * Makefile.am: Add support for or32.
2466 * Makefile.in: Regenerate.
2467 * NEWS: Mention support for or32.
2468 * po/ld.pot: Regenerate.
2470 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2471 Mitch Lichtenberg <mpl@broadcom.com>
2473 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2474 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2475 reloc creation (ld --embedded-relocs).
2477 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2479 * configure: Regenerated.
2481 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2483 * Makefile.am (install): Depend on install-info.
2484 * Makefile.in: Regenerate.
2486 2002-01-26 Christian Rose <menthos@menthos.com>
2488 * ldmain.c (main): Use full sentences to ease translation.
2490 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2492 * po/fr.po: Updated version.
2494 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2496 * po/es.po: Updated version.
2498 2002-01-25 Andreas Jaeger <aj@suse.de>
2500 * ldlex.l (yy_input): Correct error check.
2502 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2504 * ldmisc.c (demangle): Put back dots when string not demangled.
2506 2002-01-22 Richard Henderson <rth@redhat.com>
2508 * emulparams/elf64alpha.sh (NOP): Use unop.
2510 2002-01-21 Andreas Jaeger <aj@suse.de>
2512 * ldlex.l: Use fread instead of read.
2514 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2516 * configure.tgt (ia64-*-netbsd*): New target.
2518 2002-01-21 H.J. Lu <hjl@gnu.org>
2520 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2522 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2524 2002-01-18 Andreas Jaeger <aj@suse.de>
2526 * ldver.c (ldversion): Update year.
2528 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2530 * po/ld.pot: Regenerate.
2532 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2534 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2535 * Makefile.in: Regenerate.
2536 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2537 * emultempl/ppc64elf.em: New file.
2539 2002-01-15 DJ Delorie <dj@redhat.com>
2541 * scripttempl/pe.sc: Add support for constructor priorities.
2543 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2545 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2546 * emulparams/avr23xx.sh: Likewise.
2547 * emulparams/avr4433.sh: Likewise.
2548 * emulparams/avr44x4.sh: Likewise.
2549 * emulparams/avr85xx.sh: Likewise.
2550 * emulparams/avrmega103.sh: Likewise.
2551 * emulparams/avrmega161.sh: Likewise.
2552 * emulparams/avrmega603.sh: Likewise.
2553 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2555 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2557 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2558 archive is excluded.
2560 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2562 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2563 (eshelf_nbsd.c): New rule.
2564 (eshlelf_nbsd.c): New rule.
2565 * Makefile.in: Regenerate.
2566 * configure.tgt (sh*le-*-netbsdelf*): New target.
2567 (sh*-*-netbsdelf*): New target.
2568 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2569 * ld/emulparams/shelf_nbsd.sh: New emulation.
2570 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2572 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2574 * po/es.po: New file: Spanish translation.
2575 * configure.in (ALL_LINGUAS): Add es.
2576 * configure: Regenerate.
2578 2002-01-06 John Marshall <jmarshall@acm.org>
2580 * ld.texinfo: Note that --emit-relocs is currently only
2581 implemented for ELF.
2583 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2585 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2586 of bfd_section_list_remove and bfd_section_list_insert macros.
2587 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2588 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2590 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2592 * configure.tgt (x86_64-*-netbsd*): New target.
2594 2001-12-21 Tom Rix <trix@redhat.com>
2596 (gld*_create_output_section_statements): New function.
2597 For -binitfini support.
2598 * emultempl/aix.em (gld*_before_parse): Fix comment.
2599 * emultempl/aix.em (gld*_parse_args): Fix comment.
2601 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2603 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2605 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2607 * configure.tgt (arm-*-netbsdelf*): Add target.
2608 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2609 * emulparams/armelf_nbsd.sh: Added.
2610 * Makefile.am: Add rules for earmelf_nbsd.
2611 * Makefile.in: Regenerate.
2613 2001-12-19 Andreas Jaeger <aj@suse.de>,
2614 Susanne Oberhauser <froh@suse.de>
2616 * configure.host: Add rules for x86_64-*linux-gnu. Change
2617 s390x-linux entry to use gcc to report configuration, replace gcc
2618 with $CC in s390-linux
2620 2001-12-19 Andreas Jaeger <aj@suse.de>
2622 * ld.texinfo (VERSION): Fix markup.
2624 2001-12-18 matthew green <mrg@eterna.com.au>
2626 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2627 (m68kelfnbsd.c): New rule.
2628 * Makefile.in: Regenerate.
2629 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2630 (m68*-*-netbsd*4k*): .. this.
2631 (m68*-*-netbsdelf*): New target.
2632 (m68*-*-netbsd*): Also include ELF support.
2633 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2634 * emulparams/m68kelfnbsd.sh: New emulation.
2636 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2638 * ldgram.y (vers_node): Support anonymous version tags.
2639 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2640 tag is not defined together with non-anonymous versions.
2641 * ld.texinfo: Document it.
2643 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2645 * po/tr.po: New file: Turkish translation.
2646 * configure.in (ALL_LINGUAS): Add tr.
2647 * configure: Regenerate.
2649 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2651 * Makefile.am: Add rules for eelf64alpha_nbsd.
2652 * Makefile.in: Regenerate.
2653 * configure.tgt (alpha*-*-netbsd*): Set
2654 targ_emul to elf64alpha_nbsd.
2655 * emulparams/elf64alpha_nbsd.sh: Added.
2657 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2659 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2660 section_tail when fiddling with section list.
2661 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2662 broken into separate strings to make translation easier.
2663 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2664 fiddling with section list.
2665 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2667 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2669 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2671 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2673 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2675 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2677 * emultempl/elf32.em (finish): Supply output_bfd
2678 to bfd_elf*_discard_info.
2679 (OPTION_EH_FRAME_HDR): Define.
2680 (longopts): Add --eh-frame-hdr.
2681 (parse_args): Handle it.
2682 (list_options): Add --eh-frame-hdr to help.
2683 * emultempl/hppaelf.em (finish): Supply output_bfd
2684 to bfd_elf*_discard_info.
2685 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2687 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2689 * lexsup.c (parse_args): Don't pass shortopts to second call to
2690 getopt functions. Restore optind rather than decrementing before
2691 second call. Remove errind as it now duplicates last_optind.
2693 2001-12-11 Christopher Faylor <cgf@redhat.com>
2695 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2697 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2698 Richard Henderson <rth@redhat.com>
2700 * Makefile.am: Add support for xstormy16.
2701 * configure.tgt: Add support for xstormy16.
2702 * Makefile.in: Regenerate.
2703 * emulparams/elf32xstormy16.sh: New file.
2704 * scripttempl/xstormy16.sc: New file.
2706 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2708 * Makefile.in (LIB_PATH): Make configurable.
2709 (GENSCRIPTS): Set LIB_PATH in environment.
2710 * configure.in: Substitute LIB_PATH.
2711 * configure: Regenerate.
2712 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2713 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2715 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2717 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2718 describing the -N option so that it is easier to translate into
2721 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2723 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2724 statements describing a single option with a single, newline
2725 escaped fprintf. This allows better translation into other
2728 * ldmain.c (add_archive_element): Combine multiple strings
2729 into a single string to permit better translation into other
2732 2001-12-05 Tom Rix <trix@redhat.com>
2734 * Makefile.am: Remove eaixppc64.
2735 * Makefile.in: Regenerate.
2737 2001-12-04 Tom Rix <trix@redhat.com>
2739 * emultempl/aix.em (choose_target): Change default target to
2740 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2742 (gld*_read_file): Fix typo.
2743 (change_symbol_mode): Add prototype.
2746 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2747 * emulparams/aixrs6.sh : Same.
2748 * emulparams/ppcmacos.sh : Same.
2749 * emulparams/aixppc64.sh : Delete file.
2750 * emultempl/aix.em : Formatting changes.
2752 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2754 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2755 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2757 (OTHER_END_SYMBOLS): Fix formatting.
2758 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2759 (OTHER_END_SYMBOLS): Fix formatting.
2761 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2763 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2765 2001-12-02 Tom Rix <trix@redhat.com>
2767 * configure.tgt : Remove eaixppc64 emulations.
2768 * Makefile.in : Remove eaixppc64.c
2769 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2770 (ldemul_default_target): Same.
2771 * emultempl/gld960.em (gld960_choose_target): Same.
2772 * emultempl/gld960c.em (gld960_choose_target): Same.
2773 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2774 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2775 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2776 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2777 * emultempl/aix.em (choose_target): New function. Handle emulation of
2780 2001-11-27 H.J. Lu <hjl@gnu.org>
2782 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2783 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2784 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2785 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2786 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2787 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2788 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2789 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2791 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2794 (REL_SDATA): Likewise.
2795 (REL_SBSS): Likewise.
2796 (REL_SDATA2): Likewise.
2797 (REL_SBSS2): Likewise.
2798 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2801 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2803 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2805 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2807 2001-11-22 H.J. Lu <hjl@gnu.org>
2809 * Makefile.in: Regenerated with automake based on automake
2810 1.4-8 in RedHat 7.1.
2812 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2814 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2815 (config.status): Delete rule.
2816 Add extra dependencies to cover sourced emulparams files.
2817 * Makefile.in: Regenerate.
2819 * scripttempl/elf.sc: Order <section>, <section>.* and
2820 corresponding linkonce sections as seen in input files.
2821 Formatting fixes. Zero vma of all sections if not relocating.
2822 (STACK): Define and insert if STACK_ADDR defined.
2823 (OTHER_RELOCATING_SECTIONS): Delete.
2824 (OTHER_END_SYMBOLS): Define.
2825 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2826 (OTHER_READWRITE_SECTIONS): Likewise.
2827 (OTHER_GOT_SECTIONS): Likewise.
2828 (OTHER_SDATA_SECTIONS): Likewise.
2829 (OTHER_BSS_SECTIONS): Likewise.
2830 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2831 (OTHER_READWRITE_SECTIONS): Likewise.
2832 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2833 (OTHER_READWRITE_SECTIONS): Likewise
2835 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2836 (STACK_ADDR): Define.
2837 * emulparams/armelf_oabi.sh: As for armelf.sh.
2838 * emulparams/elf32mcore.sh: As for armelf.sh.
2839 * emulparams/h8300elf.sh: As for armelf.sh.
2840 * emulparams/mn10200.sh: As for armelf.sh.
2841 * emulparams/shelf.sh: As for armelf.sh.
2843 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2844 (OTHER_END_SYMBOLS): Define.
2845 * emulparams/m32relf.sh: As for elf32fr30.sh.
2846 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2847 * emulparams/h8300self.sh: As for elf32fr30.sh.
2849 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2850 defines with RELOCATING test.
2851 (OTHER_SDATA_SECTIONS): Likewise.
2852 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2853 (OTHER_END_SYMBOLS): ..this.
2854 * emulparams/crislinux.sh: As for criself.sh.
2856 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2858 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2859 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2860 normal and linkonce sections as seen in input files.
2861 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2862 (TEXT_DYNAMIC): Likewise.
2863 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2864 (OTHER_SDATA_SECTIONS): Likewise.
2865 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2866 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2867 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2868 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2869 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2870 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2871 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2872 sections as seen in input files.
2873 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2874 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2876 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2877 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2878 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2879 (OTHER_SECTIONS): Instead, use this..
2880 (OTHER_END_SYMBOLS): ..and this.
2882 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2883 * emulparams/elf32bsmip.sh: Likewise.
2884 * emulparams/elf32btsmip.sh: Likewise.
2885 * emulparams/elf32ebmip.sh: Likewise.
2886 * emulparams/elf32lmip.sh: Likewise.
2887 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2888 * emulparams/elf32lsmip.sh: Likewise.
2889 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2890 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2891 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2892 * emulparams/elf64btsmip.sh: Likewise.
2893 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2894 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2895 * emulparams/elf32ppclinux.sh: Likewise.
2896 * emulparams/elf32ppcsim.sh: Likewise.
2897 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2898 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2899 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2900 * emulparams/h8300self.sh: Likewise.
2901 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2902 * emulparams/sh.sh: Comment.
2903 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2904 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2905 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2907 2001-11-21 David Heine <dlheine@tensilica.com>
2908 Alan Modra <amodra@bigpond.net.au>
2910 * ldlang.c (map_input_to_output_sections): Replace "break"
2911 accidentally removed with 2001-08-03 change.
2912 (lang_gc_sections_1): Likewise.
2914 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2916 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2918 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2920 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2921 of false when calling lang_size_sections.
2922 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2924 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2926 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2927 function when LDEMUL_FINISH isn't set to the same name. Don't
2928 call ${LDEMUL_FINISH}.
2929 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2930 * emultempl/armelf.em (arm_elf_finish): Call
2931 gld${EMULATION_NAME}_finish.
2932 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2933 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2934 hppaelf_layout_sections_again if necessary.
2935 (need_laying_out): New var.
2936 (hppaelf_layaout_sections_again): Rename to
2937 hppaelf_layout_sections_again. Clear need_laying_out.
2938 (PARSE_AND_LIST_OPTIONS): Format text.
2940 2001-11-14 H.J. Lu <hjl@gnu.org>
2942 * emultempl/armelf.em (arm_elf_finish): Renamed from
2943 gld${EMULATION_NAME}_finish.
2944 (LDEMUL_FINISH): Set to arm_elf_finish.
2946 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2948 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2949 (struct ld_emulation_xfer_struct): Use it.
2951 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2953 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2954 additional symbols referenced by newer crt0.o files from HP.
2956 2001-11-12 Anthony Green <green@redhat.com>
2958 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2960 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2962 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2963 * Makefile.in: Regenerate.
2965 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2967 * ld.texinfo: Use @command for commands, @option for options.
2968 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2970 * Makefile.in: Rebuild.
2972 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2974 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2975 Add support for targets.
2977 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2979 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2980 * configure: Regernate.
2981 * po/fr.po: New file.
2982 * po/sv.po: New file.
2984 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2986 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2987 as little endian default and to support big endian.
2989 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2991 * ld.texinfo (Options): Document new option, -nostdlib.
2992 * lexsup.c (OPTION_NOSTDLIB): New definition.
2993 (ld_options): Add entry for "nostdlib".
2994 (parse_args): Handle OPTIONS_NOSTDLIB.
2995 * ldfile.c (ldfile_add_library_path): Don't add directories
2996 to the search path if they weren't specified on the command line
2997 and -nostdlib was specified.
2998 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3000 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3002 * lexsup.c (parse_args): Prevent infinite parsing loop when
3003 "-rpath.a" is specified on the command line.
3004 Replace calls to fprintf with calls to einfo.
3006 2001-10-31 John Marshall <jmarshall@acm.org>
3008 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3009 appear only once across all the linker scripts involved in a link
3010 invocation no longer applies. Make the documentation reflect
3013 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3015 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3017 (sh-*-linux*): Added targ_extra_libpath.
3019 2001-10-31 David Heine <dlheine@tensilica.com>
3021 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3022 for padding statements.
3024 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3026 * configure.tgt (mmix-*-*): New target.
3027 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3028 Add dependencies to match.
3029 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3030 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3031 scripttempl/mmo.sc: New files.
3032 * gen-doc.texi: @set MMIX.
3033 * ld.texinfo: Ditto.
3034 [MMIX] Add MMIX node.
3035 * Makefile.in: Regenerate.
3037 2001-10-29 Kazu Hirata <kazu@hxi.com>
3039 * ldlang.c: Fix a comment typo.
3041 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3043 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3044 entries, and match *-*-linux*.
3046 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3048 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3049 with ldlex_script, ldlex_popstate.
3050 (ifile_p1): Likewise.
3051 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3053 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3054 to 1. Don't BEGIN(SCRIPT).
3055 (lex_redirect): Similarly.
3056 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3058 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3060 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3061 __EH_FRAME_END__ and accept eh frames into data section.
3062 Add ctor and dtor sections.
3064 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3066 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3067 (auto-export): Fix indentation.
3069 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3071 * pe-dll.c (autofilter_objectlist): Add startup objects
3073 (auto-export): Constify char * p.
3074 Extract file basename and use strcmp rather than ststr
3077 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3079 * ldmain.c (get_emulation): Improve comment about the handling
3082 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3084 * po/POTFILES.in: Regenerate.
3086 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3088 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3089 -z nocopyreloc and -z nocombreloc usage strings.
3091 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3093 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3096 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3098 * scripttempl/armaout.sc: Place .bss section after end of aligned
3099 data section to match behaviour of aout code in constructrion of
3102 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3104 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3105 startup files for mingw32 dlls to list.
3107 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3109 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3111 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3113 * configure.tgt (targ): Add arm9e-*-elf.
3115 2001-10-05 H.J. Lu <hjl@gnu.org>
3117 * genscripts.sh: Fix a typo in the last change.
3119 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3121 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3122 -z nocombreloc in usage.
3124 2001-10-03 Jim Blandy <jimb@redhat.com>
3126 * genscripts.sh: Include a comment at the top of each generated
3127 script, explaining its purpose.
3129 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3131 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3132 * NEWS: Mention -z nocopyreloc.
3133 * ld.texinfo (Options): Describe nocopyreloc.
3135 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3137 * configure: Regenerate.
3139 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3141 * ldver.h (ld_program_version): Remove declaration.
3142 * lexsup.c (parse_args): Move printing of copyright message..
3143 * ldver.c (ldversion): .. to here.
3144 Use BFD_VERSION_STRING in place of BFD_VERSION.
3145 (ld_program_version): Remove.
3146 * Makefile.am (Makefile): Depend on bfd/configure.in.
3148 * Makefile.in: Regenerate.
3150 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3152 * Makefile.am: Update dependencies with "make dep-am".
3153 * Makefile.in: Regenerate.
3155 2001-09-29 John Reiser <jreiser@BitWagon.com>
3157 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3158 * lexsup.c: Add --no-define-common commandline option.
3159 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3160 * ldlex.l: Likewise.
3161 * ld.h: Add command_line.inhibit_common_definition.
3162 * ldmain.c (main): Initialize.
3163 * ld.texinfo: Document.
3165 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3167 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3169 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3171 * ldmisc.c (USE_STDARG): Remove.
3172 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3177 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3178 declarations. Update copyright.
3180 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3182 * pe-dll.c: Remove obsoleted declaration of
3183 pe_get_data_import_dll_name.
3184 (pe_create_import_fixup): Fix thinko.
3186 * ld.texinfo(enable-auto-import): Clarify the explanation.
3188 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3190 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3191 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3192 DLL_SUPPORT controlled code.
3194 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3196 * emultempl/pe.em(pe_data_import_dll): Make static.
3197 (pe_get_data_import_dll_name): New accessor function.
3198 * pe-dll.c(pe_create_import_fixup): call
3199 pe_get_data_import_dll_name() from pe.em, instead of
3200 directly accessing pe_data_import_dll variable from pe.em.
3202 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3204 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3205 (def_file_add_directive): Use ISSPACE instead of isspace.
3206 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3207 isdigit/isxdigit/isalpha/isalnum.
3208 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3209 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3210 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3211 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3213 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3214 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3216 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3217 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3218 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3219 (ctor_prio): Use ISDIGIT instead of isdigit.
3220 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3221 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3222 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3224 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3225 (stricpy): Use TOLOWER instead of isupper/tolower.
3226 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3227 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3228 (lex_warn_invalid): Use ISPRINT instead of isprint.
3229 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3230 (main): For gettext, also set the LC_CTYPE locate facet.
3231 (add_keepsyms_file): Use ISSPACE instead of isspace.
3232 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3233 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3234 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3235 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3236 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3237 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3238 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3239 (quoteput): Use ISSPACE instead of isspace.
3240 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3243 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3245 * deffilep.y (def_stash_module): Constify "name" param.
3247 * pe-dll.c: Replace CONST with const throughout.
3248 (quick_symbol): Constify "n1", "n2", "n3" params.
3249 (make_singleton_name_thunk): Constify "import" param. Make
3250 "buffer_len" a size_t.
3251 (make_import_fixup_entry): Constify "name", "fixup_name",
3252 "dll_symname" params.
3253 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3254 (pe_get32): Likewise.
3255 (pe_implied_import_dll): Likewise.
3257 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3258 (sort_by_section_name): Likewise.
3260 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3261 (make_import_fixup): Cast printf arg, rel->address to long rather
3263 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3265 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3267 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3268 defines BufferSize. Increase buffer size by one.
3270 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3272 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3274 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3276 * configure.tgt: Add arm-openbsd target.
3278 2001-09-12 H.J. Lu <hjl@gnu.org>
3280 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3282 (ALL_64_EMULATIONS): Here.
3283 * Makefile.in: Regenerated.
3285 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3287 * emultempl/pe.em(make_import_fixup): change signature to
3288 take asection as well as arelec; we need this for proper
3289 error reporting. Only call pe_create_import_fixup() if
3290 there is no attempt to add a constant addend to the reloc;
3291 otherwise, report error condition.
3292 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3293 since final argument is a pointer to make_import_fixup().
3294 Change call to cb() to match make_import_fixup() signature.
3295 (make_import_fixup_mark): make buffer_len unsigned.
3296 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3298 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3300 * ld.texinfo: add verbose documentation for auto-import
3301 direct-addressing workaround, to compliment the terse
3304 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3306 * scripttempl/v850.sc: Add gcc_except_table sections.
3308 2001-09-11 Jeffrey A Law (law@cygnus.com)
3310 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3311 * emulparams/h8300self.sh: Similarly.
3313 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3315 * ld.texinfo (Options, --stack): Correct default value for stack
3318 2001-09-05 Tom Rix <trix@redhat.com>
3320 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3322 2001-09-03 Andreas Jaeger <aj@suse.de>
3324 * emultempl/beos.em: Declare prototypes for comparions functions,
3327 2001-09-02 Andreas Jaeger <aj@suse.de>
3329 * emultempl/aix.em: Add missing prototype.
3330 * emultempl/lnk960.em: Likewise.
3331 * emultempl/vanilla.em: Likewise.
3332 * emultempl/armcoff.em: Likewise.
3333 * emultempl/armelf_oabi.em: Likewise.
3334 * emultempl/beos.em: Likewise.
3335 * emultempl/gld960c.em: Likewise.
3336 * emultempl/gld960.em: Likewise.
3338 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3339 for prototype declaration.
3341 2001-08-31 Eric Christopher <echristo@redhat.com>
3342 Jason Eckhardt <jle@redhat.com>
3344 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3346 2001-08-31 Andreas Jaeger <aj@suse.de>
3348 * emultempl/pe.em: Add missing prototypes.
3349 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3350 pe_find_data_imports.
3351 (pr_sym): Add unused attribute.
3353 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3355 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3356 default from coff to elf.
3358 2001-08-29 Jeff Law <law@redhat.com>
3360 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3362 * emulparams/h8300self.sh: Similarly.
3364 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3366 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3368 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3369 * configure.tgt (h8300-*-elf*): New case.
3370 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3371 * emulparams/h8300self.sh: New file.
3372 * Makefile.in: Regenerated.
3374 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3376 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3379 2001-08-27 Linus Nordberg <linus@swox.com>
3380 Alan Modra <amodra@bigpond.net.au>
3382 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3383 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3385 * Makefile.in: Regenerate.
3386 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3387 entries to correct alphabetical position.
3388 * emulparams/elf64ppc.sh: New.
3389 * emulparams/elf64lppc.sh: New.
3391 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3393 * ldmain.c (main): Declare BSIZE as static.
3395 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3397 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3398 into .rel.dyn resp. .rela.dyn if combreloc.
3399 (get_script): If .x linker script is equal to .xn, only put it
3400 once into the binary.
3401 Add .xc and .xsc scripts.
3402 (parse_args): Handle -z combreloc and -z nocombreloc.
3403 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3404 For .xc and .xsc scripts put all .rel* or .rela* input sections
3405 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3406 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3408 Strip trailing whitespace from script.
3409 Generate .xc and .xsc scripts if requested.
3410 * ldmain.c (main): Initialize link_info.combreloc and
3411 link_info.spare_dynamic_tags.
3412 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3413 (ld_options): Add --spare-dynamic-tags option.
3414 (parse_args): Likewise.
3415 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3416 * ldint.texinfo: Document .xc and .xsc linker scripts.
3417 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3419 2001-08-22 H.J. Lu <hjl@gnu.org>
3421 * emulparams/elf32fr30.sh: Add a newline.
3423 2001-08-21 Andreas Jaeger <aj@suse.de>
3425 * deffilep.y: Add missing prototypes.
3426 * pe-dll.c: Likewise.
3428 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3430 * ldlang.c (insert_pad): Fix typos in last patch.
3432 * ldlang.c: When traversing lang_statement_union_type lists,
3433 consistently use "header.next" rather than "next".
3434 * mpw-eppcmac.c: Likewise.
3435 * emultempl/beos.em: Likewise.
3436 * emultempl/hppaelf.em: Likewise.
3437 * emultempl/pe.em: Likewise.
3438 * ldlang.h (union lang_statement_union): Remove "next" field.
3440 * ldlang.c (insert_pad): Use offsetof macro.
3441 (lang_size_sections): Always neuter padding statements.
3442 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3444 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3445 passed to lang_size_sections.
3446 (pe_exe_fill_sections): Likewise.
3447 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3448 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3450 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3452 * emultempl/aix.em: Formatting fixes.
3454 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3456 * ldlang.c (insert_pad): Make use of an existing pad statement if
3457 available. Move code calculating alignment, adjusting section
3458 alignment power, and adjusting dot to ..
3459 (size_input_section): .. here. Remove unused relax param.
3460 (lang_size_sections): Change boolean `relax' param to boolean *.
3461 Adjust call to size_input_section. Make use of insert_pad to
3462 place pad after the assignment statement. If relaxing, zap
3464 (reset_memory_regions): Reset output_bfd section sizes too.
3465 (relax_again): Move to..
3466 (lang_process): ..here. Adjust call to lang_size_sections, and
3467 remove duplicated code.
3468 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3470 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3472 * ld.texinfo: Document that fill values now use the four least
3474 * emulparams/elf32fr30.sh (NOP): Update.
3475 * emulparams/elf32mcore.sh: Likewise.
3476 * emulparams/elf64_s390.sh: Likewise.
3477 * emulparams/elf_i386.sh: Likewise.
3478 * emulparams/elf_i386_be.sh: Likewise.
3479 * emulparams/elf_i386_chaos.sh: Likewise.
3480 * emulparams/elf_i386_ldso.sh: Likewise.
3481 * emulparams/elf_s390.sh: Likewise.
3482 * emulparams/elf_x86_64.sh: Likewise.
3483 * emulparams/i386moss.sh: Likewise.
3484 * emulparams/i386nw.sh: Likewise.
3485 * emulparams/m68kelf.sh: Likewise.
3486 * scripttempl/elf.sc: Update NOP comment.
3487 * scripttempl/elfi370.sc: Likewise.
3488 * scripttempl/elfm68hc11.sc: Likewise.
3489 * scripttempl/elfm68hc12.sc: Likewise.
3490 * scripttempl/nw.sc: Likewise.
3492 2001-08-15 Tom Rix <trix@redhat.com>
3494 * ldgram.y (saved_script_handle): Initialize to NULL.
3495 * ldmain.c (main): Change check on saved_script_handle.
3497 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3499 * emultempl/elf32.em: Formatting fixes.
3500 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3501 looking at sec->owner.
3502 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3503 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3504 unused code, and reorganize orphan section placement code.
3506 * ldlang.c (wild_doit): Rename to lang_add_section.
3507 * ldlang.h: Here too.
3508 * mpw-elfmips.c: And here.
3509 * emultempl/beos.em: And here.
3510 * emultempl/elf32.em: And here.
3511 * emultempl/hppaelf.em: And here.
3512 * emultempl/pe.em: And here.
3514 2001-08-13 Richard Henderson <rth@redhat.com>
3516 * emultempl/needrelax.em: New file.
3517 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3518 * Makefile.am (eelf64_ia64.c): Depend on it.
3519 * Makefile.in: Rebuild.
3521 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3523 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3524 output_section is set non-NULL.
3526 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3527 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3528 needlessly create an output_section_statement. Treat a correctly
3529 named output_section_statement with NULL bfd_section as compatible.
3531 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3533 * emultempl/generic.em: Support EXTRA_EM_FILE.
3534 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3535 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3536 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3537 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3538 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3539 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3540 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3541 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3542 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3543 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3545 2001-08-12 Richard Henderson <rth@redhat.com>
3547 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3548 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3549 scripttempl/v850.sc: Keep .jcr data.
3551 2001-08-12 H.J. Lu <hjl@gnu.org>
3552 Andrew Haley <aph@cambridge.redhat.com>
3553 Nick Clifton <nickc@redhat.com>
3555 * ldgram.y (had_script): Change name to saved_script_handle.
3556 Change type to file handle.
3557 * ld.h (had_script): Rename and retype.
3558 * ldfile.c (ldfile_open_command_file): Save the file handle
3559 used in saved_script_handle.
3560 * lexsup.c (parse_args): Do not allow -c option to alter
3561 saved_script_handle.
3562 * ldmain.c (main): Print out the linker script used if
3563 --verbose is given. Check saved_script_handle to obtain the
3564 external linker script used, or if NULL, dump the builtin
3566 * ld.texinfo: Document that --verbose now dumps the linker
3567 script used, regardless of whether it was an internal or an
3570 2001-08-10 Andreas Jaeger <aj@suse.de>
3572 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3574 * configure: Regenerate.
3576 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3578 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3580 * scripttempl/elf.sc: Move non-text .dynamic section before
3581 .plt/.got/.sdata* group.
3582 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3583 (OTHER_SDATA_SECTIONS): Add.
3584 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3586 * emulparams/crislinux.sh: Likewise.
3587 * emulparams/elf32b4300.sh: Likewise.
3588 * emulparams/elf32bmip.sh: Likewise.
3589 * emulparams/elf32bmipn32.sh: Likewise.
3590 * emulparams/elf32bsmip.sh: Likewise.
3591 * emulparams/elf32btsmip.sh: Likewise.
3592 * emulparams/elf32ebmip.sh: Likewise.
3593 * emulparams/elf32elmip.sh: Likewise.
3594 * emulparams/elf32l4300.sh: Likewise.
3595 * emulparams/elf32lmip.sh: Likewise.
3596 * emulparams/elf32lsmip.sh: Likewise.
3597 * emulparams/elf32ltsmip.sh: Likewise.
3598 * emulparams/elf64bmip.sh: Likewise.
3599 * emulparams/elf64btsmip.sh: Likewise.
3600 * emulparams/elf64ltsmip.sh: Likewise.
3602 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3604 * genscripts.sh: Source the emulparams script before each output
3605 script is generated so that variables like `RELOCATING' may affect
3606 variables defined in the emulparams script.
3608 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3610 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3613 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3614 ie. iterate over wild_statement.section_list.
3615 (gld${EMULATION_NAME}_place_orphan): Likewise.
3617 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3619 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3620 .fini[0-4] sections used by _exit
3621 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3622 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3623 * scripttempl/elfm68hc11.sc: Likewise.
3625 2001-08-03 H.J. Lu <hjl@gnu.org>
3627 * emultempl/beos.em (init): Add the missing initialization.
3629 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3631 * ld.texinfo (Input Section Basics): Clarify ordering of output
3633 * ldlang.c (callback_t): Add wildcard_list param.
3634 (walk_wild_section): Remove "section" param. Rewrite for
3635 lang_wild_statement_type change. Remove unique_section_p test.
3636 (walk_wild_file): Remove "section" param.
3637 (walk_wild): Remove "section" and "file" params.
3638 (lang_gc_wild): Likewise.
3639 (wild): Likewise. Modify for lang_wild_statement_type change.
3640 (wild_sort): Likewise. Add "sec" param.
3641 (gc_section_callback): Likewise.
3642 (output_section_callback): Likewise. Do unique_section_p test.
3643 (map_input_to_output_sections): Modify call to wild.
3644 (lang_gc_sections_1): Likewise.
3645 (print_wild_statement): Modify for lang_wild_statement_type
3647 (lang_add_wild): Replace filename, filenames_sorted param with
3648 filespec. Replace section_name, sections_sorted,
3649 exclude_filename_list with section_list.
3650 * ldlang.h (lang_add_wild): Here too.
3651 (lang_wild_statement_type): Replace section_name, sections_sorted,
3652 and exclude_filename_list with section_list.
3653 * ldgram.y (current_file): Delete.
3654 (%union): Add wildcard_list.
3655 (file_NAME_list): Set type to wildcard_list. Build a linked list
3656 rather than calling lang_add_wild for each entry.
3657 (input_section_spec_no_keep): Call lang_add_wild here instead.
3658 * ld.h (struct wildcard_list): Declare.
3659 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3661 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3663 * ldmain.c (main): initialize link_info.pei386_auto_import
3664 * pe-dll.c: new tables for auto-export filtering
3665 (auto_export): change API, pass abfd for contextual filtering.
3666 Loop thru tables of excluded symbols instead of comparing
3669 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3671 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3672 static variable current_sec (static struct sec *). Add
3673 forward declaration for add_bfd_to_link.
3674 (process_def_file): Don't export undefined symbols. Do not
3675 export symbols starting with "_imp__". Call auto_export()
3677 (pe_walk_relocs_of_symbol): New function.
3678 (generate_reloc): add optional extra debugging
3679 (pe_dll_generate_def_file): eliminate extraneous initial blank
3681 (make_one): enlarge symtab to make room for __nm__ symbols
3682 (DATA auto-import support).
3683 (make_singleton_name_thunk): New function.
3684 (make_import_fixup_mark): New function.
3685 (make_import_fixup_entry): New function.
3686 (pe_create_import_fixup): New function.
3687 (add_bfd_to_link): Specify that 'name' argument is a CONST
3689 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3690 declare new functions pe_walk_relocs_of_symbol and
3691 pe_create_import_fixup.
3692 * emultempl/pe.em: add new options --enable-auto-import,
3693 --disable-auto-import, and --enable-extra-pe-debug.
3694 (make_import_fixup): New function.
3695 (pe_find_data_imports): New function.
3696 (pr_sym): New function.
3697 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3698 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3701 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3703 * ld.texinfo: add additional documentation for
3704 --export-all-symbols. Document --out-implib,
3705 --enable-auto-image-base, --disable-auto-image-base,
3706 --dll-search-prefix, --enable-auto-import, and
3707 --disable-auto-import.
3708 * ldint.texinfo: Add detailed documentation on auto-import
3711 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3713 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3716 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3718 * Makefile.am: Update dependencies with "make dep-am".
3719 * Makefile.in: Regenerate
3721 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3723 * ldcref.c (check_section_sym_xref): New function.
3724 (check_nocrossrefs): Call it.
3725 (check_nocrossref): Interate over h->refs here instead of..
3726 (check_refs): ..here. Pass in the symbol name, section, and bfd
3727 rather than hash_entry pointers.
3728 (struct check_refs_info): Keep symbol name rather than hash entry.
3730 (check_reloc_refs): Tweak for above changes in check_refs_info.
3731 Only report references to section syms when symname is NULL to
3732 prevent duplicate messages for the same reloc.
3734 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3736 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3737 available. Do not print NULL trees.
3738 (exp_print_token): Print unknown tokens with values > 126 as
3739 decimal values not ASCII characters.
3741 * ldlang.c (lang_leave_overlay): If a region is specified assign
3742 it to all sections inside the overlay unless they have been
3743 assigned to the own, non-default, memory region.
3745 * README: Add header for consistency with other README files.
3747 2001-07-14 H.J. Lu <hjl@gnu.org>
3749 * emultempl/elf32.em (output_prev_sec_find): Never return
3750 bfd_abs_section_ptr, bfd_com_section_ptr nor
3751 bfd_und_section_ptr.
3753 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3755 * Makefile.am (em32relf.c): Change dependency from generic.em to
3757 * Makefile.in: Regenerate.
3759 2001-07-14 matthew green <mrg@eterna.com.au>
3761 * configure.tgt (i386-*-netbsdelf*): New target.
3762 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3764 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3766 * emultempl/elf32.em (output_prev_sec_find): New.
3767 (place_orphan): Use it.
3769 2001-07-11 H.J. Lu <hjl@gnu.org>
3771 * ldmain.c (main): Fix typos in the last change.
3773 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3775 * ldmain.c (main): Disallow -F and -f without -shared.
3777 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3779 * emultempl/pe.em (after_open): Check for the output_bfd not
3780 having any coff_data structure allocated to it.
3782 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3784 * emultempl/elf32.em: Do not assuming that contents of the buffer
3785 returned from basename function will remain unchanged accross other
3788 2001-07-03 H.J. Lu <hjl@gnu.org>
3790 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3791 2001-07-03. It creates dynamic entries even for static binaries.
3793 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3795 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3796 (DYNAMIC): Use it to reserve few dynamic entries for
3799 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3801 * emulparams/hppa64linux.sh: New file.
3802 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3803 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3804 (ehppa64linux.c): Add rule to make it.
3806 * Makefile.in: Regenerate.
3808 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3810 * ld.texinfo (Options, -r): Mention restrictions when using
3811 different object formats.
3813 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3815 * ldlang.c (lang_check): Emit fatal error if relocatable link
3816 between different object flavours with relocations in input.
3818 2001-06-19 H.J. Lu <hjl@gnu.org>
3820 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3821 (--version-script): Mention the language support.
3823 2001-06-19 H.J. Lu <hjl@gnu.org>
3825 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3827 2001-06-18 H.J. Lu <hjl@gnu.org>
3829 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3830 (diststuff): Add $(MANS).
3831 * Makefile.in: Regenerated.
3835 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3837 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3838 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3839 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3840 * ld.h (args_type): Remove member export_dynamic. All users
3841 changed to use struct bfd_link_info member.
3843 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3844 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3845 * Makefile.in: Regenerate.
3847 2001-06-18 H.J. Lu <hjl@gnu.org>
3849 * ldlang.c (init_os): Add the newline to the einfo call.
3850 (lang_check): Likewise.
3851 (lang_do_version_exports_section): Likewise.
3853 2001-06-15 H.J. Lu <hjl@gnu.org>
3855 * lexsup.c (parse_args); Save optind to report unrecognized
3858 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3860 * ldlang.c (lang_check): Emit fatal error if relocatable link
3861 between different object flavours.
3863 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3864 Set new link_info member export_dynamic.
3865 * ldmain.c (main): Initialize new link_info member export_dynamic.
3867 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3869 * ldlang.c (walk_wild): Only call walk_wild_file if
3870 lookup_name returns something.
3871 (lookup_name): If load_symbols fails, return NULL.
3872 (load_symbols): Change to a boolean function.
3873 (open_input_bfds): If load_symbols fails then do not make the
3876 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3878 * ldlang.c (record_bfd_errors): Remove.
3880 * emultempl/aix.em: Fix copyright dates.
3882 2001-06-07 Andreas Jaeger <aj@suse.de>
3884 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3885 (TEXT_START_ADDR): Likewise.
3887 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3889 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3891 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3893 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3895 2001-05-31 H.J. Lu <hjl@gnu.org>
3897 * ldlang.c (open_input_bfds): Don't change the bfd error
3898 handler whilst loading symbols.
3900 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3902 * configure.tgt: Remove i370-mvs architecture, it is not currently
3905 2001-05-25 H.J. Lu <hjl@gnu.org>
3907 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3908 like emulparams/aixppc.sh.
3910 2001-05-25 H.J. Lu <hjl@gnu.org>
3912 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3913 setting of output_filename after bfd_scan_arch.
3914 * emultempl/pe.em: Likewise.
3916 2001-05-25 H.J. Lu <hjl@gnu.org>
3918 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3919 like emulparams/aixppc.sh.
3921 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3922 instead of ${srcdir}/emultempl/stringify.sed.
3924 2001-05-25 Timothy Wall <twall@oculustech.com>
3926 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3929 2001-05-25 Alan Modra <amodra@one.net.au>
3931 * configure.host: Replace linuxoldld with linux*oldld.
3932 * configure.tgt: Likewise.
3934 2001-05-24 H.J. Lu <hjl@gnu.org>
3936 * emultempl/stringify.sed: Removed again.
3938 2001-05-24 H.J. Lu <hjl@gnu.org>
3940 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3941 (gld${EMULATION_NAME}_before_parse): Initialize
3942 ldfile_output_architecture, ldfile_output_machine and
3943 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3944 * emultempl/beos.em: Likewise.
3945 * emultempl/elf32.em: Likewise.
3946 * emultempl/linux.em: Likewise.
3947 * emultempl/mipsecoff.em: Likewise.
3948 * emultempl/pe.em: Likewise.
3949 * emultempl/sunos.em: Likewise.
3951 2001-05-24 Tom Rix <trix@redhat.com>
3953 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3954 udate import file format.
3955 (change_symbol_mode) New, same
3956 (is_syscall) New, same
3957 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3958 * emulparams/aixppc64.sh : same
3959 * emulparams/aixrs6.sh : same
3960 * emulparams/ppcmacos.sh : same
3961 * emultempl/aix.em : use strtoull to parse options
3962 * Makefile.am : add eaixppc64 emulation for xcoff64
3963 * Makefile.in : same
3964 * configure.tgt : same
3966 * scripttempl/aix.sc : default text section offset to 0x10000000
3967 default data section offset to 0x20000000
3968 add .sv3264 and .sv64 pseudo sections
3969 loader and debug sections use the currect section offset.
3971 * emultempl/aix.em : Add xcoff64 support
3972 Add -binitfini support
3973 (gld${EMULATION_NAME}_before_parse) -binitfini
3974 (gld${EMULATION_NAME}_parse_args) same
3975 (gld${EMULATION_NAME}_before_allocation) format change for special
3978 * emulparams/aixppc64.sh : New file for xcoff64 support
3980 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3982 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3983 variable to avoid non-portable shell construct.
3985 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3987 * ldmain.c (get_emulation): Add -mips5 command line argument.
3989 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3991 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3992 (ELF_INTERPRETER_NAME): Define it.
3993 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3995 * configure.tgt (targ_emul, targ_extra_emuls)
3996 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3997 as primary, elf_i386 as extra.
3998 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3999 (eelf_i386_ldso.c): New rule.
4000 * Makefile.in: Rebuilt.
4002 2001-05-22 Nick Clifton <nickc@redhat.com>
4004 * lexsup.c (ld_options): Allow -I to be an alias for
4005 --dynamic-linker. This is for Solaris compatability.
4006 * ld.texinfo: Document that -I can be used.
4009 2001-05-16 Alan Modra <amodra@one.net.au>
4011 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4012 whether an input section is the first one assigned to an output
4014 Assorted formatting fixes.
4016 2001-05-14 DJ Delorie <dj@delorie.com>
4018 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4019 * Makefile.in: Ditto.
4021 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4023 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4024 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4026 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4028 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4030 * ldlang.c (lang_process): Call bfd_merge_sections.
4032 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4034 * ldgram.y: Fix typo.
4036 2001-05-03 H.J. Lu <hjl@gnu.org>
4038 * emultempl/elf32.em: Include "libiberty.h".
4039 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4040 basename of the bfd filename.
4041 (gld${EMULATION_NAME}_stat_needed): Likewise.
4042 (gld${EMULATION_NAME}_try_needed): Likewise.
4043 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4045 2001-05-02 H.J. Lu <hjl@gnu.org>
4047 * emultempl/pe.em: Include <ctype.h>.
4049 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4051 * emulparams/elf32openrisc.sh: New file.
4053 * Makefile.am: Add OpenRISC target.
4054 * Makefile.in: Regenerated.
4056 * configure.tgt: Add openrisc-*-* mapping.
4058 2001-05-02 Nick Clifton <nickc@redhat.com>
4060 * emultempl/aix.em: Replace buystring with xstrdup.
4061 * emultempl/beos.em: Replace buystring with xstrdup.
4063 2001-05-02 H.J. Lu <hjl@gnu.org>
4065 * ldfile.c: Include "libiberty.h".
4066 * ldlex.l: Likewise.
4068 * ldmisc.c (buystring): Removed.
4069 * ldmisc.h: Likewise.
4071 * ldfile.c: Replace buystring with xstrdup.
4072 * ldlang.c: Likewise.
4073 * ldlex.l: Likewise.
4074 * ldmain.c: Likewise.
4075 * ldmisc.c: Likewise.
4076 * lexsup.c: Likewise.
4077 * mpw-eppcmac.c: Likewise.
4079 2001-04-30 Andreas Jaeger <aj@suse.de>
4081 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4083 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4085 * ldlang.c (load_symbols): Give emulation a chance
4086 to process unrecognized file before fatal error is
4087 reported, not after.
4089 2001-04-27 Sean McNeil <sean@mcneil.com>
4091 * configure.tgt: Add arm-vxworks target.
4092 * scripttempl/armcoff.sc: Support .text or .data as a section name
4096 2001-04-13 J.T. Conklin <jtc@redback.com>
4098 * ld.texinfo: Document --fatal-warnings.
4101 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4102 warnings have been turned into errors.
4103 * lexsup.c (OPTION_WARN_FATAL): Define.
4104 (ld_options): Entry for --fatal-warnings.
4105 (parse_args): Handle OPTION_WARN_FATAL.
4106 * ld.h (ld_config_type): Add fatal_warnings field.
4108 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4110 * ldmain.c (main): Default to discard_sec_merge.
4111 * lexsup.c (OPTION_DISCARD_NONE): Define.
4112 (ld_options): Add --discard-none.
4113 (parse_args): Handle OPTION_DISCARD_NONE.
4114 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4115 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4116 all its input sections match.
4118 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4120 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4121 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4122 (eelf32ltsmip.c): New target.
4123 (eelf64btsmip.c): Likewise.
4124 (eelf64ltsmip.c): Likewise.
4125 * Makefile.in: Regenerated.
4127 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4129 (mips*-*-linux-gnu*): Likewise.
4131 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4133 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4135 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4138 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4140 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4141 correct value of __Stext here.
4142 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4145 * emulparams/crislinux.sh: Remove FIXME.
4147 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4149 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4150 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4152 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4154 * configure.tgt (cris-*-*): Change default emulation to criself.
4155 (cris-*-*aout*): New rule.
4157 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4159 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4160 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4162 2001-03-26 Andreas Jaeger <aj@suse.de>
4164 * ld.texinfo (Overview): Fix syntax in texi code.
4166 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4168 * ld.texinfo: Put @c man indications to generate the ld man page.
4169 When generating man, define all the variables. Define SEEALSO
4170 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4171 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4172 (ld.1): Generate from ld.texinfo.
4173 * Makefile.in: Regenerate.
4175 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4177 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4178 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4180 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4182 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4183 is an absolute path look only for this file and not along the path.
4185 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4187 * emultempl/elf32.em (OPTION_GROUP): New macro.
4188 Add new option Bgroup to longopts.
4189 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4190 (gld*_list_options): Add -Bgroup and -z defs.
4191 * ld.1: Document -Bgroup and -z defs.
4192 * ld.texinfo: Likewise.
4194 2001-03-07 Michael Meissner <meissner@redhat.com>
4196 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4197 with sections created by -fdata-sections.
4198 (.dynbss,.bss): Ditto.
4200 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4202 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4203 after_allocation_default, not gld..._before_allocation.
4205 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4207 * configure.in (BFD_VERSION): New.
4208 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4209 * configure: Regenerate.
4210 * Makefile.am: Run "make dep-am"
4211 * Makefile.in: Regenerate.
4213 2001-02-26 Timothy Wall <twall@cygnus.com>
4215 * emulparams/elf64_aix.sh: Add additional read-only sections;
4216 uncomment lines which are now required.
4218 2001-02-26 H.J. Lu <hjl@gnu.org>
4220 * ldlang.c (open_input_bfds): Set the bfd error handler so
4221 that problems can be caught whilst loading symbols.
4222 (record_bfd_errors): New function: Report BFD errors and mark
4223 the executable output as being invalid.
4225 2001-02-22 Timothy Wall <twall@cygnus.com>
4227 * configure.host: Add configuration for ia64-*-aix*.
4228 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4229 Add dependencies for eelf64_aix.c.
4230 * Makefile.in: Regenerate.
4231 * configure.tgt: Add ia64-*-aix* mapping.
4232 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4234 2001-02-20 H.J. Lu <hjl@gnu.org>
4236 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4237 false if we found the file.
4239 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4241 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4242 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4244 2001-02-18 lars brinkhoff <lars@nocrew.org>
4246 * Makefile.am: Add PDP-11 target.
4247 * configure.tgt: Likewise.
4248 * emulparams/pdp11.sh: New file.
4250 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4252 * configure.host: Add a generic FreeBSD configuration entry such that
4253 all [modern] FreeBSD systems on all platforms will look the same.
4255 2001-02-14 H.J. Lu <hjl@gnu.org>
4257 * configure.tgt: Remove mention of earmelf_linux26.
4259 2001-02-13 Richard Henderson <rth@redhat.com>
4261 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4263 2001-02-13 H.J. Lu <hjl@gnu.org>
4265 * ldexp.h (node_type): Add etree_provided.
4266 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4267 type to etree_provided if defined by PROVIDE. Allow updating
4269 (exp_print_tree): Handle etree_provided.
4270 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4273 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4275 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4276 .IA_64.unwind.* pattern to unwind table section and
4277 .IA_64.unwind_info* pattern to unwind info section.
4279 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4281 * Makefile.am: Add linux target for S/390.
4282 * Makefile.in: Likewise.
4283 * configure.host: Likewise.
4284 * configure.tgt: Likewise.
4285 * emulparams/elf64_s390.sh: New file.
4286 * emulparams/elf_s390.sh: New file.
4288 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4290 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4292 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4294 2001-02-06 Philip Blundell <philb@gnu.org>
4296 * Makefile.am: Remove mention of earmelf_linux26.
4297 * Makefile.in: Regenerate.
4299 2001-02-04 Philip Blundell <philb@gnu.org>
4301 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4302 * emulparams/armelf_linux26.sh: Delete.
4303 * configure.tgt: Remove mention of armelf_linux26 emulation.
4305 2001-02-01 Nick Clifton <nickc@redhat.com>
4307 * ld.1: Replace occurances of -oformat with --oformat.
4309 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4311 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4312 load_base is specified.
4314 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4316 * emultempl/elf32.em: Correct spelling in comments and listed
4319 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4321 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4322 default for the first section of a group of overlay sections.
4324 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4326 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4327 * Makefile.in: Regenerate.
4328 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4329 Check for null tool_dir.
4331 2001-01-16 Jim Wilson <wilson@redhat.com>
4333 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4334 and IA_64.unwind.info.
4336 2001-01-16 H.J. Lu <hjl@gnu.org>
4338 * ldlang.c (lang_check): Merge the private data only if the
4339 input file has contents.
4341 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4343 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4345 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4346 enabling search for libmilli. On a relocatable link, make .text
4348 (LDEMUL_AFTER_PARSE): Define.
4349 (hppaelf_finish): Correct spelling of relocatable in comments.
4351 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4352 rummage through the script for sections on the unique list.
4353 Correct length of strncmp for ".note".
4354 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4356 * ldlang.c (unique_section_list): New var.
4357 (unique_section_p): New function.
4358 (walk_wild_section): Don't match sections on unique_section_list.
4359 (lang_add_unique): New function.
4360 Correct spelling of relocatable in comments.
4362 * ldlang.h (struct unique_sections): Declare.
4363 (unique_section_list): Declare.
4364 (unique_section_p): Declare.
4365 (lang_add_unique): Declare.
4367 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4368 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4370 * ld.texinfo (--unique): Update.
4372 2001-01-13 Nick Clifton <nickc@redhat.com>
4374 * lexsup.c (parse_args): Remove spurious white space.
4376 2001-01-12 Nick Clifton <nickc@redhat.com>
4378 * lexsup.c (parse_args): Update copyright date.
4380 2001-01-12 Philip Blundell <pb@futuretv.com>
4382 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4384 2001-01-10 Kazu Hirata <kazu@hxi.com>
4386 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4387 * scripttempl/h8300h.sc: Fix formatting.
4388 * scripttempl/h8300s.sc: Likewise.
4389 * scripttempl/h8500.sc: Likewise.
4390 * scripttempl/h8500b.sc: Likewise.
4391 * scripttempl/h8500c.sc: Likewise.
4392 * scripttempl/h8500m.sc: Likewise.
4393 * scripttempl/h8500s.sc: Likewise.
4395 2000-01-07 David O'Brien <obrien@BSDi.com>
4397 * emultempl/elf32.em: Only perform Linux ld hints processing when
4400 2001-01-07 Philip Blundell <philb@gnu.org>
4402 * ld.texinfo (Bug Reporting): Update email address for reports.
4404 2000-12-31 Nick Clifton <nickc@redhat.com>
4406 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4407 options by checking for a return value of '?' not -1.
4409 2000-12-28 Nick Clifton <nickc@redhat.com>
4411 * lexsup.c (struct ld_option): Add new enum value:
4413 (ld_options[]): Change -omagic, -output and -oformat options
4414 to be EXACTLY_TWO_DASHES.
4415 (OUTPUT_COUNT): Use ARRAY_SIZE.
4416 (parse_args): Change parameter 'argc' to unsigned.
4417 Place EXACTLY_TWO_DASHES options into new really_longopts
4419 If getopt_long_only fails, try calling getopt_long using the
4420 really_longopts array.
4421 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4424 * ldlex.h: Fix prototype of parse_args.
4426 * ld.texinfo: Document that long options starting with 'o'
4427 must be preceeded by two dashes. Change example of a single
4428 dashed long option from -oformat to -trace-symbol.
4430 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4432 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4433 (longopts[]): New --no-default-excludes option.
4434 (gld_${EMULATION_NAME}_list_options): Document.
4435 (gld_${EMULATION_NAME}_parse_args): Handle.
4437 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4439 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4440 whitespace, it breaks the K&R C preprocessor.
4442 2000-12-11 DJ Delorie <dj@redhat.com>
4444 * ld.texinfo: Add notes about --whole-archive and gcc.
4446 2000-11-18 Fred Fish <fnf@be.com>
4448 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4449 (ld_options): Entry for --allow-shlib-undefined.
4450 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4451 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4453 * ld.texinfo: Document new command line switch.
4455 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4457 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4458 .fixup is actually read/write.
4459 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4460 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4461 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4463 2000-12-11 Jan Hubicka <jh@suse.cz>
4465 * NEWS: Add note about x86_64 architecture.
4467 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4469 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4470 Set DWARF2 sections to a VMA of zero.
4472 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4474 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4476 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4477 (sparc*-*-rtems*): Switched from a.out to ELF.
4479 2000-11-30 Jan Hubicka <jh@suse.cz>
4481 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4482 (eelf_x86_64.c): New.
4483 * Makefile.in: Regenerate.
4484 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4485 * emulparams/elf_x86_64.sh: New.
4487 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4489 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4490 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4492 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4493 merging non-a.out sections into CONSTRUCTING.
4495 2000-11-28 Nick Clifton <nickc@redhat.com>
4497 * ld.1 (COPYING): Mention that the GNU Free Documentation
4498 License is present in the sources, but not the output, and
4499 also available from the GNU website.
4500 (GNU Free Documentation License): Comment out this section.
4502 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4504 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4507 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4509 * ld.1: Remove old date so it does not give the impression the manpage
4512 2000-11-24 Nick Clifton <nickc@redhat.com>
4514 * configure.tgt (xscale-coff): Add target.
4515 (xscale-elf): Add target.
4517 2000-11-24 Fred Fish <fnf@be.com>
4519 * ldmain.c (main): Remove redundant init of config.make_executable
4522 2000-11-15 Richard Henderson <rth@redhat.com>
4524 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4526 2000-11-14 Kazu Hirata <kazu@hxi.com>
4528 * scripttempl/h8300.sc: Fix formatting.
4529 * scripttempl/h8300h.sc: Likewise.
4530 * scripttempl/h8300s.sc: Likewise.
4532 2000-11-14 Denis Chertykov <denisc@overta.ru>
4534 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4536 2000-11-09 Philip Blundell <pb@futuretv.com>
4538 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4539 around orphan sections whose names can be represented in C.
4541 2000-11-07 Jim Wilson <wilson@redhat.com>
4543 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4544 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4546 2000-11-06 Nick Clifton <nickc@redhat.com>
4548 * ld.texinfo: Add GNU Free Documentation License.
4549 * ldint.texinfo: Add GNU Free Documentation License.
4550 * ld.1: Add GNU Free Documentation License.
4552 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4554 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4555 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4557 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4558 Move 2000-11-02 Makefile.in changes to this file.
4559 * Makefile.in: Regenerate.
4561 2000-11-03 Nick Clifton <nickc@redhat.com>
4563 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4564 constructors and destructors.
4565 * scripttempl/h8300h.sc: Ditto.
4566 * scripttempl/h8300s.sc: Ditto.
4567 * scripttempl/h8500.sc: Ditto.
4568 * scripttempl/h8500b.sc: Ditto.
4569 * scripttempl/h8500c.sc: Ditto.
4570 * scripttempl/h8500m.sc: Ditto.
4571 * scripttempl/h8500s.sc: Ditto.
4572 * scripttempl/v850.sc: Ditto.
4573 * scripttempl/w65.sc: Ditto.
4574 * scripttempl/z8000.sc: Ditto.
4576 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4578 * Makefile.in (e_i386_chaos.c): New rule.
4579 (ALL_EMULATIONS): Added e_i386_chaos.o.
4580 * emulparams/elf_i386_chaos.sh: New file.
4581 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4583 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4585 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4586 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4587 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4588 library path suffix.
4589 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4591 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4593 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4594 for consecutive sections.
4596 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4598 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4600 * ld.texinfo: Added notes about this new option.
4602 2000-10-16 Nick Clifton <nickc@redhat.com>
4604 * emultempl/pe.em (_after_open): Add tests of return values from
4605 bfd functions. Emit appropriate error messages if necessary.
4607 2000-10-13 Nick Clifton <nickc@redhat.com>
4609 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4610 local variables - they are not used, but leave in the call to
4611 bfd_canonicalize_symtab.
4612 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4613 pe_dll_search_prefix.
4615 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4617 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4618 (longopts): New --dll-search-prefix option.
4619 (gld_${EMULATION_NAME}_list_options): Document.
4620 (gld_${EMULATION_NAME}_parse_args): Handle.
4621 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4622 dynamically, search for a dll named '<prefix><basename>.dll'
4623 in preference to 'lib<basename>.dll' if --dll-search-prefix
4626 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4628 * ldlang.c (section_already_linked): Set kept_section instead of
4631 2000-10-10 Kazu Hirata <kazu@hxi.com>
4633 * deffile.h: Fix formatting.
4634 * lexsup.c: Likewise.
4637 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4639 * pe-dll.c (make_one): Do not generate code thunk for DATA
4641 (process_def_file): deduce DATA flag for auto-export sumbols.
4643 2000-10-09 Kazu Hirata <kazu@hxi.com>
4645 * ld.h: Fix formatting.
4646 * ldcref.c: Likewise.
4647 * ldctor.h: Likewise.
4648 * ldemul.c: Likewise.
4649 * ldemul.h: Likewise.
4650 * ldexp.c: Likewise.
4651 * ldexp.h: Likewise.
4652 * ldfile.c: Likewise.
4653 * ldfile.h: Likewise.
4654 * ldlang.c: Likewise.
4655 * ldlang.h: Likewise.
4656 * ldmain.c: Likewise.
4657 * pe-dll.c: Likewise.
4659 * pe-dll.c: Revert some formatting fixes.
4661 2000-10-08 Kazu Hirata <kazu@hxi.com>
4663 * pe-dll.c: Fix formatting.
4665 2000-10-05 Kazu Hirata <kazu@hxi.com>
4667 * ldlang.c: Fix formatting.
4669 2000-10-03 DJ Delorie <dj@redhat.com>
4671 * pe-dll.c (fill_edata): initialize entire block
4672 (make_one): fill in correct section.
4674 2000-10-03 Kazu Hirata <kazu@hxi.com>
4676 * ldexp.c: Fix formatting.
4678 2000-10-02 DJ Delorie <dj@redhat.com>
4680 * emultempl/pe.em (gld_*_after_open): detect case where there two
4681 import libraries for same dll; rename one to ensure proper link
4684 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4686 (generate_edata): fix typo
4688 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4690 * scripttempl/crisaout.sc (ENTRY): Now __start.
4691 (.text): Add default setting for __start.
4692 Remove CONSTRUCTORS handling.
4693 (/DISCARD/): Add .gnu.warning.*.
4694 * emulparams/crislinux.sh (ENTRY): Now __start.
4695 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4696 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4697 (ENTRY): Now __start.
4698 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4699 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4701 2000-09-29 Kazu Hirata <kazu@hxi.com>
4703 * deffile.h: Fix formatting.
4705 * ldcref.c: Likewise.
4706 * ldctor.c: Likewise.
4707 * ldctor.h: Likewise.
4708 * ldemul.c: Likewise.
4709 * ldemul.h: Likewise.
4710 * ldexp.c: Likewise.
4711 * ldexp.h: Likewise.
4712 * ldfile.c: Likewise.
4713 * ldfile.h: Likewise.
4714 * ldlang.c: Likewise.
4715 * ldlang.h: Likewise.
4716 * lexsup.c: Likewise.
4718 * pe-dll.c: Likewise.
4720 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4722 * pe-dll.c (process_def_file): Uninitialized data wasn't
4723 exported with --export-all-symbols switch.
4725 2000-09-28 DJ Delorie <dj@redhat.com>
4727 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4728 noname work properly.
4730 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4732 * ld.texinfo (HPPA ELF32): New section.
4734 * emultempl/hppaelf.em (group_size): New.
4735 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4736 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4737 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4738 options to prevent abbreviations matching.
4739 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4740 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4742 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4744 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4745 on the m68*-*-elf target. Make it support COFF input objects.
4747 2000-09-21 Kazu Hirata <kazu@hxi.com>
4749 * ldmain.c: Fix formatting.
4750 * ldmisc.c: Likewise.
4751 * ldver.c: Likewise.
4752 * ldwrite.c: Likewise.
4754 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4756 * ldwrite.c (clone_section): Silence gcc warnings.
4758 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4760 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4761 out of memory failure.
4763 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4764 (clone_section): Handle out of memory failures. Rename var to
4765 avoid c++ reserved word.
4767 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4769 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4770 stub_name param to stub_sec_name.
4771 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4773 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4775 * emultempl/m68kelf.em: New file.
4776 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4777 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4778 * Makefile.in: Regenerate.
4780 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4782 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4785 2000-09-13 Nick Clifton <nickc@redhat.com>
4787 * ldmain.c (multiple_definition): Disable relaxation if
4788 multiple symbol definitions are encountered - otherwise the
4789 linker could abort with an assertion failure.
4791 2000-09-10 Nick Clifton <nickc@redhat.com>
4793 * mri.c: Fix formatting.
4795 2000-09-07 H.J. Lu <hjl@gnu.org>
4797 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4798 * configure: Rebuild.
4800 2000-09-07 H.J. Lu <hjl@gnu.org>
4802 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4803 * Makefile.in: Rebuild.
4805 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4807 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4808 broken list handling. Create __start_SECNAME and __stop_SECNAME
4809 when no place-holder. Add some comments. Test both SEC_CODE and
4810 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4811 Handle case where no output section statement created.
4813 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4815 * configure.tgt (sh-*-linux*): Added.
4816 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4817 * Makefile.in: Rebuilt.
4818 * emulparams/shelf_linux.sh: New file.
4819 * emulparams/shlelf_linux.sh: New file.
4821 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4823 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4824 try shuffling sections when the orphan happens to be the place
4825 holder. Keep count of unique section names generated so we speed
4826 the search for a new name.
4828 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4830 * configure: Rebuilt with new libtool.m4.
4832 2000-09-05 Nick Clifton <nickc@redhat.com>
4834 * Makefile.in: Regenerate.
4835 * aclocal.m4: Regenerate.
4836 * configure: Regenerate.
4837 * config.in: Regenerate.
4838 * po/ld.pot: Regenerate.
4840 * ldint.texinfo: Remove CVS revision marker - it foils local
4843 * emultempl/ticoff.em: Remove extraneous comma.
4845 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4847 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4848 to stub section flags.
4849 (hppa_for_each_input_file_wrapper): New.
4850 (hppa_lang_for_each_input_file): New.
4851 (lang_for_each_input_file): Define to call above.
4852 (multi_subspace): New.
4853 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4854 (PARSE_AND_LIST_PROLOGUE): Define.
4855 (PARSE_AND_LIST_LONGOPTS): Define.
4856 (PARSE_AND_LIST_OPTIONS): Define.
4857 (PARSE_AND_LIST_ARGS_CASES): Define.
4858 (hppaelf_finish): Call elf32_hppa_set_gp.
4859 (hppaelf_set_output_arch): Remove.
4860 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4862 * emulparams/hppalinux.sh (ELFSIZE): Define.
4864 (OTHER_READONLY_SECTIONS): Define.
4866 (GENERATE_SHLIB_SCRIPT): Define.
4868 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4869 to const throughout. Change `void *' to `PTR' throughout.
4870 (lang_memory_default): Function is local to file, add `static'.
4872 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4873 (ehppalinux.c): Likewise.
4874 (earmelf.c): Likewise.
4875 (earmelf_linux.c): Likewise.
4876 (earmelf_linux26.c): Likewise.
4877 * Makefile.in: Regenerate.
4879 * ld.h (ld_config_type): Add unique_orphan_sections.
4880 * lexsup.c (OPTION_UNIQUE): Define.
4881 (ld_options): Add "--unique".
4882 (parse_args): Handle it.
4883 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4884 search for an existing output section if unique_orphan_sections is
4885 set. Make use of bfd_get_unique_section_name rather than
4886 duplicating code here.
4887 * ld.texinfo: Describe --unique.
4889 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4890 optional arg to split-by-file.
4891 (parse_args): Handle them.
4892 * ld.texinfo: Update description of these options.
4893 * ldwrite.c (clone_section): Pass in the section name. Replace
4894 local code with bfd_get_unique_section_name.
4895 (split_sections): Tidy code and comments. Use a list traversal
4896 more appropriate to the list construction. Handle cooked section
4897 sizes. Split when split_by_reloc reached rather than exceeded.
4898 Track section size and split when split_by_file reached. Fix
4899 link_order_tail (even though it's not used).
4900 (ldwrite): Modify condition for calling split_sections to suit
4901 changed split_by_reloc and split_by_file.
4902 * ldmain.c (main): Init config.split_by_reloc and
4903 config.split_by_file to -1.
4904 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4905 Change split_by_file to bfd_size_type.
4907 2000-09-02 Nick Clifton <nickc@redhat.com>
4909 * configure.in: Increase version number to 2.10.91.
4910 * NEWS: Mention new ability to support removal of duplicate DWARF2
4912 * configure: Regenerate.
4913 * aclocal.m4: Regenerate.
4914 * config.in: Regenerate.
4916 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4918 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4920 * scripttempl/elf32avr.sc: Ditto.
4921 * scripttempl/elfd10v.sc: Ditto.
4922 * scripttempl/elfd30v.sc: Ditto.
4923 * scripttempl/elfi370.sc: Ditto.
4924 * scripttempl/elfm68hc11.sc: Ditto.
4925 * scripttempl/elfm68hc12.sc: Ditto.
4926 * scripttempl/elfi386beos.sc: Ditto.
4927 * scripttempl/v850.sc: Ditto.
4929 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4931 * acinclude.m4: Include libtool and gettext macros from the
4933 * aclocal.m4, configure: Rebuilt.
4935 2000-08-25 Nick Clifton <nickc@redhat.com>
4937 * ldlang.c (open_output): When choosing the target for a
4938 particular endianness, do nothing if the target is not
4941 2000-08-25 H.J. Lu <hjl@gnu.org>
4943 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4944 check -rpath nor LD_RUN_PATH for cross link.
4945 * ld.texinfo: Document the change.
4947 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4949 * NEWS: Mention support for CRIS.
4951 2000-08-23 H.J. Lu <hjl@gnu.org>
4953 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4954 the current runpath list from bfd_elf_get_runpath_list ()
4957 2000-08-22 H.J. Lu <hjl@gnu.org>
4959 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4960 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4961 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4962 trace_file_tries is non-zero.
4963 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4964 if trace_file_tries is non-zero.
4966 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4969 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4971 * NEWS: Mention i860 support.
4973 2000-08-14 Andreas Schwab <schwab@suse.de>
4975 * scripttempl/elf.sc: Fix last change to use correct comment
4978 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4980 * scripttempl/elf.sc: Add a comment giving the correspondence
4981 between sections, per-datum sections, and linkonce sections. Make
4982 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4985 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4987 * emulparams/elf32_i860.sh: New file.
4988 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4989 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4990 (eelf32_i860.c): New rule.
4991 * Makefile.in: Regenerate.
4993 2000-08-10 Nick Clifton <nickc@cygnus.com>
4995 * emulparams/mipspe.sh (ENTRY): Add definition.
4997 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4999 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5002 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5004 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5005 the final size of .bss section.
5006 * scripttempl/elfm68hc12.sc: Likewise.
5008 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5010 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5011 gld${EMULATION_NAME}_parse_args for consistency. Combine
5012 lastoptind and prevoptind vars, and keep track of last optind.
5013 (gld_${EMULATION_NAME}_list_options): Rename to
5014 gld${EMULATION_NAME}_list_options.
5016 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5018 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5019 (i586-sco-sysv5uw7.1.0).
5021 2000-07-27 H.J. Lu <hjl@gnu.org>
5023 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5024 (PARSE_AND_LIST_PROLOGUE): New.
5025 (PARSE_AND_LIST_LONGOPTS): Likewise.
5026 (PARSE_AND_LIST_OPTIONS): Likewise.
5027 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5028 (PARSE_AND_LIST_EPILOGUE): Likewise.
5030 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5032 * emultempl/armelf.em: Elide functions common to elf32.em,
5033 ie. most of the file.
5034 (arm_elf_after_open): New. Do arm specific things then call
5035 gld${EMULATION_NAME}_after_open.
5036 (arm_elf_before_allocation): New. Call
5037 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5038 (PARSE_AND_LIST_PROLOGUE): Define.
5039 (PARSE_AND_LIST_SHORTOPTS): Define.
5040 (PARSE_AND_LIST_LONGOPTS): Define.
5041 (PARSE_AND_LIST_OPTIONS): Define.
5042 (PARSE_AND_LIST_ARGS_CASES): Define.
5043 (LDEMUL_AFTER_OPEN): Define.
5044 (LDEMUL_BEFORE_ALLOCATION): Define.
5045 (LDEMUL_BEFORE_PARSE): Define.
5046 (LDEMUL_FINISH): Define.
5048 * emultempl/hppaelf.em: Similarly zap most of this file.
5049 (hppaelf_add_stub_section): Prototype.
5050 (hppaelf_layaout_sections_again): Prototype.
5051 (hook_in_stub): Prototype.
5052 (LDEMUL_SET_OUTPUT_ARCH): Define.
5053 (LDEMUL_FINISH): Define.
5054 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5056 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5057 (EXTRA_EM_FILE): New.
5058 * emulparams/armelf_linux.sh: Likewise.
5059 * emulparams/armelf_linux26.sh: Likewise.
5060 * emulparams/hppalinux.sh: Likewise.
5061 * emulparams/hppaelf.sh: Likewise.
5064 * emultempl/elf32.em: Fix formatting.
5065 (EXTRA_EM_FILE): Source it.
5066 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5067 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5068 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5069 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5070 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5071 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5072 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5073 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5074 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5075 allow functions in this file to be overridden.
5076 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5078 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5080 * emultempl/elf32.em: Reorganize file.
5082 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5084 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5085 specific option to fit 64-bit executable in the lower
5086 31-bit address range. This is done by changing start
5087 address of .interp (the very first section of executable)
5088 and then setting EF_ALPHA_32BIT elf header flag.
5090 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5092 * emultempl/m68kcoff.em: New file.
5093 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5094 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5096 * Makefile.in: Regenerate.
5098 2000-07-20 H.J. Lu <hjl@gnu.org>
5100 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5101 and "disable-new-dtags" to stop getopt from treating -d/-e as
5102 abbreviations for these options.
5104 2000-07-20 H.J. Lu <hjl@gnu.org>
5106 * ld.texinfo: Add documentation for --disable-new-dtags and
5109 * ldmain.c (main): Initialize link_info.new_dtags to false.
5111 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5112 --disable-new-dtags and --enable-new-dtags.
5113 (gld_${EMULATION_NAME}_list_options): Likewise.
5115 2000-07-05 Kenneth Block <krblock@computer.org>
5117 * lexsup.c: Add optional style to demangle switch
5118 * ld.texinfo: Document optional style to demangle switch.
5120 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5122 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5124 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5125 Regenerate dependencies.
5126 * Makefile.in: Rebuild.
5127 * configure.tgt (cris-*-*): New target.
5128 * emulparams/crisaout.sh, emulparams/criself.sh,
5129 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5130 * po/POTFILES.in, po/ld.pot: Regenerate.
5132 2000-07-20 H.J. Lu <hjl@gnu.org>
5134 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5135 Print out ignored -z options.
5137 2000-07-19 H.J. Lu <hjl@gnu.org>
5139 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5140 (PARSE_AND_LIST_PROLOGUE): New.
5141 (PARSE_AND_LIST_LONGOPTS): Likewise.
5142 (PARSE_AND_LIST_OPTIONS): Likewise.
5143 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5145 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5147 * lexsup.c (ld_options): Comment out 'z'.
5148 (parse_args): Likewise.
5150 * emultempl/elf32.em: Include "elf/common.h".
5151 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5153 (gld_${EMULATION_NAME}_list_options): Likewise.
5155 * ld.texinfo: Add documentation for the recognized -z options.
5157 2000-07-19 H.J. Lu <hjl@gnu.org>
5159 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5160 bfd_elf_set_dt_needed_soname ().
5162 2000-07-18 DJ Delorie <dj@cygnus.com>
5164 * pe-dll.c (pe_dll_id_target): check object target name also
5166 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5168 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5169 ${INIT_END} if relocating.
5170 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5172 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5174 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5175 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5176 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5177 errors introduced by the old dynamic lib search order.
5179 2000-07-17 DJ Delorie <dj@cygnus.com>
5181 * pe-dll.c (process_def_file): auto-export data items also
5182 (pe_process_import_defs): also see if _imp_ form needed
5184 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5186 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5187 for dll import libraries
5189 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5191 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5192 gcc 2.95.2 and later.
5194 2000-07-11 Kazu Hirata <kazu@hxi.com>
5196 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5199 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5201 * ldemul.h (struct lang_input_statement_struct): Remove forward
5203 (struct search_dirs): Likewise.
5204 * ldfile.h (struct lang_input_statement_struct): Likewise.
5205 Protect file from multiple inclusion.
5206 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5207 declaration from macro to file scope.
5209 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5210 * ldgram.y: Likewise here.
5211 * ldlang.c: And here.
5212 * ldmain.c: And here.
5213 * mpw-elfmips.c: And here.
5214 * mpw-eppcmac.c: And here.
5215 * emultempl/aix.em: And here.
5216 * emultempl/armcoff.em: And here.
5217 * emultempl/armelf.em: And here.
5218 * emultempl/armelf_oabi.em: And here.
5219 * emultempl/beos.em: And here.
5220 * emultempl/elf32.em: And here.
5221 * emultempl/hppaelf.em: And here.
5222 * emultempl/linux.em: And here.
5223 * emultempl/lnk960.em: And here.
5224 * emultempl/pe.em: And here.
5225 * emultempl/sunos.em: And here.
5226 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5227 * mpw-idtmips.c: Ditto.
5228 * emultempl/generic.em: Ditto.
5229 * emultempl/gld960.em: Ditto.
5230 * emultempl/gld960c.em: Ditto.
5231 * emultempl/mipsecoff.em: Ditto.
5232 * emultempl/ticoff.em: Ditto.
5233 * emultempl/vanilla.em: Ditto.
5235 * pe-dll.c: Include ldfile.h
5236 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5238 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5239 arguments to bfd_elf32_size_dynamic_sections call.
5240 (gldelf32ebmip_place_orphan): Add missing arguments to
5241 lang_leave_output_section_statement call.
5243 2000-07-10 H.J. Lu <hjl@gnu.org>
5245 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5247 (strhash): Likewise.
5248 (compute_dll_image_base): Likewise.
5249 (pe_undef_found_sym): Likewise.
5250 (pe_undef_cdecl_match): Likewise.
5251 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5252 argument "arch" with ATTRIBUTE_UNUSED.
5254 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5256 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5258 From Ryan Bradetich <rbradetich@uswest.net>
5259 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5261 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5263 Changes to create multiple linker stubs, positioned immediately
5264 before the section where they are required.
5265 * emultempl/hppaelf.em: Include elf32-hppa.h.
5266 (stub_sec, file_chain): Delete.
5267 (hppaelf_create_output_section_statements): Don't make a stub
5269 (hook_stub_info): New struct.
5270 (hook_in_stub): New function.
5271 (hppaelf_add_stub_section): New function.
5272 (hppaelf_finish): Do nothing for relocateable links. Modify the
5273 call to elf32_hppa_size_stubs. Move code for updating section
5275 (hppaelf_layaout_sections_again): ..to here, a new function.
5277 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5278 broken list handling. Pass in a pointer to the list.
5279 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5281 (hppaelf_before_parse): Prototype.
5282 (hppaelf_set_output_arch): Prototype.
5283 (hppaelf_create_output_section_statements): Prototype.
5284 (hppaelf_delete_padding_statements): Prototype.
5285 (hppaelf_finish): Prototype.
5288 * emultempl/hppaelf.em: Include ctype.h.
5289 (struct orphan_save): New.
5290 (gld${EMULATION_NAME}_place_orphan): New.
5291 (output_rel_find): New.
5292 (hppaelf_get_script): Update from elf32.em.
5293 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5294 Change emulation_name field to "${EMULATION_NAME}". Add
5295 gld${EMULATION_NAME}_place_orphan.
5297 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5298 ehppalinux.o, sort it. Regenerate dependencies.
5299 (ehppalinux.c): Depend on hppaelf.em
5300 * Makefile.in: Regenerate.
5302 * configure.tgt: targ_emul=hppalinux for hppa*linux
5304 * emulparams/hppalinux.sh: New.
5305 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5307 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5309 * lexsup.c (parse_args): Copy section name.
5311 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5313 * emultempl/pe.em: institute the following search order for
5314 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5315 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5316 static lib (libfoo.a) if none of the above are found.
5318 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5320 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5321 (longopts): New --{enable,disable}-auto-image-base options.
5322 (gld_${EMULATION_NAME}_list_options): Document.
5323 (gld_${EMULATION_NAME}_parse): Handle.
5324 (strhash): New static function.
5325 (compute_dll_image_base): New static function.
5326 (gld_${EMULATION_NAME}_set_symbols): Use.
5328 2000-07-05 DJ Delorie <dj@redhat.com>
5332 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5334 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5335 * emulparams/elf32btsmip.sh: New file.
5336 * Makefile.am: Add traditional mips target.
5337 * Makefile.in: Rebuild.
5339 2000-07-01 H.J. Lu <hjl@gnu.org>
5341 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5342 automake to use YLWRAP.
5343 * Makefile.in: Rebuild.
5345 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5347 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5348 (CLEANFILES): Add DEPA.
5349 * Makefile.in: Regenerate.
5351 2000-06-30 Timothy Wall <twall@ppc>
5353 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5354 the page in the upper octet of the address.
5356 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5358 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5360 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5362 * NEWS: arm-elf does --gc-sections too.
5364 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5366 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5368 * Makefile.in: Regenerate.
5370 2000-06-21 H.J. Lu <hjl@gnu.org>
5372 * Makefile.am: Rebuild dependency.
5373 * Makefile.in: Rebuild.
5375 2000-06-20 H.J. Lu <hjl@gnu.org>
5377 * Makefile.am: Rebuild dependency.
5378 * Makefile.in: Rebuild.
5380 2000-06-20 Timothy Wall <twall@cygnus.com>
5382 * scripttempl/tic54xcoff.sc: New.
5383 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5384 * gen-doc.texi: Add flag for TI COFF.
5385 * ld.texinfo: Add documentation for TI COFF handling switches.
5386 * emultempl/ticoff.em: New. TI COFF handling.
5387 * configure.tgt: Add tic54x target.
5388 * Makefile.am: Add tic54x target.
5389 * Makefile.in: Ditto.
5391 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5393 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5394 checking for backslashes.
5396 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5398 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5400 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5402 * NEWS: Update list of targets supporting --gc-sections.
5404 * scripttempl/elf.sc: KEEP .eh_frame contents.
5405 * scripttempl/elfd30v.sc: Same here.
5407 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5409 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5411 * Makefile.in: Rebuild.
5412 * configure.tgt: Recognize m68hc12 and m68hc11.
5413 * scripttempl/elfm68hc12.sc: New file.
5414 * emulparams/m68hc12elfb: New emulation.
5415 * emulparams/m68hc12elf: New emulation.
5416 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5417 (includes a memory.x script to define the ROM and RAM banks).
5418 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5419 New configuration files for support of Motorola 68hc11
5421 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5423 * ldmain.c (main): Only change SEC_READONLY for final link.
5425 2000-06-13 H.J. Lu <hjl@gnu.org>
5427 * configure: Regenerate.
5429 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5431 * configure.in (VERSION): Update to show this is the CVS mainline.
5433 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5435 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5436 input objects to be ECOFF.
5437 (check_sections): einfo takes %B, not %P, to print a BFD name.
5439 2000-06-05 Michael Matz <matz@ifh.de>
5441 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5444 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5446 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5448 * emulparams/avr1200.sh (STACK): Define as 0.
5449 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5450 * emulparams/avr4433.sh (STACK): Likewise.
5451 * emulparams/avr44x4.sh (STACK): Likewise.
5452 * emulparams/avr85xx.sh (STACK): Likewise.
5453 * emulparams/avrmega103.sh (STACK): Likewise.
5454 * emulparams/avrmega161.sh (STACK): Likewise.
5455 * emulparams/avrmega603.sh (STACK): Likewise.
5456 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5457 (__stack): Define from ${STACK} for main().
5459 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5461 * Makefile.am: Update dependencies with "make dep-am"
5462 * Makefile.in: Regenerate.
5464 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5466 * ldmain.c: Include filenames.h.
5467 (set_scripts_dir): Support backslashes in program name.
5469 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5471 * ldmain.c (main): When deciding if ".text" section should be
5472 read-only, don't forget to reset SEC_READONLY because it
5473 could be already set.
5475 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5477 * ld.1: Add documentation for new command line option:
5478 --section-start <sectionname>=<sectionorg>
5479 This is a generic version of -Ttext etc. which accepts
5480 any section name as a parameter instead of just text/data/
5482 * ld.texinfo: More docs.
5484 * lexsup.c: (parse_args): Recognize new command line option.
5485 (ld_options): Add new option.
5487 2000-05-18 H.J. Lu <hjl@gnu.org>
5489 * lexsup.c (parse_args): `i' == `r', not `q'.
5491 2000-05-18 Jeffrey A Law (law@cygnus.com)
5493 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5495 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5496 Rick Gorton <gorton@scrugs.lkg.dec.com>
5498 Add support for '-q' == '--emit-relocs' switch.
5499 * ldmain.c (main): Default to false.
5500 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5501 * NEWS: Describe the emitrelocations switch.
5502 * ld.texinfo: Describe the emitrelocations switch.
5504 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5506 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5507 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5508 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5511 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5513 * lexsup.c (parse_args): Update the year in the copyright notice.
5515 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5517 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5518 Replace defines with those from intl/libgettext.h to quieten gcc
5521 2000-05-10 H.J. Lu <hjl@gnu.org>
5523 * ldlang.c (open_input_bfds): Don't load the same file within
5524 a group again if the whole archive has been loaded already.
5526 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5528 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5529 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5532 2000-05-01 Jim Wilson <wilson@cygnus.com>
5534 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5536 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5537 host "ia64-*-linux-gnu*".
5539 2000-04-29 Andreas Jaeger <aj@suse.de>
5541 * ld.h: Correctly check GCC version.
5543 2000-04-25 Jeffrey A Law (law@cygnus.com)
5545 * Makefile.am: Add PA64 support. Add missing dependencies for
5547 * Makefile.in: Rebuilt.
5548 * configure.tgt: Add PA64 support (currently disabled).
5550 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5552 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5553 (output_rel_find): New function.
5554 (hold_section, hold_use): Delete.
5555 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5556 hold_interp): Make local to place_orphan.
5557 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5558 rather than place_section to find possible previous use of orphan.
5559 Similarly find the place-holder output sections. Use returned
5560 value from lang_enter_output_section_statement rather than calling
5561 lang_output_section_statement_lookup.
5562 * emultempl/armelf.em: Same here.
5563 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5565 * ldlang.c (lang_enter_output_section_statement): Return output
5567 * ldlang.h (lang_enter_output_section_statement): Change
5570 * ldlang.h (lang_output_section_statement): Export it.
5571 * ldlang.c (lang_output_section_statement): Ditto.
5573 2000-04-24 Nick Clifton <nickc@cygnus.com>
5575 * ld.texinfo (Output Section Data): Add note that section data
5576 commands cannot appear outside of section directives.
5578 2000-04-2 Matthew Green <mrg@cygnus.com>
5580 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5582 2000-04-21 Richard Henderson <rth@cygnus.com>
5583 David Mosberger <davidm@hpl.hp.com>
5585 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5586 (eelf64_ia64.c): New rule.
5587 * Makefile.in: Rebuild.
5588 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5589 * emulparams/elf64_ia64.sh: New file.
5591 2000-04-21 Richard Henderson <rth@cygnus.com>
5593 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5595 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5597 * dep-in.sed: Match space at start of file name, not at end.
5599 2000-04-18 H.J. Lu <hjl@gnu.org>
5601 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5602 lang_leave_output_section_statement () after calling
5603 lang_enter_output_section_statement ().
5604 * emultempl/armelf.em: Likewise.
5606 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5608 * emultempl/elf32.em (struct orphan_save): Add section field.
5609 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5610 better order, and place first orphan section as we did before the
5611 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5612 Don't call make_bfd_section here, let wild_doit do the job for us.
5613 Don't build a statement list when we'll only throw it away.
5614 * emultempl/armelf.em: Ditto.
5615 * emultempl/pe.em: Similarly.
5617 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5619 * scripttempl/elfppc.sc: Remove.
5620 * emulparams/elf32ppc.sh: Use elf.sc.
5621 * emulparams/elf32lppc.sh: Use elf.sc.
5622 * emulparams/elf32ppclinux.sh: Use elf.sc.
5623 * emulparams/elf32ppcsim.sh: New file.
5624 * emulparams/elf32lppcsim.sh: New file.
5625 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5626 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5627 * Makefile.in: Regenerate.
5628 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5630 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5632 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5633 ~SEC_ALLOC sections too. Init start address of debug sections.
5634 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5635 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5636 Also set all relocateable section start addresses.
5638 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5640 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5641 Add new BSS_PLT variable for when .plt need not be contained in
5642 the file. Move _etext so that it is also after .fini, and provide
5643 both etext and _etext with a leading underscore. Mark the start
5646 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5648 * emultempl/elf32.em (struct orphan_save): New.
5649 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5650 hold_interp): Make them struct orphan_save.
5651 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5652 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5653 the end of the relevant section list. Also add associated section
5654 statements to the end of any previous orphan statements.
5655 * emultempl/armelf.em: Similarly.
5656 * emultempl/pe.em: Similarly.
5658 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5660 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5662 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5664 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5665 --enable-build-warnings option.
5666 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5667 * Makefile.in, configure: Re-generate.
5669 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5671 * po/ld.pot: Regenerate.
5673 * lexsup.c (help): Restore translated part of bug string.
5675 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5676 (DEP): Quote when passing vars to sub-make. Add warning message
5678 (DEP1): Rewrite for "gcc -MM".
5679 (CLEANFILES): Add DEP2.
5680 Update dependencies.
5681 * Makefile.in: Regenerate.
5683 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5685 * ld.h: #include "bin-bugs.h"
5686 * lexsup.c (help): Use REPORT_BUGS_TO.
5688 2000-03-27 Denis Chertykov <denisc@overta.ru>
5690 * configure.tgt (avr-*-*): New target support.
5691 * Makefile.am: Likewise.
5692 * scripttempl/elf32avr.sc: New script file.
5693 * emulparams/avr1200.sh: New file.
5694 * emulparams/avr23xx.sh: New file.
5695 * emulparams/avr4433.sh New file.
5696 * emulparams/avr44x4.sh New file.
5697 * emulparams/avr85xx.sh New file.
5698 * emulparams/avrmega103.sh New file.
5699 * emulparams/avrmega161.sh New file.
5700 * emulparams/avrmega603.sh New file.
5701 * Makefile.in: Regenerate.
5703 2000-03-09 Andreas Jaeger <aj@suse.de>
5705 * Makefile.am (check-DEJAGNU): Also unset LANG.
5706 * Makefile.in: Rebuild.
5708 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5710 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5713 2000-03-02 H.J. Lu <hjl@gnu.org>
5715 * emulparams/elf32mcore.sh: Include "getopt.h".
5717 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5719 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5721 2000-03-01 H.J. Lu <hjl@gnu.org>
5723 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5724 * emulparams/shpe.sh: Likewise.
5726 2000-03-01 Nick Clifton <nickc@cygnus.com>
5728 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5729 to unused parameters.
5731 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5732 functions only used by DLL code.
5733 (_place_orphan): Initialise 'dollar'.
5735 2000-03-01 H.J. Lu <hjl@gnu.org>
5737 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5738 indicate if the undefined symbol is a fatal error or not.
5739 Don't delete the output file if "fatal" is false.
5741 2000-02-29 H.J. Lu <hjl@gnu.org>
5743 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5744 Set LC_COLLATE and LC_ALL to null and export them. It is for
5745 sort which expects the C locale.
5746 Add $(LIBS) to all $(HOSTING_LIBS).
5747 * Makefile.in: Rebuild.
5749 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5751 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5752 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5753 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5754 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5755 find_potential_libraries.
5757 2000-02-28 Jim Blandy <jimb@redhat.com>
5759 * ldgram.y (exclude_name_list): Don't require a comma to separate
5760 list entries; the lexer considers commas to be valid part of a
5761 filename, so in something like `foo, bar' the comma is considered
5762 part of the first filename, `foo,'.
5763 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5765 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5767 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5768 host "i[3456]86-*-freebsdelf*".
5770 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5772 * scripttempl/i386go32.sc: Move misplaced semicolons.
5774 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5776 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5777 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5778 (eelf64hppa.c, ehppaelf.c): Remove targets.
5779 * Makefile.in: Rebuild.
5781 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5783 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5784 GNU/Linux/sparc, but keep the default as 32.
5786 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5787 it default if sparcv9 or sparc64.
5789 2000-02-24 Nick Clifton <nickc@cygnus.com>
5791 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5792 * Makefile.in: Regenerate.
5793 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5795 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5796 find_potential_libraries.
5797 * ldemul.c (ldemul_find_potential_libraries): New function.
5799 * ldfile.c (ldfile_open_file_search): Allow function to be
5801 (ldfile_open_file): Call ldemul_find_potential_libraries.
5802 * ldfile.h: Add prototype for ldfile_open_file_search.
5804 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5806 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5807 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5809 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5810 (gld_X_find_potential_libraries): New function. Search for
5811 libraries called "*.lib".
5813 * scripttempl/pe.sc: Add .pdata section.
5815 2000-02-23 Richard Henderson <rth@cygnus.com>
5817 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5818 Add and use memory regions.
5820 2000-02-23 Linas Vepstas (linas@linas.org)
5822 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5824 * Makefile.am: Add support for Linux/IBM 370.
5825 * configure.tgt: Likewise.
5827 * Makefile.in: Regenerate.
5829 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5831 * ldlang.c (print_input_section, print_data_statement,
5832 print_reloc_statement, print_padding_statement, insert_pad,
5833 size_input_section, lang_check_section_addresses,
5834 lang_size_sections, lang_do_assignments, lang_set_startof,
5835 lang_one_common): Change `opb' to unsigned.
5836 (lang_do_assignments): Also change `size' to unsigned.
5838 2000-02-16 Richard Henderson <rth@cygnus.com>
5840 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5842 2000-02-16 Timothy Wall <twall@cygnus.com>
5844 * mri.c (mri_draw_tree): Add default LMA region argument to call
5845 to lang_leave_output_section_statement.
5846 * ldlang.h: Update prototypes with LMA region arguments.
5847 * ldlang.c (lang_size_sections): Encapsulate region bounds
5848 checking in os_check_region call.
5849 (os_check_region): New function.
5850 (lang_output_section_statement_lookup): Initialize lma_region.
5851 (lang_leave_output_section_statement): Add LMA region argument.
5852 (lang_leave_overlay): Ditto.
5853 * ldgram.y: Handle LMA region syntax.
5854 * ld.texinfo (Output Section Description): Describe LMA region usage.
5855 * emultempl/armelf.em (gld$place_orphan): Add default value for
5856 lma region in call to lang_leave_output_section_statement.
5857 * emultempl/elf32.em (gld$place_orphan): Add default value for
5858 lma region in call to lang_leave_output_section_statement.
5859 * emultempl/pe.em (gld$place_orphan): Add default value for
5860 lma region in call to lang_leave_output_section_statement.
5863 2000-02-04 Timothy Wall <twall@redhat.com>
5865 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5866 octets when calculating section end addresses.
5868 2000-02-04 Timothy Wall <twall@redhat.com>
5870 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5872 2000-02-03 Timothy Wall <twall@redhat.com>
5874 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5876 * ldlang.c (print_input_section, print_data_statement,
5877 print_reloc_statement, print_padding_statement): Print target
5878 address values and section sizes as bytes, not octets.
5879 (insert_pad) Calculate padding size in octets, and adjust "dot"
5881 (size_input_section) Always adjust "dot" by bytes, not octets.
5882 (lang_check_section_addresses, lang_do_assignments) Adjust
5883 "dot" by bytes, not octets. Use the larger of the directive size
5884 or octets_per_byte for the number of octets actually allocated in
5886 (lang_set_startof) Make sure STARTOF returns a target address.
5887 (lang_one_common) Record size changes in octets.
5888 (lang_abs_symbol_at_end_of) Section end symbol's value is
5889 recorded in target bytes.
5890 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5891 to be clear about behavior when an octet is smaller than one byte.
5893 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5895 * ldcref.c (output_cref): Don't pass message strings to printf
5899 * ldmisc.c (vfinfo): Same here.
5902 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5904 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5905 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5906 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5907 Add missing NULL initialisers, and comments.
5909 2000-01-21 Nick Clifton <nickc@cygnus.com>
5911 * ldlang.c (lang_size_sections): Fix typo in comment.
5913 2000-01-18 H.J. Lu <hjl@gnu.org>
5915 * ldlang.c (lang_size_sections): Also update the current
5916 address of a region if the SEC_NEVER_LOAD bit is not set.
5918 2000-01-10 Philip Blundell <pb@futuretv.com>
5920 * configure.tgt (arm*-*-conix*): New target.
5922 2000-01-07 Nick Clifton <nickc@cygnus.com>
5924 * ld.texinfo (Options): Remind users to preceed linker command
5925 line switches with -Wl, (or whatever is appropriate) if it is
5926 being invoked by a comnpiler driver program.
5927 Fix description of the behaviour of the -n command line switch.
5929 2000-01-05 Catherine Moore <clm@cygnus.com>
5931 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5933 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5934 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5935 (exclude_name_list): New.
5936 ldlang.c (walk_wild_section): Support list of excluded files.
5937 (print_wild_statement): Likewise.
5938 (lang_add_wild): Likewise.
5939 * ldlang.h (lang_wild_statement_type): Likewise.
5940 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5942 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5944 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5945 (process_def_file): Use.
5946 (pe_dll_compat_implib): New variable.
5949 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5950 pe_dll_compat_implib.
5952 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5953 compat-implib options.
5954 (gld_${EMULATION_NAME}_list_options): List new options.
5955 (gld_${EMULATION_NAME}_parse_args): Handle.
5957 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5960 * deffilep.y (opt_name): Allow "." in name.
5962 For older changes see ChangeLog-9899
5968 version-control: never