1 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
3 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
4 * ld.texinfo: Likewise.
6 2003-04-14 Alan Modra <amodra@bigpond.net.au>
8 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
9 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
10 other variants of crtbegin.o, crtend.o.
12 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
13 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
14 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
15 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
16 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
17 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
18 * scripttempl/mmo.sc (ctors, dtors): Likewise.
19 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
21 2003-04-09 Dmitry Diky <diwil@mail.ru>
23 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
24 sections to respect C++ constructor/destructor. Add ctors/dtors
25 start/stop definitions.
26 * scripttempl/elf32msp430_3.sc: Likewise.
28 2003-04-06 Nick Clifton <nickc@redhat.com>
30 * ld.texinfo (Options): Add a reminder of the target specific
31 nature to the description of the i386 PE specific options, for
32 readers who have not read all the way through the manual.
34 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
36 * configure.tgt: Fixed bug in list of targ_extra_emuls.
37 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
38 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
39 * emulparams/tic3xcoff_onchip.sh: Ditto
40 * emulparams/tic4xcoff.sh: Ditto
41 * scripttempl/tic4xcoff.sc: Ditto
43 2003-04-03 Nick Clifton <nickc@redhat.com>
45 * NEWS: Mention support for Xtensa architecture.
47 2003-04-02 Nick Clifton <nickc@redhat.com>
49 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
51 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
53 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
54 Don't call pe_dll_build_section() if link_info.relocateable.
55 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
56 if link_info.relocateable.
58 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
60 * pe-dll.c (process_def_file): Don't create an export
61 section if there are no exports and we're building an exe
62 (pe_dll_build_sections): Ditto
63 (pe_dll_fill_sections): Conditionalize setting
64 abfd->dll true on info->shared
65 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
66 If i386pe or armpe, call pe_dll_build_section()
67 for both exe's and dll's, not just dll's.
68 (gld_${EMULATION_NAME}_finish): For all targets except
69 shpe and mipspe, call pe_dll_fill_sections() for both
70 exe's and dll's, not just dll's.
72 2003-04-02 Bob Wilson <bob.wilson@acm.org>
74 * emulparams/xtensa-config.sh: Remove comment indicating that this is
77 2003-04-01 Bob Wilson <bob.wilson@acm.org>
79 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
80 (eelf32xtensa.c): New target.
81 * Makefile.in: Regenerate.
82 * configure.tgt: Handle xtensa-*-*.
83 * gen-doc.texi: Set XTENSA variable.
84 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
85 * emulparams/elf32xtensa.sh: New file.
86 * emulparams/xtensa-config.sh: Likewise.
87 * emultempl/xtensaelf.em: Likewise.
88 * scripttempl/elfxtensa.sc: Likewise.
90 2003-04-01 Jakub Jelinek <jakub@redhat.com>
92 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
93 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
94 if --enable-64-bit-bfd.
96 2003-04-01 Nick Clifton <nickc@redhat.com>
98 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
100 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
101 name of note section.
103 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
105 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
108 2003-03-31 David Heine <dlheine@suif.stanford.edu>
110 * ldfile.c (ldfile_add_library_path): Always allocate space for
112 * ldlang.c (lang_register_vers_node): Free the node if it cannot
114 * ldmain.c (set_scripts_dir): Always free the constructed
116 (add_keepsyms_file): Fix memory leak.
117 * ldmisc.c (vfinfo): Likewise.
118 * lexsup.c (parse_args): Likewise.
120 2003-03-25 Stan Cox <scox@redhat.com>
121 Nick Clifton <nickc@redhat.com>
123 Contribute support for Intel's iWMMXt chip - an ARM variant:
125 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
126 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
127 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
130 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
132 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
133 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
134 (main): Initialize them.
135 * ldfile.c: Include pathnames.h.
136 (is_sysrooted_pathname): New.
137 (ldfile_add_library_path): Use it.
138 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
139 search_dirs if given an absolute pathname.
140 (ldfile_open_file): Issue error message for sysrooted
142 * Makefile.am: Updated dependencies.
143 * Makefile.in: Rebuild.
145 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
147 * ld.texinfo: Rename all occurances of C54X to TIC54X.
149 2003-03-19 Andreas Schwab <schwab@suse.de>
151 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
154 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
156 * defilep.y (opt_base): If no number given, set to default
159 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
161 * deffilep.y (def_import): Use default extension of "dll"
162 if no extension provided in parsed IMPORT definition.
164 * deffilep.y (def_lex): Revert 2003-03-12 change.
165 (dot_name): New id type and rule.
166 (expline): Use instead of ID.
167 (opt_equal_name): Likewise.
169 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
171 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
173 2003-03-07 Christopher Faylor <cgf@redhat.com>
175 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
176 apparent accidental removal on 2003-01-06.
178 2003-03-04 Dmitry Diky <diwil@mail.ru>
180 * Makefile.am: Add new devices x1122 x1132 emulation
181 * configure.tgt: Likewise.
182 * Makefile.in: Regenerate.
183 * emulparams/msp430x1122.sh: New file.
184 * emulparams/msp430x1132.sh: New file.
186 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
188 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
191 * ldfile.h (struct search_dirs): Added sysrooted field.
192 * ldlang.h (struct lang_input_statement_struct): Likewise.
193 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
194 (ldfile_open_file_search): Look for sysrooted filename starting
195 with / in ld_sysroot instead of in the current directory. Clear
196 sysrooted flag if it's found in the current directory. Set it
197 from the search directory's sysrooted flag where it is found
199 * ldlang.c (ldlang_sysrooted_script): New static variable.
200 (new_afile): Mark search_file_enums as sysrooted if
201 ldlang_sysrooted_script.
202 (load_symbols): Set ldlang_sysrooted_script according to the
203 script's sysrooted field while processing it.
204 * ld.texinfo: Document INPUT behavior in sysroot.
206 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
208 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
210 2003-03-03 Alan Modra <amodra@bigpond.net.au>
212 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
213 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
214 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
215 PARSE_AND_LIST_EPILOGUE): Don't define.
216 * emultempl/alphaelf.em: New file.
218 2003-03-01 Alan Modra <amodra@bigpond.net.au>
220 * ldemul.c: Include getopt.h.
221 * emultempl/elf32.em: Include getopt.h earlier.
222 * emultempl/ticoff.em: Likewise.
224 2003-02-28 Alan Modra <amodra@bigpond.net.au>
226 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
227 support when scripts read from files.
229 2003-02-28 Alan Modra <amodra@bigpond.net.au>
231 * ldemul.c (ldemul_parse_args): Return FALSE by default.
232 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
235 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
236 (ldemul_parse_args): Return bfd_boolean. Formatting.
237 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
238 (ldemul_parse_args): Adjust.
239 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
240 Return bfd_boolean from parse_args.
241 * lexsup.c (parse_args): Malloc shortopts, longopts and
242 really_longopts. Call ldemul_add_options and ldemul_handle_option.
243 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
244 gld${EMULATION_NAME}_parse_args.
245 (gld${EMULATION_NAME}_handle_option): Likewise.
246 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
247 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
248 * emultempl/beos.em: Likewise.
249 * emultempl/pe.em: Likewise.
250 * emultempl/ticoff.em: Likewise.
251 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
252 (gld${EMULATION_NAME}_add_sysroot): Prototype.
253 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
255 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
256 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
257 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
258 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
260 * emultempl/generic.em: Likewise.
261 * emultempl/gld960.em: Likewise.
262 * emultempl/gld960c.em: Likewise.
263 * emultempl/linux.em: Likewise.
264 * emultempl/lnk960.em: Likewise.
265 * emultempl/m68kcoff.em: Likewise.
266 * emultempl/mipsecoff.em: Likewise.
267 * emultempl/sunos.em: Likewise.
268 * emultempl/vanilla.em: Likewise.
269 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
271 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
273 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
274 memory allocation error.
276 * Makefile.am (ldmain.o): Define TOOLBINDIR.
277 * Makefile.in: Rebuilt.
278 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
280 2003-02-21 Bob Wilson <bob.wilson@acm.org>
282 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
283 call os_region_check when it is set.
284 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
285 lang_size_sections_1.
286 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
287 only for the last call, not on every relaxation iteration.
288 * ldlang.h (lang_size_sections): Update prototype.
289 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
290 to lang_size_sections.
291 (pe_exe_fill_sections): Likewise.
292 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
293 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
294 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
295 (ppc_layout_sections_again): Likewise.
297 2003-02-21 Bob Wilson <bob.wilson@acm.org>
299 * gen-doc.texi: Set ARM and HPPA variables.
300 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
301 title capitalization more consistent. Add missing menu entries for
302 machine-specific sections and conditionalize them consistently.
303 Conditionalize text that is irrelevant when SingleFormat is set.
304 Add @group divisions to improve page breaks in long examples.
305 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
306 is correct. Remove "FIXME" comment about not using
307 @raisesections/@lowersections. Use @raisesections/@lowersections
308 consistently for machine-specific sections. Change to be more polite
309 about poor bug reports. Replace FDL appendix with include of fdl.texi.
310 Move WIN32 node to match its order in the menus.
311 * fdl.texi: New file.
313 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
315 * configure.in (TARGET_SYSTEM_ROOT): Set default to
316 ${exec_prefix}/${target_alias}/sys-root. Match explicit
317 '${exec_prefix}' (in addition to the expansion thereof) as
319 * configure: Rebuilt.
321 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
323 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
325 2003-02-20 Harri Porten <porten@kde.org>
327 * ldgram.y (vers_defns): Allow optional trailing semicolon in
330 2003-02-18 Alan Modra <amodra@bigpond.net.au>
332 * emultempl/ppc32elf.em: New file.
333 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
334 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
335 (eelf32lppcnto.c): Likewise.
336 (eelf32lppcsim.c): Likewise.
337 (eelf32ppcnto.c): Likewise.
338 (eelf32ppc.c): Likewise.
339 (eelf32ppc_fbsd.c): Likewise.
340 (eelf32ppcsim.c): Likewise.
341 (eelf32ppclinux.c): Likewise.
342 * Makefile.in: Regenerate.
344 2003-02-18 Alan Modra <amodra@bigpond.net.au>
346 * ld.texinfo: Remove spaces between @samp and opening brace.
348 2003-02-18 Alan Modra <amodra@bigpond.net.au>
350 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
352 (ppc_before_allocation): Don't do optimizations if wrong hash table.
353 (gld${EMULATION_NAME}_finish): Ditto.
355 2003-02-17 Nick Clifton <nickc@redhat.com>
357 * ldmain.c (main) Default allow_shlib_undefined to true.
358 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
359 (parse_args): Parse the new switch.
360 * ld.texinfo: Document new switch and default behaviour of
361 allowing undefined symbols in shared libraries.
363 2003-02-11 Dmitry Diky <diwil@mail.ru>
365 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
366 * scripttempl/elf32msp430_3.sc: Likewise.
368 2003-02-11 Uwe Stieber <uwe@wwws.de>
370 * configure.tgt: Add support for kaOS as cross build target
373 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
375 * hppaelf.em (group_size): Change default back to 1.
377 2003-02-09 Alan Modra <amodra@bigpond.net.au>
379 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
381 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
383 * hppaelf.em (group_size): Change default to -1.
385 2003-02-07 Nick Clifton <nickc@redhat.com>
387 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
389 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
390 no-pipeline-knowledge. This will prevent the getopt package from
391 thinking that there are any shorter abbreviations for
392 --no-pipeline-knowledge.
394 2003-02-07 Jakub Jelinek <jakub@redhat.com>
396 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
397 which already have it. Avoid duplicates.
399 2003-02-06 Jakub Jelinek <jakub@redhat.com>
401 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
402 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
403 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
405 2003-02-05 Alan Modra <amodra@bigpond.net.au>
407 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
408 call ppc64_elf_tls_optimize.
410 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
412 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
413 outside of GNU/Linux conditional.
415 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
417 * deffilep.y (def_get_module): New function: locate an already
419 * deffile.h (def_get_module): New prototype.
420 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
421 a dll multiple times.
423 2003-01-23 Alan Modra <amodra@bigpond.net.au>
425 * emultempl/sh64elf.em: Include elf32-sh64.h.
426 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
427 sh64_elf_section_data.
428 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
430 2003-01-23 Wu Yongwei <adah@netstd.com>
432 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
433 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
434 cross-80th-column-margin "an" to the next line.
436 2003-01-21 Nick Clifton <nickc@redhat.com>
438 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
439 * emulparams/tic3xcoff_onchip.sh: ...this.
440 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
441 * Makefile.in: Regenerate.
443 2003-01-21 Fabio Alemagna <falemagn@aros.org>
445 * configure.tgt: Handle i[3456]86-*-aros*
447 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
449 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
450 * Makefile.in: Regenerate
451 * configure.tgt: Added extra target emulations
452 * emulparams/tic3xcoff.sh: Remove old settings
453 * emulparams/tic4xcoff.sh: Ditto
454 * emulparams/tic3xcoff-onchip.sh: Added new
455 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
456 * scripttempl/tic3xcoff.sc: Remove
458 2003-01-17 Andreas Jaeger <aj@suse.de>
460 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
463 2003-01-16 Alan Modra <amodra@bigpond.net.au>
465 * Makefile.in: Regenerate.
467 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
469 * ld/ld.texinfo (node WIN32): Some clarifications
470 and formatting fixups.
472 2003-01-09 Chris Demetriou <cgd@broadcom.com>
474 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
475 order, and handle (ignore) -mips32r2.
477 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
479 * ldmain.c (main): Make sure ld_sysroot is initialized.
481 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
483 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
485 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
486 (GENSCRIPTS): Add @use_sysroot@.
487 * Makefile.in: Regenerated.
488 * configure.host: Move setting of NATIVE_LIB_DIRS to...
489 * configure.tgt: ... here. Use ${target} instead of ${host}
491 * configure.in: Add --with-sysroot.
492 * configure: Regenerated.
493 * genscripts.sh: Accept use_sysroot option. Set new variables
494 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
495 $use_sysroot. Don't search $tool_lib if $use_sysroot.
496 * ldfile.c (ldfile_add_library_path): Handle leading '='.
497 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
498 (ld_sysroot): New variable.
499 (main): Initialize ld_sysroot.
500 * ldmain.h (ld_sysroot): New extern.
501 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
502 searching $EMULATION_LIBPATH.
503 (gld${EMULATION_NAME}_add_sysroot): New function.
504 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
505 (gld${EMULATION_NAME}_after_open): Likewise. Only search
506 environment variables if $NATIVE.
507 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
508 * NEWS: Mention --with-sysroot.
510 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
511 instead of setting LIB_PATH.
512 * emulparams/elf32ppc.sh: Likewise.
513 * emulparams/elf64_s390.sh: Likewise.
514 * emulparams/elf64_sparc.sh: Likewise.
515 * emulparams/elf64ppc.sh: Likewise.
516 * emulparams/elf_x86_64.sh: Likewise.
518 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
519 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
521 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
523 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
525 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
527 * Makefile.am (ldmain.o): Pass BINDIR.
528 * Makefile.in: Regenerated.
529 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
532 2003-01-02 Ben Elliston <bje@redhat.com>
534 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
535 (eelf32iq2000.c): New target.
536 * Makefile.in: Regenerate.
537 * configure.tgt: Handle iq2000-*-elf.
538 * emulparams/elf32iq10.sh: New file.
539 * emulparams/elf32iq2000.sh: New file.
540 * scripttempl/iq2000.sc: New file.
542 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
544 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
545 and _pei386_runtime_relocator to the exclude list.
547 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
549 * ldfile.c: Fix comment typos.
550 * ldlang.c: Likewise.
552 * pe-dll.c: Likewise.
554 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
556 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
557 * Makefile.am (ld.1): Depend on configdoc.texi
559 * Makefile.in: Regenerated.
561 2002-12-24 Dmitry Diky <diwil@mail.ru>
563 * Makefile.am: Add msp430 target.
564 * configure.tgt: Likewise.
565 * Makefile.in: Regenerate.
566 * emulparams/msp430x???.sh: New files. Linker script parameters
567 for various msp430 configurations.
568 * gen-doc.texi: Enable msp430 documenation.
569 * ld.texinfo: Document msp430 sections.
570 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
571 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
573 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
574 Charles Wilson <cwilson@ece.gatech.edu>
576 * ld/config.in (HAVE_REALPATH): New entry.
577 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
579 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
581 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
584 2002-12-23 Alan Modra <amodra@bigpond.net.au>
586 * ldmain.c (main): Init "strip_discarded".
587 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
588 (OPTION_NO_STRIP_DISCARDED): Define.
589 (ld_options): Add "strip-discarded" and "no-strip-discarded".
590 (parse_args): Handle them.
592 2002-12-23 Nick Clifton <nickc@redhat.com>
594 * ld.h (struct args_type): Add new field
595 'accept_unknown_input_architecture'.
596 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
598 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
599 bfd_arch_get_compatible.
600 * ldfile.c (ldfile_try_open_bfd): Likewise.
601 * lexsup.c (ld_options): Add new command line switch
602 --accept-unknown-input-architecture and its inverse.
603 (parse_args): Handle --accept-unknown-input-architecture.
604 * ld.texinfo: Document new linker option.
605 * NEWS: Mention new linker option.
607 2002-12-20 Alan Modra <amodra@bigpond.net.au>
609 * ldmain.c (main): Re-order link_info initialization. Init all
612 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
614 * ld.texinfo: Clarify and extend the documentation
615 in the Machine Dependent, WIN32 section.
617 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
619 * ld.texinfo: Add win32 machine depending section.
620 * gen-doc.texi: Enable win32 machine depending section.
622 * configure.host: Add win32 library search path.
624 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
626 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
627 import when auto-import is disabled.
629 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
631 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
632 account for trailing '\0'.
634 2002-12-17 Nick Clifton <nickc@redhat.com>
636 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
637 so that it is not confused with -c.
639 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
640 Charles Wilson <cwilson@ece.gatech.edu>
642 * configure.in: Add check for realpath function.
643 * configure: Regenerate.
644 * config.in: Regenerate.
645 * aclocal.m4: Regenerate.
646 * deffile.h: Add .data field to def_file_import
648 * pe-dll.c (pe_proces_import_defs): Use .data field of
649 def_file_import structure to initialize flag_data field of
650 def_file_export structure.
651 (pe_implied_import_dll): New variables exp_funcbase and
652 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
653 not filename (which may be a symlink). Scan the sections and
654 initialize [data|bss]_[start|end]. When scanning the export
655 table, skip _nm_ symbols, and mark any symbols whose rva indicates
656 that it is in the .bss or .data sections as data.
657 * sysdep.h: Include limits.h and sys/param.h, and define
658 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
659 exists, NULL otherwise.
660 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
661 pe_process_import_defs before pe_find_data_imports, so that
662 auto-import will check the virtual implib as well as "real"
664 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
665 symlinks to their target; check that the target's extension is
666 .dll before calling pe_implied_import_dll(), not the filename
667 itself (which may be a symlink).
669 2002-12-10 Alan Modra <amodra@bigpond.net.au>
671 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
672 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
675 2002-12-08 Alan Modra <amodra@bigpond.net.au>
677 * ldlang.h: Formatting.
679 2002-12-07 Alan Modra <amodra@bigpond.net.au>
681 * ldlang.c (init_os): Ensure sections mentioned in load_base
684 2002-12-05 Alan Modra <amodra@bigpond.net.au>
686 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
687 load_base for orphans that follow a section with load_base set.
689 2002-12-01 H.J. Lu <hjl@gnu.org>
691 * ld.texinfo: Remove the extra `;' in sample version script.
693 2002-11-30 Alan Modra <amodra@bigpond.net.au>
695 * configure.host: Correct dynamic-linker for powerpc64 hosts.
697 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
698 * Makefile.in: Regenerate.
700 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
701 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
702 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
703 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
704 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
705 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
706 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
707 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
708 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
709 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
710 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
711 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
712 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
714 2002-11-27 David O'Brien <obrien@FreeBSD.org>
716 * configure.host: Fix generic FreeBSD configuration entry.
718 2002-11-27 H.J. Lu <hjl@gnu.org>
720 * ld.texinfo: Add the missing `;' to sample version scripts.
722 2002-11-20 Alan Modra <amodra@bigpond.net.au>
724 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
726 2002-11-14 Egor Duda <deo@logos-m.ru>
728 * ldmain.c (main): Make runtime relocs disabled by default. Remove
729 assignment which has no effect.
730 * pe-dll.h (pe_create_import_fixup): Change prototype.
731 * pe-dll.c (make_runtime_pseudo_reloc): New function.
732 (pe_create_runtime_relocator_reference): Ditto.
733 (pe_create_import_fixup): Handle relocations with non-zero addends.
734 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
735 --disable-runtime-pseudo-reloc.
736 (make_import_fixup): Handle relocations with non-zero addends. Create
737 an external reference to _pei386_runtime_relocator symbol if at least
738 one pseudo reloc was created.
739 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
740 --disable-runtime-pseudo-reloc options.
742 2002-11-12 Earl Chew <earl_chew@agilent.com>
744 * ldlang.c (lang_add_section): Discard debugging sections that have
745 been marked SEC_EXCLUDE.
747 2002-11-12 Nick Clifton <nickc@redhat.com>
749 * configure.in (ALL_LINGUAS): Add da.
750 * configure: Regenerate.
751 * po/da.po: New Danish translation.
753 2002-11-12 Alan Modra <amodra@bigpond.net.au>
755 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
756 (LDEMUL_BEFORE_ALLOCATION): Define.
757 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
759 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
761 2002-11-11 Christopher Faylor <cgf@redhat.com>
763 * configure.tgt (LIB_PATH): Default to searching w32api directory under
766 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
768 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
769 of restricted auto-export libs.
771 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
773 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
774 creative library naming instances like, e.g., libstdc++-2.a.
776 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
778 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
779 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
781 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
783 * deffilep.y (def_lex): Handle '@' as first character of an ID.
784 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
785 (make_one): Don't prefix decorated fastcall symbols with '_'.
786 (pe_process_import_defs): Likewise.
787 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
788 symbols to cdecl names or vise-versa.
790 2002-10-13 Eric Kohl <ekohl@rz-online.de>
792 * pe-dll.c (process_def_file): Handle fastcall symbols when
793 generating undecorated aliases. Don't prefix decorated fastcall
795 (fill_exported_offsets): Don't prefix decorated fastcall symbols
798 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
800 * emultempl/aix.em: Use include <> for generated headers.
801 * emultempl/beos.em: Likewise.
802 * emultempl/elf32.em: Likewise.
803 * emultempl/pe.em: Likewise.
804 * ldctor.c: Likewise.
806 * ldfile.c: Likewise.
807 * ldlang.c: Likewise.
810 * ldmain.c: Likewise.
811 * ldmisc.c: Likewise.
812 * ldwrite.c: Likewise.
813 * lexsup.c: Likewise.
815 * pe-dll.c: Likewise.
817 2002-10-23 Jakub Jelinek <jakub@redhat.com>
819 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
820 sections into .rel{,a}.dyn.
822 2002-10-23 Nick Clifton <nickc@redhat.com>
824 * lexsup.c (OPTION_NO_OMAGIC): Define.
825 (ld_options): Add "no-omagic" option.
826 (parse_args): Parse --no-omagic.
827 * ld.texinfo: Document --no-omagic.
828 * NEWS: Mention new option.
830 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
832 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
833 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
835 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
837 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
838 emulation name. Set LIB_PATH only for native tools, and
839 search the ABI-specific versions of NATIVE_LIB_DIRS before the
840 .../lib variants, not instead of them. Mostly copied from...
841 * emulparams/elf32ppc.sh: ... here. Fixed typo.
842 * emulparams/elf64bmip-defs.sh: Backed out.
843 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
844 * emulparams/elf64btsmip.sh: Likewise.
845 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
846 TEXT_DYNAMIC): Removed.
848 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
850 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
851 (GENERATE_SHLIB_SCRIPT): Set to yes.
852 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
853 * emulparams/elf32bmipn32.sh: here.
854 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
855 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
856 * emulparams/elf64bmip-defs.sh: New file. Extend
857 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
858 * emulparams/elf64bmip.sh: Bring in definitions from
860 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
862 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
863 * emulparams/elf64btsmip.sh: Bring in definitions from
865 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
866 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
868 2002-10-16 Jakub Jelinek <jakub@redhat.com>
870 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
871 (s390-*-linux*): Add elf64_s390 emulation if want64.
872 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
873 genscript.sh changes.
874 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
875 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
877 2002-10-15 Alan Modra <amodra@bigpond.net.au>
879 * ldlang.c (load_symbols): Revert last change.
881 2002-10-14 Alan Modra <amodra@bigpond.net.au>
883 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
885 (lang_reasonable_defaults): Don't compare against false.
886 (size_input_section): Likewise.
887 (lang_size_sections_1): Likewise.
888 (lang_do_assignments): Likewise.
889 (lang_add_output): Likewise.
891 * Makefile.am: Run "make dep-am".
892 * Makefile.in: Regenerate.
893 * ldver.c: #include "bfdver.h".
895 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
897 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
899 * scripttempl/elfm68hc12.sc: Likewise.
901 2002-10-11 Alan Modra <amodra@bigpond.net.au>
903 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
905 * ldgram.y (memory_spec): Provide empty action.
906 (section <NAME>): Likewise.
908 2002-10-10 Jakub Jelinek <jakub@redhat.com>
910 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
911 they have OUTPUT_FORMAT not matching actual output format.
912 * ldlang.c (lang_get_output_target): New function.
913 (open_output): Use it.
914 * ldlang.h (lang_get_output_target): New prototype.
916 2002-10-10 Alan Modra <amodra@bigpond.net.au>
918 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
919 when orphan is .rel, .rela when orphan is .rela.
920 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
921 first. Remove outsecname var.
923 2002-10-09 Richard Shann <richard.shann@superh.com>
924 Stephen Clarke <stephen.clarke@superh.com>
926 * Makefile.am: Add eshelf32_linux.o and
927 eshlelf32_linux.o, new emulations for sh64 Linux.
928 * Makefile.in: Regenerate.
929 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
930 * emulparams/shelf32_linux.sh: New file.
931 * emulparams/shlelf32_linux.sh: New file.
933 2002-10-08 H.J. Lu <hjl@gnu.org>
935 * ldlang.c (lang_file_exist): Removed.
936 (new_afile): Revert the last change.
937 * ldlang.h (lang_file_exist): Removed.
938 * lexsup.c (parse_args): Revert the last change.
940 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
942 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
944 (make_one): Create _nm_<symbol> for data only.
946 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
948 * ldlang.c (lang_file_exist): New function.
949 (new_afile): Abort if the filename to be added matches the linker
951 * ldlang.h: Add prototype for lang_file_exist.
952 * lexsup.c (parse_args): Abort if the output filename matches
953 one of the input filenames.
955 2002-10-02 Alan Modra <amodra@bigpond.net.au>
957 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
959 2002-09-30 Alan Modra <amodra@bigpond.net.au>
961 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
962 * scripttempl/elfm68hc11.sc: Likewise.
963 * scripttempl/elfm68hc12.sc: Likewise.
965 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
966 reloc sections just before .rel.plt/.rela.plt.
967 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
968 Only put loadable reloc sections in hold_rel.
970 2002-09-29 H.J. Lu <hjl@gnu.org>
972 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
974 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
976 From "Anita Kulkarni" <AnitaK@kpit.com>
977 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
980 2002-09-25 Alan Modra <amodra@bigpond.net.au>
982 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
984 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
985 SEGMENT_SIZE alignment.
986 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
987 (SEGMENT_SIZE): Define.
989 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
990 (fold_binary): Correct abs - non-abs case.
991 (fold_trinary): New. Split out from exp_fold_tree.
993 2002-09-24 Alan Modra <amodra@bigpond.net.au>
995 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
996 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
997 for start of .data, instead align up to 256M boundary.
998 * scripttempl/aix.sc: Likewise.
1000 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1002 * scripttempl/i386go32.sc: Handle bss unique sections.
1004 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1006 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1008 2002-09-17 Stan Cox <scox@redhat.com>
1010 * emulparams/elf32bmipn32-defs.sh: New file.
1011 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1012 * emulparams/elf32btsmipn32.sh: Likewise.
1013 * emulparams/elf64bmip.sh: Likewise.
1014 * emulparams/elf64btsmip.sh: Likewise.
1016 2002-09-16 Bruno Haible <bruno@clisp.org>
1018 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1020 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1021 elf64-alpha-freebsd.
1023 2002-09-11 Nick Clifton <nickc@redhat.com>
1025 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1027 * po/tr.po: Updated Turkish translation.
1029 2002-09-06 Jeffrey A Law (law@redhat.com)
1031 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1033 2002-09-02 Nick Clifton <nickc@redhat.com>
1035 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1037 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1039 2002-08-30 Nick Clifton <nickc@redhat.com>
1041 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1042 used. Change INSN to start at 0x01000000 and extend for
1043 256K (ignoring holes). Start the STACK on a word aligned
1045 (.rodata): Start it at the READONLY_START_ADDR.
1047 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1049 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1051 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1053 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1054 added makefile targets for this file.
1055 * Makefile.in: Regenerate.
1056 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1057 * NEWS: Mention new port.
1059 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1061 * emulparams/tic3xcoff.sh: New file.
1062 * emulparams/tic4xcoff.sh: New file.
1063 * scripttempl/tic3xcoff.sc: New file.
1064 * scripttempl/tic4xcoff.sc: New file.
1066 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1068 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1069 strtoul and strtoull with bfd_scan_vma.
1070 (gld${EMULATION_NAME}_read_file): Likewise.
1072 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1074 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1076 2002-08-27 Egor Duda <deo@logos-m.ru>
1078 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1079 Add symbols for application to access them.
1081 2002-08-27 Nick Clifton <nickc@redhat.com>
1083 * emultempl/armelf.em: Revert this patch, it is not needed.
1085 2002-08-22 Adam Nemet <anemet@lnxw.com>
1087 2002-08-20 Dan Kegel <dank@kegel.com>
1089 * configure.in: added --with-lib-path argument to ld's configure
1091 * ld/NEWS: Document new switch.
1092 * ld/README: Mention new switch.
1093 * configure: Regenerate.
1094 * Makefile.in: Regenerate.
1096 Based on this patch:
1097 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1099 * Makefile.in (LIB_PATH): Make configurable.
1100 (GENSCRIPTS): Set LIB_PATH in environment.
1101 * configure.in: Substitute LIB_PATH.
1103 2002-08-22 Adam Nemet <anemet@lnxw.com>
1105 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1106 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1107 depending on the type of the function.
1108 (arm_elf_convert_thumb_symbol_to_address): New function.
1110 2002-08-22 Graeme Peterson <gp@qnx.com>
1112 * Makefile.am: Add esh{l}elf_nto.o files.
1113 * Makefile.in: Regenerate.
1114 * configure.tgt: Add support for sh-**-nto* targets.
1115 * emulparams/shelf_nto.sh: New file.
1116 * emulparams/shlelf_nto.sh: New file.
1118 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1120 * ldlang.c (offsetof): Define if not defined.
1122 2002-08-14 H.J. Lu <hjl@gnu.org>
1124 * configure.tgt: Always enable 64bit emulations for 32bit
1127 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1129 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1130 (MAXPAGESIZE): Set to 1.
1132 * ld.h (ALIGN_N): Delete.
1133 * ldexp.h (align_n): Declare.
1134 * ldexp.c (align_n): New function.
1135 (fold_binary): Use align_n instead of ALIGN_N.
1136 (exp_fold_tree): Likewise.
1137 * ldlang.c (lang_size_sections_1): Likewise.
1138 (lang_one_common): Likewise.
1139 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1141 2002-07-31 Graeme Peterson <gp@qnx.com>
1143 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1144 * Makefile.am: Add eelf32{l}ppcnto.o files.
1145 * Makefile.in: Regenerate.
1146 * emulparams/elf32lppcnto.sh: New file.
1147 * emulparams/elf32ppcnto.sh: New file.
1149 2002-08-07 H.J. Lu <hjl@gnu.org>
1151 * ld.texinfo: Document --no-undefined-version.
1153 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1154 `script.' fields to 0.
1156 * ldmain.c (main): Initialize the allow_undefined_version to
1159 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1160 (ld_options): Add --no-undefined-version.
1161 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1163 2002-08-07 Nick Clifton <nickc@redhat.com>
1165 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1166 an interworking bfd if there are input bfds. (107501)
1168 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1170 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1173 2002-08-01 Nick Clifton <nickc@redhat.com>
1175 * emulparams/armelf.sh: Revert previous delta.
1176 * scripttempl/elf.sc: Revert previous delta.
1178 2002-07-31 H.J. Lu <hjl@gnu.org>
1180 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1181 --enable-64-bit-bfd.
1183 2002-07-31 H.J. Lu <hjl@gnu.org>
1185 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1186 64bit BFD is selected.
1188 2002-07-31 H.J. Lu <hjl@gnu.org>
1190 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1191 if 64bit BFD is selected.
1193 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1195 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1196 link_info.common_skip_ar_aymbols.
1197 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1199 * ldmain.c (main): Initialize new field
1200 link_info.common_skip_ar_aymbols.
1202 2002-07-31 Adam Nemet <anemet@lnxw.com>
1204 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1206 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1209 2002-07-31 Nick Clifton <nickc@redhat.com>
1211 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1212 of the PDP-11 and 2.11BSD a.out support.
1214 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1216 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1217 for n32 ABI support.
1218 * Makefile.in: Regenerate.
1219 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1220 n32 ABI emulations for these 64 bit targets.
1221 * emulparams/elf32bmipn32.sh: Expand comment.
1222 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1224 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1226 2002-07-30 Graeme Peterson <gp@qnx.com>
1228 * configure.tgt: Add support for arm-*-nto target.
1229 * Makefile.am: Add earmnto.o file.
1230 * Makefile.in: Regenerate.
1231 * NEWS: Mention port of ARM support to QNX.
1232 * emulparams/armnto.sh: New file.
1234 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1236 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1237 for relocatable link.
1238 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1241 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1243 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1246 2002-07-25 Nick Clifton <nickc@redhat.com>
1248 * po/sv.po: Updated Swedish translation.
1249 * po/es.po: Updated Spanish translation.
1250 * po/fr.po: Updated French translation.
1252 2002-07-24 Nick Clifton <nickc@redhat.com>
1254 * po/sv.po: Updated Swedish translation.
1255 * po/es.po: Updated Spanish translation.
1257 2002-07-23 Nick Clifton <nickc@redhat.com>
1259 * po/fr.po: Updated French translation.
1261 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1263 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1264 bomb on /DISCARD/ input section.
1265 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1266 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1268 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1270 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1273 2002-07-16 Denis Chertykov <denisc@overta.ru>
1274 Nick Clifton <nickc@redhat.com>
1275 Frank Ch. Eigler <fche@redhat.com>
1276 John Healy <jhealy@redhat.com>
1278 * configure.tgt: Add support for ip2k-elf.
1279 * Makefile.am: Add support for ip2k-elf.
1280 * Makefile.in: Regenerate.
1281 * emulparams/elf32ip2k.sh: New file.
1282 * scripttempl/ip2k.sc: New file
1283 * NEWS: Mention support for new port.
1285 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1287 * NEWS: Add 'Changes in 2.13'.
1289 2002-07-14 H.J. Lu <hjl@gnu.org>
1291 * ld.texinfo: Document a .symver takes precedence over a
1294 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1296 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1297 (COMMONPAGESIZE): Define.
1299 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1301 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1303 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1305 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1306 powerpc-*-openbsd* and sparc64-*-openbsd*.
1307 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1308 * Makefile.in: Regenerate.
1309 * emulparams/hppaobsd.sh: New file.
1311 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1313 * ldlang.c (print_wild_statement): Fix output formatting.
1315 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1317 * ldlang.c: (strip_excluded_output_sections): New function.
1318 (lang_process): Call it.
1319 (lang_size_sections_1): Revert 2002-06-10 change.
1321 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1323 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1325 * Makefile.in: Regenerate.
1327 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1329 * ldfile.c (ldfile_try_open_bfd): Formatting.
1331 * ldmisc.c (demangle): Move so that it doesn't intrude between
1332 vfinfo comment and body. Add comment.
1334 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1336 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1338 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1340 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1341 * ldlang.c (entry_sym): Likewise.
1342 (ldlang_undef_chain_list_type): Likewise.
1343 (lang_finish): Adjust references to entry_symbol.
1344 (lang_add_entry): Likewise.
1345 (lang_gc_sections): Use link_info.gc_sym_list.
1346 (lang_process): Set link_info.gc_sym_list.
1347 * ldlex.l: Include bfdlink.h.
1348 * ldmain.c (main): Init link_info.gc_sym_list.
1349 * emultempl/aix.em: Adjust references to entry_symbol.
1350 * emultempl/armcoff.em: Likewise.
1351 * emultempl/armelf.em: Likewise.
1352 * emultempl/pe.em: Likewise.
1353 * emultempl/ppc64elf.em (ppc_after_open): New function.
1354 (LDEMUL_AFTER_OPEN): Define.
1355 * emulparams/elf64ppc.sh: KEEP .opd sections.
1357 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1359 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1360 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1361 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1362 (EEPROM_START_ADDR): Define.
1363 (EEPROM_MEMORY): Define.
1364 * emulparams/m68hc12elf.sh: Likewise.
1365 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1366 section to put soft registers in .page0.
1367 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1369 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1371 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1372 section. Add ${RELOCATING-0}.
1374 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1376 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1377 (OTHER_SECTIONS): Define.
1378 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1379 (OTHER_SECTIONS): Undef.
1381 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1383 * ldmisc.c (demangle): Restore dots stripped from sym name.
1385 2002-06-25 H.J. Lu <hjl@gnu.org>
1387 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1388 * Makefile.in: Regenerated.
1390 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1392 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1393 the size of attached object files, to allow make the object files
1394 available via FTP or HTTP and to mention that the mail will be
1395 sent to a mailing list.
1397 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1399 * ld/configure.host (romp): Drop support.
1401 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1403 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1404 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1406 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1408 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1409 format specifier used to print BFD name.
1411 2002-06-18 Dave Brolley <brolley@redhat.com>
1413 From Catherine Moore, Michael Meissner, Jim Blandy:
1414 * emulparams/elf32frv.sh: New file.
1415 * configure.tgt: Support frv-*-*.
1416 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1417 (eelf32frv.c): New target.
1419 2002-06-17 Tom Rix <trix@redhat.com>
1421 * emultempl/elf32.em: gld*_get_script: Check for
1422 GENERATE_COMBRELOC_SCRIPT.
1423 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1424 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1426 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1428 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1430 2002-06-12 H.J. Lu <hjl@gnu.org>
1432 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1433 false if xvec doesn't match.
1435 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1437 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1439 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1441 * ldexp.c: Replace CONST with const.
1442 * ldfile.c: Likewise.
1443 * ldfile.h: Likewise.
1444 * ldlex.l: Likewise.
1446 * pe-dll.h: Likewise.
1448 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1450 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1452 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1454 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1455 to -1 == implicit enable.
1456 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1457 initialize link_info.pei386_auto_import to -1 == implicit
1459 (gld_${EMULATION_NAME}_parse_args): When processing
1460 --enable-auto-import and --disable-auto-import options, use
1461 '1' and '0' instead of 'true' and 'false'.
1462 (pe_find_data_imports): Only issue message about auto-import
1463 when the feature is implicitly enabled. Downgrade message to
1464 informational instead of warning.
1466 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1468 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1470 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1472 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1473 HOSTING_CRT0 and HOSTING_LIBS.
1475 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1477 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1479 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1481 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1482 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1484 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1486 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1487 SEC_EXCLUDE sections when doing a relocatable link.
1489 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1491 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1492 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1493 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1494 (eshlelf64_nbsd.c): New rules.
1495 * Makefile.in: Regenerate.
1496 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1497 (sh64-*-netbsd*): New targets.
1498 * emulparams/shelf32_nbsd.sh: New file.
1499 * emulparams/shelf64_nbsd.sh: New file.
1500 * emulparams/shlelf32_nbsd.sh: New file.
1501 * emulparams/shlelf64_nbsd.sh: New file.
1503 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1505 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1507 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1509 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1510 C++ constructors/destructors, loosely based on the m68hc11 port.
1512 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1514 * Makefile.in: Regenerate.
1515 * aclocal.m4: Regenerate.
1516 * config.in: Regenerate.
1517 * configure: Regenerate.
1519 2002-05-31 Graeme Peterson <gp@qnx.com>
1521 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1522 (ei386nto.c): Add rule.
1523 * Makefile.in: Regenerate.
1524 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1525 * emulparams/i386nto.sh: New file.
1527 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1529 * NEWS: Add entry for VAX ELF support.
1531 2002-05-29 Matt Thomas <matt@3am-software.com>
1532 Jason Thorpe <thorpej@wasabisystems.com>
1534 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1536 (evaxnbsd.c): New rules.
1537 * Makefile.in: Regenerate.
1538 * configure.tgt (vax-*-netbsdelf*)
1540 (vax-*-netbsd*): New targets.
1541 * emulparams/elf32vax.sh: New file.
1542 * emulparams/vaxnbsd.sh: New file.
1544 2002-05-29 Adam Nemet <anemet@lnxw.com>
1546 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1547 bfd_for_interwork, instead add glue sections to each input bfd.
1548 (bfd_for_interwork): New global.
1549 (arm_elf_set_bfd_for_interworking): New function.
1550 (arm_elf_before_allocation): Use it.
1552 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1554 * Makefile.am: Add DLX make target.
1555 * configure.tgt: Add DLX configuration.
1556 * Makefile.in: Regenerate.
1557 * emulparams/elf32_dlx.sh: New file
1558 * scripttempl/dlx.sc: New file
1560 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1562 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1563 * Makefile.in: Regenerate.
1564 * emulparams/elf_chaos.sh: Use elf_chaos script.
1565 * scripttempl/elf_chaos.sc: New file.
1567 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1569 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1570 addresses and regions from here...
1571 (lang_get_regions): ...to this new function.
1572 (lang_leave_output_section_statement): Use lang_get_regions.
1573 (lang_leave_overlay): Likewise.
1574 * mri.c (mri_draw_tree): Pass null as last argument to
1575 lang_leave_output_section_statement.
1576 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1577 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1578 * emultempl/pe.em (gld*_place_orphan): Likewise.
1580 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1582 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1584 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1586 * ldemul.c: Fix formatting.
1587 * ldfile.c: Likewise.
1588 * pe-dll.c: Likewise.
1589 * pe-dll.h: Likewise.
1591 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1593 * ldlang.c (lang_process): Formatting, grammar.
1595 * ldlex.l: Use #include "" instead of <> for local header files.
1597 2002-05-24 TAMURA Kent <kent@netbsd.org>
1599 * configure.tgt: Add a target for i386-netbsdpe.
1601 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1603 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1604 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1605 output section if necessary. Handle .tbss.
1606 (lang_size_sections): Clear _raw_size for .tbss section
1607 (it allocates space in PT_TLS segment only).
1608 * ldwrite.c (build_link_order): Build link order for .tbss too.
1610 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1612 * configure.in: Correct spelling of AC_PREREQ.
1614 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1616 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1618 (autofilter_objlist): Add crtbegin.o, crtend.o.
1620 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1622 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1623 (longopts): Add new option --exclude-libs.
1624 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1625 (gld_${EMULATION_NAME}_parse_args): Use it.
1626 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1627 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1628 from whole archives.
1629 (pe_dll_add_excludes): Set excludes->type.
1630 (auto_export): Add new variable libname and set to archive basename if
1631 abfd. Use it when filtering default and user-specified libarary
1632 excludes. Let string "ALL" mean all libs when filtering user-specified
1634 * ld.texinfo: Document --exclude-libs.
1636 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1638 * ldemul.c (ldemul_new_vers_pattern): New function.
1639 * ldemul.h (ldemul_new_vers_pattern): Declare.
1640 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1641 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1642 * emultempl/ppc64elf.em (dotsyms): New static var.
1643 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1644 (LDEMUL_NEW_VERS_PATTERN): Define.
1645 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1646 (PARSE_AND_LIST_LONGOPTS): Likewise.
1647 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1648 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1650 * emultempl/armcoff.em: Likewise.
1651 * emultempl/armelf_oabi.em: Likewise.
1652 * emultempl/beos.em: Likewise.
1653 * emultempl/elf32.em: Likewise.
1654 * emultempl/generic.em: Likewise.
1655 * emultempl/gld960.em: Likewise.
1656 * emultempl/gld960c.em: Likewise.
1657 * emultempl/linux.em: Likewise.
1658 * emultempl/lnk960.em: Likewise.
1659 * emultempl/m68kcoff.em: Likewise.
1660 * emultempl/mipsecoff.em: Likewise.
1661 * emultempl/pe.em: Likewise.
1662 * emultempl/sunos.em: Likewise.
1663 * emultempl/ticoff.em: Likewise.
1664 * emultempl/vanilla.em: Likewise.
1666 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1668 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1669 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1670 (LIB_SEARCH_DIRS): No need to use "tr".
1671 (COMPILE_IN): Only set for native targets.
1672 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1673 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1674 * configure.tgt (powerpc*): Set tdir_*.
1675 (powerpcle*): Correct targ_extra_emuls.
1676 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1677 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1679 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1681 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1682 calling lang_add_entry.
1684 2002-05-21 H.J. Lu (hjl@gnu.org)
1686 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1688 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1690 * ld.texinfo: Updated for --allow-multiple-definition and
1693 * ldmain.c (main): Initialize the allow_multiple_definition
1696 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1697 (ld_options): Add --allow-multiple-definition.
1698 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1700 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1702 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1703 (earmelfb_nbsd.c): New rule.
1704 * Makefile.in: Regenerate.
1705 * configure.tgt (armeb-*-netbsdelf*): New target.
1706 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1707 (arm-*-netbsd*): Likewise.
1708 * emulparams/armelfb_nbsd.sh: New file.
1710 2002-05-18 Tom Rix <trix@redhat.com>
1712 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1715 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1717 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1718 * Makefile.in: Regenerate.
1719 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1721 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1723 * emulparams/avr1.sh: New file.
1724 * emulparams/avr2.sh: New file.
1725 * emulparams/avr3.sh: New file.
1726 * emulparams/avr4.sh: New file.
1727 * emulparams/avr5.sh: New file.
1728 * scripttempl/avr.sc: New file.
1730 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1732 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1733 (lang_place_orphans): Abort if just_syms_flag.
1735 2002-05-10 Tom Rix <trix@redhat.com>
1737 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1738 architecture and machine information in the output bfd.
1739 (gld*_before_parse): Remove old arch and machine code.
1740 (choose_target): Rename to gld*_choose_target.
1741 (rtld): Change type to int.
1742 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1743 objects in XCOFF archives.
1744 * ldfile.h: Update copyright date.
1746 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1748 * ldmain.c (main): Enable -z combreloc by default.
1750 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1752 * Makefile.am: Honour DESTDIR.
1753 * Makefile.in: Regenerate.
1755 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1757 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1758 (lang_enter_overlay): Remove the last two parameters.
1759 (lang_leave_overlay): Take them here instead.
1760 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1761 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1762 than lang_enter_overlay.
1763 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1764 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1765 (lang_size_sections_1): Evaluate it.
1766 (lang_leave_output_section_statement): Rework LMA lookup.
1767 (overlay_lma, overlay_nocrossrefs): Remove.
1768 (lang_enter_overlay): Remove LMA and crossref arguments.
1769 (lang_enter_overlay_section): Don't set the LMA here.
1770 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1771 assignment to the last section's update_dot_tree. Unconditionally
1772 use the load and run-time regions specified in the OVERLAY statement.
1773 Likewise the first section's LMA. Only set the other sections' LMAs
1774 when no load region is given.
1776 2002-05-06 Nick Clifton <nickc@redhat.com>
1778 * po/sv.po: New translation.
1780 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1782 * emultempl/hppaelf.em (build_section_lists): New function.
1783 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1784 and build_section_lists.
1786 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1788 * ld.h: Fix formatting.
1789 * ldexp.c: Likewise.
1790 * ldfile.c: Likewise.
1791 * ldlang.c: Likewise.
1792 * ldmain.c: Likewise.
1793 * lexsup.c: Likewise.
1794 * pe-dll.c: Likewise.
1796 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1798 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1799 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1800 (build_section_lists): Do output_section tests here.
1802 2002-04-30 Tom Rix <trix@redhat.com>
1804 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1806 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1808 Long branch stubs, multiple stub sections.
1809 * emultempl/ppc64elf.em: Include ldctor.h.
1810 (stub_file): New var.
1811 (group_size): New var.
1812 (ppc_create_output_section_statements): New function.
1813 (struct hook_stub_info): New.
1814 (hook_in_stub): New function.
1815 (ppc_add_stub_section): New function.
1816 (ppc_layout_sections_again): New function.
1817 (build_section_lists): New function.
1818 (gld${EMULATION_NAME}_finish): Rewrite.
1819 (real_func): New var.
1820 (ppc_for_each_input_file_wrapper): New function.
1821 (ppc_lang_for_each_input_file): New function.
1822 (lang_for_each_input_file): Define.
1823 (PARSE_AND_LIST_PROLOGUE): Define.
1824 (PARSE_AND_LIST_LONGOPTS): Define.
1825 (PARSE_AND_LIST_OPTIONS): Define.
1826 (PARSE_AND_LIST_ARGS_CASES): Define.
1827 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1829 2002-04-30 Tom Rix <trix@redhat.com>
1831 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1832 -blibpath, -bnolibpath support.
1834 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1836 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1837 (eelf32ppcwindiss.c): New target.
1838 * Makefile.in: Regenerated.
1839 * configure.tgt: Add support for powerpc-*-windiss.
1840 * emulparams/elf32ppcwindiss.sh: New file.
1842 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1844 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1845 * ldexp.c (exp_print_token): Add "infix_p" argument.
1846 (exp_print_tree): Update accordingly.
1848 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1850 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1851 * Makefile.in: Regenerate.
1852 * mpw-elfmips.c: Delete.
1853 * mpw-eppcmac.c: Delete.
1854 * mpw-esh.c: Delete.
1855 * mpw-idtmips.c: Delete.
1857 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1859 * emulparams/shelf32.sh (MACHINE): Now sh5.
1861 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1863 * ldgram.y: Fix syntax warning.
1865 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1867 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1868 to prevent "-n" from being taken as an abbreviation for
1869 "--no-pipeline-knowledge".
1871 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1873 * ldlang.c (lang_size_sections_1): Don't complain about
1874 SEC_NEVER_LOAD sections having no memory region specified.
1876 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1878 2002-04-07 matthew green <mrg@redhat.com>
1880 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1882 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1884 * dep-in.sed: Cope with absolute paths.
1885 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1887 * Makefile.in: Regenerate.
1889 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1891 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1893 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1895 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1896 is smaller than maximum, round dot up to common page boundary.
1898 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1900 * configure.host: Set up for generic hosts first, then tweak as
1901 necessary in more specific targets.
1902 (HOSTING_LIBS): Include libgcc_eh.a if found.
1904 2002-03-23 Andreas Jaeger <aj@suse.de>
1906 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1908 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1910 * Makefile.am: Run "make dep-am".
1911 * Makefile.in: Regenerate.
1913 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1915 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1917 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1919 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1920 add the symbol to the linker hash table immediately.
1921 (lang_place_undefineds): Split symbol creation out..
1922 (insert_undefined): ..to here.
1924 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1926 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1927 the contents of the buffer returned from basename function will are
1928 getting overwritten while still being used.
1930 2002-03-18 Jan Hubicka <jh@suse.cz>
1931 Andreas Jaeger <aj@suse.de>
1932 Andreas Schwab <schwab@suse.de>
1934 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1935 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1936 set libraries to default to lib64 paths.
1938 2002-03-18 Tom Rix <trix@redhat.com>
1940 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1941 * configure.tgt : Same.
1942 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1943 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1944 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1945 emulation parameters for better -b32, -b64 support.
1946 * emulparms/aixrs6.sh : Same.
1947 * emulparms/ppcmacos.sh : Same.
1948 * emultempl/aix.em (choose_target) : Use new emulation parameters
1949 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1950 * Makefile.in : Regenerate.
1952 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1954 * po/fr.po: Updated version.
1956 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1958 * ldmain.c (main): Move .text readonly flag fudges from here..
1959 * ldlang.c (lang_process): ..to here.
1961 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1963 * ldlang.c (lang_check): Remove the word size check added in last
1964 change. Treat emitrelocations case as for relocatable links.
1966 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1968 * po/fr.po: Updated version.
1970 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1972 * ldlang.c (lang_check): Do relocatable link checks first, so that
1973 warn_mismatch can't override. Check compatible and word size too.
1975 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1977 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1979 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1981 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1984 2002-03-04 H.J. Lu <hjl@gnu.org>
1986 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1987 .fini_array in the data segment.
1989 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1991 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1993 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1995 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1996 .init_array, and .fini_array.
1998 2002-02-20 Andreas Schwab <schwab@suse.de>
2000 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2001 .IA64_unwind* in a relocatable link.
2003 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2005 * NEWS: Mark 2.12 branch.
2007 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2009 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2010 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2012 2002-02-18 Tom Rix <trix@redhat.com>
2014 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2015 (gld*_before_allocation): Same.
2016 (gld*_create_output_section_statements): Generate
2017 __rtinit if run time linking. Add librtl.a to the link.
2018 (gld*_read_file): Clean.
2020 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2022 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2024 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2026 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2027 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2028 and eelf64alpha_fbsd.
2029 * Makefile.in: Regenerate.
2030 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2031 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2032 use a FreeBSD-specific emulation rather than the psABI one.
2033 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2034 for all FreeBSD ELF systems.
2035 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2037 * emulparams/elf32ppc_fbsd.sh: Likewise.
2038 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2039 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2040 * emulparams/elf64alpha_fbsd.sh: Likewise.
2041 * emulparams/elf_i386_fbsd.sh: Likewise.
2042 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2044 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2046 * po/tr.po: Updated version.
2048 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2050 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2053 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2055 * emultempl/mmo.em (mmo_after_open): Don't call
2056 _bfd_mmix_check_all_relocs when producing ELF output.
2058 2002-02-15 Richard Henderson <rth@redhat.com>
2060 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2061 definition. Emit a unop+nop pair.
2063 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2065 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2066 for presence of .MMIX.reg_contents.linker_allocated before early
2069 * NEWS: Mention support for MMIX.
2071 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2073 Support arbitrary length fill patterns.
2074 * ld.texinfo (Output Section Fill): Describe fill expressions.
2075 (FILL): Refer to the above.
2076 * ldexp.h (etree_value_type): Add "str" field.
2077 (union etree_union): Add "str" to "value" struct.
2078 (exp_bigintop): Declare.
2079 (exp_get_fill): Declare.
2080 * ldexp.c: Include "safe-ctype.h".
2081 (exp_intop): Set value.str to NULL.
2082 (exp_bigintop): New function.
2083 (new_rel): Pass in "str", and set new.str from it.
2084 (new_rel_from_section): Set new.str to NULL.
2085 (fold_name): Adjust calls to new_rel.
2086 (exp_fold_tree): Likewise.
2087 (exp_get_fill): New function.
2088 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2089 (INT): Returns a "bigint". Adjust all code handling INTs.
2090 (fill_opt): Returns a "fill".
2091 (fill_exp): Split out of fill_opt, use for FILL.
2092 * ldlang.h (struct _fill_type): New.
2093 (fill_type): Move typedef to ldexp.h.
2094 (lang_output_section_statement_type): "fill" is now a pointer.
2095 (lang_fill_statement_type): Likewise.
2096 (lang_padding_statement_type): Likewise.
2097 (lang_add_fill): Now takes a "fill_type *" param.
2098 (lang_leave_output_section_statement): Likewise.
2099 (lang_do_assignments): Likewise.
2100 (lang_size_sections): Likewise.
2101 (lang_leave_overlay_section): Likewise.
2102 (lang_leave_overlay): Likewise.
2103 * ldlang.c: Include ldgram.h after ldexp.h.
2104 (lang_output_section_statement_lookup): Adjust for fill_type change.
2105 (print_fill_statement): Likewise.
2106 (print_padding_statement): Likewise.
2107 (insert_pad): Now takes a "fill_type *" arg.
2108 (size_input_section): Likewise.
2109 (lang_size_sections_1): Likewise.
2110 (lang_size_sections): Likewise.
2111 (lang_do_assignments): Likewise.
2112 (lang_add_fill): Likewise.
2113 (lang_leave_output_section_statement): Likewise.
2114 (lang_leave_overlay_section): Likewise.
2115 (lang_leave_overlay): Likewise.
2116 Adjust all callers of the above function.
2117 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2118 starting with "0X" as well as "0x". Return bigint.str for hex
2119 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2120 Always use base 16 for numbers starting with "$".
2121 * ldmain.c: Include ldgram.h after ldexp.h.
2122 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2123 of bfd_fill_link_order.
2124 * pe-dll.c: Adjust lang_do_assignments calls.
2125 * emultempl/elf32.em: Likewise.
2126 * emultempl/hppaelf.em: Likewise.
2127 * emultempl/ppc64elf.em: Likewise.
2128 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2129 lang_add_assignment call.
2130 * emultempl/pe.em: Likewise.
2132 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2134 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2135 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2136 the pattern in question is not a regexp.
2137 * ldlang.c: Likewise.
2138 * ldlang.h: Likewise.
2139 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2141 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2143 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2144 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2145 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2146 * ldexp.c (exp_data_seg): New variable.
2147 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2148 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2149 (exp_fold_tree): Handle DATA_SEGMENT_END.
2150 Pass allocation_done when recursing instead of hardcoding
2151 lang_allocating_phase_enum.
2152 * ldexp.h (exp_data_seg): New.
2153 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2154 (lang_size_sections): New.
2155 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2156 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2157 if COMMONPAGESIZE is defined.
2158 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2159 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2160 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2161 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2162 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2165 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2167 * Makefile.in: Regenerate.
2169 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2171 * lexsup.c: Remove strtoul declaration.
2173 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2175 * ldmain.c: Add prototype for main ().
2176 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2177 * emultempl/lnk960.em (lnk960_choose_target): Function should
2180 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2182 * ldlang.c (entry_section): New initialised variable.
2183 (lang_finish): Use it.
2184 * ldlang.h (entry_section): Declare.
2185 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2186 entry_section to ".opd".
2188 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2190 * ld.texinfo (Options): Add back in -nostdlib documentation,
2191 which had been inadvertently removed.
2193 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2195 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2196 register section vma to a sane value after emitting error. Make
2197 fatal conditions cause program exit when emitting message.
2199 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2201 * configure.tgt: Add or32-*-rtems target.
2203 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2205 Contribute sh64-elf.
2206 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2207 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2208 in OTHER_RELOCATABLE_SECTIONS.
2209 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2210 * emulparams/shelf32.sh (STACK_ADDR): Define.
2211 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2212 (OTHER_SECTIONS): this. Removed stack settings.
2213 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2214 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2215 2001-03-12 DJ Delorie <dj@redhat.com>
2216 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2217 relaxing if any shmedia or mixed sections are found.
2218 2001-03-07 DJ Delorie <dj@redhat.com>
2219 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2220 einfo. Gracefully decline to output to non-elf formats.
2221 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2222 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2223 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2224 * emulparams/shelf32.sh: Ditto.
2225 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2226 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2228 2001-01-10 Ben Elliston <bje@redhat.com>
2229 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2230 non-portable shell constructs. From Hans-Peter Nilsson.
2231 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2232 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2233 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2234 dependencies to the shell script include chain.
2235 * Makefile.in: Regenerate.
2236 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2237 * emultempl/sh64elf.em: Update and tweak comments.
2238 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2239 make a .cranges section SEC_IN_MEMORY.
2240 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2241 * emultempl/sh64elf.em
2242 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2243 .cranges section found to be necessary; continue and set stored
2244 section contents flags for sections with non-mixed contents.
2245 Use a struct sh64_section_data container and sh64_elf_section_data
2246 to store contents-type flags.
2247 Remove unused update of "isec".
2248 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2249 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2250 access contents-type flags. Assert that the associated container
2251 is initialized. Use that container, not elf_gp_size, to hold size
2252 of linker-generated cranges contents.
2253 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2254 * emultempl/sh64elf.em
2255 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2256 there's already a .cranges section. When section flag difference
2257 is found, don't NULL-check cranges a second time. Tweak comments.
2258 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2259 merging, not max size, as size of ld-generated .cranges contents.
2260 Don't set ELF section flags in output section. When checking for
2261 needed .cranges descriptors, don't use a variable; compare
2262 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2264 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2265 * emultempl/sh64elf.em: New file.
2266 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2267 * Makefile.in: Regenerate.
2268 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2269 (OTHER_RELOCATING_SECTIONS): Ditto.
2270 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2271 * emulparams/shlelf32.sh: Stub out all settings except
2272 OUTPUT_FORMAT. Source shelf32.sh.
2273 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2274 OTHER_RELOCATING_SECTIONS.
2275 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2276 * emulparams/shlelf64.sh: Stub out all settings except
2277 OUTPUT_FORMAT. Source shelf64.sh.
2278 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2279 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2281 (DATA_START_SYMBOLS): Define, provide ___data.
2282 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2283 for consecutive .data section.
2284 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2285 section after .data section.
2286 * emulparams/shlelf64.sh: Ditto.
2287 * emulparams/shelf32.sh: Ditto.
2288 (ALIGNMENT): Define to 8.
2289 * emulparams/shelf32.sh: Ditto.
2290 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2291 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2292 built-in linker scripts.
2293 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2294 * emulparams/shlelf64.sh: New.
2295 * emulparams/shelf64.sh: New.
2296 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2298 * Makefile.am: Add support for shlelf64 and shelf64.
2299 * Makefile.in: Regenerate.
2300 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2301 * configure.tgt (sh64-*-elf*): Add shelf as default.
2302 Add shlelf to targ_extra_emuls.
2303 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2304 * emulparams/shelf32.sh: New file.
2305 * emulparams/shlelf32.sh: New file.
2306 * Makefile.am: Add support for shlelf32 and shelf32.
2307 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2308 * Makefile.in: Regenerate.
2310 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2312 * ldlang.c (lang_reset_memory_regions): Rename from
2313 reset_memory_regions. Change all callers. Make public.
2314 * ldlang.h (lang_reset_memory_regions): Prototype.
2315 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2316 lang_reset_memory_regions before lang_size_sections.
2317 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2318 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2320 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2322 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2323 arithmetic when checking for too many global registers.
2325 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2327 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2328 (ehppanbsd.c): New rule.
2329 * Makefile.in: Regenerate.
2330 * configure.tgt (hppa*-*-netbsd*): New target.
2331 * emulparams/hppalinux.sh: Add comment to check other files
2332 that source this file it is modified, and list which
2334 * emulparams/hppanbsd.sh: New file.
2336 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2338 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2341 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2343 Support on-demand global register allocation from
2344 R_MMIX_BASE_PLUS_OFFSET relocs.
2345 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2346 mmix_set_reg_section_vma. Call
2347 _bfd_mmix_finalize_linker_allocated_gregs.
2348 (mmix_before_allocation): New function.
2349 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2350 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2351 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2352 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2353 before .MMIX.reg_contents.
2354 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2355 (mmo_after_open): New function.
2356 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2357 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2358 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2360 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2362 * emulparams/or32.sh: New file.
2363 * emulparams/or32elf.sh: New file.
2364 * scripttempl/or32.sc: New file.
2365 * configure.tgt : Add support for or32.
2366 * configure: Regenerate
2367 * Makefile.am: Add support for or32.
2368 * Makefile.in: Regenerate.
2369 * NEWS: Mention support for or32.
2370 * po/ld.pot: Regenerate.
2372 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2373 Mitch Lichtenberg <mpl@broadcom.com>
2375 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2376 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2377 reloc creation (ld --embedded-relocs).
2379 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2381 * configure: Regenerated.
2383 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2385 * Makefile.am (install): Depend on install-info.
2386 * Makefile.in: Regenerate.
2388 2002-01-26 Christian Rose <menthos@menthos.com>
2390 * ldmain.c (main): Use full sentences to ease translation.
2392 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2394 * po/fr.po: Updated version.
2396 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2398 * po/es.po: Updated version.
2400 2002-01-25 Andreas Jaeger <aj@suse.de>
2402 * ldlex.l (yy_input): Correct error check.
2404 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2406 * ldmisc.c (demangle): Put back dots when string not demangled.
2408 2002-01-22 Richard Henderson <rth@redhat.com>
2410 * emulparams/elf64alpha.sh (NOP): Use unop.
2412 2002-01-21 Andreas Jaeger <aj@suse.de>
2414 * ldlex.l: Use fread instead of read.
2416 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2418 * configure.tgt (ia64-*-netbsd*): New target.
2420 2002-01-21 H.J. Lu <hjl@gnu.org>
2422 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2424 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2426 2002-01-18 Andreas Jaeger <aj@suse.de>
2428 * ldver.c (ldversion): Update year.
2430 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2432 * po/ld.pot: Regenerate.
2434 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2436 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2437 * Makefile.in: Regenerate.
2438 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2439 * emultempl/ppc64elf.em: New file.
2441 2002-01-15 DJ Delorie <dj@redhat.com>
2443 * scripttempl/pe.sc: Add support for constructor priorities.
2445 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2447 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2448 * emulparams/avr23xx.sh: Likewise.
2449 * emulparams/avr4433.sh: Likewise.
2450 * emulparams/avr44x4.sh: Likewise.
2451 * emulparams/avr85xx.sh: Likewise.
2452 * emulparams/avrmega103.sh: Likewise.
2453 * emulparams/avrmega161.sh: Likewise.
2454 * emulparams/avrmega603.sh: Likewise.
2455 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2457 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2459 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2460 archive is excluded.
2462 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2464 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2465 (eshelf_nbsd.c): New rule.
2466 (eshlelf_nbsd.c): New rule.
2467 * Makefile.in: Regenerate.
2468 * configure.tgt (sh*le-*-netbsdelf*): New target.
2469 (sh*-*-netbsdelf*): New target.
2470 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2471 * ld/emulparams/shelf_nbsd.sh: New emulation.
2472 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2474 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2476 * po/es.po: New file: Spanish translation.
2477 * configure.in (ALL_LINGUAS): Add es.
2478 * configure: Regenerate.
2480 2002-01-06 John Marshall <jmarshall@acm.org>
2482 * ld.texinfo: Note that --emit-relocs is currently only
2483 implemented for ELF.
2485 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2487 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2488 of bfd_section_list_remove and bfd_section_list_insert macros.
2489 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2490 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2492 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2494 * configure.tgt (x86_64-*-netbsd*): New target.
2496 2001-12-21 Tom Rix <trix@redhat.com>
2498 (gld*_create_output_section_statements): New function.
2499 For -binitfini support.
2500 * emultempl/aix.em (gld*_before_parse): Fix comment.
2501 * emultempl/aix.em (gld*_parse_args): Fix comment.
2503 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2505 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2507 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2509 * configure.tgt (arm-*-netbsdelf*): Add target.
2510 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2511 * emulparams/armelf_nbsd.sh: Added.
2512 * Makefile.am: Add rules for earmelf_nbsd.
2513 * Makefile.in: Regenerate.
2515 2001-12-19 Andreas Jaeger <aj@suse.de>,
2516 Susanne Oberhauser <froh@suse.de>
2518 * configure.host: Add rules for x86_64-*linux-gnu. Change
2519 s390x-linux entry to use gcc to report configuration, replace gcc
2520 with $CC in s390-linux
2522 2001-12-19 Andreas Jaeger <aj@suse.de>
2524 * ld.texinfo (VERSION): Fix markup.
2526 2001-12-18 matthew green <mrg@eterna.com.au>
2528 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2529 (m68kelfnbsd.c): New rule.
2530 * Makefile.in: Regenerate.
2531 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2532 (m68*-*-netbsd*4k*): .. this.
2533 (m68*-*-netbsdelf*): New target.
2534 (m68*-*-netbsd*): Also include ELF support.
2535 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2536 * emulparams/m68kelfnbsd.sh: New emulation.
2538 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2540 * ldgram.y (vers_node): Support anonymous version tags.
2541 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2542 tag is not defined together with non-anonymous versions.
2543 * ld.texinfo: Document it.
2545 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2547 * po/tr.po: New file: Turkish translation.
2548 * configure.in (ALL_LINGUAS): Add tr.
2549 * configure: Regenerate.
2551 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2553 * Makefile.am: Add rules for eelf64alpha_nbsd.
2554 * Makefile.in: Regenerate.
2555 * configure.tgt (alpha*-*-netbsd*): Set
2556 targ_emul to elf64alpha_nbsd.
2557 * emulparams/elf64alpha_nbsd.sh: Added.
2559 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2561 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2562 section_tail when fiddling with section list.
2563 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2564 broken into separate strings to make translation easier.
2565 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2566 fiddling with section list.
2567 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2569 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2571 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2573 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2575 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2577 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2579 * emultempl/elf32.em (finish): Supply output_bfd
2580 to bfd_elf*_discard_info.
2581 (OPTION_EH_FRAME_HDR): Define.
2582 (longopts): Add --eh-frame-hdr.
2583 (parse_args): Handle it.
2584 (list_options): Add --eh-frame-hdr to help.
2585 * emultempl/hppaelf.em (finish): Supply output_bfd
2586 to bfd_elf*_discard_info.
2587 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2589 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2591 * lexsup.c (parse_args): Don't pass shortopts to second call to
2592 getopt functions. Restore optind rather than decrementing before
2593 second call. Remove errind as it now duplicates last_optind.
2595 2001-12-11 Christopher Faylor <cgf@redhat.com>
2597 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2599 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2600 Richard Henderson <rth@redhat.com>
2602 * Makefile.am: Add support for xstormy16.
2603 * configure.tgt: Add support for xstormy16.
2604 * Makefile.in: Regenerate.
2605 * emulparams/elf32xstormy16.sh: New file.
2606 * scripttempl/xstormy16.sc: New file.
2608 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2610 * Makefile.in (LIB_PATH): Make configurable.
2611 (GENSCRIPTS): Set LIB_PATH in environment.
2612 * configure.in: Substitute LIB_PATH.
2613 * configure: Regenerate.
2614 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2615 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2617 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2619 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2620 describing the -N option so that it is easier to translate into
2623 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2625 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2626 statements describing a single option with a single, newline
2627 escaped fprintf. This allows better translation into other
2630 * ldmain.c (add_archive_element): Combine multiple strings
2631 into a single string to permit better translation into other
2634 2001-12-05 Tom Rix <trix@redhat.com>
2636 * Makefile.am: Remove eaixppc64.
2637 * Makefile.in: Regenerate.
2639 2001-12-04 Tom Rix <trix@redhat.com>
2641 * emultempl/aix.em (choose_target): Change default target to
2642 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2644 (gld*_read_file): Fix typo.
2645 (change_symbol_mode): Add prototype.
2648 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2649 * emulparams/aixrs6.sh : Same.
2650 * emulparams/ppcmacos.sh : Same.
2651 * emulparams/aixppc64.sh : Delete file.
2652 * emultempl/aix.em : Formatting changes.
2654 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2656 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2657 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2659 (OTHER_END_SYMBOLS): Fix formatting.
2660 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2661 (OTHER_END_SYMBOLS): Fix formatting.
2663 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2665 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2667 2001-12-02 Tom Rix <trix@redhat.com>
2669 * configure.tgt : Remove eaixppc64 emulations.
2670 * Makefile.in : Remove eaixppc64.c
2671 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2672 (ldemul_default_target): Same.
2673 * emultempl/gld960.em (gld960_choose_target): Same.
2674 * emultempl/gld960c.em (gld960_choose_target): Same.
2675 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2676 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2677 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2678 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2679 * emultempl/aix.em (choose_target): New function. Handle emulation of
2682 2001-11-27 H.J. Lu <hjl@gnu.org>
2684 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2685 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2686 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2687 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2688 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2689 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2690 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2691 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2693 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2696 (REL_SDATA): Likewise.
2697 (REL_SBSS): Likewise.
2698 (REL_SDATA2): Likewise.
2699 (REL_SBSS2): Likewise.
2700 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2703 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2705 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2707 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2709 2001-11-22 H.J. Lu <hjl@gnu.org>
2711 * Makefile.in: Regenerated with automake based on automake
2712 1.4-8 in RedHat 7.1.
2714 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2716 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2717 (config.status): Delete rule.
2718 Add extra dependencies to cover sourced emulparams files.
2719 * Makefile.in: Regenerate.
2721 * scripttempl/elf.sc: Order <section>, <section>.* and
2722 corresponding linkonce sections as seen in input files.
2723 Formatting fixes. Zero vma of all sections if not relocating.
2724 (STACK): Define and insert if STACK_ADDR defined.
2725 (OTHER_RELOCATING_SECTIONS): Delete.
2726 (OTHER_END_SYMBOLS): Define.
2727 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2728 (OTHER_READWRITE_SECTIONS): Likewise.
2729 (OTHER_GOT_SECTIONS): Likewise.
2730 (OTHER_SDATA_SECTIONS): Likewise.
2731 (OTHER_BSS_SECTIONS): Likewise.
2732 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2733 (OTHER_READWRITE_SECTIONS): Likewise.
2734 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2735 (OTHER_READWRITE_SECTIONS): Likewise
2737 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2738 (STACK_ADDR): Define.
2739 * emulparams/armelf_oabi.sh: As for armelf.sh.
2740 * emulparams/elf32mcore.sh: As for armelf.sh.
2741 * emulparams/h8300elf.sh: As for armelf.sh.
2742 * emulparams/mn10200.sh: As for armelf.sh.
2743 * emulparams/shelf.sh: As for armelf.sh.
2745 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2746 (OTHER_END_SYMBOLS): Define.
2747 * emulparams/m32relf.sh: As for elf32fr30.sh.
2748 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2749 * emulparams/h8300self.sh: As for elf32fr30.sh.
2751 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2752 defines with RELOCATING test.
2753 (OTHER_SDATA_SECTIONS): Likewise.
2754 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2755 (OTHER_END_SYMBOLS): ..this.
2756 * emulparams/crislinux.sh: As for criself.sh.
2758 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2760 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2761 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2762 normal and linkonce sections as seen in input files.
2763 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2764 (TEXT_DYNAMIC): Likewise.
2765 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2766 (OTHER_SDATA_SECTIONS): Likewise.
2767 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2768 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2769 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2770 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2771 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2772 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2773 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2774 sections as seen in input files.
2775 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2776 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2778 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2779 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2780 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2781 (OTHER_SECTIONS): Instead, use this..
2782 (OTHER_END_SYMBOLS): ..and this.
2784 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2785 * emulparams/elf32bsmip.sh: Likewise.
2786 * emulparams/elf32btsmip.sh: Likewise.
2787 * emulparams/elf32ebmip.sh: Likewise.
2788 * emulparams/elf32lmip.sh: Likewise.
2789 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2790 * emulparams/elf32lsmip.sh: Likewise.
2791 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2792 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2793 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2794 * emulparams/elf64btsmip.sh: Likewise.
2795 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2796 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2797 * emulparams/elf32ppclinux.sh: Likewise.
2798 * emulparams/elf32ppcsim.sh: Likewise.
2799 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2800 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2801 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2802 * emulparams/h8300self.sh: Likewise.
2803 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2804 * emulparams/sh.sh: Comment.
2805 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2806 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2807 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2809 2001-11-21 David Heine <dlheine@tensilica.com>
2810 Alan Modra <amodra@bigpond.net.au>
2812 * ldlang.c (map_input_to_output_sections): Replace "break"
2813 accidentally removed with 2001-08-03 change.
2814 (lang_gc_sections_1): Likewise.
2816 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2818 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2820 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2822 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2823 of false when calling lang_size_sections.
2824 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2826 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2828 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2829 function when LDEMUL_FINISH isn't set to the same name. Don't
2830 call ${LDEMUL_FINISH}.
2831 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2832 * emultempl/armelf.em (arm_elf_finish): Call
2833 gld${EMULATION_NAME}_finish.
2834 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2835 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2836 hppaelf_layout_sections_again if necessary.
2837 (need_laying_out): New var.
2838 (hppaelf_layaout_sections_again): Rename to
2839 hppaelf_layout_sections_again. Clear need_laying_out.
2840 (PARSE_AND_LIST_OPTIONS): Format text.
2842 2001-11-14 H.J. Lu <hjl@gnu.org>
2844 * emultempl/armelf.em (arm_elf_finish): Renamed from
2845 gld${EMULATION_NAME}_finish.
2846 (LDEMUL_FINISH): Set to arm_elf_finish.
2848 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2850 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2851 (struct ld_emulation_xfer_struct): Use it.
2853 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2855 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2856 additional symbols referenced by newer crt0.o files from HP.
2858 2001-11-12 Anthony Green <green@redhat.com>
2860 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2862 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2864 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2865 * Makefile.in: Regenerate.
2867 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2869 * ld.texinfo: Use @command for commands, @option for options.
2870 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2872 * Makefile.in: Rebuild.
2874 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2876 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2877 Add support for targets.
2879 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2881 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2882 * configure: Regernate.
2883 * po/fr.po: New file.
2884 * po/sv.po: New file.
2886 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2888 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2889 as little endian default and to support big endian.
2891 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2893 * ld.texinfo (Options): Document new option, -nostdlib.
2894 * lexsup.c (OPTION_NOSTDLIB): New definition.
2895 (ld_options): Add entry for "nostdlib".
2896 (parse_args): Handle OPTIONS_NOSTDLIB.
2897 * ldfile.c (ldfile_add_library_path): Don't add directories
2898 to the search path if they weren't specified on the command line
2899 and -nostdlib was specified.
2900 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2902 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2904 * lexsup.c (parse_args): Prevent infinite parsing loop when
2905 "-rpath.a" is specified on the command line.
2906 Replace calls to fprintf with calls to einfo.
2908 2001-10-31 John Marshall <jmarshall@acm.org>
2910 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2911 appear only once across all the linker scripts involved in a link
2912 invocation no longer applies. Make the documentation reflect
2915 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2917 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2919 (sh-*-linux*): Added targ_extra_libpath.
2921 2001-10-31 David Heine <dlheine@tensilica.com>
2923 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2924 for padding statements.
2926 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2928 * configure.tgt (mmix-*-*): New target.
2929 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2930 Add dependencies to match.
2931 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2932 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2933 scripttempl/mmo.sc: New files.
2934 * gen-doc.texi: @set MMIX.
2935 * ld.texinfo: Ditto.
2936 [MMIX] Add MMIX node.
2937 * Makefile.in: Regenerate.
2939 2001-10-29 Kazu Hirata <kazu@hxi.com>
2941 * ldlang.c: Fix a comment typo.
2943 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2945 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2946 entries, and match *-*-linux*.
2948 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2950 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2951 with ldlex_script, ldlex_popstate.
2952 (ifile_p1): Likewise.
2953 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2955 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2956 to 1. Don't BEGIN(SCRIPT).
2957 (lex_redirect): Similarly.
2958 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2960 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2962 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2963 __EH_FRAME_END__ and accept eh frames into data section.
2964 Add ctor and dtor sections.
2966 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2968 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2969 (auto-export): Fix indentation.
2971 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2973 * pe-dll.c (autofilter_objectlist): Add startup objects
2975 (auto-export): Constify char * p.
2976 Extract file basename and use strcmp rather than ststr
2979 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2981 * ldmain.c (get_emulation): Improve comment about the handling
2984 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2986 * po/POTFILES.in: Regenerate.
2988 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2990 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2991 -z nocopyreloc and -z nocombreloc usage strings.
2993 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2995 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2998 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3000 * scripttempl/armaout.sc: Place .bss section after end of aligned
3001 data section to match behaviour of aout code in constructrion of
3004 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3006 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3007 startup files for mingw32 dlls to list.
3009 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3011 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3013 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3015 * configure.tgt (targ): Add arm9e-*-elf.
3017 2001-10-05 H.J. Lu <hjl@gnu.org>
3019 * genscripts.sh: Fix a typo in the last change.
3021 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3023 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3024 -z nocombreloc in usage.
3026 2001-10-03 Jim Blandy <jimb@redhat.com>
3028 * genscripts.sh: Include a comment at the top of each generated
3029 script, explaining its purpose.
3031 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3033 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3034 * NEWS: Mention -z nocopyreloc.
3035 * ld.texinfo (Options): Describe nocopyreloc.
3037 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3039 * configure: Regenerate.
3041 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3043 * ldver.h (ld_program_version): Remove declaration.
3044 * lexsup.c (parse_args): Move printing of copyright message..
3045 * ldver.c (ldversion): .. to here.
3046 Use BFD_VERSION_STRING in place of BFD_VERSION.
3047 (ld_program_version): Remove.
3048 * Makefile.am (Makefile): Depend on bfd/configure.in.
3050 * Makefile.in: Regenerate.
3052 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3054 * Makefile.am: Update dependencies with "make dep-am".
3055 * Makefile.in: Regenerate.
3057 2001-09-29 John Reiser <jreiser@BitWagon.com>
3059 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3060 * lexsup.c: Add --no-define-common commandline option.
3061 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3062 * ldlex.l: Likewise.
3063 * ld.h: Add command_line.inhibit_common_definition.
3064 * ldmain.c (main): Initialize.
3065 * ld.texinfo: Document.
3067 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3069 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3071 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3073 * ldmisc.c (USE_STDARG): Remove.
3074 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3079 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3080 declarations. Update copyright.
3082 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3084 * pe-dll.c: Remove obsoleted declaration of
3085 pe_get_data_import_dll_name.
3086 (pe_create_import_fixup): Fix thinko.
3088 * ld.texinfo(enable-auto-import): Clarify the explanation.
3090 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3092 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3093 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3094 DLL_SUPPORT controlled code.
3096 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3098 * emultempl/pe.em(pe_data_import_dll): Make static.
3099 (pe_get_data_import_dll_name): New accessor function.
3100 * pe-dll.c(pe_create_import_fixup): call
3101 pe_get_data_import_dll_name() from pe.em, instead of
3102 directly accessing pe_data_import_dll variable from pe.em.
3104 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3106 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3107 (def_file_add_directive): Use ISSPACE instead of isspace.
3108 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3109 isdigit/isxdigit/isalpha/isalnum.
3110 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3111 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3112 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3113 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3115 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3116 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3118 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3119 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3120 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3121 (ctor_prio): Use ISDIGIT instead of isdigit.
3122 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3123 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3124 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3126 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3127 (stricpy): Use TOLOWER instead of isupper/tolower.
3128 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3129 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3130 (lex_warn_invalid): Use ISPRINT instead of isprint.
3131 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3132 (main): For gettext, also set the LC_CTYPE locate facet.
3133 (add_keepsyms_file): Use ISSPACE instead of isspace.
3134 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3135 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3136 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3137 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3138 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3139 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3140 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3141 (quoteput): Use ISSPACE instead of isspace.
3142 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3145 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3147 * deffilep.y (def_stash_module): Constify "name" param.
3149 * pe-dll.c: Replace CONST with const throughout.
3150 (quick_symbol): Constify "n1", "n2", "n3" params.
3151 (make_singleton_name_thunk): Constify "import" param. Make
3152 "buffer_len" a size_t.
3153 (make_import_fixup_entry): Constify "name", "fixup_name",
3154 "dll_symname" params.
3155 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3156 (pe_get32): Likewise.
3157 (pe_implied_import_dll): Likewise.
3159 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3160 (sort_by_section_name): Likewise.
3162 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3163 (make_import_fixup): Cast printf arg, rel->address to long rather
3165 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3167 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3169 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3170 defines BufferSize. Increase buffer size by one.
3172 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3174 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3176 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3178 * configure.tgt: Add arm-openbsd target.
3180 2001-09-12 H.J. Lu <hjl@gnu.org>
3182 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3184 (ALL_64_EMULATIONS): Here.
3185 * Makefile.in: Regenerated.
3187 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3189 * emultempl/pe.em(make_import_fixup): change signature to
3190 take asection as well as arelec; we need this for proper
3191 error reporting. Only call pe_create_import_fixup() if
3192 there is no attempt to add a constant addend to the reloc;
3193 otherwise, report error condition.
3194 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3195 since final argument is a pointer to make_import_fixup().
3196 Change call to cb() to match make_import_fixup() signature.
3197 (make_import_fixup_mark): make buffer_len unsigned.
3198 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3200 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3202 * ld.texinfo: add verbose documentation for auto-import
3203 direct-addressing workaround, to compliment the terse
3206 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3208 * scripttempl/v850.sc: Add gcc_except_table sections.
3210 2001-09-11 Jeffrey A Law (law@cygnus.com)
3212 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3213 * emulparams/h8300self.sh: Similarly.
3215 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3217 * ld.texinfo (Options, --stack): Correct default value for stack
3220 2001-09-05 Tom Rix <trix@redhat.com>
3222 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3224 2001-09-03 Andreas Jaeger <aj@suse.de>
3226 * emultempl/beos.em: Declare prototypes for comparions functions,
3229 2001-09-02 Andreas Jaeger <aj@suse.de>
3231 * emultempl/aix.em: Add missing prototype.
3232 * emultempl/lnk960.em: Likewise.
3233 * emultempl/vanilla.em: Likewise.
3234 * emultempl/armcoff.em: Likewise.
3235 * emultempl/armelf_oabi.em: Likewise.
3236 * emultempl/beos.em: Likewise.
3237 * emultempl/gld960c.em: Likewise.
3238 * emultempl/gld960.em: Likewise.
3240 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3241 for prototype declaration.
3243 2001-08-31 Eric Christopher <echristo@redhat.com>
3244 Jason Eckhardt <jle@redhat.com>
3246 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3248 2001-08-31 Andreas Jaeger <aj@suse.de>
3250 * emultempl/pe.em: Add missing prototypes.
3251 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3252 pe_find_data_imports.
3253 (pr_sym): Add unused attribute.
3255 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3257 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3258 default from coff to elf.
3260 2001-08-29 Jeff Law <law@redhat.com>
3262 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3264 * emulparams/h8300self.sh: Similarly.
3266 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3268 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3270 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3271 * configure.tgt (h8300-*-elf*): New case.
3272 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3273 * emulparams/h8300self.sh: New file.
3274 * Makefile.in: Regenerated.
3276 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3278 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3281 2001-08-27 Linus Nordberg <linus@swox.com>
3282 Alan Modra <amodra@bigpond.net.au>
3284 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3285 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3287 * Makefile.in: Regenerate.
3288 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3289 entries to correct alphabetical position.
3290 * emulparams/elf64ppc.sh: New.
3291 * emulparams/elf64lppc.sh: New.
3293 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3295 * ldmain.c (main): Declare BSIZE as static.
3297 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3299 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3300 into .rel.dyn resp. .rela.dyn if combreloc.
3301 (get_script): If .x linker script is equal to .xn, only put it
3302 once into the binary.
3303 Add .xc and .xsc scripts.
3304 (parse_args): Handle -z combreloc and -z nocombreloc.
3305 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3306 For .xc and .xsc scripts put all .rel* or .rela* input sections
3307 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3308 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3310 Strip trailing whitespace from script.
3311 Generate .xc and .xsc scripts if requested.
3312 * ldmain.c (main): Initialize link_info.combreloc and
3313 link_info.spare_dynamic_tags.
3314 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3315 (ld_options): Add --spare-dynamic-tags option.
3316 (parse_args): Likewise.
3317 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3318 * ldint.texinfo: Document .xc and .xsc linker scripts.
3319 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3321 2001-08-22 H.J. Lu <hjl@gnu.org>
3323 * emulparams/elf32fr30.sh: Add a newline.
3325 2001-08-21 Andreas Jaeger <aj@suse.de>
3327 * deffilep.y: Add missing prototypes.
3328 * pe-dll.c: Likewise.
3330 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3332 * ldlang.c (insert_pad): Fix typos in last patch.
3334 * ldlang.c: When traversing lang_statement_union_type lists,
3335 consistently use "header.next" rather than "next".
3336 * mpw-eppcmac.c: Likewise.
3337 * emultempl/beos.em: Likewise.
3338 * emultempl/hppaelf.em: Likewise.
3339 * emultempl/pe.em: Likewise.
3340 * ldlang.h (union lang_statement_union): Remove "next" field.
3342 * ldlang.c (insert_pad): Use offsetof macro.
3343 (lang_size_sections): Always neuter padding statements.
3344 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3346 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3347 passed to lang_size_sections.
3348 (pe_exe_fill_sections): Likewise.
3349 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3350 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3352 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3354 * emultempl/aix.em: Formatting fixes.
3356 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3358 * ldlang.c (insert_pad): Make use of an existing pad statement if
3359 available. Move code calculating alignment, adjusting section
3360 alignment power, and adjusting dot to ..
3361 (size_input_section): .. here. Remove unused relax param.
3362 (lang_size_sections): Change boolean `relax' param to boolean *.
3363 Adjust call to size_input_section. Make use of insert_pad to
3364 place pad after the assignment statement. If relaxing, zap
3366 (reset_memory_regions): Reset output_bfd section sizes too.
3367 (relax_again): Move to..
3368 (lang_process): ..here. Adjust call to lang_size_sections, and
3369 remove duplicated code.
3370 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3372 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3374 * ld.texinfo: Document that fill values now use the four least
3376 * emulparams/elf32fr30.sh (NOP): Update.
3377 * emulparams/elf32mcore.sh: Likewise.
3378 * emulparams/elf64_s390.sh: Likewise.
3379 * emulparams/elf_i386.sh: Likewise.
3380 * emulparams/elf_i386_be.sh: Likewise.
3381 * emulparams/elf_i386_chaos.sh: Likewise.
3382 * emulparams/elf_i386_ldso.sh: Likewise.
3383 * emulparams/elf_s390.sh: Likewise.
3384 * emulparams/elf_x86_64.sh: Likewise.
3385 * emulparams/i386moss.sh: Likewise.
3386 * emulparams/i386nw.sh: Likewise.
3387 * emulparams/m68kelf.sh: Likewise.
3388 * scripttempl/elf.sc: Update NOP comment.
3389 * scripttempl/elfi370.sc: Likewise.
3390 * scripttempl/elfm68hc11.sc: Likewise.
3391 * scripttempl/elfm68hc12.sc: Likewise.
3392 * scripttempl/nw.sc: Likewise.
3394 2001-08-15 Tom Rix <trix@redhat.com>
3396 * ldgram.y (saved_script_handle): Initialize to NULL.
3397 * ldmain.c (main): Change check on saved_script_handle.
3399 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3401 * emultempl/elf32.em: Formatting fixes.
3402 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3403 looking at sec->owner.
3404 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3405 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3406 unused code, and reorganize orphan section placement code.
3408 * ldlang.c (wild_doit): Rename to lang_add_section.
3409 * ldlang.h: Here too.
3410 * mpw-elfmips.c: And here.
3411 * emultempl/beos.em: And here.
3412 * emultempl/elf32.em: And here.
3413 * emultempl/hppaelf.em: And here.
3414 * emultempl/pe.em: And here.
3416 2001-08-13 Richard Henderson <rth@redhat.com>
3418 * emultempl/needrelax.em: New file.
3419 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3420 * Makefile.am (eelf64_ia64.c): Depend on it.
3421 * Makefile.in: Rebuild.
3423 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3425 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3426 output_section is set non-NULL.
3428 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3429 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3430 needlessly create an output_section_statement. Treat a correctly
3431 named output_section_statement with NULL bfd_section as compatible.
3433 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3435 * emultempl/generic.em: Support EXTRA_EM_FILE.
3436 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3437 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3438 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3439 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3440 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3441 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3442 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3443 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3444 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3445 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3447 2001-08-12 Richard Henderson <rth@redhat.com>
3449 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3450 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3451 scripttempl/v850.sc: Keep .jcr data.
3453 2001-08-12 H.J. Lu <hjl@gnu.org>
3454 Andrew Haley <aph@cambridge.redhat.com>
3455 Nick Clifton <nickc@redhat.com>
3457 * ldgram.y (had_script): Change name to saved_script_handle.
3458 Change type to file handle.
3459 * ld.h (had_script): Rename and retype.
3460 * ldfile.c (ldfile_open_command_file): Save the file handle
3461 used in saved_script_handle.
3462 * lexsup.c (parse_args): Do not allow -c option to alter
3463 saved_script_handle.
3464 * ldmain.c (main): Print out the linker script used if
3465 --verbose is given. Check saved_script_handle to obtain the
3466 external linker script used, or if NULL, dump the builtin
3468 * ld.texinfo: Document that --verbose now dumps the linker
3469 script used, regardless of whether it was an internal or an
3472 2001-08-10 Andreas Jaeger <aj@suse.de>
3474 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3476 * configure: Regenerate.
3478 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3480 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3482 * scripttempl/elf.sc: Move non-text .dynamic section before
3483 .plt/.got/.sdata* group.
3484 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3485 (OTHER_SDATA_SECTIONS): Add.
3486 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3488 * emulparams/crislinux.sh: Likewise.
3489 * emulparams/elf32b4300.sh: Likewise.
3490 * emulparams/elf32bmip.sh: Likewise.
3491 * emulparams/elf32bmipn32.sh: Likewise.
3492 * emulparams/elf32bsmip.sh: Likewise.
3493 * emulparams/elf32btsmip.sh: Likewise.
3494 * emulparams/elf32ebmip.sh: Likewise.
3495 * emulparams/elf32elmip.sh: Likewise.
3496 * emulparams/elf32l4300.sh: Likewise.
3497 * emulparams/elf32lmip.sh: Likewise.
3498 * emulparams/elf32lsmip.sh: Likewise.
3499 * emulparams/elf32ltsmip.sh: Likewise.
3500 * emulparams/elf64bmip.sh: Likewise.
3501 * emulparams/elf64btsmip.sh: Likewise.
3502 * emulparams/elf64ltsmip.sh: Likewise.
3504 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3506 * genscripts.sh: Source the emulparams script before each output
3507 script is generated so that variables like `RELOCATING' may affect
3508 variables defined in the emulparams script.
3510 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3512 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3515 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3516 ie. iterate over wild_statement.section_list.
3517 (gld${EMULATION_NAME}_place_orphan): Likewise.
3519 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3521 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3522 .fini[0-4] sections used by _exit
3523 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3524 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3525 * scripttempl/elfm68hc11.sc: Likewise.
3527 2001-08-03 H.J. Lu <hjl@gnu.org>
3529 * emultempl/beos.em (init): Add the missing initialization.
3531 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3533 * ld.texinfo (Input Section Basics): Clarify ordering of output
3535 * ldlang.c (callback_t): Add wildcard_list param.
3536 (walk_wild_section): Remove "section" param. Rewrite for
3537 lang_wild_statement_type change. Remove unique_section_p test.
3538 (walk_wild_file): Remove "section" param.
3539 (walk_wild): Remove "section" and "file" params.
3540 (lang_gc_wild): Likewise.
3541 (wild): Likewise. Modify for lang_wild_statement_type change.
3542 (wild_sort): Likewise. Add "sec" param.
3543 (gc_section_callback): Likewise.
3544 (output_section_callback): Likewise. Do unique_section_p test.
3545 (map_input_to_output_sections): Modify call to wild.
3546 (lang_gc_sections_1): Likewise.
3547 (print_wild_statement): Modify for lang_wild_statement_type
3549 (lang_add_wild): Replace filename, filenames_sorted param with
3550 filespec. Replace section_name, sections_sorted,
3551 exclude_filename_list with section_list.
3552 * ldlang.h (lang_add_wild): Here too.
3553 (lang_wild_statement_type): Replace section_name, sections_sorted,
3554 and exclude_filename_list with section_list.
3555 * ldgram.y (current_file): Delete.
3556 (%union): Add wildcard_list.
3557 (file_NAME_list): Set type to wildcard_list. Build a linked list
3558 rather than calling lang_add_wild for each entry.
3559 (input_section_spec_no_keep): Call lang_add_wild here instead.
3560 * ld.h (struct wildcard_list): Declare.
3561 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3563 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3565 * ldmain.c (main): initialize link_info.pei386_auto_import
3566 * pe-dll.c: new tables for auto-export filtering
3567 (auto_export): change API, pass abfd for contextual filtering.
3568 Loop thru tables of excluded symbols instead of comparing
3571 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3573 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3574 static variable current_sec (static struct sec *). Add
3575 forward declaration for add_bfd_to_link.
3576 (process_def_file): Don't export undefined symbols. Do not
3577 export symbols starting with "_imp__". Call auto_export()
3579 (pe_walk_relocs_of_symbol): New function.
3580 (generate_reloc): add optional extra debugging
3581 (pe_dll_generate_def_file): eliminate extraneous initial blank
3583 (make_one): enlarge symtab to make room for __nm__ symbols
3584 (DATA auto-import support).
3585 (make_singleton_name_thunk): New function.
3586 (make_import_fixup_mark): New function.
3587 (make_import_fixup_entry): New function.
3588 (pe_create_import_fixup): New function.
3589 (add_bfd_to_link): Specify that 'name' argument is a CONST
3591 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3592 declare new functions pe_walk_relocs_of_symbol and
3593 pe_create_import_fixup.
3594 * emultempl/pe.em: add new options --enable-auto-import,
3595 --disable-auto-import, and --enable-extra-pe-debug.
3596 (make_import_fixup): New function.
3597 (pe_find_data_imports): New function.
3598 (pr_sym): New function.
3599 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3600 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3603 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3605 * ld.texinfo: add additional documentation for
3606 --export-all-symbols. Document --out-implib,
3607 --enable-auto-image-base, --disable-auto-image-base,
3608 --dll-search-prefix, --enable-auto-import, and
3609 --disable-auto-import.
3610 * ldint.texinfo: Add detailed documentation on auto-import
3613 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3615 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3618 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3620 * Makefile.am: Update dependencies with "make dep-am".
3621 * Makefile.in: Regenerate
3623 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3625 * ldcref.c (check_section_sym_xref): New function.
3626 (check_nocrossrefs): Call it.
3627 (check_nocrossref): Interate over h->refs here instead of..
3628 (check_refs): ..here. Pass in the symbol name, section, and bfd
3629 rather than hash_entry pointers.
3630 (struct check_refs_info): Keep symbol name rather than hash entry.
3632 (check_reloc_refs): Tweak for above changes in check_refs_info.
3633 Only report references to section syms when symname is NULL to
3634 prevent duplicate messages for the same reloc.
3636 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3638 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3639 available. Do not print NULL trees.
3640 (exp_print_token): Print unknown tokens with values > 126 as
3641 decimal values not ASCII characters.
3643 * ldlang.c (lang_leave_overlay): If a region is specified assign
3644 it to all sections inside the overlay unless they have been
3645 assigned to the own, non-default, memory region.
3647 * README: Add header for consistency with other README files.
3649 2001-07-14 H.J. Lu <hjl@gnu.org>
3651 * emultempl/elf32.em (output_prev_sec_find): Never return
3652 bfd_abs_section_ptr, bfd_com_section_ptr nor
3653 bfd_und_section_ptr.
3655 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3657 * Makefile.am (em32relf.c): Change dependency from generic.em to
3659 * Makefile.in: Regenerate.
3661 2001-07-14 matthew green <mrg@eterna.com.au>
3663 * configure.tgt (i386-*-netbsdelf*): New target.
3664 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3666 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3668 * emultempl/elf32.em (output_prev_sec_find): New.
3669 (place_orphan): Use it.
3671 2001-07-11 H.J. Lu <hjl@gnu.org>
3673 * ldmain.c (main): Fix typos in the last change.
3675 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3677 * ldmain.c (main): Disallow -F and -f without -shared.
3679 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3681 * emultempl/pe.em (after_open): Check for the output_bfd not
3682 having any coff_data structure allocated to it.
3684 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3686 * emultempl/elf32.em: Do not assuming that contents of the buffer
3687 returned from basename function will remain unchanged accross other
3690 2001-07-03 H.J. Lu <hjl@gnu.org>
3692 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3693 2001-07-03. It creates dynamic entries even for static binaries.
3695 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3697 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3698 (DYNAMIC): Use it to reserve few dynamic entries for
3701 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3703 * emulparams/hppa64linux.sh: New file.
3704 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3705 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3706 (ehppa64linux.c): Add rule to make it.
3708 * Makefile.in: Regenerate.
3710 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3712 * ld.texinfo (Options, -r): Mention restrictions when using
3713 different object formats.
3715 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3717 * ldlang.c (lang_check): Emit fatal error if relocatable link
3718 between different object flavours with relocations in input.
3720 2001-06-19 H.J. Lu <hjl@gnu.org>
3722 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3723 (--version-script): Mention the language support.
3725 2001-06-19 H.J. Lu <hjl@gnu.org>
3727 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3729 2001-06-18 H.J. Lu <hjl@gnu.org>
3731 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3732 (diststuff): Add $(MANS).
3733 * Makefile.in: Regenerated.
3737 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3739 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3740 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3741 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3742 * ld.h (args_type): Remove member export_dynamic. All users
3743 changed to use struct bfd_link_info member.
3745 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3746 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3747 * Makefile.in: Regenerate.
3749 2001-06-18 H.J. Lu <hjl@gnu.org>
3751 * ldlang.c (init_os): Add the newline to the einfo call.
3752 (lang_check): Likewise.
3753 (lang_do_version_exports_section): Likewise.
3755 2001-06-15 H.J. Lu <hjl@gnu.org>
3757 * lexsup.c (parse_args); Save optind to report unrecognized
3760 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3762 * ldlang.c (lang_check): Emit fatal error if relocatable link
3763 between different object flavours.
3765 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3766 Set new link_info member export_dynamic.
3767 * ldmain.c (main): Initialize new link_info member export_dynamic.
3769 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3771 * ldlang.c (walk_wild): Only call walk_wild_file if
3772 lookup_name returns something.
3773 (lookup_name): If load_symbols fails, return NULL.
3774 (load_symbols): Change to a boolean function.
3775 (open_input_bfds): If load_symbols fails then do not make the
3778 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3780 * ldlang.c (record_bfd_errors): Remove.
3782 * emultempl/aix.em: Fix copyright dates.
3784 2001-06-07 Andreas Jaeger <aj@suse.de>
3786 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3787 (TEXT_START_ADDR): Likewise.
3789 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3791 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3793 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3795 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3797 2001-05-31 H.J. Lu <hjl@gnu.org>
3799 * ldlang.c (open_input_bfds): Don't change the bfd error
3800 handler whilst loading symbols.
3802 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3804 * configure.tgt: Remove i370-mvs architecture, it is not currently
3807 2001-05-25 H.J. Lu <hjl@gnu.org>
3809 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3810 like emulparams/aixppc.sh.
3812 2001-05-25 H.J. Lu <hjl@gnu.org>
3814 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3815 setting of output_filename after bfd_scan_arch.
3816 * emultempl/pe.em: Likewise.
3818 2001-05-25 H.J. Lu <hjl@gnu.org>
3820 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3821 like emulparams/aixppc.sh.
3823 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3824 instead of ${srcdir}/emultempl/stringify.sed.
3826 2001-05-25 Timothy Wall <twall@oculustech.com>
3828 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3831 2001-05-25 Alan Modra <amodra@one.net.au>
3833 * configure.host: Replace linuxoldld with linux*oldld.
3834 * configure.tgt: Likewise.
3836 2001-05-24 H.J. Lu <hjl@gnu.org>
3838 * emultempl/stringify.sed: Removed again.
3840 2001-05-24 H.J. Lu <hjl@gnu.org>
3842 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3843 (gld${EMULATION_NAME}_before_parse): Initialize
3844 ldfile_output_architecture, ldfile_output_machine and
3845 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3846 * emultempl/beos.em: Likewise.
3847 * emultempl/elf32.em: Likewise.
3848 * emultempl/linux.em: Likewise.
3849 * emultempl/mipsecoff.em: Likewise.
3850 * emultempl/pe.em: Likewise.
3851 * emultempl/sunos.em: Likewise.
3853 2001-05-24 Tom Rix <trix@redhat.com>
3855 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3856 udate import file format.
3857 (change_symbol_mode) New, same
3858 (is_syscall) New, same
3859 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3860 * emulparams/aixppc64.sh : same
3861 * emulparams/aixrs6.sh : same
3862 * emulparams/ppcmacos.sh : same
3863 * emultempl/aix.em : use strtoull to parse options
3864 * Makefile.am : add eaixppc64 emulation for xcoff64
3865 * Makefile.in : same
3866 * configure.tgt : same
3868 * scripttempl/aix.sc : default text section offset to 0x10000000
3869 default data section offset to 0x20000000
3870 add .sv3264 and .sv64 pseudo sections
3871 loader and debug sections use the currect section offset.
3873 * emultempl/aix.em : Add xcoff64 support
3874 Add -binitfini support
3875 (gld${EMULATION_NAME}_before_parse) -binitfini
3876 (gld${EMULATION_NAME}_parse_args) same
3877 (gld${EMULATION_NAME}_before_allocation) format change for special
3880 * emulparams/aixppc64.sh : New file for xcoff64 support
3882 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3884 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3885 variable to avoid non-portable shell construct.
3887 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3889 * ldmain.c (get_emulation): Add -mips5 command line argument.
3891 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3893 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3894 (ELF_INTERPRETER_NAME): Define it.
3895 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3897 * configure.tgt (targ_emul, targ_extra_emuls)
3898 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3899 as primary, elf_i386 as extra.
3900 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3901 (eelf_i386_ldso.c): New rule.
3902 * Makefile.in: Rebuilt.
3904 2001-05-22 Nick Clifton <nickc@redhat.com>
3906 * lexsup.c (ld_options): Allow -I to be an alias for
3907 --dynamic-linker. This is for Solaris compatability.
3908 * ld.texinfo: Document that -I can be used.
3911 2001-05-16 Alan Modra <amodra@one.net.au>
3913 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3914 whether an input section is the first one assigned to an output
3916 Assorted formatting fixes.
3918 2001-05-14 DJ Delorie <dj@delorie.com>
3920 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3921 * Makefile.in: Ditto.
3923 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3925 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3926 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3928 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3930 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3932 * ldlang.c (lang_process): Call bfd_merge_sections.
3934 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3936 * ldgram.y: Fix typo.
3938 2001-05-03 H.J. Lu <hjl@gnu.org>
3940 * emultempl/elf32.em: Include "libiberty.h".
3941 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3942 basename of the bfd filename.
3943 (gld${EMULATION_NAME}_stat_needed): Likewise.
3944 (gld${EMULATION_NAME}_try_needed): Likewise.
3945 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3947 2001-05-02 H.J. Lu <hjl@gnu.org>
3949 * emultempl/pe.em: Include <ctype.h>.
3951 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3953 * emulparams/elf32openrisc.sh: New file.
3955 * Makefile.am: Add OpenRISC target.
3956 * Makefile.in: Regenerated.
3958 * configure.tgt: Add openrisc-*-* mapping.
3960 2001-05-02 Nick Clifton <nickc@redhat.com>
3962 * emultempl/aix.em: Replace buystring with xstrdup.
3963 * emultempl/beos.em: Replace buystring with xstrdup.
3965 2001-05-02 H.J. Lu <hjl@gnu.org>
3967 * ldfile.c: Include "libiberty.h".
3968 * ldlex.l: Likewise.
3970 * ldmisc.c (buystring): Removed.
3971 * ldmisc.h: Likewise.
3973 * ldfile.c: Replace buystring with xstrdup.
3974 * ldlang.c: Likewise.
3975 * ldlex.l: Likewise.
3976 * ldmain.c: Likewise.
3977 * ldmisc.c: Likewise.
3978 * lexsup.c: Likewise.
3979 * mpw-eppcmac.c: Likewise.
3981 2001-04-30 Andreas Jaeger <aj@suse.de>
3983 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3985 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3987 * ldlang.c (load_symbols): Give emulation a chance
3988 to process unrecognized file before fatal error is
3989 reported, not after.
3991 2001-04-27 Sean McNeil <sean@mcneil.com>
3993 * configure.tgt: Add arm-vxworks target.
3994 * scripttempl/armcoff.sc: Support .text or .data as a section name
3998 2001-04-13 J.T. Conklin <jtc@redback.com>
4000 * ld.texinfo: Document --fatal-warnings.
4003 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4004 warnings have been turned into errors.
4005 * lexsup.c (OPTION_WARN_FATAL): Define.
4006 (ld_options): Entry for --fatal-warnings.
4007 (parse_args): Handle OPTION_WARN_FATAL.
4008 * ld.h (ld_config_type): Add fatal_warnings field.
4010 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4012 * ldmain.c (main): Default to discard_sec_merge.
4013 * lexsup.c (OPTION_DISCARD_NONE): Define.
4014 (ld_options): Add --discard-none.
4015 (parse_args): Handle OPTION_DISCARD_NONE.
4016 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4017 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4018 all its input sections match.
4020 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4022 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4023 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4024 (eelf32ltsmip.c): New target.
4025 (eelf64btsmip.c): Likewise.
4026 (eelf64ltsmip.c): Likewise.
4027 * Makefile.in: Regenerated.
4029 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4031 (mips*-*-linux-gnu*): Likewise.
4033 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4035 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4037 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4040 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4042 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4043 correct value of __Stext here.
4044 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4047 * emulparams/crislinux.sh: Remove FIXME.
4049 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4051 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4052 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4054 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4056 * configure.tgt (cris-*-*): Change default emulation to criself.
4057 (cris-*-*aout*): New rule.
4059 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4061 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4062 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4064 2001-03-26 Andreas Jaeger <aj@suse.de>
4066 * ld.texinfo (Overview): Fix syntax in texi code.
4068 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4070 * ld.texinfo: Put @c man indications to generate the ld man page.
4071 When generating man, define all the variables. Define SEEALSO
4072 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4073 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4074 (ld.1): Generate from ld.texinfo.
4075 * Makefile.in: Regenerate.
4077 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4079 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4080 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4082 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4084 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4085 is an absolute path look only for this file and not along the path.
4087 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4089 * emultempl/elf32.em (OPTION_GROUP): New macro.
4090 Add new option Bgroup to longopts.
4091 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4092 (gld*_list_options): Add -Bgroup and -z defs.
4093 * ld.1: Document -Bgroup and -z defs.
4094 * ld.texinfo: Likewise.
4096 2001-03-07 Michael Meissner <meissner@redhat.com>
4098 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4099 with sections created by -fdata-sections.
4100 (.dynbss,.bss): Ditto.
4102 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4104 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4105 after_allocation_default, not gld..._before_allocation.
4107 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4109 * configure.in (BFD_VERSION): New.
4110 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4111 * configure: Regenerate.
4112 * Makefile.am: Run "make dep-am"
4113 * Makefile.in: Regenerate.
4115 2001-02-26 Timothy Wall <twall@cygnus.com>
4117 * emulparams/elf64_aix.sh: Add additional read-only sections;
4118 uncomment lines which are now required.
4120 2001-02-26 H.J. Lu <hjl@gnu.org>
4122 * ldlang.c (open_input_bfds): Set the bfd error handler so
4123 that problems can be caught whilst loading symbols.
4124 (record_bfd_errors): New function: Report BFD errors and mark
4125 the executable output as being invalid.
4127 2001-02-22 Timothy Wall <twall@cygnus.com>
4129 * configure.host: Add configuration for ia64-*-aix*.
4130 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4131 Add dependencies for eelf64_aix.c.
4132 * Makefile.in: Regenerate.
4133 * configure.tgt: Add ia64-*-aix* mapping.
4134 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4136 2001-02-20 H.J. Lu <hjl@gnu.org>
4138 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4139 false if we found the file.
4141 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4143 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4144 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4146 2001-02-18 lars brinkhoff <lars@nocrew.org>
4148 * Makefile.am: Add PDP-11 target.
4149 * configure.tgt: Likewise.
4150 * emulparams/pdp11.sh: New file.
4152 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4154 * configure.host: Add a generic FreeBSD configuration entry such that
4155 all [modern] FreeBSD systems on all platforms will look the same.
4157 2001-02-14 H.J. Lu <hjl@gnu.org>
4159 * configure.tgt: Remove mention of earmelf_linux26.
4161 2001-02-13 Richard Henderson <rth@redhat.com>
4163 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4165 2001-02-13 H.J. Lu <hjl@gnu.org>
4167 * ldexp.h (node_type): Add etree_provided.
4168 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4169 type to etree_provided if defined by PROVIDE. Allow updating
4171 (exp_print_tree): Handle etree_provided.
4172 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4175 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4177 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4178 .IA_64.unwind.* pattern to unwind table section and
4179 .IA_64.unwind_info* pattern to unwind info section.
4181 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4183 * Makefile.am: Add linux target for S/390.
4184 * Makefile.in: Likewise.
4185 * configure.host: Likewise.
4186 * configure.tgt: Likewise.
4187 * emulparams/elf64_s390.sh: New file.
4188 * emulparams/elf_s390.sh: New file.
4190 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4192 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4194 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4196 2001-02-06 Philip Blundell <philb@gnu.org>
4198 * Makefile.am: Remove mention of earmelf_linux26.
4199 * Makefile.in: Regenerate.
4201 2001-02-04 Philip Blundell <philb@gnu.org>
4203 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4204 * emulparams/armelf_linux26.sh: Delete.
4205 * configure.tgt: Remove mention of armelf_linux26 emulation.
4207 2001-02-01 Nick Clifton <nickc@redhat.com>
4209 * ld.1: Replace occurances of -oformat with --oformat.
4211 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4213 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4214 load_base is specified.
4216 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4218 * emultempl/elf32.em: Correct spelling in comments and listed
4221 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4223 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4224 default for the first section of a group of overlay sections.
4226 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4228 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4229 * Makefile.in: Regenerate.
4230 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4231 Check for null tool_dir.
4233 2001-01-16 Jim Wilson <wilson@redhat.com>
4235 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4236 and IA_64.unwind.info.
4238 2001-01-16 H.J. Lu <hjl@gnu.org>
4240 * ldlang.c (lang_check): Merge the private data only if the
4241 input file has contents.
4243 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4245 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4247 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4248 enabling search for libmilli. On a relocatable link, make .text
4250 (LDEMUL_AFTER_PARSE): Define.
4251 (hppaelf_finish): Correct spelling of relocatable in comments.
4253 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4254 rummage through the script for sections on the unique list.
4255 Correct length of strncmp for ".note".
4256 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4258 * ldlang.c (unique_section_list): New var.
4259 (unique_section_p): New function.
4260 (walk_wild_section): Don't match sections on unique_section_list.
4261 (lang_add_unique): New function.
4262 Correct spelling of relocatable in comments.
4264 * ldlang.h (struct unique_sections): Declare.
4265 (unique_section_list): Declare.
4266 (unique_section_p): Declare.
4267 (lang_add_unique): Declare.
4269 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4270 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4272 * ld.texinfo (--unique): Update.
4274 2001-01-13 Nick Clifton <nickc@redhat.com>
4276 * lexsup.c (parse_args): Remove spurious white space.
4278 2001-01-12 Nick Clifton <nickc@redhat.com>
4280 * lexsup.c (parse_args): Update copyright date.
4282 2001-01-12 Philip Blundell <pb@futuretv.com>
4284 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4286 2001-01-10 Kazu Hirata <kazu@hxi.com>
4288 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4289 * scripttempl/h8300h.sc: Fix formatting.
4290 * scripttempl/h8300s.sc: Likewise.
4291 * scripttempl/h8500.sc: Likewise.
4292 * scripttempl/h8500b.sc: Likewise.
4293 * scripttempl/h8500c.sc: Likewise.
4294 * scripttempl/h8500m.sc: Likewise.
4295 * scripttempl/h8500s.sc: Likewise.
4297 2000-01-07 David O'Brien <obrien@BSDi.com>
4299 * emultempl/elf32.em: Only perform Linux ld hints processing when
4302 2001-01-07 Philip Blundell <philb@gnu.org>
4304 * ld.texinfo (Bug Reporting): Update email address for reports.
4306 2000-12-31 Nick Clifton <nickc@redhat.com>
4308 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4309 options by checking for a return value of '?' not -1.
4311 2000-12-28 Nick Clifton <nickc@redhat.com>
4313 * lexsup.c (struct ld_option): Add new enum value:
4315 (ld_options[]): Change -omagic, -output and -oformat options
4316 to be EXACTLY_TWO_DASHES.
4317 (OUTPUT_COUNT): Use ARRAY_SIZE.
4318 (parse_args): Change parameter 'argc' to unsigned.
4319 Place EXACTLY_TWO_DASHES options into new really_longopts
4321 If getopt_long_only fails, try calling getopt_long using the
4322 really_longopts array.
4323 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4326 * ldlex.h: Fix prototype of parse_args.
4328 * ld.texinfo: Document that long options starting with 'o'
4329 must be preceeded by two dashes. Change example of a single
4330 dashed long option from -oformat to -trace-symbol.
4332 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4334 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4335 (longopts[]): New --no-default-excludes option.
4336 (gld_${EMULATION_NAME}_list_options): Document.
4337 (gld_${EMULATION_NAME}_parse_args): Handle.
4339 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4341 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4342 whitespace, it breaks the K&R C preprocessor.
4344 2000-12-11 DJ Delorie <dj@redhat.com>
4346 * ld.texinfo: Add notes about --whole-archive and gcc.
4348 2000-11-18 Fred Fish <fnf@be.com>
4350 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4351 (ld_options): Entry for --allow-shlib-undefined.
4352 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4353 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4355 * ld.texinfo: Document new command line switch.
4357 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4359 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4360 .fixup is actually read/write.
4361 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4362 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4363 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4365 2000-12-11 Jan Hubicka <jh@suse.cz>
4367 * NEWS: Add note about x86_64 architecture.
4369 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4371 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4372 Set DWARF2 sections to a VMA of zero.
4374 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4376 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4378 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4379 (sparc*-*-rtems*): Switched from a.out to ELF.
4381 2000-11-30 Jan Hubicka <jh@suse.cz>
4383 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4384 (eelf_x86_64.c): New.
4385 * Makefile.in: Regenerate.
4386 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4387 * emulparams/elf_x86_64.sh: New.
4389 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4391 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4392 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4394 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4395 merging non-a.out sections into CONSTRUCTING.
4397 2000-11-28 Nick Clifton <nickc@redhat.com>
4399 * ld.1 (COPYING): Mention that the GNU Free Documentation
4400 License is present in the sources, but not the output, and
4401 also available from the GNU website.
4402 (GNU Free Documentation License): Comment out this section.
4404 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4406 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4409 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4411 * ld.1: Remove old date so it does not give the impression the manpage
4414 2000-11-24 Nick Clifton <nickc@redhat.com>
4416 * configure.tgt (xscale-coff): Add target.
4417 (xscale-elf): Add target.
4419 2000-11-24 Fred Fish <fnf@be.com>
4421 * ldmain.c (main): Remove redundant init of config.make_executable
4424 2000-11-15 Richard Henderson <rth@redhat.com>
4426 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4428 2000-11-14 Kazu Hirata <kazu@hxi.com>
4430 * scripttempl/h8300.sc: Fix formatting.
4431 * scripttempl/h8300h.sc: Likewise.
4432 * scripttempl/h8300s.sc: Likewise.
4434 2000-11-14 Denis Chertykov <denisc@overta.ru>
4436 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4438 2000-11-09 Philip Blundell <pb@futuretv.com>
4440 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4441 around orphan sections whose names can be represented in C.
4443 2000-11-07 Jim Wilson <wilson@redhat.com>
4445 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4446 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4448 2000-11-06 Nick Clifton <nickc@redhat.com>
4450 * ld.texinfo: Add GNU Free Documentation License.
4451 * ldint.texinfo: Add GNU Free Documentation License.
4452 * ld.1: Add GNU Free Documentation License.
4454 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4456 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4457 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4459 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4460 Move 2000-11-02 Makefile.in changes to this file.
4461 * Makefile.in: Regenerate.
4463 2000-11-03 Nick Clifton <nickc@redhat.com>
4465 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4466 constructors and destructors.
4467 * scripttempl/h8300h.sc: Ditto.
4468 * scripttempl/h8300s.sc: Ditto.
4469 * scripttempl/h8500.sc: Ditto.
4470 * scripttempl/h8500b.sc: Ditto.
4471 * scripttempl/h8500c.sc: Ditto.
4472 * scripttempl/h8500m.sc: Ditto.
4473 * scripttempl/h8500s.sc: Ditto.
4474 * scripttempl/v850.sc: Ditto.
4475 * scripttempl/w65.sc: Ditto.
4476 * scripttempl/z8000.sc: Ditto.
4478 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4480 * Makefile.in (e_i386_chaos.c): New rule.
4481 (ALL_EMULATIONS): Added e_i386_chaos.o.
4482 * emulparams/elf_i386_chaos.sh: New file.
4483 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4485 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4487 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4488 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4489 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4490 library path suffix.
4491 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4493 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4495 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4496 for consecutive sections.
4498 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4500 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4502 * ld.texinfo: Added notes about this new option.
4504 2000-10-16 Nick Clifton <nickc@redhat.com>
4506 * emultempl/pe.em (_after_open): Add tests of return values from
4507 bfd functions. Emit appropriate error messages if necessary.
4509 2000-10-13 Nick Clifton <nickc@redhat.com>
4511 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4512 local variables - they are not used, but leave in the call to
4513 bfd_canonicalize_symtab.
4514 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4515 pe_dll_search_prefix.
4517 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4519 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4520 (longopts): New --dll-search-prefix option.
4521 (gld_${EMULATION_NAME}_list_options): Document.
4522 (gld_${EMULATION_NAME}_parse_args): Handle.
4523 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4524 dynamically, search for a dll named '<prefix><basename>.dll'
4525 in preference to 'lib<basename>.dll' if --dll-search-prefix
4528 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4530 * ldlang.c (section_already_linked): Set kept_section instead of
4533 2000-10-10 Kazu Hirata <kazu@hxi.com>
4535 * deffile.h: Fix formatting.
4536 * lexsup.c: Likewise.
4539 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4541 * pe-dll.c (make_one): Do not generate code thunk for DATA
4543 (process_def_file): deduce DATA flag for auto-export sumbols.
4545 2000-10-09 Kazu Hirata <kazu@hxi.com>
4547 * ld.h: Fix formatting.
4548 * ldcref.c: Likewise.
4549 * ldctor.h: Likewise.
4550 * ldemul.c: Likewise.
4551 * ldemul.h: Likewise.
4552 * ldexp.c: Likewise.
4553 * ldexp.h: Likewise.
4554 * ldfile.c: Likewise.
4555 * ldfile.h: Likewise.
4556 * ldlang.c: Likewise.
4557 * ldlang.h: Likewise.
4558 * ldmain.c: Likewise.
4559 * pe-dll.c: Likewise.
4561 * pe-dll.c: Revert some formatting fixes.
4563 2000-10-08 Kazu Hirata <kazu@hxi.com>
4565 * pe-dll.c: Fix formatting.
4567 2000-10-05 Kazu Hirata <kazu@hxi.com>
4569 * ldlang.c: Fix formatting.
4571 2000-10-03 DJ Delorie <dj@redhat.com>
4573 * pe-dll.c (fill_edata): initialize entire block
4574 (make_one): fill in correct section.
4576 2000-10-03 Kazu Hirata <kazu@hxi.com>
4578 * ldexp.c: Fix formatting.
4580 2000-10-02 DJ Delorie <dj@redhat.com>
4582 * emultempl/pe.em (gld_*_after_open): detect case where there two
4583 import libraries for same dll; rename one to ensure proper link
4586 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4588 (generate_edata): fix typo
4590 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4592 * scripttempl/crisaout.sc (ENTRY): Now __start.
4593 (.text): Add default setting for __start.
4594 Remove CONSTRUCTORS handling.
4595 (/DISCARD/): Add .gnu.warning.*.
4596 * emulparams/crislinux.sh (ENTRY): Now __start.
4597 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4598 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4599 (ENTRY): Now __start.
4600 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4601 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4603 2000-09-29 Kazu Hirata <kazu@hxi.com>
4605 * deffile.h: Fix formatting.
4607 * ldcref.c: Likewise.
4608 * ldctor.c: Likewise.
4609 * ldctor.h: Likewise.
4610 * ldemul.c: Likewise.
4611 * ldemul.h: Likewise.
4612 * ldexp.c: Likewise.
4613 * ldexp.h: Likewise.
4614 * ldfile.c: Likewise.
4615 * ldfile.h: Likewise.
4616 * ldlang.c: Likewise.
4617 * ldlang.h: Likewise.
4618 * lexsup.c: Likewise.
4620 * pe-dll.c: Likewise.
4622 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4624 * pe-dll.c (process_def_file): Uninitialized data wasn't
4625 exported with --export-all-symbols switch.
4627 2000-09-28 DJ Delorie <dj@redhat.com>
4629 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4630 noname work properly.
4632 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4634 * ld.texinfo (HPPA ELF32): New section.
4636 * emultempl/hppaelf.em (group_size): New.
4637 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4638 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4639 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4640 options to prevent abbreviations matching.
4641 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4642 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4644 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4646 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4647 on the m68*-*-elf target. Make it support COFF input objects.
4649 2000-09-21 Kazu Hirata <kazu@hxi.com>
4651 * ldmain.c: Fix formatting.
4652 * ldmisc.c: Likewise.
4653 * ldver.c: Likewise.
4654 * ldwrite.c: Likewise.
4656 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4658 * ldwrite.c (clone_section): Silence gcc warnings.
4660 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4662 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4663 out of memory failure.
4665 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4666 (clone_section): Handle out of memory failures. Rename var to
4667 avoid c++ reserved word.
4669 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4671 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4672 stub_name param to stub_sec_name.
4673 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4675 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4677 * emultempl/m68kelf.em: New file.
4678 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4679 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4680 * Makefile.in: Regenerate.
4682 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4684 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4687 2000-09-13 Nick Clifton <nickc@redhat.com>
4689 * ldmain.c (multiple_definition): Disable relaxation if
4690 multiple symbol definitions are encountered - otherwise the
4691 linker could abort with an assertion failure.
4693 2000-09-10 Nick Clifton <nickc@redhat.com>
4695 * mri.c: Fix formatting.
4697 2000-09-07 H.J. Lu <hjl@gnu.org>
4699 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4700 * configure: Rebuild.
4702 2000-09-07 H.J. Lu <hjl@gnu.org>
4704 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4705 * Makefile.in: Rebuild.
4707 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4709 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4710 broken list handling. Create __start_SECNAME and __stop_SECNAME
4711 when no place-holder. Add some comments. Test both SEC_CODE and
4712 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4713 Handle case where no output section statement created.
4715 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4717 * configure.tgt (sh-*-linux*): Added.
4718 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4719 * Makefile.in: Rebuilt.
4720 * emulparams/shelf_linux.sh: New file.
4721 * emulparams/shlelf_linux.sh: New file.
4723 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4725 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4726 try shuffling sections when the orphan happens to be the place
4727 holder. Keep count of unique section names generated so we speed
4728 the search for a new name.
4730 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4732 * configure: Rebuilt with new libtool.m4.
4734 2000-09-05 Nick Clifton <nickc@redhat.com>
4736 * Makefile.in: Regenerate.
4737 * aclocal.m4: Regenerate.
4738 * configure: Regenerate.
4739 * config.in: Regenerate.
4740 * po/ld.pot: Regenerate.
4742 * ldint.texinfo: Remove CVS revision marker - it foils local
4745 * emultempl/ticoff.em: Remove extraneous comma.
4747 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4749 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4750 to stub section flags.
4751 (hppa_for_each_input_file_wrapper): New.
4752 (hppa_lang_for_each_input_file): New.
4753 (lang_for_each_input_file): Define to call above.
4754 (multi_subspace): New.
4755 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4756 (PARSE_AND_LIST_PROLOGUE): Define.
4757 (PARSE_AND_LIST_LONGOPTS): Define.
4758 (PARSE_AND_LIST_OPTIONS): Define.
4759 (PARSE_AND_LIST_ARGS_CASES): Define.
4760 (hppaelf_finish): Call elf32_hppa_set_gp.
4761 (hppaelf_set_output_arch): Remove.
4762 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4764 * emulparams/hppalinux.sh (ELFSIZE): Define.
4766 (OTHER_READONLY_SECTIONS): Define.
4768 (GENERATE_SHLIB_SCRIPT): Define.
4770 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4771 to const throughout. Change `void *' to `PTR' throughout.
4772 (lang_memory_default): Function is local to file, add `static'.
4774 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4775 (ehppalinux.c): Likewise.
4776 (earmelf.c): Likewise.
4777 (earmelf_linux.c): Likewise.
4778 (earmelf_linux26.c): Likewise.
4779 * Makefile.in: Regenerate.
4781 * ld.h (ld_config_type): Add unique_orphan_sections.
4782 * lexsup.c (OPTION_UNIQUE): Define.
4783 (ld_options): Add "--unique".
4784 (parse_args): Handle it.
4785 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4786 search for an existing output section if unique_orphan_sections is
4787 set. Make use of bfd_get_unique_section_name rather than
4788 duplicating code here.
4789 * ld.texinfo: Describe --unique.
4791 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4792 optional arg to split-by-file.
4793 (parse_args): Handle them.
4794 * ld.texinfo: Update description of these options.
4795 * ldwrite.c (clone_section): Pass in the section name. Replace
4796 local code with bfd_get_unique_section_name.
4797 (split_sections): Tidy code and comments. Use a list traversal
4798 more appropriate to the list construction. Handle cooked section
4799 sizes. Split when split_by_reloc reached rather than exceeded.
4800 Track section size and split when split_by_file reached. Fix
4801 link_order_tail (even though it's not used).
4802 (ldwrite): Modify condition for calling split_sections to suit
4803 changed split_by_reloc and split_by_file.
4804 * ldmain.c (main): Init config.split_by_reloc and
4805 config.split_by_file to -1.
4806 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4807 Change split_by_file to bfd_size_type.
4809 2000-09-02 Nick Clifton <nickc@redhat.com>
4811 * configure.in: Increase version number to 2.10.91.
4812 * NEWS: Mention new ability to support removal of duplicate DWARF2
4814 * configure: Regenerate.
4815 * aclocal.m4: Regenerate.
4816 * config.in: Regenerate.
4818 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4820 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4822 * scripttempl/elf32avr.sc: Ditto.
4823 * scripttempl/elfd10v.sc: Ditto.
4824 * scripttempl/elfd30v.sc: Ditto.
4825 * scripttempl/elfi370.sc: Ditto.
4826 * scripttempl/elfm68hc11.sc: Ditto.
4827 * scripttempl/elfm68hc12.sc: Ditto.
4828 * scripttempl/elfi386beos.sc: Ditto.
4829 * scripttempl/v850.sc: Ditto.
4831 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4833 * acinclude.m4: Include libtool and gettext macros from the
4835 * aclocal.m4, configure: Rebuilt.
4837 2000-08-25 Nick Clifton <nickc@redhat.com>
4839 * ldlang.c (open_output): When choosing the target for a
4840 particular endianness, do nothing if the target is not
4843 2000-08-25 H.J. Lu <hjl@gnu.org>
4845 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4846 check -rpath nor LD_RUN_PATH for cross link.
4847 * ld.texinfo: Document the change.
4849 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4851 * NEWS: Mention support for CRIS.
4853 2000-08-23 H.J. Lu <hjl@gnu.org>
4855 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4856 the current runpath list from bfd_elf_get_runpath_list ()
4859 2000-08-22 H.J. Lu <hjl@gnu.org>
4861 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4862 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4863 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4864 trace_file_tries is non-zero.
4865 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4866 if trace_file_tries is non-zero.
4868 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4871 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4873 * NEWS: Mention i860 support.
4875 2000-08-14 Andreas Schwab <schwab@suse.de>
4877 * scripttempl/elf.sc: Fix last change to use correct comment
4880 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4882 * scripttempl/elf.sc: Add a comment giving the correspondence
4883 between sections, per-datum sections, and linkonce sections. Make
4884 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4887 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4889 * emulparams/elf32_i860.sh: New file.
4890 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4891 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4892 (eelf32_i860.c): New rule.
4893 * Makefile.in: Regenerate.
4895 2000-08-10 Nick Clifton <nickc@cygnus.com>
4897 * emulparams/mipspe.sh (ENTRY): Add definition.
4899 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4901 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4904 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4906 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4907 the final size of .bss section.
4908 * scripttempl/elfm68hc12.sc: Likewise.
4910 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4912 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4913 gld${EMULATION_NAME}_parse_args for consistency. Combine
4914 lastoptind and prevoptind vars, and keep track of last optind.
4915 (gld_${EMULATION_NAME}_list_options): Rename to
4916 gld${EMULATION_NAME}_list_options.
4918 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4920 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4921 (i586-sco-sysv5uw7.1.0).
4923 2000-07-27 H.J. Lu <hjl@gnu.org>
4925 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4926 (PARSE_AND_LIST_PROLOGUE): New.
4927 (PARSE_AND_LIST_LONGOPTS): Likewise.
4928 (PARSE_AND_LIST_OPTIONS): Likewise.
4929 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4930 (PARSE_AND_LIST_EPILOGUE): Likewise.
4932 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4934 * emultempl/armelf.em: Elide functions common to elf32.em,
4935 ie. most of the file.
4936 (arm_elf_after_open): New. Do arm specific things then call
4937 gld${EMULATION_NAME}_after_open.
4938 (arm_elf_before_allocation): New. Call
4939 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4940 (PARSE_AND_LIST_PROLOGUE): Define.
4941 (PARSE_AND_LIST_SHORTOPTS): Define.
4942 (PARSE_AND_LIST_LONGOPTS): Define.
4943 (PARSE_AND_LIST_OPTIONS): Define.
4944 (PARSE_AND_LIST_ARGS_CASES): Define.
4945 (LDEMUL_AFTER_OPEN): Define.
4946 (LDEMUL_BEFORE_ALLOCATION): Define.
4947 (LDEMUL_BEFORE_PARSE): Define.
4948 (LDEMUL_FINISH): Define.
4950 * emultempl/hppaelf.em: Similarly zap most of this file.
4951 (hppaelf_add_stub_section): Prototype.
4952 (hppaelf_layaout_sections_again): Prototype.
4953 (hook_in_stub): Prototype.
4954 (LDEMUL_SET_OUTPUT_ARCH): Define.
4955 (LDEMUL_FINISH): Define.
4956 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4958 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4959 (EXTRA_EM_FILE): New.
4960 * emulparams/armelf_linux.sh: Likewise.
4961 * emulparams/armelf_linux26.sh: Likewise.
4962 * emulparams/hppalinux.sh: Likewise.
4963 * emulparams/hppaelf.sh: Likewise.
4966 * emultempl/elf32.em: Fix formatting.
4967 (EXTRA_EM_FILE): Source it.
4968 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4969 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4970 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4971 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4972 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4973 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4974 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4975 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4976 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4977 allow functions in this file to be overridden.
4978 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4980 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4982 * emultempl/elf32.em: Reorganize file.
4984 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4986 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4987 specific option to fit 64-bit executable in the lower
4988 31-bit address range. This is done by changing start
4989 address of .interp (the very first section of executable)
4990 and then setting EF_ALPHA_32BIT elf header flag.
4992 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4994 * emultempl/m68kcoff.em: New file.
4995 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4996 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4998 * Makefile.in: Regenerate.
5000 2000-07-20 H.J. Lu <hjl@gnu.org>
5002 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5003 and "disable-new-dtags" to stop getopt from treating -d/-e as
5004 abbreviations for these options.
5006 2000-07-20 H.J. Lu <hjl@gnu.org>
5008 * ld.texinfo: Add documentation for --disable-new-dtags and
5011 * ldmain.c (main): Initialize link_info.new_dtags to false.
5013 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5014 --disable-new-dtags and --enable-new-dtags.
5015 (gld_${EMULATION_NAME}_list_options): Likewise.
5017 2000-07-05 Kenneth Block <krblock@computer.org>
5019 * lexsup.c: Add optional style to demangle switch
5020 * ld.texinfo: Document optional style to demangle switch.
5022 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5024 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5026 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5027 Regenerate dependencies.
5028 * Makefile.in: Rebuild.
5029 * configure.tgt (cris-*-*): New target.
5030 * emulparams/crisaout.sh, emulparams/criself.sh,
5031 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5032 * po/POTFILES.in, po/ld.pot: Regenerate.
5034 2000-07-20 H.J. Lu <hjl@gnu.org>
5036 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5037 Print out ignored -z options.
5039 2000-07-19 H.J. Lu <hjl@gnu.org>
5041 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5042 (PARSE_AND_LIST_PROLOGUE): New.
5043 (PARSE_AND_LIST_LONGOPTS): Likewise.
5044 (PARSE_AND_LIST_OPTIONS): Likewise.
5045 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5047 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5049 * lexsup.c (ld_options): Comment out 'z'.
5050 (parse_args): Likewise.
5052 * emultempl/elf32.em: Include "elf/common.h".
5053 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5055 (gld_${EMULATION_NAME}_list_options): Likewise.
5057 * ld.texinfo: Add documentation for the recognized -z options.
5059 2000-07-19 H.J. Lu <hjl@gnu.org>
5061 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5062 bfd_elf_set_dt_needed_soname ().
5064 2000-07-18 DJ Delorie <dj@cygnus.com>
5066 * pe-dll.c (pe_dll_id_target): check object target name also
5068 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5070 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5071 ${INIT_END} if relocating.
5072 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5074 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5076 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5077 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5078 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5079 errors introduced by the old dynamic lib search order.
5081 2000-07-17 DJ Delorie <dj@cygnus.com>
5083 * pe-dll.c (process_def_file): auto-export data items also
5084 (pe_process_import_defs): also see if _imp_ form needed
5086 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5088 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5089 for dll import libraries
5091 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5093 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5094 gcc 2.95.2 and later.
5096 2000-07-11 Kazu Hirata <kazu@hxi.com>
5098 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5101 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5103 * ldemul.h (struct lang_input_statement_struct): Remove forward
5105 (struct search_dirs): Likewise.
5106 * ldfile.h (struct lang_input_statement_struct): Likewise.
5107 Protect file from multiple inclusion.
5108 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5109 declaration from macro to file scope.
5111 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5112 * ldgram.y: Likewise here.
5113 * ldlang.c: And here.
5114 * ldmain.c: And here.
5115 * mpw-elfmips.c: And here.
5116 * mpw-eppcmac.c: And here.
5117 * emultempl/aix.em: And here.
5118 * emultempl/armcoff.em: And here.
5119 * emultempl/armelf.em: And here.
5120 * emultempl/armelf_oabi.em: And here.
5121 * emultempl/beos.em: And here.
5122 * emultempl/elf32.em: And here.
5123 * emultempl/hppaelf.em: And here.
5124 * emultempl/linux.em: And here.
5125 * emultempl/lnk960.em: And here.
5126 * emultempl/pe.em: And here.
5127 * emultempl/sunos.em: And here.
5128 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5129 * mpw-idtmips.c: Ditto.
5130 * emultempl/generic.em: Ditto.
5131 * emultempl/gld960.em: Ditto.
5132 * emultempl/gld960c.em: Ditto.
5133 * emultempl/mipsecoff.em: Ditto.
5134 * emultempl/ticoff.em: Ditto.
5135 * emultempl/vanilla.em: Ditto.
5137 * pe-dll.c: Include ldfile.h
5138 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5140 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5141 arguments to bfd_elf32_size_dynamic_sections call.
5142 (gldelf32ebmip_place_orphan): Add missing arguments to
5143 lang_leave_output_section_statement call.
5145 2000-07-10 H.J. Lu <hjl@gnu.org>
5147 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5149 (strhash): Likewise.
5150 (compute_dll_image_base): Likewise.
5151 (pe_undef_found_sym): Likewise.
5152 (pe_undef_cdecl_match): Likewise.
5153 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5154 argument "arch" with ATTRIBUTE_UNUSED.
5156 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5158 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5160 From Ryan Bradetich <rbradetich@uswest.net>
5161 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5163 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5165 Changes to create multiple linker stubs, positioned immediately
5166 before the section where they are required.
5167 * emultempl/hppaelf.em: Include elf32-hppa.h.
5168 (stub_sec, file_chain): Delete.
5169 (hppaelf_create_output_section_statements): Don't make a stub
5171 (hook_stub_info): New struct.
5172 (hook_in_stub): New function.
5173 (hppaelf_add_stub_section): New function.
5174 (hppaelf_finish): Do nothing for relocateable links. Modify the
5175 call to elf32_hppa_size_stubs. Move code for updating section
5177 (hppaelf_layaout_sections_again): ..to here, a new function.
5179 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5180 broken list handling. Pass in a pointer to the list.
5181 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5183 (hppaelf_before_parse): Prototype.
5184 (hppaelf_set_output_arch): Prototype.
5185 (hppaelf_create_output_section_statements): Prototype.
5186 (hppaelf_delete_padding_statements): Prototype.
5187 (hppaelf_finish): Prototype.
5190 * emultempl/hppaelf.em: Include ctype.h.
5191 (struct orphan_save): New.
5192 (gld${EMULATION_NAME}_place_orphan): New.
5193 (output_rel_find): New.
5194 (hppaelf_get_script): Update from elf32.em.
5195 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5196 Change emulation_name field to "${EMULATION_NAME}". Add
5197 gld${EMULATION_NAME}_place_orphan.
5199 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5200 ehppalinux.o, sort it. Regenerate dependencies.
5201 (ehppalinux.c): Depend on hppaelf.em
5202 * Makefile.in: Regenerate.
5204 * configure.tgt: targ_emul=hppalinux for hppa*linux
5206 * emulparams/hppalinux.sh: New.
5207 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5209 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5211 * lexsup.c (parse_args): Copy section name.
5213 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5215 * emultempl/pe.em: institute the following search order for
5216 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5217 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5218 static lib (libfoo.a) if none of the above are found.
5220 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5222 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5223 (longopts): New --{enable,disable}-auto-image-base options.
5224 (gld_${EMULATION_NAME}_list_options): Document.
5225 (gld_${EMULATION_NAME}_parse): Handle.
5226 (strhash): New static function.
5227 (compute_dll_image_base): New static function.
5228 (gld_${EMULATION_NAME}_set_symbols): Use.
5230 2000-07-05 DJ Delorie <dj@redhat.com>
5234 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5236 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5237 * emulparams/elf32btsmip.sh: New file.
5238 * Makefile.am: Add traditional mips target.
5239 * Makefile.in: Rebuild.
5241 2000-07-01 H.J. Lu <hjl@gnu.org>
5243 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5244 automake to use YLWRAP.
5245 * Makefile.in: Rebuild.
5247 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5249 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5250 (CLEANFILES): Add DEPA.
5251 * Makefile.in: Regenerate.
5253 2000-06-30 Timothy Wall <twall@ppc>
5255 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5256 the page in the upper octet of the address.
5258 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5260 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5262 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5264 * NEWS: arm-elf does --gc-sections too.
5266 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5268 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5270 * Makefile.in: Regenerate.
5272 2000-06-21 H.J. Lu <hjl@gnu.org>
5274 * Makefile.am: Rebuild dependency.
5275 * Makefile.in: Rebuild.
5277 2000-06-20 H.J. Lu <hjl@gnu.org>
5279 * Makefile.am: Rebuild dependency.
5280 * Makefile.in: Rebuild.
5282 2000-06-20 Timothy Wall <twall@cygnus.com>
5284 * scripttempl/tic54xcoff.sc: New.
5285 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5286 * gen-doc.texi: Add flag for TI COFF.
5287 * ld.texinfo: Add documentation for TI COFF handling switches.
5288 * emultempl/ticoff.em: New. TI COFF handling.
5289 * configure.tgt: Add tic54x target.
5290 * Makefile.am: Add tic54x target.
5291 * Makefile.in: Ditto.
5293 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5295 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5296 checking for backslashes.
5298 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5300 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5302 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5304 * NEWS: Update list of targets supporting --gc-sections.
5306 * scripttempl/elf.sc: KEEP .eh_frame contents.
5307 * scripttempl/elfd30v.sc: Same here.
5309 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5311 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5313 * Makefile.in: Rebuild.
5314 * configure.tgt: Recognize m68hc12 and m68hc11.
5315 * scripttempl/elfm68hc12.sc: New file.
5316 * emulparams/m68hc12elfb: New emulation.
5317 * emulparams/m68hc12elf: New emulation.
5318 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5319 (includes a memory.x script to define the ROM and RAM banks).
5320 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5321 New configuration files for support of Motorola 68hc11
5323 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5325 * ldmain.c (main): Only change SEC_READONLY for final link.
5327 2000-06-13 H.J. Lu <hjl@gnu.org>
5329 * configure: Regenerate.
5331 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5333 * configure.in (VERSION): Update to show this is the CVS mainline.
5335 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5337 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5338 input objects to be ECOFF.
5339 (check_sections): einfo takes %B, not %P, to print a BFD name.
5341 2000-06-05 Michael Matz <matz@ifh.de>
5343 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5346 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5348 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5350 * emulparams/avr1200.sh (STACK): Define as 0.
5351 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5352 * emulparams/avr4433.sh (STACK): Likewise.
5353 * emulparams/avr44x4.sh (STACK): Likewise.
5354 * emulparams/avr85xx.sh (STACK): Likewise.
5355 * emulparams/avrmega103.sh (STACK): Likewise.
5356 * emulparams/avrmega161.sh (STACK): Likewise.
5357 * emulparams/avrmega603.sh (STACK): Likewise.
5358 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5359 (__stack): Define from ${STACK} for main().
5361 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5363 * Makefile.am: Update dependencies with "make dep-am"
5364 * Makefile.in: Regenerate.
5366 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5368 * ldmain.c: Include filenames.h.
5369 (set_scripts_dir): Support backslashes in program name.
5371 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5373 * ldmain.c (main): When deciding if ".text" section should be
5374 read-only, don't forget to reset SEC_READONLY because it
5375 could be already set.
5377 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5379 * ld.1: Add documentation for new command line option:
5380 --section-start <sectionname>=<sectionorg>
5381 This is a generic version of -Ttext etc. which accepts
5382 any section name as a parameter instead of just text/data/
5384 * ld.texinfo: More docs.
5386 * lexsup.c: (parse_args): Recognize new command line option.
5387 (ld_options): Add new option.
5389 2000-05-18 H.J. Lu <hjl@gnu.org>
5391 * lexsup.c (parse_args): `i' == `r', not `q'.
5393 2000-05-18 Jeffrey A Law (law@cygnus.com)
5395 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5397 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5398 Rick Gorton <gorton@scrugs.lkg.dec.com>
5400 Add support for '-q' == '--emit-relocs' switch.
5401 * ldmain.c (main): Default to false.
5402 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5403 * NEWS: Describe the emitrelocations switch.
5404 * ld.texinfo: Describe the emitrelocations switch.
5406 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5408 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5409 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5410 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5413 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5415 * lexsup.c (parse_args): Update the year in the copyright notice.
5417 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5419 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5420 Replace defines with those from intl/libgettext.h to quieten gcc
5423 2000-05-10 H.J. Lu <hjl@gnu.org>
5425 * ldlang.c (open_input_bfds): Don't load the same file within
5426 a group again if the whole archive has been loaded already.
5428 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5430 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5431 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5434 2000-05-01 Jim Wilson <wilson@cygnus.com>
5436 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5438 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5439 host "ia64-*-linux-gnu*".
5441 2000-04-29 Andreas Jaeger <aj@suse.de>
5443 * ld.h: Correctly check GCC version.
5445 2000-04-25 Jeffrey A Law (law@cygnus.com)
5447 * Makefile.am: Add PA64 support. Add missing dependencies for
5449 * Makefile.in: Rebuilt.
5450 * configure.tgt: Add PA64 support (currently disabled).
5452 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5454 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5455 (output_rel_find): New function.
5456 (hold_section, hold_use): Delete.
5457 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5458 hold_interp): Make local to place_orphan.
5459 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5460 rather than place_section to find possible previous use of orphan.
5461 Similarly find the place-holder output sections. Use returned
5462 value from lang_enter_output_section_statement rather than calling
5463 lang_output_section_statement_lookup.
5464 * emultempl/armelf.em: Same here.
5465 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5467 * ldlang.c (lang_enter_output_section_statement): Return output
5469 * ldlang.h (lang_enter_output_section_statement): Change
5472 * ldlang.h (lang_output_section_statement): Export it.
5473 * ldlang.c (lang_output_section_statement): Ditto.
5475 2000-04-24 Nick Clifton <nickc@cygnus.com>
5477 * ld.texinfo (Output Section Data): Add note that section data
5478 commands cannot appear outside of section directives.
5480 2000-04-2 Matthew Green <mrg@cygnus.com>
5482 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5484 2000-04-21 Richard Henderson <rth@cygnus.com>
5485 David Mosberger <davidm@hpl.hp.com>
5487 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5488 (eelf64_ia64.c): New rule.
5489 * Makefile.in: Rebuild.
5490 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5491 * emulparams/elf64_ia64.sh: New file.
5493 2000-04-21 Richard Henderson <rth@cygnus.com>
5495 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5497 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5499 * dep-in.sed: Match space at start of file name, not at end.
5501 2000-04-18 H.J. Lu <hjl@gnu.org>
5503 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5504 lang_leave_output_section_statement () after calling
5505 lang_enter_output_section_statement ().
5506 * emultempl/armelf.em: Likewise.
5508 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5510 * emultempl/elf32.em (struct orphan_save): Add section field.
5511 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5512 better order, and place first orphan section as we did before the
5513 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5514 Don't call make_bfd_section here, let wild_doit do the job for us.
5515 Don't build a statement list when we'll only throw it away.
5516 * emultempl/armelf.em: Ditto.
5517 * emultempl/pe.em: Similarly.
5519 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5521 * scripttempl/elfppc.sc: Remove.
5522 * emulparams/elf32ppc.sh: Use elf.sc.
5523 * emulparams/elf32lppc.sh: Use elf.sc.
5524 * emulparams/elf32ppclinux.sh: Use elf.sc.
5525 * emulparams/elf32ppcsim.sh: New file.
5526 * emulparams/elf32lppcsim.sh: New file.
5527 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5528 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5529 * Makefile.in: Regenerate.
5530 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5532 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5534 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5535 ~SEC_ALLOC sections too. Init start address of debug sections.
5536 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5537 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5538 Also set all relocateable section start addresses.
5540 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5542 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5543 Add new BSS_PLT variable for when .plt need not be contained in
5544 the file. Move _etext so that it is also after .fini, and provide
5545 both etext and _etext with a leading underscore. Mark the start
5548 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5550 * emultempl/elf32.em (struct orphan_save): New.
5551 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5552 hold_interp): Make them struct orphan_save.
5553 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5554 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5555 the end of the relevant section list. Also add associated section
5556 statements to the end of any previous orphan statements.
5557 * emultempl/armelf.em: Similarly.
5558 * emultempl/pe.em: Similarly.
5560 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5562 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5564 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5566 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5567 --enable-build-warnings option.
5568 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5569 * Makefile.in, configure: Re-generate.
5571 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5573 * po/ld.pot: Regenerate.
5575 * lexsup.c (help): Restore translated part of bug string.
5577 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5578 (DEP): Quote when passing vars to sub-make. Add warning message
5580 (DEP1): Rewrite for "gcc -MM".
5581 (CLEANFILES): Add DEP2.
5582 Update dependencies.
5583 * Makefile.in: Regenerate.
5585 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5587 * ld.h: #include "bin-bugs.h"
5588 * lexsup.c (help): Use REPORT_BUGS_TO.
5590 2000-03-27 Denis Chertykov <denisc@overta.ru>
5592 * configure.tgt (avr-*-*): New target support.
5593 * Makefile.am: Likewise.
5594 * scripttempl/elf32avr.sc: New script file.
5595 * emulparams/avr1200.sh: New file.
5596 * emulparams/avr23xx.sh: New file.
5597 * emulparams/avr4433.sh New file.
5598 * emulparams/avr44x4.sh New file.
5599 * emulparams/avr85xx.sh New file.
5600 * emulparams/avrmega103.sh New file.
5601 * emulparams/avrmega161.sh New file.
5602 * emulparams/avrmega603.sh New file.
5603 * Makefile.in: Regenerate.
5605 2000-03-09 Andreas Jaeger <aj@suse.de>
5607 * Makefile.am (check-DEJAGNU): Also unset LANG.
5608 * Makefile.in: Rebuild.
5610 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5612 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5615 2000-03-02 H.J. Lu <hjl@gnu.org>
5617 * emulparams/elf32mcore.sh: Include "getopt.h".
5619 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5621 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5623 2000-03-01 H.J. Lu <hjl@gnu.org>
5625 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5626 * emulparams/shpe.sh: Likewise.
5628 2000-03-01 Nick Clifton <nickc@cygnus.com>
5630 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5631 to unused parameters.
5633 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5634 functions only used by DLL code.
5635 (_place_orphan): Initialise 'dollar'.
5637 2000-03-01 H.J. Lu <hjl@gnu.org>
5639 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5640 indicate if the undefined symbol is a fatal error or not.
5641 Don't delete the output file if "fatal" is false.
5643 2000-02-29 H.J. Lu <hjl@gnu.org>
5645 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5646 Set LC_COLLATE and LC_ALL to null and export them. It is for
5647 sort which expects the C locale.
5648 Add $(LIBS) to all $(HOSTING_LIBS).
5649 * Makefile.in: Rebuild.
5651 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5653 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5654 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5655 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5656 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5657 find_potential_libraries.
5659 2000-02-28 Jim Blandy <jimb@redhat.com>
5661 * ldgram.y (exclude_name_list): Don't require a comma to separate
5662 list entries; the lexer considers commas to be valid part of a
5663 filename, so in something like `foo, bar' the comma is considered
5664 part of the first filename, `foo,'.
5665 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5667 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5669 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5670 host "i[3456]86-*-freebsdelf*".
5672 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5674 * scripttempl/i386go32.sc: Move misplaced semicolons.
5676 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5678 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5679 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5680 (eelf64hppa.c, ehppaelf.c): Remove targets.
5681 * Makefile.in: Rebuild.
5683 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5685 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5686 GNU/Linux/sparc, but keep the default as 32.
5688 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5689 it default if sparcv9 or sparc64.
5691 2000-02-24 Nick Clifton <nickc@cygnus.com>
5693 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5694 * Makefile.in: Regenerate.
5695 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5697 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5698 find_potential_libraries.
5699 * ldemul.c (ldemul_find_potential_libraries): New function.
5701 * ldfile.c (ldfile_open_file_search): Allow function to be
5703 (ldfile_open_file): Call ldemul_find_potential_libraries.
5704 * ldfile.h: Add prototype for ldfile_open_file_search.
5706 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5708 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5709 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5711 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5712 (gld_X_find_potential_libraries): New function. Search for
5713 libraries called "*.lib".
5715 * scripttempl/pe.sc: Add .pdata section.
5717 2000-02-23 Richard Henderson <rth@cygnus.com>
5719 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5720 Add and use memory regions.
5722 2000-02-23 Linas Vepstas (linas@linas.org)
5724 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5726 * Makefile.am: Add support for Linux/IBM 370.
5727 * configure.tgt: Likewise.
5729 * Makefile.in: Regenerate.
5731 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5733 * ldlang.c (print_input_section, print_data_statement,
5734 print_reloc_statement, print_padding_statement, insert_pad,
5735 size_input_section, lang_check_section_addresses,
5736 lang_size_sections, lang_do_assignments, lang_set_startof,
5737 lang_one_common): Change `opb' to unsigned.
5738 (lang_do_assignments): Also change `size' to unsigned.
5740 2000-02-16 Richard Henderson <rth@cygnus.com>
5742 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5744 2000-02-16 Timothy Wall <twall@cygnus.com>
5746 * mri.c (mri_draw_tree): Add default LMA region argument to call
5747 to lang_leave_output_section_statement.
5748 * ldlang.h: Update prototypes with LMA region arguments.
5749 * ldlang.c (lang_size_sections): Encapsulate region bounds
5750 checking in os_check_region call.
5751 (os_check_region): New function.
5752 (lang_output_section_statement_lookup): Initialize lma_region.
5753 (lang_leave_output_section_statement): Add LMA region argument.
5754 (lang_leave_overlay): Ditto.
5755 * ldgram.y: Handle LMA region syntax.
5756 * ld.texinfo (Output Section Description): Describe LMA region usage.
5757 * emultempl/armelf.em (gld$place_orphan): Add default value for
5758 lma region in call to lang_leave_output_section_statement.
5759 * emultempl/elf32.em (gld$place_orphan): Add default value for
5760 lma region in call to lang_leave_output_section_statement.
5761 * emultempl/pe.em (gld$place_orphan): Add default value for
5762 lma region in call to lang_leave_output_section_statement.
5765 2000-02-04 Timothy Wall <twall@redhat.com>
5767 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5768 octets when calculating section end addresses.
5770 2000-02-04 Timothy Wall <twall@redhat.com>
5772 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5774 2000-02-03 Timothy Wall <twall@redhat.com>
5776 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5778 * ldlang.c (print_input_section, print_data_statement,
5779 print_reloc_statement, print_padding_statement): Print target
5780 address values and section sizes as bytes, not octets.
5781 (insert_pad) Calculate padding size in octets, and adjust "dot"
5783 (size_input_section) Always adjust "dot" by bytes, not octets.
5784 (lang_check_section_addresses, lang_do_assignments) Adjust
5785 "dot" by bytes, not octets. Use the larger of the directive size
5786 or octets_per_byte for the number of octets actually allocated in
5788 (lang_set_startof) Make sure STARTOF returns a target address.
5789 (lang_one_common) Record size changes in octets.
5790 (lang_abs_symbol_at_end_of) Section end symbol's value is
5791 recorded in target bytes.
5792 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5793 to be clear about behavior when an octet is smaller than one byte.
5795 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5797 * ldcref.c (output_cref): Don't pass message strings to printf
5801 * ldmisc.c (vfinfo): Same here.
5804 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5806 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5807 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5808 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5809 Add missing NULL initialisers, and comments.
5811 2000-01-21 Nick Clifton <nickc@cygnus.com>
5813 * ldlang.c (lang_size_sections): Fix typo in comment.
5815 2000-01-18 H.J. Lu <hjl@gnu.org>
5817 * ldlang.c (lang_size_sections): Also update the current
5818 address of a region if the SEC_NEVER_LOAD bit is not set.
5820 2000-01-10 Philip Blundell <pb@futuretv.com>
5822 * configure.tgt (arm*-*-conix*): New target.
5824 2000-01-07 Nick Clifton <nickc@cygnus.com>
5826 * ld.texinfo (Options): Remind users to preceed linker command
5827 line switches with -Wl, (or whatever is appropriate) if it is
5828 being invoked by a comnpiler driver program.
5829 Fix description of the behaviour of the -n command line switch.
5831 2000-01-05 Catherine Moore <clm@cygnus.com>
5833 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5835 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5836 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5837 (exclude_name_list): New.
5838 ldlang.c (walk_wild_section): Support list of excluded files.
5839 (print_wild_statement): Likewise.
5840 (lang_add_wild): Likewise.
5841 * ldlang.h (lang_wild_statement_type): Likewise.
5842 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5844 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5846 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5847 (process_def_file): Use.
5848 (pe_dll_compat_implib): New variable.
5851 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5852 pe_dll_compat_implib.
5854 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5855 compat-implib options.
5856 (gld_${EMULATION_NAME}_list_options): List new options.
5857 (gld_${EMULATION_NAME}_parse_args): Handle.
5859 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5862 * deffilep.y (opt_name): Allow "." in name.
5864 For older changes see ChangeLog-9899
5870 version-control: never