1 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
3 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
5 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
7 (LDEMUL_FINISH): Override to generate the trampolines after gc and
9 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
10 stub file for trampolines.
11 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
12 --no-trampoline and --bank-window to control the memory bank window.
14 2003-04-18 H.J. Lu <hjl@gnu.org>
16 * ldfile.c (ldfile_add_library_path): Remove the unused
19 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
21 * scripttempl/xstormy16.sc (__data, __rdata): New.
23 2003-04-16 Nick Clifton <nickc@redhat.com>
25 * scripttempl/xstormy16.sc: Add .jcr section mapping.
27 2003-04-15 H.J. Lu <hjl@gnu.org>
29 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
31 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
33 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
35 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
36 * ld.texinfo: Likewise.
38 2003-04-14 Alan Modra <amodra@bigpond.net.au>
40 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
41 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
42 other variants of crtbegin.o, crtend.o.
44 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
45 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
46 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
47 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
48 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
49 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
50 * scripttempl/mmo.sc (ctors, dtors): Likewise.
51 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
53 2003-04-09 Dmitry Diky <diwil@mail.ru>
55 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
56 sections to respect C++ constructor/destructor. Add ctors/dtors
57 start/stop definitions.
58 * scripttempl/elf32msp430_3.sc: Likewise.
60 2003-04-06 Nick Clifton <nickc@redhat.com>
62 * ld.texinfo (Options): Add a reminder of the target specific
63 nature to the description of the i386 PE specific options, for
64 readers who have not read all the way through the manual.
66 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
68 * configure.tgt: Fixed bug in list of targ_extra_emuls.
69 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
70 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
71 * emulparams/tic3xcoff_onchip.sh: Ditto
72 * emulparams/tic4xcoff.sh: Ditto
73 * scripttempl/tic4xcoff.sc: Ditto
75 2003-04-03 Nick Clifton <nickc@redhat.com>
77 * NEWS: Mention support for Xtensa architecture.
79 2003-04-02 Nick Clifton <nickc@redhat.com>
81 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
83 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
85 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
86 Don't call pe_dll_build_section() if link_info.relocateable.
87 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
88 if link_info.relocateable.
90 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
92 * pe-dll.c (process_def_file): Don't create an export
93 section if there are no exports and we're building an exe
94 (pe_dll_build_sections): Ditto
95 (pe_dll_fill_sections): Conditionalize setting
96 abfd->dll true on info->shared
97 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
98 If i386pe or armpe, call pe_dll_build_section()
99 for both exe's and dll's, not just dll's.
100 (gld_${EMULATION_NAME}_finish): For all targets except
101 shpe and mipspe, call pe_dll_fill_sections() for both
102 exe's and dll's, not just dll's.
104 2003-04-02 Bob Wilson <bob.wilson@acm.org>
106 * emulparams/xtensa-config.sh: Remove comment indicating that this is
109 2003-04-01 Bob Wilson <bob.wilson@acm.org>
111 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
112 (eelf32xtensa.c): New target.
113 * Makefile.in: Regenerate.
114 * configure.tgt: Handle xtensa-*-*.
115 * gen-doc.texi: Set XTENSA variable.
116 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
117 * emulparams/elf32xtensa.sh: New file.
118 * emulparams/xtensa-config.sh: Likewise.
119 * emultempl/xtensaelf.em: Likewise.
120 * scripttempl/elfxtensa.sc: Likewise.
122 2003-04-01 Jakub Jelinek <jakub@redhat.com>
124 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
125 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
126 if --enable-64-bit-bfd.
128 2003-04-01 Nick Clifton <nickc@redhat.com>
130 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
132 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
133 name of note section.
135 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
137 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
140 2003-03-31 David Heine <dlheine@suif.stanford.edu>
142 * ldfile.c (ldfile_add_library_path): Always allocate space for
144 * ldlang.c (lang_register_vers_node): Free the node if it cannot
146 * ldmain.c (set_scripts_dir): Always free the constructed
148 (add_keepsyms_file): Fix memory leak.
149 * ldmisc.c (vfinfo): Likewise.
150 * lexsup.c (parse_args): Likewise.
152 2003-03-25 Stan Cox <scox@redhat.com>
153 Nick Clifton <nickc@redhat.com>
155 Contribute support for Intel's iWMMXt chip - an ARM variant:
157 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
158 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
159 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
162 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
164 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
165 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
166 (main): Initialize them.
167 * ldfile.c: Include pathnames.h.
168 (is_sysrooted_pathname): New.
169 (ldfile_add_library_path): Use it.
170 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
171 search_dirs if given an absolute pathname.
172 (ldfile_open_file): Issue error message for sysrooted
174 * Makefile.am: Updated dependencies.
175 * Makefile.in: Rebuild.
177 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
179 * ld.texinfo: Rename all occurances of C54X to TIC54X.
181 2003-03-19 Andreas Schwab <schwab@suse.de>
183 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
186 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
188 * defilep.y (opt_base): If no number given, set to default
191 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
193 * deffilep.y (def_import): Use default extension of "dll"
194 if no extension provided in parsed IMPORT definition.
196 * deffilep.y (def_lex): Revert 2003-03-12 change.
197 (dot_name): New id type and rule.
198 (expline): Use instead of ID.
199 (opt_equal_name): Likewise.
201 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
203 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
205 2003-03-07 Christopher Faylor <cgf@redhat.com>
207 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
208 apparent accidental removal on 2003-01-06.
210 2003-03-04 Dmitry Diky <diwil@mail.ru>
212 * Makefile.am: Add new devices x1122 x1132 emulation
213 * configure.tgt: Likewise.
214 * Makefile.in: Regenerate.
215 * emulparams/msp430x1122.sh: New file.
216 * emulparams/msp430x1132.sh: New file.
218 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
220 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
223 * ldfile.h (struct search_dirs): Added sysrooted field.
224 * ldlang.h (struct lang_input_statement_struct): Likewise.
225 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
226 (ldfile_open_file_search): Look for sysrooted filename starting
227 with / in ld_sysroot instead of in the current directory. Clear
228 sysrooted flag if it's found in the current directory. Set it
229 from the search directory's sysrooted flag where it is found
231 * ldlang.c (ldlang_sysrooted_script): New static variable.
232 (new_afile): Mark search_file_enums as sysrooted if
233 ldlang_sysrooted_script.
234 (load_symbols): Set ldlang_sysrooted_script according to the
235 script's sysrooted field while processing it.
236 * ld.texinfo: Document INPUT behavior in sysroot.
238 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
240 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
242 2003-03-03 Alan Modra <amodra@bigpond.net.au>
244 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
245 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
246 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
247 PARSE_AND_LIST_EPILOGUE): Don't define.
248 * emultempl/alphaelf.em: New file.
250 2003-03-01 Alan Modra <amodra@bigpond.net.au>
252 * ldemul.c: Include getopt.h.
253 * emultempl/elf32.em: Include getopt.h earlier.
254 * emultempl/ticoff.em: Likewise.
256 2003-02-28 Alan Modra <amodra@bigpond.net.au>
258 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
259 support when scripts read from files.
261 2003-02-28 Alan Modra <amodra@bigpond.net.au>
263 * ldemul.c (ldemul_parse_args): Return FALSE by default.
264 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
267 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
268 (ldemul_parse_args): Return bfd_boolean. Formatting.
269 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
270 (ldemul_parse_args): Adjust.
271 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
272 Return bfd_boolean from parse_args.
273 * lexsup.c (parse_args): Malloc shortopts, longopts and
274 really_longopts. Call ldemul_add_options and ldemul_handle_option.
275 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
276 gld${EMULATION_NAME}_parse_args.
277 (gld${EMULATION_NAME}_handle_option): Likewise.
278 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
279 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
280 * emultempl/beos.em: Likewise.
281 * emultempl/pe.em: Likewise.
282 * emultempl/ticoff.em: Likewise.
283 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
284 (gld${EMULATION_NAME}_add_sysroot): Prototype.
285 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
287 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
288 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
289 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
290 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
292 * emultempl/generic.em: Likewise.
293 * emultempl/gld960.em: Likewise.
294 * emultempl/gld960c.em: Likewise.
295 * emultempl/linux.em: Likewise.
296 * emultempl/lnk960.em: Likewise.
297 * emultempl/m68kcoff.em: Likewise.
298 * emultempl/mipsecoff.em: Likewise.
299 * emultempl/sunos.em: Likewise.
300 * emultempl/vanilla.em: Likewise.
301 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
303 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
305 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
306 memory allocation error.
308 * Makefile.am (ldmain.o): Define TOOLBINDIR.
309 * Makefile.in: Rebuilt.
310 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
312 2003-02-21 Bob Wilson <bob.wilson@acm.org>
314 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
315 call os_region_check when it is set.
316 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
317 lang_size_sections_1.
318 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
319 only for the last call, not on every relaxation iteration.
320 * ldlang.h (lang_size_sections): Update prototype.
321 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
322 to lang_size_sections.
323 (pe_exe_fill_sections): Likewise.
324 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
325 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
326 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
327 (ppc_layout_sections_again): Likewise.
329 2003-02-21 Bob Wilson <bob.wilson@acm.org>
331 * gen-doc.texi: Set ARM and HPPA variables.
332 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
333 title capitalization more consistent. Add missing menu entries for
334 machine-specific sections and conditionalize them consistently.
335 Conditionalize text that is irrelevant when SingleFormat is set.
336 Add @group divisions to improve page breaks in long examples.
337 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
338 is correct. Remove "FIXME" comment about not using
339 @raisesections/@lowersections. Use @raisesections/@lowersections
340 consistently for machine-specific sections. Change to be more polite
341 about poor bug reports. Replace FDL appendix with include of fdl.texi.
342 Move WIN32 node to match its order in the menus.
343 * fdl.texi: New file.
345 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
347 * configure.in (TARGET_SYSTEM_ROOT): Set default to
348 ${exec_prefix}/${target_alias}/sys-root. Match explicit
349 '${exec_prefix}' (in addition to the expansion thereof) as
351 * configure: Rebuilt.
353 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
355 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
357 2003-02-20 Harri Porten <porten@kde.org>
359 * ldgram.y (vers_defns): Allow optional trailing semicolon in
362 2003-02-18 Alan Modra <amodra@bigpond.net.au>
364 * emultempl/ppc32elf.em: New file.
365 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
366 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
367 (eelf32lppcnto.c): Likewise.
368 (eelf32lppcsim.c): Likewise.
369 (eelf32ppcnto.c): Likewise.
370 (eelf32ppc.c): Likewise.
371 (eelf32ppc_fbsd.c): Likewise.
372 (eelf32ppcsim.c): Likewise.
373 (eelf32ppclinux.c): Likewise.
374 * Makefile.in: Regenerate.
376 2003-02-18 Alan Modra <amodra@bigpond.net.au>
378 * ld.texinfo: Remove spaces between @samp and opening brace.
380 2003-02-18 Alan Modra <amodra@bigpond.net.au>
382 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
384 (ppc_before_allocation): Don't do optimizations if wrong hash table.
385 (gld${EMULATION_NAME}_finish): Ditto.
387 2003-02-17 Nick Clifton <nickc@redhat.com>
389 * ldmain.c (main) Default allow_shlib_undefined to true.
390 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
391 (parse_args): Parse the new switch.
392 * ld.texinfo: Document new switch and default behaviour of
393 allowing undefined symbols in shared libraries.
395 2003-02-11 Dmitry Diky <diwil@mail.ru>
397 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
398 * scripttempl/elf32msp430_3.sc: Likewise.
400 2003-02-11 Uwe Stieber <uwe@wwws.de>
402 * configure.tgt: Add support for kaOS as cross build target
405 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
407 * hppaelf.em (group_size): Change default back to 1.
409 2003-02-09 Alan Modra <amodra@bigpond.net.au>
411 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
413 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
415 * hppaelf.em (group_size): Change default to -1.
417 2003-02-07 Nick Clifton <nickc@redhat.com>
419 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
421 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
422 no-pipeline-knowledge. This will prevent the getopt package from
423 thinking that there are any shorter abbreviations for
424 --no-pipeline-knowledge.
426 2003-02-07 Jakub Jelinek <jakub@redhat.com>
428 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
429 which already have it. Avoid duplicates.
431 2003-02-06 Jakub Jelinek <jakub@redhat.com>
433 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
434 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
435 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
437 2003-02-05 Alan Modra <amodra@bigpond.net.au>
439 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
440 call ppc64_elf_tls_optimize.
442 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
444 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
445 outside of GNU/Linux conditional.
447 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
449 * deffilep.y (def_get_module): New function: locate an already
451 * deffile.h (def_get_module): New prototype.
452 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
453 a dll multiple times.
455 2003-01-23 Alan Modra <amodra@bigpond.net.au>
457 * emultempl/sh64elf.em: Include elf32-sh64.h.
458 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
459 sh64_elf_section_data.
460 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
462 2003-01-23 Wu Yongwei <adah@netstd.com>
464 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
465 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
466 cross-80th-column-margin "an" to the next line.
468 2003-01-21 Nick Clifton <nickc@redhat.com>
470 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
471 * emulparams/tic3xcoff_onchip.sh: ...this.
472 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
473 * Makefile.in: Regenerate.
475 2003-01-21 Fabio Alemagna <falemagn@aros.org>
477 * configure.tgt: Handle i[3456]86-*-aros*
479 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
481 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
482 * Makefile.in: Regenerate
483 * configure.tgt: Added extra target emulations
484 * emulparams/tic3xcoff.sh: Remove old settings
485 * emulparams/tic4xcoff.sh: Ditto
486 * emulparams/tic3xcoff-onchip.sh: Added new
487 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
488 * scripttempl/tic3xcoff.sc: Remove
490 2003-01-17 Andreas Jaeger <aj@suse.de>
492 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
495 2003-01-16 Alan Modra <amodra@bigpond.net.au>
497 * Makefile.in: Regenerate.
499 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
501 * ld/ld.texinfo (node WIN32): Some clarifications
502 and formatting fixups.
504 2003-01-09 Chris Demetriou <cgd@broadcom.com>
506 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
507 order, and handle (ignore) -mips32r2.
509 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
511 * ldmain.c (main): Make sure ld_sysroot is initialized.
513 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
515 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
517 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
518 (GENSCRIPTS): Add @use_sysroot@.
519 * Makefile.in: Regenerated.
520 * configure.host: Move setting of NATIVE_LIB_DIRS to...
521 * configure.tgt: ... here. Use ${target} instead of ${host}
523 * configure.in: Add --with-sysroot.
524 * configure: Regenerated.
525 * genscripts.sh: Accept use_sysroot option. Set new variables
526 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
527 $use_sysroot. Don't search $tool_lib if $use_sysroot.
528 * ldfile.c (ldfile_add_library_path): Handle leading '='.
529 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
530 (ld_sysroot): New variable.
531 (main): Initialize ld_sysroot.
532 * ldmain.h (ld_sysroot): New extern.
533 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
534 searching $EMULATION_LIBPATH.
535 (gld${EMULATION_NAME}_add_sysroot): New function.
536 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
537 (gld${EMULATION_NAME}_after_open): Likewise. Only search
538 environment variables if $NATIVE.
539 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
540 * NEWS: Mention --with-sysroot.
542 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
543 instead of setting LIB_PATH.
544 * emulparams/elf32ppc.sh: Likewise.
545 * emulparams/elf64_s390.sh: Likewise.
546 * emulparams/elf64_sparc.sh: Likewise.
547 * emulparams/elf64ppc.sh: Likewise.
548 * emulparams/elf_x86_64.sh: Likewise.
550 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
551 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
553 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
555 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
557 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
559 * Makefile.am (ldmain.o): Pass BINDIR.
560 * Makefile.in: Regenerated.
561 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
564 2003-01-02 Ben Elliston <bje@redhat.com>
566 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
567 (eelf32iq2000.c): New target.
568 * Makefile.in: Regenerate.
569 * configure.tgt: Handle iq2000-*-elf.
570 * emulparams/elf32iq10.sh: New file.
571 * emulparams/elf32iq2000.sh: New file.
572 * scripttempl/iq2000.sc: New file.
574 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
576 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
577 and _pei386_runtime_relocator to the exclude list.
579 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
581 * ldfile.c: Fix comment typos.
582 * ldlang.c: Likewise.
584 * pe-dll.c: Likewise.
586 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
588 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
589 * Makefile.am (ld.1): Depend on configdoc.texi
591 * Makefile.in: Regenerated.
593 2002-12-24 Dmitry Diky <diwil@mail.ru>
595 * Makefile.am: Add msp430 target.
596 * configure.tgt: Likewise.
597 * Makefile.in: Regenerate.
598 * emulparams/msp430x???.sh: New files. Linker script parameters
599 for various msp430 configurations.
600 * gen-doc.texi: Enable msp430 documenation.
601 * ld.texinfo: Document msp430 sections.
602 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
603 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
605 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
606 Charles Wilson <cwilson@ece.gatech.edu>
608 * ld/config.in (HAVE_REALPATH): New entry.
609 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
611 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
613 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
616 2002-12-23 Alan Modra <amodra@bigpond.net.au>
618 * ldmain.c (main): Init "strip_discarded".
619 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
620 (OPTION_NO_STRIP_DISCARDED): Define.
621 (ld_options): Add "strip-discarded" and "no-strip-discarded".
622 (parse_args): Handle them.
624 2002-12-23 Nick Clifton <nickc@redhat.com>
626 * ld.h (struct args_type): Add new field
627 'accept_unknown_input_architecture'.
628 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
630 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
631 bfd_arch_get_compatible.
632 * ldfile.c (ldfile_try_open_bfd): Likewise.
633 * lexsup.c (ld_options): Add new command line switch
634 --accept-unknown-input-architecture and its inverse.
635 (parse_args): Handle --accept-unknown-input-architecture.
636 * ld.texinfo: Document new linker option.
637 * NEWS: Mention new linker option.
639 2002-12-20 Alan Modra <amodra@bigpond.net.au>
641 * ldmain.c (main): Re-order link_info initialization. Init all
644 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
646 * ld.texinfo: Clarify and extend the documentation
647 in the Machine Dependent, WIN32 section.
649 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
651 * ld.texinfo: Add win32 machine depending section.
652 * gen-doc.texi: Enable win32 machine depending section.
654 * configure.host: Add win32 library search path.
656 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
658 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
659 import when auto-import is disabled.
661 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
663 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
664 account for trailing '\0'.
666 2002-12-17 Nick Clifton <nickc@redhat.com>
668 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
669 so that it is not confused with -c.
671 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
672 Charles Wilson <cwilson@ece.gatech.edu>
674 * configure.in: Add check for realpath function.
675 * configure: Regenerate.
676 * config.in: Regenerate.
677 * aclocal.m4: Regenerate.
678 * deffile.h: Add .data field to def_file_import
680 * pe-dll.c (pe_proces_import_defs): Use .data field of
681 def_file_import structure to initialize flag_data field of
682 def_file_export structure.
683 (pe_implied_import_dll): New variables exp_funcbase and
684 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
685 not filename (which may be a symlink). Scan the sections and
686 initialize [data|bss]_[start|end]. When scanning the export
687 table, skip _nm_ symbols, and mark any symbols whose rva indicates
688 that it is in the .bss or .data sections as data.
689 * sysdep.h: Include limits.h and sys/param.h, and define
690 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
691 exists, NULL otherwise.
692 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
693 pe_process_import_defs before pe_find_data_imports, so that
694 auto-import will check the virtual implib as well as "real"
696 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
697 symlinks to their target; check that the target's extension is
698 .dll before calling pe_implied_import_dll(), not the filename
699 itself (which may be a symlink).
701 2002-12-10 Alan Modra <amodra@bigpond.net.au>
703 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
704 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
707 2002-12-08 Alan Modra <amodra@bigpond.net.au>
709 * ldlang.h: Formatting.
711 2002-12-07 Alan Modra <amodra@bigpond.net.au>
713 * ldlang.c (init_os): Ensure sections mentioned in load_base
716 2002-12-05 Alan Modra <amodra@bigpond.net.au>
718 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
719 load_base for orphans that follow a section with load_base set.
721 2002-12-01 H.J. Lu <hjl@gnu.org>
723 * ld.texinfo: Remove the extra `;' in sample version script.
725 2002-11-30 Alan Modra <amodra@bigpond.net.au>
727 * configure.host: Correct dynamic-linker for powerpc64 hosts.
729 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
730 * Makefile.in: Regenerate.
732 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
733 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
734 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
735 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
736 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
737 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
738 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
739 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
740 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
741 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
742 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
743 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
744 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
746 2002-11-27 David O'Brien <obrien@FreeBSD.org>
748 * configure.host: Fix generic FreeBSD configuration entry.
750 2002-11-27 H.J. Lu <hjl@gnu.org>
752 * ld.texinfo: Add the missing `;' to sample version scripts.
754 2002-11-20 Alan Modra <amodra@bigpond.net.au>
756 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
758 2002-11-14 Egor Duda <deo@logos-m.ru>
760 * ldmain.c (main): Make runtime relocs disabled by default. Remove
761 assignment which has no effect.
762 * pe-dll.h (pe_create_import_fixup): Change prototype.
763 * pe-dll.c (make_runtime_pseudo_reloc): New function.
764 (pe_create_runtime_relocator_reference): Ditto.
765 (pe_create_import_fixup): Handle relocations with non-zero addends.
766 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
767 --disable-runtime-pseudo-reloc.
768 (make_import_fixup): Handle relocations with non-zero addends. Create
769 an external reference to _pei386_runtime_relocator symbol if at least
770 one pseudo reloc was created.
771 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
772 --disable-runtime-pseudo-reloc options.
774 2002-11-12 Earl Chew <earl_chew@agilent.com>
776 * ldlang.c (lang_add_section): Discard debugging sections that have
777 been marked SEC_EXCLUDE.
779 2002-11-12 Nick Clifton <nickc@redhat.com>
781 * configure.in (ALL_LINGUAS): Add da.
782 * configure: Regenerate.
783 * po/da.po: New Danish translation.
785 2002-11-12 Alan Modra <amodra@bigpond.net.au>
787 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
788 (LDEMUL_BEFORE_ALLOCATION): Define.
789 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
791 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
793 2002-11-11 Christopher Faylor <cgf@redhat.com>
795 * configure.tgt (LIB_PATH): Default to searching w32api directory under
798 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
800 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
801 of restricted auto-export libs.
803 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
805 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
806 creative library naming instances like, e.g., libstdc++-2.a.
808 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
810 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
811 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
813 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
815 * deffilep.y (def_lex): Handle '@' as first character of an ID.
816 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
817 (make_one): Don't prefix decorated fastcall symbols with '_'.
818 (pe_process_import_defs): Likewise.
819 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
820 symbols to cdecl names or vise-versa.
822 2002-10-13 Eric Kohl <ekohl@rz-online.de>
824 * pe-dll.c (process_def_file): Handle fastcall symbols when
825 generating undecorated aliases. Don't prefix decorated fastcall
827 (fill_exported_offsets): Don't prefix decorated fastcall symbols
830 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
832 * emultempl/aix.em: Use include <> for generated headers.
833 * emultempl/beos.em: Likewise.
834 * emultempl/elf32.em: Likewise.
835 * emultempl/pe.em: Likewise.
836 * ldctor.c: Likewise.
838 * ldfile.c: Likewise.
839 * ldlang.c: Likewise.
842 * ldmain.c: Likewise.
843 * ldmisc.c: Likewise.
844 * ldwrite.c: Likewise.
845 * lexsup.c: Likewise.
847 * pe-dll.c: Likewise.
849 2002-10-23 Jakub Jelinek <jakub@redhat.com>
851 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
852 sections into .rel{,a}.dyn.
854 2002-10-23 Nick Clifton <nickc@redhat.com>
856 * lexsup.c (OPTION_NO_OMAGIC): Define.
857 (ld_options): Add "no-omagic" option.
858 (parse_args): Parse --no-omagic.
859 * ld.texinfo: Document --no-omagic.
860 * NEWS: Mention new option.
862 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
864 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
865 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
867 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
869 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
870 emulation name. Set LIB_PATH only for native tools, and
871 search the ABI-specific versions of NATIVE_LIB_DIRS before the
872 .../lib variants, not instead of them. Mostly copied from...
873 * emulparams/elf32ppc.sh: ... here. Fixed typo.
874 * emulparams/elf64bmip-defs.sh: Backed out.
875 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
876 * emulparams/elf64btsmip.sh: Likewise.
877 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
878 TEXT_DYNAMIC): Removed.
880 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
882 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
883 (GENERATE_SHLIB_SCRIPT): Set to yes.
884 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
885 * emulparams/elf32bmipn32.sh: here.
886 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
887 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
888 * emulparams/elf64bmip-defs.sh: New file. Extend
889 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
890 * emulparams/elf64bmip.sh: Bring in definitions from
892 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
894 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
895 * emulparams/elf64btsmip.sh: Bring in definitions from
897 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
898 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
900 2002-10-16 Jakub Jelinek <jakub@redhat.com>
902 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
903 (s390-*-linux*): Add elf64_s390 emulation if want64.
904 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
905 genscript.sh changes.
906 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
907 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
909 2002-10-15 Alan Modra <amodra@bigpond.net.au>
911 * ldlang.c (load_symbols): Revert last change.
913 2002-10-14 Alan Modra <amodra@bigpond.net.au>
915 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
917 (lang_reasonable_defaults): Don't compare against false.
918 (size_input_section): Likewise.
919 (lang_size_sections_1): Likewise.
920 (lang_do_assignments): Likewise.
921 (lang_add_output): Likewise.
923 * Makefile.am: Run "make dep-am".
924 * Makefile.in: Regenerate.
925 * ldver.c: #include "bfdver.h".
927 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
929 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
931 * scripttempl/elfm68hc12.sc: Likewise.
933 2002-10-11 Alan Modra <amodra@bigpond.net.au>
935 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
937 * ldgram.y (memory_spec): Provide empty action.
938 (section <NAME>): Likewise.
940 2002-10-10 Jakub Jelinek <jakub@redhat.com>
942 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
943 they have OUTPUT_FORMAT not matching actual output format.
944 * ldlang.c (lang_get_output_target): New function.
945 (open_output): Use it.
946 * ldlang.h (lang_get_output_target): New prototype.
948 2002-10-10 Alan Modra <amodra@bigpond.net.au>
950 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
951 when orphan is .rel, .rela when orphan is .rela.
952 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
953 first. Remove outsecname var.
955 2002-10-09 Richard Shann <richard.shann@superh.com>
956 Stephen Clarke <stephen.clarke@superh.com>
958 * Makefile.am: Add eshelf32_linux.o and
959 eshlelf32_linux.o, new emulations for sh64 Linux.
960 * Makefile.in: Regenerate.
961 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
962 * emulparams/shelf32_linux.sh: New file.
963 * emulparams/shlelf32_linux.sh: New file.
965 2002-10-08 H.J. Lu <hjl@gnu.org>
967 * ldlang.c (lang_file_exist): Removed.
968 (new_afile): Revert the last change.
969 * ldlang.h (lang_file_exist): Removed.
970 * lexsup.c (parse_args): Revert the last change.
972 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
974 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
976 (make_one): Create _nm_<symbol> for data only.
978 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
980 * ldlang.c (lang_file_exist): New function.
981 (new_afile): Abort if the filename to be added matches the linker
983 * ldlang.h: Add prototype for lang_file_exist.
984 * lexsup.c (parse_args): Abort if the output filename matches
985 one of the input filenames.
987 2002-10-02 Alan Modra <amodra@bigpond.net.au>
989 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
991 2002-09-30 Alan Modra <amodra@bigpond.net.au>
993 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
994 * scripttempl/elfm68hc11.sc: Likewise.
995 * scripttempl/elfm68hc12.sc: Likewise.
997 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
998 reloc sections just before .rel.plt/.rela.plt.
999 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1000 Only put loadable reloc sections in hold_rel.
1002 2002-09-29 H.J. Lu <hjl@gnu.org>
1004 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1006 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1008 From "Anita Kulkarni" <AnitaK@kpit.com>
1009 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1012 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1014 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1016 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1017 SEGMENT_SIZE alignment.
1018 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1019 (SEGMENT_SIZE): Define.
1021 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1022 (fold_binary): Correct abs - non-abs case.
1023 (fold_trinary): New. Split out from exp_fold_tree.
1025 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1027 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1028 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1029 for start of .data, instead align up to 256M boundary.
1030 * scripttempl/aix.sc: Likewise.
1032 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1034 * scripttempl/i386go32.sc: Handle bss unique sections.
1036 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1038 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1040 2002-09-17 Stan Cox <scox@redhat.com>
1042 * emulparams/elf32bmipn32-defs.sh: New file.
1043 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1044 * emulparams/elf32btsmipn32.sh: Likewise.
1045 * emulparams/elf64bmip.sh: Likewise.
1046 * emulparams/elf64btsmip.sh: Likewise.
1048 2002-09-16 Bruno Haible <bruno@clisp.org>
1050 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1052 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1053 elf64-alpha-freebsd.
1055 2002-09-11 Nick Clifton <nickc@redhat.com>
1057 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1059 * po/tr.po: Updated Turkish translation.
1061 2002-09-06 Jeffrey A Law (law@redhat.com)
1063 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1065 2002-09-02 Nick Clifton <nickc@redhat.com>
1067 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1069 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1071 2002-08-30 Nick Clifton <nickc@redhat.com>
1073 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1074 used. Change INSN to start at 0x01000000 and extend for
1075 256K (ignoring holes). Start the STACK on a word aligned
1077 (.rodata): Start it at the READONLY_START_ADDR.
1079 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1081 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1083 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1085 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1086 added makefile targets for this file.
1087 * Makefile.in: Regenerate.
1088 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1089 * NEWS: Mention new port.
1091 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1093 * emulparams/tic3xcoff.sh: New file.
1094 * emulparams/tic4xcoff.sh: New file.
1095 * scripttempl/tic3xcoff.sc: New file.
1096 * scripttempl/tic4xcoff.sc: New file.
1098 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1100 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1101 strtoul and strtoull with bfd_scan_vma.
1102 (gld${EMULATION_NAME}_read_file): Likewise.
1104 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1106 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1108 2002-08-27 Egor Duda <deo@logos-m.ru>
1110 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1111 Add symbols for application to access them.
1113 2002-08-27 Nick Clifton <nickc@redhat.com>
1115 * emultempl/armelf.em: Revert this patch, it is not needed.
1117 2002-08-22 Adam Nemet <anemet@lnxw.com>
1119 2002-08-20 Dan Kegel <dank@kegel.com>
1121 * configure.in: added --with-lib-path argument to ld's configure
1123 * ld/NEWS: Document new switch.
1124 * ld/README: Mention new switch.
1125 * configure: Regenerate.
1126 * Makefile.in: Regenerate.
1128 Based on this patch:
1129 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1131 * Makefile.in (LIB_PATH): Make configurable.
1132 (GENSCRIPTS): Set LIB_PATH in environment.
1133 * configure.in: Substitute LIB_PATH.
1135 2002-08-22 Adam Nemet <anemet@lnxw.com>
1137 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1138 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1139 depending on the type of the function.
1140 (arm_elf_convert_thumb_symbol_to_address): New function.
1142 2002-08-22 Graeme Peterson <gp@qnx.com>
1144 * Makefile.am: Add esh{l}elf_nto.o files.
1145 * Makefile.in: Regenerate.
1146 * configure.tgt: Add support for sh-**-nto* targets.
1147 * emulparams/shelf_nto.sh: New file.
1148 * emulparams/shlelf_nto.sh: New file.
1150 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1152 * ldlang.c (offsetof): Define if not defined.
1154 2002-08-14 H.J. Lu <hjl@gnu.org>
1156 * configure.tgt: Always enable 64bit emulations for 32bit
1159 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1161 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1162 (MAXPAGESIZE): Set to 1.
1164 * ld.h (ALIGN_N): Delete.
1165 * ldexp.h (align_n): Declare.
1166 * ldexp.c (align_n): New function.
1167 (fold_binary): Use align_n instead of ALIGN_N.
1168 (exp_fold_tree): Likewise.
1169 * ldlang.c (lang_size_sections_1): Likewise.
1170 (lang_one_common): Likewise.
1171 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1173 2002-07-31 Graeme Peterson <gp@qnx.com>
1175 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1176 * Makefile.am: Add eelf32{l}ppcnto.o files.
1177 * Makefile.in: Regenerate.
1178 * emulparams/elf32lppcnto.sh: New file.
1179 * emulparams/elf32ppcnto.sh: New file.
1181 2002-08-07 H.J. Lu <hjl@gnu.org>
1183 * ld.texinfo: Document --no-undefined-version.
1185 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1186 `script.' fields to 0.
1188 * ldmain.c (main): Initialize the allow_undefined_version to
1191 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1192 (ld_options): Add --no-undefined-version.
1193 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1195 2002-08-07 Nick Clifton <nickc@redhat.com>
1197 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1198 an interworking bfd if there are input bfds. (107501)
1200 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1202 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1205 2002-08-01 Nick Clifton <nickc@redhat.com>
1207 * emulparams/armelf.sh: Revert previous delta.
1208 * scripttempl/elf.sc: Revert previous delta.
1210 2002-07-31 H.J. Lu <hjl@gnu.org>
1212 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1213 --enable-64-bit-bfd.
1215 2002-07-31 H.J. Lu <hjl@gnu.org>
1217 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1218 64bit BFD is selected.
1220 2002-07-31 H.J. Lu <hjl@gnu.org>
1222 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1223 if 64bit BFD is selected.
1225 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1227 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1228 link_info.common_skip_ar_aymbols.
1229 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1231 * ldmain.c (main): Initialize new field
1232 link_info.common_skip_ar_aymbols.
1234 2002-07-31 Adam Nemet <anemet@lnxw.com>
1236 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1238 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1241 2002-07-31 Nick Clifton <nickc@redhat.com>
1243 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1244 of the PDP-11 and 2.11BSD a.out support.
1246 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1248 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1249 for n32 ABI support.
1250 * Makefile.in: Regenerate.
1251 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1252 n32 ABI emulations for these 64 bit targets.
1253 * emulparams/elf32bmipn32.sh: Expand comment.
1254 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1256 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1258 2002-07-30 Graeme Peterson <gp@qnx.com>
1260 * configure.tgt: Add support for arm-*-nto target.
1261 * Makefile.am: Add earmnto.o file.
1262 * Makefile.in: Regenerate.
1263 * NEWS: Mention port of ARM support to QNX.
1264 * emulparams/armnto.sh: New file.
1266 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1268 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1269 for relocatable link.
1270 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1273 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1275 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1278 2002-07-25 Nick Clifton <nickc@redhat.com>
1280 * po/sv.po: Updated Swedish translation.
1281 * po/es.po: Updated Spanish translation.
1282 * po/fr.po: Updated French translation.
1284 2002-07-24 Nick Clifton <nickc@redhat.com>
1286 * po/sv.po: Updated Swedish translation.
1287 * po/es.po: Updated Spanish translation.
1289 2002-07-23 Nick Clifton <nickc@redhat.com>
1291 * po/fr.po: Updated French translation.
1293 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1295 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1296 bomb on /DISCARD/ input section.
1297 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1298 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1300 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1302 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1305 2002-07-16 Denis Chertykov <denisc@overta.ru>
1306 Nick Clifton <nickc@redhat.com>
1307 Frank Ch. Eigler <fche@redhat.com>
1308 John Healy <jhealy@redhat.com>
1310 * configure.tgt: Add support for ip2k-elf.
1311 * Makefile.am: Add support for ip2k-elf.
1312 * Makefile.in: Regenerate.
1313 * emulparams/elf32ip2k.sh: New file.
1314 * scripttempl/ip2k.sc: New file
1315 * NEWS: Mention support for new port.
1317 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1319 * NEWS: Add 'Changes in 2.13'.
1321 2002-07-14 H.J. Lu <hjl@gnu.org>
1323 * ld.texinfo: Document a .symver takes precedence over a
1326 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1328 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1329 (COMMONPAGESIZE): Define.
1331 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1333 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1335 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1337 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1338 powerpc-*-openbsd* and sparc64-*-openbsd*.
1339 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1340 * Makefile.in: Regenerate.
1341 * emulparams/hppaobsd.sh: New file.
1343 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1345 * ldlang.c (print_wild_statement): Fix output formatting.
1347 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1349 * ldlang.c: (strip_excluded_output_sections): New function.
1350 (lang_process): Call it.
1351 (lang_size_sections_1): Revert 2002-06-10 change.
1353 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1355 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1357 * Makefile.in: Regenerate.
1359 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1361 * ldfile.c (ldfile_try_open_bfd): Formatting.
1363 * ldmisc.c (demangle): Move so that it doesn't intrude between
1364 vfinfo comment and body. Add comment.
1366 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1368 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1370 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1372 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1373 * ldlang.c (entry_sym): Likewise.
1374 (ldlang_undef_chain_list_type): Likewise.
1375 (lang_finish): Adjust references to entry_symbol.
1376 (lang_add_entry): Likewise.
1377 (lang_gc_sections): Use link_info.gc_sym_list.
1378 (lang_process): Set link_info.gc_sym_list.
1379 * ldlex.l: Include bfdlink.h.
1380 * ldmain.c (main): Init link_info.gc_sym_list.
1381 * emultempl/aix.em: Adjust references to entry_symbol.
1382 * emultempl/armcoff.em: Likewise.
1383 * emultempl/armelf.em: Likewise.
1384 * emultempl/pe.em: Likewise.
1385 * emultempl/ppc64elf.em (ppc_after_open): New function.
1386 (LDEMUL_AFTER_OPEN): Define.
1387 * emulparams/elf64ppc.sh: KEEP .opd sections.
1389 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1391 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1392 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1393 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1394 (EEPROM_START_ADDR): Define.
1395 (EEPROM_MEMORY): Define.
1396 * emulparams/m68hc12elf.sh: Likewise.
1397 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1398 section to put soft registers in .page0.
1399 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1401 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1403 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1404 section. Add ${RELOCATING-0}.
1406 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1408 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1409 (OTHER_SECTIONS): Define.
1410 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1411 (OTHER_SECTIONS): Undef.
1413 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1415 * ldmisc.c (demangle): Restore dots stripped from sym name.
1417 2002-06-25 H.J. Lu <hjl@gnu.org>
1419 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1420 * Makefile.in: Regenerated.
1422 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1424 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1425 the size of attached object files, to allow make the object files
1426 available via FTP or HTTP and to mention that the mail will be
1427 sent to a mailing list.
1429 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1431 * ld/configure.host (romp): Drop support.
1433 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1435 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1436 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1438 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1440 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1441 format specifier used to print BFD name.
1443 2002-06-18 Dave Brolley <brolley@redhat.com>
1445 From Catherine Moore, Michael Meissner, Jim Blandy:
1446 * emulparams/elf32frv.sh: New file.
1447 * configure.tgt: Support frv-*-*.
1448 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1449 (eelf32frv.c): New target.
1451 2002-06-17 Tom Rix <trix@redhat.com>
1453 * emultempl/elf32.em: gld*_get_script: Check for
1454 GENERATE_COMBRELOC_SCRIPT.
1455 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1456 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1458 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1460 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1462 2002-06-12 H.J. Lu <hjl@gnu.org>
1464 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1465 false if xvec doesn't match.
1467 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1469 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1471 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1473 * ldexp.c: Replace CONST with const.
1474 * ldfile.c: Likewise.
1475 * ldfile.h: Likewise.
1476 * ldlex.l: Likewise.
1478 * pe-dll.h: Likewise.
1480 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1482 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1484 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1486 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1487 to -1 == implicit enable.
1488 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1489 initialize link_info.pei386_auto_import to -1 == implicit
1491 (gld_${EMULATION_NAME}_parse_args): When processing
1492 --enable-auto-import and --disable-auto-import options, use
1493 '1' and '0' instead of 'true' and 'false'.
1494 (pe_find_data_imports): Only issue message about auto-import
1495 when the feature is implicitly enabled. Downgrade message to
1496 informational instead of warning.
1498 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1500 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1502 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1504 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1505 HOSTING_CRT0 and HOSTING_LIBS.
1507 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1509 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1511 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1513 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1514 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1516 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1518 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1519 SEC_EXCLUDE sections when doing a relocatable link.
1521 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1523 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1524 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1525 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1526 (eshlelf64_nbsd.c): New rules.
1527 * Makefile.in: Regenerate.
1528 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1529 (sh64-*-netbsd*): New targets.
1530 * emulparams/shelf32_nbsd.sh: New file.
1531 * emulparams/shelf64_nbsd.sh: New file.
1532 * emulparams/shlelf32_nbsd.sh: New file.
1533 * emulparams/shlelf64_nbsd.sh: New file.
1535 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1537 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1539 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1541 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1542 C++ constructors/destructors, loosely based on the m68hc11 port.
1544 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1546 * Makefile.in: Regenerate.
1547 * aclocal.m4: Regenerate.
1548 * config.in: Regenerate.
1549 * configure: Regenerate.
1551 2002-05-31 Graeme Peterson <gp@qnx.com>
1553 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1554 (ei386nto.c): Add rule.
1555 * Makefile.in: Regenerate.
1556 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1557 * emulparams/i386nto.sh: New file.
1559 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1561 * NEWS: Add entry for VAX ELF support.
1563 2002-05-29 Matt Thomas <matt@3am-software.com>
1564 Jason Thorpe <thorpej@wasabisystems.com>
1566 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1568 (evaxnbsd.c): New rules.
1569 * Makefile.in: Regenerate.
1570 * configure.tgt (vax-*-netbsdelf*)
1572 (vax-*-netbsd*): New targets.
1573 * emulparams/elf32vax.sh: New file.
1574 * emulparams/vaxnbsd.sh: New file.
1576 2002-05-29 Adam Nemet <anemet@lnxw.com>
1578 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1579 bfd_for_interwork, instead add glue sections to each input bfd.
1580 (bfd_for_interwork): New global.
1581 (arm_elf_set_bfd_for_interworking): New function.
1582 (arm_elf_before_allocation): Use it.
1584 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1586 * Makefile.am: Add DLX make target.
1587 * configure.tgt: Add DLX configuration.
1588 * Makefile.in: Regenerate.
1589 * emulparams/elf32_dlx.sh: New file
1590 * scripttempl/dlx.sc: New file
1592 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1594 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1595 * Makefile.in: Regenerate.
1596 * emulparams/elf_chaos.sh: Use elf_chaos script.
1597 * scripttempl/elf_chaos.sc: New file.
1599 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1601 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1602 addresses and regions from here...
1603 (lang_get_regions): ...to this new function.
1604 (lang_leave_output_section_statement): Use lang_get_regions.
1605 (lang_leave_overlay): Likewise.
1606 * mri.c (mri_draw_tree): Pass null as last argument to
1607 lang_leave_output_section_statement.
1608 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1609 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1610 * emultempl/pe.em (gld*_place_orphan): Likewise.
1612 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1614 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1616 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1618 * ldemul.c: Fix formatting.
1619 * ldfile.c: Likewise.
1620 * pe-dll.c: Likewise.
1621 * pe-dll.h: Likewise.
1623 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1625 * ldlang.c (lang_process): Formatting, grammar.
1627 * ldlex.l: Use #include "" instead of <> for local header files.
1629 2002-05-24 TAMURA Kent <kent@netbsd.org>
1631 * configure.tgt: Add a target for i386-netbsdpe.
1633 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1635 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1636 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1637 output section if necessary. Handle .tbss.
1638 (lang_size_sections): Clear _raw_size for .tbss section
1639 (it allocates space in PT_TLS segment only).
1640 * ldwrite.c (build_link_order): Build link order for .tbss too.
1642 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1644 * configure.in: Correct spelling of AC_PREREQ.
1646 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1648 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1650 (autofilter_objlist): Add crtbegin.o, crtend.o.
1652 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1654 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1655 (longopts): Add new option --exclude-libs.
1656 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1657 (gld_${EMULATION_NAME}_parse_args): Use it.
1658 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1659 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1660 from whole archives.
1661 (pe_dll_add_excludes): Set excludes->type.
1662 (auto_export): Add new variable libname and set to archive basename if
1663 abfd. Use it when filtering default and user-specified libarary
1664 excludes. Let string "ALL" mean all libs when filtering user-specified
1666 * ld.texinfo: Document --exclude-libs.
1668 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1670 * ldemul.c (ldemul_new_vers_pattern): New function.
1671 * ldemul.h (ldemul_new_vers_pattern): Declare.
1672 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1673 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1674 * emultempl/ppc64elf.em (dotsyms): New static var.
1675 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1676 (LDEMUL_NEW_VERS_PATTERN): Define.
1677 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1678 (PARSE_AND_LIST_LONGOPTS): Likewise.
1679 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1680 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1682 * emultempl/armcoff.em: Likewise.
1683 * emultempl/armelf_oabi.em: Likewise.
1684 * emultempl/beos.em: Likewise.
1685 * emultempl/elf32.em: Likewise.
1686 * emultempl/generic.em: Likewise.
1687 * emultempl/gld960.em: Likewise.
1688 * emultempl/gld960c.em: Likewise.
1689 * emultempl/linux.em: Likewise.
1690 * emultempl/lnk960.em: Likewise.
1691 * emultempl/m68kcoff.em: Likewise.
1692 * emultempl/mipsecoff.em: Likewise.
1693 * emultempl/pe.em: Likewise.
1694 * emultempl/sunos.em: Likewise.
1695 * emultempl/ticoff.em: Likewise.
1696 * emultempl/vanilla.em: Likewise.
1698 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1700 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1701 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1702 (LIB_SEARCH_DIRS): No need to use "tr".
1703 (COMPILE_IN): Only set for native targets.
1704 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1705 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1706 * configure.tgt (powerpc*): Set tdir_*.
1707 (powerpcle*): Correct targ_extra_emuls.
1708 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1709 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1711 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1713 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1714 calling lang_add_entry.
1716 2002-05-21 H.J. Lu (hjl@gnu.org)
1718 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1720 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1722 * ld.texinfo: Updated for --allow-multiple-definition and
1725 * ldmain.c (main): Initialize the allow_multiple_definition
1728 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1729 (ld_options): Add --allow-multiple-definition.
1730 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1732 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1734 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1735 (earmelfb_nbsd.c): New rule.
1736 * Makefile.in: Regenerate.
1737 * configure.tgt (armeb-*-netbsdelf*): New target.
1738 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1739 (arm-*-netbsd*): Likewise.
1740 * emulparams/armelfb_nbsd.sh: New file.
1742 2002-05-18 Tom Rix <trix@redhat.com>
1744 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1747 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1749 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1750 * Makefile.in: Regenerate.
1751 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1753 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1755 * emulparams/avr1.sh: New file.
1756 * emulparams/avr2.sh: New file.
1757 * emulparams/avr3.sh: New file.
1758 * emulparams/avr4.sh: New file.
1759 * emulparams/avr5.sh: New file.
1760 * scripttempl/avr.sc: New file.
1762 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1764 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1765 (lang_place_orphans): Abort if just_syms_flag.
1767 2002-05-10 Tom Rix <trix@redhat.com>
1769 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1770 architecture and machine information in the output bfd.
1771 (gld*_before_parse): Remove old arch and machine code.
1772 (choose_target): Rename to gld*_choose_target.
1773 (rtld): Change type to int.
1774 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1775 objects in XCOFF archives.
1776 * ldfile.h: Update copyright date.
1778 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1780 * ldmain.c (main): Enable -z combreloc by default.
1782 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1784 * Makefile.am: Honour DESTDIR.
1785 * Makefile.in: Regenerate.
1787 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1789 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1790 (lang_enter_overlay): Remove the last two parameters.
1791 (lang_leave_overlay): Take them here instead.
1792 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1793 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1794 than lang_enter_overlay.
1795 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1796 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1797 (lang_size_sections_1): Evaluate it.
1798 (lang_leave_output_section_statement): Rework LMA lookup.
1799 (overlay_lma, overlay_nocrossrefs): Remove.
1800 (lang_enter_overlay): Remove LMA and crossref arguments.
1801 (lang_enter_overlay_section): Don't set the LMA here.
1802 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1803 assignment to the last section's update_dot_tree. Unconditionally
1804 use the load and run-time regions specified in the OVERLAY statement.
1805 Likewise the first section's LMA. Only set the other sections' LMAs
1806 when no load region is given.
1808 2002-05-06 Nick Clifton <nickc@redhat.com>
1810 * po/sv.po: New translation.
1812 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1814 * emultempl/hppaelf.em (build_section_lists): New function.
1815 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1816 and build_section_lists.
1818 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1820 * ld.h: Fix formatting.
1821 * ldexp.c: Likewise.
1822 * ldfile.c: Likewise.
1823 * ldlang.c: Likewise.
1824 * ldmain.c: Likewise.
1825 * lexsup.c: Likewise.
1826 * pe-dll.c: Likewise.
1828 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1830 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1831 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1832 (build_section_lists): Do output_section tests here.
1834 2002-04-30 Tom Rix <trix@redhat.com>
1836 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1838 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1840 Long branch stubs, multiple stub sections.
1841 * emultempl/ppc64elf.em: Include ldctor.h.
1842 (stub_file): New var.
1843 (group_size): New var.
1844 (ppc_create_output_section_statements): New function.
1845 (struct hook_stub_info): New.
1846 (hook_in_stub): New function.
1847 (ppc_add_stub_section): New function.
1848 (ppc_layout_sections_again): New function.
1849 (build_section_lists): New function.
1850 (gld${EMULATION_NAME}_finish): Rewrite.
1851 (real_func): New var.
1852 (ppc_for_each_input_file_wrapper): New function.
1853 (ppc_lang_for_each_input_file): New function.
1854 (lang_for_each_input_file): Define.
1855 (PARSE_AND_LIST_PROLOGUE): Define.
1856 (PARSE_AND_LIST_LONGOPTS): Define.
1857 (PARSE_AND_LIST_OPTIONS): Define.
1858 (PARSE_AND_LIST_ARGS_CASES): Define.
1859 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1861 2002-04-30 Tom Rix <trix@redhat.com>
1863 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1864 -blibpath, -bnolibpath support.
1866 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1868 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1869 (eelf32ppcwindiss.c): New target.
1870 * Makefile.in: Regenerated.
1871 * configure.tgt: Add support for powerpc-*-windiss.
1872 * emulparams/elf32ppcwindiss.sh: New file.
1874 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1876 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1877 * ldexp.c (exp_print_token): Add "infix_p" argument.
1878 (exp_print_tree): Update accordingly.
1880 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1882 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1883 * Makefile.in: Regenerate.
1884 * mpw-elfmips.c: Delete.
1885 * mpw-eppcmac.c: Delete.
1886 * mpw-esh.c: Delete.
1887 * mpw-idtmips.c: Delete.
1889 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1891 * emulparams/shelf32.sh (MACHINE): Now sh5.
1893 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1895 * ldgram.y: Fix syntax warning.
1897 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1899 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1900 to prevent "-n" from being taken as an abbreviation for
1901 "--no-pipeline-knowledge".
1903 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1905 * ldlang.c (lang_size_sections_1): Don't complain about
1906 SEC_NEVER_LOAD sections having no memory region specified.
1908 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1910 2002-04-07 matthew green <mrg@redhat.com>
1912 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1914 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1916 * dep-in.sed: Cope with absolute paths.
1917 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1919 * Makefile.in: Regenerate.
1921 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1923 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1925 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1927 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1928 is smaller than maximum, round dot up to common page boundary.
1930 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1932 * configure.host: Set up for generic hosts first, then tweak as
1933 necessary in more specific targets.
1934 (HOSTING_LIBS): Include libgcc_eh.a if found.
1936 2002-03-23 Andreas Jaeger <aj@suse.de>
1938 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1940 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1942 * Makefile.am: Run "make dep-am".
1943 * Makefile.in: Regenerate.
1945 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1947 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1949 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1951 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1952 add the symbol to the linker hash table immediately.
1953 (lang_place_undefineds): Split symbol creation out..
1954 (insert_undefined): ..to here.
1956 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1958 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1959 the contents of the buffer returned from basename function will are
1960 getting overwritten while still being used.
1962 2002-03-18 Jan Hubicka <jh@suse.cz>
1963 Andreas Jaeger <aj@suse.de>
1964 Andreas Schwab <schwab@suse.de>
1966 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1967 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1968 set libraries to default to lib64 paths.
1970 2002-03-18 Tom Rix <trix@redhat.com>
1972 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1973 * configure.tgt : Same.
1974 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1975 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1976 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1977 emulation parameters for better -b32, -b64 support.
1978 * emulparms/aixrs6.sh : Same.
1979 * emulparms/ppcmacos.sh : Same.
1980 * emultempl/aix.em (choose_target) : Use new emulation parameters
1981 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1982 * Makefile.in : Regenerate.
1984 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1986 * po/fr.po: Updated version.
1988 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1990 * ldmain.c (main): Move .text readonly flag fudges from here..
1991 * ldlang.c (lang_process): ..to here.
1993 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1995 * ldlang.c (lang_check): Remove the word size check added in last
1996 change. Treat emitrelocations case as for relocatable links.
1998 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2000 * po/fr.po: Updated version.
2002 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2004 * ldlang.c (lang_check): Do relocatable link checks first, so that
2005 warn_mismatch can't override. Check compatible and word size too.
2007 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2009 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2011 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2013 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2016 2002-03-04 H.J. Lu <hjl@gnu.org>
2018 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2019 .fini_array in the data segment.
2021 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2023 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2025 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2027 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2028 .init_array, and .fini_array.
2030 2002-02-20 Andreas Schwab <schwab@suse.de>
2032 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2033 .IA64_unwind* in a relocatable link.
2035 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2037 * NEWS: Mark 2.12 branch.
2039 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2041 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2042 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2044 2002-02-18 Tom Rix <trix@redhat.com>
2046 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2047 (gld*_before_allocation): Same.
2048 (gld*_create_output_section_statements): Generate
2049 __rtinit if run time linking. Add librtl.a to the link.
2050 (gld*_read_file): Clean.
2052 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2054 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2056 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2058 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2059 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2060 and eelf64alpha_fbsd.
2061 * Makefile.in: Regenerate.
2062 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2063 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2064 use a FreeBSD-specific emulation rather than the psABI one.
2065 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2066 for all FreeBSD ELF systems.
2067 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2069 * emulparams/elf32ppc_fbsd.sh: Likewise.
2070 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2071 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2072 * emulparams/elf64alpha_fbsd.sh: Likewise.
2073 * emulparams/elf_i386_fbsd.sh: Likewise.
2074 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2076 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2078 * po/tr.po: Updated version.
2080 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2082 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2085 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2087 * emultempl/mmo.em (mmo_after_open): Don't call
2088 _bfd_mmix_check_all_relocs when producing ELF output.
2090 2002-02-15 Richard Henderson <rth@redhat.com>
2092 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2093 definition. Emit a unop+nop pair.
2095 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2097 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2098 for presence of .MMIX.reg_contents.linker_allocated before early
2101 * NEWS: Mention support for MMIX.
2103 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2105 Support arbitrary length fill patterns.
2106 * ld.texinfo (Output Section Fill): Describe fill expressions.
2107 (FILL): Refer to the above.
2108 * ldexp.h (etree_value_type): Add "str" field.
2109 (union etree_union): Add "str" to "value" struct.
2110 (exp_bigintop): Declare.
2111 (exp_get_fill): Declare.
2112 * ldexp.c: Include "safe-ctype.h".
2113 (exp_intop): Set value.str to NULL.
2114 (exp_bigintop): New function.
2115 (new_rel): Pass in "str", and set new.str from it.
2116 (new_rel_from_section): Set new.str to NULL.
2117 (fold_name): Adjust calls to new_rel.
2118 (exp_fold_tree): Likewise.
2119 (exp_get_fill): New function.
2120 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2121 (INT): Returns a "bigint". Adjust all code handling INTs.
2122 (fill_opt): Returns a "fill".
2123 (fill_exp): Split out of fill_opt, use for FILL.
2124 * ldlang.h (struct _fill_type): New.
2125 (fill_type): Move typedef to ldexp.h.
2126 (lang_output_section_statement_type): "fill" is now a pointer.
2127 (lang_fill_statement_type): Likewise.
2128 (lang_padding_statement_type): Likewise.
2129 (lang_add_fill): Now takes a "fill_type *" param.
2130 (lang_leave_output_section_statement): Likewise.
2131 (lang_do_assignments): Likewise.
2132 (lang_size_sections): Likewise.
2133 (lang_leave_overlay_section): Likewise.
2134 (lang_leave_overlay): Likewise.
2135 * ldlang.c: Include ldgram.h after ldexp.h.
2136 (lang_output_section_statement_lookup): Adjust for fill_type change.
2137 (print_fill_statement): Likewise.
2138 (print_padding_statement): Likewise.
2139 (insert_pad): Now takes a "fill_type *" arg.
2140 (size_input_section): Likewise.
2141 (lang_size_sections_1): Likewise.
2142 (lang_size_sections): Likewise.
2143 (lang_do_assignments): Likewise.
2144 (lang_add_fill): Likewise.
2145 (lang_leave_output_section_statement): Likewise.
2146 (lang_leave_overlay_section): Likewise.
2147 (lang_leave_overlay): Likewise.
2148 Adjust all callers of the above function.
2149 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2150 starting with "0X" as well as "0x". Return bigint.str for hex
2151 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2152 Always use base 16 for numbers starting with "$".
2153 * ldmain.c: Include ldgram.h after ldexp.h.
2154 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2155 of bfd_fill_link_order.
2156 * pe-dll.c: Adjust lang_do_assignments calls.
2157 * emultempl/elf32.em: Likewise.
2158 * emultempl/hppaelf.em: Likewise.
2159 * emultempl/ppc64elf.em: Likewise.
2160 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2161 lang_add_assignment call.
2162 * emultempl/pe.em: Likewise.
2164 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2166 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2167 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2168 the pattern in question is not a regexp.
2169 * ldlang.c: Likewise.
2170 * ldlang.h: Likewise.
2171 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2173 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2175 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2176 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2177 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2178 * ldexp.c (exp_data_seg): New variable.
2179 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2180 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2181 (exp_fold_tree): Handle DATA_SEGMENT_END.
2182 Pass allocation_done when recursing instead of hardcoding
2183 lang_allocating_phase_enum.
2184 * ldexp.h (exp_data_seg): New.
2185 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2186 (lang_size_sections): New.
2187 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2188 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2189 if COMMONPAGESIZE is defined.
2190 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2191 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2192 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2193 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2194 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2197 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2199 * Makefile.in: Regenerate.
2201 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2203 * lexsup.c: Remove strtoul declaration.
2205 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2207 * ldmain.c: Add prototype for main ().
2208 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2209 * emultempl/lnk960.em (lnk960_choose_target): Function should
2212 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2214 * ldlang.c (entry_section): New initialised variable.
2215 (lang_finish): Use it.
2216 * ldlang.h (entry_section): Declare.
2217 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2218 entry_section to ".opd".
2220 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2222 * ld.texinfo (Options): Add back in -nostdlib documentation,
2223 which had been inadvertently removed.
2225 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2227 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2228 register section vma to a sane value after emitting error. Make
2229 fatal conditions cause program exit when emitting message.
2231 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2233 * configure.tgt: Add or32-*-rtems target.
2235 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2237 Contribute sh64-elf.
2238 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2239 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2240 in OTHER_RELOCATABLE_SECTIONS.
2241 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2242 * emulparams/shelf32.sh (STACK_ADDR): Define.
2243 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2244 (OTHER_SECTIONS): this. Removed stack settings.
2245 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2246 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2247 2001-03-12 DJ Delorie <dj@redhat.com>
2248 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2249 relaxing if any shmedia or mixed sections are found.
2250 2001-03-07 DJ Delorie <dj@redhat.com>
2251 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2252 einfo. Gracefully decline to output to non-elf formats.
2253 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2254 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2255 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2256 * emulparams/shelf32.sh: Ditto.
2257 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2258 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2260 2001-01-10 Ben Elliston <bje@redhat.com>
2261 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2262 non-portable shell constructs. From Hans-Peter Nilsson.
2263 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2264 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2265 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2266 dependencies to the shell script include chain.
2267 * Makefile.in: Regenerate.
2268 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2269 * emultempl/sh64elf.em: Update and tweak comments.
2270 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2271 make a .cranges section SEC_IN_MEMORY.
2272 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2273 * emultempl/sh64elf.em
2274 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2275 .cranges section found to be necessary; continue and set stored
2276 section contents flags for sections with non-mixed contents.
2277 Use a struct sh64_section_data container and sh64_elf_section_data
2278 to store contents-type flags.
2279 Remove unused update of "isec".
2280 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2281 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2282 access contents-type flags. Assert that the associated container
2283 is initialized. Use that container, not elf_gp_size, to hold size
2284 of linker-generated cranges contents.
2285 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2286 * emultempl/sh64elf.em
2287 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2288 there's already a .cranges section. When section flag difference
2289 is found, don't NULL-check cranges a second time. Tweak comments.
2290 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2291 merging, not max size, as size of ld-generated .cranges contents.
2292 Don't set ELF section flags in output section. When checking for
2293 needed .cranges descriptors, don't use a variable; compare
2294 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2296 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2297 * emultempl/sh64elf.em: New file.
2298 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2299 * Makefile.in: Regenerate.
2300 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2301 (OTHER_RELOCATING_SECTIONS): Ditto.
2302 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2303 * emulparams/shlelf32.sh: Stub out all settings except
2304 OUTPUT_FORMAT. Source shelf32.sh.
2305 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2306 OTHER_RELOCATING_SECTIONS.
2307 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2308 * emulparams/shlelf64.sh: Stub out all settings except
2309 OUTPUT_FORMAT. Source shelf64.sh.
2310 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2311 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2313 (DATA_START_SYMBOLS): Define, provide ___data.
2314 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2315 for consecutive .data section.
2316 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2317 section after .data section.
2318 * emulparams/shlelf64.sh: Ditto.
2319 * emulparams/shelf32.sh: Ditto.
2320 (ALIGNMENT): Define to 8.
2321 * emulparams/shelf32.sh: Ditto.
2322 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2323 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2324 built-in linker scripts.
2325 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2326 * emulparams/shlelf64.sh: New.
2327 * emulparams/shelf64.sh: New.
2328 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2330 * Makefile.am: Add support for shlelf64 and shelf64.
2331 * Makefile.in: Regenerate.
2332 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2333 * configure.tgt (sh64-*-elf*): Add shelf as default.
2334 Add shlelf to targ_extra_emuls.
2335 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2336 * emulparams/shelf32.sh: New file.
2337 * emulparams/shlelf32.sh: New file.
2338 * Makefile.am: Add support for shlelf32 and shelf32.
2339 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2340 * Makefile.in: Regenerate.
2342 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2344 * ldlang.c (lang_reset_memory_regions): Rename from
2345 reset_memory_regions. Change all callers. Make public.
2346 * ldlang.h (lang_reset_memory_regions): Prototype.
2347 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2348 lang_reset_memory_regions before lang_size_sections.
2349 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2350 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2352 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2354 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2355 arithmetic when checking for too many global registers.
2357 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2359 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2360 (ehppanbsd.c): New rule.
2361 * Makefile.in: Regenerate.
2362 * configure.tgt (hppa*-*-netbsd*): New target.
2363 * emulparams/hppalinux.sh: Add comment to check other files
2364 that source this file it is modified, and list which
2366 * emulparams/hppanbsd.sh: New file.
2368 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2370 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2373 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2375 Support on-demand global register allocation from
2376 R_MMIX_BASE_PLUS_OFFSET relocs.
2377 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2378 mmix_set_reg_section_vma. Call
2379 _bfd_mmix_finalize_linker_allocated_gregs.
2380 (mmix_before_allocation): New function.
2381 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2382 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2383 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2384 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2385 before .MMIX.reg_contents.
2386 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2387 (mmo_after_open): New function.
2388 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2389 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2390 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2392 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2394 * emulparams/or32.sh: New file.
2395 * emulparams/or32elf.sh: New file.
2396 * scripttempl/or32.sc: New file.
2397 * configure.tgt : Add support for or32.
2398 * configure: Regenerate
2399 * Makefile.am: Add support for or32.
2400 * Makefile.in: Regenerate.
2401 * NEWS: Mention support for or32.
2402 * po/ld.pot: Regenerate.
2404 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2405 Mitch Lichtenberg <mpl@broadcom.com>
2407 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2408 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2409 reloc creation (ld --embedded-relocs).
2411 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2413 * configure: Regenerated.
2415 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2417 * Makefile.am (install): Depend on install-info.
2418 * Makefile.in: Regenerate.
2420 2002-01-26 Christian Rose <menthos@menthos.com>
2422 * ldmain.c (main): Use full sentences to ease translation.
2424 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2426 * po/fr.po: Updated version.
2428 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2430 * po/es.po: Updated version.
2432 2002-01-25 Andreas Jaeger <aj@suse.de>
2434 * ldlex.l (yy_input): Correct error check.
2436 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2438 * ldmisc.c (demangle): Put back dots when string not demangled.
2440 2002-01-22 Richard Henderson <rth@redhat.com>
2442 * emulparams/elf64alpha.sh (NOP): Use unop.
2444 2002-01-21 Andreas Jaeger <aj@suse.de>
2446 * ldlex.l: Use fread instead of read.
2448 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2450 * configure.tgt (ia64-*-netbsd*): New target.
2452 2002-01-21 H.J. Lu <hjl@gnu.org>
2454 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2456 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2458 2002-01-18 Andreas Jaeger <aj@suse.de>
2460 * ldver.c (ldversion): Update year.
2462 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2464 * po/ld.pot: Regenerate.
2466 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2468 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2469 * Makefile.in: Regenerate.
2470 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2471 * emultempl/ppc64elf.em: New file.
2473 2002-01-15 DJ Delorie <dj@redhat.com>
2475 * scripttempl/pe.sc: Add support for constructor priorities.
2477 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2479 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2480 * emulparams/avr23xx.sh: Likewise.
2481 * emulparams/avr4433.sh: Likewise.
2482 * emulparams/avr44x4.sh: Likewise.
2483 * emulparams/avr85xx.sh: Likewise.
2484 * emulparams/avrmega103.sh: Likewise.
2485 * emulparams/avrmega161.sh: Likewise.
2486 * emulparams/avrmega603.sh: Likewise.
2487 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2489 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2491 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2492 archive is excluded.
2494 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2496 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2497 (eshelf_nbsd.c): New rule.
2498 (eshlelf_nbsd.c): New rule.
2499 * Makefile.in: Regenerate.
2500 * configure.tgt (sh*le-*-netbsdelf*): New target.
2501 (sh*-*-netbsdelf*): New target.
2502 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2503 * ld/emulparams/shelf_nbsd.sh: New emulation.
2504 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2506 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2508 * po/es.po: New file: Spanish translation.
2509 * configure.in (ALL_LINGUAS): Add es.
2510 * configure: Regenerate.
2512 2002-01-06 John Marshall <jmarshall@acm.org>
2514 * ld.texinfo: Note that --emit-relocs is currently only
2515 implemented for ELF.
2517 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2519 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2520 of bfd_section_list_remove and bfd_section_list_insert macros.
2521 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2522 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2524 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2526 * configure.tgt (x86_64-*-netbsd*): New target.
2528 2001-12-21 Tom Rix <trix@redhat.com>
2530 (gld*_create_output_section_statements): New function.
2531 For -binitfini support.
2532 * emultempl/aix.em (gld*_before_parse): Fix comment.
2533 * emultempl/aix.em (gld*_parse_args): Fix comment.
2535 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2537 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2539 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2541 * configure.tgt (arm-*-netbsdelf*): Add target.
2542 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2543 * emulparams/armelf_nbsd.sh: Added.
2544 * Makefile.am: Add rules for earmelf_nbsd.
2545 * Makefile.in: Regenerate.
2547 2001-12-19 Andreas Jaeger <aj@suse.de>,
2548 Susanne Oberhauser <froh@suse.de>
2550 * configure.host: Add rules for x86_64-*linux-gnu. Change
2551 s390x-linux entry to use gcc to report configuration, replace gcc
2552 with $CC in s390-linux
2554 2001-12-19 Andreas Jaeger <aj@suse.de>
2556 * ld.texinfo (VERSION): Fix markup.
2558 2001-12-18 matthew green <mrg@eterna.com.au>
2560 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2561 (m68kelfnbsd.c): New rule.
2562 * Makefile.in: Regenerate.
2563 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2564 (m68*-*-netbsd*4k*): .. this.
2565 (m68*-*-netbsdelf*): New target.
2566 (m68*-*-netbsd*): Also include ELF support.
2567 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2568 * emulparams/m68kelfnbsd.sh: New emulation.
2570 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2572 * ldgram.y (vers_node): Support anonymous version tags.
2573 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2574 tag is not defined together with non-anonymous versions.
2575 * ld.texinfo: Document it.
2577 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2579 * po/tr.po: New file: Turkish translation.
2580 * configure.in (ALL_LINGUAS): Add tr.
2581 * configure: Regenerate.
2583 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2585 * Makefile.am: Add rules for eelf64alpha_nbsd.
2586 * Makefile.in: Regenerate.
2587 * configure.tgt (alpha*-*-netbsd*): Set
2588 targ_emul to elf64alpha_nbsd.
2589 * emulparams/elf64alpha_nbsd.sh: Added.
2591 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2593 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2594 section_tail when fiddling with section list.
2595 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2596 broken into separate strings to make translation easier.
2597 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2598 fiddling with section list.
2599 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2601 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2603 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2605 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2607 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2609 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2611 * emultempl/elf32.em (finish): Supply output_bfd
2612 to bfd_elf*_discard_info.
2613 (OPTION_EH_FRAME_HDR): Define.
2614 (longopts): Add --eh-frame-hdr.
2615 (parse_args): Handle it.
2616 (list_options): Add --eh-frame-hdr to help.
2617 * emultempl/hppaelf.em (finish): Supply output_bfd
2618 to bfd_elf*_discard_info.
2619 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2621 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2623 * lexsup.c (parse_args): Don't pass shortopts to second call to
2624 getopt functions. Restore optind rather than decrementing before
2625 second call. Remove errind as it now duplicates last_optind.
2627 2001-12-11 Christopher Faylor <cgf@redhat.com>
2629 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2631 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2632 Richard Henderson <rth@redhat.com>
2634 * Makefile.am: Add support for xstormy16.
2635 * configure.tgt: Add support for xstormy16.
2636 * Makefile.in: Regenerate.
2637 * emulparams/elf32xstormy16.sh: New file.
2638 * scripttempl/xstormy16.sc: New file.
2640 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2642 * Makefile.in (LIB_PATH): Make configurable.
2643 (GENSCRIPTS): Set LIB_PATH in environment.
2644 * configure.in: Substitute LIB_PATH.
2645 * configure: Regenerate.
2646 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2647 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2649 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2651 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2652 describing the -N option so that it is easier to translate into
2655 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2657 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2658 statements describing a single option with a single, newline
2659 escaped fprintf. This allows better translation into other
2662 * ldmain.c (add_archive_element): Combine multiple strings
2663 into a single string to permit better translation into other
2666 2001-12-05 Tom Rix <trix@redhat.com>
2668 * Makefile.am: Remove eaixppc64.
2669 * Makefile.in: Regenerate.
2671 2001-12-04 Tom Rix <trix@redhat.com>
2673 * emultempl/aix.em (choose_target): Change default target to
2674 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2676 (gld*_read_file): Fix typo.
2677 (change_symbol_mode): Add prototype.
2680 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2681 * emulparams/aixrs6.sh : Same.
2682 * emulparams/ppcmacos.sh : Same.
2683 * emulparams/aixppc64.sh : Delete file.
2684 * emultempl/aix.em : Formatting changes.
2686 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2688 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2689 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2691 (OTHER_END_SYMBOLS): Fix formatting.
2692 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2693 (OTHER_END_SYMBOLS): Fix formatting.
2695 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2697 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2699 2001-12-02 Tom Rix <trix@redhat.com>
2701 * configure.tgt : Remove eaixppc64 emulations.
2702 * Makefile.in : Remove eaixppc64.c
2703 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2704 (ldemul_default_target): Same.
2705 * emultempl/gld960.em (gld960_choose_target): Same.
2706 * emultempl/gld960c.em (gld960_choose_target): Same.
2707 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2708 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2709 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2710 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2711 * emultempl/aix.em (choose_target): New function. Handle emulation of
2714 2001-11-27 H.J. Lu <hjl@gnu.org>
2716 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2717 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2718 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2719 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2720 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2721 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2722 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2723 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2725 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2728 (REL_SDATA): Likewise.
2729 (REL_SBSS): Likewise.
2730 (REL_SDATA2): Likewise.
2731 (REL_SBSS2): Likewise.
2732 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2735 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2737 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2739 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2741 2001-11-22 H.J. Lu <hjl@gnu.org>
2743 * Makefile.in: Regenerated with automake based on automake
2744 1.4-8 in RedHat 7.1.
2746 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2748 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2749 (config.status): Delete rule.
2750 Add extra dependencies to cover sourced emulparams files.
2751 * Makefile.in: Regenerate.
2753 * scripttempl/elf.sc: Order <section>, <section>.* and
2754 corresponding linkonce sections as seen in input files.
2755 Formatting fixes. Zero vma of all sections if not relocating.
2756 (STACK): Define and insert if STACK_ADDR defined.
2757 (OTHER_RELOCATING_SECTIONS): Delete.
2758 (OTHER_END_SYMBOLS): Define.
2759 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2760 (OTHER_READWRITE_SECTIONS): Likewise.
2761 (OTHER_GOT_SECTIONS): Likewise.
2762 (OTHER_SDATA_SECTIONS): Likewise.
2763 (OTHER_BSS_SECTIONS): Likewise.
2764 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2765 (OTHER_READWRITE_SECTIONS): Likewise.
2766 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2767 (OTHER_READWRITE_SECTIONS): Likewise
2769 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2770 (STACK_ADDR): Define.
2771 * emulparams/armelf_oabi.sh: As for armelf.sh.
2772 * emulparams/elf32mcore.sh: As for armelf.sh.
2773 * emulparams/h8300elf.sh: As for armelf.sh.
2774 * emulparams/mn10200.sh: As for armelf.sh.
2775 * emulparams/shelf.sh: As for armelf.sh.
2777 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2778 (OTHER_END_SYMBOLS): Define.
2779 * emulparams/m32relf.sh: As for elf32fr30.sh.
2780 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2781 * emulparams/h8300self.sh: As for elf32fr30.sh.
2783 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2784 defines with RELOCATING test.
2785 (OTHER_SDATA_SECTIONS): Likewise.
2786 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2787 (OTHER_END_SYMBOLS): ..this.
2788 * emulparams/crislinux.sh: As for criself.sh.
2790 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2792 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2793 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2794 normal and linkonce sections as seen in input files.
2795 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2796 (TEXT_DYNAMIC): Likewise.
2797 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2798 (OTHER_SDATA_SECTIONS): Likewise.
2799 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2800 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2801 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2802 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2803 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2804 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2805 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2806 sections as seen in input files.
2807 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2808 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2810 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2811 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2812 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2813 (OTHER_SECTIONS): Instead, use this..
2814 (OTHER_END_SYMBOLS): ..and this.
2816 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2817 * emulparams/elf32bsmip.sh: Likewise.
2818 * emulparams/elf32btsmip.sh: Likewise.
2819 * emulparams/elf32ebmip.sh: Likewise.
2820 * emulparams/elf32lmip.sh: Likewise.
2821 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2822 * emulparams/elf32lsmip.sh: Likewise.
2823 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2824 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2825 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2826 * emulparams/elf64btsmip.sh: Likewise.
2827 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2828 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2829 * emulparams/elf32ppclinux.sh: Likewise.
2830 * emulparams/elf32ppcsim.sh: Likewise.
2831 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2832 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2833 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2834 * emulparams/h8300self.sh: Likewise.
2835 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2836 * emulparams/sh.sh: Comment.
2837 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2838 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2839 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2841 2001-11-21 David Heine <dlheine@tensilica.com>
2842 Alan Modra <amodra@bigpond.net.au>
2844 * ldlang.c (map_input_to_output_sections): Replace "break"
2845 accidentally removed with 2001-08-03 change.
2846 (lang_gc_sections_1): Likewise.
2848 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2850 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2852 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2854 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2855 of false when calling lang_size_sections.
2856 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2858 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2860 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2861 function when LDEMUL_FINISH isn't set to the same name. Don't
2862 call ${LDEMUL_FINISH}.
2863 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2864 * emultempl/armelf.em (arm_elf_finish): Call
2865 gld${EMULATION_NAME}_finish.
2866 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2867 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2868 hppaelf_layout_sections_again if necessary.
2869 (need_laying_out): New var.
2870 (hppaelf_layaout_sections_again): Rename to
2871 hppaelf_layout_sections_again. Clear need_laying_out.
2872 (PARSE_AND_LIST_OPTIONS): Format text.
2874 2001-11-14 H.J. Lu <hjl@gnu.org>
2876 * emultempl/armelf.em (arm_elf_finish): Renamed from
2877 gld${EMULATION_NAME}_finish.
2878 (LDEMUL_FINISH): Set to arm_elf_finish.
2880 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2882 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2883 (struct ld_emulation_xfer_struct): Use it.
2885 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2887 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2888 additional symbols referenced by newer crt0.o files from HP.
2890 2001-11-12 Anthony Green <green@redhat.com>
2892 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2894 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2896 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2897 * Makefile.in: Regenerate.
2899 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2901 * ld.texinfo: Use @command for commands, @option for options.
2902 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2904 * Makefile.in: Rebuild.
2906 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2908 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2909 Add support for targets.
2911 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2913 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2914 * configure: Regernate.
2915 * po/fr.po: New file.
2916 * po/sv.po: New file.
2918 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2920 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2921 as little endian default and to support big endian.
2923 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2925 * ld.texinfo (Options): Document new option, -nostdlib.
2926 * lexsup.c (OPTION_NOSTDLIB): New definition.
2927 (ld_options): Add entry for "nostdlib".
2928 (parse_args): Handle OPTIONS_NOSTDLIB.
2929 * ldfile.c (ldfile_add_library_path): Don't add directories
2930 to the search path if they weren't specified on the command line
2931 and -nostdlib was specified.
2932 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2934 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2936 * lexsup.c (parse_args): Prevent infinite parsing loop when
2937 "-rpath.a" is specified on the command line.
2938 Replace calls to fprintf with calls to einfo.
2940 2001-10-31 John Marshall <jmarshall@acm.org>
2942 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2943 appear only once across all the linker scripts involved in a link
2944 invocation no longer applies. Make the documentation reflect
2947 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2949 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2951 (sh-*-linux*): Added targ_extra_libpath.
2953 2001-10-31 David Heine <dlheine@tensilica.com>
2955 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2956 for padding statements.
2958 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2960 * configure.tgt (mmix-*-*): New target.
2961 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2962 Add dependencies to match.
2963 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2964 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2965 scripttempl/mmo.sc: New files.
2966 * gen-doc.texi: @set MMIX.
2967 * ld.texinfo: Ditto.
2968 [MMIX] Add MMIX node.
2969 * Makefile.in: Regenerate.
2971 2001-10-29 Kazu Hirata <kazu@hxi.com>
2973 * ldlang.c: Fix a comment typo.
2975 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2977 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2978 entries, and match *-*-linux*.
2980 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2982 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2983 with ldlex_script, ldlex_popstate.
2984 (ifile_p1): Likewise.
2985 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2987 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2988 to 1. Don't BEGIN(SCRIPT).
2989 (lex_redirect): Similarly.
2990 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2992 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2994 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2995 __EH_FRAME_END__ and accept eh frames into data section.
2996 Add ctor and dtor sections.
2998 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3000 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3001 (auto-export): Fix indentation.
3003 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3005 * pe-dll.c (autofilter_objectlist): Add startup objects
3007 (auto-export): Constify char * p.
3008 Extract file basename and use strcmp rather than ststr
3011 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3013 * ldmain.c (get_emulation): Improve comment about the handling
3016 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3018 * po/POTFILES.in: Regenerate.
3020 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3022 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3023 -z nocopyreloc and -z nocombreloc usage strings.
3025 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3027 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3030 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3032 * scripttempl/armaout.sc: Place .bss section after end of aligned
3033 data section to match behaviour of aout code in constructrion of
3036 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3038 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3039 startup files for mingw32 dlls to list.
3041 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3043 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3045 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3047 * configure.tgt (targ): Add arm9e-*-elf.
3049 2001-10-05 H.J. Lu <hjl@gnu.org>
3051 * genscripts.sh: Fix a typo in the last change.
3053 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3055 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3056 -z nocombreloc in usage.
3058 2001-10-03 Jim Blandy <jimb@redhat.com>
3060 * genscripts.sh: Include a comment at the top of each generated
3061 script, explaining its purpose.
3063 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3065 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3066 * NEWS: Mention -z nocopyreloc.
3067 * ld.texinfo (Options): Describe nocopyreloc.
3069 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3071 * configure: Regenerate.
3073 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3075 * ldver.h (ld_program_version): Remove declaration.
3076 * lexsup.c (parse_args): Move printing of copyright message..
3077 * ldver.c (ldversion): .. to here.
3078 Use BFD_VERSION_STRING in place of BFD_VERSION.
3079 (ld_program_version): Remove.
3080 * Makefile.am (Makefile): Depend on bfd/configure.in.
3082 * Makefile.in: Regenerate.
3084 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3086 * Makefile.am: Update dependencies with "make dep-am".
3087 * Makefile.in: Regenerate.
3089 2001-09-29 John Reiser <jreiser@BitWagon.com>
3091 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3092 * lexsup.c: Add --no-define-common commandline option.
3093 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3094 * ldlex.l: Likewise.
3095 * ld.h: Add command_line.inhibit_common_definition.
3096 * ldmain.c (main): Initialize.
3097 * ld.texinfo: Document.
3099 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3101 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3103 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3105 * ldmisc.c (USE_STDARG): Remove.
3106 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3111 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3112 declarations. Update copyright.
3114 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3116 * pe-dll.c: Remove obsoleted declaration of
3117 pe_get_data_import_dll_name.
3118 (pe_create_import_fixup): Fix thinko.
3120 * ld.texinfo(enable-auto-import): Clarify the explanation.
3122 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3124 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3125 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3126 DLL_SUPPORT controlled code.
3128 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3130 * emultempl/pe.em(pe_data_import_dll): Make static.
3131 (pe_get_data_import_dll_name): New accessor function.
3132 * pe-dll.c(pe_create_import_fixup): call
3133 pe_get_data_import_dll_name() from pe.em, instead of
3134 directly accessing pe_data_import_dll variable from pe.em.
3136 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3138 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3139 (def_file_add_directive): Use ISSPACE instead of isspace.
3140 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3141 isdigit/isxdigit/isalpha/isalnum.
3142 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3143 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3144 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3145 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3147 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3148 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3150 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3151 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3152 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3153 (ctor_prio): Use ISDIGIT instead of isdigit.
3154 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3155 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3156 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3158 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3159 (stricpy): Use TOLOWER instead of isupper/tolower.
3160 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3161 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3162 (lex_warn_invalid): Use ISPRINT instead of isprint.
3163 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3164 (main): For gettext, also set the LC_CTYPE locate facet.
3165 (add_keepsyms_file): Use ISSPACE instead of isspace.
3166 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3167 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3168 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3169 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3170 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3171 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3172 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3173 (quoteput): Use ISSPACE instead of isspace.
3174 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3177 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3179 * deffilep.y (def_stash_module): Constify "name" param.
3181 * pe-dll.c: Replace CONST with const throughout.
3182 (quick_symbol): Constify "n1", "n2", "n3" params.
3183 (make_singleton_name_thunk): Constify "import" param. Make
3184 "buffer_len" a size_t.
3185 (make_import_fixup_entry): Constify "name", "fixup_name",
3186 "dll_symname" params.
3187 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3188 (pe_get32): Likewise.
3189 (pe_implied_import_dll): Likewise.
3191 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3192 (sort_by_section_name): Likewise.
3194 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3195 (make_import_fixup): Cast printf arg, rel->address to long rather
3197 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3199 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3201 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3202 defines BufferSize. Increase buffer size by one.
3204 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3206 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3208 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3210 * configure.tgt: Add arm-openbsd target.
3212 2001-09-12 H.J. Lu <hjl@gnu.org>
3214 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3216 (ALL_64_EMULATIONS): Here.
3217 * Makefile.in: Regenerated.
3219 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3221 * emultempl/pe.em(make_import_fixup): change signature to
3222 take asection as well as arelec; we need this for proper
3223 error reporting. Only call pe_create_import_fixup() if
3224 there is no attempt to add a constant addend to the reloc;
3225 otherwise, report error condition.
3226 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3227 since final argument is a pointer to make_import_fixup().
3228 Change call to cb() to match make_import_fixup() signature.
3229 (make_import_fixup_mark): make buffer_len unsigned.
3230 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3232 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3234 * ld.texinfo: add verbose documentation for auto-import
3235 direct-addressing workaround, to compliment the terse
3238 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3240 * scripttempl/v850.sc: Add gcc_except_table sections.
3242 2001-09-11 Jeffrey A Law (law@cygnus.com)
3244 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3245 * emulparams/h8300self.sh: Similarly.
3247 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3249 * ld.texinfo (Options, --stack): Correct default value for stack
3252 2001-09-05 Tom Rix <trix@redhat.com>
3254 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3256 2001-09-03 Andreas Jaeger <aj@suse.de>
3258 * emultempl/beos.em: Declare prototypes for comparions functions,
3261 2001-09-02 Andreas Jaeger <aj@suse.de>
3263 * emultempl/aix.em: Add missing prototype.
3264 * emultempl/lnk960.em: Likewise.
3265 * emultempl/vanilla.em: Likewise.
3266 * emultempl/armcoff.em: Likewise.
3267 * emultempl/armelf_oabi.em: Likewise.
3268 * emultempl/beos.em: Likewise.
3269 * emultempl/gld960c.em: Likewise.
3270 * emultempl/gld960.em: Likewise.
3272 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3273 for prototype declaration.
3275 2001-08-31 Eric Christopher <echristo@redhat.com>
3276 Jason Eckhardt <jle@redhat.com>
3278 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3280 2001-08-31 Andreas Jaeger <aj@suse.de>
3282 * emultempl/pe.em: Add missing prototypes.
3283 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3284 pe_find_data_imports.
3285 (pr_sym): Add unused attribute.
3287 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3289 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3290 default from coff to elf.
3292 2001-08-29 Jeff Law <law@redhat.com>
3294 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3296 * emulparams/h8300self.sh: Similarly.
3298 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3300 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3302 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3303 * configure.tgt (h8300-*-elf*): New case.
3304 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3305 * emulparams/h8300self.sh: New file.
3306 * Makefile.in: Regenerated.
3308 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3310 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3313 2001-08-27 Linus Nordberg <linus@swox.com>
3314 Alan Modra <amodra@bigpond.net.au>
3316 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3317 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3319 * Makefile.in: Regenerate.
3320 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3321 entries to correct alphabetical position.
3322 * emulparams/elf64ppc.sh: New.
3323 * emulparams/elf64lppc.sh: New.
3325 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3327 * ldmain.c (main): Declare BSIZE as static.
3329 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3331 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3332 into .rel.dyn resp. .rela.dyn if combreloc.
3333 (get_script): If .x linker script is equal to .xn, only put it
3334 once into the binary.
3335 Add .xc and .xsc scripts.
3336 (parse_args): Handle -z combreloc and -z nocombreloc.
3337 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3338 For .xc and .xsc scripts put all .rel* or .rela* input sections
3339 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3340 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3342 Strip trailing whitespace from script.
3343 Generate .xc and .xsc scripts if requested.
3344 * ldmain.c (main): Initialize link_info.combreloc and
3345 link_info.spare_dynamic_tags.
3346 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3347 (ld_options): Add --spare-dynamic-tags option.
3348 (parse_args): Likewise.
3349 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3350 * ldint.texinfo: Document .xc and .xsc linker scripts.
3351 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3353 2001-08-22 H.J. Lu <hjl@gnu.org>
3355 * emulparams/elf32fr30.sh: Add a newline.
3357 2001-08-21 Andreas Jaeger <aj@suse.de>
3359 * deffilep.y: Add missing prototypes.
3360 * pe-dll.c: Likewise.
3362 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3364 * ldlang.c (insert_pad): Fix typos in last patch.
3366 * ldlang.c: When traversing lang_statement_union_type lists,
3367 consistently use "header.next" rather than "next".
3368 * mpw-eppcmac.c: Likewise.
3369 * emultempl/beos.em: Likewise.
3370 * emultempl/hppaelf.em: Likewise.
3371 * emultempl/pe.em: Likewise.
3372 * ldlang.h (union lang_statement_union): Remove "next" field.
3374 * ldlang.c (insert_pad): Use offsetof macro.
3375 (lang_size_sections): Always neuter padding statements.
3376 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3378 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3379 passed to lang_size_sections.
3380 (pe_exe_fill_sections): Likewise.
3381 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3382 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3384 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3386 * emultempl/aix.em: Formatting fixes.
3388 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3390 * ldlang.c (insert_pad): Make use of an existing pad statement if
3391 available. Move code calculating alignment, adjusting section
3392 alignment power, and adjusting dot to ..
3393 (size_input_section): .. here. Remove unused relax param.
3394 (lang_size_sections): Change boolean `relax' param to boolean *.
3395 Adjust call to size_input_section. Make use of insert_pad to
3396 place pad after the assignment statement. If relaxing, zap
3398 (reset_memory_regions): Reset output_bfd section sizes too.
3399 (relax_again): Move to..
3400 (lang_process): ..here. Adjust call to lang_size_sections, and
3401 remove duplicated code.
3402 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3404 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3406 * ld.texinfo: Document that fill values now use the four least
3408 * emulparams/elf32fr30.sh (NOP): Update.
3409 * emulparams/elf32mcore.sh: Likewise.
3410 * emulparams/elf64_s390.sh: Likewise.
3411 * emulparams/elf_i386.sh: Likewise.
3412 * emulparams/elf_i386_be.sh: Likewise.
3413 * emulparams/elf_i386_chaos.sh: Likewise.
3414 * emulparams/elf_i386_ldso.sh: Likewise.
3415 * emulparams/elf_s390.sh: Likewise.
3416 * emulparams/elf_x86_64.sh: Likewise.
3417 * emulparams/i386moss.sh: Likewise.
3418 * emulparams/i386nw.sh: Likewise.
3419 * emulparams/m68kelf.sh: Likewise.
3420 * scripttempl/elf.sc: Update NOP comment.
3421 * scripttempl/elfi370.sc: Likewise.
3422 * scripttempl/elfm68hc11.sc: Likewise.
3423 * scripttempl/elfm68hc12.sc: Likewise.
3424 * scripttempl/nw.sc: Likewise.
3426 2001-08-15 Tom Rix <trix@redhat.com>
3428 * ldgram.y (saved_script_handle): Initialize to NULL.
3429 * ldmain.c (main): Change check on saved_script_handle.
3431 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3433 * emultempl/elf32.em: Formatting fixes.
3434 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3435 looking at sec->owner.
3436 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3437 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3438 unused code, and reorganize orphan section placement code.
3440 * ldlang.c (wild_doit): Rename to lang_add_section.
3441 * ldlang.h: Here too.
3442 * mpw-elfmips.c: And here.
3443 * emultempl/beos.em: And here.
3444 * emultempl/elf32.em: And here.
3445 * emultempl/hppaelf.em: And here.
3446 * emultempl/pe.em: And here.
3448 2001-08-13 Richard Henderson <rth@redhat.com>
3450 * emultempl/needrelax.em: New file.
3451 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3452 * Makefile.am (eelf64_ia64.c): Depend on it.
3453 * Makefile.in: Rebuild.
3455 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3457 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3458 output_section is set non-NULL.
3460 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3461 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3462 needlessly create an output_section_statement. Treat a correctly
3463 named output_section_statement with NULL bfd_section as compatible.
3465 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3467 * emultempl/generic.em: Support EXTRA_EM_FILE.
3468 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3469 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3470 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3471 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3472 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3473 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3474 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3475 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3476 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3477 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3479 2001-08-12 Richard Henderson <rth@redhat.com>
3481 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3482 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3483 scripttempl/v850.sc: Keep .jcr data.
3485 2001-08-12 H.J. Lu <hjl@gnu.org>
3486 Andrew Haley <aph@cambridge.redhat.com>
3487 Nick Clifton <nickc@redhat.com>
3489 * ldgram.y (had_script): Change name to saved_script_handle.
3490 Change type to file handle.
3491 * ld.h (had_script): Rename and retype.
3492 * ldfile.c (ldfile_open_command_file): Save the file handle
3493 used in saved_script_handle.
3494 * lexsup.c (parse_args): Do not allow -c option to alter
3495 saved_script_handle.
3496 * ldmain.c (main): Print out the linker script used if
3497 --verbose is given. Check saved_script_handle to obtain the
3498 external linker script used, or if NULL, dump the builtin
3500 * ld.texinfo: Document that --verbose now dumps the linker
3501 script used, regardless of whether it was an internal or an
3504 2001-08-10 Andreas Jaeger <aj@suse.de>
3506 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3508 * configure: Regenerate.
3510 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3512 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3514 * scripttempl/elf.sc: Move non-text .dynamic section before
3515 .plt/.got/.sdata* group.
3516 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3517 (OTHER_SDATA_SECTIONS): Add.
3518 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3520 * emulparams/crislinux.sh: Likewise.
3521 * emulparams/elf32b4300.sh: Likewise.
3522 * emulparams/elf32bmip.sh: Likewise.
3523 * emulparams/elf32bmipn32.sh: Likewise.
3524 * emulparams/elf32bsmip.sh: Likewise.
3525 * emulparams/elf32btsmip.sh: Likewise.
3526 * emulparams/elf32ebmip.sh: Likewise.
3527 * emulparams/elf32elmip.sh: Likewise.
3528 * emulparams/elf32l4300.sh: Likewise.
3529 * emulparams/elf32lmip.sh: Likewise.
3530 * emulparams/elf32lsmip.sh: Likewise.
3531 * emulparams/elf32ltsmip.sh: Likewise.
3532 * emulparams/elf64bmip.sh: Likewise.
3533 * emulparams/elf64btsmip.sh: Likewise.
3534 * emulparams/elf64ltsmip.sh: Likewise.
3536 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3538 * genscripts.sh: Source the emulparams script before each output
3539 script is generated so that variables like `RELOCATING' may affect
3540 variables defined in the emulparams script.
3542 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3544 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3547 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3548 ie. iterate over wild_statement.section_list.
3549 (gld${EMULATION_NAME}_place_orphan): Likewise.
3551 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3553 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3554 .fini[0-4] sections used by _exit
3555 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3556 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3557 * scripttempl/elfm68hc11.sc: Likewise.
3559 2001-08-03 H.J. Lu <hjl@gnu.org>
3561 * emultempl/beos.em (init): Add the missing initialization.
3563 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3565 * ld.texinfo (Input Section Basics): Clarify ordering of output
3567 * ldlang.c (callback_t): Add wildcard_list param.
3568 (walk_wild_section): Remove "section" param. Rewrite for
3569 lang_wild_statement_type change. Remove unique_section_p test.
3570 (walk_wild_file): Remove "section" param.
3571 (walk_wild): Remove "section" and "file" params.
3572 (lang_gc_wild): Likewise.
3573 (wild): Likewise. Modify for lang_wild_statement_type change.
3574 (wild_sort): Likewise. Add "sec" param.
3575 (gc_section_callback): Likewise.
3576 (output_section_callback): Likewise. Do unique_section_p test.
3577 (map_input_to_output_sections): Modify call to wild.
3578 (lang_gc_sections_1): Likewise.
3579 (print_wild_statement): Modify for lang_wild_statement_type
3581 (lang_add_wild): Replace filename, filenames_sorted param with
3582 filespec. Replace section_name, sections_sorted,
3583 exclude_filename_list with section_list.
3584 * ldlang.h (lang_add_wild): Here too.
3585 (lang_wild_statement_type): Replace section_name, sections_sorted,
3586 and exclude_filename_list with section_list.
3587 * ldgram.y (current_file): Delete.
3588 (%union): Add wildcard_list.
3589 (file_NAME_list): Set type to wildcard_list. Build a linked list
3590 rather than calling lang_add_wild for each entry.
3591 (input_section_spec_no_keep): Call lang_add_wild here instead.
3592 * ld.h (struct wildcard_list): Declare.
3593 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3595 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3597 * ldmain.c (main): initialize link_info.pei386_auto_import
3598 * pe-dll.c: new tables for auto-export filtering
3599 (auto_export): change API, pass abfd for contextual filtering.
3600 Loop thru tables of excluded symbols instead of comparing
3603 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3605 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3606 static variable current_sec (static struct sec *). Add
3607 forward declaration for add_bfd_to_link.
3608 (process_def_file): Don't export undefined symbols. Do not
3609 export symbols starting with "_imp__". Call auto_export()
3611 (pe_walk_relocs_of_symbol): New function.
3612 (generate_reloc): add optional extra debugging
3613 (pe_dll_generate_def_file): eliminate extraneous initial blank
3615 (make_one): enlarge symtab to make room for __nm__ symbols
3616 (DATA auto-import support).
3617 (make_singleton_name_thunk): New function.
3618 (make_import_fixup_mark): New function.
3619 (make_import_fixup_entry): New function.
3620 (pe_create_import_fixup): New function.
3621 (add_bfd_to_link): Specify that 'name' argument is a CONST
3623 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3624 declare new functions pe_walk_relocs_of_symbol and
3625 pe_create_import_fixup.
3626 * emultempl/pe.em: add new options --enable-auto-import,
3627 --disable-auto-import, and --enable-extra-pe-debug.
3628 (make_import_fixup): New function.
3629 (pe_find_data_imports): New function.
3630 (pr_sym): New function.
3631 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3632 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3635 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3637 * ld.texinfo: add additional documentation for
3638 --export-all-symbols. Document --out-implib,
3639 --enable-auto-image-base, --disable-auto-image-base,
3640 --dll-search-prefix, --enable-auto-import, and
3641 --disable-auto-import.
3642 * ldint.texinfo: Add detailed documentation on auto-import
3645 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3647 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3650 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3652 * Makefile.am: Update dependencies with "make dep-am".
3653 * Makefile.in: Regenerate
3655 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3657 * ldcref.c (check_section_sym_xref): New function.
3658 (check_nocrossrefs): Call it.
3659 (check_nocrossref): Interate over h->refs here instead of..
3660 (check_refs): ..here. Pass in the symbol name, section, and bfd
3661 rather than hash_entry pointers.
3662 (struct check_refs_info): Keep symbol name rather than hash entry.
3664 (check_reloc_refs): Tweak for above changes in check_refs_info.
3665 Only report references to section syms when symname is NULL to
3666 prevent duplicate messages for the same reloc.
3668 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3670 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3671 available. Do not print NULL trees.
3672 (exp_print_token): Print unknown tokens with values > 126 as
3673 decimal values not ASCII characters.
3675 * ldlang.c (lang_leave_overlay): If a region is specified assign
3676 it to all sections inside the overlay unless they have been
3677 assigned to the own, non-default, memory region.
3679 * README: Add header for consistency with other README files.
3681 2001-07-14 H.J. Lu <hjl@gnu.org>
3683 * emultempl/elf32.em (output_prev_sec_find): Never return
3684 bfd_abs_section_ptr, bfd_com_section_ptr nor
3685 bfd_und_section_ptr.
3687 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3689 * Makefile.am (em32relf.c): Change dependency from generic.em to
3691 * Makefile.in: Regenerate.
3693 2001-07-14 matthew green <mrg@eterna.com.au>
3695 * configure.tgt (i386-*-netbsdelf*): New target.
3696 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3698 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3700 * emultempl/elf32.em (output_prev_sec_find): New.
3701 (place_orphan): Use it.
3703 2001-07-11 H.J. Lu <hjl@gnu.org>
3705 * ldmain.c (main): Fix typos in the last change.
3707 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3709 * ldmain.c (main): Disallow -F and -f without -shared.
3711 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3713 * emultempl/pe.em (after_open): Check for the output_bfd not
3714 having any coff_data structure allocated to it.
3716 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3718 * emultempl/elf32.em: Do not assuming that contents of the buffer
3719 returned from basename function will remain unchanged accross other
3722 2001-07-03 H.J. Lu <hjl@gnu.org>
3724 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3725 2001-07-03. It creates dynamic entries even for static binaries.
3727 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3729 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3730 (DYNAMIC): Use it to reserve few dynamic entries for
3733 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3735 * emulparams/hppa64linux.sh: New file.
3736 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3737 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3738 (ehppa64linux.c): Add rule to make it.
3740 * Makefile.in: Regenerate.
3742 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3744 * ld.texinfo (Options, -r): Mention restrictions when using
3745 different object formats.
3747 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3749 * ldlang.c (lang_check): Emit fatal error if relocatable link
3750 between different object flavours with relocations in input.
3752 2001-06-19 H.J. Lu <hjl@gnu.org>
3754 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3755 (--version-script): Mention the language support.
3757 2001-06-19 H.J. Lu <hjl@gnu.org>
3759 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3761 2001-06-18 H.J. Lu <hjl@gnu.org>
3763 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3764 (diststuff): Add $(MANS).
3765 * Makefile.in: Regenerated.
3769 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3771 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3772 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3773 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3774 * ld.h (args_type): Remove member export_dynamic. All users
3775 changed to use struct bfd_link_info member.
3777 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3778 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3779 * Makefile.in: Regenerate.
3781 2001-06-18 H.J. Lu <hjl@gnu.org>
3783 * ldlang.c (init_os): Add the newline to the einfo call.
3784 (lang_check): Likewise.
3785 (lang_do_version_exports_section): Likewise.
3787 2001-06-15 H.J. Lu <hjl@gnu.org>
3789 * lexsup.c (parse_args); Save optind to report unrecognized
3792 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3794 * ldlang.c (lang_check): Emit fatal error if relocatable link
3795 between different object flavours.
3797 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3798 Set new link_info member export_dynamic.
3799 * ldmain.c (main): Initialize new link_info member export_dynamic.
3801 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3803 * ldlang.c (walk_wild): Only call walk_wild_file if
3804 lookup_name returns something.
3805 (lookup_name): If load_symbols fails, return NULL.
3806 (load_symbols): Change to a boolean function.
3807 (open_input_bfds): If load_symbols fails then do not make the
3810 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3812 * ldlang.c (record_bfd_errors): Remove.
3814 * emultempl/aix.em: Fix copyright dates.
3816 2001-06-07 Andreas Jaeger <aj@suse.de>
3818 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3819 (TEXT_START_ADDR): Likewise.
3821 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3823 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3825 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3827 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3829 2001-05-31 H.J. Lu <hjl@gnu.org>
3831 * ldlang.c (open_input_bfds): Don't change the bfd error
3832 handler whilst loading symbols.
3834 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3836 * configure.tgt: Remove i370-mvs architecture, it is not currently
3839 2001-05-25 H.J. Lu <hjl@gnu.org>
3841 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3842 like emulparams/aixppc.sh.
3844 2001-05-25 H.J. Lu <hjl@gnu.org>
3846 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3847 setting of output_filename after bfd_scan_arch.
3848 * emultempl/pe.em: Likewise.
3850 2001-05-25 H.J. Lu <hjl@gnu.org>
3852 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3853 like emulparams/aixppc.sh.
3855 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3856 instead of ${srcdir}/emultempl/stringify.sed.
3858 2001-05-25 Timothy Wall <twall@oculustech.com>
3860 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3863 2001-05-25 Alan Modra <amodra@one.net.au>
3865 * configure.host: Replace linuxoldld with linux*oldld.
3866 * configure.tgt: Likewise.
3868 2001-05-24 H.J. Lu <hjl@gnu.org>
3870 * emultempl/stringify.sed: Removed again.
3872 2001-05-24 H.J. Lu <hjl@gnu.org>
3874 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3875 (gld${EMULATION_NAME}_before_parse): Initialize
3876 ldfile_output_architecture, ldfile_output_machine and
3877 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3878 * emultempl/beos.em: Likewise.
3879 * emultempl/elf32.em: Likewise.
3880 * emultempl/linux.em: Likewise.
3881 * emultempl/mipsecoff.em: Likewise.
3882 * emultempl/pe.em: Likewise.
3883 * emultempl/sunos.em: Likewise.
3885 2001-05-24 Tom Rix <trix@redhat.com>
3887 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3888 udate import file format.
3889 (change_symbol_mode) New, same
3890 (is_syscall) New, same
3891 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3892 * emulparams/aixppc64.sh : same
3893 * emulparams/aixrs6.sh : same
3894 * emulparams/ppcmacos.sh : same
3895 * emultempl/aix.em : use strtoull to parse options
3896 * Makefile.am : add eaixppc64 emulation for xcoff64
3897 * Makefile.in : same
3898 * configure.tgt : same
3900 * scripttempl/aix.sc : default text section offset to 0x10000000
3901 default data section offset to 0x20000000
3902 add .sv3264 and .sv64 pseudo sections
3903 loader and debug sections use the currect section offset.
3905 * emultempl/aix.em : Add xcoff64 support
3906 Add -binitfini support
3907 (gld${EMULATION_NAME}_before_parse) -binitfini
3908 (gld${EMULATION_NAME}_parse_args) same
3909 (gld${EMULATION_NAME}_before_allocation) format change for special
3912 * emulparams/aixppc64.sh : New file for xcoff64 support
3914 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3916 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3917 variable to avoid non-portable shell construct.
3919 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3921 * ldmain.c (get_emulation): Add -mips5 command line argument.
3923 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3925 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3926 (ELF_INTERPRETER_NAME): Define it.
3927 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3929 * configure.tgt (targ_emul, targ_extra_emuls)
3930 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3931 as primary, elf_i386 as extra.
3932 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3933 (eelf_i386_ldso.c): New rule.
3934 * Makefile.in: Rebuilt.
3936 2001-05-22 Nick Clifton <nickc@redhat.com>
3938 * lexsup.c (ld_options): Allow -I to be an alias for
3939 --dynamic-linker. This is for Solaris compatability.
3940 * ld.texinfo: Document that -I can be used.
3943 2001-05-16 Alan Modra <amodra@one.net.au>
3945 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3946 whether an input section is the first one assigned to an output
3948 Assorted formatting fixes.
3950 2001-05-14 DJ Delorie <dj@delorie.com>
3952 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3953 * Makefile.in: Ditto.
3955 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3957 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3958 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3960 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3962 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3964 * ldlang.c (lang_process): Call bfd_merge_sections.
3966 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3968 * ldgram.y: Fix typo.
3970 2001-05-03 H.J. Lu <hjl@gnu.org>
3972 * emultempl/elf32.em: Include "libiberty.h".
3973 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3974 basename of the bfd filename.
3975 (gld${EMULATION_NAME}_stat_needed): Likewise.
3976 (gld${EMULATION_NAME}_try_needed): Likewise.
3977 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3979 2001-05-02 H.J. Lu <hjl@gnu.org>
3981 * emultempl/pe.em: Include <ctype.h>.
3983 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3985 * emulparams/elf32openrisc.sh: New file.
3987 * Makefile.am: Add OpenRISC target.
3988 * Makefile.in: Regenerated.
3990 * configure.tgt: Add openrisc-*-* mapping.
3992 2001-05-02 Nick Clifton <nickc@redhat.com>
3994 * emultempl/aix.em: Replace buystring with xstrdup.
3995 * emultempl/beos.em: Replace buystring with xstrdup.
3997 2001-05-02 H.J. Lu <hjl@gnu.org>
3999 * ldfile.c: Include "libiberty.h".
4000 * ldlex.l: Likewise.
4002 * ldmisc.c (buystring): Removed.
4003 * ldmisc.h: Likewise.
4005 * ldfile.c: Replace buystring with xstrdup.
4006 * ldlang.c: Likewise.
4007 * ldlex.l: Likewise.
4008 * ldmain.c: Likewise.
4009 * ldmisc.c: Likewise.
4010 * lexsup.c: Likewise.
4011 * mpw-eppcmac.c: Likewise.
4013 2001-04-30 Andreas Jaeger <aj@suse.de>
4015 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4017 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4019 * ldlang.c (load_symbols): Give emulation a chance
4020 to process unrecognized file before fatal error is
4021 reported, not after.
4023 2001-04-27 Sean McNeil <sean@mcneil.com>
4025 * configure.tgt: Add arm-vxworks target.
4026 * scripttempl/armcoff.sc: Support .text or .data as a section name
4030 2001-04-13 J.T. Conklin <jtc@redback.com>
4032 * ld.texinfo: Document --fatal-warnings.
4035 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4036 warnings have been turned into errors.
4037 * lexsup.c (OPTION_WARN_FATAL): Define.
4038 (ld_options): Entry for --fatal-warnings.
4039 (parse_args): Handle OPTION_WARN_FATAL.
4040 * ld.h (ld_config_type): Add fatal_warnings field.
4042 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4044 * ldmain.c (main): Default to discard_sec_merge.
4045 * lexsup.c (OPTION_DISCARD_NONE): Define.
4046 (ld_options): Add --discard-none.
4047 (parse_args): Handle OPTION_DISCARD_NONE.
4048 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4049 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4050 all its input sections match.
4052 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4054 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4055 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4056 (eelf32ltsmip.c): New target.
4057 (eelf64btsmip.c): Likewise.
4058 (eelf64ltsmip.c): Likewise.
4059 * Makefile.in: Regenerated.
4061 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4063 (mips*-*-linux-gnu*): Likewise.
4065 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4067 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4069 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4072 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4074 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4075 correct value of __Stext here.
4076 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4079 * emulparams/crislinux.sh: Remove FIXME.
4081 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4083 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4084 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4086 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4088 * configure.tgt (cris-*-*): Change default emulation to criself.
4089 (cris-*-*aout*): New rule.
4091 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4093 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4094 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4096 2001-03-26 Andreas Jaeger <aj@suse.de>
4098 * ld.texinfo (Overview): Fix syntax in texi code.
4100 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4102 * ld.texinfo: Put @c man indications to generate the ld man page.
4103 When generating man, define all the variables. Define SEEALSO
4104 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4105 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4106 (ld.1): Generate from ld.texinfo.
4107 * Makefile.in: Regenerate.
4109 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4111 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4112 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4114 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4116 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4117 is an absolute path look only for this file and not along the path.
4119 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4121 * emultempl/elf32.em (OPTION_GROUP): New macro.
4122 Add new option Bgroup to longopts.
4123 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4124 (gld*_list_options): Add -Bgroup and -z defs.
4125 * ld.1: Document -Bgroup and -z defs.
4126 * ld.texinfo: Likewise.
4128 2001-03-07 Michael Meissner <meissner@redhat.com>
4130 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4131 with sections created by -fdata-sections.
4132 (.dynbss,.bss): Ditto.
4134 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4136 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4137 after_allocation_default, not gld..._before_allocation.
4139 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4141 * configure.in (BFD_VERSION): New.
4142 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4143 * configure: Regenerate.
4144 * Makefile.am: Run "make dep-am"
4145 * Makefile.in: Regenerate.
4147 2001-02-26 Timothy Wall <twall@cygnus.com>
4149 * emulparams/elf64_aix.sh: Add additional read-only sections;
4150 uncomment lines which are now required.
4152 2001-02-26 H.J. Lu <hjl@gnu.org>
4154 * ldlang.c (open_input_bfds): Set the bfd error handler so
4155 that problems can be caught whilst loading symbols.
4156 (record_bfd_errors): New function: Report BFD errors and mark
4157 the executable output as being invalid.
4159 2001-02-22 Timothy Wall <twall@cygnus.com>
4161 * configure.host: Add configuration for ia64-*-aix*.
4162 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4163 Add dependencies for eelf64_aix.c.
4164 * Makefile.in: Regenerate.
4165 * configure.tgt: Add ia64-*-aix* mapping.
4166 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4168 2001-02-20 H.J. Lu <hjl@gnu.org>
4170 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4171 false if we found the file.
4173 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4175 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4176 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4178 2001-02-18 lars brinkhoff <lars@nocrew.org>
4180 * Makefile.am: Add PDP-11 target.
4181 * configure.tgt: Likewise.
4182 * emulparams/pdp11.sh: New file.
4184 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4186 * configure.host: Add a generic FreeBSD configuration entry such that
4187 all [modern] FreeBSD systems on all platforms will look the same.
4189 2001-02-14 H.J. Lu <hjl@gnu.org>
4191 * configure.tgt: Remove mention of earmelf_linux26.
4193 2001-02-13 Richard Henderson <rth@redhat.com>
4195 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4197 2001-02-13 H.J. Lu <hjl@gnu.org>
4199 * ldexp.h (node_type): Add etree_provided.
4200 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4201 type to etree_provided if defined by PROVIDE. Allow updating
4203 (exp_print_tree): Handle etree_provided.
4204 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4207 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4209 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4210 .IA_64.unwind.* pattern to unwind table section and
4211 .IA_64.unwind_info* pattern to unwind info section.
4213 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4215 * Makefile.am: Add linux target for S/390.
4216 * Makefile.in: Likewise.
4217 * configure.host: Likewise.
4218 * configure.tgt: Likewise.
4219 * emulparams/elf64_s390.sh: New file.
4220 * emulparams/elf_s390.sh: New file.
4222 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4224 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4226 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4228 2001-02-06 Philip Blundell <philb@gnu.org>
4230 * Makefile.am: Remove mention of earmelf_linux26.
4231 * Makefile.in: Regenerate.
4233 2001-02-04 Philip Blundell <philb@gnu.org>
4235 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4236 * emulparams/armelf_linux26.sh: Delete.
4237 * configure.tgt: Remove mention of armelf_linux26 emulation.
4239 2001-02-01 Nick Clifton <nickc@redhat.com>
4241 * ld.1: Replace occurances of -oformat with --oformat.
4243 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4245 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4246 load_base is specified.
4248 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4250 * emultempl/elf32.em: Correct spelling in comments and listed
4253 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4255 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4256 default for the first section of a group of overlay sections.
4258 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4260 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4261 * Makefile.in: Regenerate.
4262 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4263 Check for null tool_dir.
4265 2001-01-16 Jim Wilson <wilson@redhat.com>
4267 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4268 and IA_64.unwind.info.
4270 2001-01-16 H.J. Lu <hjl@gnu.org>
4272 * ldlang.c (lang_check): Merge the private data only if the
4273 input file has contents.
4275 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4277 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4279 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4280 enabling search for libmilli. On a relocatable link, make .text
4282 (LDEMUL_AFTER_PARSE): Define.
4283 (hppaelf_finish): Correct spelling of relocatable in comments.
4285 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4286 rummage through the script for sections on the unique list.
4287 Correct length of strncmp for ".note".
4288 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4290 * ldlang.c (unique_section_list): New var.
4291 (unique_section_p): New function.
4292 (walk_wild_section): Don't match sections on unique_section_list.
4293 (lang_add_unique): New function.
4294 Correct spelling of relocatable in comments.
4296 * ldlang.h (struct unique_sections): Declare.
4297 (unique_section_list): Declare.
4298 (unique_section_p): Declare.
4299 (lang_add_unique): Declare.
4301 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4302 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4304 * ld.texinfo (--unique): Update.
4306 2001-01-13 Nick Clifton <nickc@redhat.com>
4308 * lexsup.c (parse_args): Remove spurious white space.
4310 2001-01-12 Nick Clifton <nickc@redhat.com>
4312 * lexsup.c (parse_args): Update copyright date.
4314 2001-01-12 Philip Blundell <pb@futuretv.com>
4316 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4318 2001-01-10 Kazu Hirata <kazu@hxi.com>
4320 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4321 * scripttempl/h8300h.sc: Fix formatting.
4322 * scripttempl/h8300s.sc: Likewise.
4323 * scripttempl/h8500.sc: Likewise.
4324 * scripttempl/h8500b.sc: Likewise.
4325 * scripttempl/h8500c.sc: Likewise.
4326 * scripttempl/h8500m.sc: Likewise.
4327 * scripttempl/h8500s.sc: Likewise.
4329 2000-01-07 David O'Brien <obrien@BSDi.com>
4331 * emultempl/elf32.em: Only perform Linux ld hints processing when
4334 2001-01-07 Philip Blundell <philb@gnu.org>
4336 * ld.texinfo (Bug Reporting): Update email address for reports.
4338 2000-12-31 Nick Clifton <nickc@redhat.com>
4340 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4341 options by checking for a return value of '?' not -1.
4343 2000-12-28 Nick Clifton <nickc@redhat.com>
4345 * lexsup.c (struct ld_option): Add new enum value:
4347 (ld_options[]): Change -omagic, -output and -oformat options
4348 to be EXACTLY_TWO_DASHES.
4349 (OUTPUT_COUNT): Use ARRAY_SIZE.
4350 (parse_args): Change parameter 'argc' to unsigned.
4351 Place EXACTLY_TWO_DASHES options into new really_longopts
4353 If getopt_long_only fails, try calling getopt_long using the
4354 really_longopts array.
4355 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4358 * ldlex.h: Fix prototype of parse_args.
4360 * ld.texinfo: Document that long options starting with 'o'
4361 must be preceeded by two dashes. Change example of a single
4362 dashed long option from -oformat to -trace-symbol.
4364 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4366 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4367 (longopts[]): New --no-default-excludes option.
4368 (gld_${EMULATION_NAME}_list_options): Document.
4369 (gld_${EMULATION_NAME}_parse_args): Handle.
4371 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4373 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4374 whitespace, it breaks the K&R C preprocessor.
4376 2000-12-11 DJ Delorie <dj@redhat.com>
4378 * ld.texinfo: Add notes about --whole-archive and gcc.
4380 2000-11-18 Fred Fish <fnf@be.com>
4382 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4383 (ld_options): Entry for --allow-shlib-undefined.
4384 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4385 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4387 * ld.texinfo: Document new command line switch.
4389 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4391 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4392 .fixup is actually read/write.
4393 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4394 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4395 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4397 2000-12-11 Jan Hubicka <jh@suse.cz>
4399 * NEWS: Add note about x86_64 architecture.
4401 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4403 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4404 Set DWARF2 sections to a VMA of zero.
4406 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4408 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4410 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4411 (sparc*-*-rtems*): Switched from a.out to ELF.
4413 2000-11-30 Jan Hubicka <jh@suse.cz>
4415 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4416 (eelf_x86_64.c): New.
4417 * Makefile.in: Regenerate.
4418 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4419 * emulparams/elf_x86_64.sh: New.
4421 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4423 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4424 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4426 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4427 merging non-a.out sections into CONSTRUCTING.
4429 2000-11-28 Nick Clifton <nickc@redhat.com>
4431 * ld.1 (COPYING): Mention that the GNU Free Documentation
4432 License is present in the sources, but not the output, and
4433 also available from the GNU website.
4434 (GNU Free Documentation License): Comment out this section.
4436 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4438 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4441 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4443 * ld.1: Remove old date so it does not give the impression the manpage
4446 2000-11-24 Nick Clifton <nickc@redhat.com>
4448 * configure.tgt (xscale-coff): Add target.
4449 (xscale-elf): Add target.
4451 2000-11-24 Fred Fish <fnf@be.com>
4453 * ldmain.c (main): Remove redundant init of config.make_executable
4456 2000-11-15 Richard Henderson <rth@redhat.com>
4458 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4460 2000-11-14 Kazu Hirata <kazu@hxi.com>
4462 * scripttempl/h8300.sc: Fix formatting.
4463 * scripttempl/h8300h.sc: Likewise.
4464 * scripttempl/h8300s.sc: Likewise.
4466 2000-11-14 Denis Chertykov <denisc@overta.ru>
4468 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4470 2000-11-09 Philip Blundell <pb@futuretv.com>
4472 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4473 around orphan sections whose names can be represented in C.
4475 2000-11-07 Jim Wilson <wilson@redhat.com>
4477 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4478 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4480 2000-11-06 Nick Clifton <nickc@redhat.com>
4482 * ld.texinfo: Add GNU Free Documentation License.
4483 * ldint.texinfo: Add GNU Free Documentation License.
4484 * ld.1: Add GNU Free Documentation License.
4486 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4488 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4489 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4491 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4492 Move 2000-11-02 Makefile.in changes to this file.
4493 * Makefile.in: Regenerate.
4495 2000-11-03 Nick Clifton <nickc@redhat.com>
4497 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4498 constructors and destructors.
4499 * scripttempl/h8300h.sc: Ditto.
4500 * scripttempl/h8300s.sc: Ditto.
4501 * scripttempl/h8500.sc: Ditto.
4502 * scripttempl/h8500b.sc: Ditto.
4503 * scripttempl/h8500c.sc: Ditto.
4504 * scripttempl/h8500m.sc: Ditto.
4505 * scripttempl/h8500s.sc: Ditto.
4506 * scripttempl/v850.sc: Ditto.
4507 * scripttempl/w65.sc: Ditto.
4508 * scripttempl/z8000.sc: Ditto.
4510 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4512 * Makefile.in (e_i386_chaos.c): New rule.
4513 (ALL_EMULATIONS): Added e_i386_chaos.o.
4514 * emulparams/elf_i386_chaos.sh: New file.
4515 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4517 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4519 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4520 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4521 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4522 library path suffix.
4523 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4525 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4527 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4528 for consecutive sections.
4530 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4532 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4534 * ld.texinfo: Added notes about this new option.
4536 2000-10-16 Nick Clifton <nickc@redhat.com>
4538 * emultempl/pe.em (_after_open): Add tests of return values from
4539 bfd functions. Emit appropriate error messages if necessary.
4541 2000-10-13 Nick Clifton <nickc@redhat.com>
4543 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4544 local variables - they are not used, but leave in the call to
4545 bfd_canonicalize_symtab.
4546 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4547 pe_dll_search_prefix.
4549 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4551 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4552 (longopts): New --dll-search-prefix option.
4553 (gld_${EMULATION_NAME}_list_options): Document.
4554 (gld_${EMULATION_NAME}_parse_args): Handle.
4555 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4556 dynamically, search for a dll named '<prefix><basename>.dll'
4557 in preference to 'lib<basename>.dll' if --dll-search-prefix
4560 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4562 * ldlang.c (section_already_linked): Set kept_section instead of
4565 2000-10-10 Kazu Hirata <kazu@hxi.com>
4567 * deffile.h: Fix formatting.
4568 * lexsup.c: Likewise.
4571 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4573 * pe-dll.c (make_one): Do not generate code thunk for DATA
4575 (process_def_file): deduce DATA flag for auto-export sumbols.
4577 2000-10-09 Kazu Hirata <kazu@hxi.com>
4579 * ld.h: Fix formatting.
4580 * ldcref.c: Likewise.
4581 * ldctor.h: Likewise.
4582 * ldemul.c: Likewise.
4583 * ldemul.h: Likewise.
4584 * ldexp.c: Likewise.
4585 * ldexp.h: Likewise.
4586 * ldfile.c: Likewise.
4587 * ldfile.h: Likewise.
4588 * ldlang.c: Likewise.
4589 * ldlang.h: Likewise.
4590 * ldmain.c: Likewise.
4591 * pe-dll.c: Likewise.
4593 * pe-dll.c: Revert some formatting fixes.
4595 2000-10-08 Kazu Hirata <kazu@hxi.com>
4597 * pe-dll.c: Fix formatting.
4599 2000-10-05 Kazu Hirata <kazu@hxi.com>
4601 * ldlang.c: Fix formatting.
4603 2000-10-03 DJ Delorie <dj@redhat.com>
4605 * pe-dll.c (fill_edata): initialize entire block
4606 (make_one): fill in correct section.
4608 2000-10-03 Kazu Hirata <kazu@hxi.com>
4610 * ldexp.c: Fix formatting.
4612 2000-10-02 DJ Delorie <dj@redhat.com>
4614 * emultempl/pe.em (gld_*_after_open): detect case where there two
4615 import libraries for same dll; rename one to ensure proper link
4618 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4620 (generate_edata): fix typo
4622 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4624 * scripttempl/crisaout.sc (ENTRY): Now __start.
4625 (.text): Add default setting for __start.
4626 Remove CONSTRUCTORS handling.
4627 (/DISCARD/): Add .gnu.warning.*.
4628 * emulparams/crislinux.sh (ENTRY): Now __start.
4629 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4630 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4631 (ENTRY): Now __start.
4632 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4633 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4635 2000-09-29 Kazu Hirata <kazu@hxi.com>
4637 * deffile.h: Fix formatting.
4639 * ldcref.c: Likewise.
4640 * ldctor.c: Likewise.
4641 * ldctor.h: Likewise.
4642 * ldemul.c: Likewise.
4643 * ldemul.h: Likewise.
4644 * ldexp.c: Likewise.
4645 * ldexp.h: Likewise.
4646 * ldfile.c: Likewise.
4647 * ldfile.h: Likewise.
4648 * ldlang.c: Likewise.
4649 * ldlang.h: Likewise.
4650 * lexsup.c: Likewise.
4652 * pe-dll.c: Likewise.
4654 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4656 * pe-dll.c (process_def_file): Uninitialized data wasn't
4657 exported with --export-all-symbols switch.
4659 2000-09-28 DJ Delorie <dj@redhat.com>
4661 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4662 noname work properly.
4664 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4666 * ld.texinfo (HPPA ELF32): New section.
4668 * emultempl/hppaelf.em (group_size): New.
4669 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4670 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4671 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4672 options to prevent abbreviations matching.
4673 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4674 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4676 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4678 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4679 on the m68*-*-elf target. Make it support COFF input objects.
4681 2000-09-21 Kazu Hirata <kazu@hxi.com>
4683 * ldmain.c: Fix formatting.
4684 * ldmisc.c: Likewise.
4685 * ldver.c: Likewise.
4686 * ldwrite.c: Likewise.
4688 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4690 * ldwrite.c (clone_section): Silence gcc warnings.
4692 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4694 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4695 out of memory failure.
4697 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4698 (clone_section): Handle out of memory failures. Rename var to
4699 avoid c++ reserved word.
4701 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4703 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4704 stub_name param to stub_sec_name.
4705 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4707 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4709 * emultempl/m68kelf.em: New file.
4710 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4711 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4712 * Makefile.in: Regenerate.
4714 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4716 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4719 2000-09-13 Nick Clifton <nickc@redhat.com>
4721 * ldmain.c (multiple_definition): Disable relaxation if
4722 multiple symbol definitions are encountered - otherwise the
4723 linker could abort with an assertion failure.
4725 2000-09-10 Nick Clifton <nickc@redhat.com>
4727 * mri.c: Fix formatting.
4729 2000-09-07 H.J. Lu <hjl@gnu.org>
4731 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4732 * configure: Rebuild.
4734 2000-09-07 H.J. Lu <hjl@gnu.org>
4736 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4737 * Makefile.in: Rebuild.
4739 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4741 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4742 broken list handling. Create __start_SECNAME and __stop_SECNAME
4743 when no place-holder. Add some comments. Test both SEC_CODE and
4744 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4745 Handle case where no output section statement created.
4747 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4749 * configure.tgt (sh-*-linux*): Added.
4750 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4751 * Makefile.in: Rebuilt.
4752 * emulparams/shelf_linux.sh: New file.
4753 * emulparams/shlelf_linux.sh: New file.
4755 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4757 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4758 try shuffling sections when the orphan happens to be the place
4759 holder. Keep count of unique section names generated so we speed
4760 the search for a new name.
4762 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4764 * configure: Rebuilt with new libtool.m4.
4766 2000-09-05 Nick Clifton <nickc@redhat.com>
4768 * Makefile.in: Regenerate.
4769 * aclocal.m4: Regenerate.
4770 * configure: Regenerate.
4771 * config.in: Regenerate.
4772 * po/ld.pot: Regenerate.
4774 * ldint.texinfo: Remove CVS revision marker - it foils local
4777 * emultempl/ticoff.em: Remove extraneous comma.
4779 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4781 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4782 to stub section flags.
4783 (hppa_for_each_input_file_wrapper): New.
4784 (hppa_lang_for_each_input_file): New.
4785 (lang_for_each_input_file): Define to call above.
4786 (multi_subspace): New.
4787 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4788 (PARSE_AND_LIST_PROLOGUE): Define.
4789 (PARSE_AND_LIST_LONGOPTS): Define.
4790 (PARSE_AND_LIST_OPTIONS): Define.
4791 (PARSE_AND_LIST_ARGS_CASES): Define.
4792 (hppaelf_finish): Call elf32_hppa_set_gp.
4793 (hppaelf_set_output_arch): Remove.
4794 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4796 * emulparams/hppalinux.sh (ELFSIZE): Define.
4798 (OTHER_READONLY_SECTIONS): Define.
4800 (GENERATE_SHLIB_SCRIPT): Define.
4802 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4803 to const throughout. Change `void *' to `PTR' throughout.
4804 (lang_memory_default): Function is local to file, add `static'.
4806 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4807 (ehppalinux.c): Likewise.
4808 (earmelf.c): Likewise.
4809 (earmelf_linux.c): Likewise.
4810 (earmelf_linux26.c): Likewise.
4811 * Makefile.in: Regenerate.
4813 * ld.h (ld_config_type): Add unique_orphan_sections.
4814 * lexsup.c (OPTION_UNIQUE): Define.
4815 (ld_options): Add "--unique".
4816 (parse_args): Handle it.
4817 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4818 search for an existing output section if unique_orphan_sections is
4819 set. Make use of bfd_get_unique_section_name rather than
4820 duplicating code here.
4821 * ld.texinfo: Describe --unique.
4823 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4824 optional arg to split-by-file.
4825 (parse_args): Handle them.
4826 * ld.texinfo: Update description of these options.
4827 * ldwrite.c (clone_section): Pass in the section name. Replace
4828 local code with bfd_get_unique_section_name.
4829 (split_sections): Tidy code and comments. Use a list traversal
4830 more appropriate to the list construction. Handle cooked section
4831 sizes. Split when split_by_reloc reached rather than exceeded.
4832 Track section size and split when split_by_file reached. Fix
4833 link_order_tail (even though it's not used).
4834 (ldwrite): Modify condition for calling split_sections to suit
4835 changed split_by_reloc and split_by_file.
4836 * ldmain.c (main): Init config.split_by_reloc and
4837 config.split_by_file to -1.
4838 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4839 Change split_by_file to bfd_size_type.
4841 2000-09-02 Nick Clifton <nickc@redhat.com>
4843 * configure.in: Increase version number to 2.10.91.
4844 * NEWS: Mention new ability to support removal of duplicate DWARF2
4846 * configure: Regenerate.
4847 * aclocal.m4: Regenerate.
4848 * config.in: Regenerate.
4850 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4852 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4854 * scripttempl/elf32avr.sc: Ditto.
4855 * scripttempl/elfd10v.sc: Ditto.
4856 * scripttempl/elfd30v.sc: Ditto.
4857 * scripttempl/elfi370.sc: Ditto.
4858 * scripttempl/elfm68hc11.sc: Ditto.
4859 * scripttempl/elfm68hc12.sc: Ditto.
4860 * scripttempl/elfi386beos.sc: Ditto.
4861 * scripttempl/v850.sc: Ditto.
4863 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4865 * acinclude.m4: Include libtool and gettext macros from the
4867 * aclocal.m4, configure: Rebuilt.
4869 2000-08-25 Nick Clifton <nickc@redhat.com>
4871 * ldlang.c (open_output): When choosing the target for a
4872 particular endianness, do nothing if the target is not
4875 2000-08-25 H.J. Lu <hjl@gnu.org>
4877 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4878 check -rpath nor LD_RUN_PATH for cross link.
4879 * ld.texinfo: Document the change.
4881 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4883 * NEWS: Mention support for CRIS.
4885 2000-08-23 H.J. Lu <hjl@gnu.org>
4887 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4888 the current runpath list from bfd_elf_get_runpath_list ()
4891 2000-08-22 H.J. Lu <hjl@gnu.org>
4893 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4894 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4895 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4896 trace_file_tries is non-zero.
4897 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4898 if trace_file_tries is non-zero.
4900 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4903 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4905 * NEWS: Mention i860 support.
4907 2000-08-14 Andreas Schwab <schwab@suse.de>
4909 * scripttempl/elf.sc: Fix last change to use correct comment
4912 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4914 * scripttempl/elf.sc: Add a comment giving the correspondence
4915 between sections, per-datum sections, and linkonce sections. Make
4916 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4919 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4921 * emulparams/elf32_i860.sh: New file.
4922 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4923 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4924 (eelf32_i860.c): New rule.
4925 * Makefile.in: Regenerate.
4927 2000-08-10 Nick Clifton <nickc@cygnus.com>
4929 * emulparams/mipspe.sh (ENTRY): Add definition.
4931 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4933 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4936 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4938 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4939 the final size of .bss section.
4940 * scripttempl/elfm68hc12.sc: Likewise.
4942 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4944 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4945 gld${EMULATION_NAME}_parse_args for consistency. Combine
4946 lastoptind and prevoptind vars, and keep track of last optind.
4947 (gld_${EMULATION_NAME}_list_options): Rename to
4948 gld${EMULATION_NAME}_list_options.
4950 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4952 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4953 (i586-sco-sysv5uw7.1.0).
4955 2000-07-27 H.J. Lu <hjl@gnu.org>
4957 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4958 (PARSE_AND_LIST_PROLOGUE): New.
4959 (PARSE_AND_LIST_LONGOPTS): Likewise.
4960 (PARSE_AND_LIST_OPTIONS): Likewise.
4961 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4962 (PARSE_AND_LIST_EPILOGUE): Likewise.
4964 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4966 * emultempl/armelf.em: Elide functions common to elf32.em,
4967 ie. most of the file.
4968 (arm_elf_after_open): New. Do arm specific things then call
4969 gld${EMULATION_NAME}_after_open.
4970 (arm_elf_before_allocation): New. Call
4971 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4972 (PARSE_AND_LIST_PROLOGUE): Define.
4973 (PARSE_AND_LIST_SHORTOPTS): Define.
4974 (PARSE_AND_LIST_LONGOPTS): Define.
4975 (PARSE_AND_LIST_OPTIONS): Define.
4976 (PARSE_AND_LIST_ARGS_CASES): Define.
4977 (LDEMUL_AFTER_OPEN): Define.
4978 (LDEMUL_BEFORE_ALLOCATION): Define.
4979 (LDEMUL_BEFORE_PARSE): Define.
4980 (LDEMUL_FINISH): Define.
4982 * emultempl/hppaelf.em: Similarly zap most of this file.
4983 (hppaelf_add_stub_section): Prototype.
4984 (hppaelf_layaout_sections_again): Prototype.
4985 (hook_in_stub): Prototype.
4986 (LDEMUL_SET_OUTPUT_ARCH): Define.
4987 (LDEMUL_FINISH): Define.
4988 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4990 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4991 (EXTRA_EM_FILE): New.
4992 * emulparams/armelf_linux.sh: Likewise.
4993 * emulparams/armelf_linux26.sh: Likewise.
4994 * emulparams/hppalinux.sh: Likewise.
4995 * emulparams/hppaelf.sh: Likewise.
4998 * emultempl/elf32.em: Fix formatting.
4999 (EXTRA_EM_FILE): Source it.
5000 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5001 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5002 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5003 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5004 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5005 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5006 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5007 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5008 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5009 allow functions in this file to be overridden.
5010 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5012 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5014 * emultempl/elf32.em: Reorganize file.
5016 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5018 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5019 specific option to fit 64-bit executable in the lower
5020 31-bit address range. This is done by changing start
5021 address of .interp (the very first section of executable)
5022 and then setting EF_ALPHA_32BIT elf header flag.
5024 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5026 * emultempl/m68kcoff.em: New file.
5027 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5028 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5030 * Makefile.in: Regenerate.
5032 2000-07-20 H.J. Lu <hjl@gnu.org>
5034 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5035 and "disable-new-dtags" to stop getopt from treating -d/-e as
5036 abbreviations for these options.
5038 2000-07-20 H.J. Lu <hjl@gnu.org>
5040 * ld.texinfo: Add documentation for --disable-new-dtags and
5043 * ldmain.c (main): Initialize link_info.new_dtags to false.
5045 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5046 --disable-new-dtags and --enable-new-dtags.
5047 (gld_${EMULATION_NAME}_list_options): Likewise.
5049 2000-07-05 Kenneth Block <krblock@computer.org>
5051 * lexsup.c: Add optional style to demangle switch
5052 * ld.texinfo: Document optional style to demangle switch.
5054 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5056 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5058 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5059 Regenerate dependencies.
5060 * Makefile.in: Rebuild.
5061 * configure.tgt (cris-*-*): New target.
5062 * emulparams/crisaout.sh, emulparams/criself.sh,
5063 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5064 * po/POTFILES.in, po/ld.pot: Regenerate.
5066 2000-07-20 H.J. Lu <hjl@gnu.org>
5068 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5069 Print out ignored -z options.
5071 2000-07-19 H.J. Lu <hjl@gnu.org>
5073 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5074 (PARSE_AND_LIST_PROLOGUE): New.
5075 (PARSE_AND_LIST_LONGOPTS): Likewise.
5076 (PARSE_AND_LIST_OPTIONS): Likewise.
5077 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5079 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5081 * lexsup.c (ld_options): Comment out 'z'.
5082 (parse_args): Likewise.
5084 * emultempl/elf32.em: Include "elf/common.h".
5085 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5087 (gld_${EMULATION_NAME}_list_options): Likewise.
5089 * ld.texinfo: Add documentation for the recognized -z options.
5091 2000-07-19 H.J. Lu <hjl@gnu.org>
5093 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5094 bfd_elf_set_dt_needed_soname ().
5096 2000-07-18 DJ Delorie <dj@cygnus.com>
5098 * pe-dll.c (pe_dll_id_target): check object target name also
5100 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5102 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5103 ${INIT_END} if relocating.
5104 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5106 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5108 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5109 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5110 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5111 errors introduced by the old dynamic lib search order.
5113 2000-07-17 DJ Delorie <dj@cygnus.com>
5115 * pe-dll.c (process_def_file): auto-export data items also
5116 (pe_process_import_defs): also see if _imp_ form needed
5118 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5120 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5121 for dll import libraries
5123 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5125 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5126 gcc 2.95.2 and later.
5128 2000-07-11 Kazu Hirata <kazu@hxi.com>
5130 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5133 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5135 * ldemul.h (struct lang_input_statement_struct): Remove forward
5137 (struct search_dirs): Likewise.
5138 * ldfile.h (struct lang_input_statement_struct): Likewise.
5139 Protect file from multiple inclusion.
5140 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5141 declaration from macro to file scope.
5143 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5144 * ldgram.y: Likewise here.
5145 * ldlang.c: And here.
5146 * ldmain.c: And here.
5147 * mpw-elfmips.c: And here.
5148 * mpw-eppcmac.c: And here.
5149 * emultempl/aix.em: And here.
5150 * emultempl/armcoff.em: And here.
5151 * emultempl/armelf.em: And here.
5152 * emultempl/armelf_oabi.em: And here.
5153 * emultempl/beos.em: And here.
5154 * emultempl/elf32.em: And here.
5155 * emultempl/hppaelf.em: And here.
5156 * emultempl/linux.em: And here.
5157 * emultempl/lnk960.em: And here.
5158 * emultempl/pe.em: And here.
5159 * emultempl/sunos.em: And here.
5160 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5161 * mpw-idtmips.c: Ditto.
5162 * emultempl/generic.em: Ditto.
5163 * emultempl/gld960.em: Ditto.
5164 * emultempl/gld960c.em: Ditto.
5165 * emultempl/mipsecoff.em: Ditto.
5166 * emultempl/ticoff.em: Ditto.
5167 * emultempl/vanilla.em: Ditto.
5169 * pe-dll.c: Include ldfile.h
5170 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5172 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5173 arguments to bfd_elf32_size_dynamic_sections call.
5174 (gldelf32ebmip_place_orphan): Add missing arguments to
5175 lang_leave_output_section_statement call.
5177 2000-07-10 H.J. Lu <hjl@gnu.org>
5179 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5181 (strhash): Likewise.
5182 (compute_dll_image_base): Likewise.
5183 (pe_undef_found_sym): Likewise.
5184 (pe_undef_cdecl_match): Likewise.
5185 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5186 argument "arch" with ATTRIBUTE_UNUSED.
5188 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5190 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5192 From Ryan Bradetich <rbradetich@uswest.net>
5193 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5195 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5197 Changes to create multiple linker stubs, positioned immediately
5198 before the section where they are required.
5199 * emultempl/hppaelf.em: Include elf32-hppa.h.
5200 (stub_sec, file_chain): Delete.
5201 (hppaelf_create_output_section_statements): Don't make a stub
5203 (hook_stub_info): New struct.
5204 (hook_in_stub): New function.
5205 (hppaelf_add_stub_section): New function.
5206 (hppaelf_finish): Do nothing for relocateable links. Modify the
5207 call to elf32_hppa_size_stubs. Move code for updating section
5209 (hppaelf_layaout_sections_again): ..to here, a new function.
5211 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5212 broken list handling. Pass in a pointer to the list.
5213 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5215 (hppaelf_before_parse): Prototype.
5216 (hppaelf_set_output_arch): Prototype.
5217 (hppaelf_create_output_section_statements): Prototype.
5218 (hppaelf_delete_padding_statements): Prototype.
5219 (hppaelf_finish): Prototype.
5222 * emultempl/hppaelf.em: Include ctype.h.
5223 (struct orphan_save): New.
5224 (gld${EMULATION_NAME}_place_orphan): New.
5225 (output_rel_find): New.
5226 (hppaelf_get_script): Update from elf32.em.
5227 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5228 Change emulation_name field to "${EMULATION_NAME}". Add
5229 gld${EMULATION_NAME}_place_orphan.
5231 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5232 ehppalinux.o, sort it. Regenerate dependencies.
5233 (ehppalinux.c): Depend on hppaelf.em
5234 * Makefile.in: Regenerate.
5236 * configure.tgt: targ_emul=hppalinux for hppa*linux
5238 * emulparams/hppalinux.sh: New.
5239 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5241 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5243 * lexsup.c (parse_args): Copy section name.
5245 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5247 * emultempl/pe.em: institute the following search order for
5248 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5249 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5250 static lib (libfoo.a) if none of the above are found.
5252 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5254 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5255 (longopts): New --{enable,disable}-auto-image-base options.
5256 (gld_${EMULATION_NAME}_list_options): Document.
5257 (gld_${EMULATION_NAME}_parse): Handle.
5258 (strhash): New static function.
5259 (compute_dll_image_base): New static function.
5260 (gld_${EMULATION_NAME}_set_symbols): Use.
5262 2000-07-05 DJ Delorie <dj@redhat.com>
5266 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5268 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5269 * emulparams/elf32btsmip.sh: New file.
5270 * Makefile.am: Add traditional mips target.
5271 * Makefile.in: Rebuild.
5273 2000-07-01 H.J. Lu <hjl@gnu.org>
5275 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5276 automake to use YLWRAP.
5277 * Makefile.in: Rebuild.
5279 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5281 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5282 (CLEANFILES): Add DEPA.
5283 * Makefile.in: Regenerate.
5285 2000-06-30 Timothy Wall <twall@ppc>
5287 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5288 the page in the upper octet of the address.
5290 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5292 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5294 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5296 * NEWS: arm-elf does --gc-sections too.
5298 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5300 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5302 * Makefile.in: Regenerate.
5304 2000-06-21 H.J. Lu <hjl@gnu.org>
5306 * Makefile.am: Rebuild dependency.
5307 * Makefile.in: Rebuild.
5309 2000-06-20 H.J. Lu <hjl@gnu.org>
5311 * Makefile.am: Rebuild dependency.
5312 * Makefile.in: Rebuild.
5314 2000-06-20 Timothy Wall <twall@cygnus.com>
5316 * scripttempl/tic54xcoff.sc: New.
5317 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5318 * gen-doc.texi: Add flag for TI COFF.
5319 * ld.texinfo: Add documentation for TI COFF handling switches.
5320 * emultempl/ticoff.em: New. TI COFF handling.
5321 * configure.tgt: Add tic54x target.
5322 * Makefile.am: Add tic54x target.
5323 * Makefile.in: Ditto.
5325 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5327 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5328 checking for backslashes.
5330 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5332 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5334 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5336 * NEWS: Update list of targets supporting --gc-sections.
5338 * scripttempl/elf.sc: KEEP .eh_frame contents.
5339 * scripttempl/elfd30v.sc: Same here.
5341 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5343 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5345 * Makefile.in: Rebuild.
5346 * configure.tgt: Recognize m68hc12 and m68hc11.
5347 * scripttempl/elfm68hc12.sc: New file.
5348 * emulparams/m68hc12elfb: New emulation.
5349 * emulparams/m68hc12elf: New emulation.
5350 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5351 (includes a memory.x script to define the ROM and RAM banks).
5352 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5353 New configuration files for support of Motorola 68hc11
5355 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5357 * ldmain.c (main): Only change SEC_READONLY for final link.
5359 2000-06-13 H.J. Lu <hjl@gnu.org>
5361 * configure: Regenerate.
5363 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5365 * configure.in (VERSION): Update to show this is the CVS mainline.
5367 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5369 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5370 input objects to be ECOFF.
5371 (check_sections): einfo takes %B, not %P, to print a BFD name.
5373 2000-06-05 Michael Matz <matz@ifh.de>
5375 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5378 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5380 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5382 * emulparams/avr1200.sh (STACK): Define as 0.
5383 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5384 * emulparams/avr4433.sh (STACK): Likewise.
5385 * emulparams/avr44x4.sh (STACK): Likewise.
5386 * emulparams/avr85xx.sh (STACK): Likewise.
5387 * emulparams/avrmega103.sh (STACK): Likewise.
5388 * emulparams/avrmega161.sh (STACK): Likewise.
5389 * emulparams/avrmega603.sh (STACK): Likewise.
5390 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5391 (__stack): Define from ${STACK} for main().
5393 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5395 * Makefile.am: Update dependencies with "make dep-am"
5396 * Makefile.in: Regenerate.
5398 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5400 * ldmain.c: Include filenames.h.
5401 (set_scripts_dir): Support backslashes in program name.
5403 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5405 * ldmain.c (main): When deciding if ".text" section should be
5406 read-only, don't forget to reset SEC_READONLY because it
5407 could be already set.
5409 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5411 * ld.1: Add documentation for new command line option:
5412 --section-start <sectionname>=<sectionorg>
5413 This is a generic version of -Ttext etc. which accepts
5414 any section name as a parameter instead of just text/data/
5416 * ld.texinfo: More docs.
5418 * lexsup.c: (parse_args): Recognize new command line option.
5419 (ld_options): Add new option.
5421 2000-05-18 H.J. Lu <hjl@gnu.org>
5423 * lexsup.c (parse_args): `i' == `r', not `q'.
5425 2000-05-18 Jeffrey A Law (law@cygnus.com)
5427 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5429 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5430 Rick Gorton <gorton@scrugs.lkg.dec.com>
5432 Add support for '-q' == '--emit-relocs' switch.
5433 * ldmain.c (main): Default to false.
5434 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5435 * NEWS: Describe the emitrelocations switch.
5436 * ld.texinfo: Describe the emitrelocations switch.
5438 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5440 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5441 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5442 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5445 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5447 * lexsup.c (parse_args): Update the year in the copyright notice.
5449 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5451 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5452 Replace defines with those from intl/libgettext.h to quieten gcc
5455 2000-05-10 H.J. Lu <hjl@gnu.org>
5457 * ldlang.c (open_input_bfds): Don't load the same file within
5458 a group again if the whole archive has been loaded already.
5460 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5462 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5463 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5466 2000-05-01 Jim Wilson <wilson@cygnus.com>
5468 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5470 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5471 host "ia64-*-linux-gnu*".
5473 2000-04-29 Andreas Jaeger <aj@suse.de>
5475 * ld.h: Correctly check GCC version.
5477 2000-04-25 Jeffrey A Law (law@cygnus.com)
5479 * Makefile.am: Add PA64 support. Add missing dependencies for
5481 * Makefile.in: Rebuilt.
5482 * configure.tgt: Add PA64 support (currently disabled).
5484 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5486 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5487 (output_rel_find): New function.
5488 (hold_section, hold_use): Delete.
5489 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5490 hold_interp): Make local to place_orphan.
5491 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5492 rather than place_section to find possible previous use of orphan.
5493 Similarly find the place-holder output sections. Use returned
5494 value from lang_enter_output_section_statement rather than calling
5495 lang_output_section_statement_lookup.
5496 * emultempl/armelf.em: Same here.
5497 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5499 * ldlang.c (lang_enter_output_section_statement): Return output
5501 * ldlang.h (lang_enter_output_section_statement): Change
5504 * ldlang.h (lang_output_section_statement): Export it.
5505 * ldlang.c (lang_output_section_statement): Ditto.
5507 2000-04-24 Nick Clifton <nickc@cygnus.com>
5509 * ld.texinfo (Output Section Data): Add note that section data
5510 commands cannot appear outside of section directives.
5512 2000-04-2 Matthew Green <mrg@cygnus.com>
5514 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5516 2000-04-21 Richard Henderson <rth@cygnus.com>
5517 David Mosberger <davidm@hpl.hp.com>
5519 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5520 (eelf64_ia64.c): New rule.
5521 * Makefile.in: Rebuild.
5522 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5523 * emulparams/elf64_ia64.sh: New file.
5525 2000-04-21 Richard Henderson <rth@cygnus.com>
5527 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5529 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5531 * dep-in.sed: Match space at start of file name, not at end.
5533 2000-04-18 H.J. Lu <hjl@gnu.org>
5535 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5536 lang_leave_output_section_statement () after calling
5537 lang_enter_output_section_statement ().
5538 * emultempl/armelf.em: Likewise.
5540 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5542 * emultempl/elf32.em (struct orphan_save): Add section field.
5543 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5544 better order, and place first orphan section as we did before the
5545 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5546 Don't call make_bfd_section here, let wild_doit do the job for us.
5547 Don't build a statement list when we'll only throw it away.
5548 * emultempl/armelf.em: Ditto.
5549 * emultempl/pe.em: Similarly.
5551 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5553 * scripttempl/elfppc.sc: Remove.
5554 * emulparams/elf32ppc.sh: Use elf.sc.
5555 * emulparams/elf32lppc.sh: Use elf.sc.
5556 * emulparams/elf32ppclinux.sh: Use elf.sc.
5557 * emulparams/elf32ppcsim.sh: New file.
5558 * emulparams/elf32lppcsim.sh: New file.
5559 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5560 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5561 * Makefile.in: Regenerate.
5562 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5564 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5566 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5567 ~SEC_ALLOC sections too. Init start address of debug sections.
5568 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5569 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5570 Also set all relocateable section start addresses.
5572 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5574 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5575 Add new BSS_PLT variable for when .plt need not be contained in
5576 the file. Move _etext so that it is also after .fini, and provide
5577 both etext and _etext with a leading underscore. Mark the start
5580 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5582 * emultempl/elf32.em (struct orphan_save): New.
5583 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5584 hold_interp): Make them struct orphan_save.
5585 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5586 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5587 the end of the relevant section list. Also add associated section
5588 statements to the end of any previous orphan statements.
5589 * emultempl/armelf.em: Similarly.
5590 * emultempl/pe.em: Similarly.
5592 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5594 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5596 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5598 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5599 --enable-build-warnings option.
5600 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5601 * Makefile.in, configure: Re-generate.
5603 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5605 * po/ld.pot: Regenerate.
5607 * lexsup.c (help): Restore translated part of bug string.
5609 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5610 (DEP): Quote when passing vars to sub-make. Add warning message
5612 (DEP1): Rewrite for "gcc -MM".
5613 (CLEANFILES): Add DEP2.
5614 Update dependencies.
5615 * Makefile.in: Regenerate.
5617 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5619 * ld.h: #include "bin-bugs.h"
5620 * lexsup.c (help): Use REPORT_BUGS_TO.
5622 2000-03-27 Denis Chertykov <denisc@overta.ru>
5624 * configure.tgt (avr-*-*): New target support.
5625 * Makefile.am: Likewise.
5626 * scripttempl/elf32avr.sc: New script file.
5627 * emulparams/avr1200.sh: New file.
5628 * emulparams/avr23xx.sh: New file.
5629 * emulparams/avr4433.sh New file.
5630 * emulparams/avr44x4.sh New file.
5631 * emulparams/avr85xx.sh New file.
5632 * emulparams/avrmega103.sh New file.
5633 * emulparams/avrmega161.sh New file.
5634 * emulparams/avrmega603.sh New file.
5635 * Makefile.in: Regenerate.
5637 2000-03-09 Andreas Jaeger <aj@suse.de>
5639 * Makefile.am (check-DEJAGNU): Also unset LANG.
5640 * Makefile.in: Rebuild.
5642 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5644 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5647 2000-03-02 H.J. Lu <hjl@gnu.org>
5649 * emulparams/elf32mcore.sh: Include "getopt.h".
5651 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5653 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5655 2000-03-01 H.J. Lu <hjl@gnu.org>
5657 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5658 * emulparams/shpe.sh: Likewise.
5660 2000-03-01 Nick Clifton <nickc@cygnus.com>
5662 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5663 to unused parameters.
5665 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5666 functions only used by DLL code.
5667 (_place_orphan): Initialise 'dollar'.
5669 2000-03-01 H.J. Lu <hjl@gnu.org>
5671 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5672 indicate if the undefined symbol is a fatal error or not.
5673 Don't delete the output file if "fatal" is false.
5675 2000-02-29 H.J. Lu <hjl@gnu.org>
5677 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5678 Set LC_COLLATE and LC_ALL to null and export them. It is for
5679 sort which expects the C locale.
5680 Add $(LIBS) to all $(HOSTING_LIBS).
5681 * Makefile.in: Rebuild.
5683 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5685 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5686 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5687 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5688 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5689 find_potential_libraries.
5691 2000-02-28 Jim Blandy <jimb@redhat.com>
5693 * ldgram.y (exclude_name_list): Don't require a comma to separate
5694 list entries; the lexer considers commas to be valid part of a
5695 filename, so in something like `foo, bar' the comma is considered
5696 part of the first filename, `foo,'.
5697 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5699 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5701 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5702 host "i[3456]86-*-freebsdelf*".
5704 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5706 * scripttempl/i386go32.sc: Move misplaced semicolons.
5708 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5710 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5711 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5712 (eelf64hppa.c, ehppaelf.c): Remove targets.
5713 * Makefile.in: Rebuild.
5715 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5717 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5718 GNU/Linux/sparc, but keep the default as 32.
5720 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5721 it default if sparcv9 or sparc64.
5723 2000-02-24 Nick Clifton <nickc@cygnus.com>
5725 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5726 * Makefile.in: Regenerate.
5727 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5729 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5730 find_potential_libraries.
5731 * ldemul.c (ldemul_find_potential_libraries): New function.
5733 * ldfile.c (ldfile_open_file_search): Allow function to be
5735 (ldfile_open_file): Call ldemul_find_potential_libraries.
5736 * ldfile.h: Add prototype for ldfile_open_file_search.
5738 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5740 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5741 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5743 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5744 (gld_X_find_potential_libraries): New function. Search for
5745 libraries called "*.lib".
5747 * scripttempl/pe.sc: Add .pdata section.
5749 2000-02-23 Richard Henderson <rth@cygnus.com>
5751 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5752 Add and use memory regions.
5754 2000-02-23 Linas Vepstas (linas@linas.org)
5756 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5758 * Makefile.am: Add support for Linux/IBM 370.
5759 * configure.tgt: Likewise.
5761 * Makefile.in: Regenerate.
5763 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5765 * ldlang.c (print_input_section, print_data_statement,
5766 print_reloc_statement, print_padding_statement, insert_pad,
5767 size_input_section, lang_check_section_addresses,
5768 lang_size_sections, lang_do_assignments, lang_set_startof,
5769 lang_one_common): Change `opb' to unsigned.
5770 (lang_do_assignments): Also change `size' to unsigned.
5772 2000-02-16 Richard Henderson <rth@cygnus.com>
5774 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5776 2000-02-16 Timothy Wall <twall@cygnus.com>
5778 * mri.c (mri_draw_tree): Add default LMA region argument to call
5779 to lang_leave_output_section_statement.
5780 * ldlang.h: Update prototypes with LMA region arguments.
5781 * ldlang.c (lang_size_sections): Encapsulate region bounds
5782 checking in os_check_region call.
5783 (os_check_region): New function.
5784 (lang_output_section_statement_lookup): Initialize lma_region.
5785 (lang_leave_output_section_statement): Add LMA region argument.
5786 (lang_leave_overlay): Ditto.
5787 * ldgram.y: Handle LMA region syntax.
5788 * ld.texinfo (Output Section Description): Describe LMA region usage.
5789 * emultempl/armelf.em (gld$place_orphan): Add default value for
5790 lma region in call to lang_leave_output_section_statement.
5791 * emultempl/elf32.em (gld$place_orphan): Add default value for
5792 lma region in call to lang_leave_output_section_statement.
5793 * emultempl/pe.em (gld$place_orphan): Add default value for
5794 lma region in call to lang_leave_output_section_statement.
5797 2000-02-04 Timothy Wall <twall@redhat.com>
5799 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5800 octets when calculating section end addresses.
5802 2000-02-04 Timothy Wall <twall@redhat.com>
5804 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5806 2000-02-03 Timothy Wall <twall@redhat.com>
5808 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5810 * ldlang.c (print_input_section, print_data_statement,
5811 print_reloc_statement, print_padding_statement): Print target
5812 address values and section sizes as bytes, not octets.
5813 (insert_pad) Calculate padding size in octets, and adjust "dot"
5815 (size_input_section) Always adjust "dot" by bytes, not octets.
5816 (lang_check_section_addresses, lang_do_assignments) Adjust
5817 "dot" by bytes, not octets. Use the larger of the directive size
5818 or octets_per_byte for the number of octets actually allocated in
5820 (lang_set_startof) Make sure STARTOF returns a target address.
5821 (lang_one_common) Record size changes in octets.
5822 (lang_abs_symbol_at_end_of) Section end symbol's value is
5823 recorded in target bytes.
5824 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5825 to be clear about behavior when an octet is smaller than one byte.
5827 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5829 * ldcref.c (output_cref): Don't pass message strings to printf
5833 * ldmisc.c (vfinfo): Same here.
5836 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5838 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5839 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5840 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5841 Add missing NULL initialisers, and comments.
5843 2000-01-21 Nick Clifton <nickc@cygnus.com>
5845 * ldlang.c (lang_size_sections): Fix typo in comment.
5847 2000-01-18 H.J. Lu <hjl@gnu.org>
5849 * ldlang.c (lang_size_sections): Also update the current
5850 address of a region if the SEC_NEVER_LOAD bit is not set.
5852 2000-01-10 Philip Blundell <pb@futuretv.com>
5854 * configure.tgt (arm*-*-conix*): New target.
5856 2000-01-07 Nick Clifton <nickc@cygnus.com>
5858 * ld.texinfo (Options): Remind users to preceed linker command
5859 line switches with -Wl, (or whatever is appropriate) if it is
5860 being invoked by a comnpiler driver program.
5861 Fix description of the behaviour of the -n command line switch.
5863 2000-01-05 Catherine Moore <clm@cygnus.com>
5865 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5867 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5868 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5869 (exclude_name_list): New.
5870 ldlang.c (walk_wild_section): Support list of excluded files.
5871 (print_wild_statement): Likewise.
5872 (lang_add_wild): Likewise.
5873 * ldlang.h (lang_wild_statement_type): Likewise.
5874 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5876 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5878 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5879 (process_def_file): Use.
5880 (pe_dll_compat_implib): New variable.
5883 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5884 pe_dll_compat_implib.
5886 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5887 compat-implib options.
5888 (gld_${EMULATION_NAME}_list_options): List new options.
5889 (gld_${EMULATION_NAME}_parse_args): Handle.
5891 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5894 * deffilep.y (opt_name): Allow "." in name.
5896 For older changes see ChangeLog-9899
5902 version-control: never