1 2003-03-04 Dmitry Diky <diwil@mail.ru>
3 * Makefile.am: Add new devices x1122 x1132 emulation
4 * configure.tgt: Likewise.
5 * Makefile.in: Regenerate.
6 * emulparams/msp430x1122.sh: New file.
7 * emulparams/msp430x1132.sh: New file.
9 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
11 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
14 * ldfile.h (struct search_dirs): Added sysrooted field.
15 * ldlang.h (struct lang_input_statement_struct): Likewise.
16 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
17 (ldfile_open_file_search): Look for sysrooted filename starting
18 with / in ld_sysroot instead of in the current directory. Clear
19 sysrooted flag if it's found in the current directory. Set it
20 from the search directory's sysrooted flag where it is found
22 * ldlang.c (ldlang_sysrooted_script): New static variable.
23 (new_afile): Mark search_file_enums as sysrooted if
24 ldlang_sysrooted_script.
25 (load_symbols): Set ldlang_sysrooted_script according to the
26 script's sysrooted field while processing it.
27 * ld.texinfo: Document INPUT behavior in sysroot.
29 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
31 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
33 2003-03-03 Alan Modra <amodra@bigpond.net.au>
35 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
36 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
37 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
38 PARSE_AND_LIST_EPILOGUE): Don't define.
39 * emultempl/alphaelf.em: New file.
41 2003-03-01 Alan Modra <amodra@bigpond.net.au>
43 * ldemul.c: Include getopt.h.
44 * emultempl/elf32.em: Include getopt.h earlier.
45 * emultempl/ticoff.em: Likewise.
47 2003-02-28 Alan Modra <amodra@bigpond.net.au>
49 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
50 support when scripts read from files.
52 2003-02-28 Alan Modra <amodra@bigpond.net.au>
54 * ldemul.c (ldemul_parse_args): Return FALSE by default.
55 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
58 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
59 (ldemul_parse_args): Return bfd_boolean. Formatting.
60 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
61 (ldemul_parse_args): Adjust.
62 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
63 Return bfd_boolean from parse_args.
64 * lexsup.c (parse_args): Malloc shortopts, longopts and
65 really_longopts. Call ldemul_add_options and ldemul_handle_option.
66 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
67 gld${EMULATION_NAME}_parse_args.
68 (gld${EMULATION_NAME}_handle_option): Likewise.
69 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
70 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
71 * emultempl/beos.em: Likewise.
72 * emultempl/pe.em: Likewise.
73 * emultempl/ticoff.em: Likewise.
74 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
75 (gld${EMULATION_NAME}_add_sysroot): Prototype.
76 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
78 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
79 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
80 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
81 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
83 * emultempl/generic.em: Likewise.
84 * emultempl/gld960.em: Likewise.
85 * emultempl/gld960c.em: Likewise.
86 * emultempl/linux.em: Likewise.
87 * emultempl/lnk960.em: Likewise.
88 * emultempl/m68kcoff.em: Likewise.
89 * emultempl/mipsecoff.em: Likewise.
90 * emultempl/sunos.em: Likewise.
91 * emultempl/vanilla.em: Likewise.
92 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
94 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
96 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
97 memory allocation error.
99 * Makefile.am (ldmain.o): Define TOOLBINDIR.
100 * Makefile.in: Rebuilt.
101 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
103 2003-02-21 Bob Wilson <bob.wilson@acm.org>
105 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
106 call os_region_check when it is set.
107 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
108 lang_size_sections_1.
109 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
110 only for the last call, not on every relaxation iteration.
111 * ldlang.h (lang_size_sections): Update prototype.
112 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
113 to lang_size_sections.
114 (pe_exe_fill_sections): Likewise.
115 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
116 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
117 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
118 (ppc_layout_sections_again): Likewise.
120 2003-02-21 Bob Wilson <bob.wilson@acm.org>
122 * gen-doc.texi: Set ARM and HPPA variables.
123 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
124 title capitalization more consistent. Add missing menu entries for
125 machine-specific sections and conditionalize them consistently.
126 Conditionalize text that is irrelevant when SingleFormat is set.
127 Add @group divisions to improve page breaks in long examples.
128 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
129 is correct. Remove "FIXME" comment about not using
130 @raisesections/@lowersections. Use @raisesections/@lowersections
131 consistently for machine-specific sections. Change to be more polite
132 about poor bug reports. Replace FDL appendix with include of fdl.texi.
133 Move WIN32 node to match its order in the menus.
134 * fdl.texi: New file.
136 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
138 * configure.in (TARGET_SYSTEM_ROOT): Set default to
139 ${exec_prefix}/${target_alias}/sys-root. Match explicit
140 '${exec_prefix}' (in addition to the expansion thereof) as
142 * configure: Rebuilt.
144 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
146 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
148 2003-02-20 Harri Porten <porten@kde.org>
150 * ldgram.y (vers_defns): Allow optional trailing semicolon in
153 2003-02-18 Alan Modra <amodra@bigpond.net.au>
155 * emultempl/ppc32elf.em: New file.
156 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
157 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
158 (eelf32lppcnto.c): Likewise.
159 (eelf32lppcsim.c): Likewise.
160 (eelf32ppcnto.c): Likewise.
161 (eelf32ppc.c): Likewise.
162 (eelf32ppc_fbsd.c): Likewise.
163 (eelf32ppcsim.c): Likewise.
164 (eelf32ppclinux.c): Likewise.
165 * Makefile.in: Regenerate.
167 2003-02-18 Alan Modra <amodra@bigpond.net.au>
169 * ld.texinfo: Remove spaces between @samp and opening brace.
171 2003-02-18 Alan Modra <amodra@bigpond.net.au>
173 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
175 (ppc_before_allocation): Don't do optimizations if wrong hash table.
176 (gld${EMULATION_NAME}_finish): Ditto.
178 2003-02-17 Nick Clifton <nickc@redhat.com>
180 * ldmain.c (main) Default allow_shlib_undefined to true.
181 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
182 (parse_args): Parse the new switch.
183 * ld.texinfo: Document new switch and default behaviour of
184 allowing undefined symbols in shared libraries.
186 2003-02-11 Dmitry Diky <diwil@mail.ru>
188 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
189 * scripttempl/elf32msp430_3.sc: Likewise.
191 2003-02-11 Uwe Stieber <uwe@wwws.de>
193 * configure.tgt: Add support for kaOS as cross build target
196 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
198 * hppaelf.em (group_size): Change default back to 1.
200 2003-02-09 Alan Modra <amodra@bigpond.net.au>
202 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
204 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
206 * hppaelf.em (group_size): Change default to -1.
208 2003-02-07 Nick Clifton <nickc@redhat.com>
210 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
212 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
213 no-pipeline-knowledge. This will prevent the getopt package from
214 thinking that there are any shorter abbreviations for
215 --no-pipeline-knowledge.
217 2003-02-07 Jakub Jelinek <jakub@redhat.com>
219 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
220 which already have it. Avoid duplicates.
222 2003-02-06 Jakub Jelinek <jakub@redhat.com>
224 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
225 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
226 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
228 2003-02-05 Alan Modra <amodra@bigpond.net.au>
230 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
231 call ppc64_elf_tls_optimize.
233 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
235 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
236 outside of GNU/Linux conditional.
238 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
240 * deffilep.y (def_get_module): New function: locate an already
242 * deffile.h (def_get_module): New prototype.
243 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
244 a dll multiple times.
246 2003-01-23 Alan Modra <amodra@bigpond.net.au>
248 * emultempl/sh64elf.em: Include elf32-sh64.h.
249 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
250 sh64_elf_section_data.
251 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
253 2003-01-23 Wu Yongwei <adah@netstd.com>
255 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
256 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
257 cross-80th-column-margin "an" to the next line.
259 2003-01-21 Nick Clifton <nickc@redhat.com>
261 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
262 * emulparams/tic3xcoff_onchip.sh: ...this.
263 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
264 * Makefile.in: Regenerate.
266 2003-01-21 Fabio Alemagna <falemagn@aros.org>
268 * configure.tgt: Handle i[3456]86-*-aros*
270 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
272 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
273 * Makefile.in: Regenerate
274 * configure.tgt: Added extra target emulations
275 * emulparams/tic3xcoff.sh: Remove old settings
276 * emulparams/tic4xcoff.sh: Ditto
277 * emulparams/tic3xcoff-onchip.sh: Added new
278 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
279 * scripttempl/tic3xcoff.sc: Remove
281 2003-01-17 Andreas Jaeger <aj@suse.de>
283 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
286 2003-01-16 Alan Modra <amodra@bigpond.net.au>
288 * Makefile.in: Regenerate.
290 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
292 * ld/ld.texinfo (node WIN32): Some clarifications
293 and formatting fixups.
295 2003-01-09 Chris Demetriou <cgd@broadcom.com>
297 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
298 order, and handle (ignore) -mips32r2.
300 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
302 * ldmain.c (main): Make sure ld_sysroot is initialized.
304 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
306 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
308 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
309 (GENSCRIPTS): Add @use_sysroot@.
310 * Makefile.in: Regenerated.
311 * configure.host: Move setting of NATIVE_LIB_DIRS to...
312 * configure.tgt: ... here. Use ${target} instead of ${host}
314 * configure.in: Add --with-sysroot.
315 * configure: Regenerated.
316 * genscripts.sh: Accept use_sysroot option. Set new variables
317 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
318 $use_sysroot. Don't search $tool_lib if $use_sysroot.
319 * ldfile.c (ldfile_add_library_path): Handle leading '='.
320 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
321 (ld_sysroot): New variable.
322 (main): Initialize ld_sysroot.
323 * ldmain.h (ld_sysroot): New extern.
324 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
325 searching $EMULATION_LIBPATH.
326 (gld${EMULATION_NAME}_add_sysroot): New function.
327 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
328 (gld${EMULATION_NAME}_after_open): Likewise. Only search
329 environment variables if $NATIVE.
330 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
331 * NEWS: Mention --with-sysroot.
333 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
334 instead of setting LIB_PATH.
335 * emulparams/elf32ppc.sh: Likewise.
336 * emulparams/elf64_s390.sh: Likewise.
337 * emulparams/elf64_sparc.sh: Likewise.
338 * emulparams/elf64ppc.sh: Likewise.
339 * emulparams/elf_x86_64.sh: Likewise.
341 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
342 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
344 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
346 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
348 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
350 * Makefile.am (ldmain.o): Pass BINDIR.
351 * Makefile.in: Regenerated.
352 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
355 2003-01-02 Ben Elliston <bje@redhat.com>
357 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
358 (eelf32iq2000.c): New target.
359 * Makefile.in: Regenerate.
360 * configure.tgt: Handle iq2000-*-elf.
361 * emulparams/elf32iq10.sh: New file.
362 * emulparams/elf32iq2000.sh: New file.
363 * scripttempl/iq2000.sc: New file.
365 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
367 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
368 and _pei386_runtime_relocator to the exclude list.
370 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
372 * ldfile.c: Fix comment typos.
373 * ldlang.c: Likewise.
375 * pe-dll.c: Likewise.
377 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
379 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
380 * Makefile.am (ld.1): Depend on configdoc.texi
382 * Makefile.in: Regenerated.
384 2002-12-24 Dmitry Diky <diwil@mail.ru>
386 * Makefile.am: Add msp430 target.
387 * configure.tgt: Likewise.
388 * Makefile.in: Regenerate.
389 * emulparams/msp430x???.sh: New files. Linker script parameters
390 for various msp430 configurations.
391 * gen-doc.texi: Enable msp430 documenation.
392 * ld.texinfo: Document msp430 sections.
393 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
394 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
396 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
397 Charles Wilson <cwilson@ece.gatech.edu>
399 * ld/config.in (HAVE_REALPATH): New entry.
400 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
402 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
404 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
407 2002-12-23 Alan Modra <amodra@bigpond.net.au>
409 * ldmain.c (main): Init "strip_discarded".
410 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
411 (OPTION_NO_STRIP_DISCARDED): Define.
412 (ld_options): Add "strip-discarded" and "no-strip-discarded".
413 (parse_args): Handle them.
415 2002-12-23 Nick Clifton <nickc@redhat.com>
417 * ld.h (struct args_type): Add new field
418 'accept_unknown_input_architecture'.
419 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
421 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
422 bfd_arch_get_compatible.
423 * ldfile.c (ldfile_try_open_bfd): Likewise.
424 * lexsup.c (ld_options): Add new command line switch
425 --accept-unknown-input-architecture and its inverse.
426 (parse_args): Handle --accept-unknown-input-architecture.
427 * ld.texinfo: Document new linker option.
428 * NEWS: Mention new linker option.
430 2002-12-20 Alan Modra <amodra@bigpond.net.au>
432 * ldmain.c (main): Re-order link_info initialization. Init all
435 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
437 * ld.texinfo: Clarify and extend the documentation
438 in the Machine Dependent, WIN32 section.
440 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
442 * ld.texinfo: Add win32 machine depending section.
443 * gen-doc.texi: Enable win32 machine depending section.
445 * configure.host: Add win32 library search path.
447 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
449 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
450 import when auto-import is disabled.
452 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
454 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
455 account for trailing '\0'.
457 2002-12-17 Nick Clifton <nickc@redhat.com>
459 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
460 so that it is not confused with -c.
462 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
463 Charles Wilson <cwilson@ece.gatech.edu>
465 * configure.in: Add check for realpath function.
466 * configure: Regenerate.
467 * config.in: Regenerate.
468 * aclocal.m4: Regenerate.
469 * deffile.h: Add .data field to def_file_import
471 * pe-dll.c (pe_proces_import_defs): Use .data field of
472 def_file_import structure to initialize flag_data field of
473 def_file_export structure.
474 (pe_implied_import_dll): New variables exp_funcbase and
475 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
476 not filename (which may be a symlink). Scan the sections and
477 initialize [data|bss]_[start|end]. When scanning the export
478 table, skip _nm_ symbols, and mark any symbols whose rva indicates
479 that it is in the .bss or .data sections as data.
480 * sysdep.h: Include limits.h and sys/param.h, and define
481 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
482 exists, NULL otherwise.
483 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
484 pe_process_import_defs before pe_find_data_imports, so that
485 auto-import will check the virtual implib as well as "real"
487 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
488 symlinks to their target; check that the target's extension is
489 .dll before calling pe_implied_import_dll(), not the filename
490 itself (which may be a symlink).
492 2002-12-10 Alan Modra <amodra@bigpond.net.au>
494 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
495 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
498 2002-12-08 Alan Modra <amodra@bigpond.net.au>
500 * ldlang.h: Formatting.
502 2002-12-07 Alan Modra <amodra@bigpond.net.au>
504 * ldlang.c (init_os): Ensure sections mentioned in load_base
507 2002-12-05 Alan Modra <amodra@bigpond.net.au>
509 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
510 load_base for orphans that follow a section with load_base set.
512 2002-12-01 H.J. Lu <hjl@gnu.org>
514 * ld.texinfo: Remove the extra `;' in sample version script.
516 2002-11-30 Alan Modra <amodra@bigpond.net.au>
518 * configure.host: Correct dynamic-linker for powerpc64 hosts.
520 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
521 * Makefile.in: Regenerate.
523 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
524 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
525 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
526 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
527 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
528 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
529 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
530 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
531 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
532 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
533 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
534 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
535 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
537 2002-11-27 David O'Brien <obrien@FreeBSD.org>
539 * configure.host: Fix generic FreeBSD configuration entry.
541 2002-11-27 H.J. Lu <hjl@gnu.org>
543 * ld.texinfo: Add the missing `;' to sample version scripts.
545 2002-11-20 Alan Modra <amodra@bigpond.net.au>
547 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
549 2002-11-14 Egor Duda <deo@logos-m.ru>
551 * ldmain.c (main): Make runtime relocs disabled by default. Remove
552 assignment which has no effect.
553 * pe-dll.h (pe_create_import_fixup): Change prototype.
554 * pe-dll.c (make_runtime_pseudo_reloc): New function.
555 (pe_create_runtime_relocator_reference): Ditto.
556 (pe_create_import_fixup): Handle relocations with non-zero addends.
557 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
558 --disable-runtime-pseudo-reloc.
559 (make_import_fixup): Handle relocations with non-zero addends. Create
560 an external reference to _pei386_runtime_relocator symbol if at least
561 one pseudo reloc was created.
562 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
563 --disable-runtime-pseudo-reloc options.
565 2002-11-12 Earl Chew <earl_chew@agilent.com>
567 * ldlang.c (lang_add_section): Discard debugging sections that have
568 been marked SEC_EXCLUDE.
570 2002-11-12 Nick Clifton <nickc@redhat.com>
572 * configure.in (ALL_LINGUAS): Add da.
573 * configure: Regenerate.
574 * po/da.po: New Danish translation.
576 2002-11-12 Alan Modra <amodra@bigpond.net.au>
578 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
579 (LDEMUL_BEFORE_ALLOCATION): Define.
580 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
582 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
584 2002-11-11 Christopher Faylor <cgf@redhat.com>
586 * configure.tgt (LIB_PATH): Default to searching w32api directory under
589 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
591 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
592 of restricted auto-export libs.
594 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
596 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
597 creative library naming instances like, e.g., libstdc++-2.a.
599 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
601 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
602 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
604 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
606 * deffilep.y (def_lex): Handle '@' as first character of an ID.
607 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
608 (make_one): Don't prefix decorated fastcall symbols with '_'.
609 (pe_process_import_defs): Likewise.
610 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
611 symbols to cdecl names or vise-versa.
613 2002-10-13 Eric Kohl <ekohl@rz-online.de>
615 * pe-dll.c (process_def_file): Handle fastcall symbols when
616 generating undecorated aliases. Don't prefix decorated fastcall
618 (fill_exported_offsets): Don't prefix decorated fastcall symbols
621 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
623 * emultempl/aix.em: Use include <> for generated headers.
624 * emultempl/beos.em: Likewise.
625 * emultempl/elf32.em: Likewise.
626 * emultempl/pe.em: Likewise.
627 * ldctor.c: Likewise.
629 * ldfile.c: Likewise.
630 * ldlang.c: Likewise.
633 * ldmain.c: Likewise.
634 * ldmisc.c: Likewise.
635 * ldwrite.c: Likewise.
636 * lexsup.c: Likewise.
638 * pe-dll.c: Likewise.
640 2002-10-23 Jakub Jelinek <jakub@redhat.com>
642 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
643 sections into .rel{,a}.dyn.
645 2002-10-23 Nick Clifton <nickc@redhat.com>
647 * lexsup.c (OPTION_NO_OMAGIC): Define.
648 (ld_options): Add "no-omagic" option.
649 (parse_args): Parse --no-omagic.
650 * ld.texinfo: Document --no-omagic.
651 * NEWS: Mention new option.
653 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
655 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
656 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
658 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
660 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
661 emulation name. Set LIB_PATH only for native tools, and
662 search the ABI-specific versions of NATIVE_LIB_DIRS before the
663 .../lib variants, not instead of them. Mostly copied from...
664 * emulparams/elf32ppc.sh: ... here. Fixed typo.
665 * emulparams/elf64bmip-defs.sh: Backed out.
666 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
667 * emulparams/elf64btsmip.sh: Likewise.
668 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
669 TEXT_DYNAMIC): Removed.
671 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
673 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
674 (GENERATE_SHLIB_SCRIPT): Set to yes.
675 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
676 * emulparams/elf32bmipn32.sh: here.
677 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
678 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
679 * emulparams/elf64bmip-defs.sh: New file. Extend
680 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
681 * emulparams/elf64bmip.sh: Bring in definitions from
683 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
685 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
686 * emulparams/elf64btsmip.sh: Bring in definitions from
688 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
689 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
691 2002-10-16 Jakub Jelinek <jakub@redhat.com>
693 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
694 (s390-*-linux*): Add elf64_s390 emulation if want64.
695 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
696 genscript.sh changes.
697 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
698 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
700 2002-10-15 Alan Modra <amodra@bigpond.net.au>
702 * ldlang.c (load_symbols): Revert last change.
704 2002-10-14 Alan Modra <amodra@bigpond.net.au>
706 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
708 (lang_reasonable_defaults): Don't compare against false.
709 (size_input_section): Likewise.
710 (lang_size_sections_1): Likewise.
711 (lang_do_assignments): Likewise.
712 (lang_add_output): Likewise.
714 * Makefile.am: Run "make dep-am".
715 * Makefile.in: Regenerate.
716 * ldver.c: #include "bfdver.h".
718 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
720 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
722 * scripttempl/elfm68hc12.sc: Likewise.
724 2002-10-11 Alan Modra <amodra@bigpond.net.au>
726 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
728 * ldgram.y (memory_spec): Provide empty action.
729 (section <NAME>): Likewise.
731 2002-10-10 Jakub Jelinek <jakub@redhat.com>
733 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
734 they have OUTPUT_FORMAT not matching actual output format.
735 * ldlang.c (lang_get_output_target): New function.
736 (open_output): Use it.
737 * ldlang.h (lang_get_output_target): New prototype.
739 2002-10-10 Alan Modra <amodra@bigpond.net.au>
741 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
742 when orphan is .rel, .rela when orphan is .rela.
743 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
744 first. Remove outsecname var.
746 2002-10-09 Richard Shann <richard.shann@superh.com>
747 Stephen Clarke <stephen.clarke@superh.com>
749 * Makefile.am: Add eshelf32_linux.o and
750 eshlelf32_linux.o, new emulations for sh64 Linux.
751 * Makefile.in: Regenerate.
752 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
753 * emulparams/shelf32_linux.sh: New file.
754 * emulparams/shlelf32_linux.sh: New file.
756 2002-10-08 H.J. Lu <hjl@gnu.org>
758 * ldlang.c (lang_file_exist): Removed.
759 (new_afile): Revert the last change.
760 * ldlang.h (lang_file_exist): Removed.
761 * lexsup.c (parse_args): Revert the last change.
763 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
765 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
767 (make_one): Create _nm_<symbol> for data only.
769 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
771 * ldlang.c (lang_file_exist): New function.
772 (new_afile): Abort if the filename to be added matches the linker
774 * ldlang.h: Add prototype for lang_file_exist.
775 * lexsup.c (parse_args): Abort if the output filename matches
776 one of the input filenames.
778 2002-10-02 Alan Modra <amodra@bigpond.net.au>
780 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
782 2002-09-30 Alan Modra <amodra@bigpond.net.au>
784 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
785 * scripttempl/elfm68hc11.sc: Likewise.
786 * scripttempl/elfm68hc12.sc: Likewise.
788 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
789 reloc sections just before .rel.plt/.rela.plt.
790 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
791 Only put loadable reloc sections in hold_rel.
793 2002-09-29 H.J. Lu <hjl@gnu.org>
795 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
797 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
799 From "Anita Kulkarni" <AnitaK@kpit.com>
800 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
803 2002-09-25 Alan Modra <amodra@bigpond.net.au>
805 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
807 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
808 SEGMENT_SIZE alignment.
809 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
810 (SEGMENT_SIZE): Define.
812 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
813 (fold_binary): Correct abs - non-abs case.
814 (fold_trinary): New. Split out from exp_fold_tree.
816 2002-09-24 Alan Modra <amodra@bigpond.net.au>
818 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
819 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
820 for start of .data, instead align up to 256M boundary.
821 * scripttempl/aix.sc: Likewise.
823 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
825 * scripttempl/i386go32.sc: Handle bss unique sections.
827 2002-09-21 Alan Modra <amodra@bigpond.net.au>
829 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
831 2002-09-17 Stan Cox <scox@redhat.com>
833 * emulparams/elf32bmipn32-defs.sh: New file.
834 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
835 * emulparams/elf32btsmipn32.sh: Likewise.
836 * emulparams/elf64bmip.sh: Likewise.
837 * emulparams/elf64btsmip.sh: Likewise.
839 2002-09-16 Bruno Haible <bruno@clisp.org>
841 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
843 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
846 2002-09-11 Nick Clifton <nickc@redhat.com>
848 * NEWS: New TI port supports both C4x and C3x series of DSPs.
850 * po/tr.po: Updated Turkish translation.
852 2002-09-06 Jeffrey A Law (law@redhat.com)
854 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
856 2002-09-02 Nick Clifton <nickc@redhat.com>
858 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
860 * emulparams/v850.sh (TEMPLATE_NAME): Define.
862 2002-08-30 Nick Clifton <nickc@redhat.com>
864 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
865 used. Change INSN to start at 0x01000000 and extend for
866 256K (ignoring holes). Start the STACK on a word aligned
868 (.rodata): Start it at the READONLY_START_ADDR.
870 2002-08-30 Alan Modra <amodra@bigpond.net.au>
872 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
874 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
876 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
877 added makefile targets for this file.
878 * Makefile.in: Regenerate.
879 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
880 * NEWS: Mention new port.
882 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
884 * emulparams/tic3xcoff.sh: New file.
885 * emulparams/tic4xcoff.sh: New file.
886 * scripttempl/tic3xcoff.sc: New file.
887 * scripttempl/tic4xcoff.sc: New file.
889 2002-08-28 Alan Modra <amodra@bigpond.net.au>
891 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
892 strtoul and strtoull with bfd_scan_vma.
893 (gld${EMULATION_NAME}_read_file): Likewise.
895 2002-08-28 Alan Modra <amodra@bigpond.net.au>
897 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
899 2002-08-27 Egor Duda <deo@logos-m.ru>
901 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
902 Add symbols for application to access them.
904 2002-08-27 Nick Clifton <nickc@redhat.com>
906 * emultempl/armelf.em: Revert this patch, it is not needed.
908 2002-08-22 Adam Nemet <anemet@lnxw.com>
910 2002-08-20 Dan Kegel <dank@kegel.com>
912 * configure.in: added --with-lib-path argument to ld's configure
914 * ld/NEWS: Document new switch.
915 * ld/README: Mention new switch.
916 * configure: Regenerate.
917 * Makefile.in: Regenerate.
920 2001-04-25 Christopher Faylor <cgf@cygnus.com>
922 * Makefile.in (LIB_PATH): Make configurable.
923 (GENSCRIPTS): Set LIB_PATH in environment.
924 * configure.in: Substitute LIB_PATH.
926 2002-08-22 Adam Nemet <anemet@lnxw.com>
928 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
929 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
930 depending on the type of the function.
931 (arm_elf_convert_thumb_symbol_to_address): New function.
933 2002-08-22 Graeme Peterson <gp@qnx.com>
935 * Makefile.am: Add esh{l}elf_nto.o files.
936 * Makefile.in: Regenerate.
937 * configure.tgt: Add support for sh-**-nto* targets.
938 * emulparams/shelf_nto.sh: New file.
939 * emulparams/shlelf_nto.sh: New file.
941 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
943 * ldlang.c (offsetof): Define if not defined.
945 2002-08-14 H.J. Lu <hjl@gnu.org>
947 * configure.tgt: Always enable 64bit emulations for 32bit
950 2002-08-13 Alan Modra <amodra@bigpond.net.au>
952 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
953 (MAXPAGESIZE): Set to 1.
955 * ld.h (ALIGN_N): Delete.
956 * ldexp.h (align_n): Declare.
957 * ldexp.c (align_n): New function.
958 (fold_binary): Use align_n instead of ALIGN_N.
959 (exp_fold_tree): Likewise.
960 * ldlang.c (lang_size_sections_1): Likewise.
961 (lang_one_common): Likewise.
962 * ld.texinfo (ALIGN): Remove power of 2 restriction.
964 2002-07-31 Graeme Peterson <gp@qnx.com>
966 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
967 * Makefile.am: Add eelf32{l}ppcnto.o files.
968 * Makefile.in: Regenerate.
969 * emulparams/elf32lppcnto.sh: New file.
970 * emulparams/elf32ppcnto.sh: New file.
972 2002-08-07 H.J. Lu <hjl@gnu.org>
974 * ld.texinfo: Document --no-undefined-version.
976 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
977 `script.' fields to 0.
979 * ldmain.c (main): Initialize the allow_undefined_version to
982 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
983 (ld_options): Add --no-undefined-version.
984 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
986 2002-08-07 Nick Clifton <nickc@redhat.com>
988 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
989 an interworking bfd if there are input bfds. (107501)
991 2002-08-06 Alan Modra <amodra@bigpond.net.au>
993 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
996 2002-08-01 Nick Clifton <nickc@redhat.com>
998 * emulparams/armelf.sh: Revert previous delta.
999 * scripttempl/elf.sc: Revert previous delta.
1001 2002-07-31 H.J. Lu <hjl@gnu.org>
1003 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1004 --enable-64-bit-bfd.
1006 2002-07-31 H.J. Lu <hjl@gnu.org>
1008 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1009 64bit BFD is selected.
1011 2002-07-31 H.J. Lu <hjl@gnu.org>
1013 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1014 if 64bit BFD is selected.
1016 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1018 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1019 link_info.common_skip_ar_aymbols.
1020 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1022 * ldmain.c (main): Initialize new field
1023 link_info.common_skip_ar_aymbols.
1025 2002-07-31 Adam Nemet <anemet@lnxw.com>
1027 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1029 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1032 2002-07-31 Nick Clifton <nickc@redhat.com>
1034 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1035 of the PDP-11 and 2.11BSD a.out support.
1037 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1039 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1040 for n32 ABI support.
1041 * Makefile.in: Regenerate.
1042 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1043 n32 ABI emulations for these 64 bit targets.
1044 * emulparams/elf32bmipn32.sh: Expand comment.
1045 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1047 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1049 2002-07-30 Graeme Peterson <gp@qnx.com>
1051 * configure.tgt: Add support for arm-*-nto target.
1052 * Makefile.am: Add earmnto.o file.
1053 * Makefile.in: Regenerate.
1054 * NEWS: Mention port of ARM support to QNX.
1055 * emulparams/armnto.sh: New file.
1057 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1059 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1060 for relocatable link.
1061 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1064 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1066 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1069 2002-07-25 Nick Clifton <nickc@redhat.com>
1071 * po/sv.po: Updated Swedish translation.
1072 * po/es.po: Updated Spanish translation.
1073 * po/fr.po: Updated French translation.
1075 2002-07-24 Nick Clifton <nickc@redhat.com>
1077 * po/sv.po: Updated Swedish translation.
1078 * po/es.po: Updated Spanish translation.
1080 2002-07-23 Nick Clifton <nickc@redhat.com>
1082 * po/fr.po: Updated French translation.
1084 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1086 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1087 bomb on /DISCARD/ input section.
1088 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1089 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1091 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1093 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1096 2002-07-16 Denis Chertykov <denisc@overta.ru>
1097 Nick Clifton <nickc@redhat.com>
1098 Frank Ch. Eigler <fche@redhat.com>
1099 John Healy <jhealy@redhat.com>
1101 * configure.tgt: Add support for ip2k-elf.
1102 * Makefile.am: Add support for ip2k-elf.
1103 * Makefile.in: Regenerate.
1104 * emulparams/elf32ip2k.sh: New file.
1105 * scripttempl/ip2k.sc: New file
1106 * NEWS: Mention support for new port.
1108 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1110 * NEWS: Add 'Changes in 2.13'.
1112 2002-07-14 H.J. Lu <hjl@gnu.org>
1114 * ld.texinfo: Document a .symver takes precedence over a
1117 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1119 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1120 (COMMONPAGESIZE): Define.
1122 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1124 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1126 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1128 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1129 powerpc-*-openbsd* and sparc64-*-openbsd*.
1130 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1131 * Makefile.in: Regenerate.
1132 * emulparams/hppaobsd.sh: New file.
1134 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1136 * ldlang.c (print_wild_statement): Fix output formatting.
1138 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1140 * ldlang.c: (strip_excluded_output_sections): New function.
1141 (lang_process): Call it.
1142 (lang_size_sections_1): Revert 2002-06-10 change.
1144 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1146 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1148 * Makefile.in: Regenerate.
1150 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1152 * ldfile.c (ldfile_try_open_bfd): Formatting.
1154 * ldmisc.c (demangle): Move so that it doesn't intrude between
1155 vfinfo comment and body. Add comment.
1157 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1159 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1161 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1163 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1164 * ldlang.c (entry_sym): Likewise.
1165 (ldlang_undef_chain_list_type): Likewise.
1166 (lang_finish): Adjust references to entry_symbol.
1167 (lang_add_entry): Likewise.
1168 (lang_gc_sections): Use link_info.gc_sym_list.
1169 (lang_process): Set link_info.gc_sym_list.
1170 * ldlex.l: Include bfdlink.h.
1171 * ldmain.c (main): Init link_info.gc_sym_list.
1172 * emultempl/aix.em: Adjust references to entry_symbol.
1173 * emultempl/armcoff.em: Likewise.
1174 * emultempl/armelf.em: Likewise.
1175 * emultempl/pe.em: Likewise.
1176 * emultempl/ppc64elf.em (ppc_after_open): New function.
1177 (LDEMUL_AFTER_OPEN): Define.
1178 * emulparams/elf64ppc.sh: KEEP .opd sections.
1180 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1182 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1183 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1184 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1185 (EEPROM_START_ADDR): Define.
1186 (EEPROM_MEMORY): Define.
1187 * emulparams/m68hc12elf.sh: Likewise.
1188 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1189 section to put soft registers in .page0.
1190 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1192 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1194 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1195 section. Add ${RELOCATING-0}.
1197 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1199 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1200 (OTHER_SECTIONS): Define.
1201 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1202 (OTHER_SECTIONS): Undef.
1204 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1206 * ldmisc.c (demangle): Restore dots stripped from sym name.
1208 2002-06-25 H.J. Lu <hjl@gnu.org>
1210 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1211 * Makefile.in: Regenerated.
1213 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1215 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1216 the size of attached object files, to allow make the object files
1217 available via FTP or HTTP and to mention that the mail will be
1218 sent to a mailing list.
1220 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1222 * ld/configure.host (romp): Drop support.
1224 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1226 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1227 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1229 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1231 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1232 format specifier used to print BFD name.
1234 2002-06-18 Dave Brolley <brolley@redhat.com>
1236 From Catherine Moore, Michael Meissner, Jim Blandy:
1237 * emulparams/elf32frv.sh: New file.
1238 * configure.tgt: Support frv-*-*.
1239 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1240 (eelf32frv.c): New target.
1242 2002-06-17 Tom Rix <trix@redhat.com>
1244 * emultempl/elf32.em: gld*_get_script: Check for
1245 GENERATE_COMBRELOC_SCRIPT.
1246 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1247 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1249 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1251 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1253 2002-06-12 H.J. Lu <hjl@gnu.org>
1255 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1256 false if xvec doesn't match.
1258 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1260 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1262 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1264 * ldexp.c: Replace CONST with const.
1265 * ldfile.c: Likewise.
1266 * ldfile.h: Likewise.
1267 * ldlex.l: Likewise.
1269 * pe-dll.h: Likewise.
1271 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1273 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1275 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1277 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1278 to -1 == implicit enable.
1279 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1280 initialize link_info.pei386_auto_import to -1 == implicit
1282 (gld_${EMULATION_NAME}_parse_args): When processing
1283 --enable-auto-import and --disable-auto-import options, use
1284 '1' and '0' instead of 'true' and 'false'.
1285 (pe_find_data_imports): Only issue message about auto-import
1286 when the feature is implicitly enabled. Downgrade message to
1287 informational instead of warning.
1289 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1291 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1293 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1295 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1296 HOSTING_CRT0 and HOSTING_LIBS.
1298 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1300 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1302 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1304 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1305 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1307 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1309 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1310 SEC_EXCLUDE sections when doing a relocatable link.
1312 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1314 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1315 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1316 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1317 (eshlelf64_nbsd.c): New rules.
1318 * Makefile.in: Regenerate.
1319 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1320 (sh64-*-netbsd*): New targets.
1321 * emulparams/shelf32_nbsd.sh: New file.
1322 * emulparams/shelf64_nbsd.sh: New file.
1323 * emulparams/shlelf32_nbsd.sh: New file.
1324 * emulparams/shlelf64_nbsd.sh: New file.
1326 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1328 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1330 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1332 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1333 C++ constructors/destructors, loosely based on the m68hc11 port.
1335 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1337 * Makefile.in: Regenerate.
1338 * aclocal.m4: Regenerate.
1339 * config.in: Regenerate.
1340 * configure: Regenerate.
1342 2002-05-31 Graeme Peterson <gp@qnx.com>
1344 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1345 (ei386nto.c): Add rule.
1346 * Makefile.in: Regenerate.
1347 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1348 * emulparams/i386nto.sh: New file.
1350 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1352 * NEWS: Add entry for VAX ELF support.
1354 2002-05-29 Matt Thomas <matt@3am-software.com>
1355 Jason Thorpe <thorpej@wasabisystems.com>
1357 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1359 (evaxnbsd.c): New rules.
1360 * Makefile.in: Regenerate.
1361 * configure.tgt (vax-*-netbsdelf*)
1363 (vax-*-netbsd*): New targets.
1364 * emulparams/elf32vax.sh: New file.
1365 * emulparams/vaxnbsd.sh: New file.
1367 2002-05-29 Adam Nemet <anemet@lnxw.com>
1369 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1370 bfd_for_interwork, instead add glue sections to each input bfd.
1371 (bfd_for_interwork): New global.
1372 (arm_elf_set_bfd_for_interworking): New function.
1373 (arm_elf_before_allocation): Use it.
1375 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1377 * Makefile.am: Add DLX make target.
1378 * configure.tgt: Add DLX configuration.
1379 * Makefile.in: Regenerate.
1380 * emulparams/elf32_dlx.sh: New file
1381 * scripttempl/dlx.sc: New file
1383 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1385 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1386 * Makefile.in: Regenerate.
1387 * emulparams/elf_chaos.sh: Use elf_chaos script.
1388 * scripttempl/elf_chaos.sc: New file.
1390 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1392 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1393 addresses and regions from here...
1394 (lang_get_regions): ...to this new function.
1395 (lang_leave_output_section_statement): Use lang_get_regions.
1396 (lang_leave_overlay): Likewise.
1397 * mri.c (mri_draw_tree): Pass null as last argument to
1398 lang_leave_output_section_statement.
1399 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1400 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1401 * emultempl/pe.em (gld*_place_orphan): Likewise.
1403 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1405 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1407 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1409 * ldemul.c: Fix formatting.
1410 * ldfile.c: Likewise.
1411 * pe-dll.c: Likewise.
1412 * pe-dll.h: Likewise.
1414 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1416 * ldlang.c (lang_process): Formatting, grammar.
1418 * ldlex.l: Use #include "" instead of <> for local header files.
1420 2002-05-24 TAMURA Kent <kent@netbsd.org>
1422 * configure.tgt: Add a target for i386-netbsdpe.
1424 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1426 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1427 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1428 output section if necessary. Handle .tbss.
1429 (lang_size_sections): Clear _raw_size for .tbss section
1430 (it allocates space in PT_TLS segment only).
1431 * ldwrite.c (build_link_order): Build link order for .tbss too.
1433 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1435 * configure.in: Correct spelling of AC_PREREQ.
1437 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1439 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1441 (autofilter_objlist): Add crtbegin.o, crtend.o.
1443 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1445 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1446 (longopts): Add new option --exclude-libs.
1447 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1448 (gld_${EMULATION_NAME}_parse_args): Use it.
1449 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1450 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1451 from whole archives.
1452 (pe_dll_add_excludes): Set excludes->type.
1453 (auto_export): Add new variable libname and set to archive basename if
1454 abfd. Use it when filtering default and user-specified libarary
1455 excludes. Let string "ALL" mean all libs when filtering user-specified
1457 * ld.texinfo: Document --exclude-libs.
1459 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1461 * ldemul.c (ldemul_new_vers_pattern): New function.
1462 * ldemul.h (ldemul_new_vers_pattern): Declare.
1463 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1464 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1465 * emultempl/ppc64elf.em (dotsyms): New static var.
1466 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1467 (LDEMUL_NEW_VERS_PATTERN): Define.
1468 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1469 (PARSE_AND_LIST_LONGOPTS): Likewise.
1470 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1471 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1473 * emultempl/armcoff.em: Likewise.
1474 * emultempl/armelf_oabi.em: Likewise.
1475 * emultempl/beos.em: Likewise.
1476 * emultempl/elf32.em: Likewise.
1477 * emultempl/generic.em: Likewise.
1478 * emultempl/gld960.em: Likewise.
1479 * emultempl/gld960c.em: Likewise.
1480 * emultempl/linux.em: Likewise.
1481 * emultempl/lnk960.em: Likewise.
1482 * emultempl/m68kcoff.em: Likewise.
1483 * emultempl/mipsecoff.em: Likewise.
1484 * emultempl/pe.em: Likewise.
1485 * emultempl/sunos.em: Likewise.
1486 * emultempl/ticoff.em: Likewise.
1487 * emultempl/vanilla.em: Likewise.
1489 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1491 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1492 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1493 (LIB_SEARCH_DIRS): No need to use "tr".
1494 (COMPILE_IN): Only set for native targets.
1495 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1496 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1497 * configure.tgt (powerpc*): Set tdir_*.
1498 (powerpcle*): Correct targ_extra_emuls.
1499 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1500 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1502 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1504 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1505 calling lang_add_entry.
1507 2002-05-21 H.J. Lu (hjl@gnu.org)
1509 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1511 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1513 * ld.texinfo: Updated for --allow-multiple-definition and
1516 * ldmain.c (main): Initialize the allow_multiple_definition
1519 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1520 (ld_options): Add --allow-multiple-definition.
1521 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1523 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1525 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1526 (earmelfb_nbsd.c): New rule.
1527 * Makefile.in: Regenerate.
1528 * configure.tgt (armeb-*-netbsdelf*): New target.
1529 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1530 (arm-*-netbsd*): Likewise.
1531 * emulparams/armelfb_nbsd.sh: New file.
1533 2002-05-18 Tom Rix <trix@redhat.com>
1535 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1538 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1540 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1541 * Makefile.in: Regenerate.
1542 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1544 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1546 * emulparams/avr1.sh: New file.
1547 * emulparams/avr2.sh: New file.
1548 * emulparams/avr3.sh: New file.
1549 * emulparams/avr4.sh: New file.
1550 * emulparams/avr5.sh: New file.
1551 * scripttempl/avr.sc: New file.
1553 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1555 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1556 (lang_place_orphans): Abort if just_syms_flag.
1558 2002-05-10 Tom Rix <trix@redhat.com>
1560 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1561 architecture and machine information in the output bfd.
1562 (gld*_before_parse): Remove old arch and machine code.
1563 (choose_target): Rename to gld*_choose_target.
1564 (rtld): Change type to int.
1565 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1566 objects in XCOFF archives.
1567 * ldfile.h: Update copyright date.
1569 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1571 * ldmain.c (main): Enable -z combreloc by default.
1573 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1575 * Makefile.am: Honour DESTDIR.
1576 * Makefile.in: Regenerate.
1578 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1580 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1581 (lang_enter_overlay): Remove the last two parameters.
1582 (lang_leave_overlay): Take them here instead.
1583 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1584 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1585 than lang_enter_overlay.
1586 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1587 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1588 (lang_size_sections_1): Evaluate it.
1589 (lang_leave_output_section_statement): Rework LMA lookup.
1590 (overlay_lma, overlay_nocrossrefs): Remove.
1591 (lang_enter_overlay): Remove LMA and crossref arguments.
1592 (lang_enter_overlay_section): Don't set the LMA here.
1593 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1594 assignment to the last section's update_dot_tree. Unconditionally
1595 use the load and run-time regions specified in the OVERLAY statement.
1596 Likewise the first section's LMA. Only set the other sections' LMAs
1597 when no load region is given.
1599 2002-05-06 Nick Clifton <nickc@redhat.com>
1601 * po/sv.po: New translation.
1603 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1605 * emultempl/hppaelf.em (build_section_lists): New function.
1606 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1607 and build_section_lists.
1609 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1611 * ld.h: Fix formatting.
1612 * ldexp.c: Likewise.
1613 * ldfile.c: Likewise.
1614 * ldlang.c: Likewise.
1615 * ldmain.c: Likewise.
1616 * lexsup.c: Likewise.
1617 * pe-dll.c: Likewise.
1619 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1621 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1622 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1623 (build_section_lists): Do output_section tests here.
1625 2002-04-30 Tom Rix <trix@redhat.com>
1627 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1629 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1631 Long branch stubs, multiple stub sections.
1632 * emultempl/ppc64elf.em: Include ldctor.h.
1633 (stub_file): New var.
1634 (group_size): New var.
1635 (ppc_create_output_section_statements): New function.
1636 (struct hook_stub_info): New.
1637 (hook_in_stub): New function.
1638 (ppc_add_stub_section): New function.
1639 (ppc_layout_sections_again): New function.
1640 (build_section_lists): New function.
1641 (gld${EMULATION_NAME}_finish): Rewrite.
1642 (real_func): New var.
1643 (ppc_for_each_input_file_wrapper): New function.
1644 (ppc_lang_for_each_input_file): New function.
1645 (lang_for_each_input_file): Define.
1646 (PARSE_AND_LIST_PROLOGUE): Define.
1647 (PARSE_AND_LIST_LONGOPTS): Define.
1648 (PARSE_AND_LIST_OPTIONS): Define.
1649 (PARSE_AND_LIST_ARGS_CASES): Define.
1650 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1652 2002-04-30 Tom Rix <trix@redhat.com>
1654 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1655 -blibpath, -bnolibpath support.
1657 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1659 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1660 (eelf32ppcwindiss.c): New target.
1661 * Makefile.in: Regenerated.
1662 * configure.tgt: Add support for powerpc-*-windiss.
1663 * emulparams/elf32ppcwindiss.sh: New file.
1665 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1667 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1668 * ldexp.c (exp_print_token): Add "infix_p" argument.
1669 (exp_print_tree): Update accordingly.
1671 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1673 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1674 * Makefile.in: Regenerate.
1675 * mpw-elfmips.c: Delete.
1676 * mpw-eppcmac.c: Delete.
1677 * mpw-esh.c: Delete.
1678 * mpw-idtmips.c: Delete.
1680 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1682 * emulparams/shelf32.sh (MACHINE): Now sh5.
1684 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1686 * ldgram.y: Fix syntax warning.
1688 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1690 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1691 to prevent "-n" from being taken as an abbreviation for
1692 "--no-pipeline-knowledge".
1694 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1696 * ldlang.c (lang_size_sections_1): Don't complain about
1697 SEC_NEVER_LOAD sections having no memory region specified.
1699 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1701 2002-04-07 matthew green <mrg@redhat.com>
1703 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1705 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1707 * dep-in.sed: Cope with absolute paths.
1708 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1710 * Makefile.in: Regenerate.
1712 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1714 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1716 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1718 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1719 is smaller than maximum, round dot up to common page boundary.
1721 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1723 * configure.host: Set up for generic hosts first, then tweak as
1724 necessary in more specific targets.
1725 (HOSTING_LIBS): Include libgcc_eh.a if found.
1727 2002-03-23 Andreas Jaeger <aj@suse.de>
1729 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1731 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1733 * Makefile.am: Run "make dep-am".
1734 * Makefile.in: Regenerate.
1736 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1738 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1740 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1742 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1743 add the symbol to the linker hash table immediately.
1744 (lang_place_undefineds): Split symbol creation out..
1745 (insert_undefined): ..to here.
1747 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1749 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1750 the contents of the buffer returned from basename function will are
1751 getting overwritten while still being used.
1753 2002-03-18 Jan Hubicka <jh@suse.cz>
1754 Andreas Jaeger <aj@suse.de>
1755 Andreas Schwab <schwab@suse.de>
1757 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1758 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1759 set libraries to default to lib64 paths.
1761 2002-03-18 Tom Rix <trix@redhat.com>
1763 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1764 * configure.tgt : Same.
1765 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1766 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1767 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1768 emulation parameters for better -b32, -b64 support.
1769 * emulparms/aixrs6.sh : Same.
1770 * emulparms/ppcmacos.sh : Same.
1771 * emultempl/aix.em (choose_target) : Use new emulation parameters
1772 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1773 * Makefile.in : Regenerate.
1775 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1777 * po/fr.po: Updated version.
1779 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1781 * ldmain.c (main): Move .text readonly flag fudges from here..
1782 * ldlang.c (lang_process): ..to here.
1784 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1786 * ldlang.c (lang_check): Remove the word size check added in last
1787 change. Treat emitrelocations case as for relocatable links.
1789 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1791 * po/fr.po: Updated version.
1793 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1795 * ldlang.c (lang_check): Do relocatable link checks first, so that
1796 warn_mismatch can't override. Check compatible and word size too.
1798 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1800 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1802 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1804 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1807 2002-03-04 H.J. Lu <hjl@gnu.org>
1809 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1810 .fini_array in the data segment.
1812 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1814 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1816 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1818 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1819 .init_array, and .fini_array.
1821 2002-02-20 Andreas Schwab <schwab@suse.de>
1823 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1824 .IA64_unwind* in a relocatable link.
1826 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1828 * NEWS: Mark 2.12 branch.
1830 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1832 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1833 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1835 2002-02-18 Tom Rix <trix@redhat.com>
1837 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1838 (gld*_before_allocation): Same.
1839 (gld*_create_output_section_statements): Generate
1840 __rtinit if run time linking. Add librtl.a to the link.
1841 (gld*_read_file): Clean.
1843 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1845 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1847 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1849 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1850 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1851 and eelf64alpha_fbsd.
1852 * Makefile.in: Regenerate.
1853 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1854 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1855 use a FreeBSD-specific emulation rather than the psABI one.
1856 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1857 for all FreeBSD ELF systems.
1858 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1860 * emulparams/elf32ppc_fbsd.sh: Likewise.
1861 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1862 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1863 * emulparams/elf64alpha_fbsd.sh: Likewise.
1864 * emulparams/elf_i386_fbsd.sh: Likewise.
1865 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1867 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1869 * po/tr.po: Updated version.
1871 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1873 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1876 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1878 * emultempl/mmo.em (mmo_after_open): Don't call
1879 _bfd_mmix_check_all_relocs when producing ELF output.
1881 2002-02-15 Richard Henderson <rth@redhat.com>
1883 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1884 definition. Emit a unop+nop pair.
1886 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1888 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1889 for presence of .MMIX.reg_contents.linker_allocated before early
1892 * NEWS: Mention support for MMIX.
1894 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1896 Support arbitrary length fill patterns.
1897 * ld.texinfo (Output Section Fill): Describe fill expressions.
1898 (FILL): Refer to the above.
1899 * ldexp.h (etree_value_type): Add "str" field.
1900 (union etree_union): Add "str" to "value" struct.
1901 (exp_bigintop): Declare.
1902 (exp_get_fill): Declare.
1903 * ldexp.c: Include "safe-ctype.h".
1904 (exp_intop): Set value.str to NULL.
1905 (exp_bigintop): New function.
1906 (new_rel): Pass in "str", and set new.str from it.
1907 (new_rel_from_section): Set new.str to NULL.
1908 (fold_name): Adjust calls to new_rel.
1909 (exp_fold_tree): Likewise.
1910 (exp_get_fill): New function.
1911 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1912 (INT): Returns a "bigint". Adjust all code handling INTs.
1913 (fill_opt): Returns a "fill".
1914 (fill_exp): Split out of fill_opt, use for FILL.
1915 * ldlang.h (struct _fill_type): New.
1916 (fill_type): Move typedef to ldexp.h.
1917 (lang_output_section_statement_type): "fill" is now a pointer.
1918 (lang_fill_statement_type): Likewise.
1919 (lang_padding_statement_type): Likewise.
1920 (lang_add_fill): Now takes a "fill_type *" param.
1921 (lang_leave_output_section_statement): Likewise.
1922 (lang_do_assignments): Likewise.
1923 (lang_size_sections): Likewise.
1924 (lang_leave_overlay_section): Likewise.
1925 (lang_leave_overlay): Likewise.
1926 * ldlang.c: Include ldgram.h after ldexp.h.
1927 (lang_output_section_statement_lookup): Adjust for fill_type change.
1928 (print_fill_statement): Likewise.
1929 (print_padding_statement): Likewise.
1930 (insert_pad): Now takes a "fill_type *" arg.
1931 (size_input_section): Likewise.
1932 (lang_size_sections_1): Likewise.
1933 (lang_size_sections): Likewise.
1934 (lang_do_assignments): Likewise.
1935 (lang_add_fill): Likewise.
1936 (lang_leave_output_section_statement): Likewise.
1937 (lang_leave_overlay_section): Likewise.
1938 (lang_leave_overlay): Likewise.
1939 Adjust all callers of the above function.
1940 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1941 starting with "0X" as well as "0x". Return bigint.str for hex
1942 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1943 Always use base 16 for numbers starting with "$".
1944 * ldmain.c: Include ldgram.h after ldexp.h.
1945 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1946 of bfd_fill_link_order.
1947 * pe-dll.c: Adjust lang_do_assignments calls.
1948 * emultempl/elf32.em: Likewise.
1949 * emultempl/hppaelf.em: Likewise.
1950 * emultempl/ppc64elf.em: Likewise.
1951 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1952 lang_add_assignment call.
1953 * emultempl/pe.em: Likewise.
1955 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1957 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1958 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1959 the pattern in question is not a regexp.
1960 * ldlang.c: Likewise.
1961 * ldlang.h: Likewise.
1962 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1964 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1966 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1967 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1968 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1969 * ldexp.c (exp_data_seg): New variable.
1970 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1971 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1972 (exp_fold_tree): Handle DATA_SEGMENT_END.
1973 Pass allocation_done when recursing instead of hardcoding
1974 lang_allocating_phase_enum.
1975 * ldexp.h (exp_data_seg): New.
1976 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1977 (lang_size_sections): New.
1978 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1979 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1980 if COMMONPAGESIZE is defined.
1981 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1982 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1983 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1984 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1985 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1988 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1990 * Makefile.in: Regenerate.
1992 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1994 * lexsup.c: Remove strtoul declaration.
1996 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1998 * ldmain.c: Add prototype for main ().
1999 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2000 * emultempl/lnk960.em (lnk960_choose_target): Function should
2003 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2005 * ldlang.c (entry_section): New initialised variable.
2006 (lang_finish): Use it.
2007 * ldlang.h (entry_section): Declare.
2008 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2009 entry_section to ".opd".
2011 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2013 * ld.texinfo (Options): Add back in -nostdlib documentation,
2014 which had been inadvertently removed.
2016 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2018 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2019 register section vma to a sane value after emitting error. Make
2020 fatal conditions cause program exit when emitting message.
2022 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2024 * configure.tgt: Add or32-*-rtems target.
2026 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2028 Contribute sh64-elf.
2029 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2030 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2031 in OTHER_RELOCATABLE_SECTIONS.
2032 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2033 * emulparams/shelf32.sh (STACK_ADDR): Define.
2034 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2035 (OTHER_SECTIONS): this. Removed stack settings.
2036 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2037 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2038 2001-03-12 DJ Delorie <dj@redhat.com>
2039 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2040 relaxing if any shmedia or mixed sections are found.
2041 2001-03-07 DJ Delorie <dj@redhat.com>
2042 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2043 einfo. Gracefully decline to output to non-elf formats.
2044 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2045 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2046 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2047 * emulparams/shelf32.sh: Ditto.
2048 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2049 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2051 2001-01-10 Ben Elliston <bje@redhat.com>
2052 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2053 non-portable shell constructs. From Hans-Peter Nilsson.
2054 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2055 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2056 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2057 dependencies to the shell script include chain.
2058 * Makefile.in: Regenerate.
2059 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2060 * emultempl/sh64elf.em: Update and tweak comments.
2061 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2062 make a .cranges section SEC_IN_MEMORY.
2063 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2064 * emultempl/sh64elf.em
2065 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2066 .cranges section found to be necessary; continue and set stored
2067 section contents flags for sections with non-mixed contents.
2068 Use a struct sh64_section_data container and sh64_elf_section_data
2069 to store contents-type flags.
2070 Remove unused update of "isec".
2071 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2072 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2073 access contents-type flags. Assert that the associated container
2074 is initialized. Use that container, not elf_gp_size, to hold size
2075 of linker-generated cranges contents.
2076 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2077 * emultempl/sh64elf.em
2078 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2079 there's already a .cranges section. When section flag difference
2080 is found, don't NULL-check cranges a second time. Tweak comments.
2081 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2082 merging, not max size, as size of ld-generated .cranges contents.
2083 Don't set ELF section flags in output section. When checking for
2084 needed .cranges descriptors, don't use a variable; compare
2085 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2087 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2088 * emultempl/sh64elf.em: New file.
2089 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2090 * Makefile.in: Regenerate.
2091 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2092 (OTHER_RELOCATING_SECTIONS): Ditto.
2093 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2094 * emulparams/shlelf32.sh: Stub out all settings except
2095 OUTPUT_FORMAT. Source shelf32.sh.
2096 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2097 OTHER_RELOCATING_SECTIONS.
2098 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2099 * emulparams/shlelf64.sh: Stub out all settings except
2100 OUTPUT_FORMAT. Source shelf64.sh.
2101 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2102 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2104 (DATA_START_SYMBOLS): Define, provide ___data.
2105 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2106 for consecutive .data section.
2107 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2108 section after .data section.
2109 * emulparams/shlelf64.sh: Ditto.
2110 * emulparams/shelf32.sh: Ditto.
2111 (ALIGNMENT): Define to 8.
2112 * emulparams/shelf32.sh: Ditto.
2113 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2114 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2115 built-in linker scripts.
2116 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2117 * emulparams/shlelf64.sh: New.
2118 * emulparams/shelf64.sh: New.
2119 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2121 * Makefile.am: Add support for shlelf64 and shelf64.
2122 * Makefile.in: Regenerate.
2123 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2124 * configure.tgt (sh64-*-elf*): Add shelf as default.
2125 Add shlelf to targ_extra_emuls.
2126 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2127 * emulparams/shelf32.sh: New file.
2128 * emulparams/shlelf32.sh: New file.
2129 * Makefile.am: Add support for shlelf32 and shelf32.
2130 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2131 * Makefile.in: Regenerate.
2133 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2135 * ldlang.c (lang_reset_memory_regions): Rename from
2136 reset_memory_regions. Change all callers. Make public.
2137 * ldlang.h (lang_reset_memory_regions): Prototype.
2138 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2139 lang_reset_memory_regions before lang_size_sections.
2140 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2141 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2143 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2145 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2146 arithmetic when checking for too many global registers.
2148 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2150 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2151 (ehppanbsd.c): New rule.
2152 * Makefile.in: Regenerate.
2153 * configure.tgt (hppa*-*-netbsd*): New target.
2154 * emulparams/hppalinux.sh: Add comment to check other files
2155 that source this file it is modified, and list which
2157 * emulparams/hppanbsd.sh: New file.
2159 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2161 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2164 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2166 Support on-demand global register allocation from
2167 R_MMIX_BASE_PLUS_OFFSET relocs.
2168 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2169 mmix_set_reg_section_vma. Call
2170 _bfd_mmix_finalize_linker_allocated_gregs.
2171 (mmix_before_allocation): New function.
2172 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2173 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2174 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2175 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2176 before .MMIX.reg_contents.
2177 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2178 (mmo_after_open): New function.
2179 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2180 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2181 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2183 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2185 * emulparams/or32.sh: New file.
2186 * emulparams/or32elf.sh: New file.
2187 * scripttempl/or32.sc: New file.
2188 * configure.tgt : Add support for or32.
2189 * configure: Regenerate
2190 * Makefile.am: Add support for or32.
2191 * Makefile.in: Regenerate.
2192 * NEWS: Mention support for or32.
2193 * po/ld.pot: Regenerate.
2195 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2196 Mitch Lichtenberg <mpl@broadcom.com>
2198 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2199 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2200 reloc creation (ld --embedded-relocs).
2202 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2204 * configure: Regenerated.
2206 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2208 * Makefile.am (install): Depend on install-info.
2209 * Makefile.in: Regenerate.
2211 2002-01-26 Christian Rose <menthos@menthos.com>
2213 * ldmain.c (main): Use full sentences to ease translation.
2215 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2217 * po/fr.po: Updated version.
2219 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2221 * po/es.po: Updated version.
2223 2002-01-25 Andreas Jaeger <aj@suse.de>
2225 * ldlex.l (yy_input): Correct error check.
2227 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2229 * ldmisc.c (demangle): Put back dots when string not demangled.
2231 2002-01-22 Richard Henderson <rth@redhat.com>
2233 * emulparams/elf64alpha.sh (NOP): Use unop.
2235 2002-01-21 Andreas Jaeger <aj@suse.de>
2237 * ldlex.l: Use fread instead of read.
2239 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2241 * configure.tgt (ia64-*-netbsd*): New target.
2243 2002-01-21 H.J. Lu <hjl@gnu.org>
2245 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2247 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2249 2002-01-18 Andreas Jaeger <aj@suse.de>
2251 * ldver.c (ldversion): Update year.
2253 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2255 * po/ld.pot: Regenerate.
2257 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2259 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2260 * Makefile.in: Regenerate.
2261 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2262 * emultempl/ppc64elf.em: New file.
2264 2002-01-15 DJ Delorie <dj@redhat.com>
2266 * scripttempl/pe.sc: Add support for constructor priorities.
2268 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2270 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2271 * emulparams/avr23xx.sh: Likewise.
2272 * emulparams/avr4433.sh: Likewise.
2273 * emulparams/avr44x4.sh: Likewise.
2274 * emulparams/avr85xx.sh: Likewise.
2275 * emulparams/avrmega103.sh: Likewise.
2276 * emulparams/avrmega161.sh: Likewise.
2277 * emulparams/avrmega603.sh: Likewise.
2278 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2280 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2282 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2283 archive is excluded.
2285 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2287 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2288 (eshelf_nbsd.c): New rule.
2289 (eshlelf_nbsd.c): New rule.
2290 * Makefile.in: Regenerate.
2291 * configure.tgt (sh*le-*-netbsdelf*): New target.
2292 (sh*-*-netbsdelf*): New target.
2293 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2294 * ld/emulparams/shelf_nbsd.sh: New emulation.
2295 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2297 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2299 * po/es.po: New file: Spanish translation.
2300 * configure.in (ALL_LINGUAS): Add es.
2301 * configure: Regenerate.
2303 2002-01-06 John Marshall <jmarshall@acm.org>
2305 * ld.texinfo: Note that --emit-relocs is currently only
2306 implemented for ELF.
2308 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2310 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2311 of bfd_section_list_remove and bfd_section_list_insert macros.
2312 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2313 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2315 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2317 * configure.tgt (x86_64-*-netbsd*): New target.
2319 2001-12-21 Tom Rix <trix@redhat.com>
2321 (gld*_create_output_section_statements): New function.
2322 For -binitfini support.
2323 * emultempl/aix.em (gld*_before_parse): Fix comment.
2324 * emultempl/aix.em (gld*_parse_args): Fix comment.
2326 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2328 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2330 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2332 * configure.tgt (arm-*-netbsdelf*): Add target.
2333 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2334 * emulparams/armelf_nbsd.sh: Added.
2335 * Makefile.am: Add rules for earmelf_nbsd.
2336 * Makefile.in: Regenerate.
2338 2001-12-19 Andreas Jaeger <aj@suse.de>,
2339 Susanne Oberhauser <froh@suse.de>
2341 * configure.host: Add rules for x86_64-*linux-gnu. Change
2342 s390x-linux entry to use gcc to report configuration, replace gcc
2343 with $CC in s390-linux
2345 2001-12-19 Andreas Jaeger <aj@suse.de>
2347 * ld.texinfo (VERSION): Fix markup.
2349 2001-12-18 matthew green <mrg@eterna.com.au>
2351 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2352 (m68kelfnbsd.c): New rule.
2353 * Makefile.in: Regenerate.
2354 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2355 (m68*-*-netbsd*4k*): .. this.
2356 (m68*-*-netbsdelf*): New target.
2357 (m68*-*-netbsd*): Also include ELF support.
2358 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2359 * emulparams/m68kelfnbsd.sh: New emulation.
2361 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2363 * ldgram.y (vers_node): Support anonymous version tags.
2364 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2365 tag is not defined together with non-anonymous versions.
2366 * ld.texinfo: Document it.
2368 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2370 * po/tr.po: New file: Turkish translation.
2371 * configure.in (ALL_LINGUAS): Add tr.
2372 * configure: Regenerate.
2374 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2376 * Makefile.am: Add rules for eelf64alpha_nbsd.
2377 * Makefile.in: Regenerate.
2378 * configure.tgt (alpha*-*-netbsd*): Set
2379 targ_emul to elf64alpha_nbsd.
2380 * emulparams/elf64alpha_nbsd.sh: Added.
2382 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2384 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2385 section_tail when fiddling with section list.
2386 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2387 broken into separate strings to make translation easier.
2388 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2389 fiddling with section list.
2390 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2392 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2394 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2396 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2398 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2400 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2402 * emultempl/elf32.em (finish): Supply output_bfd
2403 to bfd_elf*_discard_info.
2404 (OPTION_EH_FRAME_HDR): Define.
2405 (longopts): Add --eh-frame-hdr.
2406 (parse_args): Handle it.
2407 (list_options): Add --eh-frame-hdr to help.
2408 * emultempl/hppaelf.em (finish): Supply output_bfd
2409 to bfd_elf*_discard_info.
2410 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2412 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2414 * lexsup.c (parse_args): Don't pass shortopts to second call to
2415 getopt functions. Restore optind rather than decrementing before
2416 second call. Remove errind as it now duplicates last_optind.
2418 2001-12-11 Christopher Faylor <cgf@redhat.com>
2420 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2422 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2423 Richard Henderson <rth@redhat.com>
2425 * Makefile.am: Add support for xstormy16.
2426 * configure.tgt: Add support for xstormy16.
2427 * Makefile.in: Regenerate.
2428 * emulparams/elf32xstormy16.sh: New file.
2429 * scripttempl/xstormy16.sc: New file.
2431 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2433 * Makefile.in (LIB_PATH): Make configurable.
2434 (GENSCRIPTS): Set LIB_PATH in environment.
2435 * configure.in: Substitute LIB_PATH.
2436 * configure: Regenerate.
2437 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2438 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2440 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2442 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2443 describing the -N option so that it is easier to translate into
2446 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2448 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2449 statements describing a single option with a single, newline
2450 escaped fprintf. This allows better translation into other
2453 * ldmain.c (add_archive_element): Combine multiple strings
2454 into a single string to permit better translation into other
2457 2001-12-05 Tom Rix <trix@redhat.com>
2459 * Makefile.am: Remove eaixppc64.
2460 * Makefile.in: Regenerate.
2462 2001-12-04 Tom Rix <trix@redhat.com>
2464 * emultempl/aix.em (choose_target): Change default target to
2465 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2467 (gld*_read_file): Fix typo.
2468 (change_symbol_mode): Add prototype.
2471 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2472 * emulparams/aixrs6.sh : Same.
2473 * emulparams/ppcmacos.sh : Same.
2474 * emulparams/aixppc64.sh : Delete file.
2475 * emultempl/aix.em : Formatting changes.
2477 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2479 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2480 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2482 (OTHER_END_SYMBOLS): Fix formatting.
2483 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2484 (OTHER_END_SYMBOLS): Fix formatting.
2486 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2488 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2490 2001-12-02 Tom Rix <trix@redhat.com>
2492 * configure.tgt : Remove eaixppc64 emulations.
2493 * Makefile.in : Remove eaixppc64.c
2494 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2495 (ldemul_default_target): Same.
2496 * emultempl/gld960.em (gld960_choose_target): Same.
2497 * emultempl/gld960c.em (gld960_choose_target): Same.
2498 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2499 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2500 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2501 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2502 * emultempl/aix.em (choose_target): New function. Handle emulation of
2505 2001-11-27 H.J. Lu <hjl@gnu.org>
2507 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2508 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2509 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2510 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2511 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2512 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2513 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2514 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2516 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2519 (REL_SDATA): Likewise.
2520 (REL_SBSS): Likewise.
2521 (REL_SDATA2): Likewise.
2522 (REL_SBSS2): Likewise.
2523 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2526 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2528 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2530 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2532 2001-11-22 H.J. Lu <hjl@gnu.org>
2534 * Makefile.in: Regenerated with automake based on automake
2535 1.4-8 in RedHat 7.1.
2537 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2539 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2540 (config.status): Delete rule.
2541 Add extra dependencies to cover sourced emulparams files.
2542 * Makefile.in: Regenerate.
2544 * scripttempl/elf.sc: Order <section>, <section>.* and
2545 corresponding linkonce sections as seen in input files.
2546 Formatting fixes. Zero vma of all sections if not relocating.
2547 (STACK): Define and insert if STACK_ADDR defined.
2548 (OTHER_RELOCATING_SECTIONS): Delete.
2549 (OTHER_END_SYMBOLS): Define.
2550 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2551 (OTHER_READWRITE_SECTIONS): Likewise.
2552 (OTHER_GOT_SECTIONS): Likewise.
2553 (OTHER_SDATA_SECTIONS): Likewise.
2554 (OTHER_BSS_SECTIONS): Likewise.
2555 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2556 (OTHER_READWRITE_SECTIONS): Likewise.
2557 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2558 (OTHER_READWRITE_SECTIONS): Likewise
2560 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2561 (STACK_ADDR): Define.
2562 * emulparams/armelf_oabi.sh: As for armelf.sh.
2563 * emulparams/elf32mcore.sh: As for armelf.sh.
2564 * emulparams/h8300elf.sh: As for armelf.sh.
2565 * emulparams/mn10200.sh: As for armelf.sh.
2566 * emulparams/shelf.sh: As for armelf.sh.
2568 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2569 (OTHER_END_SYMBOLS): Define.
2570 * emulparams/m32relf.sh: As for elf32fr30.sh.
2571 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2572 * emulparams/h8300self.sh: As for elf32fr30.sh.
2574 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2575 defines with RELOCATING test.
2576 (OTHER_SDATA_SECTIONS): Likewise.
2577 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2578 (OTHER_END_SYMBOLS): ..this.
2579 * emulparams/crislinux.sh: As for criself.sh.
2581 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2583 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2584 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2585 normal and linkonce sections as seen in input files.
2586 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2587 (TEXT_DYNAMIC): Likewise.
2588 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2589 (OTHER_SDATA_SECTIONS): Likewise.
2590 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2591 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2592 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2593 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2594 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2595 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2596 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2597 sections as seen in input files.
2598 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2599 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2601 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2602 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2603 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2604 (OTHER_SECTIONS): Instead, use this..
2605 (OTHER_END_SYMBOLS): ..and this.
2607 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2608 * emulparams/elf32bsmip.sh: Likewise.
2609 * emulparams/elf32btsmip.sh: Likewise.
2610 * emulparams/elf32ebmip.sh: Likewise.
2611 * emulparams/elf32lmip.sh: Likewise.
2612 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2613 * emulparams/elf32lsmip.sh: Likewise.
2614 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2615 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2616 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2617 * emulparams/elf64btsmip.sh: Likewise.
2618 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2619 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2620 * emulparams/elf32ppclinux.sh: Likewise.
2621 * emulparams/elf32ppcsim.sh: Likewise.
2622 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2623 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2624 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2625 * emulparams/h8300self.sh: Likewise.
2626 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2627 * emulparams/sh.sh: Comment.
2628 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2629 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2630 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2632 2001-11-21 David Heine <dlheine@tensilica.com>
2633 Alan Modra <amodra@bigpond.net.au>
2635 * ldlang.c (map_input_to_output_sections): Replace "break"
2636 accidentally removed with 2001-08-03 change.
2637 (lang_gc_sections_1): Likewise.
2639 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2641 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2643 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2645 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2646 of false when calling lang_size_sections.
2647 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2649 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2651 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2652 function when LDEMUL_FINISH isn't set to the same name. Don't
2653 call ${LDEMUL_FINISH}.
2654 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2655 * emultempl/armelf.em (arm_elf_finish): Call
2656 gld${EMULATION_NAME}_finish.
2657 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2658 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2659 hppaelf_layout_sections_again if necessary.
2660 (need_laying_out): New var.
2661 (hppaelf_layaout_sections_again): Rename to
2662 hppaelf_layout_sections_again. Clear need_laying_out.
2663 (PARSE_AND_LIST_OPTIONS): Format text.
2665 2001-11-14 H.J. Lu <hjl@gnu.org>
2667 * emultempl/armelf.em (arm_elf_finish): Renamed from
2668 gld${EMULATION_NAME}_finish.
2669 (LDEMUL_FINISH): Set to arm_elf_finish.
2671 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2673 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2674 (struct ld_emulation_xfer_struct): Use it.
2676 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2678 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2679 additional symbols referenced by newer crt0.o files from HP.
2681 2001-11-12 Anthony Green <green@redhat.com>
2683 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2685 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2687 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2688 * Makefile.in: Regenerate.
2690 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2692 * ld.texinfo: Use @command for commands, @option for options.
2693 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2695 * Makefile.in: Rebuild.
2697 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2699 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2700 Add support for targets.
2702 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2704 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2705 * configure: Regernate.
2706 * po/fr.po: New file.
2707 * po/sv.po: New file.
2709 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2711 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2712 as little endian default and to support big endian.
2714 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2716 * ld.texinfo (Options): Document new option, -nostdlib.
2717 * lexsup.c (OPTION_NOSTDLIB): New definition.
2718 (ld_options): Add entry for "nostdlib".
2719 (parse_args): Handle OPTIONS_NOSTDLIB.
2720 * ldfile.c (ldfile_add_library_path): Don't add directories
2721 to the search path if they weren't specified on the command line
2722 and -nostdlib was specified.
2723 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2725 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2727 * lexsup.c (parse_args): Prevent infinite parsing loop when
2728 "-rpath.a" is specified on the command line.
2729 Replace calls to fprintf with calls to einfo.
2731 2001-10-31 John Marshall <jmarshall@acm.org>
2733 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2734 appear only once across all the linker scripts involved in a link
2735 invocation no longer applies. Make the documentation reflect
2738 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2740 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2742 (sh-*-linux*): Added targ_extra_libpath.
2744 2001-10-31 David Heine <dlheine@tensilica.com>
2746 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2747 for padding statements.
2749 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2751 * configure.tgt (mmix-*-*): New target.
2752 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2753 Add dependencies to match.
2754 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2755 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2756 scripttempl/mmo.sc: New files.
2757 * gen-doc.texi: @set MMIX.
2758 * ld.texinfo: Ditto.
2759 [MMIX] Add MMIX node.
2760 * Makefile.in: Regenerate.
2762 2001-10-29 Kazu Hirata <kazu@hxi.com>
2764 * ldlang.c: Fix a comment typo.
2766 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2768 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2769 entries, and match *-*-linux*.
2771 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2773 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2774 with ldlex_script, ldlex_popstate.
2775 (ifile_p1): Likewise.
2776 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2778 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2779 to 1. Don't BEGIN(SCRIPT).
2780 (lex_redirect): Similarly.
2781 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2783 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2785 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2786 __EH_FRAME_END__ and accept eh frames into data section.
2787 Add ctor and dtor sections.
2789 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2791 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2792 (auto-export): Fix indentation.
2794 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2796 * pe-dll.c (autofilter_objectlist): Add startup objects
2798 (auto-export): Constify char * p.
2799 Extract file basename and use strcmp rather than ststr
2802 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2804 * ldmain.c (get_emulation): Improve comment about the handling
2807 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2809 * po/POTFILES.in: Regenerate.
2811 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2813 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2814 -z nocopyreloc and -z nocombreloc usage strings.
2816 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2818 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2821 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2823 * scripttempl/armaout.sc: Place .bss section after end of aligned
2824 data section to match behaviour of aout code in constructrion of
2827 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2829 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2830 startup files for mingw32 dlls to list.
2832 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2834 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2836 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2838 * configure.tgt (targ): Add arm9e-*-elf.
2840 2001-10-05 H.J. Lu <hjl@gnu.org>
2842 * genscripts.sh: Fix a typo in the last change.
2844 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2846 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2847 -z nocombreloc in usage.
2849 2001-10-03 Jim Blandy <jimb@redhat.com>
2851 * genscripts.sh: Include a comment at the top of each generated
2852 script, explaining its purpose.
2854 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2856 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2857 * NEWS: Mention -z nocopyreloc.
2858 * ld.texinfo (Options): Describe nocopyreloc.
2860 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2862 * configure: Regenerate.
2864 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2866 * ldver.h (ld_program_version): Remove declaration.
2867 * lexsup.c (parse_args): Move printing of copyright message..
2868 * ldver.c (ldversion): .. to here.
2869 Use BFD_VERSION_STRING in place of BFD_VERSION.
2870 (ld_program_version): Remove.
2871 * Makefile.am (Makefile): Depend on bfd/configure.in.
2873 * Makefile.in: Regenerate.
2875 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2877 * Makefile.am: Update dependencies with "make dep-am".
2878 * Makefile.in: Regenerate.
2880 2001-09-29 John Reiser <jreiser@BitWagon.com>
2882 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2883 * lexsup.c: Add --no-define-common commandline option.
2884 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2885 * ldlex.l: Likewise.
2886 * ld.h: Add command_line.inhibit_common_definition.
2887 * ldmain.c (main): Initialize.
2888 * ld.texinfo: Document.
2890 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2892 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2894 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2896 * ldmisc.c (USE_STDARG): Remove.
2897 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2902 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2903 declarations. Update copyright.
2905 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2907 * pe-dll.c: Remove obsoleted declaration of
2908 pe_get_data_import_dll_name.
2909 (pe_create_import_fixup): Fix thinko.
2911 * ld.texinfo(enable-auto-import): Clarify the explanation.
2913 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2915 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2916 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2917 DLL_SUPPORT controlled code.
2919 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2921 * emultempl/pe.em(pe_data_import_dll): Make static.
2922 (pe_get_data_import_dll_name): New accessor function.
2923 * pe-dll.c(pe_create_import_fixup): call
2924 pe_get_data_import_dll_name() from pe.em, instead of
2925 directly accessing pe_data_import_dll variable from pe.em.
2927 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2929 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2930 (def_file_add_directive): Use ISSPACE instead of isspace.
2931 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2932 isdigit/isxdigit/isalpha/isalnum.
2933 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2934 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2935 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2936 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2938 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2939 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2941 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2942 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2943 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2944 (ctor_prio): Use ISDIGIT instead of isdigit.
2945 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2946 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2947 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2949 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2950 (stricpy): Use TOLOWER instead of isupper/tolower.
2951 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2952 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2953 (lex_warn_invalid): Use ISPRINT instead of isprint.
2954 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2955 (main): For gettext, also set the LC_CTYPE locate facet.
2956 (add_keepsyms_file): Use ISSPACE instead of isspace.
2957 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2958 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2959 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2960 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2961 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2962 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2963 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2964 (quoteput): Use ISSPACE instead of isspace.
2965 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2968 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2970 * deffilep.y (def_stash_module): Constify "name" param.
2972 * pe-dll.c: Replace CONST with const throughout.
2973 (quick_symbol): Constify "n1", "n2", "n3" params.
2974 (make_singleton_name_thunk): Constify "import" param. Make
2975 "buffer_len" a size_t.
2976 (make_import_fixup_entry): Constify "name", "fixup_name",
2977 "dll_symname" params.
2978 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2979 (pe_get32): Likewise.
2980 (pe_implied_import_dll): Likewise.
2982 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2983 (sort_by_section_name): Likewise.
2985 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2986 (make_import_fixup): Cast printf arg, rel->address to long rather
2988 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2990 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2992 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2993 defines BufferSize. Increase buffer size by one.
2995 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2997 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2999 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3001 * configure.tgt: Add arm-openbsd target.
3003 2001-09-12 H.J. Lu <hjl@gnu.org>
3005 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3007 (ALL_64_EMULATIONS): Here.
3008 * Makefile.in: Regenerated.
3010 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3012 * emultempl/pe.em(make_import_fixup): change signature to
3013 take asection as well as arelec; we need this for proper
3014 error reporting. Only call pe_create_import_fixup() if
3015 there is no attempt to add a constant addend to the reloc;
3016 otherwise, report error condition.
3017 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3018 since final argument is a pointer to make_import_fixup().
3019 Change call to cb() to match make_import_fixup() signature.
3020 (make_import_fixup_mark): make buffer_len unsigned.
3021 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3023 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3025 * ld.texinfo: add verbose documentation for auto-import
3026 direct-addressing workaround, to compliment the terse
3029 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3031 * scripttempl/v850.sc: Add gcc_except_table sections.
3033 2001-09-11 Jeffrey A Law (law@cygnus.com)
3035 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3036 * emulparams/h8300self.sh: Similarly.
3038 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3040 * ld.texinfo (Options, --stack): Correct default value for stack
3043 2001-09-05 Tom Rix <trix@redhat.com>
3045 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3047 2001-09-03 Andreas Jaeger <aj@suse.de>
3049 * emultempl/beos.em: Declare prototypes for comparions functions,
3052 2001-09-02 Andreas Jaeger <aj@suse.de>
3054 * emultempl/aix.em: Add missing prototype.
3055 * emultempl/lnk960.em: Likewise.
3056 * emultempl/vanilla.em: Likewise.
3057 * emultempl/armcoff.em: Likewise.
3058 * emultempl/armelf_oabi.em: Likewise.
3059 * emultempl/beos.em: Likewise.
3060 * emultempl/gld960c.em: Likewise.
3061 * emultempl/gld960.em: Likewise.
3063 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3064 for prototype declaration.
3066 2001-08-31 Eric Christopher <echristo@redhat.com>
3067 Jason Eckhardt <jle@redhat.com>
3069 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3071 2001-08-31 Andreas Jaeger <aj@suse.de>
3073 * emultempl/pe.em: Add missing prototypes.
3074 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3075 pe_find_data_imports.
3076 (pr_sym): Add unused attribute.
3078 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3080 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3081 default from coff to elf.
3083 2001-08-29 Jeff Law <law@redhat.com>
3085 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3087 * emulparams/h8300self.sh: Similarly.
3089 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3091 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3093 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3094 * configure.tgt (h8300-*-elf*): New case.
3095 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3096 * emulparams/h8300self.sh: New file.
3097 * Makefile.in: Regenerated.
3099 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3101 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3104 2001-08-27 Linus Nordberg <linus@swox.com>
3105 Alan Modra <amodra@bigpond.net.au>
3107 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3108 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3110 * Makefile.in: Regenerate.
3111 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3112 entries to correct alphabetical position.
3113 * emulparams/elf64ppc.sh: New.
3114 * emulparams/elf64lppc.sh: New.
3116 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3118 * ldmain.c (main): Declare BSIZE as static.
3120 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3122 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3123 into .rel.dyn resp. .rela.dyn if combreloc.
3124 (get_script): If .x linker script is equal to .xn, only put it
3125 once into the binary.
3126 Add .xc and .xsc scripts.
3127 (parse_args): Handle -z combreloc and -z nocombreloc.
3128 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3129 For .xc and .xsc scripts put all .rel* or .rela* input sections
3130 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3131 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3133 Strip trailing whitespace from script.
3134 Generate .xc and .xsc scripts if requested.
3135 * ldmain.c (main): Initialize link_info.combreloc and
3136 link_info.spare_dynamic_tags.
3137 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3138 (ld_options): Add --spare-dynamic-tags option.
3139 (parse_args): Likewise.
3140 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3141 * ldint.texinfo: Document .xc and .xsc linker scripts.
3142 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3144 2001-08-22 H.J. Lu <hjl@gnu.org>
3146 * emulparams/elf32fr30.sh: Add a newline.
3148 2001-08-21 Andreas Jaeger <aj@suse.de>
3150 * deffilep.y: Add missing prototypes.
3151 * pe-dll.c: Likewise.
3153 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3155 * ldlang.c (insert_pad): Fix typos in last patch.
3157 * ldlang.c: When traversing lang_statement_union_type lists,
3158 consistently use "header.next" rather than "next".
3159 * mpw-eppcmac.c: Likewise.
3160 * emultempl/beos.em: Likewise.
3161 * emultempl/hppaelf.em: Likewise.
3162 * emultempl/pe.em: Likewise.
3163 * ldlang.h (union lang_statement_union): Remove "next" field.
3165 * ldlang.c (insert_pad): Use offsetof macro.
3166 (lang_size_sections): Always neuter padding statements.
3167 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3169 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3170 passed to lang_size_sections.
3171 (pe_exe_fill_sections): Likewise.
3172 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3173 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3175 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3177 * emultempl/aix.em: Formatting fixes.
3179 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3181 * ldlang.c (insert_pad): Make use of an existing pad statement if
3182 available. Move code calculating alignment, adjusting section
3183 alignment power, and adjusting dot to ..
3184 (size_input_section): .. here. Remove unused relax param.
3185 (lang_size_sections): Change boolean `relax' param to boolean *.
3186 Adjust call to size_input_section. Make use of insert_pad to
3187 place pad after the assignment statement. If relaxing, zap
3189 (reset_memory_regions): Reset output_bfd section sizes too.
3190 (relax_again): Move to..
3191 (lang_process): ..here. Adjust call to lang_size_sections, and
3192 remove duplicated code.
3193 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3195 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3197 * ld.texinfo: Document that fill values now use the four least
3199 * emulparams/elf32fr30.sh (NOP): Update.
3200 * emulparams/elf32mcore.sh: Likewise.
3201 * emulparams/elf64_s390.sh: Likewise.
3202 * emulparams/elf_i386.sh: Likewise.
3203 * emulparams/elf_i386_be.sh: Likewise.
3204 * emulparams/elf_i386_chaos.sh: Likewise.
3205 * emulparams/elf_i386_ldso.sh: Likewise.
3206 * emulparams/elf_s390.sh: Likewise.
3207 * emulparams/elf_x86_64.sh: Likewise.
3208 * emulparams/i386moss.sh: Likewise.
3209 * emulparams/i386nw.sh: Likewise.
3210 * emulparams/m68kelf.sh: Likewise.
3211 * scripttempl/elf.sc: Update NOP comment.
3212 * scripttempl/elfi370.sc: Likewise.
3213 * scripttempl/elfm68hc11.sc: Likewise.
3214 * scripttempl/elfm68hc12.sc: Likewise.
3215 * scripttempl/nw.sc: Likewise.
3217 2001-08-15 Tom Rix <trix@redhat.com>
3219 * ldgram.y (saved_script_handle): Initialize to NULL.
3220 * ldmain.c (main): Change check on saved_script_handle.
3222 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3224 * emultempl/elf32.em: Formatting fixes.
3225 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3226 looking at sec->owner.
3227 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3228 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3229 unused code, and reorganize orphan section placement code.
3231 * ldlang.c (wild_doit): Rename to lang_add_section.
3232 * ldlang.h: Here too.
3233 * mpw-elfmips.c: And here.
3234 * emultempl/beos.em: And here.
3235 * emultempl/elf32.em: And here.
3236 * emultempl/hppaelf.em: And here.
3237 * emultempl/pe.em: And here.
3239 2001-08-13 Richard Henderson <rth@redhat.com>
3241 * emultempl/needrelax.em: New file.
3242 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3243 * Makefile.am (eelf64_ia64.c): Depend on it.
3244 * Makefile.in: Rebuild.
3246 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3248 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3249 output_section is set non-NULL.
3251 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3252 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3253 needlessly create an output_section_statement. Treat a correctly
3254 named output_section_statement with NULL bfd_section as compatible.
3256 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3258 * emultempl/generic.em: Support EXTRA_EM_FILE.
3259 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3260 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3261 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3262 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3263 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3264 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3265 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3266 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3267 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3268 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3270 2001-08-12 Richard Henderson <rth@redhat.com>
3272 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3273 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3274 scripttempl/v850.sc: Keep .jcr data.
3276 2001-08-12 H.J. Lu <hjl@gnu.org>
3277 Andrew Haley <aph@cambridge.redhat.com>
3278 Nick Clifton <nickc@redhat.com>
3280 * ldgram.y (had_script): Change name to saved_script_handle.
3281 Change type to file handle.
3282 * ld.h (had_script): Rename and retype.
3283 * ldfile.c (ldfile_open_command_file): Save the file handle
3284 used in saved_script_handle.
3285 * lexsup.c (parse_args): Do not allow -c option to alter
3286 saved_script_handle.
3287 * ldmain.c (main): Print out the linker script used if
3288 --verbose is given. Check saved_script_handle to obtain the
3289 external linker script used, or if NULL, dump the builtin
3291 * ld.texinfo: Document that --verbose now dumps the linker
3292 script used, regardless of whether it was an internal or an
3295 2001-08-10 Andreas Jaeger <aj@suse.de>
3297 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3299 * configure: Regenerate.
3301 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3303 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3305 * scripttempl/elf.sc: Move non-text .dynamic section before
3306 .plt/.got/.sdata* group.
3307 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3308 (OTHER_SDATA_SECTIONS): Add.
3309 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3311 * emulparams/crislinux.sh: Likewise.
3312 * emulparams/elf32b4300.sh: Likewise.
3313 * emulparams/elf32bmip.sh: Likewise.
3314 * emulparams/elf32bmipn32.sh: Likewise.
3315 * emulparams/elf32bsmip.sh: Likewise.
3316 * emulparams/elf32btsmip.sh: Likewise.
3317 * emulparams/elf32ebmip.sh: Likewise.
3318 * emulparams/elf32elmip.sh: Likewise.
3319 * emulparams/elf32l4300.sh: Likewise.
3320 * emulparams/elf32lmip.sh: Likewise.
3321 * emulparams/elf32lsmip.sh: Likewise.
3322 * emulparams/elf32ltsmip.sh: Likewise.
3323 * emulparams/elf64bmip.sh: Likewise.
3324 * emulparams/elf64btsmip.sh: Likewise.
3325 * emulparams/elf64ltsmip.sh: Likewise.
3327 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3329 * genscripts.sh: Source the emulparams script before each output
3330 script is generated so that variables like `RELOCATING' may affect
3331 variables defined in the emulparams script.
3333 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3335 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3338 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3339 ie. iterate over wild_statement.section_list.
3340 (gld${EMULATION_NAME}_place_orphan): Likewise.
3342 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3344 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3345 .fini[0-4] sections used by _exit
3346 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3347 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3348 * scripttempl/elfm68hc11.sc: Likewise.
3350 2001-08-03 H.J. Lu <hjl@gnu.org>
3352 * emultempl/beos.em (init): Add the missing initialization.
3354 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3356 * ld.texinfo (Input Section Basics): Clarify ordering of output
3358 * ldlang.c (callback_t): Add wildcard_list param.
3359 (walk_wild_section): Remove "section" param. Rewrite for
3360 lang_wild_statement_type change. Remove unique_section_p test.
3361 (walk_wild_file): Remove "section" param.
3362 (walk_wild): Remove "section" and "file" params.
3363 (lang_gc_wild): Likewise.
3364 (wild): Likewise. Modify for lang_wild_statement_type change.
3365 (wild_sort): Likewise. Add "sec" param.
3366 (gc_section_callback): Likewise.
3367 (output_section_callback): Likewise. Do unique_section_p test.
3368 (map_input_to_output_sections): Modify call to wild.
3369 (lang_gc_sections_1): Likewise.
3370 (print_wild_statement): Modify for lang_wild_statement_type
3372 (lang_add_wild): Replace filename, filenames_sorted param with
3373 filespec. Replace section_name, sections_sorted,
3374 exclude_filename_list with section_list.
3375 * ldlang.h (lang_add_wild): Here too.
3376 (lang_wild_statement_type): Replace section_name, sections_sorted,
3377 and exclude_filename_list with section_list.
3378 * ldgram.y (current_file): Delete.
3379 (%union): Add wildcard_list.
3380 (file_NAME_list): Set type to wildcard_list. Build a linked list
3381 rather than calling lang_add_wild for each entry.
3382 (input_section_spec_no_keep): Call lang_add_wild here instead.
3383 * ld.h (struct wildcard_list): Declare.
3384 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3386 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3388 * ldmain.c (main): initialize link_info.pei386_auto_import
3389 * pe-dll.c: new tables for auto-export filtering
3390 (auto_export): change API, pass abfd for contextual filtering.
3391 Loop thru tables of excluded symbols instead of comparing
3394 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3396 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3397 static variable current_sec (static struct sec *). Add
3398 forward declaration for add_bfd_to_link.
3399 (process_def_file): Don't export undefined symbols. Do not
3400 export symbols starting with "_imp__". Call auto_export()
3402 (pe_walk_relocs_of_symbol): New function.
3403 (generate_reloc): add optional extra debugging
3404 (pe_dll_generate_def_file): eliminate extraneous initial blank
3406 (make_one): enlarge symtab to make room for __nm__ symbols
3407 (DATA auto-import support).
3408 (make_singleton_name_thunk): New function.
3409 (make_import_fixup_mark): New function.
3410 (make_import_fixup_entry): New function.
3411 (pe_create_import_fixup): New function.
3412 (add_bfd_to_link): Specify that 'name' argument is a CONST
3414 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3415 declare new functions pe_walk_relocs_of_symbol and
3416 pe_create_import_fixup.
3417 * emultempl/pe.em: add new options --enable-auto-import,
3418 --disable-auto-import, and --enable-extra-pe-debug.
3419 (make_import_fixup): New function.
3420 (pe_find_data_imports): New function.
3421 (pr_sym): New function.
3422 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3423 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3426 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3428 * ld.texinfo: add additional documentation for
3429 --export-all-symbols. Document --out-implib,
3430 --enable-auto-image-base, --disable-auto-image-base,
3431 --dll-search-prefix, --enable-auto-import, and
3432 --disable-auto-import.
3433 * ldint.texinfo: Add detailed documentation on auto-import
3436 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3438 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3441 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3443 * Makefile.am: Update dependencies with "make dep-am".
3444 * Makefile.in: Regenerate
3446 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3448 * ldcref.c (check_section_sym_xref): New function.
3449 (check_nocrossrefs): Call it.
3450 (check_nocrossref): Interate over h->refs here instead of..
3451 (check_refs): ..here. Pass in the symbol name, section, and bfd
3452 rather than hash_entry pointers.
3453 (struct check_refs_info): Keep symbol name rather than hash entry.
3455 (check_reloc_refs): Tweak for above changes in check_refs_info.
3456 Only report references to section syms when symname is NULL to
3457 prevent duplicate messages for the same reloc.
3459 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3461 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3462 available. Do not print NULL trees.
3463 (exp_print_token): Print unknown tokens with values > 126 as
3464 decimal values not ASCII characters.
3466 * ldlang.c (lang_leave_overlay): If a region is specified assign
3467 it to all sections inside the overlay unless they have been
3468 assigned to the own, non-default, memory region.
3470 * README: Add header for consistency with other README files.
3472 2001-07-14 H.J. Lu <hjl@gnu.org>
3474 * emultempl/elf32.em (output_prev_sec_find): Never return
3475 bfd_abs_section_ptr, bfd_com_section_ptr nor
3476 bfd_und_section_ptr.
3478 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3480 * Makefile.am (em32relf.c): Change dependency from generic.em to
3482 * Makefile.in: Regenerate.
3484 2001-07-14 matthew green <mrg@eterna.com.au>
3486 * configure.tgt (i386-*-netbsdelf*): New target.
3487 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3489 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3491 * emultempl/elf32.em (output_prev_sec_find): New.
3492 (place_orphan): Use it.
3494 2001-07-11 H.J. Lu <hjl@gnu.org>
3496 * ldmain.c (main): Fix typos in the last change.
3498 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3500 * ldmain.c (main): Disallow -F and -f without -shared.
3502 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3504 * emultempl/pe.em (after_open): Check for the output_bfd not
3505 having any coff_data structure allocated to it.
3507 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3509 * emultempl/elf32.em: Do not assuming that contents of the buffer
3510 returned from basename function will remain unchanged accross other
3513 2001-07-03 H.J. Lu <hjl@gnu.org>
3515 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3516 2001-07-03. It creates dynamic entries even for static binaries.
3518 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3520 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3521 (DYNAMIC): Use it to reserve few dynamic entries for
3524 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3526 * emulparams/hppa64linux.sh: New file.
3527 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3528 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3529 (ehppa64linux.c): Add rule to make it.
3531 * Makefile.in: Regenerate.
3533 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3535 * ld.texinfo (Options, -r): Mention restrictions when using
3536 different object formats.
3538 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3540 * ldlang.c (lang_check): Emit fatal error if relocatable link
3541 between different object flavours with relocations in input.
3543 2001-06-19 H.J. Lu <hjl@gnu.org>
3545 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3546 (--version-script): Mention the language support.
3548 2001-06-19 H.J. Lu <hjl@gnu.org>
3550 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3552 2001-06-18 H.J. Lu <hjl@gnu.org>
3554 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3555 (diststuff): Add $(MANS).
3556 * Makefile.in: Regenerated.
3560 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3562 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3563 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3564 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3565 * ld.h (args_type): Remove member export_dynamic. All users
3566 changed to use struct bfd_link_info member.
3568 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3569 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3570 * Makefile.in: Regenerate.
3572 2001-06-18 H.J. Lu <hjl@gnu.org>
3574 * ldlang.c (init_os): Add the newline to the einfo call.
3575 (lang_check): Likewise.
3576 (lang_do_version_exports_section): Likewise.
3578 2001-06-15 H.J. Lu <hjl@gnu.org>
3580 * lexsup.c (parse_args); Save optind to report unrecognized
3583 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3585 * ldlang.c (lang_check): Emit fatal error if relocatable link
3586 between different object flavours.
3588 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3589 Set new link_info member export_dynamic.
3590 * ldmain.c (main): Initialize new link_info member export_dynamic.
3592 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3594 * ldlang.c (walk_wild): Only call walk_wild_file if
3595 lookup_name returns something.
3596 (lookup_name): If load_symbols fails, return NULL.
3597 (load_symbols): Change to a boolean function.
3598 (open_input_bfds): If load_symbols fails then do not make the
3601 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3603 * ldlang.c (record_bfd_errors): Remove.
3605 * emultempl/aix.em: Fix copyright dates.
3607 2001-06-07 Andreas Jaeger <aj@suse.de>
3609 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3610 (TEXT_START_ADDR): Likewise.
3612 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3614 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3616 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3618 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3620 2001-05-31 H.J. Lu <hjl@gnu.org>
3622 * ldlang.c (open_input_bfds): Don't change the bfd error
3623 handler whilst loading symbols.
3625 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3627 * configure.tgt: Remove i370-mvs architecture, it is not currently
3630 2001-05-25 H.J. Lu <hjl@gnu.org>
3632 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3633 like emulparams/aixppc.sh.
3635 2001-05-25 H.J. Lu <hjl@gnu.org>
3637 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3638 setting of output_filename after bfd_scan_arch.
3639 * emultempl/pe.em: Likewise.
3641 2001-05-25 H.J. Lu <hjl@gnu.org>
3643 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3644 like emulparams/aixppc.sh.
3646 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3647 instead of ${srcdir}/emultempl/stringify.sed.
3649 2001-05-25 Timothy Wall <twall@oculustech.com>
3651 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3654 2001-05-25 Alan Modra <amodra@one.net.au>
3656 * configure.host: Replace linuxoldld with linux*oldld.
3657 * configure.tgt: Likewise.
3659 2001-05-24 H.J. Lu <hjl@gnu.org>
3661 * emultempl/stringify.sed: Removed again.
3663 2001-05-24 H.J. Lu <hjl@gnu.org>
3665 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3666 (gld${EMULATION_NAME}_before_parse): Initialize
3667 ldfile_output_architecture, ldfile_output_machine and
3668 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3669 * emultempl/beos.em: Likewise.
3670 * emultempl/elf32.em: Likewise.
3671 * emultempl/linux.em: Likewise.
3672 * emultempl/mipsecoff.em: Likewise.
3673 * emultempl/pe.em: Likewise.
3674 * emultempl/sunos.em: Likewise.
3676 2001-05-24 Tom Rix <trix@redhat.com>
3678 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3679 udate import file format.
3680 (change_symbol_mode) New, same
3681 (is_syscall) New, same
3682 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3683 * emulparams/aixppc64.sh : same
3684 * emulparams/aixrs6.sh : same
3685 * emulparams/ppcmacos.sh : same
3686 * emultempl/aix.em : use strtoull to parse options
3687 * Makefile.am : add eaixppc64 emulation for xcoff64
3688 * Makefile.in : same
3689 * configure.tgt : same
3691 * scripttempl/aix.sc : default text section offset to 0x10000000
3692 default data section offset to 0x20000000
3693 add .sv3264 and .sv64 pseudo sections
3694 loader and debug sections use the currect section offset.
3696 * emultempl/aix.em : Add xcoff64 support
3697 Add -binitfini support
3698 (gld${EMULATION_NAME}_before_parse) -binitfini
3699 (gld${EMULATION_NAME}_parse_args) same
3700 (gld${EMULATION_NAME}_before_allocation) format change for special
3703 * emulparams/aixppc64.sh : New file for xcoff64 support
3705 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3707 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3708 variable to avoid non-portable shell construct.
3710 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3712 * ldmain.c (get_emulation): Add -mips5 command line argument.
3714 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3716 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3717 (ELF_INTERPRETER_NAME): Define it.
3718 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3720 * configure.tgt (targ_emul, targ_extra_emuls)
3721 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3722 as primary, elf_i386 as extra.
3723 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3724 (eelf_i386_ldso.c): New rule.
3725 * Makefile.in: Rebuilt.
3727 2001-05-22 Nick Clifton <nickc@redhat.com>
3729 * lexsup.c (ld_options): Allow -I to be an alias for
3730 --dynamic-linker. This is for Solaris compatability.
3731 * ld.texinfo: Document that -I can be used.
3734 2001-05-16 Alan Modra <amodra@one.net.au>
3736 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3737 whether an input section is the first one assigned to an output
3739 Assorted formatting fixes.
3741 2001-05-14 DJ Delorie <dj@delorie.com>
3743 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3744 * Makefile.in: Ditto.
3746 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3748 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3749 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3751 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3753 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3755 * ldlang.c (lang_process): Call bfd_merge_sections.
3757 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3759 * ldgram.y: Fix typo.
3761 2001-05-03 H.J. Lu <hjl@gnu.org>
3763 * emultempl/elf32.em: Include "libiberty.h".
3764 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3765 basename of the bfd filename.
3766 (gld${EMULATION_NAME}_stat_needed): Likewise.
3767 (gld${EMULATION_NAME}_try_needed): Likewise.
3768 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3770 2001-05-02 H.J. Lu <hjl@gnu.org>
3772 * emultempl/pe.em: Include <ctype.h>.
3774 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3776 * emulparams/elf32openrisc.sh: New file.
3778 * Makefile.am: Add OpenRISC target.
3779 * Makefile.in: Regenerated.
3781 * configure.tgt: Add openrisc-*-* mapping.
3783 2001-05-02 Nick Clifton <nickc@redhat.com>
3785 * emultempl/aix.em: Replace buystring with xstrdup.
3786 * emultempl/beos.em: Replace buystring with xstrdup.
3788 2001-05-02 H.J. Lu <hjl@gnu.org>
3790 * ldfile.c: Include "libiberty.h".
3791 * ldlex.l: Likewise.
3793 * ldmisc.c (buystring): Removed.
3794 * ldmisc.h: Likewise.
3796 * ldfile.c: Replace buystring with xstrdup.
3797 * ldlang.c: Likewise.
3798 * ldlex.l: Likewise.
3799 * ldmain.c: Likewise.
3800 * ldmisc.c: Likewise.
3801 * lexsup.c: Likewise.
3802 * mpw-eppcmac.c: Likewise.
3804 2001-04-30 Andreas Jaeger <aj@suse.de>
3806 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3808 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3810 * ldlang.c (load_symbols): Give emulation a chance
3811 to process unrecognized file before fatal error is
3812 reported, not after.
3814 2001-04-27 Sean McNeil <sean@mcneil.com>
3816 * configure.tgt: Add arm-vxworks target.
3817 * scripttempl/armcoff.sc: Support .text or .data as a section name
3821 2001-04-13 J.T. Conklin <jtc@redback.com>
3823 * ld.texinfo: Document --fatal-warnings.
3826 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3827 warnings have been turned into errors.
3828 * lexsup.c (OPTION_WARN_FATAL): Define.
3829 (ld_options): Entry for --fatal-warnings.
3830 (parse_args): Handle OPTION_WARN_FATAL.
3831 * ld.h (ld_config_type): Add fatal_warnings field.
3833 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3835 * ldmain.c (main): Default to discard_sec_merge.
3836 * lexsup.c (OPTION_DISCARD_NONE): Define.
3837 (ld_options): Add --discard-none.
3838 (parse_args): Handle OPTION_DISCARD_NONE.
3839 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3840 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3841 all its input sections match.
3843 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3845 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3846 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3847 (eelf32ltsmip.c): New target.
3848 (eelf64btsmip.c): Likewise.
3849 (eelf64ltsmip.c): Likewise.
3850 * Makefile.in: Regenerated.
3852 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3854 (mips*-*-linux-gnu*): Likewise.
3856 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3858 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3860 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3863 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3865 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3866 correct value of __Stext here.
3867 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3870 * emulparams/crislinux.sh: Remove FIXME.
3872 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3874 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3875 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3877 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3879 * configure.tgt (cris-*-*): Change default emulation to criself.
3880 (cris-*-*aout*): New rule.
3882 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3884 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3885 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3887 2001-03-26 Andreas Jaeger <aj@suse.de>
3889 * ld.texinfo (Overview): Fix syntax in texi code.
3891 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3893 * ld.texinfo: Put @c man indications to generate the ld man page.
3894 When generating man, define all the variables. Define SEEALSO
3895 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3896 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3897 (ld.1): Generate from ld.texinfo.
3898 * Makefile.in: Regenerate.
3900 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3902 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3903 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3905 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3907 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3908 is an absolute path look only for this file and not along the path.
3910 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3912 * emultempl/elf32.em (OPTION_GROUP): New macro.
3913 Add new option Bgroup to longopts.
3914 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3915 (gld*_list_options): Add -Bgroup and -z defs.
3916 * ld.1: Document -Bgroup and -z defs.
3917 * ld.texinfo: Likewise.
3919 2001-03-07 Michael Meissner <meissner@redhat.com>
3921 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3922 with sections created by -fdata-sections.
3923 (.dynbss,.bss): Ditto.
3925 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3927 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3928 after_allocation_default, not gld..._before_allocation.
3930 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3932 * configure.in (BFD_VERSION): New.
3933 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3934 * configure: Regenerate.
3935 * Makefile.am: Run "make dep-am"
3936 * Makefile.in: Regenerate.
3938 2001-02-26 Timothy Wall <twall@cygnus.com>
3940 * emulparams/elf64_aix.sh: Add additional read-only sections;
3941 uncomment lines which are now required.
3943 2001-02-26 H.J. Lu <hjl@gnu.org>
3945 * ldlang.c (open_input_bfds): Set the bfd error handler so
3946 that problems can be caught whilst loading symbols.
3947 (record_bfd_errors): New function: Report BFD errors and mark
3948 the executable output as being invalid.
3950 2001-02-22 Timothy Wall <twall@cygnus.com>
3952 * configure.host: Add configuration for ia64-*-aix*.
3953 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3954 Add dependencies for eelf64_aix.c.
3955 * Makefile.in: Regenerate.
3956 * configure.tgt: Add ia64-*-aix* mapping.
3957 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3959 2001-02-20 H.J. Lu <hjl@gnu.org>
3961 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3962 false if we found the file.
3964 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3966 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3967 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3969 2001-02-18 lars brinkhoff <lars@nocrew.org>
3971 * Makefile.am: Add PDP-11 target.
3972 * configure.tgt: Likewise.
3973 * emulparams/pdp11.sh: New file.
3975 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3977 * configure.host: Add a generic FreeBSD configuration entry such that
3978 all [modern] FreeBSD systems on all platforms will look the same.
3980 2001-02-14 H.J. Lu <hjl@gnu.org>
3982 * configure.tgt: Remove mention of earmelf_linux26.
3984 2001-02-13 Richard Henderson <rth@redhat.com>
3986 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3988 2001-02-13 H.J. Lu <hjl@gnu.org>
3990 * ldexp.h (node_type): Add etree_provided.
3991 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3992 type to etree_provided if defined by PROVIDE. Allow updating
3994 (exp_print_tree): Handle etree_provided.
3995 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3998 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4000 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4001 .IA_64.unwind.* pattern to unwind table section and
4002 .IA_64.unwind_info* pattern to unwind info section.
4004 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4006 * Makefile.am: Add linux target for S/390.
4007 * Makefile.in: Likewise.
4008 * configure.host: Likewise.
4009 * configure.tgt: Likewise.
4010 * emulparams/elf64_s390.sh: New file.
4011 * emulparams/elf_s390.sh: New file.
4013 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4015 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4017 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4019 2001-02-06 Philip Blundell <philb@gnu.org>
4021 * Makefile.am: Remove mention of earmelf_linux26.
4022 * Makefile.in: Regenerate.
4024 2001-02-04 Philip Blundell <philb@gnu.org>
4026 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4027 * emulparams/armelf_linux26.sh: Delete.
4028 * configure.tgt: Remove mention of armelf_linux26 emulation.
4030 2001-02-01 Nick Clifton <nickc@redhat.com>
4032 * ld.1: Replace occurances of -oformat with --oformat.
4034 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4036 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4037 load_base is specified.
4039 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4041 * emultempl/elf32.em: Correct spelling in comments and listed
4044 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4046 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4047 default for the first section of a group of overlay sections.
4049 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4051 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4052 * Makefile.in: Regenerate.
4053 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4054 Check for null tool_dir.
4056 2001-01-16 Jim Wilson <wilson@redhat.com>
4058 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4059 and IA_64.unwind.info.
4061 2001-01-16 H.J. Lu <hjl@gnu.org>
4063 * ldlang.c (lang_check): Merge the private data only if the
4064 input file has contents.
4066 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4068 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4070 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4071 enabling search for libmilli. On a relocatable link, make .text
4073 (LDEMUL_AFTER_PARSE): Define.
4074 (hppaelf_finish): Correct spelling of relocatable in comments.
4076 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4077 rummage through the script for sections on the unique list.
4078 Correct length of strncmp for ".note".
4079 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4081 * ldlang.c (unique_section_list): New var.
4082 (unique_section_p): New function.
4083 (walk_wild_section): Don't match sections on unique_section_list.
4084 (lang_add_unique): New function.
4085 Correct spelling of relocatable in comments.
4087 * ldlang.h (struct unique_sections): Declare.
4088 (unique_section_list): Declare.
4089 (unique_section_p): Declare.
4090 (lang_add_unique): Declare.
4092 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4093 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4095 * ld.texinfo (--unique): Update.
4097 2001-01-13 Nick Clifton <nickc@redhat.com>
4099 * lexsup.c (parse_args): Remove spurious white space.
4101 2001-01-12 Nick Clifton <nickc@redhat.com>
4103 * lexsup.c (parse_args): Update copyright date.
4105 2001-01-12 Philip Blundell <pb@futuretv.com>
4107 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4109 2001-01-10 Kazu Hirata <kazu@hxi.com>
4111 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4112 * scripttempl/h8300h.sc: Fix formatting.
4113 * scripttempl/h8300s.sc: Likewise.
4114 * scripttempl/h8500.sc: Likewise.
4115 * scripttempl/h8500b.sc: Likewise.
4116 * scripttempl/h8500c.sc: Likewise.
4117 * scripttempl/h8500m.sc: Likewise.
4118 * scripttempl/h8500s.sc: Likewise.
4120 2000-01-07 David O'Brien <obrien@BSDi.com>
4122 * emultempl/elf32.em: Only perform Linux ld hints processing when
4125 2001-01-07 Philip Blundell <philb@gnu.org>
4127 * ld.texinfo (Bug Reporting): Update email address for reports.
4129 2000-12-31 Nick Clifton <nickc@redhat.com>
4131 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4132 options by checking for a return value of '?' not -1.
4134 2000-12-28 Nick Clifton <nickc@redhat.com>
4136 * lexsup.c (struct ld_option): Add new enum value:
4138 (ld_options[]): Change -omagic, -output and -oformat options
4139 to be EXACTLY_TWO_DASHES.
4140 (OUTPUT_COUNT): Use ARRAY_SIZE.
4141 (parse_args): Change parameter 'argc' to unsigned.
4142 Place EXACTLY_TWO_DASHES options into new really_longopts
4144 If getopt_long_only fails, try calling getopt_long using the
4145 really_longopts array.
4146 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4149 * ldlex.h: Fix prototype of parse_args.
4151 * ld.texinfo: Document that long options starting with 'o'
4152 must be preceeded by two dashes. Change example of a single
4153 dashed long option from -oformat to -trace-symbol.
4155 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4157 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4158 (longopts[]): New --no-default-excludes option.
4159 (gld_${EMULATION_NAME}_list_options): Document.
4160 (gld_${EMULATION_NAME}_parse_args): Handle.
4162 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4164 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4165 whitespace, it breaks the K&R C preprocessor.
4167 2000-12-11 DJ Delorie <dj@redhat.com>
4169 * ld.texinfo: Add notes about --whole-archive and gcc.
4171 2000-11-18 Fred Fish <fnf@be.com>
4173 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4174 (ld_options): Entry for --allow-shlib-undefined.
4175 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4176 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4178 * ld.texinfo: Document new command line switch.
4180 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4182 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4183 .fixup is actually read/write.
4184 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4185 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4186 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4188 2000-12-11 Jan Hubicka <jh@suse.cz>
4190 * NEWS: Add note about x86_64 architecture.
4192 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4194 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4195 Set DWARF2 sections to a VMA of zero.
4197 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4199 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4201 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4202 (sparc*-*-rtems*): Switched from a.out to ELF.
4204 2000-11-30 Jan Hubicka <jh@suse.cz>
4206 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4207 (eelf_x86_64.c): New.
4208 * Makefile.in: Regenerate.
4209 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4210 * emulparams/elf_x86_64.sh: New.
4212 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4214 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4215 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4217 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4218 merging non-a.out sections into CONSTRUCTING.
4220 2000-11-28 Nick Clifton <nickc@redhat.com>
4222 * ld.1 (COPYING): Mention that the GNU Free Documentation
4223 License is present in the sources, but not the output, and
4224 also available from the GNU website.
4225 (GNU Free Documentation License): Comment out this section.
4227 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4229 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4232 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4234 * ld.1: Remove old date so it does not give the impression the manpage
4237 2000-11-24 Nick Clifton <nickc@redhat.com>
4239 * configure.tgt (xscale-coff): Add target.
4240 (xscale-elf): Add target.
4242 2000-11-24 Fred Fish <fnf@be.com>
4244 * ldmain.c (main): Remove redundant init of config.make_executable
4247 2000-11-15 Richard Henderson <rth@redhat.com>
4249 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4251 2000-11-14 Kazu Hirata <kazu@hxi.com>
4253 * scripttempl/h8300.sc: Fix formatting.
4254 * scripttempl/h8300h.sc: Likewise.
4255 * scripttempl/h8300s.sc: Likewise.
4257 2000-11-14 Denis Chertykov <denisc@overta.ru>
4259 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4261 2000-11-09 Philip Blundell <pb@futuretv.com>
4263 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4264 around orphan sections whose names can be represented in C.
4266 2000-11-07 Jim Wilson <wilson@redhat.com>
4268 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4269 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4271 2000-11-06 Nick Clifton <nickc@redhat.com>
4273 * ld.texinfo: Add GNU Free Documentation License.
4274 * ldint.texinfo: Add GNU Free Documentation License.
4275 * ld.1: Add GNU Free Documentation License.
4277 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4279 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4280 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4282 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4283 Move 2000-11-02 Makefile.in changes to this file.
4284 * Makefile.in: Regenerate.
4286 2000-11-03 Nick Clifton <nickc@redhat.com>
4288 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4289 constructors and destructors.
4290 * scripttempl/h8300h.sc: Ditto.
4291 * scripttempl/h8300s.sc: Ditto.
4292 * scripttempl/h8500.sc: Ditto.
4293 * scripttempl/h8500b.sc: Ditto.
4294 * scripttempl/h8500c.sc: Ditto.
4295 * scripttempl/h8500m.sc: Ditto.
4296 * scripttempl/h8500s.sc: Ditto.
4297 * scripttempl/v850.sc: Ditto.
4298 * scripttempl/w65.sc: Ditto.
4299 * scripttempl/z8000.sc: Ditto.
4301 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4303 * Makefile.in (e_i386_chaos.c): New rule.
4304 (ALL_EMULATIONS): Added e_i386_chaos.o.
4305 * emulparams/elf_i386_chaos.sh: New file.
4306 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4308 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4310 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4311 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4312 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4313 library path suffix.
4314 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4316 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4318 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4319 for consecutive sections.
4321 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4323 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4325 * ld.texinfo: Added notes about this new option.
4327 2000-10-16 Nick Clifton <nickc@redhat.com>
4329 * emultempl/pe.em (_after_open): Add tests of return values from
4330 bfd functions. Emit appropriate error messages if necessary.
4332 2000-10-13 Nick Clifton <nickc@redhat.com>
4334 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4335 local variables - they are not used, but leave in the call to
4336 bfd_canonicalize_symtab.
4337 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4338 pe_dll_search_prefix.
4340 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4342 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4343 (longopts): New --dll-search-prefix option.
4344 (gld_${EMULATION_NAME}_list_options): Document.
4345 (gld_${EMULATION_NAME}_parse_args): Handle.
4346 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4347 dynamically, search for a dll named '<prefix><basename>.dll'
4348 in preference to 'lib<basename>.dll' if --dll-search-prefix
4351 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4353 * ldlang.c (section_already_linked): Set kept_section instead of
4356 2000-10-10 Kazu Hirata <kazu@hxi.com>
4358 * deffile.h: Fix formatting.
4359 * lexsup.c: Likewise.
4362 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4364 * pe-dll.c (make_one): Do not generate code thunk for DATA
4366 (process_def_file): deduce DATA flag for auto-export sumbols.
4368 2000-10-09 Kazu Hirata <kazu@hxi.com>
4370 * ld.h: Fix formatting.
4371 * ldcref.c: Likewise.
4372 * ldctor.h: Likewise.
4373 * ldemul.c: Likewise.
4374 * ldemul.h: Likewise.
4375 * ldexp.c: Likewise.
4376 * ldexp.h: Likewise.
4377 * ldfile.c: Likewise.
4378 * ldfile.h: Likewise.
4379 * ldlang.c: Likewise.
4380 * ldlang.h: Likewise.
4381 * ldmain.c: Likewise.
4382 * pe-dll.c: Likewise.
4384 * pe-dll.c: Revert some formatting fixes.
4386 2000-10-08 Kazu Hirata <kazu@hxi.com>
4388 * pe-dll.c: Fix formatting.
4390 2000-10-05 Kazu Hirata <kazu@hxi.com>
4392 * ldlang.c: Fix formatting.
4394 2000-10-03 DJ Delorie <dj@redhat.com>
4396 * pe-dll.c (fill_edata): initialize entire block
4397 (make_one): fill in correct section.
4399 2000-10-03 Kazu Hirata <kazu@hxi.com>
4401 * ldexp.c: Fix formatting.
4403 2000-10-02 DJ Delorie <dj@redhat.com>
4405 * emultempl/pe.em (gld_*_after_open): detect case where there two
4406 import libraries for same dll; rename one to ensure proper link
4409 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4411 (generate_edata): fix typo
4413 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4415 * scripttempl/crisaout.sc (ENTRY): Now __start.
4416 (.text): Add default setting for __start.
4417 Remove CONSTRUCTORS handling.
4418 (/DISCARD/): Add .gnu.warning.*.
4419 * emulparams/crislinux.sh (ENTRY): Now __start.
4420 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4421 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4422 (ENTRY): Now __start.
4423 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4424 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4426 2000-09-29 Kazu Hirata <kazu@hxi.com>
4428 * deffile.h: Fix formatting.
4430 * ldcref.c: Likewise.
4431 * ldctor.c: Likewise.
4432 * ldctor.h: Likewise.
4433 * ldemul.c: Likewise.
4434 * ldemul.h: Likewise.
4435 * ldexp.c: Likewise.
4436 * ldexp.h: Likewise.
4437 * ldfile.c: Likewise.
4438 * ldfile.h: Likewise.
4439 * ldlang.c: Likewise.
4440 * ldlang.h: Likewise.
4441 * lexsup.c: Likewise.
4443 * pe-dll.c: Likewise.
4445 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4447 * pe-dll.c (process_def_file): Uninitialized data wasn't
4448 exported with --export-all-symbols switch.
4450 2000-09-28 DJ Delorie <dj@redhat.com>
4452 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4453 noname work properly.
4455 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4457 * ld.texinfo (HPPA ELF32): New section.
4459 * emultempl/hppaelf.em (group_size): New.
4460 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4461 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4462 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4463 options to prevent abbreviations matching.
4464 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4465 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4467 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4469 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4470 on the m68*-*-elf target. Make it support COFF input objects.
4472 2000-09-21 Kazu Hirata <kazu@hxi.com>
4474 * ldmain.c: Fix formatting.
4475 * ldmisc.c: Likewise.
4476 * ldver.c: Likewise.
4477 * ldwrite.c: Likewise.
4479 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4481 * ldwrite.c (clone_section): Silence gcc warnings.
4483 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4485 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4486 out of memory failure.
4488 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4489 (clone_section): Handle out of memory failures. Rename var to
4490 avoid c++ reserved word.
4492 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4494 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4495 stub_name param to stub_sec_name.
4496 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4498 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4500 * emultempl/m68kelf.em: New file.
4501 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4502 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4503 * Makefile.in: Regenerate.
4505 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4507 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4510 2000-09-13 Nick Clifton <nickc@redhat.com>
4512 * ldmain.c (multiple_definition): Disable relaxation if
4513 multiple symbol definitions are encountered - otherwise the
4514 linker could abort with an assertion failure.
4516 2000-09-10 Nick Clifton <nickc@redhat.com>
4518 * mri.c: Fix formatting.
4520 2000-09-07 H.J. Lu <hjl@gnu.org>
4522 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4523 * configure: Rebuild.
4525 2000-09-07 H.J. Lu <hjl@gnu.org>
4527 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4528 * Makefile.in: Rebuild.
4530 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4532 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4533 broken list handling. Create __start_SECNAME and __stop_SECNAME
4534 when no place-holder. Add some comments. Test both SEC_CODE and
4535 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4536 Handle case where no output section statement created.
4538 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4540 * configure.tgt (sh-*-linux*): Added.
4541 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4542 * Makefile.in: Rebuilt.
4543 * emulparams/shelf_linux.sh: New file.
4544 * emulparams/shlelf_linux.sh: New file.
4546 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4548 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4549 try shuffling sections when the orphan happens to be the place
4550 holder. Keep count of unique section names generated so we speed
4551 the search for a new name.
4553 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4555 * configure: Rebuilt with new libtool.m4.
4557 2000-09-05 Nick Clifton <nickc@redhat.com>
4559 * Makefile.in: Regenerate.
4560 * aclocal.m4: Regenerate.
4561 * configure: Regenerate.
4562 * config.in: Regenerate.
4563 * po/ld.pot: Regenerate.
4565 * ldint.texinfo: Remove CVS revision marker - it foils local
4568 * emultempl/ticoff.em: Remove extraneous comma.
4570 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4572 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4573 to stub section flags.
4574 (hppa_for_each_input_file_wrapper): New.
4575 (hppa_lang_for_each_input_file): New.
4576 (lang_for_each_input_file): Define to call above.
4577 (multi_subspace): New.
4578 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4579 (PARSE_AND_LIST_PROLOGUE): Define.
4580 (PARSE_AND_LIST_LONGOPTS): Define.
4581 (PARSE_AND_LIST_OPTIONS): Define.
4582 (PARSE_AND_LIST_ARGS_CASES): Define.
4583 (hppaelf_finish): Call elf32_hppa_set_gp.
4584 (hppaelf_set_output_arch): Remove.
4585 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4587 * emulparams/hppalinux.sh (ELFSIZE): Define.
4589 (OTHER_READONLY_SECTIONS): Define.
4591 (GENERATE_SHLIB_SCRIPT): Define.
4593 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4594 to const throughout. Change `void *' to `PTR' throughout.
4595 (lang_memory_default): Function is local to file, add `static'.
4597 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4598 (ehppalinux.c): Likewise.
4599 (earmelf.c): Likewise.
4600 (earmelf_linux.c): Likewise.
4601 (earmelf_linux26.c): Likewise.
4602 * Makefile.in: Regenerate.
4604 * ld.h (ld_config_type): Add unique_orphan_sections.
4605 * lexsup.c (OPTION_UNIQUE): Define.
4606 (ld_options): Add "--unique".
4607 (parse_args): Handle it.
4608 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4609 search for an existing output section if unique_orphan_sections is
4610 set. Make use of bfd_get_unique_section_name rather than
4611 duplicating code here.
4612 * ld.texinfo: Describe --unique.
4614 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4615 optional arg to split-by-file.
4616 (parse_args): Handle them.
4617 * ld.texinfo: Update description of these options.
4618 * ldwrite.c (clone_section): Pass in the section name. Replace
4619 local code with bfd_get_unique_section_name.
4620 (split_sections): Tidy code and comments. Use a list traversal
4621 more appropriate to the list construction. Handle cooked section
4622 sizes. Split when split_by_reloc reached rather than exceeded.
4623 Track section size and split when split_by_file reached. Fix
4624 link_order_tail (even though it's not used).
4625 (ldwrite): Modify condition for calling split_sections to suit
4626 changed split_by_reloc and split_by_file.
4627 * ldmain.c (main): Init config.split_by_reloc and
4628 config.split_by_file to -1.
4629 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4630 Change split_by_file to bfd_size_type.
4632 2000-09-02 Nick Clifton <nickc@redhat.com>
4634 * configure.in: Increase version number to 2.10.91.
4635 * NEWS: Mention new ability to support removal of duplicate DWARF2
4637 * configure: Regenerate.
4638 * aclocal.m4: Regenerate.
4639 * config.in: Regenerate.
4641 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4643 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4645 * scripttempl/elf32avr.sc: Ditto.
4646 * scripttempl/elfd10v.sc: Ditto.
4647 * scripttempl/elfd30v.sc: Ditto.
4648 * scripttempl/elfi370.sc: Ditto.
4649 * scripttempl/elfm68hc11.sc: Ditto.
4650 * scripttempl/elfm68hc12.sc: Ditto.
4651 * scripttempl/elfi386beos.sc: Ditto.
4652 * scripttempl/v850.sc: Ditto.
4654 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4656 * acinclude.m4: Include libtool and gettext macros from the
4658 * aclocal.m4, configure: Rebuilt.
4660 2000-08-25 Nick Clifton <nickc@redhat.com>
4662 * ldlang.c (open_output): When choosing the target for a
4663 particular endianness, do nothing if the target is not
4666 2000-08-25 H.J. Lu <hjl@gnu.org>
4668 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4669 check -rpath nor LD_RUN_PATH for cross link.
4670 * ld.texinfo: Document the change.
4672 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4674 * NEWS: Mention support for CRIS.
4676 2000-08-23 H.J. Lu <hjl@gnu.org>
4678 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4679 the current runpath list from bfd_elf_get_runpath_list ()
4682 2000-08-22 H.J. Lu <hjl@gnu.org>
4684 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4685 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4686 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4687 trace_file_tries is non-zero.
4688 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4689 if trace_file_tries is non-zero.
4691 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4694 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4696 * NEWS: Mention i860 support.
4698 2000-08-14 Andreas Schwab <schwab@suse.de>
4700 * scripttempl/elf.sc: Fix last change to use correct comment
4703 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4705 * scripttempl/elf.sc: Add a comment giving the correspondence
4706 between sections, per-datum sections, and linkonce sections. Make
4707 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4710 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4712 * emulparams/elf32_i860.sh: New file.
4713 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4714 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4715 (eelf32_i860.c): New rule.
4716 * Makefile.in: Regenerate.
4718 2000-08-10 Nick Clifton <nickc@cygnus.com>
4720 * emulparams/mipspe.sh (ENTRY): Add definition.
4722 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4724 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4727 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4729 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4730 the final size of .bss section.
4731 * scripttempl/elfm68hc12.sc: Likewise.
4733 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4735 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4736 gld${EMULATION_NAME}_parse_args for consistency. Combine
4737 lastoptind and prevoptind vars, and keep track of last optind.
4738 (gld_${EMULATION_NAME}_list_options): Rename to
4739 gld${EMULATION_NAME}_list_options.
4741 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4743 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4744 (i586-sco-sysv5uw7.1.0).
4746 2000-07-27 H.J. Lu <hjl@gnu.org>
4748 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4749 (PARSE_AND_LIST_PROLOGUE): New.
4750 (PARSE_AND_LIST_LONGOPTS): Likewise.
4751 (PARSE_AND_LIST_OPTIONS): Likewise.
4752 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4753 (PARSE_AND_LIST_EPILOGUE): Likewise.
4755 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4757 * emultempl/armelf.em: Elide functions common to elf32.em,
4758 ie. most of the file.
4759 (arm_elf_after_open): New. Do arm specific things then call
4760 gld${EMULATION_NAME}_after_open.
4761 (arm_elf_before_allocation): New. Call
4762 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4763 (PARSE_AND_LIST_PROLOGUE): Define.
4764 (PARSE_AND_LIST_SHORTOPTS): Define.
4765 (PARSE_AND_LIST_LONGOPTS): Define.
4766 (PARSE_AND_LIST_OPTIONS): Define.
4767 (PARSE_AND_LIST_ARGS_CASES): Define.
4768 (LDEMUL_AFTER_OPEN): Define.
4769 (LDEMUL_BEFORE_ALLOCATION): Define.
4770 (LDEMUL_BEFORE_PARSE): Define.
4771 (LDEMUL_FINISH): Define.
4773 * emultempl/hppaelf.em: Similarly zap most of this file.
4774 (hppaelf_add_stub_section): Prototype.
4775 (hppaelf_layaout_sections_again): Prototype.
4776 (hook_in_stub): Prototype.
4777 (LDEMUL_SET_OUTPUT_ARCH): Define.
4778 (LDEMUL_FINISH): Define.
4779 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4781 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4782 (EXTRA_EM_FILE): New.
4783 * emulparams/armelf_linux.sh: Likewise.
4784 * emulparams/armelf_linux26.sh: Likewise.
4785 * emulparams/hppalinux.sh: Likewise.
4786 * emulparams/hppaelf.sh: Likewise.
4789 * emultempl/elf32.em: Fix formatting.
4790 (EXTRA_EM_FILE): Source it.
4791 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4792 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4793 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4794 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4795 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4796 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4797 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4798 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4799 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4800 allow functions in this file to be overridden.
4801 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4803 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4805 * emultempl/elf32.em: Reorganize file.
4807 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4809 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4810 specific option to fit 64-bit executable in the lower
4811 31-bit address range. This is done by changing start
4812 address of .interp (the very first section of executable)
4813 and then setting EF_ALPHA_32BIT elf header flag.
4815 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4817 * emultempl/m68kcoff.em: New file.
4818 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4819 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4821 * Makefile.in: Regenerate.
4823 2000-07-20 H.J. Lu <hjl@gnu.org>
4825 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4826 and "disable-new-dtags" to stop getopt from treating -d/-e as
4827 abbreviations for these options.
4829 2000-07-20 H.J. Lu <hjl@gnu.org>
4831 * ld.texinfo: Add documentation for --disable-new-dtags and
4834 * ldmain.c (main): Initialize link_info.new_dtags to false.
4836 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4837 --disable-new-dtags and --enable-new-dtags.
4838 (gld_${EMULATION_NAME}_list_options): Likewise.
4840 2000-07-05 Kenneth Block <krblock@computer.org>
4842 * lexsup.c: Add optional style to demangle switch
4843 * ld.texinfo: Document optional style to demangle switch.
4845 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4847 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4849 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4850 Regenerate dependencies.
4851 * Makefile.in: Rebuild.
4852 * configure.tgt (cris-*-*): New target.
4853 * emulparams/crisaout.sh, emulparams/criself.sh,
4854 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4855 * po/POTFILES.in, po/ld.pot: Regenerate.
4857 2000-07-20 H.J. Lu <hjl@gnu.org>
4859 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4860 Print out ignored -z options.
4862 2000-07-19 H.J. Lu <hjl@gnu.org>
4864 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4865 (PARSE_AND_LIST_PROLOGUE): New.
4866 (PARSE_AND_LIST_LONGOPTS): Likewise.
4867 (PARSE_AND_LIST_OPTIONS): Likewise.
4868 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4870 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4872 * lexsup.c (ld_options): Comment out 'z'.
4873 (parse_args): Likewise.
4875 * emultempl/elf32.em: Include "elf/common.h".
4876 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4878 (gld_${EMULATION_NAME}_list_options): Likewise.
4880 * ld.texinfo: Add documentation for the recognized -z options.
4882 2000-07-19 H.J. Lu <hjl@gnu.org>
4884 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4885 bfd_elf_set_dt_needed_soname ().
4887 2000-07-18 DJ Delorie <dj@cygnus.com>
4889 * pe-dll.c (pe_dll_id_target): check object target name also
4891 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4893 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4894 ${INIT_END} if relocating.
4895 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4897 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4899 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4900 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4901 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4902 errors introduced by the old dynamic lib search order.
4904 2000-07-17 DJ Delorie <dj@cygnus.com>
4906 * pe-dll.c (process_def_file): auto-export data items also
4907 (pe_process_import_defs): also see if _imp_ form needed
4909 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4911 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4912 for dll import libraries
4914 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4916 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4917 gcc 2.95.2 and later.
4919 2000-07-11 Kazu Hirata <kazu@hxi.com>
4921 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4924 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4926 * ldemul.h (struct lang_input_statement_struct): Remove forward
4928 (struct search_dirs): Likewise.
4929 * ldfile.h (struct lang_input_statement_struct): Likewise.
4930 Protect file from multiple inclusion.
4931 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4932 declaration from macro to file scope.
4934 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4935 * ldgram.y: Likewise here.
4936 * ldlang.c: And here.
4937 * ldmain.c: And here.
4938 * mpw-elfmips.c: And here.
4939 * mpw-eppcmac.c: And here.
4940 * emultempl/aix.em: And here.
4941 * emultempl/armcoff.em: And here.
4942 * emultempl/armelf.em: And here.
4943 * emultempl/armelf_oabi.em: And here.
4944 * emultempl/beos.em: And here.
4945 * emultempl/elf32.em: And here.
4946 * emultempl/hppaelf.em: And here.
4947 * emultempl/linux.em: And here.
4948 * emultempl/lnk960.em: And here.
4949 * emultempl/pe.em: And here.
4950 * emultempl/sunos.em: And here.
4951 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4952 * mpw-idtmips.c: Ditto.
4953 * emultempl/generic.em: Ditto.
4954 * emultempl/gld960.em: Ditto.
4955 * emultempl/gld960c.em: Ditto.
4956 * emultempl/mipsecoff.em: Ditto.
4957 * emultempl/ticoff.em: Ditto.
4958 * emultempl/vanilla.em: Ditto.
4960 * pe-dll.c: Include ldfile.h
4961 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4963 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4964 arguments to bfd_elf32_size_dynamic_sections call.
4965 (gldelf32ebmip_place_orphan): Add missing arguments to
4966 lang_leave_output_section_statement call.
4968 2000-07-10 H.J. Lu <hjl@gnu.org>
4970 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4972 (strhash): Likewise.
4973 (compute_dll_image_base): Likewise.
4974 (pe_undef_found_sym): Likewise.
4975 (pe_undef_cdecl_match): Likewise.
4976 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4977 argument "arch" with ATTRIBUTE_UNUSED.
4979 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4981 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4983 From Ryan Bradetich <rbradetich@uswest.net>
4984 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4986 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4988 Changes to create multiple linker stubs, positioned immediately
4989 before the section where they are required.
4990 * emultempl/hppaelf.em: Include elf32-hppa.h.
4991 (stub_sec, file_chain): Delete.
4992 (hppaelf_create_output_section_statements): Don't make a stub
4994 (hook_stub_info): New struct.
4995 (hook_in_stub): New function.
4996 (hppaelf_add_stub_section): New function.
4997 (hppaelf_finish): Do nothing for relocateable links. Modify the
4998 call to elf32_hppa_size_stubs. Move code for updating section
5000 (hppaelf_layaout_sections_again): ..to here, a new function.
5002 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5003 broken list handling. Pass in a pointer to the list.
5004 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5006 (hppaelf_before_parse): Prototype.
5007 (hppaelf_set_output_arch): Prototype.
5008 (hppaelf_create_output_section_statements): Prototype.
5009 (hppaelf_delete_padding_statements): Prototype.
5010 (hppaelf_finish): Prototype.
5013 * emultempl/hppaelf.em: Include ctype.h.
5014 (struct orphan_save): New.
5015 (gld${EMULATION_NAME}_place_orphan): New.
5016 (output_rel_find): New.
5017 (hppaelf_get_script): Update from elf32.em.
5018 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5019 Change emulation_name field to "${EMULATION_NAME}". Add
5020 gld${EMULATION_NAME}_place_orphan.
5022 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5023 ehppalinux.o, sort it. Regenerate dependencies.
5024 (ehppalinux.c): Depend on hppaelf.em
5025 * Makefile.in: Regenerate.
5027 * configure.tgt: targ_emul=hppalinux for hppa*linux
5029 * emulparams/hppalinux.sh: New.
5030 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5032 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5034 * lexsup.c (parse_args): Copy section name.
5036 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5038 * emultempl/pe.em: institute the following search order for
5039 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5040 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5041 static lib (libfoo.a) if none of the above are found.
5043 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5045 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5046 (longopts): New --{enable,disable}-auto-image-base options.
5047 (gld_${EMULATION_NAME}_list_options): Document.
5048 (gld_${EMULATION_NAME}_parse): Handle.
5049 (strhash): New static function.
5050 (compute_dll_image_base): New static function.
5051 (gld_${EMULATION_NAME}_set_symbols): Use.
5053 2000-07-05 DJ Delorie <dj@redhat.com>
5057 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5059 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5060 * emulparams/elf32btsmip.sh: New file.
5061 * Makefile.am: Add traditional mips target.
5062 * Makefile.in: Rebuild.
5064 2000-07-01 H.J. Lu <hjl@gnu.org>
5066 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5067 automake to use YLWRAP.
5068 * Makefile.in: Rebuild.
5070 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5072 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5073 (CLEANFILES): Add DEPA.
5074 * Makefile.in: Regenerate.
5076 2000-06-30 Timothy Wall <twall@ppc>
5078 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5079 the page in the upper octet of the address.
5081 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5083 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5085 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5087 * NEWS: arm-elf does --gc-sections too.
5089 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5091 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5093 * Makefile.in: Regenerate.
5095 2000-06-21 H.J. Lu <hjl@gnu.org>
5097 * Makefile.am: Rebuild dependency.
5098 * Makefile.in: Rebuild.
5100 2000-06-20 H.J. Lu <hjl@gnu.org>
5102 * Makefile.am: Rebuild dependency.
5103 * Makefile.in: Rebuild.
5105 2000-06-20 Timothy Wall <twall@cygnus.com>
5107 * scripttempl/tic54xcoff.sc: New.
5108 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5109 * gen-doc.texi: Add flag for TI COFF.
5110 * ld.texinfo: Add documentation for TI COFF handling switches.
5111 * emultempl/ticoff.em: New. TI COFF handling.
5112 * configure.tgt: Add tic54x target.
5113 * Makefile.am: Add tic54x target.
5114 * Makefile.in: Ditto.
5116 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5118 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5119 checking for backslashes.
5121 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5123 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5125 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5127 * NEWS: Update list of targets supporting --gc-sections.
5129 * scripttempl/elf.sc: KEEP .eh_frame contents.
5130 * scripttempl/elfd30v.sc: Same here.
5132 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5134 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5136 * Makefile.in: Rebuild.
5137 * configure.tgt: Recognize m68hc12 and m68hc11.
5138 * scripttempl/elfm68hc12.sc: New file.
5139 * emulparams/m68hc12elfb: New emulation.
5140 * emulparams/m68hc12elf: New emulation.
5141 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5142 (includes a memory.x script to define the ROM and RAM banks).
5143 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5144 New configuration files for support of Motorola 68hc11
5146 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5148 * ldmain.c (main): Only change SEC_READONLY for final link.
5150 2000-06-13 H.J. Lu <hjl@gnu.org>
5152 * configure: Regenerate.
5154 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5156 * configure.in (VERSION): Update to show this is the CVS mainline.
5158 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5160 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5161 input objects to be ECOFF.
5162 (check_sections): einfo takes %B, not %P, to print a BFD name.
5164 2000-06-05 Michael Matz <matz@ifh.de>
5166 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5169 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5171 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5173 * emulparams/avr1200.sh (STACK): Define as 0.
5174 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5175 * emulparams/avr4433.sh (STACK): Likewise.
5176 * emulparams/avr44x4.sh (STACK): Likewise.
5177 * emulparams/avr85xx.sh (STACK): Likewise.
5178 * emulparams/avrmega103.sh (STACK): Likewise.
5179 * emulparams/avrmega161.sh (STACK): Likewise.
5180 * emulparams/avrmega603.sh (STACK): Likewise.
5181 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5182 (__stack): Define from ${STACK} for main().
5184 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5186 * Makefile.am: Update dependencies with "make dep-am"
5187 * Makefile.in: Regenerate.
5189 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5191 * ldmain.c: Include filenames.h.
5192 (set_scripts_dir): Support backslashes in program name.
5194 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5196 * ldmain.c (main): When deciding if ".text" section should be
5197 read-only, don't forget to reset SEC_READONLY because it
5198 could be already set.
5200 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5202 * ld.1: Add documentation for new command line option:
5203 --section-start <sectionname>=<sectionorg>
5204 This is a generic version of -Ttext etc. which accepts
5205 any section name as a parameter instead of just text/data/
5207 * ld.texinfo: More docs.
5209 * lexsup.c: (parse_args): Recognize new command line option.
5210 (ld_options): Add new option.
5212 2000-05-18 H.J. Lu <hjl@gnu.org>
5214 * lexsup.c (parse_args): `i' == `r', not `q'.
5216 2000-05-18 Jeffrey A Law (law@cygnus.com)
5218 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5220 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5221 Rick Gorton <gorton@scrugs.lkg.dec.com>
5223 Add support for '-q' == '--emit-relocs' switch.
5224 * ldmain.c (main): Default to false.
5225 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5226 * NEWS: Describe the emitrelocations switch.
5227 * ld.texinfo: Describe the emitrelocations switch.
5229 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5231 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5232 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5233 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5236 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5238 * lexsup.c (parse_args): Update the year in the copyright notice.
5240 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5242 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5243 Replace defines with those from intl/libgettext.h to quieten gcc
5246 2000-05-10 H.J. Lu <hjl@gnu.org>
5248 * ldlang.c (open_input_bfds): Don't load the same file within
5249 a group again if the whole archive has been loaded already.
5251 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5253 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5254 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5257 2000-05-01 Jim Wilson <wilson@cygnus.com>
5259 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5261 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5262 host "ia64-*-linux-gnu*".
5264 2000-04-29 Andreas Jaeger <aj@suse.de>
5266 * ld.h: Correctly check GCC version.
5268 2000-04-25 Jeffrey A Law (law@cygnus.com)
5270 * Makefile.am: Add PA64 support. Add missing dependencies for
5272 * Makefile.in: Rebuilt.
5273 * configure.tgt: Add PA64 support (currently disabled).
5275 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5278 (output_rel_find): New function.
5279 (hold_section, hold_use): Delete.
5280 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5281 hold_interp): Make local to place_orphan.
5282 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5283 rather than place_section to find possible previous use of orphan.
5284 Similarly find the place-holder output sections. Use returned
5285 value from lang_enter_output_section_statement rather than calling
5286 lang_output_section_statement_lookup.
5287 * emultempl/armelf.em: Same here.
5288 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5290 * ldlang.c (lang_enter_output_section_statement): Return output
5292 * ldlang.h (lang_enter_output_section_statement): Change
5295 * ldlang.h (lang_output_section_statement): Export it.
5296 * ldlang.c (lang_output_section_statement): Ditto.
5298 2000-04-24 Nick Clifton <nickc@cygnus.com>
5300 * ld.texinfo (Output Section Data): Add note that section data
5301 commands cannot appear outside of section directives.
5303 2000-04-2 Matthew Green <mrg@cygnus.com>
5305 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5307 2000-04-21 Richard Henderson <rth@cygnus.com>
5308 David Mosberger <davidm@hpl.hp.com>
5310 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5311 (eelf64_ia64.c): New rule.
5312 * Makefile.in: Rebuild.
5313 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5314 * emulparams/elf64_ia64.sh: New file.
5316 2000-04-21 Richard Henderson <rth@cygnus.com>
5318 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5320 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5322 * dep-in.sed: Match space at start of file name, not at end.
5324 2000-04-18 H.J. Lu <hjl@gnu.org>
5326 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5327 lang_leave_output_section_statement () after calling
5328 lang_enter_output_section_statement ().
5329 * emultempl/armelf.em: Likewise.
5331 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5333 * emultempl/elf32.em (struct orphan_save): Add section field.
5334 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5335 better order, and place first orphan section as we did before the
5336 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5337 Don't call make_bfd_section here, let wild_doit do the job for us.
5338 Don't build a statement list when we'll only throw it away.
5339 * emultempl/armelf.em: Ditto.
5340 * emultempl/pe.em: Similarly.
5342 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5344 * scripttempl/elfppc.sc: Remove.
5345 * emulparams/elf32ppc.sh: Use elf.sc.
5346 * emulparams/elf32lppc.sh: Use elf.sc.
5347 * emulparams/elf32ppclinux.sh: Use elf.sc.
5348 * emulparams/elf32ppcsim.sh: New file.
5349 * emulparams/elf32lppcsim.sh: New file.
5350 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5351 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5352 * Makefile.in: Regenerate.
5353 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5355 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5357 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5358 ~SEC_ALLOC sections too. Init start address of debug sections.
5359 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5360 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5361 Also set all relocateable section start addresses.
5363 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5365 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5366 Add new BSS_PLT variable for when .plt need not be contained in
5367 the file. Move _etext so that it is also after .fini, and provide
5368 both etext and _etext with a leading underscore. Mark the start
5371 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5373 * emultempl/elf32.em (struct orphan_save): New.
5374 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5375 hold_interp): Make them struct orphan_save.
5376 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5377 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5378 the end of the relevant section list. Also add associated section
5379 statements to the end of any previous orphan statements.
5380 * emultempl/armelf.em: Similarly.
5381 * emultempl/pe.em: Similarly.
5383 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5385 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5387 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5389 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5390 --enable-build-warnings option.
5391 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5392 * Makefile.in, configure: Re-generate.
5394 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5396 * po/ld.pot: Regenerate.
5398 * lexsup.c (help): Restore translated part of bug string.
5400 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5401 (DEP): Quote when passing vars to sub-make. Add warning message
5403 (DEP1): Rewrite for "gcc -MM".
5404 (CLEANFILES): Add DEP2.
5405 Update dependencies.
5406 * Makefile.in: Regenerate.
5408 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5410 * ld.h: #include "bin-bugs.h"
5411 * lexsup.c (help): Use REPORT_BUGS_TO.
5413 2000-03-27 Denis Chertykov <denisc@overta.ru>
5415 * configure.tgt (avr-*-*): New target support.
5416 * Makefile.am: Likewise.
5417 * scripttempl/elf32avr.sc: New script file.
5418 * emulparams/avr1200.sh: New file.
5419 * emulparams/avr23xx.sh: New file.
5420 * emulparams/avr4433.sh New file.
5421 * emulparams/avr44x4.sh New file.
5422 * emulparams/avr85xx.sh New file.
5423 * emulparams/avrmega103.sh New file.
5424 * emulparams/avrmega161.sh New file.
5425 * emulparams/avrmega603.sh New file.
5426 * Makefile.in: Regenerate.
5428 2000-03-09 Andreas Jaeger <aj@suse.de>
5430 * Makefile.am (check-DEJAGNU): Also unset LANG.
5431 * Makefile.in: Rebuild.
5433 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5435 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5438 2000-03-02 H.J. Lu <hjl@gnu.org>
5440 * emulparams/elf32mcore.sh: Include "getopt.h".
5442 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5444 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5446 2000-03-01 H.J. Lu <hjl@gnu.org>
5448 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5449 * emulparams/shpe.sh: Likewise.
5451 2000-03-01 Nick Clifton <nickc@cygnus.com>
5453 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5454 to unused parameters.
5456 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5457 functions only used by DLL code.
5458 (_place_orphan): Initialise 'dollar'.
5460 2000-03-01 H.J. Lu <hjl@gnu.org>
5462 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5463 indicate if the undefined symbol is a fatal error or not.
5464 Don't delete the output file if "fatal" is false.
5466 2000-02-29 H.J. Lu <hjl@gnu.org>
5468 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5469 Set LC_COLLATE and LC_ALL to null and export them. It is for
5470 sort which expects the C locale.
5471 Add $(LIBS) to all $(HOSTING_LIBS).
5472 * Makefile.in: Rebuild.
5474 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5476 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5477 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5478 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5479 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5480 find_potential_libraries.
5482 2000-02-28 Jim Blandy <jimb@redhat.com>
5484 * ldgram.y (exclude_name_list): Don't require a comma to separate
5485 list entries; the lexer considers commas to be valid part of a
5486 filename, so in something like `foo, bar' the comma is considered
5487 part of the first filename, `foo,'.
5488 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5490 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5492 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5493 host "i[3456]86-*-freebsdelf*".
5495 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5497 * scripttempl/i386go32.sc: Move misplaced semicolons.
5499 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5501 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5502 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5503 (eelf64hppa.c, ehppaelf.c): Remove targets.
5504 * Makefile.in: Rebuild.
5506 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5508 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5509 GNU/Linux/sparc, but keep the default as 32.
5511 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5512 it default if sparcv9 or sparc64.
5514 2000-02-24 Nick Clifton <nickc@cygnus.com>
5516 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5517 * Makefile.in: Regenerate.
5518 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5520 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5521 find_potential_libraries.
5522 * ldemul.c (ldemul_find_potential_libraries): New function.
5524 * ldfile.c (ldfile_open_file_search): Allow function to be
5526 (ldfile_open_file): Call ldemul_find_potential_libraries.
5527 * ldfile.h: Add prototype for ldfile_open_file_search.
5529 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5531 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5532 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5534 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5535 (gld_X_find_potential_libraries): New function. Search for
5536 libraries called "*.lib".
5538 * scripttempl/pe.sc: Add .pdata section.
5540 2000-02-23 Richard Henderson <rth@cygnus.com>
5542 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5543 Add and use memory regions.
5545 2000-02-23 Linas Vepstas (linas@linas.org)
5547 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5549 * Makefile.am: Add support for Linux/IBM 370.
5550 * configure.tgt: Likewise.
5552 * Makefile.in: Regenerate.
5554 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5556 * ldlang.c (print_input_section, print_data_statement,
5557 print_reloc_statement, print_padding_statement, insert_pad,
5558 size_input_section, lang_check_section_addresses,
5559 lang_size_sections, lang_do_assignments, lang_set_startof,
5560 lang_one_common): Change `opb' to unsigned.
5561 (lang_do_assignments): Also change `size' to unsigned.
5563 2000-02-16 Richard Henderson <rth@cygnus.com>
5565 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5567 2000-02-16 Timothy Wall <twall@cygnus.com>
5569 * mri.c (mri_draw_tree): Add default LMA region argument to call
5570 to lang_leave_output_section_statement.
5571 * ldlang.h: Update prototypes with LMA region arguments.
5572 * ldlang.c (lang_size_sections): Encapsulate region bounds
5573 checking in os_check_region call.
5574 (os_check_region): New function.
5575 (lang_output_section_statement_lookup): Initialize lma_region.
5576 (lang_leave_output_section_statement): Add LMA region argument.
5577 (lang_leave_overlay): Ditto.
5578 * ldgram.y: Handle LMA region syntax.
5579 * ld.texinfo (Output Section Description): Describe LMA region usage.
5580 * emultempl/armelf.em (gld$place_orphan): Add default value for
5581 lma region in call to lang_leave_output_section_statement.
5582 * emultempl/elf32.em (gld$place_orphan): Add default value for
5583 lma region in call to lang_leave_output_section_statement.
5584 * emultempl/pe.em (gld$place_orphan): Add default value for
5585 lma region in call to lang_leave_output_section_statement.
5588 2000-02-04 Timothy Wall <twall@redhat.com>
5590 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5591 octets when calculating section end addresses.
5593 2000-02-04 Timothy Wall <twall@redhat.com>
5595 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5597 2000-02-03 Timothy Wall <twall@redhat.com>
5599 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5601 * ldlang.c (print_input_section, print_data_statement,
5602 print_reloc_statement, print_padding_statement): Print target
5603 address values and section sizes as bytes, not octets.
5604 (insert_pad) Calculate padding size in octets, and adjust "dot"
5606 (size_input_section) Always adjust "dot" by bytes, not octets.
5607 (lang_check_section_addresses, lang_do_assignments) Adjust
5608 "dot" by bytes, not octets. Use the larger of the directive size
5609 or octets_per_byte for the number of octets actually allocated in
5611 (lang_set_startof) Make sure STARTOF returns a target address.
5612 (lang_one_common) Record size changes in octets.
5613 (lang_abs_symbol_at_end_of) Section end symbol's value is
5614 recorded in target bytes.
5615 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5616 to be clear about behavior when an octet is smaller than one byte.
5618 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5620 * ldcref.c (output_cref): Don't pass message strings to printf
5624 * ldmisc.c (vfinfo): Same here.
5627 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5629 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5630 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5631 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5632 Add missing NULL initialisers, and comments.
5634 2000-01-21 Nick Clifton <nickc@cygnus.com>
5636 * ldlang.c (lang_size_sections): Fix typo in comment.
5638 2000-01-18 H.J. Lu <hjl@gnu.org>
5640 * ldlang.c (lang_size_sections): Also update the current
5641 address of a region if the SEC_NEVER_LOAD bit is not set.
5643 2000-01-10 Philip Blundell <pb@futuretv.com>
5645 * configure.tgt (arm*-*-conix*): New target.
5647 2000-01-07 Nick Clifton <nickc@cygnus.com>
5649 * ld.texinfo (Options): Remind users to preceed linker command
5650 line switches with -Wl, (or whatever is appropriate) if it is
5651 being invoked by a comnpiler driver program.
5652 Fix description of the behaviour of the -n command line switch.
5654 2000-01-05 Catherine Moore <clm@cygnus.com>
5656 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5658 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5659 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5660 (exclude_name_list): New.
5661 ldlang.c (walk_wild_section): Support list of excluded files.
5662 (print_wild_statement): Likewise.
5663 (lang_add_wild): Likewise.
5664 * ldlang.h (lang_wild_statement_type): Likewise.
5665 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5667 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5669 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5670 (process_def_file): Use.
5671 (pe_dll_compat_implib): New variable.
5674 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5675 pe_dll_compat_implib.
5677 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5678 compat-implib options.
5679 (gld_${EMULATION_NAME}_list_options): List new options.
5680 (gld_${EMULATION_NAME}_parse_args): Handle.
5682 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5685 * deffilep.y (opt_name): Allow "." in name.
5687 For older changes see ChangeLog-9899
5693 version-control: never