1 2003-04-24 Roland McGrath <roland@redhat.com>
3 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
4 If a name string is unknown, give an error rather than crashing later.
6 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
8 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
9 eh8300hnelf.o, eh8300snelf.o and respective rules.
10 * Makefile.in: Regenerate.
11 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
12 * emulparams/h8300hn.sh: New
13 * emulparams/h8300sn.sh: New
14 * emulparams/h8300hnelf.sh: New
15 * emulparams/h8300snelf.sh: New
16 * scripttempl/h8300hn.sc: new
17 * scripttempl/h8300sn.sc: new
19 2003-04-23 H.J. Lu <hjl@gnu.org>
21 * ldmain.c (link_callbacks): Initialize error_handler.
23 * ldmisc.c (error_handler): New function.
25 * ldmisc.h (error_handler): New prototype.
27 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
29 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
30 * emulparams/m68hc11elfb.sh: Likewise.
31 * emulparams/m68hc12elf.sh: Likewise.
32 * emulparams/m68hc12elfb.sh: Likewise.
34 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
36 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
38 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
40 (LDEMUL_FINISH): Override to generate the trampolines after gc and
42 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
43 stub file for trampolines.
44 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
45 --no-trampoline and --bank-window to control the memory bank window.
47 2003-04-18 H.J. Lu <hjl@gnu.org>
49 * ldfile.c (ldfile_add_library_path): Remove the unused
52 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
54 * scripttempl/xstormy16.sc (__data, __rdata): New.
56 2003-04-16 Nick Clifton <nickc@redhat.com>
58 * scripttempl/xstormy16.sc: Add .jcr section mapping.
60 2003-04-15 H.J. Lu <hjl@gnu.org>
62 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
64 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
66 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
68 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
69 * ld.texinfo: Likewise.
71 2003-04-14 Alan Modra <amodra@bigpond.net.au>
73 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
74 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
75 other variants of crtbegin.o, crtend.o.
77 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
78 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
79 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
80 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
81 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
82 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
83 * scripttempl/mmo.sc (ctors, dtors): Likewise.
84 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
86 2003-04-09 Dmitry Diky <diwil@mail.ru>
88 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
89 sections to respect C++ constructor/destructor. Add ctors/dtors
90 start/stop definitions.
91 * scripttempl/elf32msp430_3.sc: Likewise.
93 2003-04-06 Nick Clifton <nickc@redhat.com>
95 * ld.texinfo (Options): Add a reminder of the target specific
96 nature to the description of the i386 PE specific options, for
97 readers who have not read all the way through the manual.
99 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
101 * configure.tgt: Fixed bug in list of targ_extra_emuls.
102 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
103 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
104 * emulparams/tic3xcoff_onchip.sh: Ditto
105 * emulparams/tic4xcoff.sh: Ditto
106 * scripttempl/tic4xcoff.sc: Ditto
108 2003-04-03 Nick Clifton <nickc@redhat.com>
110 * NEWS: Mention support for Xtensa architecture.
112 2003-04-02 Nick Clifton <nickc@redhat.com>
114 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
116 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
118 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
119 Don't call pe_dll_build_section() if link_info.relocateable.
120 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
121 if link_info.relocateable.
123 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
125 * pe-dll.c (process_def_file): Don't create an export
126 section if there are no exports and we're building an exe
127 (pe_dll_build_sections): Ditto
128 (pe_dll_fill_sections): Conditionalize setting
129 abfd->dll true on info->shared
130 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
131 If i386pe or armpe, call pe_dll_build_section()
132 for both exe's and dll's, not just dll's.
133 (gld_${EMULATION_NAME}_finish): For all targets except
134 shpe and mipspe, call pe_dll_fill_sections() for both
135 exe's and dll's, not just dll's.
137 2003-04-02 Bob Wilson <bob.wilson@acm.org>
139 * emulparams/xtensa-config.sh: Remove comment indicating that this is
142 2003-04-01 Bob Wilson <bob.wilson@acm.org>
144 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
145 (eelf32xtensa.c): New target.
146 * Makefile.in: Regenerate.
147 * configure.tgt: Handle xtensa-*-*.
148 * gen-doc.texi: Set XTENSA variable.
149 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
150 * emulparams/elf32xtensa.sh: New file.
151 * emulparams/xtensa-config.sh: Likewise.
152 * emultempl/xtensaelf.em: Likewise.
153 * scripttempl/elfxtensa.sc: Likewise.
155 2003-04-01 Jakub Jelinek <jakub@redhat.com>
157 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
158 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
159 if --enable-64-bit-bfd.
161 2003-04-01 Nick Clifton <nickc@redhat.com>
163 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
165 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
166 name of note section.
168 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
170 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
173 2003-03-31 David Heine <dlheine@suif.stanford.edu>
175 * ldfile.c (ldfile_add_library_path): Always allocate space for
177 * ldlang.c (lang_register_vers_node): Free the node if it cannot
179 * ldmain.c (set_scripts_dir): Always free the constructed
181 (add_keepsyms_file): Fix memory leak.
182 * ldmisc.c (vfinfo): Likewise.
183 * lexsup.c (parse_args): Likewise.
185 2003-03-25 Stan Cox <scox@redhat.com>
186 Nick Clifton <nickc@redhat.com>
188 Contribute support for Intel's iWMMXt chip - an ARM variant:
190 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
191 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
192 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
195 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
197 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
198 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
199 (main): Initialize them.
200 * ldfile.c: Include pathnames.h.
201 (is_sysrooted_pathname): New.
202 (ldfile_add_library_path): Use it.
203 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
204 search_dirs if given an absolute pathname.
205 (ldfile_open_file): Issue error message for sysrooted
207 * Makefile.am: Updated dependencies.
208 * Makefile.in: Rebuild.
210 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
212 * ld.texinfo: Rename all occurances of C54X to TIC54X.
214 2003-03-19 Andreas Schwab <schwab@suse.de>
216 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
219 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
221 * defilep.y (opt_base): If no number given, set to default
224 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
226 * deffilep.y (def_import): Use default extension of "dll"
227 if no extension provided in parsed IMPORT definition.
229 * deffilep.y (def_lex): Revert 2003-03-12 change.
230 (dot_name): New id type and rule.
231 (expline): Use instead of ID.
232 (opt_equal_name): Likewise.
234 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
236 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
238 2003-03-07 Christopher Faylor <cgf@redhat.com>
240 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
241 apparent accidental removal on 2003-01-06.
243 2003-03-04 Dmitry Diky <diwil@mail.ru>
245 * Makefile.am: Add new devices x1122 x1132 emulation
246 * configure.tgt: Likewise.
247 * Makefile.in: Regenerate.
248 * emulparams/msp430x1122.sh: New file.
249 * emulparams/msp430x1132.sh: New file.
251 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
253 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
256 * ldfile.h (struct search_dirs): Added sysrooted field.
257 * ldlang.h (struct lang_input_statement_struct): Likewise.
258 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
259 (ldfile_open_file_search): Look for sysrooted filename starting
260 with / in ld_sysroot instead of in the current directory. Clear
261 sysrooted flag if it's found in the current directory. Set it
262 from the search directory's sysrooted flag where it is found
264 * ldlang.c (ldlang_sysrooted_script): New static variable.
265 (new_afile): Mark search_file_enums as sysrooted if
266 ldlang_sysrooted_script.
267 (load_symbols): Set ldlang_sysrooted_script according to the
268 script's sysrooted field while processing it.
269 * ld.texinfo: Document INPUT behavior in sysroot.
271 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
273 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
275 2003-03-03 Alan Modra <amodra@bigpond.net.au>
277 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
278 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
279 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
280 PARSE_AND_LIST_EPILOGUE): Don't define.
281 * emultempl/alphaelf.em: New file.
283 2003-03-01 Alan Modra <amodra@bigpond.net.au>
285 * ldemul.c: Include getopt.h.
286 * emultempl/elf32.em: Include getopt.h earlier.
287 * emultempl/ticoff.em: Likewise.
289 2003-02-28 Alan Modra <amodra@bigpond.net.au>
291 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
292 support when scripts read from files.
294 2003-02-28 Alan Modra <amodra@bigpond.net.au>
296 * ldemul.c (ldemul_parse_args): Return FALSE by default.
297 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
300 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
301 (ldemul_parse_args): Return bfd_boolean. Formatting.
302 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
303 (ldemul_parse_args): Adjust.
304 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
305 Return bfd_boolean from parse_args.
306 * lexsup.c (parse_args): Malloc shortopts, longopts and
307 really_longopts. Call ldemul_add_options and ldemul_handle_option.
308 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
309 gld${EMULATION_NAME}_parse_args.
310 (gld${EMULATION_NAME}_handle_option): Likewise.
311 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
312 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
313 * emultempl/beos.em: Likewise.
314 * emultempl/pe.em: Likewise.
315 * emultempl/ticoff.em: Likewise.
316 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
317 (gld${EMULATION_NAME}_add_sysroot): Prototype.
318 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
320 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
321 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
322 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
323 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
325 * emultempl/generic.em: Likewise.
326 * emultempl/gld960.em: Likewise.
327 * emultempl/gld960c.em: Likewise.
328 * emultempl/linux.em: Likewise.
329 * emultempl/lnk960.em: Likewise.
330 * emultempl/m68kcoff.em: Likewise.
331 * emultempl/mipsecoff.em: Likewise.
332 * emultempl/sunos.em: Likewise.
333 * emultempl/vanilla.em: Likewise.
334 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
336 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
338 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
339 memory allocation error.
341 * Makefile.am (ldmain.o): Define TOOLBINDIR.
342 * Makefile.in: Rebuilt.
343 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
345 2003-02-21 Bob Wilson <bob.wilson@acm.org>
347 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
348 call os_region_check when it is set.
349 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
350 lang_size_sections_1.
351 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
352 only for the last call, not on every relaxation iteration.
353 * ldlang.h (lang_size_sections): Update prototype.
354 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
355 to lang_size_sections.
356 (pe_exe_fill_sections): Likewise.
357 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
358 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
359 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
360 (ppc_layout_sections_again): Likewise.
362 2003-02-21 Bob Wilson <bob.wilson@acm.org>
364 * gen-doc.texi: Set ARM and HPPA variables.
365 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
366 title capitalization more consistent. Add missing menu entries for
367 machine-specific sections and conditionalize them consistently.
368 Conditionalize text that is irrelevant when SingleFormat is set.
369 Add @group divisions to improve page breaks in long examples.
370 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
371 is correct. Remove "FIXME" comment about not using
372 @raisesections/@lowersections. Use @raisesections/@lowersections
373 consistently for machine-specific sections. Change to be more polite
374 about poor bug reports. Replace FDL appendix with include of fdl.texi.
375 Move WIN32 node to match its order in the menus.
376 * fdl.texi: New file.
378 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
380 * configure.in (TARGET_SYSTEM_ROOT): Set default to
381 ${exec_prefix}/${target_alias}/sys-root. Match explicit
382 '${exec_prefix}' (in addition to the expansion thereof) as
384 * configure: Rebuilt.
386 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
388 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
390 2003-02-20 Harri Porten <porten@kde.org>
392 * ldgram.y (vers_defns): Allow optional trailing semicolon in
395 2003-02-18 Alan Modra <amodra@bigpond.net.au>
397 * emultempl/ppc32elf.em: New file.
398 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
399 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
400 (eelf32lppcnto.c): Likewise.
401 (eelf32lppcsim.c): Likewise.
402 (eelf32ppcnto.c): Likewise.
403 (eelf32ppc.c): Likewise.
404 (eelf32ppc_fbsd.c): Likewise.
405 (eelf32ppcsim.c): Likewise.
406 (eelf32ppclinux.c): Likewise.
407 * Makefile.in: Regenerate.
409 2003-02-18 Alan Modra <amodra@bigpond.net.au>
411 * ld.texinfo: Remove spaces between @samp and opening brace.
413 2003-02-18 Alan Modra <amodra@bigpond.net.au>
415 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
417 (ppc_before_allocation): Don't do optimizations if wrong hash table.
418 (gld${EMULATION_NAME}_finish): Ditto.
420 2003-02-17 Nick Clifton <nickc@redhat.com>
422 * ldmain.c (main) Default allow_shlib_undefined to true.
423 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
424 (parse_args): Parse the new switch.
425 * ld.texinfo: Document new switch and default behaviour of
426 allowing undefined symbols in shared libraries.
428 2003-02-11 Dmitry Diky <diwil@mail.ru>
430 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
431 * scripttempl/elf32msp430_3.sc: Likewise.
433 2003-02-11 Uwe Stieber <uwe@wwws.de>
435 * configure.tgt: Add support for kaOS as cross build target
438 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
440 * hppaelf.em (group_size): Change default back to 1.
442 2003-02-09 Alan Modra <amodra@bigpond.net.au>
444 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
446 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
448 * hppaelf.em (group_size): Change default to -1.
450 2003-02-07 Nick Clifton <nickc@redhat.com>
452 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
454 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
455 no-pipeline-knowledge. This will prevent the getopt package from
456 thinking that there are any shorter abbreviations for
457 --no-pipeline-knowledge.
459 2003-02-07 Jakub Jelinek <jakub@redhat.com>
461 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
462 which already have it. Avoid duplicates.
464 2003-02-06 Jakub Jelinek <jakub@redhat.com>
466 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
467 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
468 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
470 2003-02-05 Alan Modra <amodra@bigpond.net.au>
472 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
473 call ppc64_elf_tls_optimize.
475 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
477 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
478 outside of GNU/Linux conditional.
480 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
482 * deffilep.y (def_get_module): New function: locate an already
484 * deffile.h (def_get_module): New prototype.
485 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
486 a dll multiple times.
488 2003-01-23 Alan Modra <amodra@bigpond.net.au>
490 * emultempl/sh64elf.em: Include elf32-sh64.h.
491 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
492 sh64_elf_section_data.
493 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
495 2003-01-23 Wu Yongwei <adah@netstd.com>
497 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
498 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
499 cross-80th-column-margin "an" to the next line.
501 2003-01-21 Nick Clifton <nickc@redhat.com>
503 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
504 * emulparams/tic3xcoff_onchip.sh: ...this.
505 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
506 * Makefile.in: Regenerate.
508 2003-01-21 Fabio Alemagna <falemagn@aros.org>
510 * configure.tgt: Handle i[3456]86-*-aros*
512 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
514 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
515 * Makefile.in: Regenerate
516 * configure.tgt: Added extra target emulations
517 * emulparams/tic3xcoff.sh: Remove old settings
518 * emulparams/tic4xcoff.sh: Ditto
519 * emulparams/tic3xcoff-onchip.sh: Added new
520 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
521 * scripttempl/tic3xcoff.sc: Remove
523 2003-01-17 Andreas Jaeger <aj@suse.de>
525 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
528 2003-01-16 Alan Modra <amodra@bigpond.net.au>
530 * Makefile.in: Regenerate.
532 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
534 * ld/ld.texinfo (node WIN32): Some clarifications
535 and formatting fixups.
537 2003-01-09 Chris Demetriou <cgd@broadcom.com>
539 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
540 order, and handle (ignore) -mips32r2.
542 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
544 * ldmain.c (main): Make sure ld_sysroot is initialized.
546 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
548 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
550 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
551 (GENSCRIPTS): Add @use_sysroot@.
552 * Makefile.in: Regenerated.
553 * configure.host: Move setting of NATIVE_LIB_DIRS to...
554 * configure.tgt: ... here. Use ${target} instead of ${host}
556 * configure.in: Add --with-sysroot.
557 * configure: Regenerated.
558 * genscripts.sh: Accept use_sysroot option. Set new variables
559 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
560 $use_sysroot. Don't search $tool_lib if $use_sysroot.
561 * ldfile.c (ldfile_add_library_path): Handle leading '='.
562 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
563 (ld_sysroot): New variable.
564 (main): Initialize ld_sysroot.
565 * ldmain.h (ld_sysroot): New extern.
566 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
567 searching $EMULATION_LIBPATH.
568 (gld${EMULATION_NAME}_add_sysroot): New function.
569 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
570 (gld${EMULATION_NAME}_after_open): Likewise. Only search
571 environment variables if $NATIVE.
572 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
573 * NEWS: Mention --with-sysroot.
575 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
576 instead of setting LIB_PATH.
577 * emulparams/elf32ppc.sh: Likewise.
578 * emulparams/elf64_s390.sh: Likewise.
579 * emulparams/elf64_sparc.sh: Likewise.
580 * emulparams/elf64ppc.sh: Likewise.
581 * emulparams/elf_x86_64.sh: Likewise.
583 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
584 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
586 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
588 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
590 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
592 * Makefile.am (ldmain.o): Pass BINDIR.
593 * Makefile.in: Regenerated.
594 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
597 2003-01-02 Ben Elliston <bje@redhat.com>
599 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
600 (eelf32iq2000.c): New target.
601 * Makefile.in: Regenerate.
602 * configure.tgt: Handle iq2000-*-elf.
603 * emulparams/elf32iq10.sh: New file.
604 * emulparams/elf32iq2000.sh: New file.
605 * scripttempl/iq2000.sc: New file.
607 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
609 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
610 and _pei386_runtime_relocator to the exclude list.
612 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
614 * ldfile.c: Fix comment typos.
615 * ldlang.c: Likewise.
617 * pe-dll.c: Likewise.
619 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
621 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
622 * Makefile.am (ld.1): Depend on configdoc.texi
624 * Makefile.in: Regenerated.
626 2002-12-24 Dmitry Diky <diwil@mail.ru>
628 * Makefile.am: Add msp430 target.
629 * configure.tgt: Likewise.
630 * Makefile.in: Regenerate.
631 * emulparams/msp430x???.sh: New files. Linker script parameters
632 for various msp430 configurations.
633 * gen-doc.texi: Enable msp430 documenation.
634 * ld.texinfo: Document msp430 sections.
635 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
636 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
638 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
639 Charles Wilson <cwilson@ece.gatech.edu>
641 * ld/config.in (HAVE_REALPATH): New entry.
642 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
644 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
646 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
649 2002-12-23 Alan Modra <amodra@bigpond.net.au>
651 * ldmain.c (main): Init "strip_discarded".
652 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
653 (OPTION_NO_STRIP_DISCARDED): Define.
654 (ld_options): Add "strip-discarded" and "no-strip-discarded".
655 (parse_args): Handle them.
657 2002-12-23 Nick Clifton <nickc@redhat.com>
659 * ld.h (struct args_type): Add new field
660 'accept_unknown_input_architecture'.
661 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
663 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
664 bfd_arch_get_compatible.
665 * ldfile.c (ldfile_try_open_bfd): Likewise.
666 * lexsup.c (ld_options): Add new command line switch
667 --accept-unknown-input-architecture and its inverse.
668 (parse_args): Handle --accept-unknown-input-architecture.
669 * ld.texinfo: Document new linker option.
670 * NEWS: Mention new linker option.
672 2002-12-20 Alan Modra <amodra@bigpond.net.au>
674 * ldmain.c (main): Re-order link_info initialization. Init all
677 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
679 * ld.texinfo: Clarify and extend the documentation
680 in the Machine Dependent, WIN32 section.
682 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
684 * ld.texinfo: Add win32 machine depending section.
685 * gen-doc.texi: Enable win32 machine depending section.
687 * configure.host: Add win32 library search path.
689 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
691 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
692 import when auto-import is disabled.
694 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
696 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
697 account for trailing '\0'.
699 2002-12-17 Nick Clifton <nickc@redhat.com>
701 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
702 so that it is not confused with -c.
704 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
705 Charles Wilson <cwilson@ece.gatech.edu>
707 * configure.in: Add check for realpath function.
708 * configure: Regenerate.
709 * config.in: Regenerate.
710 * aclocal.m4: Regenerate.
711 * deffile.h: Add .data field to def_file_import
713 * pe-dll.c (pe_proces_import_defs): Use .data field of
714 def_file_import structure to initialize flag_data field of
715 def_file_export structure.
716 (pe_implied_import_dll): New variables exp_funcbase and
717 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
718 not filename (which may be a symlink). Scan the sections and
719 initialize [data|bss]_[start|end]. When scanning the export
720 table, skip _nm_ symbols, and mark any symbols whose rva indicates
721 that it is in the .bss or .data sections as data.
722 * sysdep.h: Include limits.h and sys/param.h, and define
723 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
724 exists, NULL otherwise.
725 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
726 pe_process_import_defs before pe_find_data_imports, so that
727 auto-import will check the virtual implib as well as "real"
729 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
730 symlinks to their target; check that the target's extension is
731 .dll before calling pe_implied_import_dll(), not the filename
732 itself (which may be a symlink).
734 2002-12-10 Alan Modra <amodra@bigpond.net.au>
736 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
737 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
740 2002-12-08 Alan Modra <amodra@bigpond.net.au>
742 * ldlang.h: Formatting.
744 2002-12-07 Alan Modra <amodra@bigpond.net.au>
746 * ldlang.c (init_os): Ensure sections mentioned in load_base
749 2002-12-05 Alan Modra <amodra@bigpond.net.au>
751 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
752 load_base for orphans that follow a section with load_base set.
754 2002-12-01 H.J. Lu <hjl@gnu.org>
756 * ld.texinfo: Remove the extra `;' in sample version script.
758 2002-11-30 Alan Modra <amodra@bigpond.net.au>
760 * configure.host: Correct dynamic-linker for powerpc64 hosts.
762 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
763 * Makefile.in: Regenerate.
765 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
766 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
767 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
768 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
769 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
770 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
771 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
772 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
773 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
774 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
775 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
776 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
777 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
779 2002-11-27 David O'Brien <obrien@FreeBSD.org>
781 * configure.host: Fix generic FreeBSD configuration entry.
783 2002-11-27 H.J. Lu <hjl@gnu.org>
785 * ld.texinfo: Add the missing `;' to sample version scripts.
787 2002-11-20 Alan Modra <amodra@bigpond.net.au>
789 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
791 2002-11-14 Egor Duda <deo@logos-m.ru>
793 * ldmain.c (main): Make runtime relocs disabled by default. Remove
794 assignment which has no effect.
795 * pe-dll.h (pe_create_import_fixup): Change prototype.
796 * pe-dll.c (make_runtime_pseudo_reloc): New function.
797 (pe_create_runtime_relocator_reference): Ditto.
798 (pe_create_import_fixup): Handle relocations with non-zero addends.
799 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
800 --disable-runtime-pseudo-reloc.
801 (make_import_fixup): Handle relocations with non-zero addends. Create
802 an external reference to _pei386_runtime_relocator symbol if at least
803 one pseudo reloc was created.
804 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
805 --disable-runtime-pseudo-reloc options.
807 2002-11-12 Earl Chew <earl_chew@agilent.com>
809 * ldlang.c (lang_add_section): Discard debugging sections that have
810 been marked SEC_EXCLUDE.
812 2002-11-12 Nick Clifton <nickc@redhat.com>
814 * configure.in (ALL_LINGUAS): Add da.
815 * configure: Regenerate.
816 * po/da.po: New Danish translation.
818 2002-11-12 Alan Modra <amodra@bigpond.net.au>
820 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
821 (LDEMUL_BEFORE_ALLOCATION): Define.
822 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
824 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
826 2002-11-11 Christopher Faylor <cgf@redhat.com>
828 * configure.tgt (LIB_PATH): Default to searching w32api directory under
831 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
833 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
834 of restricted auto-export libs.
836 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
838 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
839 creative library naming instances like, e.g., libstdc++-2.a.
841 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
843 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
844 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
846 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
848 * deffilep.y (def_lex): Handle '@' as first character of an ID.
849 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
850 (make_one): Don't prefix decorated fastcall symbols with '_'.
851 (pe_process_import_defs): Likewise.
852 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
853 symbols to cdecl names or vise-versa.
855 2002-10-13 Eric Kohl <ekohl@rz-online.de>
857 * pe-dll.c (process_def_file): Handle fastcall symbols when
858 generating undecorated aliases. Don't prefix decorated fastcall
860 (fill_exported_offsets): Don't prefix decorated fastcall symbols
863 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
865 * emultempl/aix.em: Use include <> for generated headers.
866 * emultempl/beos.em: Likewise.
867 * emultempl/elf32.em: Likewise.
868 * emultempl/pe.em: Likewise.
869 * ldctor.c: Likewise.
871 * ldfile.c: Likewise.
872 * ldlang.c: Likewise.
875 * ldmain.c: Likewise.
876 * ldmisc.c: Likewise.
877 * ldwrite.c: Likewise.
878 * lexsup.c: Likewise.
880 * pe-dll.c: Likewise.
882 2002-10-23 Jakub Jelinek <jakub@redhat.com>
884 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
885 sections into .rel{,a}.dyn.
887 2002-10-23 Nick Clifton <nickc@redhat.com>
889 * lexsup.c (OPTION_NO_OMAGIC): Define.
890 (ld_options): Add "no-omagic" option.
891 (parse_args): Parse --no-omagic.
892 * ld.texinfo: Document --no-omagic.
893 * NEWS: Mention new option.
895 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
897 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
898 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
900 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
902 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
903 emulation name. Set LIB_PATH only for native tools, and
904 search the ABI-specific versions of NATIVE_LIB_DIRS before the
905 .../lib variants, not instead of them. Mostly copied from...
906 * emulparams/elf32ppc.sh: ... here. Fixed typo.
907 * emulparams/elf64bmip-defs.sh: Backed out.
908 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
909 * emulparams/elf64btsmip.sh: Likewise.
910 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
911 TEXT_DYNAMIC): Removed.
913 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
915 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
916 (GENERATE_SHLIB_SCRIPT): Set to yes.
917 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
918 * emulparams/elf32bmipn32.sh: here.
919 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
920 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
921 * emulparams/elf64bmip-defs.sh: New file. Extend
922 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
923 * emulparams/elf64bmip.sh: Bring in definitions from
925 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
927 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
928 * emulparams/elf64btsmip.sh: Bring in definitions from
930 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
931 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
933 2002-10-16 Jakub Jelinek <jakub@redhat.com>
935 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
936 (s390-*-linux*): Add elf64_s390 emulation if want64.
937 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
938 genscript.sh changes.
939 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
940 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
942 2002-10-15 Alan Modra <amodra@bigpond.net.au>
944 * ldlang.c (load_symbols): Revert last change.
946 2002-10-14 Alan Modra <amodra@bigpond.net.au>
948 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
950 (lang_reasonable_defaults): Don't compare against false.
951 (size_input_section): Likewise.
952 (lang_size_sections_1): Likewise.
953 (lang_do_assignments): Likewise.
954 (lang_add_output): Likewise.
956 * Makefile.am: Run "make dep-am".
957 * Makefile.in: Regenerate.
958 * ldver.c: #include "bfdver.h".
960 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
962 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
964 * scripttempl/elfm68hc12.sc: Likewise.
966 2002-10-11 Alan Modra <amodra@bigpond.net.au>
968 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
970 * ldgram.y (memory_spec): Provide empty action.
971 (section <NAME>): Likewise.
973 2002-10-10 Jakub Jelinek <jakub@redhat.com>
975 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
976 they have OUTPUT_FORMAT not matching actual output format.
977 * ldlang.c (lang_get_output_target): New function.
978 (open_output): Use it.
979 * ldlang.h (lang_get_output_target): New prototype.
981 2002-10-10 Alan Modra <amodra@bigpond.net.au>
983 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
984 when orphan is .rel, .rela when orphan is .rela.
985 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
986 first. Remove outsecname var.
988 2002-10-09 Richard Shann <richard.shann@superh.com>
989 Stephen Clarke <stephen.clarke@superh.com>
991 * Makefile.am: Add eshelf32_linux.o and
992 eshlelf32_linux.o, new emulations for sh64 Linux.
993 * Makefile.in: Regenerate.
994 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
995 * emulparams/shelf32_linux.sh: New file.
996 * emulparams/shlelf32_linux.sh: New file.
998 2002-10-08 H.J. Lu <hjl@gnu.org>
1000 * ldlang.c (lang_file_exist): Removed.
1001 (new_afile): Revert the last change.
1002 * ldlang.h (lang_file_exist): Removed.
1003 * lexsup.c (parse_args): Revert the last change.
1005 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1007 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1008 auto-import symbols.
1009 (make_one): Create _nm_<symbol> for data only.
1011 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1013 * ldlang.c (lang_file_exist): New function.
1014 (new_afile): Abort if the filename to be added matches the linker
1016 * ldlang.h: Add prototype for lang_file_exist.
1017 * lexsup.c (parse_args): Abort if the output filename matches
1018 one of the input filenames.
1020 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1022 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1024 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1026 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1027 * scripttempl/elfm68hc11.sc: Likewise.
1028 * scripttempl/elfm68hc12.sc: Likewise.
1030 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1031 reloc sections just before .rel.plt/.rela.plt.
1032 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1033 Only put loadable reloc sections in hold_rel.
1035 2002-09-29 H.J. Lu <hjl@gnu.org>
1037 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1039 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1041 From "Anita Kulkarni" <AnitaK@kpit.com>
1042 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1045 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1047 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1049 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1050 SEGMENT_SIZE alignment.
1051 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1052 (SEGMENT_SIZE): Define.
1054 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1055 (fold_binary): Correct abs - non-abs case.
1056 (fold_trinary): New. Split out from exp_fold_tree.
1058 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1060 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1061 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1062 for start of .data, instead align up to 256M boundary.
1063 * scripttempl/aix.sc: Likewise.
1065 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1067 * scripttempl/i386go32.sc: Handle bss unique sections.
1069 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1071 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1073 2002-09-17 Stan Cox <scox@redhat.com>
1075 * emulparams/elf32bmipn32-defs.sh: New file.
1076 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1077 * emulparams/elf32btsmipn32.sh: Likewise.
1078 * emulparams/elf64bmip.sh: Likewise.
1079 * emulparams/elf64btsmip.sh: Likewise.
1081 2002-09-16 Bruno Haible <bruno@clisp.org>
1083 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1085 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1086 elf64-alpha-freebsd.
1088 2002-09-11 Nick Clifton <nickc@redhat.com>
1090 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1092 * po/tr.po: Updated Turkish translation.
1094 2002-09-06 Jeffrey A Law (law@redhat.com)
1096 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1098 2002-09-02 Nick Clifton <nickc@redhat.com>
1100 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1102 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1104 2002-08-30 Nick Clifton <nickc@redhat.com>
1106 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1107 used. Change INSN to start at 0x01000000 and extend for
1108 256K (ignoring holes). Start the STACK on a word aligned
1110 (.rodata): Start it at the READONLY_START_ADDR.
1112 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1114 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1116 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1118 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1119 added makefile targets for this file.
1120 * Makefile.in: Regenerate.
1121 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1122 * NEWS: Mention new port.
1124 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1126 * emulparams/tic3xcoff.sh: New file.
1127 * emulparams/tic4xcoff.sh: New file.
1128 * scripttempl/tic3xcoff.sc: New file.
1129 * scripttempl/tic4xcoff.sc: New file.
1131 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1133 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1134 strtoul and strtoull with bfd_scan_vma.
1135 (gld${EMULATION_NAME}_read_file): Likewise.
1137 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1139 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1141 2002-08-27 Egor Duda <deo@logos-m.ru>
1143 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1144 Add symbols for application to access them.
1146 2002-08-27 Nick Clifton <nickc@redhat.com>
1148 * emultempl/armelf.em: Revert this patch, it is not needed.
1150 2002-08-22 Adam Nemet <anemet@lnxw.com>
1152 2002-08-20 Dan Kegel <dank@kegel.com>
1154 * configure.in: added --with-lib-path argument to ld's configure
1156 * ld/NEWS: Document new switch.
1157 * ld/README: Mention new switch.
1158 * configure: Regenerate.
1159 * Makefile.in: Regenerate.
1161 Based on this patch:
1162 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1164 * Makefile.in (LIB_PATH): Make configurable.
1165 (GENSCRIPTS): Set LIB_PATH in environment.
1166 * configure.in: Substitute LIB_PATH.
1168 2002-08-22 Adam Nemet <anemet@lnxw.com>
1170 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1171 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1172 depending on the type of the function.
1173 (arm_elf_convert_thumb_symbol_to_address): New function.
1175 2002-08-22 Graeme Peterson <gp@qnx.com>
1177 * Makefile.am: Add esh{l}elf_nto.o files.
1178 * Makefile.in: Regenerate.
1179 * configure.tgt: Add support for sh-**-nto* targets.
1180 * emulparams/shelf_nto.sh: New file.
1181 * emulparams/shlelf_nto.sh: New file.
1183 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1185 * ldlang.c (offsetof): Define if not defined.
1187 2002-08-14 H.J. Lu <hjl@gnu.org>
1189 * configure.tgt: Always enable 64bit emulations for 32bit
1192 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1194 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1195 (MAXPAGESIZE): Set to 1.
1197 * ld.h (ALIGN_N): Delete.
1198 * ldexp.h (align_n): Declare.
1199 * ldexp.c (align_n): New function.
1200 (fold_binary): Use align_n instead of ALIGN_N.
1201 (exp_fold_tree): Likewise.
1202 * ldlang.c (lang_size_sections_1): Likewise.
1203 (lang_one_common): Likewise.
1204 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1206 2002-07-31 Graeme Peterson <gp@qnx.com>
1208 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1209 * Makefile.am: Add eelf32{l}ppcnto.o files.
1210 * Makefile.in: Regenerate.
1211 * emulparams/elf32lppcnto.sh: New file.
1212 * emulparams/elf32ppcnto.sh: New file.
1214 2002-08-07 H.J. Lu <hjl@gnu.org>
1216 * ld.texinfo: Document --no-undefined-version.
1218 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1219 `script.' fields to 0.
1221 * ldmain.c (main): Initialize the allow_undefined_version to
1224 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1225 (ld_options): Add --no-undefined-version.
1226 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1228 2002-08-07 Nick Clifton <nickc@redhat.com>
1230 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1231 an interworking bfd if there are input bfds. (107501)
1233 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1235 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1238 2002-08-01 Nick Clifton <nickc@redhat.com>
1240 * emulparams/armelf.sh: Revert previous delta.
1241 * scripttempl/elf.sc: Revert previous delta.
1243 2002-07-31 H.J. Lu <hjl@gnu.org>
1245 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1246 --enable-64-bit-bfd.
1248 2002-07-31 H.J. Lu <hjl@gnu.org>
1250 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1251 64bit BFD is selected.
1253 2002-07-31 H.J. Lu <hjl@gnu.org>
1255 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1256 if 64bit BFD is selected.
1258 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1260 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1261 link_info.common_skip_ar_aymbols.
1262 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1264 * ldmain.c (main): Initialize new field
1265 link_info.common_skip_ar_aymbols.
1267 2002-07-31 Adam Nemet <anemet@lnxw.com>
1269 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1271 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1274 2002-07-31 Nick Clifton <nickc@redhat.com>
1276 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1277 of the PDP-11 and 2.11BSD a.out support.
1279 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1281 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1282 for n32 ABI support.
1283 * Makefile.in: Regenerate.
1284 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1285 n32 ABI emulations for these 64 bit targets.
1286 * emulparams/elf32bmipn32.sh: Expand comment.
1287 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1289 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1291 2002-07-30 Graeme Peterson <gp@qnx.com>
1293 * configure.tgt: Add support for arm-*-nto target.
1294 * Makefile.am: Add earmnto.o file.
1295 * Makefile.in: Regenerate.
1296 * NEWS: Mention port of ARM support to QNX.
1297 * emulparams/armnto.sh: New file.
1299 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1301 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1302 for relocatable link.
1303 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1306 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1308 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1311 2002-07-25 Nick Clifton <nickc@redhat.com>
1313 * po/sv.po: Updated Swedish translation.
1314 * po/es.po: Updated Spanish translation.
1315 * po/fr.po: Updated French translation.
1317 2002-07-24 Nick Clifton <nickc@redhat.com>
1319 * po/sv.po: Updated Swedish translation.
1320 * po/es.po: Updated Spanish translation.
1322 2002-07-23 Nick Clifton <nickc@redhat.com>
1324 * po/fr.po: Updated French translation.
1326 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1328 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1329 bomb on /DISCARD/ input section.
1330 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1331 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1333 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1335 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1338 2002-07-16 Denis Chertykov <denisc@overta.ru>
1339 Nick Clifton <nickc@redhat.com>
1340 Frank Ch. Eigler <fche@redhat.com>
1341 John Healy <jhealy@redhat.com>
1343 * configure.tgt: Add support for ip2k-elf.
1344 * Makefile.am: Add support for ip2k-elf.
1345 * Makefile.in: Regenerate.
1346 * emulparams/elf32ip2k.sh: New file.
1347 * scripttempl/ip2k.sc: New file
1348 * NEWS: Mention support for new port.
1350 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1352 * NEWS: Add 'Changes in 2.13'.
1354 2002-07-14 H.J. Lu <hjl@gnu.org>
1356 * ld.texinfo: Document a .symver takes precedence over a
1359 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1361 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1362 (COMMONPAGESIZE): Define.
1364 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1366 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1368 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1370 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1371 powerpc-*-openbsd* and sparc64-*-openbsd*.
1372 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1373 * Makefile.in: Regenerate.
1374 * emulparams/hppaobsd.sh: New file.
1376 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1378 * ldlang.c (print_wild_statement): Fix output formatting.
1380 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1382 * ldlang.c: (strip_excluded_output_sections): New function.
1383 (lang_process): Call it.
1384 (lang_size_sections_1): Revert 2002-06-10 change.
1386 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1388 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1390 * Makefile.in: Regenerate.
1392 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1394 * ldfile.c (ldfile_try_open_bfd): Formatting.
1396 * ldmisc.c (demangle): Move so that it doesn't intrude between
1397 vfinfo comment and body. Add comment.
1399 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1401 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1403 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1405 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1406 * ldlang.c (entry_sym): Likewise.
1407 (ldlang_undef_chain_list_type): Likewise.
1408 (lang_finish): Adjust references to entry_symbol.
1409 (lang_add_entry): Likewise.
1410 (lang_gc_sections): Use link_info.gc_sym_list.
1411 (lang_process): Set link_info.gc_sym_list.
1412 * ldlex.l: Include bfdlink.h.
1413 * ldmain.c (main): Init link_info.gc_sym_list.
1414 * emultempl/aix.em: Adjust references to entry_symbol.
1415 * emultempl/armcoff.em: Likewise.
1416 * emultempl/armelf.em: Likewise.
1417 * emultempl/pe.em: Likewise.
1418 * emultempl/ppc64elf.em (ppc_after_open): New function.
1419 (LDEMUL_AFTER_OPEN): Define.
1420 * emulparams/elf64ppc.sh: KEEP .opd sections.
1422 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1424 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1425 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1426 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1427 (EEPROM_START_ADDR): Define.
1428 (EEPROM_MEMORY): Define.
1429 * emulparams/m68hc12elf.sh: Likewise.
1430 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1431 section to put soft registers in .page0.
1432 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1434 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1436 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1437 section. Add ${RELOCATING-0}.
1439 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1441 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1442 (OTHER_SECTIONS): Define.
1443 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1444 (OTHER_SECTIONS): Undef.
1446 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1448 * ldmisc.c (demangle): Restore dots stripped from sym name.
1450 2002-06-25 H.J. Lu <hjl@gnu.org>
1452 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1453 * Makefile.in: Regenerated.
1455 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1457 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1458 the size of attached object files, to allow make the object files
1459 available via FTP or HTTP and to mention that the mail will be
1460 sent to a mailing list.
1462 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1464 * ld/configure.host (romp): Drop support.
1466 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1468 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1469 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1471 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1473 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1474 format specifier used to print BFD name.
1476 2002-06-18 Dave Brolley <brolley@redhat.com>
1478 From Catherine Moore, Michael Meissner, Jim Blandy:
1479 * emulparams/elf32frv.sh: New file.
1480 * configure.tgt: Support frv-*-*.
1481 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1482 (eelf32frv.c): New target.
1484 2002-06-17 Tom Rix <trix@redhat.com>
1486 * emultempl/elf32.em: gld*_get_script: Check for
1487 GENERATE_COMBRELOC_SCRIPT.
1488 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1489 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1491 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1493 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1495 2002-06-12 H.J. Lu <hjl@gnu.org>
1497 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1498 false if xvec doesn't match.
1500 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1502 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1504 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1506 * ldexp.c: Replace CONST with const.
1507 * ldfile.c: Likewise.
1508 * ldfile.h: Likewise.
1509 * ldlex.l: Likewise.
1511 * pe-dll.h: Likewise.
1513 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1515 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1517 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1519 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1520 to -1 == implicit enable.
1521 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1522 initialize link_info.pei386_auto_import to -1 == implicit
1524 (gld_${EMULATION_NAME}_parse_args): When processing
1525 --enable-auto-import and --disable-auto-import options, use
1526 '1' and '0' instead of 'true' and 'false'.
1527 (pe_find_data_imports): Only issue message about auto-import
1528 when the feature is implicitly enabled. Downgrade message to
1529 informational instead of warning.
1531 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1533 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1535 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1537 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1538 HOSTING_CRT0 and HOSTING_LIBS.
1540 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1542 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1544 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1546 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1547 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1549 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1551 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1552 SEC_EXCLUDE sections when doing a relocatable link.
1554 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1556 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1557 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1558 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1559 (eshlelf64_nbsd.c): New rules.
1560 * Makefile.in: Regenerate.
1561 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1562 (sh64-*-netbsd*): New targets.
1563 * emulparams/shelf32_nbsd.sh: New file.
1564 * emulparams/shelf64_nbsd.sh: New file.
1565 * emulparams/shlelf32_nbsd.sh: New file.
1566 * emulparams/shlelf64_nbsd.sh: New file.
1568 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1570 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1572 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1574 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1575 C++ constructors/destructors, loosely based on the m68hc11 port.
1577 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1579 * Makefile.in: Regenerate.
1580 * aclocal.m4: Regenerate.
1581 * config.in: Regenerate.
1582 * configure: Regenerate.
1584 2002-05-31 Graeme Peterson <gp@qnx.com>
1586 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1587 (ei386nto.c): Add rule.
1588 * Makefile.in: Regenerate.
1589 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1590 * emulparams/i386nto.sh: New file.
1592 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1594 * NEWS: Add entry for VAX ELF support.
1596 2002-05-29 Matt Thomas <matt@3am-software.com>
1597 Jason Thorpe <thorpej@wasabisystems.com>
1599 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1601 (evaxnbsd.c): New rules.
1602 * Makefile.in: Regenerate.
1603 * configure.tgt (vax-*-netbsdelf*)
1605 (vax-*-netbsd*): New targets.
1606 * emulparams/elf32vax.sh: New file.
1607 * emulparams/vaxnbsd.sh: New file.
1609 2002-05-29 Adam Nemet <anemet@lnxw.com>
1611 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1612 bfd_for_interwork, instead add glue sections to each input bfd.
1613 (bfd_for_interwork): New global.
1614 (arm_elf_set_bfd_for_interworking): New function.
1615 (arm_elf_before_allocation): Use it.
1617 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1619 * Makefile.am: Add DLX make target.
1620 * configure.tgt: Add DLX configuration.
1621 * Makefile.in: Regenerate.
1622 * emulparams/elf32_dlx.sh: New file
1623 * scripttempl/dlx.sc: New file
1625 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1627 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1628 * Makefile.in: Regenerate.
1629 * emulparams/elf_chaos.sh: Use elf_chaos script.
1630 * scripttempl/elf_chaos.sc: New file.
1632 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1634 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1635 addresses and regions from here...
1636 (lang_get_regions): ...to this new function.
1637 (lang_leave_output_section_statement): Use lang_get_regions.
1638 (lang_leave_overlay): Likewise.
1639 * mri.c (mri_draw_tree): Pass null as last argument to
1640 lang_leave_output_section_statement.
1641 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1642 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1643 * emultempl/pe.em (gld*_place_orphan): Likewise.
1645 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1647 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1649 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1651 * ldemul.c: Fix formatting.
1652 * ldfile.c: Likewise.
1653 * pe-dll.c: Likewise.
1654 * pe-dll.h: Likewise.
1656 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1658 * ldlang.c (lang_process): Formatting, grammar.
1660 * ldlex.l: Use #include "" instead of <> for local header files.
1662 2002-05-24 TAMURA Kent <kent@netbsd.org>
1664 * configure.tgt: Add a target for i386-netbsdpe.
1666 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1668 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1669 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1670 output section if necessary. Handle .tbss.
1671 (lang_size_sections): Clear _raw_size for .tbss section
1672 (it allocates space in PT_TLS segment only).
1673 * ldwrite.c (build_link_order): Build link order for .tbss too.
1675 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1677 * configure.in: Correct spelling of AC_PREREQ.
1679 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1681 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1683 (autofilter_objlist): Add crtbegin.o, crtend.o.
1685 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1687 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1688 (longopts): Add new option --exclude-libs.
1689 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1690 (gld_${EMULATION_NAME}_parse_args): Use it.
1691 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1692 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1693 from whole archives.
1694 (pe_dll_add_excludes): Set excludes->type.
1695 (auto_export): Add new variable libname and set to archive basename if
1696 abfd. Use it when filtering default and user-specified libarary
1697 excludes. Let string "ALL" mean all libs when filtering user-specified
1699 * ld.texinfo: Document --exclude-libs.
1701 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1703 * ldemul.c (ldemul_new_vers_pattern): New function.
1704 * ldemul.h (ldemul_new_vers_pattern): Declare.
1705 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1706 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1707 * emultempl/ppc64elf.em (dotsyms): New static var.
1708 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1709 (LDEMUL_NEW_VERS_PATTERN): Define.
1710 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1711 (PARSE_AND_LIST_LONGOPTS): Likewise.
1712 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1713 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1715 * emultempl/armcoff.em: Likewise.
1716 * emultempl/armelf_oabi.em: Likewise.
1717 * emultempl/beos.em: Likewise.
1718 * emultempl/elf32.em: Likewise.
1719 * emultempl/generic.em: Likewise.
1720 * emultempl/gld960.em: Likewise.
1721 * emultempl/gld960c.em: Likewise.
1722 * emultempl/linux.em: Likewise.
1723 * emultempl/lnk960.em: Likewise.
1724 * emultempl/m68kcoff.em: Likewise.
1725 * emultempl/mipsecoff.em: Likewise.
1726 * emultempl/pe.em: Likewise.
1727 * emultempl/sunos.em: Likewise.
1728 * emultempl/ticoff.em: Likewise.
1729 * emultempl/vanilla.em: Likewise.
1731 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1733 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1734 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1735 (LIB_SEARCH_DIRS): No need to use "tr".
1736 (COMPILE_IN): Only set for native targets.
1737 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1738 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1739 * configure.tgt (powerpc*): Set tdir_*.
1740 (powerpcle*): Correct targ_extra_emuls.
1741 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1742 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1744 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1746 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1747 calling lang_add_entry.
1749 2002-05-21 H.J. Lu (hjl@gnu.org)
1751 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1753 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1755 * ld.texinfo: Updated for --allow-multiple-definition and
1758 * ldmain.c (main): Initialize the allow_multiple_definition
1761 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1762 (ld_options): Add --allow-multiple-definition.
1763 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1765 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1767 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1768 (earmelfb_nbsd.c): New rule.
1769 * Makefile.in: Regenerate.
1770 * configure.tgt (armeb-*-netbsdelf*): New target.
1771 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1772 (arm-*-netbsd*): Likewise.
1773 * emulparams/armelfb_nbsd.sh: New file.
1775 2002-05-18 Tom Rix <trix@redhat.com>
1777 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1780 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1782 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1783 * Makefile.in: Regenerate.
1784 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1786 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1788 * emulparams/avr1.sh: New file.
1789 * emulparams/avr2.sh: New file.
1790 * emulparams/avr3.sh: New file.
1791 * emulparams/avr4.sh: New file.
1792 * emulparams/avr5.sh: New file.
1793 * scripttempl/avr.sc: New file.
1795 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1797 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1798 (lang_place_orphans): Abort if just_syms_flag.
1800 2002-05-10 Tom Rix <trix@redhat.com>
1802 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1803 architecture and machine information in the output bfd.
1804 (gld*_before_parse): Remove old arch and machine code.
1805 (choose_target): Rename to gld*_choose_target.
1806 (rtld): Change type to int.
1807 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1808 objects in XCOFF archives.
1809 * ldfile.h: Update copyright date.
1811 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1813 * ldmain.c (main): Enable -z combreloc by default.
1815 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1817 * Makefile.am: Honour DESTDIR.
1818 * Makefile.in: Regenerate.
1820 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1822 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1823 (lang_enter_overlay): Remove the last two parameters.
1824 (lang_leave_overlay): Take them here instead.
1825 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1826 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1827 than lang_enter_overlay.
1828 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1829 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1830 (lang_size_sections_1): Evaluate it.
1831 (lang_leave_output_section_statement): Rework LMA lookup.
1832 (overlay_lma, overlay_nocrossrefs): Remove.
1833 (lang_enter_overlay): Remove LMA and crossref arguments.
1834 (lang_enter_overlay_section): Don't set the LMA here.
1835 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1836 assignment to the last section's update_dot_tree. Unconditionally
1837 use the load and run-time regions specified in the OVERLAY statement.
1838 Likewise the first section's LMA. Only set the other sections' LMAs
1839 when no load region is given.
1841 2002-05-06 Nick Clifton <nickc@redhat.com>
1843 * po/sv.po: New translation.
1845 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1847 * emultempl/hppaelf.em (build_section_lists): New function.
1848 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1849 and build_section_lists.
1851 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1853 * ld.h: Fix formatting.
1854 * ldexp.c: Likewise.
1855 * ldfile.c: Likewise.
1856 * ldlang.c: Likewise.
1857 * ldmain.c: Likewise.
1858 * lexsup.c: Likewise.
1859 * pe-dll.c: Likewise.
1861 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1863 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1864 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1865 (build_section_lists): Do output_section tests here.
1867 2002-04-30 Tom Rix <trix@redhat.com>
1869 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1871 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1873 Long branch stubs, multiple stub sections.
1874 * emultempl/ppc64elf.em: Include ldctor.h.
1875 (stub_file): New var.
1876 (group_size): New var.
1877 (ppc_create_output_section_statements): New function.
1878 (struct hook_stub_info): New.
1879 (hook_in_stub): New function.
1880 (ppc_add_stub_section): New function.
1881 (ppc_layout_sections_again): New function.
1882 (build_section_lists): New function.
1883 (gld${EMULATION_NAME}_finish): Rewrite.
1884 (real_func): New var.
1885 (ppc_for_each_input_file_wrapper): New function.
1886 (ppc_lang_for_each_input_file): New function.
1887 (lang_for_each_input_file): Define.
1888 (PARSE_AND_LIST_PROLOGUE): Define.
1889 (PARSE_AND_LIST_LONGOPTS): Define.
1890 (PARSE_AND_LIST_OPTIONS): Define.
1891 (PARSE_AND_LIST_ARGS_CASES): Define.
1892 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1894 2002-04-30 Tom Rix <trix@redhat.com>
1896 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1897 -blibpath, -bnolibpath support.
1899 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1901 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1902 (eelf32ppcwindiss.c): New target.
1903 * Makefile.in: Regenerated.
1904 * configure.tgt: Add support for powerpc-*-windiss.
1905 * emulparams/elf32ppcwindiss.sh: New file.
1907 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1909 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1910 * ldexp.c (exp_print_token): Add "infix_p" argument.
1911 (exp_print_tree): Update accordingly.
1913 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1915 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1916 * Makefile.in: Regenerate.
1917 * mpw-elfmips.c: Delete.
1918 * mpw-eppcmac.c: Delete.
1919 * mpw-esh.c: Delete.
1920 * mpw-idtmips.c: Delete.
1922 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1924 * emulparams/shelf32.sh (MACHINE): Now sh5.
1926 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1928 * ldgram.y: Fix syntax warning.
1930 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1932 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1933 to prevent "-n" from being taken as an abbreviation for
1934 "--no-pipeline-knowledge".
1936 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1938 * ldlang.c (lang_size_sections_1): Don't complain about
1939 SEC_NEVER_LOAD sections having no memory region specified.
1941 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1943 2002-04-07 matthew green <mrg@redhat.com>
1945 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1947 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1949 * dep-in.sed: Cope with absolute paths.
1950 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1952 * Makefile.in: Regenerate.
1954 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1956 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1958 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1960 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1961 is smaller than maximum, round dot up to common page boundary.
1963 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1965 * configure.host: Set up for generic hosts first, then tweak as
1966 necessary in more specific targets.
1967 (HOSTING_LIBS): Include libgcc_eh.a if found.
1969 2002-03-23 Andreas Jaeger <aj@suse.de>
1971 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1973 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1975 * Makefile.am: Run "make dep-am".
1976 * Makefile.in: Regenerate.
1978 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1980 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1982 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1984 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1985 add the symbol to the linker hash table immediately.
1986 (lang_place_undefineds): Split symbol creation out..
1987 (insert_undefined): ..to here.
1989 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1991 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1992 the contents of the buffer returned from basename function will are
1993 getting overwritten while still being used.
1995 2002-03-18 Jan Hubicka <jh@suse.cz>
1996 Andreas Jaeger <aj@suse.de>
1997 Andreas Schwab <schwab@suse.de>
1999 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2000 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2001 set libraries to default to lib64 paths.
2003 2002-03-18 Tom Rix <trix@redhat.com>
2005 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2006 * configure.tgt : Same.
2007 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2008 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2009 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2010 emulation parameters for better -b32, -b64 support.
2011 * emulparms/aixrs6.sh : Same.
2012 * emulparms/ppcmacos.sh : Same.
2013 * emultempl/aix.em (choose_target) : Use new emulation parameters
2014 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2015 * Makefile.in : Regenerate.
2017 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2019 * po/fr.po: Updated version.
2021 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2023 * ldmain.c (main): Move .text readonly flag fudges from here..
2024 * ldlang.c (lang_process): ..to here.
2026 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2028 * ldlang.c (lang_check): Remove the word size check added in last
2029 change. Treat emitrelocations case as for relocatable links.
2031 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2033 * po/fr.po: Updated version.
2035 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2037 * ldlang.c (lang_check): Do relocatable link checks first, so that
2038 warn_mismatch can't override. Check compatible and word size too.
2040 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2042 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2044 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2046 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2049 2002-03-04 H.J. Lu <hjl@gnu.org>
2051 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2052 .fini_array in the data segment.
2054 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2056 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2058 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2060 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2061 .init_array, and .fini_array.
2063 2002-02-20 Andreas Schwab <schwab@suse.de>
2065 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2066 .IA64_unwind* in a relocatable link.
2068 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2070 * NEWS: Mark 2.12 branch.
2072 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2074 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2075 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2077 2002-02-18 Tom Rix <trix@redhat.com>
2079 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2080 (gld*_before_allocation): Same.
2081 (gld*_create_output_section_statements): Generate
2082 __rtinit if run time linking. Add librtl.a to the link.
2083 (gld*_read_file): Clean.
2085 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2087 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2089 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2091 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2092 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2093 and eelf64alpha_fbsd.
2094 * Makefile.in: Regenerate.
2095 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2096 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2097 use a FreeBSD-specific emulation rather than the psABI one.
2098 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2099 for all FreeBSD ELF systems.
2100 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2102 * emulparams/elf32ppc_fbsd.sh: Likewise.
2103 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2104 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2105 * emulparams/elf64alpha_fbsd.sh: Likewise.
2106 * emulparams/elf_i386_fbsd.sh: Likewise.
2107 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2109 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2111 * po/tr.po: Updated version.
2113 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2115 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2118 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2120 * emultempl/mmo.em (mmo_after_open): Don't call
2121 _bfd_mmix_check_all_relocs when producing ELF output.
2123 2002-02-15 Richard Henderson <rth@redhat.com>
2125 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2126 definition. Emit a unop+nop pair.
2128 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2130 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2131 for presence of .MMIX.reg_contents.linker_allocated before early
2134 * NEWS: Mention support for MMIX.
2136 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2138 Support arbitrary length fill patterns.
2139 * ld.texinfo (Output Section Fill): Describe fill expressions.
2140 (FILL): Refer to the above.
2141 * ldexp.h (etree_value_type): Add "str" field.
2142 (union etree_union): Add "str" to "value" struct.
2143 (exp_bigintop): Declare.
2144 (exp_get_fill): Declare.
2145 * ldexp.c: Include "safe-ctype.h".
2146 (exp_intop): Set value.str to NULL.
2147 (exp_bigintop): New function.
2148 (new_rel): Pass in "str", and set new.str from it.
2149 (new_rel_from_section): Set new.str to NULL.
2150 (fold_name): Adjust calls to new_rel.
2151 (exp_fold_tree): Likewise.
2152 (exp_get_fill): New function.
2153 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2154 (INT): Returns a "bigint". Adjust all code handling INTs.
2155 (fill_opt): Returns a "fill".
2156 (fill_exp): Split out of fill_opt, use for FILL.
2157 * ldlang.h (struct _fill_type): New.
2158 (fill_type): Move typedef to ldexp.h.
2159 (lang_output_section_statement_type): "fill" is now a pointer.
2160 (lang_fill_statement_type): Likewise.
2161 (lang_padding_statement_type): Likewise.
2162 (lang_add_fill): Now takes a "fill_type *" param.
2163 (lang_leave_output_section_statement): Likewise.
2164 (lang_do_assignments): Likewise.
2165 (lang_size_sections): Likewise.
2166 (lang_leave_overlay_section): Likewise.
2167 (lang_leave_overlay): Likewise.
2168 * ldlang.c: Include ldgram.h after ldexp.h.
2169 (lang_output_section_statement_lookup): Adjust for fill_type change.
2170 (print_fill_statement): Likewise.
2171 (print_padding_statement): Likewise.
2172 (insert_pad): Now takes a "fill_type *" arg.
2173 (size_input_section): Likewise.
2174 (lang_size_sections_1): Likewise.
2175 (lang_size_sections): Likewise.
2176 (lang_do_assignments): Likewise.
2177 (lang_add_fill): Likewise.
2178 (lang_leave_output_section_statement): Likewise.
2179 (lang_leave_overlay_section): Likewise.
2180 (lang_leave_overlay): Likewise.
2181 Adjust all callers of the above function.
2182 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2183 starting with "0X" as well as "0x". Return bigint.str for hex
2184 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2185 Always use base 16 for numbers starting with "$".
2186 * ldmain.c: Include ldgram.h after ldexp.h.
2187 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2188 of bfd_fill_link_order.
2189 * pe-dll.c: Adjust lang_do_assignments calls.
2190 * emultempl/elf32.em: Likewise.
2191 * emultempl/hppaelf.em: Likewise.
2192 * emultempl/ppc64elf.em: Likewise.
2193 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2194 lang_add_assignment call.
2195 * emultempl/pe.em: Likewise.
2197 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2199 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2200 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2201 the pattern in question is not a regexp.
2202 * ldlang.c: Likewise.
2203 * ldlang.h: Likewise.
2204 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2206 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2208 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2209 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2210 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2211 * ldexp.c (exp_data_seg): New variable.
2212 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2213 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2214 (exp_fold_tree): Handle DATA_SEGMENT_END.
2215 Pass allocation_done when recursing instead of hardcoding
2216 lang_allocating_phase_enum.
2217 * ldexp.h (exp_data_seg): New.
2218 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2219 (lang_size_sections): New.
2220 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2221 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2222 if COMMONPAGESIZE is defined.
2223 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2224 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2225 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2226 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2227 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2230 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2232 * Makefile.in: Regenerate.
2234 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2236 * lexsup.c: Remove strtoul declaration.
2238 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2240 * ldmain.c: Add prototype for main ().
2241 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2242 * emultempl/lnk960.em (lnk960_choose_target): Function should
2245 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2247 * ldlang.c (entry_section): New initialised variable.
2248 (lang_finish): Use it.
2249 * ldlang.h (entry_section): Declare.
2250 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2251 entry_section to ".opd".
2253 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2255 * ld.texinfo (Options): Add back in -nostdlib documentation,
2256 which had been inadvertently removed.
2258 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2260 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2261 register section vma to a sane value after emitting error. Make
2262 fatal conditions cause program exit when emitting message.
2264 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2266 * configure.tgt: Add or32-*-rtems target.
2268 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2270 Contribute sh64-elf.
2271 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2272 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2273 in OTHER_RELOCATABLE_SECTIONS.
2274 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2275 * emulparams/shelf32.sh (STACK_ADDR): Define.
2276 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2277 (OTHER_SECTIONS): this. Removed stack settings.
2278 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2279 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2280 2001-03-12 DJ Delorie <dj@redhat.com>
2281 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2282 relaxing if any shmedia or mixed sections are found.
2283 2001-03-07 DJ Delorie <dj@redhat.com>
2284 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2285 einfo. Gracefully decline to output to non-elf formats.
2286 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2287 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2288 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2289 * emulparams/shelf32.sh: Ditto.
2290 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2291 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2293 2001-01-10 Ben Elliston <bje@redhat.com>
2294 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2295 non-portable shell constructs. From Hans-Peter Nilsson.
2296 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2297 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2298 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2299 dependencies to the shell script include chain.
2300 * Makefile.in: Regenerate.
2301 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2302 * emultempl/sh64elf.em: Update and tweak comments.
2303 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2304 make a .cranges section SEC_IN_MEMORY.
2305 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2306 * emultempl/sh64elf.em
2307 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2308 .cranges section found to be necessary; continue and set stored
2309 section contents flags for sections with non-mixed contents.
2310 Use a struct sh64_section_data container and sh64_elf_section_data
2311 to store contents-type flags.
2312 Remove unused update of "isec".
2313 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2314 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2315 access contents-type flags. Assert that the associated container
2316 is initialized. Use that container, not elf_gp_size, to hold size
2317 of linker-generated cranges contents.
2318 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2319 * emultempl/sh64elf.em
2320 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2321 there's already a .cranges section. When section flag difference
2322 is found, don't NULL-check cranges a second time. Tweak comments.
2323 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2324 merging, not max size, as size of ld-generated .cranges contents.
2325 Don't set ELF section flags in output section. When checking for
2326 needed .cranges descriptors, don't use a variable; compare
2327 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2329 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2330 * emultempl/sh64elf.em: New file.
2331 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2332 * Makefile.in: Regenerate.
2333 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2334 (OTHER_RELOCATING_SECTIONS): Ditto.
2335 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2336 * emulparams/shlelf32.sh: Stub out all settings except
2337 OUTPUT_FORMAT. Source shelf32.sh.
2338 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2339 OTHER_RELOCATING_SECTIONS.
2340 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2341 * emulparams/shlelf64.sh: Stub out all settings except
2342 OUTPUT_FORMAT. Source shelf64.sh.
2343 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2344 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2346 (DATA_START_SYMBOLS): Define, provide ___data.
2347 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2348 for consecutive .data section.
2349 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2350 section after .data section.
2351 * emulparams/shlelf64.sh: Ditto.
2352 * emulparams/shelf32.sh: Ditto.
2353 (ALIGNMENT): Define to 8.
2354 * emulparams/shelf32.sh: Ditto.
2355 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2356 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2357 built-in linker scripts.
2358 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2359 * emulparams/shlelf64.sh: New.
2360 * emulparams/shelf64.sh: New.
2361 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2363 * Makefile.am: Add support for shlelf64 and shelf64.
2364 * Makefile.in: Regenerate.
2365 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2366 * configure.tgt (sh64-*-elf*): Add shelf as default.
2367 Add shlelf to targ_extra_emuls.
2368 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2369 * emulparams/shelf32.sh: New file.
2370 * emulparams/shlelf32.sh: New file.
2371 * Makefile.am: Add support for shlelf32 and shelf32.
2372 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2373 * Makefile.in: Regenerate.
2375 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2377 * ldlang.c (lang_reset_memory_regions): Rename from
2378 reset_memory_regions. Change all callers. Make public.
2379 * ldlang.h (lang_reset_memory_regions): Prototype.
2380 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2381 lang_reset_memory_regions before lang_size_sections.
2382 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2383 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2385 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2387 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2388 arithmetic when checking for too many global registers.
2390 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2392 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2393 (ehppanbsd.c): New rule.
2394 * Makefile.in: Regenerate.
2395 * configure.tgt (hppa*-*-netbsd*): New target.
2396 * emulparams/hppalinux.sh: Add comment to check other files
2397 that source this file it is modified, and list which
2399 * emulparams/hppanbsd.sh: New file.
2401 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2403 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2406 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2408 Support on-demand global register allocation from
2409 R_MMIX_BASE_PLUS_OFFSET relocs.
2410 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2411 mmix_set_reg_section_vma. Call
2412 _bfd_mmix_finalize_linker_allocated_gregs.
2413 (mmix_before_allocation): New function.
2414 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2415 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2416 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2417 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2418 before .MMIX.reg_contents.
2419 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2420 (mmo_after_open): New function.
2421 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2422 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2423 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2425 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2427 * emulparams/or32.sh: New file.
2428 * emulparams/or32elf.sh: New file.
2429 * scripttempl/or32.sc: New file.
2430 * configure.tgt : Add support for or32.
2431 * configure: Regenerate
2432 * Makefile.am: Add support for or32.
2433 * Makefile.in: Regenerate.
2434 * NEWS: Mention support for or32.
2435 * po/ld.pot: Regenerate.
2437 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2438 Mitch Lichtenberg <mpl@broadcom.com>
2440 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2441 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2442 reloc creation (ld --embedded-relocs).
2444 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2446 * configure: Regenerated.
2448 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2450 * Makefile.am (install): Depend on install-info.
2451 * Makefile.in: Regenerate.
2453 2002-01-26 Christian Rose <menthos@menthos.com>
2455 * ldmain.c (main): Use full sentences to ease translation.
2457 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2459 * po/fr.po: Updated version.
2461 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2463 * po/es.po: Updated version.
2465 2002-01-25 Andreas Jaeger <aj@suse.de>
2467 * ldlex.l (yy_input): Correct error check.
2469 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2471 * ldmisc.c (demangle): Put back dots when string not demangled.
2473 2002-01-22 Richard Henderson <rth@redhat.com>
2475 * emulparams/elf64alpha.sh (NOP): Use unop.
2477 2002-01-21 Andreas Jaeger <aj@suse.de>
2479 * ldlex.l: Use fread instead of read.
2481 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2483 * configure.tgt (ia64-*-netbsd*): New target.
2485 2002-01-21 H.J. Lu <hjl@gnu.org>
2487 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2489 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2491 2002-01-18 Andreas Jaeger <aj@suse.de>
2493 * ldver.c (ldversion): Update year.
2495 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2497 * po/ld.pot: Regenerate.
2499 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2501 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2502 * Makefile.in: Regenerate.
2503 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2504 * emultempl/ppc64elf.em: New file.
2506 2002-01-15 DJ Delorie <dj@redhat.com>
2508 * scripttempl/pe.sc: Add support for constructor priorities.
2510 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2512 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2513 * emulparams/avr23xx.sh: Likewise.
2514 * emulparams/avr4433.sh: Likewise.
2515 * emulparams/avr44x4.sh: Likewise.
2516 * emulparams/avr85xx.sh: Likewise.
2517 * emulparams/avrmega103.sh: Likewise.
2518 * emulparams/avrmega161.sh: Likewise.
2519 * emulparams/avrmega603.sh: Likewise.
2520 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2522 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2524 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2525 archive is excluded.
2527 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2529 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2530 (eshelf_nbsd.c): New rule.
2531 (eshlelf_nbsd.c): New rule.
2532 * Makefile.in: Regenerate.
2533 * configure.tgt (sh*le-*-netbsdelf*): New target.
2534 (sh*-*-netbsdelf*): New target.
2535 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2536 * ld/emulparams/shelf_nbsd.sh: New emulation.
2537 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2539 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2541 * po/es.po: New file: Spanish translation.
2542 * configure.in (ALL_LINGUAS): Add es.
2543 * configure: Regenerate.
2545 2002-01-06 John Marshall <jmarshall@acm.org>
2547 * ld.texinfo: Note that --emit-relocs is currently only
2548 implemented for ELF.
2550 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2552 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2553 of bfd_section_list_remove and bfd_section_list_insert macros.
2554 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2555 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2557 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2559 * configure.tgt (x86_64-*-netbsd*): New target.
2561 2001-12-21 Tom Rix <trix@redhat.com>
2563 (gld*_create_output_section_statements): New function.
2564 For -binitfini support.
2565 * emultempl/aix.em (gld*_before_parse): Fix comment.
2566 * emultempl/aix.em (gld*_parse_args): Fix comment.
2568 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2570 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2572 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2574 * configure.tgt (arm-*-netbsdelf*): Add target.
2575 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2576 * emulparams/armelf_nbsd.sh: Added.
2577 * Makefile.am: Add rules for earmelf_nbsd.
2578 * Makefile.in: Regenerate.
2580 2001-12-19 Andreas Jaeger <aj@suse.de>,
2581 Susanne Oberhauser <froh@suse.de>
2583 * configure.host: Add rules for x86_64-*linux-gnu. Change
2584 s390x-linux entry to use gcc to report configuration, replace gcc
2585 with $CC in s390-linux
2587 2001-12-19 Andreas Jaeger <aj@suse.de>
2589 * ld.texinfo (VERSION): Fix markup.
2591 2001-12-18 matthew green <mrg@eterna.com.au>
2593 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2594 (m68kelfnbsd.c): New rule.
2595 * Makefile.in: Regenerate.
2596 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2597 (m68*-*-netbsd*4k*): .. this.
2598 (m68*-*-netbsdelf*): New target.
2599 (m68*-*-netbsd*): Also include ELF support.
2600 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2601 * emulparams/m68kelfnbsd.sh: New emulation.
2603 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2605 * ldgram.y (vers_node): Support anonymous version tags.
2606 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2607 tag is not defined together with non-anonymous versions.
2608 * ld.texinfo: Document it.
2610 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2612 * po/tr.po: New file: Turkish translation.
2613 * configure.in (ALL_LINGUAS): Add tr.
2614 * configure: Regenerate.
2616 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2618 * Makefile.am: Add rules for eelf64alpha_nbsd.
2619 * Makefile.in: Regenerate.
2620 * configure.tgt (alpha*-*-netbsd*): Set
2621 targ_emul to elf64alpha_nbsd.
2622 * emulparams/elf64alpha_nbsd.sh: Added.
2624 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2626 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2627 section_tail when fiddling with section list.
2628 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2629 broken into separate strings to make translation easier.
2630 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2631 fiddling with section list.
2632 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2634 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2636 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2638 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2640 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2642 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2644 * emultempl/elf32.em (finish): Supply output_bfd
2645 to bfd_elf*_discard_info.
2646 (OPTION_EH_FRAME_HDR): Define.
2647 (longopts): Add --eh-frame-hdr.
2648 (parse_args): Handle it.
2649 (list_options): Add --eh-frame-hdr to help.
2650 * emultempl/hppaelf.em (finish): Supply output_bfd
2651 to bfd_elf*_discard_info.
2652 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2654 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2656 * lexsup.c (parse_args): Don't pass shortopts to second call to
2657 getopt functions. Restore optind rather than decrementing before
2658 second call. Remove errind as it now duplicates last_optind.
2660 2001-12-11 Christopher Faylor <cgf@redhat.com>
2662 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2664 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2665 Richard Henderson <rth@redhat.com>
2667 * Makefile.am: Add support for xstormy16.
2668 * configure.tgt: Add support for xstormy16.
2669 * Makefile.in: Regenerate.
2670 * emulparams/elf32xstormy16.sh: New file.
2671 * scripttempl/xstormy16.sc: New file.
2673 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2675 * Makefile.in (LIB_PATH): Make configurable.
2676 (GENSCRIPTS): Set LIB_PATH in environment.
2677 * configure.in: Substitute LIB_PATH.
2678 * configure: Regenerate.
2679 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2680 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2682 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2684 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2685 describing the -N option so that it is easier to translate into
2688 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2690 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2691 statements describing a single option with a single, newline
2692 escaped fprintf. This allows better translation into other
2695 * ldmain.c (add_archive_element): Combine multiple strings
2696 into a single string to permit better translation into other
2699 2001-12-05 Tom Rix <trix@redhat.com>
2701 * Makefile.am: Remove eaixppc64.
2702 * Makefile.in: Regenerate.
2704 2001-12-04 Tom Rix <trix@redhat.com>
2706 * emultempl/aix.em (choose_target): Change default target to
2707 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2709 (gld*_read_file): Fix typo.
2710 (change_symbol_mode): Add prototype.
2713 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2714 * emulparams/aixrs6.sh : Same.
2715 * emulparams/ppcmacos.sh : Same.
2716 * emulparams/aixppc64.sh : Delete file.
2717 * emultempl/aix.em : Formatting changes.
2719 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2721 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2722 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2724 (OTHER_END_SYMBOLS): Fix formatting.
2725 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2726 (OTHER_END_SYMBOLS): Fix formatting.
2728 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2730 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2732 2001-12-02 Tom Rix <trix@redhat.com>
2734 * configure.tgt : Remove eaixppc64 emulations.
2735 * Makefile.in : Remove eaixppc64.c
2736 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2737 (ldemul_default_target): Same.
2738 * emultempl/gld960.em (gld960_choose_target): Same.
2739 * emultempl/gld960c.em (gld960_choose_target): Same.
2740 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2741 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2742 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2743 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2744 * emultempl/aix.em (choose_target): New function. Handle emulation of
2747 2001-11-27 H.J. Lu <hjl@gnu.org>
2749 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2750 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2751 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2752 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2753 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2754 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2755 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2756 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2758 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2761 (REL_SDATA): Likewise.
2762 (REL_SBSS): Likewise.
2763 (REL_SDATA2): Likewise.
2764 (REL_SBSS2): Likewise.
2765 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2768 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2770 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2772 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2774 2001-11-22 H.J. Lu <hjl@gnu.org>
2776 * Makefile.in: Regenerated with automake based on automake
2777 1.4-8 in RedHat 7.1.
2779 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2781 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2782 (config.status): Delete rule.
2783 Add extra dependencies to cover sourced emulparams files.
2784 * Makefile.in: Regenerate.
2786 * scripttempl/elf.sc: Order <section>, <section>.* and
2787 corresponding linkonce sections as seen in input files.
2788 Formatting fixes. Zero vma of all sections if not relocating.
2789 (STACK): Define and insert if STACK_ADDR defined.
2790 (OTHER_RELOCATING_SECTIONS): Delete.
2791 (OTHER_END_SYMBOLS): Define.
2792 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2793 (OTHER_READWRITE_SECTIONS): Likewise.
2794 (OTHER_GOT_SECTIONS): Likewise.
2795 (OTHER_SDATA_SECTIONS): Likewise.
2796 (OTHER_BSS_SECTIONS): Likewise.
2797 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2798 (OTHER_READWRITE_SECTIONS): Likewise.
2799 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2800 (OTHER_READWRITE_SECTIONS): Likewise
2802 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2803 (STACK_ADDR): Define.
2804 * emulparams/armelf_oabi.sh: As for armelf.sh.
2805 * emulparams/elf32mcore.sh: As for armelf.sh.
2806 * emulparams/h8300elf.sh: As for armelf.sh.
2807 * emulparams/mn10200.sh: As for armelf.sh.
2808 * emulparams/shelf.sh: As for armelf.sh.
2810 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2811 (OTHER_END_SYMBOLS): Define.
2812 * emulparams/m32relf.sh: As for elf32fr30.sh.
2813 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2814 * emulparams/h8300self.sh: As for elf32fr30.sh.
2816 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2817 defines with RELOCATING test.
2818 (OTHER_SDATA_SECTIONS): Likewise.
2819 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2820 (OTHER_END_SYMBOLS): ..this.
2821 * emulparams/crislinux.sh: As for criself.sh.
2823 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2825 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2826 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2827 normal and linkonce sections as seen in input files.
2828 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2829 (TEXT_DYNAMIC): Likewise.
2830 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2831 (OTHER_SDATA_SECTIONS): Likewise.
2832 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2833 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2834 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2835 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2836 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2837 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2838 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2839 sections as seen in input files.
2840 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2841 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2843 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2844 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2845 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2846 (OTHER_SECTIONS): Instead, use this..
2847 (OTHER_END_SYMBOLS): ..and this.
2849 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2850 * emulparams/elf32bsmip.sh: Likewise.
2851 * emulparams/elf32btsmip.sh: Likewise.
2852 * emulparams/elf32ebmip.sh: Likewise.
2853 * emulparams/elf32lmip.sh: Likewise.
2854 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2855 * emulparams/elf32lsmip.sh: Likewise.
2856 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2857 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2858 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2859 * emulparams/elf64btsmip.sh: Likewise.
2860 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2861 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2862 * emulparams/elf32ppclinux.sh: Likewise.
2863 * emulparams/elf32ppcsim.sh: Likewise.
2864 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2865 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2866 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2867 * emulparams/h8300self.sh: Likewise.
2868 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2869 * emulparams/sh.sh: Comment.
2870 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2871 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2872 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2874 2001-11-21 David Heine <dlheine@tensilica.com>
2875 Alan Modra <amodra@bigpond.net.au>
2877 * ldlang.c (map_input_to_output_sections): Replace "break"
2878 accidentally removed with 2001-08-03 change.
2879 (lang_gc_sections_1): Likewise.
2881 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2883 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2885 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2887 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2888 of false when calling lang_size_sections.
2889 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2891 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2893 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2894 function when LDEMUL_FINISH isn't set to the same name. Don't
2895 call ${LDEMUL_FINISH}.
2896 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2897 * emultempl/armelf.em (arm_elf_finish): Call
2898 gld${EMULATION_NAME}_finish.
2899 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2900 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2901 hppaelf_layout_sections_again if necessary.
2902 (need_laying_out): New var.
2903 (hppaelf_layaout_sections_again): Rename to
2904 hppaelf_layout_sections_again. Clear need_laying_out.
2905 (PARSE_AND_LIST_OPTIONS): Format text.
2907 2001-11-14 H.J. Lu <hjl@gnu.org>
2909 * emultempl/armelf.em (arm_elf_finish): Renamed from
2910 gld${EMULATION_NAME}_finish.
2911 (LDEMUL_FINISH): Set to arm_elf_finish.
2913 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2915 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2916 (struct ld_emulation_xfer_struct): Use it.
2918 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2920 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2921 additional symbols referenced by newer crt0.o files from HP.
2923 2001-11-12 Anthony Green <green@redhat.com>
2925 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2927 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2929 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2930 * Makefile.in: Regenerate.
2932 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2934 * ld.texinfo: Use @command for commands, @option for options.
2935 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2937 * Makefile.in: Rebuild.
2939 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2941 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2942 Add support for targets.
2944 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2946 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2947 * configure: Regernate.
2948 * po/fr.po: New file.
2949 * po/sv.po: New file.
2951 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2953 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2954 as little endian default and to support big endian.
2956 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2958 * ld.texinfo (Options): Document new option, -nostdlib.
2959 * lexsup.c (OPTION_NOSTDLIB): New definition.
2960 (ld_options): Add entry for "nostdlib".
2961 (parse_args): Handle OPTIONS_NOSTDLIB.
2962 * ldfile.c (ldfile_add_library_path): Don't add directories
2963 to the search path if they weren't specified on the command line
2964 and -nostdlib was specified.
2965 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2967 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2969 * lexsup.c (parse_args): Prevent infinite parsing loop when
2970 "-rpath.a" is specified on the command line.
2971 Replace calls to fprintf with calls to einfo.
2973 2001-10-31 John Marshall <jmarshall@acm.org>
2975 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2976 appear only once across all the linker scripts involved in a link
2977 invocation no longer applies. Make the documentation reflect
2980 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2982 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2984 (sh-*-linux*): Added targ_extra_libpath.
2986 2001-10-31 David Heine <dlheine@tensilica.com>
2988 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2989 for padding statements.
2991 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2993 * configure.tgt (mmix-*-*): New target.
2994 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2995 Add dependencies to match.
2996 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2997 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2998 scripttempl/mmo.sc: New files.
2999 * gen-doc.texi: @set MMIX.
3000 * ld.texinfo: Ditto.
3001 [MMIX] Add MMIX node.
3002 * Makefile.in: Regenerate.
3004 2001-10-29 Kazu Hirata <kazu@hxi.com>
3006 * ldlang.c: Fix a comment typo.
3008 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3010 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3011 entries, and match *-*-linux*.
3013 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3015 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3016 with ldlex_script, ldlex_popstate.
3017 (ifile_p1): Likewise.
3018 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3020 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3021 to 1. Don't BEGIN(SCRIPT).
3022 (lex_redirect): Similarly.
3023 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3025 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3027 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3028 __EH_FRAME_END__ and accept eh frames into data section.
3029 Add ctor and dtor sections.
3031 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3033 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3034 (auto-export): Fix indentation.
3036 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3038 * pe-dll.c (autofilter_objectlist): Add startup objects
3040 (auto-export): Constify char * p.
3041 Extract file basename and use strcmp rather than ststr
3044 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3046 * ldmain.c (get_emulation): Improve comment about the handling
3049 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3051 * po/POTFILES.in: Regenerate.
3053 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3055 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3056 -z nocopyreloc and -z nocombreloc usage strings.
3058 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3060 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3063 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3065 * scripttempl/armaout.sc: Place .bss section after end of aligned
3066 data section to match behaviour of aout code in constructrion of
3069 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3071 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3072 startup files for mingw32 dlls to list.
3074 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3076 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3078 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3080 * configure.tgt (targ): Add arm9e-*-elf.
3082 2001-10-05 H.J. Lu <hjl@gnu.org>
3084 * genscripts.sh: Fix a typo in the last change.
3086 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3088 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3089 -z nocombreloc in usage.
3091 2001-10-03 Jim Blandy <jimb@redhat.com>
3093 * genscripts.sh: Include a comment at the top of each generated
3094 script, explaining its purpose.
3096 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3098 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3099 * NEWS: Mention -z nocopyreloc.
3100 * ld.texinfo (Options): Describe nocopyreloc.
3102 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3104 * configure: Regenerate.
3106 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3108 * ldver.h (ld_program_version): Remove declaration.
3109 * lexsup.c (parse_args): Move printing of copyright message..
3110 * ldver.c (ldversion): .. to here.
3111 Use BFD_VERSION_STRING in place of BFD_VERSION.
3112 (ld_program_version): Remove.
3113 * Makefile.am (Makefile): Depend on bfd/configure.in.
3115 * Makefile.in: Regenerate.
3117 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3119 * Makefile.am: Update dependencies with "make dep-am".
3120 * Makefile.in: Regenerate.
3122 2001-09-29 John Reiser <jreiser@BitWagon.com>
3124 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3125 * lexsup.c: Add --no-define-common commandline option.
3126 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3127 * ldlex.l: Likewise.
3128 * ld.h: Add command_line.inhibit_common_definition.
3129 * ldmain.c (main): Initialize.
3130 * ld.texinfo: Document.
3132 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3134 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3136 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3138 * ldmisc.c (USE_STDARG): Remove.
3139 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3144 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3145 declarations. Update copyright.
3147 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3149 * pe-dll.c: Remove obsoleted declaration of
3150 pe_get_data_import_dll_name.
3151 (pe_create_import_fixup): Fix thinko.
3153 * ld.texinfo(enable-auto-import): Clarify the explanation.
3155 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3157 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3158 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3159 DLL_SUPPORT controlled code.
3161 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3163 * emultempl/pe.em(pe_data_import_dll): Make static.
3164 (pe_get_data_import_dll_name): New accessor function.
3165 * pe-dll.c(pe_create_import_fixup): call
3166 pe_get_data_import_dll_name() from pe.em, instead of
3167 directly accessing pe_data_import_dll variable from pe.em.
3169 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3171 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3172 (def_file_add_directive): Use ISSPACE instead of isspace.
3173 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3174 isdigit/isxdigit/isalpha/isalnum.
3175 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3176 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3177 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3178 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3180 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3181 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3183 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3184 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3185 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3186 (ctor_prio): Use ISDIGIT instead of isdigit.
3187 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3188 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3189 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3191 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3192 (stricpy): Use TOLOWER instead of isupper/tolower.
3193 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3194 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3195 (lex_warn_invalid): Use ISPRINT instead of isprint.
3196 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3197 (main): For gettext, also set the LC_CTYPE locate facet.
3198 (add_keepsyms_file): Use ISSPACE instead of isspace.
3199 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3200 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3201 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3202 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3203 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3204 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3205 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3206 (quoteput): Use ISSPACE instead of isspace.
3207 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3210 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3212 * deffilep.y (def_stash_module): Constify "name" param.
3214 * pe-dll.c: Replace CONST with const throughout.
3215 (quick_symbol): Constify "n1", "n2", "n3" params.
3216 (make_singleton_name_thunk): Constify "import" param. Make
3217 "buffer_len" a size_t.
3218 (make_import_fixup_entry): Constify "name", "fixup_name",
3219 "dll_symname" params.
3220 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3221 (pe_get32): Likewise.
3222 (pe_implied_import_dll): Likewise.
3224 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3225 (sort_by_section_name): Likewise.
3227 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3228 (make_import_fixup): Cast printf arg, rel->address to long rather
3230 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3232 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3234 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3235 defines BufferSize. Increase buffer size by one.
3237 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3239 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3241 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3243 * configure.tgt: Add arm-openbsd target.
3245 2001-09-12 H.J. Lu <hjl@gnu.org>
3247 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3249 (ALL_64_EMULATIONS): Here.
3250 * Makefile.in: Regenerated.
3252 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3254 * emultempl/pe.em(make_import_fixup): change signature to
3255 take asection as well as arelec; we need this for proper
3256 error reporting. Only call pe_create_import_fixup() if
3257 there is no attempt to add a constant addend to the reloc;
3258 otherwise, report error condition.
3259 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3260 since final argument is a pointer to make_import_fixup().
3261 Change call to cb() to match make_import_fixup() signature.
3262 (make_import_fixup_mark): make buffer_len unsigned.
3263 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3265 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3267 * ld.texinfo: add verbose documentation for auto-import
3268 direct-addressing workaround, to compliment the terse
3271 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3273 * scripttempl/v850.sc: Add gcc_except_table sections.
3275 2001-09-11 Jeffrey A Law (law@cygnus.com)
3277 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3278 * emulparams/h8300self.sh: Similarly.
3280 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3282 * ld.texinfo (Options, --stack): Correct default value for stack
3285 2001-09-05 Tom Rix <trix@redhat.com>
3287 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3289 2001-09-03 Andreas Jaeger <aj@suse.de>
3291 * emultempl/beos.em: Declare prototypes for comparions functions,
3294 2001-09-02 Andreas Jaeger <aj@suse.de>
3296 * emultempl/aix.em: Add missing prototype.
3297 * emultempl/lnk960.em: Likewise.
3298 * emultempl/vanilla.em: Likewise.
3299 * emultempl/armcoff.em: Likewise.
3300 * emultempl/armelf_oabi.em: Likewise.
3301 * emultempl/beos.em: Likewise.
3302 * emultempl/gld960c.em: Likewise.
3303 * emultempl/gld960.em: Likewise.
3305 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3306 for prototype declaration.
3308 2001-08-31 Eric Christopher <echristo@redhat.com>
3309 Jason Eckhardt <jle@redhat.com>
3311 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3313 2001-08-31 Andreas Jaeger <aj@suse.de>
3315 * emultempl/pe.em: Add missing prototypes.
3316 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3317 pe_find_data_imports.
3318 (pr_sym): Add unused attribute.
3320 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3322 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3323 default from coff to elf.
3325 2001-08-29 Jeff Law <law@redhat.com>
3327 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3329 * emulparams/h8300self.sh: Similarly.
3331 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3333 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3335 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3336 * configure.tgt (h8300-*-elf*): New case.
3337 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3338 * emulparams/h8300self.sh: New file.
3339 * Makefile.in: Regenerated.
3341 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3343 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3346 2001-08-27 Linus Nordberg <linus@swox.com>
3347 Alan Modra <amodra@bigpond.net.au>
3349 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3350 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3352 * Makefile.in: Regenerate.
3353 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3354 entries to correct alphabetical position.
3355 * emulparams/elf64ppc.sh: New.
3356 * emulparams/elf64lppc.sh: New.
3358 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3360 * ldmain.c (main): Declare BSIZE as static.
3362 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3364 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3365 into .rel.dyn resp. .rela.dyn if combreloc.
3366 (get_script): If .x linker script is equal to .xn, only put it
3367 once into the binary.
3368 Add .xc and .xsc scripts.
3369 (parse_args): Handle -z combreloc and -z nocombreloc.
3370 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3371 For .xc and .xsc scripts put all .rel* or .rela* input sections
3372 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3373 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3375 Strip trailing whitespace from script.
3376 Generate .xc and .xsc scripts if requested.
3377 * ldmain.c (main): Initialize link_info.combreloc and
3378 link_info.spare_dynamic_tags.
3379 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3380 (ld_options): Add --spare-dynamic-tags option.
3381 (parse_args): Likewise.
3382 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3383 * ldint.texinfo: Document .xc and .xsc linker scripts.
3384 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3386 2001-08-22 H.J. Lu <hjl@gnu.org>
3388 * emulparams/elf32fr30.sh: Add a newline.
3390 2001-08-21 Andreas Jaeger <aj@suse.de>
3392 * deffilep.y: Add missing prototypes.
3393 * pe-dll.c: Likewise.
3395 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3397 * ldlang.c (insert_pad): Fix typos in last patch.
3399 * ldlang.c: When traversing lang_statement_union_type lists,
3400 consistently use "header.next" rather than "next".
3401 * mpw-eppcmac.c: Likewise.
3402 * emultempl/beos.em: Likewise.
3403 * emultempl/hppaelf.em: Likewise.
3404 * emultempl/pe.em: Likewise.
3405 * ldlang.h (union lang_statement_union): Remove "next" field.
3407 * ldlang.c (insert_pad): Use offsetof macro.
3408 (lang_size_sections): Always neuter padding statements.
3409 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3411 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3412 passed to lang_size_sections.
3413 (pe_exe_fill_sections): Likewise.
3414 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3415 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3417 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3419 * emultempl/aix.em: Formatting fixes.
3421 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3423 * ldlang.c (insert_pad): Make use of an existing pad statement if
3424 available. Move code calculating alignment, adjusting section
3425 alignment power, and adjusting dot to ..
3426 (size_input_section): .. here. Remove unused relax param.
3427 (lang_size_sections): Change boolean `relax' param to boolean *.
3428 Adjust call to size_input_section. Make use of insert_pad to
3429 place pad after the assignment statement. If relaxing, zap
3431 (reset_memory_regions): Reset output_bfd section sizes too.
3432 (relax_again): Move to..
3433 (lang_process): ..here. Adjust call to lang_size_sections, and
3434 remove duplicated code.
3435 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3437 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3439 * ld.texinfo: Document that fill values now use the four least
3441 * emulparams/elf32fr30.sh (NOP): Update.
3442 * emulparams/elf32mcore.sh: Likewise.
3443 * emulparams/elf64_s390.sh: Likewise.
3444 * emulparams/elf_i386.sh: Likewise.
3445 * emulparams/elf_i386_be.sh: Likewise.
3446 * emulparams/elf_i386_chaos.sh: Likewise.
3447 * emulparams/elf_i386_ldso.sh: Likewise.
3448 * emulparams/elf_s390.sh: Likewise.
3449 * emulparams/elf_x86_64.sh: Likewise.
3450 * emulparams/i386moss.sh: Likewise.
3451 * emulparams/i386nw.sh: Likewise.
3452 * emulparams/m68kelf.sh: Likewise.
3453 * scripttempl/elf.sc: Update NOP comment.
3454 * scripttempl/elfi370.sc: Likewise.
3455 * scripttempl/elfm68hc11.sc: Likewise.
3456 * scripttempl/elfm68hc12.sc: Likewise.
3457 * scripttempl/nw.sc: Likewise.
3459 2001-08-15 Tom Rix <trix@redhat.com>
3461 * ldgram.y (saved_script_handle): Initialize to NULL.
3462 * ldmain.c (main): Change check on saved_script_handle.
3464 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3466 * emultempl/elf32.em: Formatting fixes.
3467 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3468 looking at sec->owner.
3469 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3470 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3471 unused code, and reorganize orphan section placement code.
3473 * ldlang.c (wild_doit): Rename to lang_add_section.
3474 * ldlang.h: Here too.
3475 * mpw-elfmips.c: And here.
3476 * emultempl/beos.em: And here.
3477 * emultempl/elf32.em: And here.
3478 * emultempl/hppaelf.em: And here.
3479 * emultempl/pe.em: And here.
3481 2001-08-13 Richard Henderson <rth@redhat.com>
3483 * emultempl/needrelax.em: New file.
3484 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3485 * Makefile.am (eelf64_ia64.c): Depend on it.
3486 * Makefile.in: Rebuild.
3488 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3490 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3491 output_section is set non-NULL.
3493 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3494 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3495 needlessly create an output_section_statement. Treat a correctly
3496 named output_section_statement with NULL bfd_section as compatible.
3498 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3500 * emultempl/generic.em: Support EXTRA_EM_FILE.
3501 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3502 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3503 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3504 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3505 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3506 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3507 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3508 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3509 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3510 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3512 2001-08-12 Richard Henderson <rth@redhat.com>
3514 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3515 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3516 scripttempl/v850.sc: Keep .jcr data.
3518 2001-08-12 H.J. Lu <hjl@gnu.org>
3519 Andrew Haley <aph@cambridge.redhat.com>
3520 Nick Clifton <nickc@redhat.com>
3522 * ldgram.y (had_script): Change name to saved_script_handle.
3523 Change type to file handle.
3524 * ld.h (had_script): Rename and retype.
3525 * ldfile.c (ldfile_open_command_file): Save the file handle
3526 used in saved_script_handle.
3527 * lexsup.c (parse_args): Do not allow -c option to alter
3528 saved_script_handle.
3529 * ldmain.c (main): Print out the linker script used if
3530 --verbose is given. Check saved_script_handle to obtain the
3531 external linker script used, or if NULL, dump the builtin
3533 * ld.texinfo: Document that --verbose now dumps the linker
3534 script used, regardless of whether it was an internal or an
3537 2001-08-10 Andreas Jaeger <aj@suse.de>
3539 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3541 * configure: Regenerate.
3543 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3545 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3547 * scripttempl/elf.sc: Move non-text .dynamic section before
3548 .plt/.got/.sdata* group.
3549 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3550 (OTHER_SDATA_SECTIONS): Add.
3551 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3553 * emulparams/crislinux.sh: Likewise.
3554 * emulparams/elf32b4300.sh: Likewise.
3555 * emulparams/elf32bmip.sh: Likewise.
3556 * emulparams/elf32bmipn32.sh: Likewise.
3557 * emulparams/elf32bsmip.sh: Likewise.
3558 * emulparams/elf32btsmip.sh: Likewise.
3559 * emulparams/elf32ebmip.sh: Likewise.
3560 * emulparams/elf32elmip.sh: Likewise.
3561 * emulparams/elf32l4300.sh: Likewise.
3562 * emulparams/elf32lmip.sh: Likewise.
3563 * emulparams/elf32lsmip.sh: Likewise.
3564 * emulparams/elf32ltsmip.sh: Likewise.
3565 * emulparams/elf64bmip.sh: Likewise.
3566 * emulparams/elf64btsmip.sh: Likewise.
3567 * emulparams/elf64ltsmip.sh: Likewise.
3569 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3571 * genscripts.sh: Source the emulparams script before each output
3572 script is generated so that variables like `RELOCATING' may affect
3573 variables defined in the emulparams script.
3575 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3577 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3580 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3581 ie. iterate over wild_statement.section_list.
3582 (gld${EMULATION_NAME}_place_orphan): Likewise.
3584 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3586 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3587 .fini[0-4] sections used by _exit
3588 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3589 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3590 * scripttempl/elfm68hc11.sc: Likewise.
3592 2001-08-03 H.J. Lu <hjl@gnu.org>
3594 * emultempl/beos.em (init): Add the missing initialization.
3596 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3598 * ld.texinfo (Input Section Basics): Clarify ordering of output
3600 * ldlang.c (callback_t): Add wildcard_list param.
3601 (walk_wild_section): Remove "section" param. Rewrite for
3602 lang_wild_statement_type change. Remove unique_section_p test.
3603 (walk_wild_file): Remove "section" param.
3604 (walk_wild): Remove "section" and "file" params.
3605 (lang_gc_wild): Likewise.
3606 (wild): Likewise. Modify for lang_wild_statement_type change.
3607 (wild_sort): Likewise. Add "sec" param.
3608 (gc_section_callback): Likewise.
3609 (output_section_callback): Likewise. Do unique_section_p test.
3610 (map_input_to_output_sections): Modify call to wild.
3611 (lang_gc_sections_1): Likewise.
3612 (print_wild_statement): Modify for lang_wild_statement_type
3614 (lang_add_wild): Replace filename, filenames_sorted param with
3615 filespec. Replace section_name, sections_sorted,
3616 exclude_filename_list with section_list.
3617 * ldlang.h (lang_add_wild): Here too.
3618 (lang_wild_statement_type): Replace section_name, sections_sorted,
3619 and exclude_filename_list with section_list.
3620 * ldgram.y (current_file): Delete.
3621 (%union): Add wildcard_list.
3622 (file_NAME_list): Set type to wildcard_list. Build a linked list
3623 rather than calling lang_add_wild for each entry.
3624 (input_section_spec_no_keep): Call lang_add_wild here instead.
3625 * ld.h (struct wildcard_list): Declare.
3626 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3628 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3630 * ldmain.c (main): initialize link_info.pei386_auto_import
3631 * pe-dll.c: new tables for auto-export filtering
3632 (auto_export): change API, pass abfd for contextual filtering.
3633 Loop thru tables of excluded symbols instead of comparing
3636 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3638 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3639 static variable current_sec (static struct sec *). Add
3640 forward declaration for add_bfd_to_link.
3641 (process_def_file): Don't export undefined symbols. Do not
3642 export symbols starting with "_imp__". Call auto_export()
3644 (pe_walk_relocs_of_symbol): New function.
3645 (generate_reloc): add optional extra debugging
3646 (pe_dll_generate_def_file): eliminate extraneous initial blank
3648 (make_one): enlarge symtab to make room for __nm__ symbols
3649 (DATA auto-import support).
3650 (make_singleton_name_thunk): New function.
3651 (make_import_fixup_mark): New function.
3652 (make_import_fixup_entry): New function.
3653 (pe_create_import_fixup): New function.
3654 (add_bfd_to_link): Specify that 'name' argument is a CONST
3656 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3657 declare new functions pe_walk_relocs_of_symbol and
3658 pe_create_import_fixup.
3659 * emultempl/pe.em: add new options --enable-auto-import,
3660 --disable-auto-import, and --enable-extra-pe-debug.
3661 (make_import_fixup): New function.
3662 (pe_find_data_imports): New function.
3663 (pr_sym): New function.
3664 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3665 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3668 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3670 * ld.texinfo: add additional documentation for
3671 --export-all-symbols. Document --out-implib,
3672 --enable-auto-image-base, --disable-auto-image-base,
3673 --dll-search-prefix, --enable-auto-import, and
3674 --disable-auto-import.
3675 * ldint.texinfo: Add detailed documentation on auto-import
3678 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3680 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3683 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3685 * Makefile.am: Update dependencies with "make dep-am".
3686 * Makefile.in: Regenerate
3688 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3690 * ldcref.c (check_section_sym_xref): New function.
3691 (check_nocrossrefs): Call it.
3692 (check_nocrossref): Interate over h->refs here instead of..
3693 (check_refs): ..here. Pass in the symbol name, section, and bfd
3694 rather than hash_entry pointers.
3695 (struct check_refs_info): Keep symbol name rather than hash entry.
3697 (check_reloc_refs): Tweak for above changes in check_refs_info.
3698 Only report references to section syms when symname is NULL to
3699 prevent duplicate messages for the same reloc.
3701 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3703 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3704 available. Do not print NULL trees.
3705 (exp_print_token): Print unknown tokens with values > 126 as
3706 decimal values not ASCII characters.
3708 * ldlang.c (lang_leave_overlay): If a region is specified assign
3709 it to all sections inside the overlay unless they have been
3710 assigned to the own, non-default, memory region.
3712 * README: Add header for consistency with other README files.
3714 2001-07-14 H.J. Lu <hjl@gnu.org>
3716 * emultempl/elf32.em (output_prev_sec_find): Never return
3717 bfd_abs_section_ptr, bfd_com_section_ptr nor
3718 bfd_und_section_ptr.
3720 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3722 * Makefile.am (em32relf.c): Change dependency from generic.em to
3724 * Makefile.in: Regenerate.
3726 2001-07-14 matthew green <mrg@eterna.com.au>
3728 * configure.tgt (i386-*-netbsdelf*): New target.
3729 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3731 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3733 * emultempl/elf32.em (output_prev_sec_find): New.
3734 (place_orphan): Use it.
3736 2001-07-11 H.J. Lu <hjl@gnu.org>
3738 * ldmain.c (main): Fix typos in the last change.
3740 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3742 * ldmain.c (main): Disallow -F and -f without -shared.
3744 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3746 * emultempl/pe.em (after_open): Check for the output_bfd not
3747 having any coff_data structure allocated to it.
3749 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3751 * emultempl/elf32.em: Do not assuming that contents of the buffer
3752 returned from basename function will remain unchanged accross other
3755 2001-07-03 H.J. Lu <hjl@gnu.org>
3757 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3758 2001-07-03. It creates dynamic entries even for static binaries.
3760 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3762 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3763 (DYNAMIC): Use it to reserve few dynamic entries for
3766 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3768 * emulparams/hppa64linux.sh: New file.
3769 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3770 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3771 (ehppa64linux.c): Add rule to make it.
3773 * Makefile.in: Regenerate.
3775 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3777 * ld.texinfo (Options, -r): Mention restrictions when using
3778 different object formats.
3780 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3782 * ldlang.c (lang_check): Emit fatal error if relocatable link
3783 between different object flavours with relocations in input.
3785 2001-06-19 H.J. Lu <hjl@gnu.org>
3787 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3788 (--version-script): Mention the language support.
3790 2001-06-19 H.J. Lu <hjl@gnu.org>
3792 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3794 2001-06-18 H.J. Lu <hjl@gnu.org>
3796 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3797 (diststuff): Add $(MANS).
3798 * Makefile.in: Regenerated.
3802 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3804 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3805 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3806 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3807 * ld.h (args_type): Remove member export_dynamic. All users
3808 changed to use struct bfd_link_info member.
3810 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3811 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3812 * Makefile.in: Regenerate.
3814 2001-06-18 H.J. Lu <hjl@gnu.org>
3816 * ldlang.c (init_os): Add the newline to the einfo call.
3817 (lang_check): Likewise.
3818 (lang_do_version_exports_section): Likewise.
3820 2001-06-15 H.J. Lu <hjl@gnu.org>
3822 * lexsup.c (parse_args); Save optind to report unrecognized
3825 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3827 * ldlang.c (lang_check): Emit fatal error if relocatable link
3828 between different object flavours.
3830 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3831 Set new link_info member export_dynamic.
3832 * ldmain.c (main): Initialize new link_info member export_dynamic.
3834 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3836 * ldlang.c (walk_wild): Only call walk_wild_file if
3837 lookup_name returns something.
3838 (lookup_name): If load_symbols fails, return NULL.
3839 (load_symbols): Change to a boolean function.
3840 (open_input_bfds): If load_symbols fails then do not make the
3843 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3845 * ldlang.c (record_bfd_errors): Remove.
3847 * emultempl/aix.em: Fix copyright dates.
3849 2001-06-07 Andreas Jaeger <aj@suse.de>
3851 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3852 (TEXT_START_ADDR): Likewise.
3854 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3856 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3858 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3860 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3862 2001-05-31 H.J. Lu <hjl@gnu.org>
3864 * ldlang.c (open_input_bfds): Don't change the bfd error
3865 handler whilst loading symbols.
3867 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3869 * configure.tgt: Remove i370-mvs architecture, it is not currently
3872 2001-05-25 H.J. Lu <hjl@gnu.org>
3874 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3875 like emulparams/aixppc.sh.
3877 2001-05-25 H.J. Lu <hjl@gnu.org>
3879 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3880 setting of output_filename after bfd_scan_arch.
3881 * emultempl/pe.em: Likewise.
3883 2001-05-25 H.J. Lu <hjl@gnu.org>
3885 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3886 like emulparams/aixppc.sh.
3888 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3889 instead of ${srcdir}/emultempl/stringify.sed.
3891 2001-05-25 Timothy Wall <twall@oculustech.com>
3893 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3896 2001-05-25 Alan Modra <amodra@one.net.au>
3898 * configure.host: Replace linuxoldld with linux*oldld.
3899 * configure.tgt: Likewise.
3901 2001-05-24 H.J. Lu <hjl@gnu.org>
3903 * emultempl/stringify.sed: Removed again.
3905 2001-05-24 H.J. Lu <hjl@gnu.org>
3907 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3908 (gld${EMULATION_NAME}_before_parse): Initialize
3909 ldfile_output_architecture, ldfile_output_machine and
3910 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3911 * emultempl/beos.em: Likewise.
3912 * emultempl/elf32.em: Likewise.
3913 * emultempl/linux.em: Likewise.
3914 * emultempl/mipsecoff.em: Likewise.
3915 * emultempl/pe.em: Likewise.
3916 * emultempl/sunos.em: Likewise.
3918 2001-05-24 Tom Rix <trix@redhat.com>
3920 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3921 udate import file format.
3922 (change_symbol_mode) New, same
3923 (is_syscall) New, same
3924 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3925 * emulparams/aixppc64.sh : same
3926 * emulparams/aixrs6.sh : same
3927 * emulparams/ppcmacos.sh : same
3928 * emultempl/aix.em : use strtoull to parse options
3929 * Makefile.am : add eaixppc64 emulation for xcoff64
3930 * Makefile.in : same
3931 * configure.tgt : same
3933 * scripttempl/aix.sc : default text section offset to 0x10000000
3934 default data section offset to 0x20000000
3935 add .sv3264 and .sv64 pseudo sections
3936 loader and debug sections use the currect section offset.
3938 * emultempl/aix.em : Add xcoff64 support
3939 Add -binitfini support
3940 (gld${EMULATION_NAME}_before_parse) -binitfini
3941 (gld${EMULATION_NAME}_parse_args) same
3942 (gld${EMULATION_NAME}_before_allocation) format change for special
3945 * emulparams/aixppc64.sh : New file for xcoff64 support
3947 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3949 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3950 variable to avoid non-portable shell construct.
3952 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3954 * ldmain.c (get_emulation): Add -mips5 command line argument.
3956 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3958 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3959 (ELF_INTERPRETER_NAME): Define it.
3960 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3962 * configure.tgt (targ_emul, targ_extra_emuls)
3963 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3964 as primary, elf_i386 as extra.
3965 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3966 (eelf_i386_ldso.c): New rule.
3967 * Makefile.in: Rebuilt.
3969 2001-05-22 Nick Clifton <nickc@redhat.com>
3971 * lexsup.c (ld_options): Allow -I to be an alias for
3972 --dynamic-linker. This is for Solaris compatability.
3973 * ld.texinfo: Document that -I can be used.
3976 2001-05-16 Alan Modra <amodra@one.net.au>
3978 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3979 whether an input section is the first one assigned to an output
3981 Assorted formatting fixes.
3983 2001-05-14 DJ Delorie <dj@delorie.com>
3985 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3986 * Makefile.in: Ditto.
3988 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3990 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3991 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3993 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3995 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3997 * ldlang.c (lang_process): Call bfd_merge_sections.
3999 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4001 * ldgram.y: Fix typo.
4003 2001-05-03 H.J. Lu <hjl@gnu.org>
4005 * emultempl/elf32.em: Include "libiberty.h".
4006 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4007 basename of the bfd filename.
4008 (gld${EMULATION_NAME}_stat_needed): Likewise.
4009 (gld${EMULATION_NAME}_try_needed): Likewise.
4010 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4012 2001-05-02 H.J. Lu <hjl@gnu.org>
4014 * emultempl/pe.em: Include <ctype.h>.
4016 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4018 * emulparams/elf32openrisc.sh: New file.
4020 * Makefile.am: Add OpenRISC target.
4021 * Makefile.in: Regenerated.
4023 * configure.tgt: Add openrisc-*-* mapping.
4025 2001-05-02 Nick Clifton <nickc@redhat.com>
4027 * emultempl/aix.em: Replace buystring with xstrdup.
4028 * emultempl/beos.em: Replace buystring with xstrdup.
4030 2001-05-02 H.J. Lu <hjl@gnu.org>
4032 * ldfile.c: Include "libiberty.h".
4033 * ldlex.l: Likewise.
4035 * ldmisc.c (buystring): Removed.
4036 * ldmisc.h: Likewise.
4038 * ldfile.c: Replace buystring with xstrdup.
4039 * ldlang.c: Likewise.
4040 * ldlex.l: Likewise.
4041 * ldmain.c: Likewise.
4042 * ldmisc.c: Likewise.
4043 * lexsup.c: Likewise.
4044 * mpw-eppcmac.c: Likewise.
4046 2001-04-30 Andreas Jaeger <aj@suse.de>
4048 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4050 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4052 * ldlang.c (load_symbols): Give emulation a chance
4053 to process unrecognized file before fatal error is
4054 reported, not after.
4056 2001-04-27 Sean McNeil <sean@mcneil.com>
4058 * configure.tgt: Add arm-vxworks target.
4059 * scripttempl/armcoff.sc: Support .text or .data as a section name
4063 2001-04-13 J.T. Conklin <jtc@redback.com>
4065 * ld.texinfo: Document --fatal-warnings.
4068 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4069 warnings have been turned into errors.
4070 * lexsup.c (OPTION_WARN_FATAL): Define.
4071 (ld_options): Entry for --fatal-warnings.
4072 (parse_args): Handle OPTION_WARN_FATAL.
4073 * ld.h (ld_config_type): Add fatal_warnings field.
4075 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4077 * ldmain.c (main): Default to discard_sec_merge.
4078 * lexsup.c (OPTION_DISCARD_NONE): Define.
4079 (ld_options): Add --discard-none.
4080 (parse_args): Handle OPTION_DISCARD_NONE.
4081 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4082 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4083 all its input sections match.
4085 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4087 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4088 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4089 (eelf32ltsmip.c): New target.
4090 (eelf64btsmip.c): Likewise.
4091 (eelf64ltsmip.c): Likewise.
4092 * Makefile.in: Regenerated.
4094 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4096 (mips*-*-linux-gnu*): Likewise.
4098 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4100 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4102 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4105 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4107 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4108 correct value of __Stext here.
4109 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4112 * emulparams/crislinux.sh: Remove FIXME.
4114 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4116 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4117 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4119 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4121 * configure.tgt (cris-*-*): Change default emulation to criself.
4122 (cris-*-*aout*): New rule.
4124 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4126 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4127 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4129 2001-03-26 Andreas Jaeger <aj@suse.de>
4131 * ld.texinfo (Overview): Fix syntax in texi code.
4133 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4135 * ld.texinfo: Put @c man indications to generate the ld man page.
4136 When generating man, define all the variables. Define SEEALSO
4137 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4138 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4139 (ld.1): Generate from ld.texinfo.
4140 * Makefile.in: Regenerate.
4142 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4144 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4145 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4147 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4149 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4150 is an absolute path look only for this file and not along the path.
4152 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4154 * emultempl/elf32.em (OPTION_GROUP): New macro.
4155 Add new option Bgroup to longopts.
4156 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4157 (gld*_list_options): Add -Bgroup and -z defs.
4158 * ld.1: Document -Bgroup and -z defs.
4159 * ld.texinfo: Likewise.
4161 2001-03-07 Michael Meissner <meissner@redhat.com>
4163 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4164 with sections created by -fdata-sections.
4165 (.dynbss,.bss): Ditto.
4167 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4169 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4170 after_allocation_default, not gld..._before_allocation.
4172 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4174 * configure.in (BFD_VERSION): New.
4175 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4176 * configure: Regenerate.
4177 * Makefile.am: Run "make dep-am"
4178 * Makefile.in: Regenerate.
4180 2001-02-26 Timothy Wall <twall@cygnus.com>
4182 * emulparams/elf64_aix.sh: Add additional read-only sections;
4183 uncomment lines which are now required.
4185 2001-02-26 H.J. Lu <hjl@gnu.org>
4187 * ldlang.c (open_input_bfds): Set the bfd error handler so
4188 that problems can be caught whilst loading symbols.
4189 (record_bfd_errors): New function: Report BFD errors and mark
4190 the executable output as being invalid.
4192 2001-02-22 Timothy Wall <twall@cygnus.com>
4194 * configure.host: Add configuration for ia64-*-aix*.
4195 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4196 Add dependencies for eelf64_aix.c.
4197 * Makefile.in: Regenerate.
4198 * configure.tgt: Add ia64-*-aix* mapping.
4199 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4201 2001-02-20 H.J. Lu <hjl@gnu.org>
4203 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4204 false if we found the file.
4206 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4208 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4209 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4211 2001-02-18 lars brinkhoff <lars@nocrew.org>
4213 * Makefile.am: Add PDP-11 target.
4214 * configure.tgt: Likewise.
4215 * emulparams/pdp11.sh: New file.
4217 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4219 * configure.host: Add a generic FreeBSD configuration entry such that
4220 all [modern] FreeBSD systems on all platforms will look the same.
4222 2001-02-14 H.J. Lu <hjl@gnu.org>
4224 * configure.tgt: Remove mention of earmelf_linux26.
4226 2001-02-13 Richard Henderson <rth@redhat.com>
4228 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4230 2001-02-13 H.J. Lu <hjl@gnu.org>
4232 * ldexp.h (node_type): Add etree_provided.
4233 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4234 type to etree_provided if defined by PROVIDE. Allow updating
4236 (exp_print_tree): Handle etree_provided.
4237 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4240 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4242 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4243 .IA_64.unwind.* pattern to unwind table section and
4244 .IA_64.unwind_info* pattern to unwind info section.
4246 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4248 * Makefile.am: Add linux target for S/390.
4249 * Makefile.in: Likewise.
4250 * configure.host: Likewise.
4251 * configure.tgt: Likewise.
4252 * emulparams/elf64_s390.sh: New file.
4253 * emulparams/elf_s390.sh: New file.
4255 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4257 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4259 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4261 2001-02-06 Philip Blundell <philb@gnu.org>
4263 * Makefile.am: Remove mention of earmelf_linux26.
4264 * Makefile.in: Regenerate.
4266 2001-02-04 Philip Blundell <philb@gnu.org>
4268 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4269 * emulparams/armelf_linux26.sh: Delete.
4270 * configure.tgt: Remove mention of armelf_linux26 emulation.
4272 2001-02-01 Nick Clifton <nickc@redhat.com>
4274 * ld.1: Replace occurances of -oformat with --oformat.
4276 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4278 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4279 load_base is specified.
4281 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4283 * emultempl/elf32.em: Correct spelling in comments and listed
4286 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4288 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4289 default for the first section of a group of overlay sections.
4291 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4293 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4294 * Makefile.in: Regenerate.
4295 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4296 Check for null tool_dir.
4298 2001-01-16 Jim Wilson <wilson@redhat.com>
4300 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4301 and IA_64.unwind.info.
4303 2001-01-16 H.J. Lu <hjl@gnu.org>
4305 * ldlang.c (lang_check): Merge the private data only if the
4306 input file has contents.
4308 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4310 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4312 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4313 enabling search for libmilli. On a relocatable link, make .text
4315 (LDEMUL_AFTER_PARSE): Define.
4316 (hppaelf_finish): Correct spelling of relocatable in comments.
4318 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4319 rummage through the script for sections on the unique list.
4320 Correct length of strncmp for ".note".
4321 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4323 * ldlang.c (unique_section_list): New var.
4324 (unique_section_p): New function.
4325 (walk_wild_section): Don't match sections on unique_section_list.
4326 (lang_add_unique): New function.
4327 Correct spelling of relocatable in comments.
4329 * ldlang.h (struct unique_sections): Declare.
4330 (unique_section_list): Declare.
4331 (unique_section_p): Declare.
4332 (lang_add_unique): Declare.
4334 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4335 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4337 * ld.texinfo (--unique): Update.
4339 2001-01-13 Nick Clifton <nickc@redhat.com>
4341 * lexsup.c (parse_args): Remove spurious white space.
4343 2001-01-12 Nick Clifton <nickc@redhat.com>
4345 * lexsup.c (parse_args): Update copyright date.
4347 2001-01-12 Philip Blundell <pb@futuretv.com>
4349 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4351 2001-01-10 Kazu Hirata <kazu@hxi.com>
4353 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4354 * scripttempl/h8300h.sc: Fix formatting.
4355 * scripttempl/h8300s.sc: Likewise.
4356 * scripttempl/h8500.sc: Likewise.
4357 * scripttempl/h8500b.sc: Likewise.
4358 * scripttempl/h8500c.sc: Likewise.
4359 * scripttempl/h8500m.sc: Likewise.
4360 * scripttempl/h8500s.sc: Likewise.
4362 2000-01-07 David O'Brien <obrien@BSDi.com>
4364 * emultempl/elf32.em: Only perform Linux ld hints processing when
4367 2001-01-07 Philip Blundell <philb@gnu.org>
4369 * ld.texinfo (Bug Reporting): Update email address for reports.
4371 2000-12-31 Nick Clifton <nickc@redhat.com>
4373 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4374 options by checking for a return value of '?' not -1.
4376 2000-12-28 Nick Clifton <nickc@redhat.com>
4378 * lexsup.c (struct ld_option): Add new enum value:
4380 (ld_options[]): Change -omagic, -output and -oformat options
4381 to be EXACTLY_TWO_DASHES.
4382 (OUTPUT_COUNT): Use ARRAY_SIZE.
4383 (parse_args): Change parameter 'argc' to unsigned.
4384 Place EXACTLY_TWO_DASHES options into new really_longopts
4386 If getopt_long_only fails, try calling getopt_long using the
4387 really_longopts array.
4388 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4391 * ldlex.h: Fix prototype of parse_args.
4393 * ld.texinfo: Document that long options starting with 'o'
4394 must be preceeded by two dashes. Change example of a single
4395 dashed long option from -oformat to -trace-symbol.
4397 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4399 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4400 (longopts[]): New --no-default-excludes option.
4401 (gld_${EMULATION_NAME}_list_options): Document.
4402 (gld_${EMULATION_NAME}_parse_args): Handle.
4404 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4406 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4407 whitespace, it breaks the K&R C preprocessor.
4409 2000-12-11 DJ Delorie <dj@redhat.com>
4411 * ld.texinfo: Add notes about --whole-archive and gcc.
4413 2000-11-18 Fred Fish <fnf@be.com>
4415 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4416 (ld_options): Entry for --allow-shlib-undefined.
4417 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4418 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4420 * ld.texinfo: Document new command line switch.
4422 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4424 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4425 .fixup is actually read/write.
4426 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4427 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4428 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4430 2000-12-11 Jan Hubicka <jh@suse.cz>
4432 * NEWS: Add note about x86_64 architecture.
4434 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4436 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4437 Set DWARF2 sections to a VMA of zero.
4439 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4441 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4443 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4444 (sparc*-*-rtems*): Switched from a.out to ELF.
4446 2000-11-30 Jan Hubicka <jh@suse.cz>
4448 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4449 (eelf_x86_64.c): New.
4450 * Makefile.in: Regenerate.
4451 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4452 * emulparams/elf_x86_64.sh: New.
4454 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4456 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4457 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4459 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4460 merging non-a.out sections into CONSTRUCTING.
4462 2000-11-28 Nick Clifton <nickc@redhat.com>
4464 * ld.1 (COPYING): Mention that the GNU Free Documentation
4465 License is present in the sources, but not the output, and
4466 also available from the GNU website.
4467 (GNU Free Documentation License): Comment out this section.
4469 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4471 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4474 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4476 * ld.1: Remove old date so it does not give the impression the manpage
4479 2000-11-24 Nick Clifton <nickc@redhat.com>
4481 * configure.tgt (xscale-coff): Add target.
4482 (xscale-elf): Add target.
4484 2000-11-24 Fred Fish <fnf@be.com>
4486 * ldmain.c (main): Remove redundant init of config.make_executable
4489 2000-11-15 Richard Henderson <rth@redhat.com>
4491 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4493 2000-11-14 Kazu Hirata <kazu@hxi.com>
4495 * scripttempl/h8300.sc: Fix formatting.
4496 * scripttempl/h8300h.sc: Likewise.
4497 * scripttempl/h8300s.sc: Likewise.
4499 2000-11-14 Denis Chertykov <denisc@overta.ru>
4501 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4503 2000-11-09 Philip Blundell <pb@futuretv.com>
4505 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4506 around orphan sections whose names can be represented in C.
4508 2000-11-07 Jim Wilson <wilson@redhat.com>
4510 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4511 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4513 2000-11-06 Nick Clifton <nickc@redhat.com>
4515 * ld.texinfo: Add GNU Free Documentation License.
4516 * ldint.texinfo: Add GNU Free Documentation License.
4517 * ld.1: Add GNU Free Documentation License.
4519 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4521 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4522 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4524 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4525 Move 2000-11-02 Makefile.in changes to this file.
4526 * Makefile.in: Regenerate.
4528 2000-11-03 Nick Clifton <nickc@redhat.com>
4530 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4531 constructors and destructors.
4532 * scripttempl/h8300h.sc: Ditto.
4533 * scripttempl/h8300s.sc: Ditto.
4534 * scripttempl/h8500.sc: Ditto.
4535 * scripttempl/h8500b.sc: Ditto.
4536 * scripttempl/h8500c.sc: Ditto.
4537 * scripttempl/h8500m.sc: Ditto.
4538 * scripttempl/h8500s.sc: Ditto.
4539 * scripttempl/v850.sc: Ditto.
4540 * scripttempl/w65.sc: Ditto.
4541 * scripttempl/z8000.sc: Ditto.
4543 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4545 * Makefile.in (e_i386_chaos.c): New rule.
4546 (ALL_EMULATIONS): Added e_i386_chaos.o.
4547 * emulparams/elf_i386_chaos.sh: New file.
4548 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4550 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4552 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4553 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4554 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4555 library path suffix.
4556 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4558 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4560 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4561 for consecutive sections.
4563 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4565 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4567 * ld.texinfo: Added notes about this new option.
4569 2000-10-16 Nick Clifton <nickc@redhat.com>
4571 * emultempl/pe.em (_after_open): Add tests of return values from
4572 bfd functions. Emit appropriate error messages if necessary.
4574 2000-10-13 Nick Clifton <nickc@redhat.com>
4576 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4577 local variables - they are not used, but leave in the call to
4578 bfd_canonicalize_symtab.
4579 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4580 pe_dll_search_prefix.
4582 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4584 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4585 (longopts): New --dll-search-prefix option.
4586 (gld_${EMULATION_NAME}_list_options): Document.
4587 (gld_${EMULATION_NAME}_parse_args): Handle.
4588 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4589 dynamically, search for a dll named '<prefix><basename>.dll'
4590 in preference to 'lib<basename>.dll' if --dll-search-prefix
4593 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4595 * ldlang.c (section_already_linked): Set kept_section instead of
4598 2000-10-10 Kazu Hirata <kazu@hxi.com>
4600 * deffile.h: Fix formatting.
4601 * lexsup.c: Likewise.
4604 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4606 * pe-dll.c (make_one): Do not generate code thunk for DATA
4608 (process_def_file): deduce DATA flag for auto-export sumbols.
4610 2000-10-09 Kazu Hirata <kazu@hxi.com>
4612 * ld.h: Fix formatting.
4613 * ldcref.c: Likewise.
4614 * ldctor.h: Likewise.
4615 * ldemul.c: Likewise.
4616 * ldemul.h: Likewise.
4617 * ldexp.c: Likewise.
4618 * ldexp.h: Likewise.
4619 * ldfile.c: Likewise.
4620 * ldfile.h: Likewise.
4621 * ldlang.c: Likewise.
4622 * ldlang.h: Likewise.
4623 * ldmain.c: Likewise.
4624 * pe-dll.c: Likewise.
4626 * pe-dll.c: Revert some formatting fixes.
4628 2000-10-08 Kazu Hirata <kazu@hxi.com>
4630 * pe-dll.c: Fix formatting.
4632 2000-10-05 Kazu Hirata <kazu@hxi.com>
4634 * ldlang.c: Fix formatting.
4636 2000-10-03 DJ Delorie <dj@redhat.com>
4638 * pe-dll.c (fill_edata): initialize entire block
4639 (make_one): fill in correct section.
4641 2000-10-03 Kazu Hirata <kazu@hxi.com>
4643 * ldexp.c: Fix formatting.
4645 2000-10-02 DJ Delorie <dj@redhat.com>
4647 * emultempl/pe.em (gld_*_after_open): detect case where there two
4648 import libraries for same dll; rename one to ensure proper link
4651 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4653 (generate_edata): fix typo
4655 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4657 * scripttempl/crisaout.sc (ENTRY): Now __start.
4658 (.text): Add default setting for __start.
4659 Remove CONSTRUCTORS handling.
4660 (/DISCARD/): Add .gnu.warning.*.
4661 * emulparams/crislinux.sh (ENTRY): Now __start.
4662 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4663 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4664 (ENTRY): Now __start.
4665 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4666 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4668 2000-09-29 Kazu Hirata <kazu@hxi.com>
4670 * deffile.h: Fix formatting.
4672 * ldcref.c: Likewise.
4673 * ldctor.c: Likewise.
4674 * ldctor.h: Likewise.
4675 * ldemul.c: Likewise.
4676 * ldemul.h: Likewise.
4677 * ldexp.c: Likewise.
4678 * ldexp.h: Likewise.
4679 * ldfile.c: Likewise.
4680 * ldfile.h: Likewise.
4681 * ldlang.c: Likewise.
4682 * ldlang.h: Likewise.
4683 * lexsup.c: Likewise.
4685 * pe-dll.c: Likewise.
4687 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4689 * pe-dll.c (process_def_file): Uninitialized data wasn't
4690 exported with --export-all-symbols switch.
4692 2000-09-28 DJ Delorie <dj@redhat.com>
4694 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4695 noname work properly.
4697 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4699 * ld.texinfo (HPPA ELF32): New section.
4701 * emultempl/hppaelf.em (group_size): New.
4702 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4703 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4704 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4705 options to prevent abbreviations matching.
4706 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4707 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4709 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4711 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4712 on the m68*-*-elf target. Make it support COFF input objects.
4714 2000-09-21 Kazu Hirata <kazu@hxi.com>
4716 * ldmain.c: Fix formatting.
4717 * ldmisc.c: Likewise.
4718 * ldver.c: Likewise.
4719 * ldwrite.c: Likewise.
4721 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4723 * ldwrite.c (clone_section): Silence gcc warnings.
4725 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4727 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4728 out of memory failure.
4730 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4731 (clone_section): Handle out of memory failures. Rename var to
4732 avoid c++ reserved word.
4734 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4736 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4737 stub_name param to stub_sec_name.
4738 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4740 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4742 * emultempl/m68kelf.em: New file.
4743 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4744 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4745 * Makefile.in: Regenerate.
4747 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4749 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4752 2000-09-13 Nick Clifton <nickc@redhat.com>
4754 * ldmain.c (multiple_definition): Disable relaxation if
4755 multiple symbol definitions are encountered - otherwise the
4756 linker could abort with an assertion failure.
4758 2000-09-10 Nick Clifton <nickc@redhat.com>
4760 * mri.c: Fix formatting.
4762 2000-09-07 H.J. Lu <hjl@gnu.org>
4764 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4765 * configure: Rebuild.
4767 2000-09-07 H.J. Lu <hjl@gnu.org>
4769 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4770 * Makefile.in: Rebuild.
4772 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4774 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4775 broken list handling. Create __start_SECNAME and __stop_SECNAME
4776 when no place-holder. Add some comments. Test both SEC_CODE and
4777 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4778 Handle case where no output section statement created.
4780 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4782 * configure.tgt (sh-*-linux*): Added.
4783 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4784 * Makefile.in: Rebuilt.
4785 * emulparams/shelf_linux.sh: New file.
4786 * emulparams/shlelf_linux.sh: New file.
4788 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4790 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4791 try shuffling sections when the orphan happens to be the place
4792 holder. Keep count of unique section names generated so we speed
4793 the search for a new name.
4795 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4797 * configure: Rebuilt with new libtool.m4.
4799 2000-09-05 Nick Clifton <nickc@redhat.com>
4801 * Makefile.in: Regenerate.
4802 * aclocal.m4: Regenerate.
4803 * configure: Regenerate.
4804 * config.in: Regenerate.
4805 * po/ld.pot: Regenerate.
4807 * ldint.texinfo: Remove CVS revision marker - it foils local
4810 * emultempl/ticoff.em: Remove extraneous comma.
4812 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4814 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4815 to stub section flags.
4816 (hppa_for_each_input_file_wrapper): New.
4817 (hppa_lang_for_each_input_file): New.
4818 (lang_for_each_input_file): Define to call above.
4819 (multi_subspace): New.
4820 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4821 (PARSE_AND_LIST_PROLOGUE): Define.
4822 (PARSE_AND_LIST_LONGOPTS): Define.
4823 (PARSE_AND_LIST_OPTIONS): Define.
4824 (PARSE_AND_LIST_ARGS_CASES): Define.
4825 (hppaelf_finish): Call elf32_hppa_set_gp.
4826 (hppaelf_set_output_arch): Remove.
4827 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4829 * emulparams/hppalinux.sh (ELFSIZE): Define.
4831 (OTHER_READONLY_SECTIONS): Define.
4833 (GENERATE_SHLIB_SCRIPT): Define.
4835 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4836 to const throughout. Change `void *' to `PTR' throughout.
4837 (lang_memory_default): Function is local to file, add `static'.
4839 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4840 (ehppalinux.c): Likewise.
4841 (earmelf.c): Likewise.
4842 (earmelf_linux.c): Likewise.
4843 (earmelf_linux26.c): Likewise.
4844 * Makefile.in: Regenerate.
4846 * ld.h (ld_config_type): Add unique_orphan_sections.
4847 * lexsup.c (OPTION_UNIQUE): Define.
4848 (ld_options): Add "--unique".
4849 (parse_args): Handle it.
4850 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4851 search for an existing output section if unique_orphan_sections is
4852 set. Make use of bfd_get_unique_section_name rather than
4853 duplicating code here.
4854 * ld.texinfo: Describe --unique.
4856 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4857 optional arg to split-by-file.
4858 (parse_args): Handle them.
4859 * ld.texinfo: Update description of these options.
4860 * ldwrite.c (clone_section): Pass in the section name. Replace
4861 local code with bfd_get_unique_section_name.
4862 (split_sections): Tidy code and comments. Use a list traversal
4863 more appropriate to the list construction. Handle cooked section
4864 sizes. Split when split_by_reloc reached rather than exceeded.
4865 Track section size and split when split_by_file reached. Fix
4866 link_order_tail (even though it's not used).
4867 (ldwrite): Modify condition for calling split_sections to suit
4868 changed split_by_reloc and split_by_file.
4869 * ldmain.c (main): Init config.split_by_reloc and
4870 config.split_by_file to -1.
4871 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4872 Change split_by_file to bfd_size_type.
4874 2000-09-02 Nick Clifton <nickc@redhat.com>
4876 * configure.in: Increase version number to 2.10.91.
4877 * NEWS: Mention new ability to support removal of duplicate DWARF2
4879 * configure: Regenerate.
4880 * aclocal.m4: Regenerate.
4881 * config.in: Regenerate.
4883 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4885 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4887 * scripttempl/elf32avr.sc: Ditto.
4888 * scripttempl/elfd10v.sc: Ditto.
4889 * scripttempl/elfd30v.sc: Ditto.
4890 * scripttempl/elfi370.sc: Ditto.
4891 * scripttempl/elfm68hc11.sc: Ditto.
4892 * scripttempl/elfm68hc12.sc: Ditto.
4893 * scripttempl/elfi386beos.sc: Ditto.
4894 * scripttempl/v850.sc: Ditto.
4896 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4898 * acinclude.m4: Include libtool and gettext macros from the
4900 * aclocal.m4, configure: Rebuilt.
4902 2000-08-25 Nick Clifton <nickc@redhat.com>
4904 * ldlang.c (open_output): When choosing the target for a
4905 particular endianness, do nothing if the target is not
4908 2000-08-25 H.J. Lu <hjl@gnu.org>
4910 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4911 check -rpath nor LD_RUN_PATH for cross link.
4912 * ld.texinfo: Document the change.
4914 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4916 * NEWS: Mention support for CRIS.
4918 2000-08-23 H.J. Lu <hjl@gnu.org>
4920 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4921 the current runpath list from bfd_elf_get_runpath_list ()
4924 2000-08-22 H.J. Lu <hjl@gnu.org>
4926 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4927 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4928 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4929 trace_file_tries is non-zero.
4930 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4931 if trace_file_tries is non-zero.
4933 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4936 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4938 * NEWS: Mention i860 support.
4940 2000-08-14 Andreas Schwab <schwab@suse.de>
4942 * scripttempl/elf.sc: Fix last change to use correct comment
4945 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4947 * scripttempl/elf.sc: Add a comment giving the correspondence
4948 between sections, per-datum sections, and linkonce sections. Make
4949 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4952 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4954 * emulparams/elf32_i860.sh: New file.
4955 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4956 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4957 (eelf32_i860.c): New rule.
4958 * Makefile.in: Regenerate.
4960 2000-08-10 Nick Clifton <nickc@cygnus.com>
4962 * emulparams/mipspe.sh (ENTRY): Add definition.
4964 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4966 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4969 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4971 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4972 the final size of .bss section.
4973 * scripttempl/elfm68hc12.sc: Likewise.
4975 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4977 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4978 gld${EMULATION_NAME}_parse_args for consistency. Combine
4979 lastoptind and prevoptind vars, and keep track of last optind.
4980 (gld_${EMULATION_NAME}_list_options): Rename to
4981 gld${EMULATION_NAME}_list_options.
4983 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4985 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4986 (i586-sco-sysv5uw7.1.0).
4988 2000-07-27 H.J. Lu <hjl@gnu.org>
4990 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4991 (PARSE_AND_LIST_PROLOGUE): New.
4992 (PARSE_AND_LIST_LONGOPTS): Likewise.
4993 (PARSE_AND_LIST_OPTIONS): Likewise.
4994 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4995 (PARSE_AND_LIST_EPILOGUE): Likewise.
4997 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4999 * emultempl/armelf.em: Elide functions common to elf32.em,
5000 ie. most of the file.
5001 (arm_elf_after_open): New. Do arm specific things then call
5002 gld${EMULATION_NAME}_after_open.
5003 (arm_elf_before_allocation): New. Call
5004 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5005 (PARSE_AND_LIST_PROLOGUE): Define.
5006 (PARSE_AND_LIST_SHORTOPTS): Define.
5007 (PARSE_AND_LIST_LONGOPTS): Define.
5008 (PARSE_AND_LIST_OPTIONS): Define.
5009 (PARSE_AND_LIST_ARGS_CASES): Define.
5010 (LDEMUL_AFTER_OPEN): Define.
5011 (LDEMUL_BEFORE_ALLOCATION): Define.
5012 (LDEMUL_BEFORE_PARSE): Define.
5013 (LDEMUL_FINISH): Define.
5015 * emultempl/hppaelf.em: Similarly zap most of this file.
5016 (hppaelf_add_stub_section): Prototype.
5017 (hppaelf_layaout_sections_again): Prototype.
5018 (hook_in_stub): Prototype.
5019 (LDEMUL_SET_OUTPUT_ARCH): Define.
5020 (LDEMUL_FINISH): Define.
5021 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5023 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5024 (EXTRA_EM_FILE): New.
5025 * emulparams/armelf_linux.sh: Likewise.
5026 * emulparams/armelf_linux26.sh: Likewise.
5027 * emulparams/hppalinux.sh: Likewise.
5028 * emulparams/hppaelf.sh: Likewise.
5031 * emultempl/elf32.em: Fix formatting.
5032 (EXTRA_EM_FILE): Source it.
5033 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5034 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5035 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5036 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5037 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5038 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5039 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5040 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5041 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5042 allow functions in this file to be overridden.
5043 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5045 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5047 * emultempl/elf32.em: Reorganize file.
5049 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5051 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5052 specific option to fit 64-bit executable in the lower
5053 31-bit address range. This is done by changing start
5054 address of .interp (the very first section of executable)
5055 and then setting EF_ALPHA_32BIT elf header flag.
5057 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5059 * emultempl/m68kcoff.em: New file.
5060 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5061 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5063 * Makefile.in: Regenerate.
5065 2000-07-20 H.J. Lu <hjl@gnu.org>
5067 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5068 and "disable-new-dtags" to stop getopt from treating -d/-e as
5069 abbreviations for these options.
5071 2000-07-20 H.J. Lu <hjl@gnu.org>
5073 * ld.texinfo: Add documentation for --disable-new-dtags and
5076 * ldmain.c (main): Initialize link_info.new_dtags to false.
5078 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5079 --disable-new-dtags and --enable-new-dtags.
5080 (gld_${EMULATION_NAME}_list_options): Likewise.
5082 2000-07-05 Kenneth Block <krblock@computer.org>
5084 * lexsup.c: Add optional style to demangle switch
5085 * ld.texinfo: Document optional style to demangle switch.
5087 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5089 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5091 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5092 Regenerate dependencies.
5093 * Makefile.in: Rebuild.
5094 * configure.tgt (cris-*-*): New target.
5095 * emulparams/crisaout.sh, emulparams/criself.sh,
5096 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5097 * po/POTFILES.in, po/ld.pot: Regenerate.
5099 2000-07-20 H.J. Lu <hjl@gnu.org>
5101 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5102 Print out ignored -z options.
5104 2000-07-19 H.J. Lu <hjl@gnu.org>
5106 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5107 (PARSE_AND_LIST_PROLOGUE): New.
5108 (PARSE_AND_LIST_LONGOPTS): Likewise.
5109 (PARSE_AND_LIST_OPTIONS): Likewise.
5110 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5112 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5114 * lexsup.c (ld_options): Comment out 'z'.
5115 (parse_args): Likewise.
5117 * emultempl/elf32.em: Include "elf/common.h".
5118 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5120 (gld_${EMULATION_NAME}_list_options): Likewise.
5122 * ld.texinfo: Add documentation for the recognized -z options.
5124 2000-07-19 H.J. Lu <hjl@gnu.org>
5126 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5127 bfd_elf_set_dt_needed_soname ().
5129 2000-07-18 DJ Delorie <dj@cygnus.com>
5131 * pe-dll.c (pe_dll_id_target): check object target name also
5133 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5135 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5136 ${INIT_END} if relocating.
5137 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5139 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5141 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5142 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5143 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5144 errors introduced by the old dynamic lib search order.
5146 2000-07-17 DJ Delorie <dj@cygnus.com>
5148 * pe-dll.c (process_def_file): auto-export data items also
5149 (pe_process_import_defs): also see if _imp_ form needed
5151 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5153 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5154 for dll import libraries
5156 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5158 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5159 gcc 2.95.2 and later.
5161 2000-07-11 Kazu Hirata <kazu@hxi.com>
5163 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5166 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5168 * ldemul.h (struct lang_input_statement_struct): Remove forward
5170 (struct search_dirs): Likewise.
5171 * ldfile.h (struct lang_input_statement_struct): Likewise.
5172 Protect file from multiple inclusion.
5173 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5174 declaration from macro to file scope.
5176 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5177 * ldgram.y: Likewise here.
5178 * ldlang.c: And here.
5179 * ldmain.c: And here.
5180 * mpw-elfmips.c: And here.
5181 * mpw-eppcmac.c: And here.
5182 * emultempl/aix.em: And here.
5183 * emultempl/armcoff.em: And here.
5184 * emultempl/armelf.em: And here.
5185 * emultempl/armelf_oabi.em: And here.
5186 * emultempl/beos.em: And here.
5187 * emultempl/elf32.em: And here.
5188 * emultempl/hppaelf.em: And here.
5189 * emultempl/linux.em: And here.
5190 * emultempl/lnk960.em: And here.
5191 * emultempl/pe.em: And here.
5192 * emultempl/sunos.em: And here.
5193 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5194 * mpw-idtmips.c: Ditto.
5195 * emultempl/generic.em: Ditto.
5196 * emultempl/gld960.em: Ditto.
5197 * emultempl/gld960c.em: Ditto.
5198 * emultempl/mipsecoff.em: Ditto.
5199 * emultempl/ticoff.em: Ditto.
5200 * emultempl/vanilla.em: Ditto.
5202 * pe-dll.c: Include ldfile.h
5203 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5205 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5206 arguments to bfd_elf32_size_dynamic_sections call.
5207 (gldelf32ebmip_place_orphan): Add missing arguments to
5208 lang_leave_output_section_statement call.
5210 2000-07-10 H.J. Lu <hjl@gnu.org>
5212 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5214 (strhash): Likewise.
5215 (compute_dll_image_base): Likewise.
5216 (pe_undef_found_sym): Likewise.
5217 (pe_undef_cdecl_match): Likewise.
5218 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5219 argument "arch" with ATTRIBUTE_UNUSED.
5221 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5223 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5225 From Ryan Bradetich <rbradetich@uswest.net>
5226 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5228 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5230 Changes to create multiple linker stubs, positioned immediately
5231 before the section where they are required.
5232 * emultempl/hppaelf.em: Include elf32-hppa.h.
5233 (stub_sec, file_chain): Delete.
5234 (hppaelf_create_output_section_statements): Don't make a stub
5236 (hook_stub_info): New struct.
5237 (hook_in_stub): New function.
5238 (hppaelf_add_stub_section): New function.
5239 (hppaelf_finish): Do nothing for relocateable links. Modify the
5240 call to elf32_hppa_size_stubs. Move code for updating section
5242 (hppaelf_layaout_sections_again): ..to here, a new function.
5244 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5245 broken list handling. Pass in a pointer to the list.
5246 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5248 (hppaelf_before_parse): Prototype.
5249 (hppaelf_set_output_arch): Prototype.
5250 (hppaelf_create_output_section_statements): Prototype.
5251 (hppaelf_delete_padding_statements): Prototype.
5252 (hppaelf_finish): Prototype.
5255 * emultempl/hppaelf.em: Include ctype.h.
5256 (struct orphan_save): New.
5257 (gld${EMULATION_NAME}_place_orphan): New.
5258 (output_rel_find): New.
5259 (hppaelf_get_script): Update from elf32.em.
5260 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5261 Change emulation_name field to "${EMULATION_NAME}". Add
5262 gld${EMULATION_NAME}_place_orphan.
5264 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5265 ehppalinux.o, sort it. Regenerate dependencies.
5266 (ehppalinux.c): Depend on hppaelf.em
5267 * Makefile.in: Regenerate.
5269 * configure.tgt: targ_emul=hppalinux for hppa*linux
5271 * emulparams/hppalinux.sh: New.
5272 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5274 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5276 * lexsup.c (parse_args): Copy section name.
5278 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5280 * emultempl/pe.em: institute the following search order for
5281 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5282 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5283 static lib (libfoo.a) if none of the above are found.
5285 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5287 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5288 (longopts): New --{enable,disable}-auto-image-base options.
5289 (gld_${EMULATION_NAME}_list_options): Document.
5290 (gld_${EMULATION_NAME}_parse): Handle.
5291 (strhash): New static function.
5292 (compute_dll_image_base): New static function.
5293 (gld_${EMULATION_NAME}_set_symbols): Use.
5295 2000-07-05 DJ Delorie <dj@redhat.com>
5299 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5301 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5302 * emulparams/elf32btsmip.sh: New file.
5303 * Makefile.am: Add traditional mips target.
5304 * Makefile.in: Rebuild.
5306 2000-07-01 H.J. Lu <hjl@gnu.org>
5308 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5309 automake to use YLWRAP.
5310 * Makefile.in: Rebuild.
5312 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5314 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5315 (CLEANFILES): Add DEPA.
5316 * Makefile.in: Regenerate.
5318 2000-06-30 Timothy Wall <twall@ppc>
5320 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5321 the page in the upper octet of the address.
5323 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5325 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5327 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5329 * NEWS: arm-elf does --gc-sections too.
5331 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5333 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5335 * Makefile.in: Regenerate.
5337 2000-06-21 H.J. Lu <hjl@gnu.org>
5339 * Makefile.am: Rebuild dependency.
5340 * Makefile.in: Rebuild.
5342 2000-06-20 H.J. Lu <hjl@gnu.org>
5344 * Makefile.am: Rebuild dependency.
5345 * Makefile.in: Rebuild.
5347 2000-06-20 Timothy Wall <twall@cygnus.com>
5349 * scripttempl/tic54xcoff.sc: New.
5350 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5351 * gen-doc.texi: Add flag for TI COFF.
5352 * ld.texinfo: Add documentation for TI COFF handling switches.
5353 * emultempl/ticoff.em: New. TI COFF handling.
5354 * configure.tgt: Add tic54x target.
5355 * Makefile.am: Add tic54x target.
5356 * Makefile.in: Ditto.
5358 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5360 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5361 checking for backslashes.
5363 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5365 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5367 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5369 * NEWS: Update list of targets supporting --gc-sections.
5371 * scripttempl/elf.sc: KEEP .eh_frame contents.
5372 * scripttempl/elfd30v.sc: Same here.
5374 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5376 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5378 * Makefile.in: Rebuild.
5379 * configure.tgt: Recognize m68hc12 and m68hc11.
5380 * scripttempl/elfm68hc12.sc: New file.
5381 * emulparams/m68hc12elfb: New emulation.
5382 * emulparams/m68hc12elf: New emulation.
5383 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5384 (includes a memory.x script to define the ROM and RAM banks).
5385 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5386 New configuration files for support of Motorola 68hc11
5388 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5390 * ldmain.c (main): Only change SEC_READONLY for final link.
5392 2000-06-13 H.J. Lu <hjl@gnu.org>
5394 * configure: Regenerate.
5396 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5398 * configure.in (VERSION): Update to show this is the CVS mainline.
5400 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5402 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5403 input objects to be ECOFF.
5404 (check_sections): einfo takes %B, not %P, to print a BFD name.
5406 2000-06-05 Michael Matz <matz@ifh.de>
5408 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5411 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5413 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5415 * emulparams/avr1200.sh (STACK): Define as 0.
5416 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5417 * emulparams/avr4433.sh (STACK): Likewise.
5418 * emulparams/avr44x4.sh (STACK): Likewise.
5419 * emulparams/avr85xx.sh (STACK): Likewise.
5420 * emulparams/avrmega103.sh (STACK): Likewise.
5421 * emulparams/avrmega161.sh (STACK): Likewise.
5422 * emulparams/avrmega603.sh (STACK): Likewise.
5423 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5424 (__stack): Define from ${STACK} for main().
5426 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5428 * Makefile.am: Update dependencies with "make dep-am"
5429 * Makefile.in: Regenerate.
5431 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5433 * ldmain.c: Include filenames.h.
5434 (set_scripts_dir): Support backslashes in program name.
5436 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5438 * ldmain.c (main): When deciding if ".text" section should be
5439 read-only, don't forget to reset SEC_READONLY because it
5440 could be already set.
5442 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5444 * ld.1: Add documentation for new command line option:
5445 --section-start <sectionname>=<sectionorg>
5446 This is a generic version of -Ttext etc. which accepts
5447 any section name as a parameter instead of just text/data/
5449 * ld.texinfo: More docs.
5451 * lexsup.c: (parse_args): Recognize new command line option.
5452 (ld_options): Add new option.
5454 2000-05-18 H.J. Lu <hjl@gnu.org>
5456 * lexsup.c (parse_args): `i' == `r', not `q'.
5458 2000-05-18 Jeffrey A Law (law@cygnus.com)
5460 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5462 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5463 Rick Gorton <gorton@scrugs.lkg.dec.com>
5465 Add support for '-q' == '--emit-relocs' switch.
5466 * ldmain.c (main): Default to false.
5467 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5468 * NEWS: Describe the emitrelocations switch.
5469 * ld.texinfo: Describe the emitrelocations switch.
5471 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5473 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5474 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5475 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5478 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5480 * lexsup.c (parse_args): Update the year in the copyright notice.
5482 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5484 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5485 Replace defines with those from intl/libgettext.h to quieten gcc
5488 2000-05-10 H.J. Lu <hjl@gnu.org>
5490 * ldlang.c (open_input_bfds): Don't load the same file within
5491 a group again if the whole archive has been loaded already.
5493 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5495 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5496 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5499 2000-05-01 Jim Wilson <wilson@cygnus.com>
5501 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5503 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5504 host "ia64-*-linux-gnu*".
5506 2000-04-29 Andreas Jaeger <aj@suse.de>
5508 * ld.h: Correctly check GCC version.
5510 2000-04-25 Jeffrey A Law (law@cygnus.com)
5512 * Makefile.am: Add PA64 support. Add missing dependencies for
5514 * Makefile.in: Rebuilt.
5515 * configure.tgt: Add PA64 support (currently disabled).
5517 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5519 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5520 (output_rel_find): New function.
5521 (hold_section, hold_use): Delete.
5522 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5523 hold_interp): Make local to place_orphan.
5524 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5525 rather than place_section to find possible previous use of orphan.
5526 Similarly find the place-holder output sections. Use returned
5527 value from lang_enter_output_section_statement rather than calling
5528 lang_output_section_statement_lookup.
5529 * emultempl/armelf.em: Same here.
5530 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5532 * ldlang.c (lang_enter_output_section_statement): Return output
5534 * ldlang.h (lang_enter_output_section_statement): Change
5537 * ldlang.h (lang_output_section_statement): Export it.
5538 * ldlang.c (lang_output_section_statement): Ditto.
5540 2000-04-24 Nick Clifton <nickc@cygnus.com>
5542 * ld.texinfo (Output Section Data): Add note that section data
5543 commands cannot appear outside of section directives.
5545 2000-04-2 Matthew Green <mrg@cygnus.com>
5547 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5549 2000-04-21 Richard Henderson <rth@cygnus.com>
5550 David Mosberger <davidm@hpl.hp.com>
5552 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5553 (eelf64_ia64.c): New rule.
5554 * Makefile.in: Rebuild.
5555 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5556 * emulparams/elf64_ia64.sh: New file.
5558 2000-04-21 Richard Henderson <rth@cygnus.com>
5560 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5562 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5564 * dep-in.sed: Match space at start of file name, not at end.
5566 2000-04-18 H.J. Lu <hjl@gnu.org>
5568 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5569 lang_leave_output_section_statement () after calling
5570 lang_enter_output_section_statement ().
5571 * emultempl/armelf.em: Likewise.
5573 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5575 * emultempl/elf32.em (struct orphan_save): Add section field.
5576 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5577 better order, and place first orphan section as we did before the
5578 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5579 Don't call make_bfd_section here, let wild_doit do the job for us.
5580 Don't build a statement list when we'll only throw it away.
5581 * emultempl/armelf.em: Ditto.
5582 * emultempl/pe.em: Similarly.
5584 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5586 * scripttempl/elfppc.sc: Remove.
5587 * emulparams/elf32ppc.sh: Use elf.sc.
5588 * emulparams/elf32lppc.sh: Use elf.sc.
5589 * emulparams/elf32ppclinux.sh: Use elf.sc.
5590 * emulparams/elf32ppcsim.sh: New file.
5591 * emulparams/elf32lppcsim.sh: New file.
5592 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5593 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5594 * Makefile.in: Regenerate.
5595 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5597 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5599 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5600 ~SEC_ALLOC sections too. Init start address of debug sections.
5601 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5602 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5603 Also set all relocateable section start addresses.
5605 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5607 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5608 Add new BSS_PLT variable for when .plt need not be contained in
5609 the file. Move _etext so that it is also after .fini, and provide
5610 both etext and _etext with a leading underscore. Mark the start
5613 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5615 * emultempl/elf32.em (struct orphan_save): New.
5616 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5617 hold_interp): Make them struct orphan_save.
5618 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5619 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5620 the end of the relevant section list. Also add associated section
5621 statements to the end of any previous orphan statements.
5622 * emultempl/armelf.em: Similarly.
5623 * emultempl/pe.em: Similarly.
5625 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5627 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5629 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5631 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5632 --enable-build-warnings option.
5633 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5634 * Makefile.in, configure: Re-generate.
5636 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5638 * po/ld.pot: Regenerate.
5640 * lexsup.c (help): Restore translated part of bug string.
5642 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5643 (DEP): Quote when passing vars to sub-make. Add warning message
5645 (DEP1): Rewrite for "gcc -MM".
5646 (CLEANFILES): Add DEP2.
5647 Update dependencies.
5648 * Makefile.in: Regenerate.
5650 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5652 * ld.h: #include "bin-bugs.h"
5653 * lexsup.c (help): Use REPORT_BUGS_TO.
5655 2000-03-27 Denis Chertykov <denisc@overta.ru>
5657 * configure.tgt (avr-*-*): New target support.
5658 * Makefile.am: Likewise.
5659 * scripttempl/elf32avr.sc: New script file.
5660 * emulparams/avr1200.sh: New file.
5661 * emulparams/avr23xx.sh: New file.
5662 * emulparams/avr4433.sh New file.
5663 * emulparams/avr44x4.sh New file.
5664 * emulparams/avr85xx.sh New file.
5665 * emulparams/avrmega103.sh New file.
5666 * emulparams/avrmega161.sh New file.
5667 * emulparams/avrmega603.sh New file.
5668 * Makefile.in: Regenerate.
5670 2000-03-09 Andreas Jaeger <aj@suse.de>
5672 * Makefile.am (check-DEJAGNU): Also unset LANG.
5673 * Makefile.in: Rebuild.
5675 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5677 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5680 2000-03-02 H.J. Lu <hjl@gnu.org>
5682 * emulparams/elf32mcore.sh: Include "getopt.h".
5684 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5686 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5688 2000-03-01 H.J. Lu <hjl@gnu.org>
5690 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5691 * emulparams/shpe.sh: Likewise.
5693 2000-03-01 Nick Clifton <nickc@cygnus.com>
5695 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5696 to unused parameters.
5698 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5699 functions only used by DLL code.
5700 (_place_orphan): Initialise 'dollar'.
5702 2000-03-01 H.J. Lu <hjl@gnu.org>
5704 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5705 indicate if the undefined symbol is a fatal error or not.
5706 Don't delete the output file if "fatal" is false.
5708 2000-02-29 H.J. Lu <hjl@gnu.org>
5710 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5711 Set LC_COLLATE and LC_ALL to null and export them. It is for
5712 sort which expects the C locale.
5713 Add $(LIBS) to all $(HOSTING_LIBS).
5714 * Makefile.in: Rebuild.
5716 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5718 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5719 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5720 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5721 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5722 find_potential_libraries.
5724 2000-02-28 Jim Blandy <jimb@redhat.com>
5726 * ldgram.y (exclude_name_list): Don't require a comma to separate
5727 list entries; the lexer considers commas to be valid part of a
5728 filename, so in something like `foo, bar' the comma is considered
5729 part of the first filename, `foo,'.
5730 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5732 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5734 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5735 host "i[3456]86-*-freebsdelf*".
5737 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5739 * scripttempl/i386go32.sc: Move misplaced semicolons.
5741 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5743 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5744 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5745 (eelf64hppa.c, ehppaelf.c): Remove targets.
5746 * Makefile.in: Rebuild.
5748 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5750 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5751 GNU/Linux/sparc, but keep the default as 32.
5753 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5754 it default if sparcv9 or sparc64.
5756 2000-02-24 Nick Clifton <nickc@cygnus.com>
5758 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5759 * Makefile.in: Regenerate.
5760 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5762 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5763 find_potential_libraries.
5764 * ldemul.c (ldemul_find_potential_libraries): New function.
5766 * ldfile.c (ldfile_open_file_search): Allow function to be
5768 (ldfile_open_file): Call ldemul_find_potential_libraries.
5769 * ldfile.h: Add prototype for ldfile_open_file_search.
5771 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5773 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5774 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5776 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5777 (gld_X_find_potential_libraries): New function. Search for
5778 libraries called "*.lib".
5780 * scripttempl/pe.sc: Add .pdata section.
5782 2000-02-23 Richard Henderson <rth@cygnus.com>
5784 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5785 Add and use memory regions.
5787 2000-02-23 Linas Vepstas (linas@linas.org)
5789 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5791 * Makefile.am: Add support for Linux/IBM 370.
5792 * configure.tgt: Likewise.
5794 * Makefile.in: Regenerate.
5796 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5798 * ldlang.c (print_input_section, print_data_statement,
5799 print_reloc_statement, print_padding_statement, insert_pad,
5800 size_input_section, lang_check_section_addresses,
5801 lang_size_sections, lang_do_assignments, lang_set_startof,
5802 lang_one_common): Change `opb' to unsigned.
5803 (lang_do_assignments): Also change `size' to unsigned.
5805 2000-02-16 Richard Henderson <rth@cygnus.com>
5807 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5809 2000-02-16 Timothy Wall <twall@cygnus.com>
5811 * mri.c (mri_draw_tree): Add default LMA region argument to call
5812 to lang_leave_output_section_statement.
5813 * ldlang.h: Update prototypes with LMA region arguments.
5814 * ldlang.c (lang_size_sections): Encapsulate region bounds
5815 checking in os_check_region call.
5816 (os_check_region): New function.
5817 (lang_output_section_statement_lookup): Initialize lma_region.
5818 (lang_leave_output_section_statement): Add LMA region argument.
5819 (lang_leave_overlay): Ditto.
5820 * ldgram.y: Handle LMA region syntax.
5821 * ld.texinfo (Output Section Description): Describe LMA region usage.
5822 * emultempl/armelf.em (gld$place_orphan): Add default value for
5823 lma region in call to lang_leave_output_section_statement.
5824 * emultempl/elf32.em (gld$place_orphan): Add default value for
5825 lma region in call to lang_leave_output_section_statement.
5826 * emultempl/pe.em (gld$place_orphan): Add default value for
5827 lma region in call to lang_leave_output_section_statement.
5830 2000-02-04 Timothy Wall <twall@redhat.com>
5832 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5833 octets when calculating section end addresses.
5835 2000-02-04 Timothy Wall <twall@redhat.com>
5837 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5839 2000-02-03 Timothy Wall <twall@redhat.com>
5841 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5843 * ldlang.c (print_input_section, print_data_statement,
5844 print_reloc_statement, print_padding_statement): Print target
5845 address values and section sizes as bytes, not octets.
5846 (insert_pad) Calculate padding size in octets, and adjust "dot"
5848 (size_input_section) Always adjust "dot" by bytes, not octets.
5849 (lang_check_section_addresses, lang_do_assignments) Adjust
5850 "dot" by bytes, not octets. Use the larger of the directive size
5851 or octets_per_byte for the number of octets actually allocated in
5853 (lang_set_startof) Make sure STARTOF returns a target address.
5854 (lang_one_common) Record size changes in octets.
5855 (lang_abs_symbol_at_end_of) Section end symbol's value is
5856 recorded in target bytes.
5857 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5858 to be clear about behavior when an octet is smaller than one byte.
5860 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5862 * ldcref.c (output_cref): Don't pass message strings to printf
5866 * ldmisc.c (vfinfo): Same here.
5869 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5871 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5872 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5873 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5874 Add missing NULL initialisers, and comments.
5876 2000-01-21 Nick Clifton <nickc@cygnus.com>
5878 * ldlang.c (lang_size_sections): Fix typo in comment.
5880 2000-01-18 H.J. Lu <hjl@gnu.org>
5882 * ldlang.c (lang_size_sections): Also update the current
5883 address of a region if the SEC_NEVER_LOAD bit is not set.
5885 2000-01-10 Philip Blundell <pb@futuretv.com>
5887 * configure.tgt (arm*-*-conix*): New target.
5889 2000-01-07 Nick Clifton <nickc@cygnus.com>
5891 * ld.texinfo (Options): Remind users to preceed linker command
5892 line switches with -Wl, (or whatever is appropriate) if it is
5893 being invoked by a comnpiler driver program.
5894 Fix description of the behaviour of the -n command line switch.
5896 2000-01-05 Catherine Moore <clm@cygnus.com>
5898 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5900 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5901 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5902 (exclude_name_list): New.
5903 ldlang.c (walk_wild_section): Support list of excluded files.
5904 (print_wild_statement): Likewise.
5905 (lang_add_wild): Likewise.
5906 * ldlang.h (lang_wild_statement_type): Likewise.
5907 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5909 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5911 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5912 (process_def_file): Use.
5913 (pe_dll_compat_implib): New variable.
5916 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5917 pe_dll_compat_implib.
5919 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5920 compat-implib options.
5921 (gld_${EMULATION_NAME}_list_options): List new options.
5922 (gld_${EMULATION_NAME}_parse_args): Handle.
5924 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5927 * deffilep.y (opt_name): Allow "." in name.
5929 For older changes see ChangeLog-9899
5935 version-control: never