1 2003-04-23 H.J. Lu <hjl@gnu.org>
3 * ldmain.c (link_callbacks): Initialize error_handler.
5 * ldmisc.c (error_handler): New function.
7 * ldmisc.h (error_handler): New prototype.
9 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
11 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
12 * emulparams/m68hc11elfb.sh: Likewise.
13 * emulparams/m68hc12elf.sh: Likewise.
14 * emulparams/m68hc12elfb.sh: Likewise.
16 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
18 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
20 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
22 (LDEMUL_FINISH): Override to generate the trampolines after gc and
24 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
25 stub file for trampolines.
26 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
27 --no-trampoline and --bank-window to control the memory bank window.
29 2003-04-18 H.J. Lu <hjl@gnu.org>
31 * ldfile.c (ldfile_add_library_path): Remove the unused
34 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
36 * scripttempl/xstormy16.sc (__data, __rdata): New.
38 2003-04-16 Nick Clifton <nickc@redhat.com>
40 * scripttempl/xstormy16.sc: Add .jcr section mapping.
42 2003-04-15 H.J. Lu <hjl@gnu.org>
44 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
46 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
48 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
50 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
51 * ld.texinfo: Likewise.
53 2003-04-14 Alan Modra <amodra@bigpond.net.au>
55 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
56 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
57 other variants of crtbegin.o, crtend.o.
59 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
60 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
61 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
62 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
63 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
64 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
65 * scripttempl/mmo.sc (ctors, dtors): Likewise.
66 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
68 2003-04-09 Dmitry Diky <diwil@mail.ru>
70 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
71 sections to respect C++ constructor/destructor. Add ctors/dtors
72 start/stop definitions.
73 * scripttempl/elf32msp430_3.sc: Likewise.
75 2003-04-06 Nick Clifton <nickc@redhat.com>
77 * ld.texinfo (Options): Add a reminder of the target specific
78 nature to the description of the i386 PE specific options, for
79 readers who have not read all the way through the manual.
81 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
83 * configure.tgt: Fixed bug in list of targ_extra_emuls.
84 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
85 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
86 * emulparams/tic3xcoff_onchip.sh: Ditto
87 * emulparams/tic4xcoff.sh: Ditto
88 * scripttempl/tic4xcoff.sc: Ditto
90 2003-04-03 Nick Clifton <nickc@redhat.com>
92 * NEWS: Mention support for Xtensa architecture.
94 2003-04-02 Nick Clifton <nickc@redhat.com>
96 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
98 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
100 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
101 Don't call pe_dll_build_section() if link_info.relocateable.
102 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
103 if link_info.relocateable.
105 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
107 * pe-dll.c (process_def_file): Don't create an export
108 section if there are no exports and we're building an exe
109 (pe_dll_build_sections): Ditto
110 (pe_dll_fill_sections): Conditionalize setting
111 abfd->dll true on info->shared
112 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
113 If i386pe or armpe, call pe_dll_build_section()
114 for both exe's and dll's, not just dll's.
115 (gld_${EMULATION_NAME}_finish): For all targets except
116 shpe and mipspe, call pe_dll_fill_sections() for both
117 exe's and dll's, not just dll's.
119 2003-04-02 Bob Wilson <bob.wilson@acm.org>
121 * emulparams/xtensa-config.sh: Remove comment indicating that this is
124 2003-04-01 Bob Wilson <bob.wilson@acm.org>
126 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
127 (eelf32xtensa.c): New target.
128 * Makefile.in: Regenerate.
129 * configure.tgt: Handle xtensa-*-*.
130 * gen-doc.texi: Set XTENSA variable.
131 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
132 * emulparams/elf32xtensa.sh: New file.
133 * emulparams/xtensa-config.sh: Likewise.
134 * emultempl/xtensaelf.em: Likewise.
135 * scripttempl/elfxtensa.sc: Likewise.
137 2003-04-01 Jakub Jelinek <jakub@redhat.com>
139 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
140 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
141 if --enable-64-bit-bfd.
143 2003-04-01 Nick Clifton <nickc@redhat.com>
145 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
147 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
148 name of note section.
150 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
152 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
155 2003-03-31 David Heine <dlheine@suif.stanford.edu>
157 * ldfile.c (ldfile_add_library_path): Always allocate space for
159 * ldlang.c (lang_register_vers_node): Free the node if it cannot
161 * ldmain.c (set_scripts_dir): Always free the constructed
163 (add_keepsyms_file): Fix memory leak.
164 * ldmisc.c (vfinfo): Likewise.
165 * lexsup.c (parse_args): Likewise.
167 2003-03-25 Stan Cox <scox@redhat.com>
168 Nick Clifton <nickc@redhat.com>
170 Contribute support for Intel's iWMMXt chip - an ARM variant:
172 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
173 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
174 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
177 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
179 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
180 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
181 (main): Initialize them.
182 * ldfile.c: Include pathnames.h.
183 (is_sysrooted_pathname): New.
184 (ldfile_add_library_path): Use it.
185 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
186 search_dirs if given an absolute pathname.
187 (ldfile_open_file): Issue error message for sysrooted
189 * Makefile.am: Updated dependencies.
190 * Makefile.in: Rebuild.
192 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
194 * ld.texinfo: Rename all occurances of C54X to TIC54X.
196 2003-03-19 Andreas Schwab <schwab@suse.de>
198 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
201 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
203 * defilep.y (opt_base): If no number given, set to default
206 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
208 * deffilep.y (def_import): Use default extension of "dll"
209 if no extension provided in parsed IMPORT definition.
211 * deffilep.y (def_lex): Revert 2003-03-12 change.
212 (dot_name): New id type and rule.
213 (expline): Use instead of ID.
214 (opt_equal_name): Likewise.
216 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
218 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
220 2003-03-07 Christopher Faylor <cgf@redhat.com>
222 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
223 apparent accidental removal on 2003-01-06.
225 2003-03-04 Dmitry Diky <diwil@mail.ru>
227 * Makefile.am: Add new devices x1122 x1132 emulation
228 * configure.tgt: Likewise.
229 * Makefile.in: Regenerate.
230 * emulparams/msp430x1122.sh: New file.
231 * emulparams/msp430x1132.sh: New file.
233 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
235 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
238 * ldfile.h (struct search_dirs): Added sysrooted field.
239 * ldlang.h (struct lang_input_statement_struct): Likewise.
240 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
241 (ldfile_open_file_search): Look for sysrooted filename starting
242 with / in ld_sysroot instead of in the current directory. Clear
243 sysrooted flag if it's found in the current directory. Set it
244 from the search directory's sysrooted flag where it is found
246 * ldlang.c (ldlang_sysrooted_script): New static variable.
247 (new_afile): Mark search_file_enums as sysrooted if
248 ldlang_sysrooted_script.
249 (load_symbols): Set ldlang_sysrooted_script according to the
250 script's sysrooted field while processing it.
251 * ld.texinfo: Document INPUT behavior in sysroot.
253 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
255 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
257 2003-03-03 Alan Modra <amodra@bigpond.net.au>
259 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
260 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
261 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
262 PARSE_AND_LIST_EPILOGUE): Don't define.
263 * emultempl/alphaelf.em: New file.
265 2003-03-01 Alan Modra <amodra@bigpond.net.au>
267 * ldemul.c: Include getopt.h.
268 * emultempl/elf32.em: Include getopt.h earlier.
269 * emultempl/ticoff.em: Likewise.
271 2003-02-28 Alan Modra <amodra@bigpond.net.au>
273 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
274 support when scripts read from files.
276 2003-02-28 Alan Modra <amodra@bigpond.net.au>
278 * ldemul.c (ldemul_parse_args): Return FALSE by default.
279 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
282 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
283 (ldemul_parse_args): Return bfd_boolean. Formatting.
284 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
285 (ldemul_parse_args): Adjust.
286 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
287 Return bfd_boolean from parse_args.
288 * lexsup.c (parse_args): Malloc shortopts, longopts and
289 really_longopts. Call ldemul_add_options and ldemul_handle_option.
290 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
291 gld${EMULATION_NAME}_parse_args.
292 (gld${EMULATION_NAME}_handle_option): Likewise.
293 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
294 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
295 * emultempl/beos.em: Likewise.
296 * emultempl/pe.em: Likewise.
297 * emultempl/ticoff.em: Likewise.
298 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
299 (gld${EMULATION_NAME}_add_sysroot): Prototype.
300 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
302 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
303 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
304 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
305 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
307 * emultempl/generic.em: Likewise.
308 * emultempl/gld960.em: Likewise.
309 * emultempl/gld960c.em: Likewise.
310 * emultempl/linux.em: Likewise.
311 * emultempl/lnk960.em: Likewise.
312 * emultempl/m68kcoff.em: Likewise.
313 * emultempl/mipsecoff.em: Likewise.
314 * emultempl/sunos.em: Likewise.
315 * emultempl/vanilla.em: Likewise.
316 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
318 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
320 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
321 memory allocation error.
323 * Makefile.am (ldmain.o): Define TOOLBINDIR.
324 * Makefile.in: Rebuilt.
325 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
327 2003-02-21 Bob Wilson <bob.wilson@acm.org>
329 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
330 call os_region_check when it is set.
331 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
332 lang_size_sections_1.
333 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
334 only for the last call, not on every relaxation iteration.
335 * ldlang.h (lang_size_sections): Update prototype.
336 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
337 to lang_size_sections.
338 (pe_exe_fill_sections): Likewise.
339 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
340 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
341 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
342 (ppc_layout_sections_again): Likewise.
344 2003-02-21 Bob Wilson <bob.wilson@acm.org>
346 * gen-doc.texi: Set ARM and HPPA variables.
347 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
348 title capitalization more consistent. Add missing menu entries for
349 machine-specific sections and conditionalize them consistently.
350 Conditionalize text that is irrelevant when SingleFormat is set.
351 Add @group divisions to improve page breaks in long examples.
352 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
353 is correct. Remove "FIXME" comment about not using
354 @raisesections/@lowersections. Use @raisesections/@lowersections
355 consistently for machine-specific sections. Change to be more polite
356 about poor bug reports. Replace FDL appendix with include of fdl.texi.
357 Move WIN32 node to match its order in the menus.
358 * fdl.texi: New file.
360 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
362 * configure.in (TARGET_SYSTEM_ROOT): Set default to
363 ${exec_prefix}/${target_alias}/sys-root. Match explicit
364 '${exec_prefix}' (in addition to the expansion thereof) as
366 * configure: Rebuilt.
368 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
370 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
372 2003-02-20 Harri Porten <porten@kde.org>
374 * ldgram.y (vers_defns): Allow optional trailing semicolon in
377 2003-02-18 Alan Modra <amodra@bigpond.net.au>
379 * emultempl/ppc32elf.em: New file.
380 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
381 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
382 (eelf32lppcnto.c): Likewise.
383 (eelf32lppcsim.c): Likewise.
384 (eelf32ppcnto.c): Likewise.
385 (eelf32ppc.c): Likewise.
386 (eelf32ppc_fbsd.c): Likewise.
387 (eelf32ppcsim.c): Likewise.
388 (eelf32ppclinux.c): Likewise.
389 * Makefile.in: Regenerate.
391 2003-02-18 Alan Modra <amodra@bigpond.net.au>
393 * ld.texinfo: Remove spaces between @samp and opening brace.
395 2003-02-18 Alan Modra <amodra@bigpond.net.au>
397 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
399 (ppc_before_allocation): Don't do optimizations if wrong hash table.
400 (gld${EMULATION_NAME}_finish): Ditto.
402 2003-02-17 Nick Clifton <nickc@redhat.com>
404 * ldmain.c (main) Default allow_shlib_undefined to true.
405 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
406 (parse_args): Parse the new switch.
407 * ld.texinfo: Document new switch and default behaviour of
408 allowing undefined symbols in shared libraries.
410 2003-02-11 Dmitry Diky <diwil@mail.ru>
412 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
413 * scripttempl/elf32msp430_3.sc: Likewise.
415 2003-02-11 Uwe Stieber <uwe@wwws.de>
417 * configure.tgt: Add support for kaOS as cross build target
420 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
422 * hppaelf.em (group_size): Change default back to 1.
424 2003-02-09 Alan Modra <amodra@bigpond.net.au>
426 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
428 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
430 * hppaelf.em (group_size): Change default to -1.
432 2003-02-07 Nick Clifton <nickc@redhat.com>
434 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
436 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
437 no-pipeline-knowledge. This will prevent the getopt package from
438 thinking that there are any shorter abbreviations for
439 --no-pipeline-knowledge.
441 2003-02-07 Jakub Jelinek <jakub@redhat.com>
443 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
444 which already have it. Avoid duplicates.
446 2003-02-06 Jakub Jelinek <jakub@redhat.com>
448 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
449 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
450 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
452 2003-02-05 Alan Modra <amodra@bigpond.net.au>
454 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
455 call ppc64_elf_tls_optimize.
457 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
459 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
460 outside of GNU/Linux conditional.
462 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
464 * deffilep.y (def_get_module): New function: locate an already
466 * deffile.h (def_get_module): New prototype.
467 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
468 a dll multiple times.
470 2003-01-23 Alan Modra <amodra@bigpond.net.au>
472 * emultempl/sh64elf.em: Include elf32-sh64.h.
473 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
474 sh64_elf_section_data.
475 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
477 2003-01-23 Wu Yongwei <adah@netstd.com>
479 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
480 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
481 cross-80th-column-margin "an" to the next line.
483 2003-01-21 Nick Clifton <nickc@redhat.com>
485 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
486 * emulparams/tic3xcoff_onchip.sh: ...this.
487 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
488 * Makefile.in: Regenerate.
490 2003-01-21 Fabio Alemagna <falemagn@aros.org>
492 * configure.tgt: Handle i[3456]86-*-aros*
494 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
496 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
497 * Makefile.in: Regenerate
498 * configure.tgt: Added extra target emulations
499 * emulparams/tic3xcoff.sh: Remove old settings
500 * emulparams/tic4xcoff.sh: Ditto
501 * emulparams/tic3xcoff-onchip.sh: Added new
502 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
503 * scripttempl/tic3xcoff.sc: Remove
505 2003-01-17 Andreas Jaeger <aj@suse.de>
507 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
510 2003-01-16 Alan Modra <amodra@bigpond.net.au>
512 * Makefile.in: Regenerate.
514 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
516 * ld/ld.texinfo (node WIN32): Some clarifications
517 and formatting fixups.
519 2003-01-09 Chris Demetriou <cgd@broadcom.com>
521 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
522 order, and handle (ignore) -mips32r2.
524 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
526 * ldmain.c (main): Make sure ld_sysroot is initialized.
528 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
530 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
532 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
533 (GENSCRIPTS): Add @use_sysroot@.
534 * Makefile.in: Regenerated.
535 * configure.host: Move setting of NATIVE_LIB_DIRS to...
536 * configure.tgt: ... here. Use ${target} instead of ${host}
538 * configure.in: Add --with-sysroot.
539 * configure: Regenerated.
540 * genscripts.sh: Accept use_sysroot option. Set new variables
541 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
542 $use_sysroot. Don't search $tool_lib if $use_sysroot.
543 * ldfile.c (ldfile_add_library_path): Handle leading '='.
544 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
545 (ld_sysroot): New variable.
546 (main): Initialize ld_sysroot.
547 * ldmain.h (ld_sysroot): New extern.
548 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
549 searching $EMULATION_LIBPATH.
550 (gld${EMULATION_NAME}_add_sysroot): New function.
551 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
552 (gld${EMULATION_NAME}_after_open): Likewise. Only search
553 environment variables if $NATIVE.
554 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
555 * NEWS: Mention --with-sysroot.
557 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
558 instead of setting LIB_PATH.
559 * emulparams/elf32ppc.sh: Likewise.
560 * emulparams/elf64_s390.sh: Likewise.
561 * emulparams/elf64_sparc.sh: Likewise.
562 * emulparams/elf64ppc.sh: Likewise.
563 * emulparams/elf_x86_64.sh: Likewise.
565 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
566 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
568 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
570 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
572 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
574 * Makefile.am (ldmain.o): Pass BINDIR.
575 * Makefile.in: Regenerated.
576 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
579 2003-01-02 Ben Elliston <bje@redhat.com>
581 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
582 (eelf32iq2000.c): New target.
583 * Makefile.in: Regenerate.
584 * configure.tgt: Handle iq2000-*-elf.
585 * emulparams/elf32iq10.sh: New file.
586 * emulparams/elf32iq2000.sh: New file.
587 * scripttempl/iq2000.sc: New file.
589 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
591 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
592 and _pei386_runtime_relocator to the exclude list.
594 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
596 * ldfile.c: Fix comment typos.
597 * ldlang.c: Likewise.
599 * pe-dll.c: Likewise.
601 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
603 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
604 * Makefile.am (ld.1): Depend on configdoc.texi
606 * Makefile.in: Regenerated.
608 2002-12-24 Dmitry Diky <diwil@mail.ru>
610 * Makefile.am: Add msp430 target.
611 * configure.tgt: Likewise.
612 * Makefile.in: Regenerate.
613 * emulparams/msp430x???.sh: New files. Linker script parameters
614 for various msp430 configurations.
615 * gen-doc.texi: Enable msp430 documenation.
616 * ld.texinfo: Document msp430 sections.
617 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
618 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
620 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
621 Charles Wilson <cwilson@ece.gatech.edu>
623 * ld/config.in (HAVE_REALPATH): New entry.
624 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
626 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
628 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
631 2002-12-23 Alan Modra <amodra@bigpond.net.au>
633 * ldmain.c (main): Init "strip_discarded".
634 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
635 (OPTION_NO_STRIP_DISCARDED): Define.
636 (ld_options): Add "strip-discarded" and "no-strip-discarded".
637 (parse_args): Handle them.
639 2002-12-23 Nick Clifton <nickc@redhat.com>
641 * ld.h (struct args_type): Add new field
642 'accept_unknown_input_architecture'.
643 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
645 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
646 bfd_arch_get_compatible.
647 * ldfile.c (ldfile_try_open_bfd): Likewise.
648 * lexsup.c (ld_options): Add new command line switch
649 --accept-unknown-input-architecture and its inverse.
650 (parse_args): Handle --accept-unknown-input-architecture.
651 * ld.texinfo: Document new linker option.
652 * NEWS: Mention new linker option.
654 2002-12-20 Alan Modra <amodra@bigpond.net.au>
656 * ldmain.c (main): Re-order link_info initialization. Init all
659 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
661 * ld.texinfo: Clarify and extend the documentation
662 in the Machine Dependent, WIN32 section.
664 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
666 * ld.texinfo: Add win32 machine depending section.
667 * gen-doc.texi: Enable win32 machine depending section.
669 * configure.host: Add win32 library search path.
671 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
673 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
674 import when auto-import is disabled.
676 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
678 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
679 account for trailing '\0'.
681 2002-12-17 Nick Clifton <nickc@redhat.com>
683 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
684 so that it is not confused with -c.
686 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
687 Charles Wilson <cwilson@ece.gatech.edu>
689 * configure.in: Add check for realpath function.
690 * configure: Regenerate.
691 * config.in: Regenerate.
692 * aclocal.m4: Regenerate.
693 * deffile.h: Add .data field to def_file_import
695 * pe-dll.c (pe_proces_import_defs): Use .data field of
696 def_file_import structure to initialize flag_data field of
697 def_file_export structure.
698 (pe_implied_import_dll): New variables exp_funcbase and
699 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
700 not filename (which may be a symlink). Scan the sections and
701 initialize [data|bss]_[start|end]. When scanning the export
702 table, skip _nm_ symbols, and mark any symbols whose rva indicates
703 that it is in the .bss or .data sections as data.
704 * sysdep.h: Include limits.h and sys/param.h, and define
705 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
706 exists, NULL otherwise.
707 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
708 pe_process_import_defs before pe_find_data_imports, so that
709 auto-import will check the virtual implib as well as "real"
711 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
712 symlinks to their target; check that the target's extension is
713 .dll before calling pe_implied_import_dll(), not the filename
714 itself (which may be a symlink).
716 2002-12-10 Alan Modra <amodra@bigpond.net.au>
718 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
719 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
722 2002-12-08 Alan Modra <amodra@bigpond.net.au>
724 * ldlang.h: Formatting.
726 2002-12-07 Alan Modra <amodra@bigpond.net.au>
728 * ldlang.c (init_os): Ensure sections mentioned in load_base
731 2002-12-05 Alan Modra <amodra@bigpond.net.au>
733 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
734 load_base for orphans that follow a section with load_base set.
736 2002-12-01 H.J. Lu <hjl@gnu.org>
738 * ld.texinfo: Remove the extra `;' in sample version script.
740 2002-11-30 Alan Modra <amodra@bigpond.net.au>
742 * configure.host: Correct dynamic-linker for powerpc64 hosts.
744 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
745 * Makefile.in: Regenerate.
747 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
748 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
749 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
750 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
751 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
752 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
753 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
754 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
755 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
756 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
757 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
758 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
759 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
761 2002-11-27 David O'Brien <obrien@FreeBSD.org>
763 * configure.host: Fix generic FreeBSD configuration entry.
765 2002-11-27 H.J. Lu <hjl@gnu.org>
767 * ld.texinfo: Add the missing `;' to sample version scripts.
769 2002-11-20 Alan Modra <amodra@bigpond.net.au>
771 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
773 2002-11-14 Egor Duda <deo@logos-m.ru>
775 * ldmain.c (main): Make runtime relocs disabled by default. Remove
776 assignment which has no effect.
777 * pe-dll.h (pe_create_import_fixup): Change prototype.
778 * pe-dll.c (make_runtime_pseudo_reloc): New function.
779 (pe_create_runtime_relocator_reference): Ditto.
780 (pe_create_import_fixup): Handle relocations with non-zero addends.
781 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
782 --disable-runtime-pseudo-reloc.
783 (make_import_fixup): Handle relocations with non-zero addends. Create
784 an external reference to _pei386_runtime_relocator symbol if at least
785 one pseudo reloc was created.
786 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
787 --disable-runtime-pseudo-reloc options.
789 2002-11-12 Earl Chew <earl_chew@agilent.com>
791 * ldlang.c (lang_add_section): Discard debugging sections that have
792 been marked SEC_EXCLUDE.
794 2002-11-12 Nick Clifton <nickc@redhat.com>
796 * configure.in (ALL_LINGUAS): Add da.
797 * configure: Regenerate.
798 * po/da.po: New Danish translation.
800 2002-11-12 Alan Modra <amodra@bigpond.net.au>
802 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
803 (LDEMUL_BEFORE_ALLOCATION): Define.
804 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
806 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
808 2002-11-11 Christopher Faylor <cgf@redhat.com>
810 * configure.tgt (LIB_PATH): Default to searching w32api directory under
813 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
815 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
816 of restricted auto-export libs.
818 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
820 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
821 creative library naming instances like, e.g., libstdc++-2.a.
823 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
825 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
826 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
828 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
830 * deffilep.y (def_lex): Handle '@' as first character of an ID.
831 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
832 (make_one): Don't prefix decorated fastcall symbols with '_'.
833 (pe_process_import_defs): Likewise.
834 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
835 symbols to cdecl names or vise-versa.
837 2002-10-13 Eric Kohl <ekohl@rz-online.de>
839 * pe-dll.c (process_def_file): Handle fastcall symbols when
840 generating undecorated aliases. Don't prefix decorated fastcall
842 (fill_exported_offsets): Don't prefix decorated fastcall symbols
845 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
847 * emultempl/aix.em: Use include <> for generated headers.
848 * emultempl/beos.em: Likewise.
849 * emultempl/elf32.em: Likewise.
850 * emultempl/pe.em: Likewise.
851 * ldctor.c: Likewise.
853 * ldfile.c: Likewise.
854 * ldlang.c: Likewise.
857 * ldmain.c: Likewise.
858 * ldmisc.c: Likewise.
859 * ldwrite.c: Likewise.
860 * lexsup.c: Likewise.
862 * pe-dll.c: Likewise.
864 2002-10-23 Jakub Jelinek <jakub@redhat.com>
866 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
867 sections into .rel{,a}.dyn.
869 2002-10-23 Nick Clifton <nickc@redhat.com>
871 * lexsup.c (OPTION_NO_OMAGIC): Define.
872 (ld_options): Add "no-omagic" option.
873 (parse_args): Parse --no-omagic.
874 * ld.texinfo: Document --no-omagic.
875 * NEWS: Mention new option.
877 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
879 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
880 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
882 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
884 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
885 emulation name. Set LIB_PATH only for native tools, and
886 search the ABI-specific versions of NATIVE_LIB_DIRS before the
887 .../lib variants, not instead of them. Mostly copied from...
888 * emulparams/elf32ppc.sh: ... here. Fixed typo.
889 * emulparams/elf64bmip-defs.sh: Backed out.
890 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
891 * emulparams/elf64btsmip.sh: Likewise.
892 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
893 TEXT_DYNAMIC): Removed.
895 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
897 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
898 (GENERATE_SHLIB_SCRIPT): Set to yes.
899 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
900 * emulparams/elf32bmipn32.sh: here.
901 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
902 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
903 * emulparams/elf64bmip-defs.sh: New file. Extend
904 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
905 * emulparams/elf64bmip.sh: Bring in definitions from
907 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
909 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
910 * emulparams/elf64btsmip.sh: Bring in definitions from
912 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
913 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
915 2002-10-16 Jakub Jelinek <jakub@redhat.com>
917 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
918 (s390-*-linux*): Add elf64_s390 emulation if want64.
919 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
920 genscript.sh changes.
921 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
922 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
924 2002-10-15 Alan Modra <amodra@bigpond.net.au>
926 * ldlang.c (load_symbols): Revert last change.
928 2002-10-14 Alan Modra <amodra@bigpond.net.au>
930 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
932 (lang_reasonable_defaults): Don't compare against false.
933 (size_input_section): Likewise.
934 (lang_size_sections_1): Likewise.
935 (lang_do_assignments): Likewise.
936 (lang_add_output): Likewise.
938 * Makefile.am: Run "make dep-am".
939 * Makefile.in: Regenerate.
940 * ldver.c: #include "bfdver.h".
942 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
944 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
946 * scripttempl/elfm68hc12.sc: Likewise.
948 2002-10-11 Alan Modra <amodra@bigpond.net.au>
950 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
952 * ldgram.y (memory_spec): Provide empty action.
953 (section <NAME>): Likewise.
955 2002-10-10 Jakub Jelinek <jakub@redhat.com>
957 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
958 they have OUTPUT_FORMAT not matching actual output format.
959 * ldlang.c (lang_get_output_target): New function.
960 (open_output): Use it.
961 * ldlang.h (lang_get_output_target): New prototype.
963 2002-10-10 Alan Modra <amodra@bigpond.net.au>
965 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
966 when orphan is .rel, .rela when orphan is .rela.
967 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
968 first. Remove outsecname var.
970 2002-10-09 Richard Shann <richard.shann@superh.com>
971 Stephen Clarke <stephen.clarke@superh.com>
973 * Makefile.am: Add eshelf32_linux.o and
974 eshlelf32_linux.o, new emulations for sh64 Linux.
975 * Makefile.in: Regenerate.
976 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
977 * emulparams/shelf32_linux.sh: New file.
978 * emulparams/shlelf32_linux.sh: New file.
980 2002-10-08 H.J. Lu <hjl@gnu.org>
982 * ldlang.c (lang_file_exist): Removed.
983 (new_afile): Revert the last change.
984 * ldlang.h (lang_file_exist): Removed.
985 * lexsup.c (parse_args): Revert the last change.
987 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
989 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
991 (make_one): Create _nm_<symbol> for data only.
993 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
995 * ldlang.c (lang_file_exist): New function.
996 (new_afile): Abort if the filename to be added matches the linker
998 * ldlang.h: Add prototype for lang_file_exist.
999 * lexsup.c (parse_args): Abort if the output filename matches
1000 one of the input filenames.
1002 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1004 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1006 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1008 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1009 * scripttempl/elfm68hc11.sc: Likewise.
1010 * scripttempl/elfm68hc12.sc: Likewise.
1012 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1013 reloc sections just before .rel.plt/.rela.plt.
1014 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1015 Only put loadable reloc sections in hold_rel.
1017 2002-09-29 H.J. Lu <hjl@gnu.org>
1019 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1021 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1023 From "Anita Kulkarni" <AnitaK@kpit.com>
1024 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1027 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1029 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1031 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1032 SEGMENT_SIZE alignment.
1033 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1034 (SEGMENT_SIZE): Define.
1036 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1037 (fold_binary): Correct abs - non-abs case.
1038 (fold_trinary): New. Split out from exp_fold_tree.
1040 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1042 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1043 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1044 for start of .data, instead align up to 256M boundary.
1045 * scripttempl/aix.sc: Likewise.
1047 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1049 * scripttempl/i386go32.sc: Handle bss unique sections.
1051 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1053 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1055 2002-09-17 Stan Cox <scox@redhat.com>
1057 * emulparams/elf32bmipn32-defs.sh: New file.
1058 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1059 * emulparams/elf32btsmipn32.sh: Likewise.
1060 * emulparams/elf64bmip.sh: Likewise.
1061 * emulparams/elf64btsmip.sh: Likewise.
1063 2002-09-16 Bruno Haible <bruno@clisp.org>
1065 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1067 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1068 elf64-alpha-freebsd.
1070 2002-09-11 Nick Clifton <nickc@redhat.com>
1072 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1074 * po/tr.po: Updated Turkish translation.
1076 2002-09-06 Jeffrey A Law (law@redhat.com)
1078 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1080 2002-09-02 Nick Clifton <nickc@redhat.com>
1082 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1084 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1086 2002-08-30 Nick Clifton <nickc@redhat.com>
1088 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1089 used. Change INSN to start at 0x01000000 and extend for
1090 256K (ignoring holes). Start the STACK on a word aligned
1092 (.rodata): Start it at the READONLY_START_ADDR.
1094 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1096 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1098 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1100 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1101 added makefile targets for this file.
1102 * Makefile.in: Regenerate.
1103 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1104 * NEWS: Mention new port.
1106 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1108 * emulparams/tic3xcoff.sh: New file.
1109 * emulparams/tic4xcoff.sh: New file.
1110 * scripttempl/tic3xcoff.sc: New file.
1111 * scripttempl/tic4xcoff.sc: New file.
1113 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1115 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1116 strtoul and strtoull with bfd_scan_vma.
1117 (gld${EMULATION_NAME}_read_file): Likewise.
1119 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1121 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1123 2002-08-27 Egor Duda <deo@logos-m.ru>
1125 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1126 Add symbols for application to access them.
1128 2002-08-27 Nick Clifton <nickc@redhat.com>
1130 * emultempl/armelf.em: Revert this patch, it is not needed.
1132 2002-08-22 Adam Nemet <anemet@lnxw.com>
1134 2002-08-20 Dan Kegel <dank@kegel.com>
1136 * configure.in: added --with-lib-path argument to ld's configure
1138 * ld/NEWS: Document new switch.
1139 * ld/README: Mention new switch.
1140 * configure: Regenerate.
1141 * Makefile.in: Regenerate.
1143 Based on this patch:
1144 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1146 * Makefile.in (LIB_PATH): Make configurable.
1147 (GENSCRIPTS): Set LIB_PATH in environment.
1148 * configure.in: Substitute LIB_PATH.
1150 2002-08-22 Adam Nemet <anemet@lnxw.com>
1152 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1153 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1154 depending on the type of the function.
1155 (arm_elf_convert_thumb_symbol_to_address): New function.
1157 2002-08-22 Graeme Peterson <gp@qnx.com>
1159 * Makefile.am: Add esh{l}elf_nto.o files.
1160 * Makefile.in: Regenerate.
1161 * configure.tgt: Add support for sh-**-nto* targets.
1162 * emulparams/shelf_nto.sh: New file.
1163 * emulparams/shlelf_nto.sh: New file.
1165 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1167 * ldlang.c (offsetof): Define if not defined.
1169 2002-08-14 H.J. Lu <hjl@gnu.org>
1171 * configure.tgt: Always enable 64bit emulations for 32bit
1174 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1176 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1177 (MAXPAGESIZE): Set to 1.
1179 * ld.h (ALIGN_N): Delete.
1180 * ldexp.h (align_n): Declare.
1181 * ldexp.c (align_n): New function.
1182 (fold_binary): Use align_n instead of ALIGN_N.
1183 (exp_fold_tree): Likewise.
1184 * ldlang.c (lang_size_sections_1): Likewise.
1185 (lang_one_common): Likewise.
1186 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1188 2002-07-31 Graeme Peterson <gp@qnx.com>
1190 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1191 * Makefile.am: Add eelf32{l}ppcnto.o files.
1192 * Makefile.in: Regenerate.
1193 * emulparams/elf32lppcnto.sh: New file.
1194 * emulparams/elf32ppcnto.sh: New file.
1196 2002-08-07 H.J. Lu <hjl@gnu.org>
1198 * ld.texinfo: Document --no-undefined-version.
1200 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1201 `script.' fields to 0.
1203 * ldmain.c (main): Initialize the allow_undefined_version to
1206 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1207 (ld_options): Add --no-undefined-version.
1208 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1210 2002-08-07 Nick Clifton <nickc@redhat.com>
1212 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1213 an interworking bfd if there are input bfds. (107501)
1215 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1217 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1220 2002-08-01 Nick Clifton <nickc@redhat.com>
1222 * emulparams/armelf.sh: Revert previous delta.
1223 * scripttempl/elf.sc: Revert previous delta.
1225 2002-07-31 H.J. Lu <hjl@gnu.org>
1227 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1228 --enable-64-bit-bfd.
1230 2002-07-31 H.J. Lu <hjl@gnu.org>
1232 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1233 64bit BFD is selected.
1235 2002-07-31 H.J. Lu <hjl@gnu.org>
1237 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1238 if 64bit BFD is selected.
1240 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1242 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1243 link_info.common_skip_ar_aymbols.
1244 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1246 * ldmain.c (main): Initialize new field
1247 link_info.common_skip_ar_aymbols.
1249 2002-07-31 Adam Nemet <anemet@lnxw.com>
1251 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1253 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1256 2002-07-31 Nick Clifton <nickc@redhat.com>
1258 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1259 of the PDP-11 and 2.11BSD a.out support.
1261 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1263 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1264 for n32 ABI support.
1265 * Makefile.in: Regenerate.
1266 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1267 n32 ABI emulations for these 64 bit targets.
1268 * emulparams/elf32bmipn32.sh: Expand comment.
1269 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1271 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1273 2002-07-30 Graeme Peterson <gp@qnx.com>
1275 * configure.tgt: Add support for arm-*-nto target.
1276 * Makefile.am: Add earmnto.o file.
1277 * Makefile.in: Regenerate.
1278 * NEWS: Mention port of ARM support to QNX.
1279 * emulparams/armnto.sh: New file.
1281 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1283 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1284 for relocatable link.
1285 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1288 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1290 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1293 2002-07-25 Nick Clifton <nickc@redhat.com>
1295 * po/sv.po: Updated Swedish translation.
1296 * po/es.po: Updated Spanish translation.
1297 * po/fr.po: Updated French translation.
1299 2002-07-24 Nick Clifton <nickc@redhat.com>
1301 * po/sv.po: Updated Swedish translation.
1302 * po/es.po: Updated Spanish translation.
1304 2002-07-23 Nick Clifton <nickc@redhat.com>
1306 * po/fr.po: Updated French translation.
1308 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1310 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1311 bomb on /DISCARD/ input section.
1312 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1313 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1315 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1317 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1320 2002-07-16 Denis Chertykov <denisc@overta.ru>
1321 Nick Clifton <nickc@redhat.com>
1322 Frank Ch. Eigler <fche@redhat.com>
1323 John Healy <jhealy@redhat.com>
1325 * configure.tgt: Add support for ip2k-elf.
1326 * Makefile.am: Add support for ip2k-elf.
1327 * Makefile.in: Regenerate.
1328 * emulparams/elf32ip2k.sh: New file.
1329 * scripttempl/ip2k.sc: New file
1330 * NEWS: Mention support for new port.
1332 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1334 * NEWS: Add 'Changes in 2.13'.
1336 2002-07-14 H.J. Lu <hjl@gnu.org>
1338 * ld.texinfo: Document a .symver takes precedence over a
1341 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1343 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1344 (COMMONPAGESIZE): Define.
1346 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1348 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1350 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1352 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1353 powerpc-*-openbsd* and sparc64-*-openbsd*.
1354 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1355 * Makefile.in: Regenerate.
1356 * emulparams/hppaobsd.sh: New file.
1358 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1360 * ldlang.c (print_wild_statement): Fix output formatting.
1362 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1364 * ldlang.c: (strip_excluded_output_sections): New function.
1365 (lang_process): Call it.
1366 (lang_size_sections_1): Revert 2002-06-10 change.
1368 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1370 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1372 * Makefile.in: Regenerate.
1374 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1376 * ldfile.c (ldfile_try_open_bfd): Formatting.
1378 * ldmisc.c (demangle): Move so that it doesn't intrude between
1379 vfinfo comment and body. Add comment.
1381 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1383 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1385 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1387 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1388 * ldlang.c (entry_sym): Likewise.
1389 (ldlang_undef_chain_list_type): Likewise.
1390 (lang_finish): Adjust references to entry_symbol.
1391 (lang_add_entry): Likewise.
1392 (lang_gc_sections): Use link_info.gc_sym_list.
1393 (lang_process): Set link_info.gc_sym_list.
1394 * ldlex.l: Include bfdlink.h.
1395 * ldmain.c (main): Init link_info.gc_sym_list.
1396 * emultempl/aix.em: Adjust references to entry_symbol.
1397 * emultempl/armcoff.em: Likewise.
1398 * emultempl/armelf.em: Likewise.
1399 * emultempl/pe.em: Likewise.
1400 * emultempl/ppc64elf.em (ppc_after_open): New function.
1401 (LDEMUL_AFTER_OPEN): Define.
1402 * emulparams/elf64ppc.sh: KEEP .opd sections.
1404 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1406 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1407 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1408 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1409 (EEPROM_START_ADDR): Define.
1410 (EEPROM_MEMORY): Define.
1411 * emulparams/m68hc12elf.sh: Likewise.
1412 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1413 section to put soft registers in .page0.
1414 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1416 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1418 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1419 section. Add ${RELOCATING-0}.
1421 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1423 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1424 (OTHER_SECTIONS): Define.
1425 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1426 (OTHER_SECTIONS): Undef.
1428 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1430 * ldmisc.c (demangle): Restore dots stripped from sym name.
1432 2002-06-25 H.J. Lu <hjl@gnu.org>
1434 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1435 * Makefile.in: Regenerated.
1437 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1439 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1440 the size of attached object files, to allow make the object files
1441 available via FTP or HTTP and to mention that the mail will be
1442 sent to a mailing list.
1444 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1446 * ld/configure.host (romp): Drop support.
1448 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1450 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1451 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1453 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1455 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1456 format specifier used to print BFD name.
1458 2002-06-18 Dave Brolley <brolley@redhat.com>
1460 From Catherine Moore, Michael Meissner, Jim Blandy:
1461 * emulparams/elf32frv.sh: New file.
1462 * configure.tgt: Support frv-*-*.
1463 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1464 (eelf32frv.c): New target.
1466 2002-06-17 Tom Rix <trix@redhat.com>
1468 * emultempl/elf32.em: gld*_get_script: Check for
1469 GENERATE_COMBRELOC_SCRIPT.
1470 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1471 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1473 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1475 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1477 2002-06-12 H.J. Lu <hjl@gnu.org>
1479 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1480 false if xvec doesn't match.
1482 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1484 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1486 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1488 * ldexp.c: Replace CONST with const.
1489 * ldfile.c: Likewise.
1490 * ldfile.h: Likewise.
1491 * ldlex.l: Likewise.
1493 * pe-dll.h: Likewise.
1495 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1497 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1499 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1501 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1502 to -1 == implicit enable.
1503 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1504 initialize link_info.pei386_auto_import to -1 == implicit
1506 (gld_${EMULATION_NAME}_parse_args): When processing
1507 --enable-auto-import and --disable-auto-import options, use
1508 '1' and '0' instead of 'true' and 'false'.
1509 (pe_find_data_imports): Only issue message about auto-import
1510 when the feature is implicitly enabled. Downgrade message to
1511 informational instead of warning.
1513 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1515 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1517 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1519 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1520 HOSTING_CRT0 and HOSTING_LIBS.
1522 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1524 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1526 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1528 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1529 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1531 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1533 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1534 SEC_EXCLUDE sections when doing a relocatable link.
1536 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1538 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1539 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1540 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1541 (eshlelf64_nbsd.c): New rules.
1542 * Makefile.in: Regenerate.
1543 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1544 (sh64-*-netbsd*): New targets.
1545 * emulparams/shelf32_nbsd.sh: New file.
1546 * emulparams/shelf64_nbsd.sh: New file.
1547 * emulparams/shlelf32_nbsd.sh: New file.
1548 * emulparams/shlelf64_nbsd.sh: New file.
1550 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1552 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1554 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1556 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1557 C++ constructors/destructors, loosely based on the m68hc11 port.
1559 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1561 * Makefile.in: Regenerate.
1562 * aclocal.m4: Regenerate.
1563 * config.in: Regenerate.
1564 * configure: Regenerate.
1566 2002-05-31 Graeme Peterson <gp@qnx.com>
1568 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1569 (ei386nto.c): Add rule.
1570 * Makefile.in: Regenerate.
1571 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1572 * emulparams/i386nto.sh: New file.
1574 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1576 * NEWS: Add entry for VAX ELF support.
1578 2002-05-29 Matt Thomas <matt@3am-software.com>
1579 Jason Thorpe <thorpej@wasabisystems.com>
1581 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1583 (evaxnbsd.c): New rules.
1584 * Makefile.in: Regenerate.
1585 * configure.tgt (vax-*-netbsdelf*)
1587 (vax-*-netbsd*): New targets.
1588 * emulparams/elf32vax.sh: New file.
1589 * emulparams/vaxnbsd.sh: New file.
1591 2002-05-29 Adam Nemet <anemet@lnxw.com>
1593 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1594 bfd_for_interwork, instead add glue sections to each input bfd.
1595 (bfd_for_interwork): New global.
1596 (arm_elf_set_bfd_for_interworking): New function.
1597 (arm_elf_before_allocation): Use it.
1599 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1601 * Makefile.am: Add DLX make target.
1602 * configure.tgt: Add DLX configuration.
1603 * Makefile.in: Regenerate.
1604 * emulparams/elf32_dlx.sh: New file
1605 * scripttempl/dlx.sc: New file
1607 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1609 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1610 * Makefile.in: Regenerate.
1611 * emulparams/elf_chaos.sh: Use elf_chaos script.
1612 * scripttempl/elf_chaos.sc: New file.
1614 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1616 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1617 addresses and regions from here...
1618 (lang_get_regions): ...to this new function.
1619 (lang_leave_output_section_statement): Use lang_get_regions.
1620 (lang_leave_overlay): Likewise.
1621 * mri.c (mri_draw_tree): Pass null as last argument to
1622 lang_leave_output_section_statement.
1623 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1624 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1625 * emultempl/pe.em (gld*_place_orphan): Likewise.
1627 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1629 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1631 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1633 * ldemul.c: Fix formatting.
1634 * ldfile.c: Likewise.
1635 * pe-dll.c: Likewise.
1636 * pe-dll.h: Likewise.
1638 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1640 * ldlang.c (lang_process): Formatting, grammar.
1642 * ldlex.l: Use #include "" instead of <> for local header files.
1644 2002-05-24 TAMURA Kent <kent@netbsd.org>
1646 * configure.tgt: Add a target for i386-netbsdpe.
1648 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1650 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1651 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1652 output section if necessary. Handle .tbss.
1653 (lang_size_sections): Clear _raw_size for .tbss section
1654 (it allocates space in PT_TLS segment only).
1655 * ldwrite.c (build_link_order): Build link order for .tbss too.
1657 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1659 * configure.in: Correct spelling of AC_PREREQ.
1661 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1663 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1665 (autofilter_objlist): Add crtbegin.o, crtend.o.
1667 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1669 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1670 (longopts): Add new option --exclude-libs.
1671 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1672 (gld_${EMULATION_NAME}_parse_args): Use it.
1673 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1674 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1675 from whole archives.
1676 (pe_dll_add_excludes): Set excludes->type.
1677 (auto_export): Add new variable libname and set to archive basename if
1678 abfd. Use it when filtering default and user-specified libarary
1679 excludes. Let string "ALL" mean all libs when filtering user-specified
1681 * ld.texinfo: Document --exclude-libs.
1683 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1685 * ldemul.c (ldemul_new_vers_pattern): New function.
1686 * ldemul.h (ldemul_new_vers_pattern): Declare.
1687 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1688 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1689 * emultempl/ppc64elf.em (dotsyms): New static var.
1690 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1691 (LDEMUL_NEW_VERS_PATTERN): Define.
1692 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1693 (PARSE_AND_LIST_LONGOPTS): Likewise.
1694 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1695 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1697 * emultempl/armcoff.em: Likewise.
1698 * emultempl/armelf_oabi.em: Likewise.
1699 * emultempl/beos.em: Likewise.
1700 * emultempl/elf32.em: Likewise.
1701 * emultempl/generic.em: Likewise.
1702 * emultempl/gld960.em: Likewise.
1703 * emultempl/gld960c.em: Likewise.
1704 * emultempl/linux.em: Likewise.
1705 * emultempl/lnk960.em: Likewise.
1706 * emultempl/m68kcoff.em: Likewise.
1707 * emultempl/mipsecoff.em: Likewise.
1708 * emultempl/pe.em: Likewise.
1709 * emultempl/sunos.em: Likewise.
1710 * emultempl/ticoff.em: Likewise.
1711 * emultempl/vanilla.em: Likewise.
1713 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1715 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1716 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1717 (LIB_SEARCH_DIRS): No need to use "tr".
1718 (COMPILE_IN): Only set for native targets.
1719 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1720 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1721 * configure.tgt (powerpc*): Set tdir_*.
1722 (powerpcle*): Correct targ_extra_emuls.
1723 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1724 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1726 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1728 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1729 calling lang_add_entry.
1731 2002-05-21 H.J. Lu (hjl@gnu.org)
1733 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1735 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1737 * ld.texinfo: Updated for --allow-multiple-definition and
1740 * ldmain.c (main): Initialize the allow_multiple_definition
1743 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1744 (ld_options): Add --allow-multiple-definition.
1745 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1747 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1749 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1750 (earmelfb_nbsd.c): New rule.
1751 * Makefile.in: Regenerate.
1752 * configure.tgt (armeb-*-netbsdelf*): New target.
1753 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1754 (arm-*-netbsd*): Likewise.
1755 * emulparams/armelfb_nbsd.sh: New file.
1757 2002-05-18 Tom Rix <trix@redhat.com>
1759 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1762 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1764 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1765 * Makefile.in: Regenerate.
1766 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1768 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1770 * emulparams/avr1.sh: New file.
1771 * emulparams/avr2.sh: New file.
1772 * emulparams/avr3.sh: New file.
1773 * emulparams/avr4.sh: New file.
1774 * emulparams/avr5.sh: New file.
1775 * scripttempl/avr.sc: New file.
1777 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1779 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1780 (lang_place_orphans): Abort if just_syms_flag.
1782 2002-05-10 Tom Rix <trix@redhat.com>
1784 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1785 architecture and machine information in the output bfd.
1786 (gld*_before_parse): Remove old arch and machine code.
1787 (choose_target): Rename to gld*_choose_target.
1788 (rtld): Change type to int.
1789 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1790 objects in XCOFF archives.
1791 * ldfile.h: Update copyright date.
1793 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1795 * ldmain.c (main): Enable -z combreloc by default.
1797 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1799 * Makefile.am: Honour DESTDIR.
1800 * Makefile.in: Regenerate.
1802 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1804 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1805 (lang_enter_overlay): Remove the last two parameters.
1806 (lang_leave_overlay): Take them here instead.
1807 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1808 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1809 than lang_enter_overlay.
1810 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1811 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1812 (lang_size_sections_1): Evaluate it.
1813 (lang_leave_output_section_statement): Rework LMA lookup.
1814 (overlay_lma, overlay_nocrossrefs): Remove.
1815 (lang_enter_overlay): Remove LMA and crossref arguments.
1816 (lang_enter_overlay_section): Don't set the LMA here.
1817 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1818 assignment to the last section's update_dot_tree. Unconditionally
1819 use the load and run-time regions specified in the OVERLAY statement.
1820 Likewise the first section's LMA. Only set the other sections' LMAs
1821 when no load region is given.
1823 2002-05-06 Nick Clifton <nickc@redhat.com>
1825 * po/sv.po: New translation.
1827 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1829 * emultempl/hppaelf.em (build_section_lists): New function.
1830 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1831 and build_section_lists.
1833 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1835 * ld.h: Fix formatting.
1836 * ldexp.c: Likewise.
1837 * ldfile.c: Likewise.
1838 * ldlang.c: Likewise.
1839 * ldmain.c: Likewise.
1840 * lexsup.c: Likewise.
1841 * pe-dll.c: Likewise.
1843 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1845 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1846 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1847 (build_section_lists): Do output_section tests here.
1849 2002-04-30 Tom Rix <trix@redhat.com>
1851 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1853 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1855 Long branch stubs, multiple stub sections.
1856 * emultempl/ppc64elf.em: Include ldctor.h.
1857 (stub_file): New var.
1858 (group_size): New var.
1859 (ppc_create_output_section_statements): New function.
1860 (struct hook_stub_info): New.
1861 (hook_in_stub): New function.
1862 (ppc_add_stub_section): New function.
1863 (ppc_layout_sections_again): New function.
1864 (build_section_lists): New function.
1865 (gld${EMULATION_NAME}_finish): Rewrite.
1866 (real_func): New var.
1867 (ppc_for_each_input_file_wrapper): New function.
1868 (ppc_lang_for_each_input_file): New function.
1869 (lang_for_each_input_file): Define.
1870 (PARSE_AND_LIST_PROLOGUE): Define.
1871 (PARSE_AND_LIST_LONGOPTS): Define.
1872 (PARSE_AND_LIST_OPTIONS): Define.
1873 (PARSE_AND_LIST_ARGS_CASES): Define.
1874 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1876 2002-04-30 Tom Rix <trix@redhat.com>
1878 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1879 -blibpath, -bnolibpath support.
1881 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1883 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1884 (eelf32ppcwindiss.c): New target.
1885 * Makefile.in: Regenerated.
1886 * configure.tgt: Add support for powerpc-*-windiss.
1887 * emulparams/elf32ppcwindiss.sh: New file.
1889 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1891 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1892 * ldexp.c (exp_print_token): Add "infix_p" argument.
1893 (exp_print_tree): Update accordingly.
1895 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1897 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1898 * Makefile.in: Regenerate.
1899 * mpw-elfmips.c: Delete.
1900 * mpw-eppcmac.c: Delete.
1901 * mpw-esh.c: Delete.
1902 * mpw-idtmips.c: Delete.
1904 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1906 * emulparams/shelf32.sh (MACHINE): Now sh5.
1908 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1910 * ldgram.y: Fix syntax warning.
1912 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1914 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1915 to prevent "-n" from being taken as an abbreviation for
1916 "--no-pipeline-knowledge".
1918 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1920 * ldlang.c (lang_size_sections_1): Don't complain about
1921 SEC_NEVER_LOAD sections having no memory region specified.
1923 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1925 2002-04-07 matthew green <mrg@redhat.com>
1927 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1929 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1931 * dep-in.sed: Cope with absolute paths.
1932 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1934 * Makefile.in: Regenerate.
1936 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1938 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1940 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1942 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1943 is smaller than maximum, round dot up to common page boundary.
1945 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1947 * configure.host: Set up for generic hosts first, then tweak as
1948 necessary in more specific targets.
1949 (HOSTING_LIBS): Include libgcc_eh.a if found.
1951 2002-03-23 Andreas Jaeger <aj@suse.de>
1953 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1955 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1957 * Makefile.am: Run "make dep-am".
1958 * Makefile.in: Regenerate.
1960 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1962 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1964 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1966 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1967 add the symbol to the linker hash table immediately.
1968 (lang_place_undefineds): Split symbol creation out..
1969 (insert_undefined): ..to here.
1971 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1973 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1974 the contents of the buffer returned from basename function will are
1975 getting overwritten while still being used.
1977 2002-03-18 Jan Hubicka <jh@suse.cz>
1978 Andreas Jaeger <aj@suse.de>
1979 Andreas Schwab <schwab@suse.de>
1981 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1982 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1983 set libraries to default to lib64 paths.
1985 2002-03-18 Tom Rix <trix@redhat.com>
1987 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1988 * configure.tgt : Same.
1989 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1990 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1991 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1992 emulation parameters for better -b32, -b64 support.
1993 * emulparms/aixrs6.sh : Same.
1994 * emulparms/ppcmacos.sh : Same.
1995 * emultempl/aix.em (choose_target) : Use new emulation parameters
1996 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1997 * Makefile.in : Regenerate.
1999 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2001 * po/fr.po: Updated version.
2003 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2005 * ldmain.c (main): Move .text readonly flag fudges from here..
2006 * ldlang.c (lang_process): ..to here.
2008 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2010 * ldlang.c (lang_check): Remove the word size check added in last
2011 change. Treat emitrelocations case as for relocatable links.
2013 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2015 * po/fr.po: Updated version.
2017 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2019 * ldlang.c (lang_check): Do relocatable link checks first, so that
2020 warn_mismatch can't override. Check compatible and word size too.
2022 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2024 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2026 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2028 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2031 2002-03-04 H.J. Lu <hjl@gnu.org>
2033 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2034 .fini_array in the data segment.
2036 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2038 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2040 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2042 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2043 .init_array, and .fini_array.
2045 2002-02-20 Andreas Schwab <schwab@suse.de>
2047 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2048 .IA64_unwind* in a relocatable link.
2050 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2052 * NEWS: Mark 2.12 branch.
2054 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2056 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2057 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2059 2002-02-18 Tom Rix <trix@redhat.com>
2061 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2062 (gld*_before_allocation): Same.
2063 (gld*_create_output_section_statements): Generate
2064 __rtinit if run time linking. Add librtl.a to the link.
2065 (gld*_read_file): Clean.
2067 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2069 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2071 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2073 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2074 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2075 and eelf64alpha_fbsd.
2076 * Makefile.in: Regenerate.
2077 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2078 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2079 use a FreeBSD-specific emulation rather than the psABI one.
2080 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2081 for all FreeBSD ELF systems.
2082 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2084 * emulparams/elf32ppc_fbsd.sh: Likewise.
2085 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2086 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2087 * emulparams/elf64alpha_fbsd.sh: Likewise.
2088 * emulparams/elf_i386_fbsd.sh: Likewise.
2089 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2091 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2093 * po/tr.po: Updated version.
2095 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2097 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2100 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2102 * emultempl/mmo.em (mmo_after_open): Don't call
2103 _bfd_mmix_check_all_relocs when producing ELF output.
2105 2002-02-15 Richard Henderson <rth@redhat.com>
2107 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2108 definition. Emit a unop+nop pair.
2110 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2112 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2113 for presence of .MMIX.reg_contents.linker_allocated before early
2116 * NEWS: Mention support for MMIX.
2118 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2120 Support arbitrary length fill patterns.
2121 * ld.texinfo (Output Section Fill): Describe fill expressions.
2122 (FILL): Refer to the above.
2123 * ldexp.h (etree_value_type): Add "str" field.
2124 (union etree_union): Add "str" to "value" struct.
2125 (exp_bigintop): Declare.
2126 (exp_get_fill): Declare.
2127 * ldexp.c: Include "safe-ctype.h".
2128 (exp_intop): Set value.str to NULL.
2129 (exp_bigintop): New function.
2130 (new_rel): Pass in "str", and set new.str from it.
2131 (new_rel_from_section): Set new.str to NULL.
2132 (fold_name): Adjust calls to new_rel.
2133 (exp_fold_tree): Likewise.
2134 (exp_get_fill): New function.
2135 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2136 (INT): Returns a "bigint". Adjust all code handling INTs.
2137 (fill_opt): Returns a "fill".
2138 (fill_exp): Split out of fill_opt, use for FILL.
2139 * ldlang.h (struct _fill_type): New.
2140 (fill_type): Move typedef to ldexp.h.
2141 (lang_output_section_statement_type): "fill" is now a pointer.
2142 (lang_fill_statement_type): Likewise.
2143 (lang_padding_statement_type): Likewise.
2144 (lang_add_fill): Now takes a "fill_type *" param.
2145 (lang_leave_output_section_statement): Likewise.
2146 (lang_do_assignments): Likewise.
2147 (lang_size_sections): Likewise.
2148 (lang_leave_overlay_section): Likewise.
2149 (lang_leave_overlay): Likewise.
2150 * ldlang.c: Include ldgram.h after ldexp.h.
2151 (lang_output_section_statement_lookup): Adjust for fill_type change.
2152 (print_fill_statement): Likewise.
2153 (print_padding_statement): Likewise.
2154 (insert_pad): Now takes a "fill_type *" arg.
2155 (size_input_section): Likewise.
2156 (lang_size_sections_1): Likewise.
2157 (lang_size_sections): Likewise.
2158 (lang_do_assignments): Likewise.
2159 (lang_add_fill): Likewise.
2160 (lang_leave_output_section_statement): Likewise.
2161 (lang_leave_overlay_section): Likewise.
2162 (lang_leave_overlay): Likewise.
2163 Adjust all callers of the above function.
2164 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2165 starting with "0X" as well as "0x". Return bigint.str for hex
2166 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2167 Always use base 16 for numbers starting with "$".
2168 * ldmain.c: Include ldgram.h after ldexp.h.
2169 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2170 of bfd_fill_link_order.
2171 * pe-dll.c: Adjust lang_do_assignments calls.
2172 * emultempl/elf32.em: Likewise.
2173 * emultempl/hppaelf.em: Likewise.
2174 * emultempl/ppc64elf.em: Likewise.
2175 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2176 lang_add_assignment call.
2177 * emultempl/pe.em: Likewise.
2179 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2181 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2182 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2183 the pattern in question is not a regexp.
2184 * ldlang.c: Likewise.
2185 * ldlang.h: Likewise.
2186 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2188 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2190 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2191 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2192 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2193 * ldexp.c (exp_data_seg): New variable.
2194 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2195 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2196 (exp_fold_tree): Handle DATA_SEGMENT_END.
2197 Pass allocation_done when recursing instead of hardcoding
2198 lang_allocating_phase_enum.
2199 * ldexp.h (exp_data_seg): New.
2200 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2201 (lang_size_sections): New.
2202 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2203 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2204 if COMMONPAGESIZE is defined.
2205 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2206 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2207 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2208 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2209 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2212 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2214 * Makefile.in: Regenerate.
2216 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2218 * lexsup.c: Remove strtoul declaration.
2220 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2222 * ldmain.c: Add prototype for main ().
2223 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2224 * emultempl/lnk960.em (lnk960_choose_target): Function should
2227 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2229 * ldlang.c (entry_section): New initialised variable.
2230 (lang_finish): Use it.
2231 * ldlang.h (entry_section): Declare.
2232 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2233 entry_section to ".opd".
2235 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2237 * ld.texinfo (Options): Add back in -nostdlib documentation,
2238 which had been inadvertently removed.
2240 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2242 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2243 register section vma to a sane value after emitting error. Make
2244 fatal conditions cause program exit when emitting message.
2246 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2248 * configure.tgt: Add or32-*-rtems target.
2250 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2252 Contribute sh64-elf.
2253 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2254 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2255 in OTHER_RELOCATABLE_SECTIONS.
2256 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2257 * emulparams/shelf32.sh (STACK_ADDR): Define.
2258 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2259 (OTHER_SECTIONS): this. Removed stack settings.
2260 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2261 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2262 2001-03-12 DJ Delorie <dj@redhat.com>
2263 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2264 relaxing if any shmedia or mixed sections are found.
2265 2001-03-07 DJ Delorie <dj@redhat.com>
2266 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2267 einfo. Gracefully decline to output to non-elf formats.
2268 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2269 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2270 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2271 * emulparams/shelf32.sh: Ditto.
2272 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2273 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2275 2001-01-10 Ben Elliston <bje@redhat.com>
2276 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2277 non-portable shell constructs. From Hans-Peter Nilsson.
2278 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2279 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2280 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2281 dependencies to the shell script include chain.
2282 * Makefile.in: Regenerate.
2283 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2284 * emultempl/sh64elf.em: Update and tweak comments.
2285 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2286 make a .cranges section SEC_IN_MEMORY.
2287 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2288 * emultempl/sh64elf.em
2289 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2290 .cranges section found to be necessary; continue and set stored
2291 section contents flags for sections with non-mixed contents.
2292 Use a struct sh64_section_data container and sh64_elf_section_data
2293 to store contents-type flags.
2294 Remove unused update of "isec".
2295 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2296 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2297 access contents-type flags. Assert that the associated container
2298 is initialized. Use that container, not elf_gp_size, to hold size
2299 of linker-generated cranges contents.
2300 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2301 * emultempl/sh64elf.em
2302 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2303 there's already a .cranges section. When section flag difference
2304 is found, don't NULL-check cranges a second time. Tweak comments.
2305 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2306 merging, not max size, as size of ld-generated .cranges contents.
2307 Don't set ELF section flags in output section. When checking for
2308 needed .cranges descriptors, don't use a variable; compare
2309 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2311 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2312 * emultempl/sh64elf.em: New file.
2313 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2314 * Makefile.in: Regenerate.
2315 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2316 (OTHER_RELOCATING_SECTIONS): Ditto.
2317 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2318 * emulparams/shlelf32.sh: Stub out all settings except
2319 OUTPUT_FORMAT. Source shelf32.sh.
2320 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2321 OTHER_RELOCATING_SECTIONS.
2322 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2323 * emulparams/shlelf64.sh: Stub out all settings except
2324 OUTPUT_FORMAT. Source shelf64.sh.
2325 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2326 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2328 (DATA_START_SYMBOLS): Define, provide ___data.
2329 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2330 for consecutive .data section.
2331 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2332 section after .data section.
2333 * emulparams/shlelf64.sh: Ditto.
2334 * emulparams/shelf32.sh: Ditto.
2335 (ALIGNMENT): Define to 8.
2336 * emulparams/shelf32.sh: Ditto.
2337 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2338 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2339 built-in linker scripts.
2340 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2341 * emulparams/shlelf64.sh: New.
2342 * emulparams/shelf64.sh: New.
2343 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2345 * Makefile.am: Add support for shlelf64 and shelf64.
2346 * Makefile.in: Regenerate.
2347 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2348 * configure.tgt (sh64-*-elf*): Add shelf as default.
2349 Add shlelf to targ_extra_emuls.
2350 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2351 * emulparams/shelf32.sh: New file.
2352 * emulparams/shlelf32.sh: New file.
2353 * Makefile.am: Add support for shlelf32 and shelf32.
2354 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2355 * Makefile.in: Regenerate.
2357 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2359 * ldlang.c (lang_reset_memory_regions): Rename from
2360 reset_memory_regions. Change all callers. Make public.
2361 * ldlang.h (lang_reset_memory_regions): Prototype.
2362 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2363 lang_reset_memory_regions before lang_size_sections.
2364 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2365 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2367 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2369 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2370 arithmetic when checking for too many global registers.
2372 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2374 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2375 (ehppanbsd.c): New rule.
2376 * Makefile.in: Regenerate.
2377 * configure.tgt (hppa*-*-netbsd*): New target.
2378 * emulparams/hppalinux.sh: Add comment to check other files
2379 that source this file it is modified, and list which
2381 * emulparams/hppanbsd.sh: New file.
2383 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2385 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2388 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2390 Support on-demand global register allocation from
2391 R_MMIX_BASE_PLUS_OFFSET relocs.
2392 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2393 mmix_set_reg_section_vma. Call
2394 _bfd_mmix_finalize_linker_allocated_gregs.
2395 (mmix_before_allocation): New function.
2396 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2397 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2398 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2399 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2400 before .MMIX.reg_contents.
2401 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2402 (mmo_after_open): New function.
2403 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2404 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2405 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2407 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2409 * emulparams/or32.sh: New file.
2410 * emulparams/or32elf.sh: New file.
2411 * scripttempl/or32.sc: New file.
2412 * configure.tgt : Add support for or32.
2413 * configure: Regenerate
2414 * Makefile.am: Add support for or32.
2415 * Makefile.in: Regenerate.
2416 * NEWS: Mention support for or32.
2417 * po/ld.pot: Regenerate.
2419 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2420 Mitch Lichtenberg <mpl@broadcom.com>
2422 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2423 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2424 reloc creation (ld --embedded-relocs).
2426 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2428 * configure: Regenerated.
2430 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2432 * Makefile.am (install): Depend on install-info.
2433 * Makefile.in: Regenerate.
2435 2002-01-26 Christian Rose <menthos@menthos.com>
2437 * ldmain.c (main): Use full sentences to ease translation.
2439 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2441 * po/fr.po: Updated version.
2443 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2445 * po/es.po: Updated version.
2447 2002-01-25 Andreas Jaeger <aj@suse.de>
2449 * ldlex.l (yy_input): Correct error check.
2451 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2453 * ldmisc.c (demangle): Put back dots when string not demangled.
2455 2002-01-22 Richard Henderson <rth@redhat.com>
2457 * emulparams/elf64alpha.sh (NOP): Use unop.
2459 2002-01-21 Andreas Jaeger <aj@suse.de>
2461 * ldlex.l: Use fread instead of read.
2463 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2465 * configure.tgt (ia64-*-netbsd*): New target.
2467 2002-01-21 H.J. Lu <hjl@gnu.org>
2469 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2471 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2473 2002-01-18 Andreas Jaeger <aj@suse.de>
2475 * ldver.c (ldversion): Update year.
2477 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2479 * po/ld.pot: Regenerate.
2481 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2483 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2484 * Makefile.in: Regenerate.
2485 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2486 * emultempl/ppc64elf.em: New file.
2488 2002-01-15 DJ Delorie <dj@redhat.com>
2490 * scripttempl/pe.sc: Add support for constructor priorities.
2492 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2494 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2495 * emulparams/avr23xx.sh: Likewise.
2496 * emulparams/avr4433.sh: Likewise.
2497 * emulparams/avr44x4.sh: Likewise.
2498 * emulparams/avr85xx.sh: Likewise.
2499 * emulparams/avrmega103.sh: Likewise.
2500 * emulparams/avrmega161.sh: Likewise.
2501 * emulparams/avrmega603.sh: Likewise.
2502 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2504 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2506 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2507 archive is excluded.
2509 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2511 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2512 (eshelf_nbsd.c): New rule.
2513 (eshlelf_nbsd.c): New rule.
2514 * Makefile.in: Regenerate.
2515 * configure.tgt (sh*le-*-netbsdelf*): New target.
2516 (sh*-*-netbsdelf*): New target.
2517 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2518 * ld/emulparams/shelf_nbsd.sh: New emulation.
2519 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2521 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2523 * po/es.po: New file: Spanish translation.
2524 * configure.in (ALL_LINGUAS): Add es.
2525 * configure: Regenerate.
2527 2002-01-06 John Marshall <jmarshall@acm.org>
2529 * ld.texinfo: Note that --emit-relocs is currently only
2530 implemented for ELF.
2532 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2534 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2535 of bfd_section_list_remove and bfd_section_list_insert macros.
2536 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2537 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2539 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2541 * configure.tgt (x86_64-*-netbsd*): New target.
2543 2001-12-21 Tom Rix <trix@redhat.com>
2545 (gld*_create_output_section_statements): New function.
2546 For -binitfini support.
2547 * emultempl/aix.em (gld*_before_parse): Fix comment.
2548 * emultempl/aix.em (gld*_parse_args): Fix comment.
2550 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2552 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2554 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2556 * configure.tgt (arm-*-netbsdelf*): Add target.
2557 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2558 * emulparams/armelf_nbsd.sh: Added.
2559 * Makefile.am: Add rules for earmelf_nbsd.
2560 * Makefile.in: Regenerate.
2562 2001-12-19 Andreas Jaeger <aj@suse.de>,
2563 Susanne Oberhauser <froh@suse.de>
2565 * configure.host: Add rules for x86_64-*linux-gnu. Change
2566 s390x-linux entry to use gcc to report configuration, replace gcc
2567 with $CC in s390-linux
2569 2001-12-19 Andreas Jaeger <aj@suse.de>
2571 * ld.texinfo (VERSION): Fix markup.
2573 2001-12-18 matthew green <mrg@eterna.com.au>
2575 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2576 (m68kelfnbsd.c): New rule.
2577 * Makefile.in: Regenerate.
2578 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2579 (m68*-*-netbsd*4k*): .. this.
2580 (m68*-*-netbsdelf*): New target.
2581 (m68*-*-netbsd*): Also include ELF support.
2582 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2583 * emulparams/m68kelfnbsd.sh: New emulation.
2585 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2587 * ldgram.y (vers_node): Support anonymous version tags.
2588 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2589 tag is not defined together with non-anonymous versions.
2590 * ld.texinfo: Document it.
2592 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2594 * po/tr.po: New file: Turkish translation.
2595 * configure.in (ALL_LINGUAS): Add tr.
2596 * configure: Regenerate.
2598 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2600 * Makefile.am: Add rules for eelf64alpha_nbsd.
2601 * Makefile.in: Regenerate.
2602 * configure.tgt (alpha*-*-netbsd*): Set
2603 targ_emul to elf64alpha_nbsd.
2604 * emulparams/elf64alpha_nbsd.sh: Added.
2606 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2608 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2609 section_tail when fiddling with section list.
2610 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2611 broken into separate strings to make translation easier.
2612 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2613 fiddling with section list.
2614 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2616 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2618 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2620 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2622 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2624 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2626 * emultempl/elf32.em (finish): Supply output_bfd
2627 to bfd_elf*_discard_info.
2628 (OPTION_EH_FRAME_HDR): Define.
2629 (longopts): Add --eh-frame-hdr.
2630 (parse_args): Handle it.
2631 (list_options): Add --eh-frame-hdr to help.
2632 * emultempl/hppaelf.em (finish): Supply output_bfd
2633 to bfd_elf*_discard_info.
2634 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2636 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2638 * lexsup.c (parse_args): Don't pass shortopts to second call to
2639 getopt functions. Restore optind rather than decrementing before
2640 second call. Remove errind as it now duplicates last_optind.
2642 2001-12-11 Christopher Faylor <cgf@redhat.com>
2644 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2646 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2647 Richard Henderson <rth@redhat.com>
2649 * Makefile.am: Add support for xstormy16.
2650 * configure.tgt: Add support for xstormy16.
2651 * Makefile.in: Regenerate.
2652 * emulparams/elf32xstormy16.sh: New file.
2653 * scripttempl/xstormy16.sc: New file.
2655 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2657 * Makefile.in (LIB_PATH): Make configurable.
2658 (GENSCRIPTS): Set LIB_PATH in environment.
2659 * configure.in: Substitute LIB_PATH.
2660 * configure: Regenerate.
2661 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2662 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2664 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2666 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2667 describing the -N option so that it is easier to translate into
2670 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2672 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2673 statements describing a single option with a single, newline
2674 escaped fprintf. This allows better translation into other
2677 * ldmain.c (add_archive_element): Combine multiple strings
2678 into a single string to permit better translation into other
2681 2001-12-05 Tom Rix <trix@redhat.com>
2683 * Makefile.am: Remove eaixppc64.
2684 * Makefile.in: Regenerate.
2686 2001-12-04 Tom Rix <trix@redhat.com>
2688 * emultempl/aix.em (choose_target): Change default target to
2689 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2691 (gld*_read_file): Fix typo.
2692 (change_symbol_mode): Add prototype.
2695 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2696 * emulparams/aixrs6.sh : Same.
2697 * emulparams/ppcmacos.sh : Same.
2698 * emulparams/aixppc64.sh : Delete file.
2699 * emultempl/aix.em : Formatting changes.
2701 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2703 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2704 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2706 (OTHER_END_SYMBOLS): Fix formatting.
2707 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2708 (OTHER_END_SYMBOLS): Fix formatting.
2710 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2712 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2714 2001-12-02 Tom Rix <trix@redhat.com>
2716 * configure.tgt : Remove eaixppc64 emulations.
2717 * Makefile.in : Remove eaixppc64.c
2718 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2719 (ldemul_default_target): Same.
2720 * emultempl/gld960.em (gld960_choose_target): Same.
2721 * emultempl/gld960c.em (gld960_choose_target): Same.
2722 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2723 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2724 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2725 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2726 * emultempl/aix.em (choose_target): New function. Handle emulation of
2729 2001-11-27 H.J. Lu <hjl@gnu.org>
2731 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2732 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2733 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2734 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2735 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2736 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2737 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2738 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2740 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2743 (REL_SDATA): Likewise.
2744 (REL_SBSS): Likewise.
2745 (REL_SDATA2): Likewise.
2746 (REL_SBSS2): Likewise.
2747 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2750 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2752 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2754 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2756 2001-11-22 H.J. Lu <hjl@gnu.org>
2758 * Makefile.in: Regenerated with automake based on automake
2759 1.4-8 in RedHat 7.1.
2761 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2763 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2764 (config.status): Delete rule.
2765 Add extra dependencies to cover sourced emulparams files.
2766 * Makefile.in: Regenerate.
2768 * scripttempl/elf.sc: Order <section>, <section>.* and
2769 corresponding linkonce sections as seen in input files.
2770 Formatting fixes. Zero vma of all sections if not relocating.
2771 (STACK): Define and insert if STACK_ADDR defined.
2772 (OTHER_RELOCATING_SECTIONS): Delete.
2773 (OTHER_END_SYMBOLS): Define.
2774 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2775 (OTHER_READWRITE_SECTIONS): Likewise.
2776 (OTHER_GOT_SECTIONS): Likewise.
2777 (OTHER_SDATA_SECTIONS): Likewise.
2778 (OTHER_BSS_SECTIONS): Likewise.
2779 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2780 (OTHER_READWRITE_SECTIONS): Likewise.
2781 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2782 (OTHER_READWRITE_SECTIONS): Likewise
2784 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2785 (STACK_ADDR): Define.
2786 * emulparams/armelf_oabi.sh: As for armelf.sh.
2787 * emulparams/elf32mcore.sh: As for armelf.sh.
2788 * emulparams/h8300elf.sh: As for armelf.sh.
2789 * emulparams/mn10200.sh: As for armelf.sh.
2790 * emulparams/shelf.sh: As for armelf.sh.
2792 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2793 (OTHER_END_SYMBOLS): Define.
2794 * emulparams/m32relf.sh: As for elf32fr30.sh.
2795 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2796 * emulparams/h8300self.sh: As for elf32fr30.sh.
2798 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2799 defines with RELOCATING test.
2800 (OTHER_SDATA_SECTIONS): Likewise.
2801 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2802 (OTHER_END_SYMBOLS): ..this.
2803 * emulparams/crislinux.sh: As for criself.sh.
2805 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2807 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2808 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2809 normal and linkonce sections as seen in input files.
2810 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2811 (TEXT_DYNAMIC): Likewise.
2812 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2813 (OTHER_SDATA_SECTIONS): Likewise.
2814 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2815 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2816 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2817 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2818 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2819 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2820 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2821 sections as seen in input files.
2822 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2823 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2825 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2826 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2827 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2828 (OTHER_SECTIONS): Instead, use this..
2829 (OTHER_END_SYMBOLS): ..and this.
2831 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2832 * emulparams/elf32bsmip.sh: Likewise.
2833 * emulparams/elf32btsmip.sh: Likewise.
2834 * emulparams/elf32ebmip.sh: Likewise.
2835 * emulparams/elf32lmip.sh: Likewise.
2836 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2837 * emulparams/elf32lsmip.sh: Likewise.
2838 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2839 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2840 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2841 * emulparams/elf64btsmip.sh: Likewise.
2842 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2843 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2844 * emulparams/elf32ppclinux.sh: Likewise.
2845 * emulparams/elf32ppcsim.sh: Likewise.
2846 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2847 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2848 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2849 * emulparams/h8300self.sh: Likewise.
2850 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2851 * emulparams/sh.sh: Comment.
2852 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2853 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2854 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2856 2001-11-21 David Heine <dlheine@tensilica.com>
2857 Alan Modra <amodra@bigpond.net.au>
2859 * ldlang.c (map_input_to_output_sections): Replace "break"
2860 accidentally removed with 2001-08-03 change.
2861 (lang_gc_sections_1): Likewise.
2863 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2865 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2867 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2869 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2870 of false when calling lang_size_sections.
2871 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2873 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2875 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2876 function when LDEMUL_FINISH isn't set to the same name. Don't
2877 call ${LDEMUL_FINISH}.
2878 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2879 * emultempl/armelf.em (arm_elf_finish): Call
2880 gld${EMULATION_NAME}_finish.
2881 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2882 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2883 hppaelf_layout_sections_again if necessary.
2884 (need_laying_out): New var.
2885 (hppaelf_layaout_sections_again): Rename to
2886 hppaelf_layout_sections_again. Clear need_laying_out.
2887 (PARSE_AND_LIST_OPTIONS): Format text.
2889 2001-11-14 H.J. Lu <hjl@gnu.org>
2891 * emultempl/armelf.em (arm_elf_finish): Renamed from
2892 gld${EMULATION_NAME}_finish.
2893 (LDEMUL_FINISH): Set to arm_elf_finish.
2895 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2897 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2898 (struct ld_emulation_xfer_struct): Use it.
2900 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2902 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2903 additional symbols referenced by newer crt0.o files from HP.
2905 2001-11-12 Anthony Green <green@redhat.com>
2907 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2909 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2911 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2912 * Makefile.in: Regenerate.
2914 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2916 * ld.texinfo: Use @command for commands, @option for options.
2917 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2919 * Makefile.in: Rebuild.
2921 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2923 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2924 Add support for targets.
2926 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2928 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2929 * configure: Regernate.
2930 * po/fr.po: New file.
2931 * po/sv.po: New file.
2933 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2935 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2936 as little endian default and to support big endian.
2938 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2940 * ld.texinfo (Options): Document new option, -nostdlib.
2941 * lexsup.c (OPTION_NOSTDLIB): New definition.
2942 (ld_options): Add entry for "nostdlib".
2943 (parse_args): Handle OPTIONS_NOSTDLIB.
2944 * ldfile.c (ldfile_add_library_path): Don't add directories
2945 to the search path if they weren't specified on the command line
2946 and -nostdlib was specified.
2947 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2949 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2951 * lexsup.c (parse_args): Prevent infinite parsing loop when
2952 "-rpath.a" is specified on the command line.
2953 Replace calls to fprintf with calls to einfo.
2955 2001-10-31 John Marshall <jmarshall@acm.org>
2957 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2958 appear only once across all the linker scripts involved in a link
2959 invocation no longer applies. Make the documentation reflect
2962 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2964 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2966 (sh-*-linux*): Added targ_extra_libpath.
2968 2001-10-31 David Heine <dlheine@tensilica.com>
2970 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2971 for padding statements.
2973 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2975 * configure.tgt (mmix-*-*): New target.
2976 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2977 Add dependencies to match.
2978 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2979 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2980 scripttempl/mmo.sc: New files.
2981 * gen-doc.texi: @set MMIX.
2982 * ld.texinfo: Ditto.
2983 [MMIX] Add MMIX node.
2984 * Makefile.in: Regenerate.
2986 2001-10-29 Kazu Hirata <kazu@hxi.com>
2988 * ldlang.c: Fix a comment typo.
2990 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2992 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2993 entries, and match *-*-linux*.
2995 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2997 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2998 with ldlex_script, ldlex_popstate.
2999 (ifile_p1): Likewise.
3000 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3002 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3003 to 1. Don't BEGIN(SCRIPT).
3004 (lex_redirect): Similarly.
3005 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3007 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3009 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3010 __EH_FRAME_END__ and accept eh frames into data section.
3011 Add ctor and dtor sections.
3013 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3015 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3016 (auto-export): Fix indentation.
3018 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3020 * pe-dll.c (autofilter_objectlist): Add startup objects
3022 (auto-export): Constify char * p.
3023 Extract file basename and use strcmp rather than ststr
3026 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3028 * ldmain.c (get_emulation): Improve comment about the handling
3031 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3033 * po/POTFILES.in: Regenerate.
3035 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3037 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3038 -z nocopyreloc and -z nocombreloc usage strings.
3040 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3042 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3045 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3047 * scripttempl/armaout.sc: Place .bss section after end of aligned
3048 data section to match behaviour of aout code in constructrion of
3051 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3053 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3054 startup files for mingw32 dlls to list.
3056 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3058 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3060 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3062 * configure.tgt (targ): Add arm9e-*-elf.
3064 2001-10-05 H.J. Lu <hjl@gnu.org>
3066 * genscripts.sh: Fix a typo in the last change.
3068 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3070 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3071 -z nocombreloc in usage.
3073 2001-10-03 Jim Blandy <jimb@redhat.com>
3075 * genscripts.sh: Include a comment at the top of each generated
3076 script, explaining its purpose.
3078 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3080 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3081 * NEWS: Mention -z nocopyreloc.
3082 * ld.texinfo (Options): Describe nocopyreloc.
3084 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3086 * configure: Regenerate.
3088 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3090 * ldver.h (ld_program_version): Remove declaration.
3091 * lexsup.c (parse_args): Move printing of copyright message..
3092 * ldver.c (ldversion): .. to here.
3093 Use BFD_VERSION_STRING in place of BFD_VERSION.
3094 (ld_program_version): Remove.
3095 * Makefile.am (Makefile): Depend on bfd/configure.in.
3097 * Makefile.in: Regenerate.
3099 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3101 * Makefile.am: Update dependencies with "make dep-am".
3102 * Makefile.in: Regenerate.
3104 2001-09-29 John Reiser <jreiser@BitWagon.com>
3106 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3107 * lexsup.c: Add --no-define-common commandline option.
3108 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3109 * ldlex.l: Likewise.
3110 * ld.h: Add command_line.inhibit_common_definition.
3111 * ldmain.c (main): Initialize.
3112 * ld.texinfo: Document.
3114 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3116 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3118 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3120 * ldmisc.c (USE_STDARG): Remove.
3121 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3126 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3127 declarations. Update copyright.
3129 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3131 * pe-dll.c: Remove obsoleted declaration of
3132 pe_get_data_import_dll_name.
3133 (pe_create_import_fixup): Fix thinko.
3135 * ld.texinfo(enable-auto-import): Clarify the explanation.
3137 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3139 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3140 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3141 DLL_SUPPORT controlled code.
3143 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3145 * emultempl/pe.em(pe_data_import_dll): Make static.
3146 (pe_get_data_import_dll_name): New accessor function.
3147 * pe-dll.c(pe_create_import_fixup): call
3148 pe_get_data_import_dll_name() from pe.em, instead of
3149 directly accessing pe_data_import_dll variable from pe.em.
3151 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3153 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3154 (def_file_add_directive): Use ISSPACE instead of isspace.
3155 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3156 isdigit/isxdigit/isalpha/isalnum.
3157 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3158 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3159 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3160 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3162 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3163 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3165 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3166 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3167 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3168 (ctor_prio): Use ISDIGIT instead of isdigit.
3169 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3170 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3171 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3173 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3174 (stricpy): Use TOLOWER instead of isupper/tolower.
3175 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3176 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3177 (lex_warn_invalid): Use ISPRINT instead of isprint.
3178 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3179 (main): For gettext, also set the LC_CTYPE locate facet.
3180 (add_keepsyms_file): Use ISSPACE instead of isspace.
3181 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3182 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3183 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3184 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3185 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3186 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3187 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3188 (quoteput): Use ISSPACE instead of isspace.
3189 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3192 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3194 * deffilep.y (def_stash_module): Constify "name" param.
3196 * pe-dll.c: Replace CONST with const throughout.
3197 (quick_symbol): Constify "n1", "n2", "n3" params.
3198 (make_singleton_name_thunk): Constify "import" param. Make
3199 "buffer_len" a size_t.
3200 (make_import_fixup_entry): Constify "name", "fixup_name",
3201 "dll_symname" params.
3202 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3203 (pe_get32): Likewise.
3204 (pe_implied_import_dll): Likewise.
3206 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3207 (sort_by_section_name): Likewise.
3209 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3210 (make_import_fixup): Cast printf arg, rel->address to long rather
3212 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3214 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3216 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3217 defines BufferSize. Increase buffer size by one.
3219 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3221 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3223 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3225 * configure.tgt: Add arm-openbsd target.
3227 2001-09-12 H.J. Lu <hjl@gnu.org>
3229 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3231 (ALL_64_EMULATIONS): Here.
3232 * Makefile.in: Regenerated.
3234 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3236 * emultempl/pe.em(make_import_fixup): change signature to
3237 take asection as well as arelec; we need this for proper
3238 error reporting. Only call pe_create_import_fixup() if
3239 there is no attempt to add a constant addend to the reloc;
3240 otherwise, report error condition.
3241 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3242 since final argument is a pointer to make_import_fixup().
3243 Change call to cb() to match make_import_fixup() signature.
3244 (make_import_fixup_mark): make buffer_len unsigned.
3245 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3247 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3249 * ld.texinfo: add verbose documentation for auto-import
3250 direct-addressing workaround, to compliment the terse
3253 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3255 * scripttempl/v850.sc: Add gcc_except_table sections.
3257 2001-09-11 Jeffrey A Law (law@cygnus.com)
3259 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3260 * emulparams/h8300self.sh: Similarly.
3262 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3264 * ld.texinfo (Options, --stack): Correct default value for stack
3267 2001-09-05 Tom Rix <trix@redhat.com>
3269 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3271 2001-09-03 Andreas Jaeger <aj@suse.de>
3273 * emultempl/beos.em: Declare prototypes for comparions functions,
3276 2001-09-02 Andreas Jaeger <aj@suse.de>
3278 * emultempl/aix.em: Add missing prototype.
3279 * emultempl/lnk960.em: Likewise.
3280 * emultempl/vanilla.em: Likewise.
3281 * emultempl/armcoff.em: Likewise.
3282 * emultempl/armelf_oabi.em: Likewise.
3283 * emultempl/beos.em: Likewise.
3284 * emultempl/gld960c.em: Likewise.
3285 * emultempl/gld960.em: Likewise.
3287 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3288 for prototype declaration.
3290 2001-08-31 Eric Christopher <echristo@redhat.com>
3291 Jason Eckhardt <jle@redhat.com>
3293 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3295 2001-08-31 Andreas Jaeger <aj@suse.de>
3297 * emultempl/pe.em: Add missing prototypes.
3298 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3299 pe_find_data_imports.
3300 (pr_sym): Add unused attribute.
3302 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3304 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3305 default from coff to elf.
3307 2001-08-29 Jeff Law <law@redhat.com>
3309 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3311 * emulparams/h8300self.sh: Similarly.
3313 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3315 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3317 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3318 * configure.tgt (h8300-*-elf*): New case.
3319 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3320 * emulparams/h8300self.sh: New file.
3321 * Makefile.in: Regenerated.
3323 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3325 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3328 2001-08-27 Linus Nordberg <linus@swox.com>
3329 Alan Modra <amodra@bigpond.net.au>
3331 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3332 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3334 * Makefile.in: Regenerate.
3335 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3336 entries to correct alphabetical position.
3337 * emulparams/elf64ppc.sh: New.
3338 * emulparams/elf64lppc.sh: New.
3340 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3342 * ldmain.c (main): Declare BSIZE as static.
3344 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3346 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3347 into .rel.dyn resp. .rela.dyn if combreloc.
3348 (get_script): If .x linker script is equal to .xn, only put it
3349 once into the binary.
3350 Add .xc and .xsc scripts.
3351 (parse_args): Handle -z combreloc and -z nocombreloc.
3352 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3353 For .xc and .xsc scripts put all .rel* or .rela* input sections
3354 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3355 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3357 Strip trailing whitespace from script.
3358 Generate .xc and .xsc scripts if requested.
3359 * ldmain.c (main): Initialize link_info.combreloc and
3360 link_info.spare_dynamic_tags.
3361 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3362 (ld_options): Add --spare-dynamic-tags option.
3363 (parse_args): Likewise.
3364 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3365 * ldint.texinfo: Document .xc and .xsc linker scripts.
3366 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3368 2001-08-22 H.J. Lu <hjl@gnu.org>
3370 * emulparams/elf32fr30.sh: Add a newline.
3372 2001-08-21 Andreas Jaeger <aj@suse.de>
3374 * deffilep.y: Add missing prototypes.
3375 * pe-dll.c: Likewise.
3377 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3379 * ldlang.c (insert_pad): Fix typos in last patch.
3381 * ldlang.c: When traversing lang_statement_union_type lists,
3382 consistently use "header.next" rather than "next".
3383 * mpw-eppcmac.c: Likewise.
3384 * emultempl/beos.em: Likewise.
3385 * emultempl/hppaelf.em: Likewise.
3386 * emultempl/pe.em: Likewise.
3387 * ldlang.h (union lang_statement_union): Remove "next" field.
3389 * ldlang.c (insert_pad): Use offsetof macro.
3390 (lang_size_sections): Always neuter padding statements.
3391 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3393 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3394 passed to lang_size_sections.
3395 (pe_exe_fill_sections): Likewise.
3396 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3397 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3399 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3401 * emultempl/aix.em: Formatting fixes.
3403 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3405 * ldlang.c (insert_pad): Make use of an existing pad statement if
3406 available. Move code calculating alignment, adjusting section
3407 alignment power, and adjusting dot to ..
3408 (size_input_section): .. here. Remove unused relax param.
3409 (lang_size_sections): Change boolean `relax' param to boolean *.
3410 Adjust call to size_input_section. Make use of insert_pad to
3411 place pad after the assignment statement. If relaxing, zap
3413 (reset_memory_regions): Reset output_bfd section sizes too.
3414 (relax_again): Move to..
3415 (lang_process): ..here. Adjust call to lang_size_sections, and
3416 remove duplicated code.
3417 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3419 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3421 * ld.texinfo: Document that fill values now use the four least
3423 * emulparams/elf32fr30.sh (NOP): Update.
3424 * emulparams/elf32mcore.sh: Likewise.
3425 * emulparams/elf64_s390.sh: Likewise.
3426 * emulparams/elf_i386.sh: Likewise.
3427 * emulparams/elf_i386_be.sh: Likewise.
3428 * emulparams/elf_i386_chaos.sh: Likewise.
3429 * emulparams/elf_i386_ldso.sh: Likewise.
3430 * emulparams/elf_s390.sh: Likewise.
3431 * emulparams/elf_x86_64.sh: Likewise.
3432 * emulparams/i386moss.sh: Likewise.
3433 * emulparams/i386nw.sh: Likewise.
3434 * emulparams/m68kelf.sh: Likewise.
3435 * scripttempl/elf.sc: Update NOP comment.
3436 * scripttempl/elfi370.sc: Likewise.
3437 * scripttempl/elfm68hc11.sc: Likewise.
3438 * scripttempl/elfm68hc12.sc: Likewise.
3439 * scripttempl/nw.sc: Likewise.
3441 2001-08-15 Tom Rix <trix@redhat.com>
3443 * ldgram.y (saved_script_handle): Initialize to NULL.
3444 * ldmain.c (main): Change check on saved_script_handle.
3446 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3448 * emultempl/elf32.em: Formatting fixes.
3449 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3450 looking at sec->owner.
3451 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3452 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3453 unused code, and reorganize orphan section placement code.
3455 * ldlang.c (wild_doit): Rename to lang_add_section.
3456 * ldlang.h: Here too.
3457 * mpw-elfmips.c: And here.
3458 * emultempl/beos.em: And here.
3459 * emultempl/elf32.em: And here.
3460 * emultempl/hppaelf.em: And here.
3461 * emultempl/pe.em: And here.
3463 2001-08-13 Richard Henderson <rth@redhat.com>
3465 * emultempl/needrelax.em: New file.
3466 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3467 * Makefile.am (eelf64_ia64.c): Depend on it.
3468 * Makefile.in: Rebuild.
3470 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3472 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3473 output_section is set non-NULL.
3475 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3476 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3477 needlessly create an output_section_statement. Treat a correctly
3478 named output_section_statement with NULL bfd_section as compatible.
3480 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3482 * emultempl/generic.em: Support EXTRA_EM_FILE.
3483 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3484 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3485 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3486 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3487 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3488 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3489 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3490 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3491 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3492 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3494 2001-08-12 Richard Henderson <rth@redhat.com>
3496 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3497 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3498 scripttempl/v850.sc: Keep .jcr data.
3500 2001-08-12 H.J. Lu <hjl@gnu.org>
3501 Andrew Haley <aph@cambridge.redhat.com>
3502 Nick Clifton <nickc@redhat.com>
3504 * ldgram.y (had_script): Change name to saved_script_handle.
3505 Change type to file handle.
3506 * ld.h (had_script): Rename and retype.
3507 * ldfile.c (ldfile_open_command_file): Save the file handle
3508 used in saved_script_handle.
3509 * lexsup.c (parse_args): Do not allow -c option to alter
3510 saved_script_handle.
3511 * ldmain.c (main): Print out the linker script used if
3512 --verbose is given. Check saved_script_handle to obtain the
3513 external linker script used, or if NULL, dump the builtin
3515 * ld.texinfo: Document that --verbose now dumps the linker
3516 script used, regardless of whether it was an internal or an
3519 2001-08-10 Andreas Jaeger <aj@suse.de>
3521 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3523 * configure: Regenerate.
3525 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3527 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3529 * scripttempl/elf.sc: Move non-text .dynamic section before
3530 .plt/.got/.sdata* group.
3531 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3532 (OTHER_SDATA_SECTIONS): Add.
3533 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3535 * emulparams/crislinux.sh: Likewise.
3536 * emulparams/elf32b4300.sh: Likewise.
3537 * emulparams/elf32bmip.sh: Likewise.
3538 * emulparams/elf32bmipn32.sh: Likewise.
3539 * emulparams/elf32bsmip.sh: Likewise.
3540 * emulparams/elf32btsmip.sh: Likewise.
3541 * emulparams/elf32ebmip.sh: Likewise.
3542 * emulparams/elf32elmip.sh: Likewise.
3543 * emulparams/elf32l4300.sh: Likewise.
3544 * emulparams/elf32lmip.sh: Likewise.
3545 * emulparams/elf32lsmip.sh: Likewise.
3546 * emulparams/elf32ltsmip.sh: Likewise.
3547 * emulparams/elf64bmip.sh: Likewise.
3548 * emulparams/elf64btsmip.sh: Likewise.
3549 * emulparams/elf64ltsmip.sh: Likewise.
3551 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3553 * genscripts.sh: Source the emulparams script before each output
3554 script is generated so that variables like `RELOCATING' may affect
3555 variables defined in the emulparams script.
3557 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3559 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3562 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3563 ie. iterate over wild_statement.section_list.
3564 (gld${EMULATION_NAME}_place_orphan): Likewise.
3566 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3568 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3569 .fini[0-4] sections used by _exit
3570 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3571 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3572 * scripttempl/elfm68hc11.sc: Likewise.
3574 2001-08-03 H.J. Lu <hjl@gnu.org>
3576 * emultempl/beos.em (init): Add the missing initialization.
3578 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3580 * ld.texinfo (Input Section Basics): Clarify ordering of output
3582 * ldlang.c (callback_t): Add wildcard_list param.
3583 (walk_wild_section): Remove "section" param. Rewrite for
3584 lang_wild_statement_type change. Remove unique_section_p test.
3585 (walk_wild_file): Remove "section" param.
3586 (walk_wild): Remove "section" and "file" params.
3587 (lang_gc_wild): Likewise.
3588 (wild): Likewise. Modify for lang_wild_statement_type change.
3589 (wild_sort): Likewise. Add "sec" param.
3590 (gc_section_callback): Likewise.
3591 (output_section_callback): Likewise. Do unique_section_p test.
3592 (map_input_to_output_sections): Modify call to wild.
3593 (lang_gc_sections_1): Likewise.
3594 (print_wild_statement): Modify for lang_wild_statement_type
3596 (lang_add_wild): Replace filename, filenames_sorted param with
3597 filespec. Replace section_name, sections_sorted,
3598 exclude_filename_list with section_list.
3599 * ldlang.h (lang_add_wild): Here too.
3600 (lang_wild_statement_type): Replace section_name, sections_sorted,
3601 and exclude_filename_list with section_list.
3602 * ldgram.y (current_file): Delete.
3603 (%union): Add wildcard_list.
3604 (file_NAME_list): Set type to wildcard_list. Build a linked list
3605 rather than calling lang_add_wild for each entry.
3606 (input_section_spec_no_keep): Call lang_add_wild here instead.
3607 * ld.h (struct wildcard_list): Declare.
3608 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3610 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3612 * ldmain.c (main): initialize link_info.pei386_auto_import
3613 * pe-dll.c: new tables for auto-export filtering
3614 (auto_export): change API, pass abfd for contextual filtering.
3615 Loop thru tables of excluded symbols instead of comparing
3618 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3620 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3621 static variable current_sec (static struct sec *). Add
3622 forward declaration for add_bfd_to_link.
3623 (process_def_file): Don't export undefined symbols. Do not
3624 export symbols starting with "_imp__". Call auto_export()
3626 (pe_walk_relocs_of_symbol): New function.
3627 (generate_reloc): add optional extra debugging
3628 (pe_dll_generate_def_file): eliminate extraneous initial blank
3630 (make_one): enlarge symtab to make room for __nm__ symbols
3631 (DATA auto-import support).
3632 (make_singleton_name_thunk): New function.
3633 (make_import_fixup_mark): New function.
3634 (make_import_fixup_entry): New function.
3635 (pe_create_import_fixup): New function.
3636 (add_bfd_to_link): Specify that 'name' argument is a CONST
3638 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3639 declare new functions pe_walk_relocs_of_symbol and
3640 pe_create_import_fixup.
3641 * emultempl/pe.em: add new options --enable-auto-import,
3642 --disable-auto-import, and --enable-extra-pe-debug.
3643 (make_import_fixup): New function.
3644 (pe_find_data_imports): New function.
3645 (pr_sym): New function.
3646 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3647 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3650 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3652 * ld.texinfo: add additional documentation for
3653 --export-all-symbols. Document --out-implib,
3654 --enable-auto-image-base, --disable-auto-image-base,
3655 --dll-search-prefix, --enable-auto-import, and
3656 --disable-auto-import.
3657 * ldint.texinfo: Add detailed documentation on auto-import
3660 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3662 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3665 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3667 * Makefile.am: Update dependencies with "make dep-am".
3668 * Makefile.in: Regenerate
3670 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3672 * ldcref.c (check_section_sym_xref): New function.
3673 (check_nocrossrefs): Call it.
3674 (check_nocrossref): Interate over h->refs here instead of..
3675 (check_refs): ..here. Pass in the symbol name, section, and bfd
3676 rather than hash_entry pointers.
3677 (struct check_refs_info): Keep symbol name rather than hash entry.
3679 (check_reloc_refs): Tweak for above changes in check_refs_info.
3680 Only report references to section syms when symname is NULL to
3681 prevent duplicate messages for the same reloc.
3683 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3685 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3686 available. Do not print NULL trees.
3687 (exp_print_token): Print unknown tokens with values > 126 as
3688 decimal values not ASCII characters.
3690 * ldlang.c (lang_leave_overlay): If a region is specified assign
3691 it to all sections inside the overlay unless they have been
3692 assigned to the own, non-default, memory region.
3694 * README: Add header for consistency with other README files.
3696 2001-07-14 H.J. Lu <hjl@gnu.org>
3698 * emultempl/elf32.em (output_prev_sec_find): Never return
3699 bfd_abs_section_ptr, bfd_com_section_ptr nor
3700 bfd_und_section_ptr.
3702 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3704 * Makefile.am (em32relf.c): Change dependency from generic.em to
3706 * Makefile.in: Regenerate.
3708 2001-07-14 matthew green <mrg@eterna.com.au>
3710 * configure.tgt (i386-*-netbsdelf*): New target.
3711 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3713 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3715 * emultempl/elf32.em (output_prev_sec_find): New.
3716 (place_orphan): Use it.
3718 2001-07-11 H.J. Lu <hjl@gnu.org>
3720 * ldmain.c (main): Fix typos in the last change.
3722 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3724 * ldmain.c (main): Disallow -F and -f without -shared.
3726 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3728 * emultempl/pe.em (after_open): Check for the output_bfd not
3729 having any coff_data structure allocated to it.
3731 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3733 * emultempl/elf32.em: Do not assuming that contents of the buffer
3734 returned from basename function will remain unchanged accross other
3737 2001-07-03 H.J. Lu <hjl@gnu.org>
3739 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3740 2001-07-03. It creates dynamic entries even for static binaries.
3742 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3744 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3745 (DYNAMIC): Use it to reserve few dynamic entries for
3748 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3750 * emulparams/hppa64linux.sh: New file.
3751 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3752 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3753 (ehppa64linux.c): Add rule to make it.
3755 * Makefile.in: Regenerate.
3757 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3759 * ld.texinfo (Options, -r): Mention restrictions when using
3760 different object formats.
3762 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3764 * ldlang.c (lang_check): Emit fatal error if relocatable link
3765 between different object flavours with relocations in input.
3767 2001-06-19 H.J. Lu <hjl@gnu.org>
3769 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3770 (--version-script): Mention the language support.
3772 2001-06-19 H.J. Lu <hjl@gnu.org>
3774 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3776 2001-06-18 H.J. Lu <hjl@gnu.org>
3778 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3779 (diststuff): Add $(MANS).
3780 * Makefile.in: Regenerated.
3784 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3786 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3787 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3788 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3789 * ld.h (args_type): Remove member export_dynamic. All users
3790 changed to use struct bfd_link_info member.
3792 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3793 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3794 * Makefile.in: Regenerate.
3796 2001-06-18 H.J. Lu <hjl@gnu.org>
3798 * ldlang.c (init_os): Add the newline to the einfo call.
3799 (lang_check): Likewise.
3800 (lang_do_version_exports_section): Likewise.
3802 2001-06-15 H.J. Lu <hjl@gnu.org>
3804 * lexsup.c (parse_args); Save optind to report unrecognized
3807 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3809 * ldlang.c (lang_check): Emit fatal error if relocatable link
3810 between different object flavours.
3812 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3813 Set new link_info member export_dynamic.
3814 * ldmain.c (main): Initialize new link_info member export_dynamic.
3816 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3818 * ldlang.c (walk_wild): Only call walk_wild_file if
3819 lookup_name returns something.
3820 (lookup_name): If load_symbols fails, return NULL.
3821 (load_symbols): Change to a boolean function.
3822 (open_input_bfds): If load_symbols fails then do not make the
3825 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3827 * ldlang.c (record_bfd_errors): Remove.
3829 * emultempl/aix.em: Fix copyright dates.
3831 2001-06-07 Andreas Jaeger <aj@suse.de>
3833 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3834 (TEXT_START_ADDR): Likewise.
3836 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3838 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3840 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3842 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3844 2001-05-31 H.J. Lu <hjl@gnu.org>
3846 * ldlang.c (open_input_bfds): Don't change the bfd error
3847 handler whilst loading symbols.
3849 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3851 * configure.tgt: Remove i370-mvs architecture, it is not currently
3854 2001-05-25 H.J. Lu <hjl@gnu.org>
3856 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3857 like emulparams/aixppc.sh.
3859 2001-05-25 H.J. Lu <hjl@gnu.org>
3861 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3862 setting of output_filename after bfd_scan_arch.
3863 * emultempl/pe.em: Likewise.
3865 2001-05-25 H.J. Lu <hjl@gnu.org>
3867 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3868 like emulparams/aixppc.sh.
3870 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3871 instead of ${srcdir}/emultempl/stringify.sed.
3873 2001-05-25 Timothy Wall <twall@oculustech.com>
3875 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3878 2001-05-25 Alan Modra <amodra@one.net.au>
3880 * configure.host: Replace linuxoldld with linux*oldld.
3881 * configure.tgt: Likewise.
3883 2001-05-24 H.J. Lu <hjl@gnu.org>
3885 * emultempl/stringify.sed: Removed again.
3887 2001-05-24 H.J. Lu <hjl@gnu.org>
3889 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3890 (gld${EMULATION_NAME}_before_parse): Initialize
3891 ldfile_output_architecture, ldfile_output_machine and
3892 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3893 * emultempl/beos.em: Likewise.
3894 * emultempl/elf32.em: Likewise.
3895 * emultempl/linux.em: Likewise.
3896 * emultempl/mipsecoff.em: Likewise.
3897 * emultempl/pe.em: Likewise.
3898 * emultempl/sunos.em: Likewise.
3900 2001-05-24 Tom Rix <trix@redhat.com>
3902 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3903 udate import file format.
3904 (change_symbol_mode) New, same
3905 (is_syscall) New, same
3906 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3907 * emulparams/aixppc64.sh : same
3908 * emulparams/aixrs6.sh : same
3909 * emulparams/ppcmacos.sh : same
3910 * emultempl/aix.em : use strtoull to parse options
3911 * Makefile.am : add eaixppc64 emulation for xcoff64
3912 * Makefile.in : same
3913 * configure.tgt : same
3915 * scripttempl/aix.sc : default text section offset to 0x10000000
3916 default data section offset to 0x20000000
3917 add .sv3264 and .sv64 pseudo sections
3918 loader and debug sections use the currect section offset.
3920 * emultempl/aix.em : Add xcoff64 support
3921 Add -binitfini support
3922 (gld${EMULATION_NAME}_before_parse) -binitfini
3923 (gld${EMULATION_NAME}_parse_args) same
3924 (gld${EMULATION_NAME}_before_allocation) format change for special
3927 * emulparams/aixppc64.sh : New file for xcoff64 support
3929 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3931 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3932 variable to avoid non-portable shell construct.
3934 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3936 * ldmain.c (get_emulation): Add -mips5 command line argument.
3938 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3940 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3941 (ELF_INTERPRETER_NAME): Define it.
3942 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3944 * configure.tgt (targ_emul, targ_extra_emuls)
3945 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3946 as primary, elf_i386 as extra.
3947 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3948 (eelf_i386_ldso.c): New rule.
3949 * Makefile.in: Rebuilt.
3951 2001-05-22 Nick Clifton <nickc@redhat.com>
3953 * lexsup.c (ld_options): Allow -I to be an alias for
3954 --dynamic-linker. This is for Solaris compatability.
3955 * ld.texinfo: Document that -I can be used.
3958 2001-05-16 Alan Modra <amodra@one.net.au>
3960 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3961 whether an input section is the first one assigned to an output
3963 Assorted formatting fixes.
3965 2001-05-14 DJ Delorie <dj@delorie.com>
3967 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3968 * Makefile.in: Ditto.
3970 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3972 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3973 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3975 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3977 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3979 * ldlang.c (lang_process): Call bfd_merge_sections.
3981 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3983 * ldgram.y: Fix typo.
3985 2001-05-03 H.J. Lu <hjl@gnu.org>
3987 * emultempl/elf32.em: Include "libiberty.h".
3988 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3989 basename of the bfd filename.
3990 (gld${EMULATION_NAME}_stat_needed): Likewise.
3991 (gld${EMULATION_NAME}_try_needed): Likewise.
3992 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3994 2001-05-02 H.J. Lu <hjl@gnu.org>
3996 * emultempl/pe.em: Include <ctype.h>.
3998 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4000 * emulparams/elf32openrisc.sh: New file.
4002 * Makefile.am: Add OpenRISC target.
4003 * Makefile.in: Regenerated.
4005 * configure.tgt: Add openrisc-*-* mapping.
4007 2001-05-02 Nick Clifton <nickc@redhat.com>
4009 * emultempl/aix.em: Replace buystring with xstrdup.
4010 * emultempl/beos.em: Replace buystring with xstrdup.
4012 2001-05-02 H.J. Lu <hjl@gnu.org>
4014 * ldfile.c: Include "libiberty.h".
4015 * ldlex.l: Likewise.
4017 * ldmisc.c (buystring): Removed.
4018 * ldmisc.h: Likewise.
4020 * ldfile.c: Replace buystring with xstrdup.
4021 * ldlang.c: Likewise.
4022 * ldlex.l: Likewise.
4023 * ldmain.c: Likewise.
4024 * ldmisc.c: Likewise.
4025 * lexsup.c: Likewise.
4026 * mpw-eppcmac.c: Likewise.
4028 2001-04-30 Andreas Jaeger <aj@suse.de>
4030 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4032 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4034 * ldlang.c (load_symbols): Give emulation a chance
4035 to process unrecognized file before fatal error is
4036 reported, not after.
4038 2001-04-27 Sean McNeil <sean@mcneil.com>
4040 * configure.tgt: Add arm-vxworks target.
4041 * scripttempl/armcoff.sc: Support .text or .data as a section name
4045 2001-04-13 J.T. Conklin <jtc@redback.com>
4047 * ld.texinfo: Document --fatal-warnings.
4050 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4051 warnings have been turned into errors.
4052 * lexsup.c (OPTION_WARN_FATAL): Define.
4053 (ld_options): Entry for --fatal-warnings.
4054 (parse_args): Handle OPTION_WARN_FATAL.
4055 * ld.h (ld_config_type): Add fatal_warnings field.
4057 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4059 * ldmain.c (main): Default to discard_sec_merge.
4060 * lexsup.c (OPTION_DISCARD_NONE): Define.
4061 (ld_options): Add --discard-none.
4062 (parse_args): Handle OPTION_DISCARD_NONE.
4063 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4064 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4065 all its input sections match.
4067 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4069 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4070 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4071 (eelf32ltsmip.c): New target.
4072 (eelf64btsmip.c): Likewise.
4073 (eelf64ltsmip.c): Likewise.
4074 * Makefile.in: Regenerated.
4076 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4078 (mips*-*-linux-gnu*): Likewise.
4080 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4082 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4084 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4087 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4089 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4090 correct value of __Stext here.
4091 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4094 * emulparams/crislinux.sh: Remove FIXME.
4096 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4098 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4099 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4101 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4103 * configure.tgt (cris-*-*): Change default emulation to criself.
4104 (cris-*-*aout*): New rule.
4106 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4108 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4109 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4111 2001-03-26 Andreas Jaeger <aj@suse.de>
4113 * ld.texinfo (Overview): Fix syntax in texi code.
4115 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4117 * ld.texinfo: Put @c man indications to generate the ld man page.
4118 When generating man, define all the variables. Define SEEALSO
4119 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4120 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4121 (ld.1): Generate from ld.texinfo.
4122 * Makefile.in: Regenerate.
4124 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4126 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4127 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4129 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4131 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4132 is an absolute path look only for this file and not along the path.
4134 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4136 * emultempl/elf32.em (OPTION_GROUP): New macro.
4137 Add new option Bgroup to longopts.
4138 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4139 (gld*_list_options): Add -Bgroup and -z defs.
4140 * ld.1: Document -Bgroup and -z defs.
4141 * ld.texinfo: Likewise.
4143 2001-03-07 Michael Meissner <meissner@redhat.com>
4145 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4146 with sections created by -fdata-sections.
4147 (.dynbss,.bss): Ditto.
4149 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4151 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4152 after_allocation_default, not gld..._before_allocation.
4154 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4156 * configure.in (BFD_VERSION): New.
4157 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4158 * configure: Regenerate.
4159 * Makefile.am: Run "make dep-am"
4160 * Makefile.in: Regenerate.
4162 2001-02-26 Timothy Wall <twall@cygnus.com>
4164 * emulparams/elf64_aix.sh: Add additional read-only sections;
4165 uncomment lines which are now required.
4167 2001-02-26 H.J. Lu <hjl@gnu.org>
4169 * ldlang.c (open_input_bfds): Set the bfd error handler so
4170 that problems can be caught whilst loading symbols.
4171 (record_bfd_errors): New function: Report BFD errors and mark
4172 the executable output as being invalid.
4174 2001-02-22 Timothy Wall <twall@cygnus.com>
4176 * configure.host: Add configuration for ia64-*-aix*.
4177 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4178 Add dependencies for eelf64_aix.c.
4179 * Makefile.in: Regenerate.
4180 * configure.tgt: Add ia64-*-aix* mapping.
4181 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4183 2001-02-20 H.J. Lu <hjl@gnu.org>
4185 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4186 false if we found the file.
4188 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4190 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4191 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4193 2001-02-18 lars brinkhoff <lars@nocrew.org>
4195 * Makefile.am: Add PDP-11 target.
4196 * configure.tgt: Likewise.
4197 * emulparams/pdp11.sh: New file.
4199 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4201 * configure.host: Add a generic FreeBSD configuration entry such that
4202 all [modern] FreeBSD systems on all platforms will look the same.
4204 2001-02-14 H.J. Lu <hjl@gnu.org>
4206 * configure.tgt: Remove mention of earmelf_linux26.
4208 2001-02-13 Richard Henderson <rth@redhat.com>
4210 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4212 2001-02-13 H.J. Lu <hjl@gnu.org>
4214 * ldexp.h (node_type): Add etree_provided.
4215 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4216 type to etree_provided if defined by PROVIDE. Allow updating
4218 (exp_print_tree): Handle etree_provided.
4219 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4222 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4224 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4225 .IA_64.unwind.* pattern to unwind table section and
4226 .IA_64.unwind_info* pattern to unwind info section.
4228 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4230 * Makefile.am: Add linux target for S/390.
4231 * Makefile.in: Likewise.
4232 * configure.host: Likewise.
4233 * configure.tgt: Likewise.
4234 * emulparams/elf64_s390.sh: New file.
4235 * emulparams/elf_s390.sh: New file.
4237 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4239 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4241 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4243 2001-02-06 Philip Blundell <philb@gnu.org>
4245 * Makefile.am: Remove mention of earmelf_linux26.
4246 * Makefile.in: Regenerate.
4248 2001-02-04 Philip Blundell <philb@gnu.org>
4250 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4251 * emulparams/armelf_linux26.sh: Delete.
4252 * configure.tgt: Remove mention of armelf_linux26 emulation.
4254 2001-02-01 Nick Clifton <nickc@redhat.com>
4256 * ld.1: Replace occurances of -oformat with --oformat.
4258 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4260 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4261 load_base is specified.
4263 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4265 * emultempl/elf32.em: Correct spelling in comments and listed
4268 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4270 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4271 default for the first section of a group of overlay sections.
4273 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4275 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4276 * Makefile.in: Regenerate.
4277 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4278 Check for null tool_dir.
4280 2001-01-16 Jim Wilson <wilson@redhat.com>
4282 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4283 and IA_64.unwind.info.
4285 2001-01-16 H.J. Lu <hjl@gnu.org>
4287 * ldlang.c (lang_check): Merge the private data only if the
4288 input file has contents.
4290 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4292 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4294 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4295 enabling search for libmilli. On a relocatable link, make .text
4297 (LDEMUL_AFTER_PARSE): Define.
4298 (hppaelf_finish): Correct spelling of relocatable in comments.
4300 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4301 rummage through the script for sections on the unique list.
4302 Correct length of strncmp for ".note".
4303 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4305 * ldlang.c (unique_section_list): New var.
4306 (unique_section_p): New function.
4307 (walk_wild_section): Don't match sections on unique_section_list.
4308 (lang_add_unique): New function.
4309 Correct spelling of relocatable in comments.
4311 * ldlang.h (struct unique_sections): Declare.
4312 (unique_section_list): Declare.
4313 (unique_section_p): Declare.
4314 (lang_add_unique): Declare.
4316 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4317 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4319 * ld.texinfo (--unique): Update.
4321 2001-01-13 Nick Clifton <nickc@redhat.com>
4323 * lexsup.c (parse_args): Remove spurious white space.
4325 2001-01-12 Nick Clifton <nickc@redhat.com>
4327 * lexsup.c (parse_args): Update copyright date.
4329 2001-01-12 Philip Blundell <pb@futuretv.com>
4331 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4333 2001-01-10 Kazu Hirata <kazu@hxi.com>
4335 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4336 * scripttempl/h8300h.sc: Fix formatting.
4337 * scripttempl/h8300s.sc: Likewise.
4338 * scripttempl/h8500.sc: Likewise.
4339 * scripttempl/h8500b.sc: Likewise.
4340 * scripttempl/h8500c.sc: Likewise.
4341 * scripttempl/h8500m.sc: Likewise.
4342 * scripttempl/h8500s.sc: Likewise.
4344 2000-01-07 David O'Brien <obrien@BSDi.com>
4346 * emultempl/elf32.em: Only perform Linux ld hints processing when
4349 2001-01-07 Philip Blundell <philb@gnu.org>
4351 * ld.texinfo (Bug Reporting): Update email address for reports.
4353 2000-12-31 Nick Clifton <nickc@redhat.com>
4355 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4356 options by checking for a return value of '?' not -1.
4358 2000-12-28 Nick Clifton <nickc@redhat.com>
4360 * lexsup.c (struct ld_option): Add new enum value:
4362 (ld_options[]): Change -omagic, -output and -oformat options
4363 to be EXACTLY_TWO_DASHES.
4364 (OUTPUT_COUNT): Use ARRAY_SIZE.
4365 (parse_args): Change parameter 'argc' to unsigned.
4366 Place EXACTLY_TWO_DASHES options into new really_longopts
4368 If getopt_long_only fails, try calling getopt_long using the
4369 really_longopts array.
4370 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4373 * ldlex.h: Fix prototype of parse_args.
4375 * ld.texinfo: Document that long options starting with 'o'
4376 must be preceeded by two dashes. Change example of a single
4377 dashed long option from -oformat to -trace-symbol.
4379 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4381 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4382 (longopts[]): New --no-default-excludes option.
4383 (gld_${EMULATION_NAME}_list_options): Document.
4384 (gld_${EMULATION_NAME}_parse_args): Handle.
4386 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4388 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4389 whitespace, it breaks the K&R C preprocessor.
4391 2000-12-11 DJ Delorie <dj@redhat.com>
4393 * ld.texinfo: Add notes about --whole-archive and gcc.
4395 2000-11-18 Fred Fish <fnf@be.com>
4397 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4398 (ld_options): Entry for --allow-shlib-undefined.
4399 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4400 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4402 * ld.texinfo: Document new command line switch.
4404 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4406 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4407 .fixup is actually read/write.
4408 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4409 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4410 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4412 2000-12-11 Jan Hubicka <jh@suse.cz>
4414 * NEWS: Add note about x86_64 architecture.
4416 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4418 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4419 Set DWARF2 sections to a VMA of zero.
4421 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4423 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4425 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4426 (sparc*-*-rtems*): Switched from a.out to ELF.
4428 2000-11-30 Jan Hubicka <jh@suse.cz>
4430 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4431 (eelf_x86_64.c): New.
4432 * Makefile.in: Regenerate.
4433 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4434 * emulparams/elf_x86_64.sh: New.
4436 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4438 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4439 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4441 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4442 merging non-a.out sections into CONSTRUCTING.
4444 2000-11-28 Nick Clifton <nickc@redhat.com>
4446 * ld.1 (COPYING): Mention that the GNU Free Documentation
4447 License is present in the sources, but not the output, and
4448 also available from the GNU website.
4449 (GNU Free Documentation License): Comment out this section.
4451 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4453 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4456 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4458 * ld.1: Remove old date so it does not give the impression the manpage
4461 2000-11-24 Nick Clifton <nickc@redhat.com>
4463 * configure.tgt (xscale-coff): Add target.
4464 (xscale-elf): Add target.
4466 2000-11-24 Fred Fish <fnf@be.com>
4468 * ldmain.c (main): Remove redundant init of config.make_executable
4471 2000-11-15 Richard Henderson <rth@redhat.com>
4473 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4475 2000-11-14 Kazu Hirata <kazu@hxi.com>
4477 * scripttempl/h8300.sc: Fix formatting.
4478 * scripttempl/h8300h.sc: Likewise.
4479 * scripttempl/h8300s.sc: Likewise.
4481 2000-11-14 Denis Chertykov <denisc@overta.ru>
4483 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4485 2000-11-09 Philip Blundell <pb@futuretv.com>
4487 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4488 around orphan sections whose names can be represented in C.
4490 2000-11-07 Jim Wilson <wilson@redhat.com>
4492 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4493 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4495 2000-11-06 Nick Clifton <nickc@redhat.com>
4497 * ld.texinfo: Add GNU Free Documentation License.
4498 * ldint.texinfo: Add GNU Free Documentation License.
4499 * ld.1: Add GNU Free Documentation License.
4501 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4503 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4504 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4506 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4507 Move 2000-11-02 Makefile.in changes to this file.
4508 * Makefile.in: Regenerate.
4510 2000-11-03 Nick Clifton <nickc@redhat.com>
4512 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4513 constructors and destructors.
4514 * scripttempl/h8300h.sc: Ditto.
4515 * scripttempl/h8300s.sc: Ditto.
4516 * scripttempl/h8500.sc: Ditto.
4517 * scripttempl/h8500b.sc: Ditto.
4518 * scripttempl/h8500c.sc: Ditto.
4519 * scripttempl/h8500m.sc: Ditto.
4520 * scripttempl/h8500s.sc: Ditto.
4521 * scripttempl/v850.sc: Ditto.
4522 * scripttempl/w65.sc: Ditto.
4523 * scripttempl/z8000.sc: Ditto.
4525 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4527 * Makefile.in (e_i386_chaos.c): New rule.
4528 (ALL_EMULATIONS): Added e_i386_chaos.o.
4529 * emulparams/elf_i386_chaos.sh: New file.
4530 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4532 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4534 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4535 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4536 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4537 library path suffix.
4538 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4540 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4542 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4543 for consecutive sections.
4545 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4547 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4549 * ld.texinfo: Added notes about this new option.
4551 2000-10-16 Nick Clifton <nickc@redhat.com>
4553 * emultempl/pe.em (_after_open): Add tests of return values from
4554 bfd functions. Emit appropriate error messages if necessary.
4556 2000-10-13 Nick Clifton <nickc@redhat.com>
4558 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4559 local variables - they are not used, but leave in the call to
4560 bfd_canonicalize_symtab.
4561 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4562 pe_dll_search_prefix.
4564 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4566 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4567 (longopts): New --dll-search-prefix option.
4568 (gld_${EMULATION_NAME}_list_options): Document.
4569 (gld_${EMULATION_NAME}_parse_args): Handle.
4570 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4571 dynamically, search for a dll named '<prefix><basename>.dll'
4572 in preference to 'lib<basename>.dll' if --dll-search-prefix
4575 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4577 * ldlang.c (section_already_linked): Set kept_section instead of
4580 2000-10-10 Kazu Hirata <kazu@hxi.com>
4582 * deffile.h: Fix formatting.
4583 * lexsup.c: Likewise.
4586 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4588 * pe-dll.c (make_one): Do not generate code thunk for DATA
4590 (process_def_file): deduce DATA flag for auto-export sumbols.
4592 2000-10-09 Kazu Hirata <kazu@hxi.com>
4594 * ld.h: Fix formatting.
4595 * ldcref.c: Likewise.
4596 * ldctor.h: Likewise.
4597 * ldemul.c: Likewise.
4598 * ldemul.h: Likewise.
4599 * ldexp.c: Likewise.
4600 * ldexp.h: Likewise.
4601 * ldfile.c: Likewise.
4602 * ldfile.h: Likewise.
4603 * ldlang.c: Likewise.
4604 * ldlang.h: Likewise.
4605 * ldmain.c: Likewise.
4606 * pe-dll.c: Likewise.
4608 * pe-dll.c: Revert some formatting fixes.
4610 2000-10-08 Kazu Hirata <kazu@hxi.com>
4612 * pe-dll.c: Fix formatting.
4614 2000-10-05 Kazu Hirata <kazu@hxi.com>
4616 * ldlang.c: Fix formatting.
4618 2000-10-03 DJ Delorie <dj@redhat.com>
4620 * pe-dll.c (fill_edata): initialize entire block
4621 (make_one): fill in correct section.
4623 2000-10-03 Kazu Hirata <kazu@hxi.com>
4625 * ldexp.c: Fix formatting.
4627 2000-10-02 DJ Delorie <dj@redhat.com>
4629 * emultempl/pe.em (gld_*_after_open): detect case where there two
4630 import libraries for same dll; rename one to ensure proper link
4633 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4635 (generate_edata): fix typo
4637 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4639 * scripttempl/crisaout.sc (ENTRY): Now __start.
4640 (.text): Add default setting for __start.
4641 Remove CONSTRUCTORS handling.
4642 (/DISCARD/): Add .gnu.warning.*.
4643 * emulparams/crislinux.sh (ENTRY): Now __start.
4644 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4645 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4646 (ENTRY): Now __start.
4647 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4648 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4650 2000-09-29 Kazu Hirata <kazu@hxi.com>
4652 * deffile.h: Fix formatting.
4654 * ldcref.c: Likewise.
4655 * ldctor.c: Likewise.
4656 * ldctor.h: Likewise.
4657 * ldemul.c: Likewise.
4658 * ldemul.h: Likewise.
4659 * ldexp.c: Likewise.
4660 * ldexp.h: Likewise.
4661 * ldfile.c: Likewise.
4662 * ldfile.h: Likewise.
4663 * ldlang.c: Likewise.
4664 * ldlang.h: Likewise.
4665 * lexsup.c: Likewise.
4667 * pe-dll.c: Likewise.
4669 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4671 * pe-dll.c (process_def_file): Uninitialized data wasn't
4672 exported with --export-all-symbols switch.
4674 2000-09-28 DJ Delorie <dj@redhat.com>
4676 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4677 noname work properly.
4679 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4681 * ld.texinfo (HPPA ELF32): New section.
4683 * emultempl/hppaelf.em (group_size): New.
4684 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4685 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4686 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4687 options to prevent abbreviations matching.
4688 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4689 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4691 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4693 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4694 on the m68*-*-elf target. Make it support COFF input objects.
4696 2000-09-21 Kazu Hirata <kazu@hxi.com>
4698 * ldmain.c: Fix formatting.
4699 * ldmisc.c: Likewise.
4700 * ldver.c: Likewise.
4701 * ldwrite.c: Likewise.
4703 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4705 * ldwrite.c (clone_section): Silence gcc warnings.
4707 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4709 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4710 out of memory failure.
4712 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4713 (clone_section): Handle out of memory failures. Rename var to
4714 avoid c++ reserved word.
4716 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4718 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4719 stub_name param to stub_sec_name.
4720 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4722 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4724 * emultempl/m68kelf.em: New file.
4725 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4726 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4727 * Makefile.in: Regenerate.
4729 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4731 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4734 2000-09-13 Nick Clifton <nickc@redhat.com>
4736 * ldmain.c (multiple_definition): Disable relaxation if
4737 multiple symbol definitions are encountered - otherwise the
4738 linker could abort with an assertion failure.
4740 2000-09-10 Nick Clifton <nickc@redhat.com>
4742 * mri.c: Fix formatting.
4744 2000-09-07 H.J. Lu <hjl@gnu.org>
4746 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4747 * configure: Rebuild.
4749 2000-09-07 H.J. Lu <hjl@gnu.org>
4751 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4752 * Makefile.in: Rebuild.
4754 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4756 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4757 broken list handling. Create __start_SECNAME and __stop_SECNAME
4758 when no place-holder. Add some comments. Test both SEC_CODE and
4759 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4760 Handle case where no output section statement created.
4762 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4764 * configure.tgt (sh-*-linux*): Added.
4765 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4766 * Makefile.in: Rebuilt.
4767 * emulparams/shelf_linux.sh: New file.
4768 * emulparams/shlelf_linux.sh: New file.
4770 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4772 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4773 try shuffling sections when the orphan happens to be the place
4774 holder. Keep count of unique section names generated so we speed
4775 the search for a new name.
4777 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4779 * configure: Rebuilt with new libtool.m4.
4781 2000-09-05 Nick Clifton <nickc@redhat.com>
4783 * Makefile.in: Regenerate.
4784 * aclocal.m4: Regenerate.
4785 * configure: Regenerate.
4786 * config.in: Regenerate.
4787 * po/ld.pot: Regenerate.
4789 * ldint.texinfo: Remove CVS revision marker - it foils local
4792 * emultempl/ticoff.em: Remove extraneous comma.
4794 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4796 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4797 to stub section flags.
4798 (hppa_for_each_input_file_wrapper): New.
4799 (hppa_lang_for_each_input_file): New.
4800 (lang_for_each_input_file): Define to call above.
4801 (multi_subspace): New.
4802 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4803 (PARSE_AND_LIST_PROLOGUE): Define.
4804 (PARSE_AND_LIST_LONGOPTS): Define.
4805 (PARSE_AND_LIST_OPTIONS): Define.
4806 (PARSE_AND_LIST_ARGS_CASES): Define.
4807 (hppaelf_finish): Call elf32_hppa_set_gp.
4808 (hppaelf_set_output_arch): Remove.
4809 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4811 * emulparams/hppalinux.sh (ELFSIZE): Define.
4813 (OTHER_READONLY_SECTIONS): Define.
4815 (GENERATE_SHLIB_SCRIPT): Define.
4817 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4818 to const throughout. Change `void *' to `PTR' throughout.
4819 (lang_memory_default): Function is local to file, add `static'.
4821 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4822 (ehppalinux.c): Likewise.
4823 (earmelf.c): Likewise.
4824 (earmelf_linux.c): Likewise.
4825 (earmelf_linux26.c): Likewise.
4826 * Makefile.in: Regenerate.
4828 * ld.h (ld_config_type): Add unique_orphan_sections.
4829 * lexsup.c (OPTION_UNIQUE): Define.
4830 (ld_options): Add "--unique".
4831 (parse_args): Handle it.
4832 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4833 search for an existing output section if unique_orphan_sections is
4834 set. Make use of bfd_get_unique_section_name rather than
4835 duplicating code here.
4836 * ld.texinfo: Describe --unique.
4838 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4839 optional arg to split-by-file.
4840 (parse_args): Handle them.
4841 * ld.texinfo: Update description of these options.
4842 * ldwrite.c (clone_section): Pass in the section name. Replace
4843 local code with bfd_get_unique_section_name.
4844 (split_sections): Tidy code and comments. Use a list traversal
4845 more appropriate to the list construction. Handle cooked section
4846 sizes. Split when split_by_reloc reached rather than exceeded.
4847 Track section size and split when split_by_file reached. Fix
4848 link_order_tail (even though it's not used).
4849 (ldwrite): Modify condition for calling split_sections to suit
4850 changed split_by_reloc and split_by_file.
4851 * ldmain.c (main): Init config.split_by_reloc and
4852 config.split_by_file to -1.
4853 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4854 Change split_by_file to bfd_size_type.
4856 2000-09-02 Nick Clifton <nickc@redhat.com>
4858 * configure.in: Increase version number to 2.10.91.
4859 * NEWS: Mention new ability to support removal of duplicate DWARF2
4861 * configure: Regenerate.
4862 * aclocal.m4: Regenerate.
4863 * config.in: Regenerate.
4865 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4867 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4869 * scripttempl/elf32avr.sc: Ditto.
4870 * scripttempl/elfd10v.sc: Ditto.
4871 * scripttempl/elfd30v.sc: Ditto.
4872 * scripttempl/elfi370.sc: Ditto.
4873 * scripttempl/elfm68hc11.sc: Ditto.
4874 * scripttempl/elfm68hc12.sc: Ditto.
4875 * scripttempl/elfi386beos.sc: Ditto.
4876 * scripttempl/v850.sc: Ditto.
4878 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4880 * acinclude.m4: Include libtool and gettext macros from the
4882 * aclocal.m4, configure: Rebuilt.
4884 2000-08-25 Nick Clifton <nickc@redhat.com>
4886 * ldlang.c (open_output): When choosing the target for a
4887 particular endianness, do nothing if the target is not
4890 2000-08-25 H.J. Lu <hjl@gnu.org>
4892 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4893 check -rpath nor LD_RUN_PATH for cross link.
4894 * ld.texinfo: Document the change.
4896 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4898 * NEWS: Mention support for CRIS.
4900 2000-08-23 H.J. Lu <hjl@gnu.org>
4902 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4903 the current runpath list from bfd_elf_get_runpath_list ()
4906 2000-08-22 H.J. Lu <hjl@gnu.org>
4908 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4909 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4910 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4911 trace_file_tries is non-zero.
4912 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4913 if trace_file_tries is non-zero.
4915 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4918 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4920 * NEWS: Mention i860 support.
4922 2000-08-14 Andreas Schwab <schwab@suse.de>
4924 * scripttempl/elf.sc: Fix last change to use correct comment
4927 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4929 * scripttempl/elf.sc: Add a comment giving the correspondence
4930 between sections, per-datum sections, and linkonce sections. Make
4931 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4934 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4936 * emulparams/elf32_i860.sh: New file.
4937 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4938 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4939 (eelf32_i860.c): New rule.
4940 * Makefile.in: Regenerate.
4942 2000-08-10 Nick Clifton <nickc@cygnus.com>
4944 * emulparams/mipspe.sh (ENTRY): Add definition.
4946 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4948 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4951 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4953 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4954 the final size of .bss section.
4955 * scripttempl/elfm68hc12.sc: Likewise.
4957 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4959 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4960 gld${EMULATION_NAME}_parse_args for consistency. Combine
4961 lastoptind and prevoptind vars, and keep track of last optind.
4962 (gld_${EMULATION_NAME}_list_options): Rename to
4963 gld${EMULATION_NAME}_list_options.
4965 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4967 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4968 (i586-sco-sysv5uw7.1.0).
4970 2000-07-27 H.J. Lu <hjl@gnu.org>
4972 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4973 (PARSE_AND_LIST_PROLOGUE): New.
4974 (PARSE_AND_LIST_LONGOPTS): Likewise.
4975 (PARSE_AND_LIST_OPTIONS): Likewise.
4976 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4977 (PARSE_AND_LIST_EPILOGUE): Likewise.
4979 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4981 * emultempl/armelf.em: Elide functions common to elf32.em,
4982 ie. most of the file.
4983 (arm_elf_after_open): New. Do arm specific things then call
4984 gld${EMULATION_NAME}_after_open.
4985 (arm_elf_before_allocation): New. Call
4986 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4987 (PARSE_AND_LIST_PROLOGUE): Define.
4988 (PARSE_AND_LIST_SHORTOPTS): Define.
4989 (PARSE_AND_LIST_LONGOPTS): Define.
4990 (PARSE_AND_LIST_OPTIONS): Define.
4991 (PARSE_AND_LIST_ARGS_CASES): Define.
4992 (LDEMUL_AFTER_OPEN): Define.
4993 (LDEMUL_BEFORE_ALLOCATION): Define.
4994 (LDEMUL_BEFORE_PARSE): Define.
4995 (LDEMUL_FINISH): Define.
4997 * emultempl/hppaelf.em: Similarly zap most of this file.
4998 (hppaelf_add_stub_section): Prototype.
4999 (hppaelf_layaout_sections_again): Prototype.
5000 (hook_in_stub): Prototype.
5001 (LDEMUL_SET_OUTPUT_ARCH): Define.
5002 (LDEMUL_FINISH): Define.
5003 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5005 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5006 (EXTRA_EM_FILE): New.
5007 * emulparams/armelf_linux.sh: Likewise.
5008 * emulparams/armelf_linux26.sh: Likewise.
5009 * emulparams/hppalinux.sh: Likewise.
5010 * emulparams/hppaelf.sh: Likewise.
5013 * emultempl/elf32.em: Fix formatting.
5014 (EXTRA_EM_FILE): Source it.
5015 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5016 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5017 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5018 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5019 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5020 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5021 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5022 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5023 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5024 allow functions in this file to be overridden.
5025 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5027 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5029 * emultempl/elf32.em: Reorganize file.
5031 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5033 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5034 specific option to fit 64-bit executable in the lower
5035 31-bit address range. This is done by changing start
5036 address of .interp (the very first section of executable)
5037 and then setting EF_ALPHA_32BIT elf header flag.
5039 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5041 * emultempl/m68kcoff.em: New file.
5042 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5043 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5045 * Makefile.in: Regenerate.
5047 2000-07-20 H.J. Lu <hjl@gnu.org>
5049 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5050 and "disable-new-dtags" to stop getopt from treating -d/-e as
5051 abbreviations for these options.
5053 2000-07-20 H.J. Lu <hjl@gnu.org>
5055 * ld.texinfo: Add documentation for --disable-new-dtags and
5058 * ldmain.c (main): Initialize link_info.new_dtags to false.
5060 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5061 --disable-new-dtags and --enable-new-dtags.
5062 (gld_${EMULATION_NAME}_list_options): Likewise.
5064 2000-07-05 Kenneth Block <krblock@computer.org>
5066 * lexsup.c: Add optional style to demangle switch
5067 * ld.texinfo: Document optional style to demangle switch.
5069 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5071 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5073 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5074 Regenerate dependencies.
5075 * Makefile.in: Rebuild.
5076 * configure.tgt (cris-*-*): New target.
5077 * emulparams/crisaout.sh, emulparams/criself.sh,
5078 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5079 * po/POTFILES.in, po/ld.pot: Regenerate.
5081 2000-07-20 H.J. Lu <hjl@gnu.org>
5083 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5084 Print out ignored -z options.
5086 2000-07-19 H.J. Lu <hjl@gnu.org>
5088 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5089 (PARSE_AND_LIST_PROLOGUE): New.
5090 (PARSE_AND_LIST_LONGOPTS): Likewise.
5091 (PARSE_AND_LIST_OPTIONS): Likewise.
5092 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5094 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5096 * lexsup.c (ld_options): Comment out 'z'.
5097 (parse_args): Likewise.
5099 * emultempl/elf32.em: Include "elf/common.h".
5100 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5102 (gld_${EMULATION_NAME}_list_options): Likewise.
5104 * ld.texinfo: Add documentation for the recognized -z options.
5106 2000-07-19 H.J. Lu <hjl@gnu.org>
5108 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5109 bfd_elf_set_dt_needed_soname ().
5111 2000-07-18 DJ Delorie <dj@cygnus.com>
5113 * pe-dll.c (pe_dll_id_target): check object target name also
5115 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5117 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5118 ${INIT_END} if relocating.
5119 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5121 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5123 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5124 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5125 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5126 errors introduced by the old dynamic lib search order.
5128 2000-07-17 DJ Delorie <dj@cygnus.com>
5130 * pe-dll.c (process_def_file): auto-export data items also
5131 (pe_process_import_defs): also see if _imp_ form needed
5133 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5135 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5136 for dll import libraries
5138 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5140 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5141 gcc 2.95.2 and later.
5143 2000-07-11 Kazu Hirata <kazu@hxi.com>
5145 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5148 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5150 * ldemul.h (struct lang_input_statement_struct): Remove forward
5152 (struct search_dirs): Likewise.
5153 * ldfile.h (struct lang_input_statement_struct): Likewise.
5154 Protect file from multiple inclusion.
5155 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5156 declaration from macro to file scope.
5158 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5159 * ldgram.y: Likewise here.
5160 * ldlang.c: And here.
5161 * ldmain.c: And here.
5162 * mpw-elfmips.c: And here.
5163 * mpw-eppcmac.c: And here.
5164 * emultempl/aix.em: And here.
5165 * emultempl/armcoff.em: And here.
5166 * emultempl/armelf.em: And here.
5167 * emultempl/armelf_oabi.em: And here.
5168 * emultempl/beos.em: And here.
5169 * emultempl/elf32.em: And here.
5170 * emultempl/hppaelf.em: And here.
5171 * emultempl/linux.em: And here.
5172 * emultempl/lnk960.em: And here.
5173 * emultempl/pe.em: And here.
5174 * emultempl/sunos.em: And here.
5175 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5176 * mpw-idtmips.c: Ditto.
5177 * emultempl/generic.em: Ditto.
5178 * emultempl/gld960.em: Ditto.
5179 * emultempl/gld960c.em: Ditto.
5180 * emultempl/mipsecoff.em: Ditto.
5181 * emultempl/ticoff.em: Ditto.
5182 * emultempl/vanilla.em: Ditto.
5184 * pe-dll.c: Include ldfile.h
5185 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5187 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5188 arguments to bfd_elf32_size_dynamic_sections call.
5189 (gldelf32ebmip_place_orphan): Add missing arguments to
5190 lang_leave_output_section_statement call.
5192 2000-07-10 H.J. Lu <hjl@gnu.org>
5194 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5196 (strhash): Likewise.
5197 (compute_dll_image_base): Likewise.
5198 (pe_undef_found_sym): Likewise.
5199 (pe_undef_cdecl_match): Likewise.
5200 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5201 argument "arch" with ATTRIBUTE_UNUSED.
5203 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5205 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5207 From Ryan Bradetich <rbradetich@uswest.net>
5208 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5210 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5212 Changes to create multiple linker stubs, positioned immediately
5213 before the section where they are required.
5214 * emultempl/hppaelf.em: Include elf32-hppa.h.
5215 (stub_sec, file_chain): Delete.
5216 (hppaelf_create_output_section_statements): Don't make a stub
5218 (hook_stub_info): New struct.
5219 (hook_in_stub): New function.
5220 (hppaelf_add_stub_section): New function.
5221 (hppaelf_finish): Do nothing for relocateable links. Modify the
5222 call to elf32_hppa_size_stubs. Move code for updating section
5224 (hppaelf_layaout_sections_again): ..to here, a new function.
5226 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5227 broken list handling. Pass in a pointer to the list.
5228 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5230 (hppaelf_before_parse): Prototype.
5231 (hppaelf_set_output_arch): Prototype.
5232 (hppaelf_create_output_section_statements): Prototype.
5233 (hppaelf_delete_padding_statements): Prototype.
5234 (hppaelf_finish): Prototype.
5237 * emultempl/hppaelf.em: Include ctype.h.
5238 (struct orphan_save): New.
5239 (gld${EMULATION_NAME}_place_orphan): New.
5240 (output_rel_find): New.
5241 (hppaelf_get_script): Update from elf32.em.
5242 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5243 Change emulation_name field to "${EMULATION_NAME}". Add
5244 gld${EMULATION_NAME}_place_orphan.
5246 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5247 ehppalinux.o, sort it. Regenerate dependencies.
5248 (ehppalinux.c): Depend on hppaelf.em
5249 * Makefile.in: Regenerate.
5251 * configure.tgt: targ_emul=hppalinux for hppa*linux
5253 * emulparams/hppalinux.sh: New.
5254 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5256 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5258 * lexsup.c (parse_args): Copy section name.
5260 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5262 * emultempl/pe.em: institute the following search order for
5263 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5264 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5265 static lib (libfoo.a) if none of the above are found.
5267 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5269 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5270 (longopts): New --{enable,disable}-auto-image-base options.
5271 (gld_${EMULATION_NAME}_list_options): Document.
5272 (gld_${EMULATION_NAME}_parse): Handle.
5273 (strhash): New static function.
5274 (compute_dll_image_base): New static function.
5275 (gld_${EMULATION_NAME}_set_symbols): Use.
5277 2000-07-05 DJ Delorie <dj@redhat.com>
5281 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5283 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5284 * emulparams/elf32btsmip.sh: New file.
5285 * Makefile.am: Add traditional mips target.
5286 * Makefile.in: Rebuild.
5288 2000-07-01 H.J. Lu <hjl@gnu.org>
5290 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5291 automake to use YLWRAP.
5292 * Makefile.in: Rebuild.
5294 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5296 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5297 (CLEANFILES): Add DEPA.
5298 * Makefile.in: Regenerate.
5300 2000-06-30 Timothy Wall <twall@ppc>
5302 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5303 the page in the upper octet of the address.
5305 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5307 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5309 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5311 * NEWS: arm-elf does --gc-sections too.
5313 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5315 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5317 * Makefile.in: Regenerate.
5319 2000-06-21 H.J. Lu <hjl@gnu.org>
5321 * Makefile.am: Rebuild dependency.
5322 * Makefile.in: Rebuild.
5324 2000-06-20 H.J. Lu <hjl@gnu.org>
5326 * Makefile.am: Rebuild dependency.
5327 * Makefile.in: Rebuild.
5329 2000-06-20 Timothy Wall <twall@cygnus.com>
5331 * scripttempl/tic54xcoff.sc: New.
5332 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5333 * gen-doc.texi: Add flag for TI COFF.
5334 * ld.texinfo: Add documentation for TI COFF handling switches.
5335 * emultempl/ticoff.em: New. TI COFF handling.
5336 * configure.tgt: Add tic54x target.
5337 * Makefile.am: Add tic54x target.
5338 * Makefile.in: Ditto.
5340 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5342 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5343 checking for backslashes.
5345 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5347 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5349 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5351 * NEWS: Update list of targets supporting --gc-sections.
5353 * scripttempl/elf.sc: KEEP .eh_frame contents.
5354 * scripttempl/elfd30v.sc: Same here.
5356 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5358 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5360 * Makefile.in: Rebuild.
5361 * configure.tgt: Recognize m68hc12 and m68hc11.
5362 * scripttempl/elfm68hc12.sc: New file.
5363 * emulparams/m68hc12elfb: New emulation.
5364 * emulparams/m68hc12elf: New emulation.
5365 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5366 (includes a memory.x script to define the ROM and RAM banks).
5367 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5368 New configuration files for support of Motorola 68hc11
5370 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5372 * ldmain.c (main): Only change SEC_READONLY for final link.
5374 2000-06-13 H.J. Lu <hjl@gnu.org>
5376 * configure: Regenerate.
5378 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5380 * configure.in (VERSION): Update to show this is the CVS mainline.
5382 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5384 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5385 input objects to be ECOFF.
5386 (check_sections): einfo takes %B, not %P, to print a BFD name.
5388 2000-06-05 Michael Matz <matz@ifh.de>
5390 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5393 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5395 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5397 * emulparams/avr1200.sh (STACK): Define as 0.
5398 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5399 * emulparams/avr4433.sh (STACK): Likewise.
5400 * emulparams/avr44x4.sh (STACK): Likewise.
5401 * emulparams/avr85xx.sh (STACK): Likewise.
5402 * emulparams/avrmega103.sh (STACK): Likewise.
5403 * emulparams/avrmega161.sh (STACK): Likewise.
5404 * emulparams/avrmega603.sh (STACK): Likewise.
5405 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5406 (__stack): Define from ${STACK} for main().
5408 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5410 * Makefile.am: Update dependencies with "make dep-am"
5411 * Makefile.in: Regenerate.
5413 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5415 * ldmain.c: Include filenames.h.
5416 (set_scripts_dir): Support backslashes in program name.
5418 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5420 * ldmain.c (main): When deciding if ".text" section should be
5421 read-only, don't forget to reset SEC_READONLY because it
5422 could be already set.
5424 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5426 * ld.1: Add documentation for new command line option:
5427 --section-start <sectionname>=<sectionorg>
5428 This is a generic version of -Ttext etc. which accepts
5429 any section name as a parameter instead of just text/data/
5431 * ld.texinfo: More docs.
5433 * lexsup.c: (parse_args): Recognize new command line option.
5434 (ld_options): Add new option.
5436 2000-05-18 H.J. Lu <hjl@gnu.org>
5438 * lexsup.c (parse_args): `i' == `r', not `q'.
5440 2000-05-18 Jeffrey A Law (law@cygnus.com)
5442 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5444 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5445 Rick Gorton <gorton@scrugs.lkg.dec.com>
5447 Add support for '-q' == '--emit-relocs' switch.
5448 * ldmain.c (main): Default to false.
5449 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5450 * NEWS: Describe the emitrelocations switch.
5451 * ld.texinfo: Describe the emitrelocations switch.
5453 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5455 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5456 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5457 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5460 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5462 * lexsup.c (parse_args): Update the year in the copyright notice.
5464 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5466 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5467 Replace defines with those from intl/libgettext.h to quieten gcc
5470 2000-05-10 H.J. Lu <hjl@gnu.org>
5472 * ldlang.c (open_input_bfds): Don't load the same file within
5473 a group again if the whole archive has been loaded already.
5475 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5477 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5478 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5481 2000-05-01 Jim Wilson <wilson@cygnus.com>
5483 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5485 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5486 host "ia64-*-linux-gnu*".
5488 2000-04-29 Andreas Jaeger <aj@suse.de>
5490 * ld.h: Correctly check GCC version.
5492 2000-04-25 Jeffrey A Law (law@cygnus.com)
5494 * Makefile.am: Add PA64 support. Add missing dependencies for
5496 * Makefile.in: Rebuilt.
5497 * configure.tgt: Add PA64 support (currently disabled).
5499 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5501 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5502 (output_rel_find): New function.
5503 (hold_section, hold_use): Delete.
5504 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5505 hold_interp): Make local to place_orphan.
5506 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5507 rather than place_section to find possible previous use of orphan.
5508 Similarly find the place-holder output sections. Use returned
5509 value from lang_enter_output_section_statement rather than calling
5510 lang_output_section_statement_lookup.
5511 * emultempl/armelf.em: Same here.
5512 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5514 * ldlang.c (lang_enter_output_section_statement): Return output
5516 * ldlang.h (lang_enter_output_section_statement): Change
5519 * ldlang.h (lang_output_section_statement): Export it.
5520 * ldlang.c (lang_output_section_statement): Ditto.
5522 2000-04-24 Nick Clifton <nickc@cygnus.com>
5524 * ld.texinfo (Output Section Data): Add note that section data
5525 commands cannot appear outside of section directives.
5527 2000-04-2 Matthew Green <mrg@cygnus.com>
5529 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5531 2000-04-21 Richard Henderson <rth@cygnus.com>
5532 David Mosberger <davidm@hpl.hp.com>
5534 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5535 (eelf64_ia64.c): New rule.
5536 * Makefile.in: Rebuild.
5537 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5538 * emulparams/elf64_ia64.sh: New file.
5540 2000-04-21 Richard Henderson <rth@cygnus.com>
5542 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5544 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5546 * dep-in.sed: Match space at start of file name, not at end.
5548 2000-04-18 H.J. Lu <hjl@gnu.org>
5550 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5551 lang_leave_output_section_statement () after calling
5552 lang_enter_output_section_statement ().
5553 * emultempl/armelf.em: Likewise.
5555 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5557 * emultempl/elf32.em (struct orphan_save): Add section field.
5558 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5559 better order, and place first orphan section as we did before the
5560 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5561 Don't call make_bfd_section here, let wild_doit do the job for us.
5562 Don't build a statement list when we'll only throw it away.
5563 * emultempl/armelf.em: Ditto.
5564 * emultempl/pe.em: Similarly.
5566 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5568 * scripttempl/elfppc.sc: Remove.
5569 * emulparams/elf32ppc.sh: Use elf.sc.
5570 * emulparams/elf32lppc.sh: Use elf.sc.
5571 * emulparams/elf32ppclinux.sh: Use elf.sc.
5572 * emulparams/elf32ppcsim.sh: New file.
5573 * emulparams/elf32lppcsim.sh: New file.
5574 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5575 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5576 * Makefile.in: Regenerate.
5577 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5579 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5581 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5582 ~SEC_ALLOC sections too. Init start address of debug sections.
5583 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5584 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5585 Also set all relocateable section start addresses.
5587 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5589 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5590 Add new BSS_PLT variable for when .plt need not be contained in
5591 the file. Move _etext so that it is also after .fini, and provide
5592 both etext and _etext with a leading underscore. Mark the start
5595 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5597 * emultempl/elf32.em (struct orphan_save): New.
5598 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5599 hold_interp): Make them struct orphan_save.
5600 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5601 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5602 the end of the relevant section list. Also add associated section
5603 statements to the end of any previous orphan statements.
5604 * emultempl/armelf.em: Similarly.
5605 * emultempl/pe.em: Similarly.
5607 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5609 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5611 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5613 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5614 --enable-build-warnings option.
5615 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5616 * Makefile.in, configure: Re-generate.
5618 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5620 * po/ld.pot: Regenerate.
5622 * lexsup.c (help): Restore translated part of bug string.
5624 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5625 (DEP): Quote when passing vars to sub-make. Add warning message
5627 (DEP1): Rewrite for "gcc -MM".
5628 (CLEANFILES): Add DEP2.
5629 Update dependencies.
5630 * Makefile.in: Regenerate.
5632 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5634 * ld.h: #include "bin-bugs.h"
5635 * lexsup.c (help): Use REPORT_BUGS_TO.
5637 2000-03-27 Denis Chertykov <denisc@overta.ru>
5639 * configure.tgt (avr-*-*): New target support.
5640 * Makefile.am: Likewise.
5641 * scripttempl/elf32avr.sc: New script file.
5642 * emulparams/avr1200.sh: New file.
5643 * emulparams/avr23xx.sh: New file.
5644 * emulparams/avr4433.sh New file.
5645 * emulparams/avr44x4.sh New file.
5646 * emulparams/avr85xx.sh New file.
5647 * emulparams/avrmega103.sh New file.
5648 * emulparams/avrmega161.sh New file.
5649 * emulparams/avrmega603.sh New file.
5650 * Makefile.in: Regenerate.
5652 2000-03-09 Andreas Jaeger <aj@suse.de>
5654 * Makefile.am (check-DEJAGNU): Also unset LANG.
5655 * Makefile.in: Rebuild.
5657 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5659 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5662 2000-03-02 H.J. Lu <hjl@gnu.org>
5664 * emulparams/elf32mcore.sh: Include "getopt.h".
5666 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5668 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5670 2000-03-01 H.J. Lu <hjl@gnu.org>
5672 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5673 * emulparams/shpe.sh: Likewise.
5675 2000-03-01 Nick Clifton <nickc@cygnus.com>
5677 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5678 to unused parameters.
5680 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5681 functions only used by DLL code.
5682 (_place_orphan): Initialise 'dollar'.
5684 2000-03-01 H.J. Lu <hjl@gnu.org>
5686 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5687 indicate if the undefined symbol is a fatal error or not.
5688 Don't delete the output file if "fatal" is false.
5690 2000-02-29 H.J. Lu <hjl@gnu.org>
5692 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5693 Set LC_COLLATE and LC_ALL to null and export them. It is for
5694 sort which expects the C locale.
5695 Add $(LIBS) to all $(HOSTING_LIBS).
5696 * Makefile.in: Rebuild.
5698 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5700 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5701 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5702 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5703 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5704 find_potential_libraries.
5706 2000-02-28 Jim Blandy <jimb@redhat.com>
5708 * ldgram.y (exclude_name_list): Don't require a comma to separate
5709 list entries; the lexer considers commas to be valid part of a
5710 filename, so in something like `foo, bar' the comma is considered
5711 part of the first filename, `foo,'.
5712 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5714 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5716 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5717 host "i[3456]86-*-freebsdelf*".
5719 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5721 * scripttempl/i386go32.sc: Move misplaced semicolons.
5723 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5725 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5726 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5727 (eelf64hppa.c, ehppaelf.c): Remove targets.
5728 * Makefile.in: Rebuild.
5730 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5732 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5733 GNU/Linux/sparc, but keep the default as 32.
5735 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5736 it default if sparcv9 or sparc64.
5738 2000-02-24 Nick Clifton <nickc@cygnus.com>
5740 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5741 * Makefile.in: Regenerate.
5742 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5744 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5745 find_potential_libraries.
5746 * ldemul.c (ldemul_find_potential_libraries): New function.
5748 * ldfile.c (ldfile_open_file_search): Allow function to be
5750 (ldfile_open_file): Call ldemul_find_potential_libraries.
5751 * ldfile.h: Add prototype for ldfile_open_file_search.
5753 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5755 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5756 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5758 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5759 (gld_X_find_potential_libraries): New function. Search for
5760 libraries called "*.lib".
5762 * scripttempl/pe.sc: Add .pdata section.
5764 2000-02-23 Richard Henderson <rth@cygnus.com>
5766 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5767 Add and use memory regions.
5769 2000-02-23 Linas Vepstas (linas@linas.org)
5771 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5773 * Makefile.am: Add support for Linux/IBM 370.
5774 * configure.tgt: Likewise.
5776 * Makefile.in: Regenerate.
5778 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5780 * ldlang.c (print_input_section, print_data_statement,
5781 print_reloc_statement, print_padding_statement, insert_pad,
5782 size_input_section, lang_check_section_addresses,
5783 lang_size_sections, lang_do_assignments, lang_set_startof,
5784 lang_one_common): Change `opb' to unsigned.
5785 (lang_do_assignments): Also change `size' to unsigned.
5787 2000-02-16 Richard Henderson <rth@cygnus.com>
5789 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5791 2000-02-16 Timothy Wall <twall@cygnus.com>
5793 * mri.c (mri_draw_tree): Add default LMA region argument to call
5794 to lang_leave_output_section_statement.
5795 * ldlang.h: Update prototypes with LMA region arguments.
5796 * ldlang.c (lang_size_sections): Encapsulate region bounds
5797 checking in os_check_region call.
5798 (os_check_region): New function.
5799 (lang_output_section_statement_lookup): Initialize lma_region.
5800 (lang_leave_output_section_statement): Add LMA region argument.
5801 (lang_leave_overlay): Ditto.
5802 * ldgram.y: Handle LMA region syntax.
5803 * ld.texinfo (Output Section Description): Describe LMA region usage.
5804 * emultempl/armelf.em (gld$place_orphan): Add default value for
5805 lma region in call to lang_leave_output_section_statement.
5806 * emultempl/elf32.em (gld$place_orphan): Add default value for
5807 lma region in call to lang_leave_output_section_statement.
5808 * emultempl/pe.em (gld$place_orphan): Add default value for
5809 lma region in call to lang_leave_output_section_statement.
5812 2000-02-04 Timothy Wall <twall@redhat.com>
5814 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5815 octets when calculating section end addresses.
5817 2000-02-04 Timothy Wall <twall@redhat.com>
5819 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5821 2000-02-03 Timothy Wall <twall@redhat.com>
5823 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5825 * ldlang.c (print_input_section, print_data_statement,
5826 print_reloc_statement, print_padding_statement): Print target
5827 address values and section sizes as bytes, not octets.
5828 (insert_pad) Calculate padding size in octets, and adjust "dot"
5830 (size_input_section) Always adjust "dot" by bytes, not octets.
5831 (lang_check_section_addresses, lang_do_assignments) Adjust
5832 "dot" by bytes, not octets. Use the larger of the directive size
5833 or octets_per_byte for the number of octets actually allocated in
5835 (lang_set_startof) Make sure STARTOF returns a target address.
5836 (lang_one_common) Record size changes in octets.
5837 (lang_abs_symbol_at_end_of) Section end symbol's value is
5838 recorded in target bytes.
5839 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5840 to be clear about behavior when an octet is smaller than one byte.
5842 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5844 * ldcref.c (output_cref): Don't pass message strings to printf
5848 * ldmisc.c (vfinfo): Same here.
5851 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5853 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5854 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5855 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5856 Add missing NULL initialisers, and comments.
5858 2000-01-21 Nick Clifton <nickc@cygnus.com>
5860 * ldlang.c (lang_size_sections): Fix typo in comment.
5862 2000-01-18 H.J. Lu <hjl@gnu.org>
5864 * ldlang.c (lang_size_sections): Also update the current
5865 address of a region if the SEC_NEVER_LOAD bit is not set.
5867 2000-01-10 Philip Blundell <pb@futuretv.com>
5869 * configure.tgt (arm*-*-conix*): New target.
5871 2000-01-07 Nick Clifton <nickc@cygnus.com>
5873 * ld.texinfo (Options): Remind users to preceed linker command
5874 line switches with -Wl, (or whatever is appropriate) if it is
5875 being invoked by a comnpiler driver program.
5876 Fix description of the behaviour of the -n command line switch.
5878 2000-01-05 Catherine Moore <clm@cygnus.com>
5880 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5882 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5883 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5884 (exclude_name_list): New.
5885 ldlang.c (walk_wild_section): Support list of excluded files.
5886 (print_wild_statement): Likewise.
5887 (lang_add_wild): Likewise.
5888 * ldlang.h (lang_wild_statement_type): Likewise.
5889 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5891 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5893 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5894 (process_def_file): Use.
5895 (pe_dll_compat_implib): New variable.
5898 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5899 pe_dll_compat_implib.
5901 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5902 compat-implib options.
5903 (gld_${EMULATION_NAME}_list_options): List new options.
5904 (gld_${EMULATION_NAME}_parse_args): Handle.
5906 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5909 * deffilep.y (opt_name): Allow "." in name.
5911 For older changes see ChangeLog-9899
5917 version-control: never