1 2003-04-18 H.J. Lu <hjl@gnu.org>
3 * ldfile.c (ldfile_add_library_path): Remove the unused
6 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
8 * scripttempl/xstormy16.sc (__data, __rdata): New.
10 2003-04-16 Nick Clifton <nickc@redhat.com>
12 * scripttempl/xstormy16.sc: Add .jcr section mapping.
14 2003-04-15 H.J. Lu <hjl@gnu.org>
16 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
18 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
20 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
22 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
23 * ld.texinfo: Likewise.
25 2003-04-14 Alan Modra <amodra@bigpond.net.au>
27 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
28 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
29 other variants of crtbegin.o, crtend.o.
31 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
32 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
33 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
34 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
35 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
36 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
37 * scripttempl/mmo.sc (ctors, dtors): Likewise.
38 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
40 2003-04-09 Dmitry Diky <diwil@mail.ru>
42 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
43 sections to respect C++ constructor/destructor. Add ctors/dtors
44 start/stop definitions.
45 * scripttempl/elf32msp430_3.sc: Likewise.
47 2003-04-06 Nick Clifton <nickc@redhat.com>
49 * ld.texinfo (Options): Add a reminder of the target specific
50 nature to the description of the i386 PE specific options, for
51 readers who have not read all the way through the manual.
53 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
55 * configure.tgt: Fixed bug in list of targ_extra_emuls.
56 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
57 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
58 * emulparams/tic3xcoff_onchip.sh: Ditto
59 * emulparams/tic4xcoff.sh: Ditto
60 * scripttempl/tic4xcoff.sc: Ditto
62 2003-04-03 Nick Clifton <nickc@redhat.com>
64 * NEWS: Mention support for Xtensa architecture.
66 2003-04-02 Nick Clifton <nickc@redhat.com>
68 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
70 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
72 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
73 Don't call pe_dll_build_section() if link_info.relocateable.
74 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
75 if link_info.relocateable.
77 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
79 * pe-dll.c (process_def_file): Don't create an export
80 section if there are no exports and we're building an exe
81 (pe_dll_build_sections): Ditto
82 (pe_dll_fill_sections): Conditionalize setting
83 abfd->dll true on info->shared
84 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
85 If i386pe or armpe, call pe_dll_build_section()
86 for both exe's and dll's, not just dll's.
87 (gld_${EMULATION_NAME}_finish): For all targets except
88 shpe and mipspe, call pe_dll_fill_sections() for both
89 exe's and dll's, not just dll's.
91 2003-04-02 Bob Wilson <bob.wilson@acm.org>
93 * emulparams/xtensa-config.sh: Remove comment indicating that this is
96 2003-04-01 Bob Wilson <bob.wilson@acm.org>
98 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
99 (eelf32xtensa.c): New target.
100 * Makefile.in: Regenerate.
101 * configure.tgt: Handle xtensa-*-*.
102 * gen-doc.texi: Set XTENSA variable.
103 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
104 * emulparams/elf32xtensa.sh: New file.
105 * emulparams/xtensa-config.sh: Likewise.
106 * emultempl/xtensaelf.em: Likewise.
107 * scripttempl/elfxtensa.sc: Likewise.
109 2003-04-01 Jakub Jelinek <jakub@redhat.com>
111 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
112 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
113 if --enable-64-bit-bfd.
115 2003-04-01 Nick Clifton <nickc@redhat.com>
117 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
119 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
120 name of note section.
122 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
124 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
127 2003-03-31 David Heine <dlheine@suif.stanford.edu>
129 * ldfile.c (ldfile_add_library_path): Always allocate space for
131 * ldlang.c (lang_register_vers_node): Free the node if it cannot
133 * ldmain.c (set_scripts_dir): Always free the constructed
135 (add_keepsyms_file): Fix memory leak.
136 * ldmisc.c (vfinfo): Likewise.
137 * lexsup.c (parse_args): Likewise.
139 2003-03-25 Stan Cox <scox@redhat.com>
140 Nick Clifton <nickc@redhat.com>
142 Contribute support for Intel's iWMMXt chip - an ARM variant:
144 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
145 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
146 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
149 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
151 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
152 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
153 (main): Initialize them.
154 * ldfile.c: Include pathnames.h.
155 (is_sysrooted_pathname): New.
156 (ldfile_add_library_path): Use it.
157 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
158 search_dirs if given an absolute pathname.
159 (ldfile_open_file): Issue error message for sysrooted
161 * Makefile.am: Updated dependencies.
162 * Makefile.in: Rebuild.
164 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
166 * ld.texinfo: Rename all occurances of C54X to TIC54X.
168 2003-03-19 Andreas Schwab <schwab@suse.de>
170 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
173 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
175 * defilep.y (opt_base): If no number given, set to default
178 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
180 * deffilep.y (def_import): Use default extension of "dll"
181 if no extension provided in parsed IMPORT definition.
183 * deffilep.y (def_lex): Revert 2003-03-12 change.
184 (dot_name): New id type and rule.
185 (expline): Use instead of ID.
186 (opt_equal_name): Likewise.
188 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
190 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
192 2003-03-07 Christopher Faylor <cgf@redhat.com>
194 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
195 apparent accidental removal on 2003-01-06.
197 2003-03-04 Dmitry Diky <diwil@mail.ru>
199 * Makefile.am: Add new devices x1122 x1132 emulation
200 * configure.tgt: Likewise.
201 * Makefile.in: Regenerate.
202 * emulparams/msp430x1122.sh: New file.
203 * emulparams/msp430x1132.sh: New file.
205 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
207 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
210 * ldfile.h (struct search_dirs): Added sysrooted field.
211 * ldlang.h (struct lang_input_statement_struct): Likewise.
212 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
213 (ldfile_open_file_search): Look for sysrooted filename starting
214 with / in ld_sysroot instead of in the current directory. Clear
215 sysrooted flag if it's found in the current directory. Set it
216 from the search directory's sysrooted flag where it is found
218 * ldlang.c (ldlang_sysrooted_script): New static variable.
219 (new_afile): Mark search_file_enums as sysrooted if
220 ldlang_sysrooted_script.
221 (load_symbols): Set ldlang_sysrooted_script according to the
222 script's sysrooted field while processing it.
223 * ld.texinfo: Document INPUT behavior in sysroot.
225 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
227 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
229 2003-03-03 Alan Modra <amodra@bigpond.net.au>
231 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
232 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
233 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
234 PARSE_AND_LIST_EPILOGUE): Don't define.
235 * emultempl/alphaelf.em: New file.
237 2003-03-01 Alan Modra <amodra@bigpond.net.au>
239 * ldemul.c: Include getopt.h.
240 * emultempl/elf32.em: Include getopt.h earlier.
241 * emultempl/ticoff.em: Likewise.
243 2003-02-28 Alan Modra <amodra@bigpond.net.au>
245 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
246 support when scripts read from files.
248 2003-02-28 Alan Modra <amodra@bigpond.net.au>
250 * ldemul.c (ldemul_parse_args): Return FALSE by default.
251 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
254 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
255 (ldemul_parse_args): Return bfd_boolean. Formatting.
256 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
257 (ldemul_parse_args): Adjust.
258 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
259 Return bfd_boolean from parse_args.
260 * lexsup.c (parse_args): Malloc shortopts, longopts and
261 really_longopts. Call ldemul_add_options and ldemul_handle_option.
262 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
263 gld${EMULATION_NAME}_parse_args.
264 (gld${EMULATION_NAME}_handle_option): Likewise.
265 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
266 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
267 * emultempl/beos.em: Likewise.
268 * emultempl/pe.em: Likewise.
269 * emultempl/ticoff.em: Likewise.
270 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
271 (gld${EMULATION_NAME}_add_sysroot): Prototype.
272 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
274 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
275 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
276 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
277 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
279 * emultempl/generic.em: Likewise.
280 * emultempl/gld960.em: Likewise.
281 * emultempl/gld960c.em: Likewise.
282 * emultempl/linux.em: Likewise.
283 * emultempl/lnk960.em: Likewise.
284 * emultempl/m68kcoff.em: Likewise.
285 * emultempl/mipsecoff.em: Likewise.
286 * emultempl/sunos.em: Likewise.
287 * emultempl/vanilla.em: Likewise.
288 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
290 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
292 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
293 memory allocation error.
295 * Makefile.am (ldmain.o): Define TOOLBINDIR.
296 * Makefile.in: Rebuilt.
297 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
299 2003-02-21 Bob Wilson <bob.wilson@acm.org>
301 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
302 call os_region_check when it is set.
303 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
304 lang_size_sections_1.
305 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
306 only for the last call, not on every relaxation iteration.
307 * ldlang.h (lang_size_sections): Update prototype.
308 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
309 to lang_size_sections.
310 (pe_exe_fill_sections): Likewise.
311 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
312 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
313 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
314 (ppc_layout_sections_again): Likewise.
316 2003-02-21 Bob Wilson <bob.wilson@acm.org>
318 * gen-doc.texi: Set ARM and HPPA variables.
319 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
320 title capitalization more consistent. Add missing menu entries for
321 machine-specific sections and conditionalize them consistently.
322 Conditionalize text that is irrelevant when SingleFormat is set.
323 Add @group divisions to improve page breaks in long examples.
324 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
325 is correct. Remove "FIXME" comment about not using
326 @raisesections/@lowersections. Use @raisesections/@lowersections
327 consistently for machine-specific sections. Change to be more polite
328 about poor bug reports. Replace FDL appendix with include of fdl.texi.
329 Move WIN32 node to match its order in the menus.
330 * fdl.texi: New file.
332 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
334 * configure.in (TARGET_SYSTEM_ROOT): Set default to
335 ${exec_prefix}/${target_alias}/sys-root. Match explicit
336 '${exec_prefix}' (in addition to the expansion thereof) as
338 * configure: Rebuilt.
340 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
342 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
344 2003-02-20 Harri Porten <porten@kde.org>
346 * ldgram.y (vers_defns): Allow optional trailing semicolon in
349 2003-02-18 Alan Modra <amodra@bigpond.net.au>
351 * emultempl/ppc32elf.em: New file.
352 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
353 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
354 (eelf32lppcnto.c): Likewise.
355 (eelf32lppcsim.c): Likewise.
356 (eelf32ppcnto.c): Likewise.
357 (eelf32ppc.c): Likewise.
358 (eelf32ppc_fbsd.c): Likewise.
359 (eelf32ppcsim.c): Likewise.
360 (eelf32ppclinux.c): Likewise.
361 * Makefile.in: Regenerate.
363 2003-02-18 Alan Modra <amodra@bigpond.net.au>
365 * ld.texinfo: Remove spaces between @samp and opening brace.
367 2003-02-18 Alan Modra <amodra@bigpond.net.au>
369 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
371 (ppc_before_allocation): Don't do optimizations if wrong hash table.
372 (gld${EMULATION_NAME}_finish): Ditto.
374 2003-02-17 Nick Clifton <nickc@redhat.com>
376 * ldmain.c (main) Default allow_shlib_undefined to true.
377 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
378 (parse_args): Parse the new switch.
379 * ld.texinfo: Document new switch and default behaviour of
380 allowing undefined symbols in shared libraries.
382 2003-02-11 Dmitry Diky <diwil@mail.ru>
384 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
385 * scripttempl/elf32msp430_3.sc: Likewise.
387 2003-02-11 Uwe Stieber <uwe@wwws.de>
389 * configure.tgt: Add support for kaOS as cross build target
392 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
394 * hppaelf.em (group_size): Change default back to 1.
396 2003-02-09 Alan Modra <amodra@bigpond.net.au>
398 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
400 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
402 * hppaelf.em (group_size): Change default to -1.
404 2003-02-07 Nick Clifton <nickc@redhat.com>
406 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
408 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
409 no-pipeline-knowledge. This will prevent the getopt package from
410 thinking that there are any shorter abbreviations for
411 --no-pipeline-knowledge.
413 2003-02-07 Jakub Jelinek <jakub@redhat.com>
415 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
416 which already have it. Avoid duplicates.
418 2003-02-06 Jakub Jelinek <jakub@redhat.com>
420 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
421 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
422 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
424 2003-02-05 Alan Modra <amodra@bigpond.net.au>
426 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
427 call ppc64_elf_tls_optimize.
429 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
431 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
432 outside of GNU/Linux conditional.
434 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
436 * deffilep.y (def_get_module): New function: locate an already
438 * deffile.h (def_get_module): New prototype.
439 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
440 a dll multiple times.
442 2003-01-23 Alan Modra <amodra@bigpond.net.au>
444 * emultempl/sh64elf.em: Include elf32-sh64.h.
445 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
446 sh64_elf_section_data.
447 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
449 2003-01-23 Wu Yongwei <adah@netstd.com>
451 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
452 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
453 cross-80th-column-margin "an" to the next line.
455 2003-01-21 Nick Clifton <nickc@redhat.com>
457 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
458 * emulparams/tic3xcoff_onchip.sh: ...this.
459 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
460 * Makefile.in: Regenerate.
462 2003-01-21 Fabio Alemagna <falemagn@aros.org>
464 * configure.tgt: Handle i[3456]86-*-aros*
466 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
468 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
469 * Makefile.in: Regenerate
470 * configure.tgt: Added extra target emulations
471 * emulparams/tic3xcoff.sh: Remove old settings
472 * emulparams/tic4xcoff.sh: Ditto
473 * emulparams/tic3xcoff-onchip.sh: Added new
474 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
475 * scripttempl/tic3xcoff.sc: Remove
477 2003-01-17 Andreas Jaeger <aj@suse.de>
479 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
482 2003-01-16 Alan Modra <amodra@bigpond.net.au>
484 * Makefile.in: Regenerate.
486 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
488 * ld/ld.texinfo (node WIN32): Some clarifications
489 and formatting fixups.
491 2003-01-09 Chris Demetriou <cgd@broadcom.com>
493 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
494 order, and handle (ignore) -mips32r2.
496 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
498 * ldmain.c (main): Make sure ld_sysroot is initialized.
500 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
502 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
504 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
505 (GENSCRIPTS): Add @use_sysroot@.
506 * Makefile.in: Regenerated.
507 * configure.host: Move setting of NATIVE_LIB_DIRS to...
508 * configure.tgt: ... here. Use ${target} instead of ${host}
510 * configure.in: Add --with-sysroot.
511 * configure: Regenerated.
512 * genscripts.sh: Accept use_sysroot option. Set new variables
513 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
514 $use_sysroot. Don't search $tool_lib if $use_sysroot.
515 * ldfile.c (ldfile_add_library_path): Handle leading '='.
516 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
517 (ld_sysroot): New variable.
518 (main): Initialize ld_sysroot.
519 * ldmain.h (ld_sysroot): New extern.
520 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
521 searching $EMULATION_LIBPATH.
522 (gld${EMULATION_NAME}_add_sysroot): New function.
523 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
524 (gld${EMULATION_NAME}_after_open): Likewise. Only search
525 environment variables if $NATIVE.
526 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
527 * NEWS: Mention --with-sysroot.
529 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
530 instead of setting LIB_PATH.
531 * emulparams/elf32ppc.sh: Likewise.
532 * emulparams/elf64_s390.sh: Likewise.
533 * emulparams/elf64_sparc.sh: Likewise.
534 * emulparams/elf64ppc.sh: Likewise.
535 * emulparams/elf_x86_64.sh: Likewise.
537 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
538 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
540 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
542 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
544 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
546 * Makefile.am (ldmain.o): Pass BINDIR.
547 * Makefile.in: Regenerated.
548 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
551 2003-01-02 Ben Elliston <bje@redhat.com>
553 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
554 (eelf32iq2000.c): New target.
555 * Makefile.in: Regenerate.
556 * configure.tgt: Handle iq2000-*-elf.
557 * emulparams/elf32iq10.sh: New file.
558 * emulparams/elf32iq2000.sh: New file.
559 * scripttempl/iq2000.sc: New file.
561 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
563 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
564 and _pei386_runtime_relocator to the exclude list.
566 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
568 * ldfile.c: Fix comment typos.
569 * ldlang.c: Likewise.
571 * pe-dll.c: Likewise.
573 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
575 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
576 * Makefile.am (ld.1): Depend on configdoc.texi
578 * Makefile.in: Regenerated.
580 2002-12-24 Dmitry Diky <diwil@mail.ru>
582 * Makefile.am: Add msp430 target.
583 * configure.tgt: Likewise.
584 * Makefile.in: Regenerate.
585 * emulparams/msp430x???.sh: New files. Linker script parameters
586 for various msp430 configurations.
587 * gen-doc.texi: Enable msp430 documenation.
588 * ld.texinfo: Document msp430 sections.
589 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
590 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
592 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
593 Charles Wilson <cwilson@ece.gatech.edu>
595 * ld/config.in (HAVE_REALPATH): New entry.
596 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
598 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
600 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
603 2002-12-23 Alan Modra <amodra@bigpond.net.au>
605 * ldmain.c (main): Init "strip_discarded".
606 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
607 (OPTION_NO_STRIP_DISCARDED): Define.
608 (ld_options): Add "strip-discarded" and "no-strip-discarded".
609 (parse_args): Handle them.
611 2002-12-23 Nick Clifton <nickc@redhat.com>
613 * ld.h (struct args_type): Add new field
614 'accept_unknown_input_architecture'.
615 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
617 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
618 bfd_arch_get_compatible.
619 * ldfile.c (ldfile_try_open_bfd): Likewise.
620 * lexsup.c (ld_options): Add new command line switch
621 --accept-unknown-input-architecture and its inverse.
622 (parse_args): Handle --accept-unknown-input-architecture.
623 * ld.texinfo: Document new linker option.
624 * NEWS: Mention new linker option.
626 2002-12-20 Alan Modra <amodra@bigpond.net.au>
628 * ldmain.c (main): Re-order link_info initialization. Init all
631 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
633 * ld.texinfo: Clarify and extend the documentation
634 in the Machine Dependent, WIN32 section.
636 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
638 * ld.texinfo: Add win32 machine depending section.
639 * gen-doc.texi: Enable win32 machine depending section.
641 * configure.host: Add win32 library search path.
643 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
645 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
646 import when auto-import is disabled.
648 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
650 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
651 account for trailing '\0'.
653 2002-12-17 Nick Clifton <nickc@redhat.com>
655 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
656 so that it is not confused with -c.
658 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
659 Charles Wilson <cwilson@ece.gatech.edu>
661 * configure.in: Add check for realpath function.
662 * configure: Regenerate.
663 * config.in: Regenerate.
664 * aclocal.m4: Regenerate.
665 * deffile.h: Add .data field to def_file_import
667 * pe-dll.c (pe_proces_import_defs): Use .data field of
668 def_file_import structure to initialize flag_data field of
669 def_file_export structure.
670 (pe_implied_import_dll): New variables exp_funcbase and
671 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
672 not filename (which may be a symlink). Scan the sections and
673 initialize [data|bss]_[start|end]. When scanning the export
674 table, skip _nm_ symbols, and mark any symbols whose rva indicates
675 that it is in the .bss or .data sections as data.
676 * sysdep.h: Include limits.h and sys/param.h, and define
677 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
678 exists, NULL otherwise.
679 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
680 pe_process_import_defs before pe_find_data_imports, so that
681 auto-import will check the virtual implib as well as "real"
683 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
684 symlinks to their target; check that the target's extension is
685 .dll before calling pe_implied_import_dll(), not the filename
686 itself (which may be a symlink).
688 2002-12-10 Alan Modra <amodra@bigpond.net.au>
690 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
691 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
694 2002-12-08 Alan Modra <amodra@bigpond.net.au>
696 * ldlang.h: Formatting.
698 2002-12-07 Alan Modra <amodra@bigpond.net.au>
700 * ldlang.c (init_os): Ensure sections mentioned in load_base
703 2002-12-05 Alan Modra <amodra@bigpond.net.au>
705 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
706 load_base for orphans that follow a section with load_base set.
708 2002-12-01 H.J. Lu <hjl@gnu.org>
710 * ld.texinfo: Remove the extra `;' in sample version script.
712 2002-11-30 Alan Modra <amodra@bigpond.net.au>
714 * configure.host: Correct dynamic-linker for powerpc64 hosts.
716 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
717 * Makefile.in: Regenerate.
719 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
720 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
721 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
722 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
723 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
724 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
725 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
726 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
727 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
728 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
729 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
730 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
731 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
733 2002-11-27 David O'Brien <obrien@FreeBSD.org>
735 * configure.host: Fix generic FreeBSD configuration entry.
737 2002-11-27 H.J. Lu <hjl@gnu.org>
739 * ld.texinfo: Add the missing `;' to sample version scripts.
741 2002-11-20 Alan Modra <amodra@bigpond.net.au>
743 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
745 2002-11-14 Egor Duda <deo@logos-m.ru>
747 * ldmain.c (main): Make runtime relocs disabled by default. Remove
748 assignment which has no effect.
749 * pe-dll.h (pe_create_import_fixup): Change prototype.
750 * pe-dll.c (make_runtime_pseudo_reloc): New function.
751 (pe_create_runtime_relocator_reference): Ditto.
752 (pe_create_import_fixup): Handle relocations with non-zero addends.
753 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
754 --disable-runtime-pseudo-reloc.
755 (make_import_fixup): Handle relocations with non-zero addends. Create
756 an external reference to _pei386_runtime_relocator symbol if at least
757 one pseudo reloc was created.
758 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
759 --disable-runtime-pseudo-reloc options.
761 2002-11-12 Earl Chew <earl_chew@agilent.com>
763 * ldlang.c (lang_add_section): Discard debugging sections that have
764 been marked SEC_EXCLUDE.
766 2002-11-12 Nick Clifton <nickc@redhat.com>
768 * configure.in (ALL_LINGUAS): Add da.
769 * configure: Regenerate.
770 * po/da.po: New Danish translation.
772 2002-11-12 Alan Modra <amodra@bigpond.net.au>
774 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
775 (LDEMUL_BEFORE_ALLOCATION): Define.
776 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
778 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
780 2002-11-11 Christopher Faylor <cgf@redhat.com>
782 * configure.tgt (LIB_PATH): Default to searching w32api directory under
785 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
787 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
788 of restricted auto-export libs.
790 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
792 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
793 creative library naming instances like, e.g., libstdc++-2.a.
795 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
797 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
798 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
800 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
802 * deffilep.y (def_lex): Handle '@' as first character of an ID.
803 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
804 (make_one): Don't prefix decorated fastcall symbols with '_'.
805 (pe_process_import_defs): Likewise.
806 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
807 symbols to cdecl names or vise-versa.
809 2002-10-13 Eric Kohl <ekohl@rz-online.de>
811 * pe-dll.c (process_def_file): Handle fastcall symbols when
812 generating undecorated aliases. Don't prefix decorated fastcall
814 (fill_exported_offsets): Don't prefix decorated fastcall symbols
817 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
819 * emultempl/aix.em: Use include <> for generated headers.
820 * emultempl/beos.em: Likewise.
821 * emultempl/elf32.em: Likewise.
822 * emultempl/pe.em: Likewise.
823 * ldctor.c: Likewise.
825 * ldfile.c: Likewise.
826 * ldlang.c: Likewise.
829 * ldmain.c: Likewise.
830 * ldmisc.c: Likewise.
831 * ldwrite.c: Likewise.
832 * lexsup.c: Likewise.
834 * pe-dll.c: Likewise.
836 2002-10-23 Jakub Jelinek <jakub@redhat.com>
838 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
839 sections into .rel{,a}.dyn.
841 2002-10-23 Nick Clifton <nickc@redhat.com>
843 * lexsup.c (OPTION_NO_OMAGIC): Define.
844 (ld_options): Add "no-omagic" option.
845 (parse_args): Parse --no-omagic.
846 * ld.texinfo: Document --no-omagic.
847 * NEWS: Mention new option.
849 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
851 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
852 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
854 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
856 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
857 emulation name. Set LIB_PATH only for native tools, and
858 search the ABI-specific versions of NATIVE_LIB_DIRS before the
859 .../lib variants, not instead of them. Mostly copied from...
860 * emulparams/elf32ppc.sh: ... here. Fixed typo.
861 * emulparams/elf64bmip-defs.sh: Backed out.
862 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
863 * emulparams/elf64btsmip.sh: Likewise.
864 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
865 TEXT_DYNAMIC): Removed.
867 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
869 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
870 (GENERATE_SHLIB_SCRIPT): Set to yes.
871 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
872 * emulparams/elf32bmipn32.sh: here.
873 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
874 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
875 * emulparams/elf64bmip-defs.sh: New file. Extend
876 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
877 * emulparams/elf64bmip.sh: Bring in definitions from
879 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
881 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
882 * emulparams/elf64btsmip.sh: Bring in definitions from
884 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
885 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
887 2002-10-16 Jakub Jelinek <jakub@redhat.com>
889 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
890 (s390-*-linux*): Add elf64_s390 emulation if want64.
891 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
892 genscript.sh changes.
893 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
894 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
896 2002-10-15 Alan Modra <amodra@bigpond.net.au>
898 * ldlang.c (load_symbols): Revert last change.
900 2002-10-14 Alan Modra <amodra@bigpond.net.au>
902 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
904 (lang_reasonable_defaults): Don't compare against false.
905 (size_input_section): Likewise.
906 (lang_size_sections_1): Likewise.
907 (lang_do_assignments): Likewise.
908 (lang_add_output): Likewise.
910 * Makefile.am: Run "make dep-am".
911 * Makefile.in: Regenerate.
912 * ldver.c: #include "bfdver.h".
914 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
916 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
918 * scripttempl/elfm68hc12.sc: Likewise.
920 2002-10-11 Alan Modra <amodra@bigpond.net.au>
922 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
924 * ldgram.y (memory_spec): Provide empty action.
925 (section <NAME>): Likewise.
927 2002-10-10 Jakub Jelinek <jakub@redhat.com>
929 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
930 they have OUTPUT_FORMAT not matching actual output format.
931 * ldlang.c (lang_get_output_target): New function.
932 (open_output): Use it.
933 * ldlang.h (lang_get_output_target): New prototype.
935 2002-10-10 Alan Modra <amodra@bigpond.net.au>
937 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
938 when orphan is .rel, .rela when orphan is .rela.
939 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
940 first. Remove outsecname var.
942 2002-10-09 Richard Shann <richard.shann@superh.com>
943 Stephen Clarke <stephen.clarke@superh.com>
945 * Makefile.am: Add eshelf32_linux.o and
946 eshlelf32_linux.o, new emulations for sh64 Linux.
947 * Makefile.in: Regenerate.
948 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
949 * emulparams/shelf32_linux.sh: New file.
950 * emulparams/shlelf32_linux.sh: New file.
952 2002-10-08 H.J. Lu <hjl@gnu.org>
954 * ldlang.c (lang_file_exist): Removed.
955 (new_afile): Revert the last change.
956 * ldlang.h (lang_file_exist): Removed.
957 * lexsup.c (parse_args): Revert the last change.
959 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
961 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
963 (make_one): Create _nm_<symbol> for data only.
965 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
967 * ldlang.c (lang_file_exist): New function.
968 (new_afile): Abort if the filename to be added matches the linker
970 * ldlang.h: Add prototype for lang_file_exist.
971 * lexsup.c (parse_args): Abort if the output filename matches
972 one of the input filenames.
974 2002-10-02 Alan Modra <amodra@bigpond.net.au>
976 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
978 2002-09-30 Alan Modra <amodra@bigpond.net.au>
980 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
981 * scripttempl/elfm68hc11.sc: Likewise.
982 * scripttempl/elfm68hc12.sc: Likewise.
984 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
985 reloc sections just before .rel.plt/.rela.plt.
986 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
987 Only put loadable reloc sections in hold_rel.
989 2002-09-29 H.J. Lu <hjl@gnu.org>
991 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
993 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
995 From "Anita Kulkarni" <AnitaK@kpit.com>
996 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
999 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1001 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1003 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1004 SEGMENT_SIZE alignment.
1005 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1006 (SEGMENT_SIZE): Define.
1008 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1009 (fold_binary): Correct abs - non-abs case.
1010 (fold_trinary): New. Split out from exp_fold_tree.
1012 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1014 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1015 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1016 for start of .data, instead align up to 256M boundary.
1017 * scripttempl/aix.sc: Likewise.
1019 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1021 * scripttempl/i386go32.sc: Handle bss unique sections.
1023 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1025 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1027 2002-09-17 Stan Cox <scox@redhat.com>
1029 * emulparams/elf32bmipn32-defs.sh: New file.
1030 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1031 * emulparams/elf32btsmipn32.sh: Likewise.
1032 * emulparams/elf64bmip.sh: Likewise.
1033 * emulparams/elf64btsmip.sh: Likewise.
1035 2002-09-16 Bruno Haible <bruno@clisp.org>
1037 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1039 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1040 elf64-alpha-freebsd.
1042 2002-09-11 Nick Clifton <nickc@redhat.com>
1044 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1046 * po/tr.po: Updated Turkish translation.
1048 2002-09-06 Jeffrey A Law (law@redhat.com)
1050 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1052 2002-09-02 Nick Clifton <nickc@redhat.com>
1054 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1056 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1058 2002-08-30 Nick Clifton <nickc@redhat.com>
1060 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1061 used. Change INSN to start at 0x01000000 and extend for
1062 256K (ignoring holes). Start the STACK on a word aligned
1064 (.rodata): Start it at the READONLY_START_ADDR.
1066 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1068 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1070 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1072 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1073 added makefile targets for this file.
1074 * Makefile.in: Regenerate.
1075 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1076 * NEWS: Mention new port.
1078 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1080 * emulparams/tic3xcoff.sh: New file.
1081 * emulparams/tic4xcoff.sh: New file.
1082 * scripttempl/tic3xcoff.sc: New file.
1083 * scripttempl/tic4xcoff.sc: New file.
1085 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1087 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1088 strtoul and strtoull with bfd_scan_vma.
1089 (gld${EMULATION_NAME}_read_file): Likewise.
1091 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1093 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1095 2002-08-27 Egor Duda <deo@logos-m.ru>
1097 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1098 Add symbols for application to access them.
1100 2002-08-27 Nick Clifton <nickc@redhat.com>
1102 * emultempl/armelf.em: Revert this patch, it is not needed.
1104 2002-08-22 Adam Nemet <anemet@lnxw.com>
1106 2002-08-20 Dan Kegel <dank@kegel.com>
1108 * configure.in: added --with-lib-path argument to ld's configure
1110 * ld/NEWS: Document new switch.
1111 * ld/README: Mention new switch.
1112 * configure: Regenerate.
1113 * Makefile.in: Regenerate.
1115 Based on this patch:
1116 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1118 * Makefile.in (LIB_PATH): Make configurable.
1119 (GENSCRIPTS): Set LIB_PATH in environment.
1120 * configure.in: Substitute LIB_PATH.
1122 2002-08-22 Adam Nemet <anemet@lnxw.com>
1124 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1125 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1126 depending on the type of the function.
1127 (arm_elf_convert_thumb_symbol_to_address): New function.
1129 2002-08-22 Graeme Peterson <gp@qnx.com>
1131 * Makefile.am: Add esh{l}elf_nto.o files.
1132 * Makefile.in: Regenerate.
1133 * configure.tgt: Add support for sh-**-nto* targets.
1134 * emulparams/shelf_nto.sh: New file.
1135 * emulparams/shlelf_nto.sh: New file.
1137 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1139 * ldlang.c (offsetof): Define if not defined.
1141 2002-08-14 H.J. Lu <hjl@gnu.org>
1143 * configure.tgt: Always enable 64bit emulations for 32bit
1146 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1148 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1149 (MAXPAGESIZE): Set to 1.
1151 * ld.h (ALIGN_N): Delete.
1152 * ldexp.h (align_n): Declare.
1153 * ldexp.c (align_n): New function.
1154 (fold_binary): Use align_n instead of ALIGN_N.
1155 (exp_fold_tree): Likewise.
1156 * ldlang.c (lang_size_sections_1): Likewise.
1157 (lang_one_common): Likewise.
1158 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1160 2002-07-31 Graeme Peterson <gp@qnx.com>
1162 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1163 * Makefile.am: Add eelf32{l}ppcnto.o files.
1164 * Makefile.in: Regenerate.
1165 * emulparams/elf32lppcnto.sh: New file.
1166 * emulparams/elf32ppcnto.sh: New file.
1168 2002-08-07 H.J. Lu <hjl@gnu.org>
1170 * ld.texinfo: Document --no-undefined-version.
1172 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1173 `script.' fields to 0.
1175 * ldmain.c (main): Initialize the allow_undefined_version to
1178 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1179 (ld_options): Add --no-undefined-version.
1180 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1182 2002-08-07 Nick Clifton <nickc@redhat.com>
1184 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1185 an interworking bfd if there are input bfds. (107501)
1187 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1189 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1192 2002-08-01 Nick Clifton <nickc@redhat.com>
1194 * emulparams/armelf.sh: Revert previous delta.
1195 * scripttempl/elf.sc: Revert previous delta.
1197 2002-07-31 H.J. Lu <hjl@gnu.org>
1199 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1200 --enable-64-bit-bfd.
1202 2002-07-31 H.J. Lu <hjl@gnu.org>
1204 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1205 64bit BFD is selected.
1207 2002-07-31 H.J. Lu <hjl@gnu.org>
1209 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1210 if 64bit BFD is selected.
1212 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1214 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1215 link_info.common_skip_ar_aymbols.
1216 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1218 * ldmain.c (main): Initialize new field
1219 link_info.common_skip_ar_aymbols.
1221 2002-07-31 Adam Nemet <anemet@lnxw.com>
1223 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1225 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1228 2002-07-31 Nick Clifton <nickc@redhat.com>
1230 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1231 of the PDP-11 and 2.11BSD a.out support.
1233 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1235 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1236 for n32 ABI support.
1237 * Makefile.in: Regenerate.
1238 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1239 n32 ABI emulations for these 64 bit targets.
1240 * emulparams/elf32bmipn32.sh: Expand comment.
1241 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1243 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1245 2002-07-30 Graeme Peterson <gp@qnx.com>
1247 * configure.tgt: Add support for arm-*-nto target.
1248 * Makefile.am: Add earmnto.o file.
1249 * Makefile.in: Regenerate.
1250 * NEWS: Mention port of ARM support to QNX.
1251 * emulparams/armnto.sh: New file.
1253 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1255 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1256 for relocatable link.
1257 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1260 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1262 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1265 2002-07-25 Nick Clifton <nickc@redhat.com>
1267 * po/sv.po: Updated Swedish translation.
1268 * po/es.po: Updated Spanish translation.
1269 * po/fr.po: Updated French translation.
1271 2002-07-24 Nick Clifton <nickc@redhat.com>
1273 * po/sv.po: Updated Swedish translation.
1274 * po/es.po: Updated Spanish translation.
1276 2002-07-23 Nick Clifton <nickc@redhat.com>
1278 * po/fr.po: Updated French translation.
1280 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1282 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1283 bomb on /DISCARD/ input section.
1284 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1285 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1287 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1289 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1292 2002-07-16 Denis Chertykov <denisc@overta.ru>
1293 Nick Clifton <nickc@redhat.com>
1294 Frank Ch. Eigler <fche@redhat.com>
1295 John Healy <jhealy@redhat.com>
1297 * configure.tgt: Add support for ip2k-elf.
1298 * Makefile.am: Add support for ip2k-elf.
1299 * Makefile.in: Regenerate.
1300 * emulparams/elf32ip2k.sh: New file.
1301 * scripttempl/ip2k.sc: New file
1302 * NEWS: Mention support for new port.
1304 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1306 * NEWS: Add 'Changes in 2.13'.
1308 2002-07-14 H.J. Lu <hjl@gnu.org>
1310 * ld.texinfo: Document a .symver takes precedence over a
1313 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1315 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1316 (COMMONPAGESIZE): Define.
1318 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1320 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1322 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1324 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1325 powerpc-*-openbsd* and sparc64-*-openbsd*.
1326 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1327 * Makefile.in: Regenerate.
1328 * emulparams/hppaobsd.sh: New file.
1330 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1332 * ldlang.c (print_wild_statement): Fix output formatting.
1334 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1336 * ldlang.c: (strip_excluded_output_sections): New function.
1337 (lang_process): Call it.
1338 (lang_size_sections_1): Revert 2002-06-10 change.
1340 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1342 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1344 * Makefile.in: Regenerate.
1346 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1348 * ldfile.c (ldfile_try_open_bfd): Formatting.
1350 * ldmisc.c (demangle): Move so that it doesn't intrude between
1351 vfinfo comment and body. Add comment.
1353 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1355 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1357 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1359 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1360 * ldlang.c (entry_sym): Likewise.
1361 (ldlang_undef_chain_list_type): Likewise.
1362 (lang_finish): Adjust references to entry_symbol.
1363 (lang_add_entry): Likewise.
1364 (lang_gc_sections): Use link_info.gc_sym_list.
1365 (lang_process): Set link_info.gc_sym_list.
1366 * ldlex.l: Include bfdlink.h.
1367 * ldmain.c (main): Init link_info.gc_sym_list.
1368 * emultempl/aix.em: Adjust references to entry_symbol.
1369 * emultempl/armcoff.em: Likewise.
1370 * emultempl/armelf.em: Likewise.
1371 * emultempl/pe.em: Likewise.
1372 * emultempl/ppc64elf.em (ppc_after_open): New function.
1373 (LDEMUL_AFTER_OPEN): Define.
1374 * emulparams/elf64ppc.sh: KEEP .opd sections.
1376 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1378 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1379 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1380 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1381 (EEPROM_START_ADDR): Define.
1382 (EEPROM_MEMORY): Define.
1383 * emulparams/m68hc12elf.sh: Likewise.
1384 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1385 section to put soft registers in .page0.
1386 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1388 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1390 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1391 section. Add ${RELOCATING-0}.
1393 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1395 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1396 (OTHER_SECTIONS): Define.
1397 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1398 (OTHER_SECTIONS): Undef.
1400 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1402 * ldmisc.c (demangle): Restore dots stripped from sym name.
1404 2002-06-25 H.J. Lu <hjl@gnu.org>
1406 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1407 * Makefile.in: Regenerated.
1409 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1411 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1412 the size of attached object files, to allow make the object files
1413 available via FTP or HTTP and to mention that the mail will be
1414 sent to a mailing list.
1416 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1418 * ld/configure.host (romp): Drop support.
1420 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1422 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1423 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1425 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1427 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1428 format specifier used to print BFD name.
1430 2002-06-18 Dave Brolley <brolley@redhat.com>
1432 From Catherine Moore, Michael Meissner, Jim Blandy:
1433 * emulparams/elf32frv.sh: New file.
1434 * configure.tgt: Support frv-*-*.
1435 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1436 (eelf32frv.c): New target.
1438 2002-06-17 Tom Rix <trix@redhat.com>
1440 * emultempl/elf32.em: gld*_get_script: Check for
1441 GENERATE_COMBRELOC_SCRIPT.
1442 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1443 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1445 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1447 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1449 2002-06-12 H.J. Lu <hjl@gnu.org>
1451 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1452 false if xvec doesn't match.
1454 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1456 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1458 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1460 * ldexp.c: Replace CONST with const.
1461 * ldfile.c: Likewise.
1462 * ldfile.h: Likewise.
1463 * ldlex.l: Likewise.
1465 * pe-dll.h: Likewise.
1467 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1469 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1471 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1473 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1474 to -1 == implicit enable.
1475 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1476 initialize link_info.pei386_auto_import to -1 == implicit
1478 (gld_${EMULATION_NAME}_parse_args): When processing
1479 --enable-auto-import and --disable-auto-import options, use
1480 '1' and '0' instead of 'true' and 'false'.
1481 (pe_find_data_imports): Only issue message about auto-import
1482 when the feature is implicitly enabled. Downgrade message to
1483 informational instead of warning.
1485 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1487 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1489 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1491 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1492 HOSTING_CRT0 and HOSTING_LIBS.
1494 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1496 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1498 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1500 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1501 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1503 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1505 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1506 SEC_EXCLUDE sections when doing a relocatable link.
1508 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1510 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1511 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1512 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1513 (eshlelf64_nbsd.c): New rules.
1514 * Makefile.in: Regenerate.
1515 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1516 (sh64-*-netbsd*): New targets.
1517 * emulparams/shelf32_nbsd.sh: New file.
1518 * emulparams/shelf64_nbsd.sh: New file.
1519 * emulparams/shlelf32_nbsd.sh: New file.
1520 * emulparams/shlelf64_nbsd.sh: New file.
1522 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1524 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1526 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1528 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1529 C++ constructors/destructors, loosely based on the m68hc11 port.
1531 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1533 * Makefile.in: Regenerate.
1534 * aclocal.m4: Regenerate.
1535 * config.in: Regenerate.
1536 * configure: Regenerate.
1538 2002-05-31 Graeme Peterson <gp@qnx.com>
1540 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1541 (ei386nto.c): Add rule.
1542 * Makefile.in: Regenerate.
1543 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1544 * emulparams/i386nto.sh: New file.
1546 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1548 * NEWS: Add entry for VAX ELF support.
1550 2002-05-29 Matt Thomas <matt@3am-software.com>
1551 Jason Thorpe <thorpej@wasabisystems.com>
1553 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1555 (evaxnbsd.c): New rules.
1556 * Makefile.in: Regenerate.
1557 * configure.tgt (vax-*-netbsdelf*)
1559 (vax-*-netbsd*): New targets.
1560 * emulparams/elf32vax.sh: New file.
1561 * emulparams/vaxnbsd.sh: New file.
1563 2002-05-29 Adam Nemet <anemet@lnxw.com>
1565 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1566 bfd_for_interwork, instead add glue sections to each input bfd.
1567 (bfd_for_interwork): New global.
1568 (arm_elf_set_bfd_for_interworking): New function.
1569 (arm_elf_before_allocation): Use it.
1571 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1573 * Makefile.am: Add DLX make target.
1574 * configure.tgt: Add DLX configuration.
1575 * Makefile.in: Regenerate.
1576 * emulparams/elf32_dlx.sh: New file
1577 * scripttempl/dlx.sc: New file
1579 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1581 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1582 * Makefile.in: Regenerate.
1583 * emulparams/elf_chaos.sh: Use elf_chaos script.
1584 * scripttempl/elf_chaos.sc: New file.
1586 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1588 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1589 addresses and regions from here...
1590 (lang_get_regions): ...to this new function.
1591 (lang_leave_output_section_statement): Use lang_get_regions.
1592 (lang_leave_overlay): Likewise.
1593 * mri.c (mri_draw_tree): Pass null as last argument to
1594 lang_leave_output_section_statement.
1595 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1596 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1597 * emultempl/pe.em (gld*_place_orphan): Likewise.
1599 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1601 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1603 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1605 * ldemul.c: Fix formatting.
1606 * ldfile.c: Likewise.
1607 * pe-dll.c: Likewise.
1608 * pe-dll.h: Likewise.
1610 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1612 * ldlang.c (lang_process): Formatting, grammar.
1614 * ldlex.l: Use #include "" instead of <> for local header files.
1616 2002-05-24 TAMURA Kent <kent@netbsd.org>
1618 * configure.tgt: Add a target for i386-netbsdpe.
1620 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1622 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1623 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1624 output section if necessary. Handle .tbss.
1625 (lang_size_sections): Clear _raw_size for .tbss section
1626 (it allocates space in PT_TLS segment only).
1627 * ldwrite.c (build_link_order): Build link order for .tbss too.
1629 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1631 * configure.in: Correct spelling of AC_PREREQ.
1633 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1635 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1637 (autofilter_objlist): Add crtbegin.o, crtend.o.
1639 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1641 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1642 (longopts): Add new option --exclude-libs.
1643 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1644 (gld_${EMULATION_NAME}_parse_args): Use it.
1645 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1646 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1647 from whole archives.
1648 (pe_dll_add_excludes): Set excludes->type.
1649 (auto_export): Add new variable libname and set to archive basename if
1650 abfd. Use it when filtering default and user-specified libarary
1651 excludes. Let string "ALL" mean all libs when filtering user-specified
1653 * ld.texinfo: Document --exclude-libs.
1655 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1657 * ldemul.c (ldemul_new_vers_pattern): New function.
1658 * ldemul.h (ldemul_new_vers_pattern): Declare.
1659 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1660 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1661 * emultempl/ppc64elf.em (dotsyms): New static var.
1662 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1663 (LDEMUL_NEW_VERS_PATTERN): Define.
1664 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1665 (PARSE_AND_LIST_LONGOPTS): Likewise.
1666 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1667 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1669 * emultempl/armcoff.em: Likewise.
1670 * emultempl/armelf_oabi.em: Likewise.
1671 * emultempl/beos.em: Likewise.
1672 * emultempl/elf32.em: Likewise.
1673 * emultempl/generic.em: Likewise.
1674 * emultempl/gld960.em: Likewise.
1675 * emultempl/gld960c.em: Likewise.
1676 * emultempl/linux.em: Likewise.
1677 * emultempl/lnk960.em: Likewise.
1678 * emultempl/m68kcoff.em: Likewise.
1679 * emultempl/mipsecoff.em: Likewise.
1680 * emultempl/pe.em: Likewise.
1681 * emultempl/sunos.em: Likewise.
1682 * emultempl/ticoff.em: Likewise.
1683 * emultempl/vanilla.em: Likewise.
1685 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1687 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1688 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1689 (LIB_SEARCH_DIRS): No need to use "tr".
1690 (COMPILE_IN): Only set for native targets.
1691 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1692 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1693 * configure.tgt (powerpc*): Set tdir_*.
1694 (powerpcle*): Correct targ_extra_emuls.
1695 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1696 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1698 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1700 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1701 calling lang_add_entry.
1703 2002-05-21 H.J. Lu (hjl@gnu.org)
1705 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1707 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1709 * ld.texinfo: Updated for --allow-multiple-definition and
1712 * ldmain.c (main): Initialize the allow_multiple_definition
1715 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1716 (ld_options): Add --allow-multiple-definition.
1717 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1719 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1721 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1722 (earmelfb_nbsd.c): New rule.
1723 * Makefile.in: Regenerate.
1724 * configure.tgt (armeb-*-netbsdelf*): New target.
1725 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1726 (arm-*-netbsd*): Likewise.
1727 * emulparams/armelfb_nbsd.sh: New file.
1729 2002-05-18 Tom Rix <trix@redhat.com>
1731 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1734 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1736 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1737 * Makefile.in: Regenerate.
1738 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1740 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1742 * emulparams/avr1.sh: New file.
1743 * emulparams/avr2.sh: New file.
1744 * emulparams/avr3.sh: New file.
1745 * emulparams/avr4.sh: New file.
1746 * emulparams/avr5.sh: New file.
1747 * scripttempl/avr.sc: New file.
1749 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1751 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1752 (lang_place_orphans): Abort if just_syms_flag.
1754 2002-05-10 Tom Rix <trix@redhat.com>
1756 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1757 architecture and machine information in the output bfd.
1758 (gld*_before_parse): Remove old arch and machine code.
1759 (choose_target): Rename to gld*_choose_target.
1760 (rtld): Change type to int.
1761 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1762 objects in XCOFF archives.
1763 * ldfile.h: Update copyright date.
1765 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1767 * ldmain.c (main): Enable -z combreloc by default.
1769 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1771 * Makefile.am: Honour DESTDIR.
1772 * Makefile.in: Regenerate.
1774 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1776 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1777 (lang_enter_overlay): Remove the last two parameters.
1778 (lang_leave_overlay): Take them here instead.
1779 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1780 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1781 than lang_enter_overlay.
1782 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1783 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1784 (lang_size_sections_1): Evaluate it.
1785 (lang_leave_output_section_statement): Rework LMA lookup.
1786 (overlay_lma, overlay_nocrossrefs): Remove.
1787 (lang_enter_overlay): Remove LMA and crossref arguments.
1788 (lang_enter_overlay_section): Don't set the LMA here.
1789 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1790 assignment to the last section's update_dot_tree. Unconditionally
1791 use the load and run-time regions specified in the OVERLAY statement.
1792 Likewise the first section's LMA. Only set the other sections' LMAs
1793 when no load region is given.
1795 2002-05-06 Nick Clifton <nickc@redhat.com>
1797 * po/sv.po: New translation.
1799 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1801 * emultempl/hppaelf.em (build_section_lists): New function.
1802 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1803 and build_section_lists.
1805 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1807 * ld.h: Fix formatting.
1808 * ldexp.c: Likewise.
1809 * ldfile.c: Likewise.
1810 * ldlang.c: Likewise.
1811 * ldmain.c: Likewise.
1812 * lexsup.c: Likewise.
1813 * pe-dll.c: Likewise.
1815 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1817 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1818 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1819 (build_section_lists): Do output_section tests here.
1821 2002-04-30 Tom Rix <trix@redhat.com>
1823 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1825 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1827 Long branch stubs, multiple stub sections.
1828 * emultempl/ppc64elf.em: Include ldctor.h.
1829 (stub_file): New var.
1830 (group_size): New var.
1831 (ppc_create_output_section_statements): New function.
1832 (struct hook_stub_info): New.
1833 (hook_in_stub): New function.
1834 (ppc_add_stub_section): New function.
1835 (ppc_layout_sections_again): New function.
1836 (build_section_lists): New function.
1837 (gld${EMULATION_NAME}_finish): Rewrite.
1838 (real_func): New var.
1839 (ppc_for_each_input_file_wrapper): New function.
1840 (ppc_lang_for_each_input_file): New function.
1841 (lang_for_each_input_file): Define.
1842 (PARSE_AND_LIST_PROLOGUE): Define.
1843 (PARSE_AND_LIST_LONGOPTS): Define.
1844 (PARSE_AND_LIST_OPTIONS): Define.
1845 (PARSE_AND_LIST_ARGS_CASES): Define.
1846 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1848 2002-04-30 Tom Rix <trix@redhat.com>
1850 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1851 -blibpath, -bnolibpath support.
1853 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1855 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1856 (eelf32ppcwindiss.c): New target.
1857 * Makefile.in: Regenerated.
1858 * configure.tgt: Add support for powerpc-*-windiss.
1859 * emulparams/elf32ppcwindiss.sh: New file.
1861 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1863 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1864 * ldexp.c (exp_print_token): Add "infix_p" argument.
1865 (exp_print_tree): Update accordingly.
1867 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1869 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1870 * Makefile.in: Regenerate.
1871 * mpw-elfmips.c: Delete.
1872 * mpw-eppcmac.c: Delete.
1873 * mpw-esh.c: Delete.
1874 * mpw-idtmips.c: Delete.
1876 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1878 * emulparams/shelf32.sh (MACHINE): Now sh5.
1880 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1882 * ldgram.y: Fix syntax warning.
1884 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1886 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1887 to prevent "-n" from being taken as an abbreviation for
1888 "--no-pipeline-knowledge".
1890 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1892 * ldlang.c (lang_size_sections_1): Don't complain about
1893 SEC_NEVER_LOAD sections having no memory region specified.
1895 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1897 2002-04-07 matthew green <mrg@redhat.com>
1899 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1901 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1903 * dep-in.sed: Cope with absolute paths.
1904 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1906 * Makefile.in: Regenerate.
1908 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1910 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1912 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1914 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1915 is smaller than maximum, round dot up to common page boundary.
1917 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1919 * configure.host: Set up for generic hosts first, then tweak as
1920 necessary in more specific targets.
1921 (HOSTING_LIBS): Include libgcc_eh.a if found.
1923 2002-03-23 Andreas Jaeger <aj@suse.de>
1925 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1927 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1929 * Makefile.am: Run "make dep-am".
1930 * Makefile.in: Regenerate.
1932 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1934 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1936 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1938 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1939 add the symbol to the linker hash table immediately.
1940 (lang_place_undefineds): Split symbol creation out..
1941 (insert_undefined): ..to here.
1943 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1945 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1946 the contents of the buffer returned from basename function will are
1947 getting overwritten while still being used.
1949 2002-03-18 Jan Hubicka <jh@suse.cz>
1950 Andreas Jaeger <aj@suse.de>
1951 Andreas Schwab <schwab@suse.de>
1953 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1954 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1955 set libraries to default to lib64 paths.
1957 2002-03-18 Tom Rix <trix@redhat.com>
1959 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1960 * configure.tgt : Same.
1961 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1962 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1963 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1964 emulation parameters for better -b32, -b64 support.
1965 * emulparms/aixrs6.sh : Same.
1966 * emulparms/ppcmacos.sh : Same.
1967 * emultempl/aix.em (choose_target) : Use new emulation parameters
1968 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1969 * Makefile.in : Regenerate.
1971 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1973 * po/fr.po: Updated version.
1975 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1977 * ldmain.c (main): Move .text readonly flag fudges from here..
1978 * ldlang.c (lang_process): ..to here.
1980 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1982 * ldlang.c (lang_check): Remove the word size check added in last
1983 change. Treat emitrelocations case as for relocatable links.
1985 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1987 * po/fr.po: Updated version.
1989 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1991 * ldlang.c (lang_check): Do relocatable link checks first, so that
1992 warn_mismatch can't override. Check compatible and word size too.
1994 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1996 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1998 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2000 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2003 2002-03-04 H.J. Lu <hjl@gnu.org>
2005 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2006 .fini_array in the data segment.
2008 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2010 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2012 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2014 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2015 .init_array, and .fini_array.
2017 2002-02-20 Andreas Schwab <schwab@suse.de>
2019 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2020 .IA64_unwind* in a relocatable link.
2022 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2024 * NEWS: Mark 2.12 branch.
2026 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2028 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2029 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2031 2002-02-18 Tom Rix <trix@redhat.com>
2033 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2034 (gld*_before_allocation): Same.
2035 (gld*_create_output_section_statements): Generate
2036 __rtinit if run time linking. Add librtl.a to the link.
2037 (gld*_read_file): Clean.
2039 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2041 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2043 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2045 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2046 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2047 and eelf64alpha_fbsd.
2048 * Makefile.in: Regenerate.
2049 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2050 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2051 use a FreeBSD-specific emulation rather than the psABI one.
2052 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2053 for all FreeBSD ELF systems.
2054 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2056 * emulparams/elf32ppc_fbsd.sh: Likewise.
2057 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2058 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2059 * emulparams/elf64alpha_fbsd.sh: Likewise.
2060 * emulparams/elf_i386_fbsd.sh: Likewise.
2061 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2063 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2065 * po/tr.po: Updated version.
2067 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2069 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2072 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2074 * emultempl/mmo.em (mmo_after_open): Don't call
2075 _bfd_mmix_check_all_relocs when producing ELF output.
2077 2002-02-15 Richard Henderson <rth@redhat.com>
2079 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2080 definition. Emit a unop+nop pair.
2082 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2084 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2085 for presence of .MMIX.reg_contents.linker_allocated before early
2088 * NEWS: Mention support for MMIX.
2090 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2092 Support arbitrary length fill patterns.
2093 * ld.texinfo (Output Section Fill): Describe fill expressions.
2094 (FILL): Refer to the above.
2095 * ldexp.h (etree_value_type): Add "str" field.
2096 (union etree_union): Add "str" to "value" struct.
2097 (exp_bigintop): Declare.
2098 (exp_get_fill): Declare.
2099 * ldexp.c: Include "safe-ctype.h".
2100 (exp_intop): Set value.str to NULL.
2101 (exp_bigintop): New function.
2102 (new_rel): Pass in "str", and set new.str from it.
2103 (new_rel_from_section): Set new.str to NULL.
2104 (fold_name): Adjust calls to new_rel.
2105 (exp_fold_tree): Likewise.
2106 (exp_get_fill): New function.
2107 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2108 (INT): Returns a "bigint". Adjust all code handling INTs.
2109 (fill_opt): Returns a "fill".
2110 (fill_exp): Split out of fill_opt, use for FILL.
2111 * ldlang.h (struct _fill_type): New.
2112 (fill_type): Move typedef to ldexp.h.
2113 (lang_output_section_statement_type): "fill" is now a pointer.
2114 (lang_fill_statement_type): Likewise.
2115 (lang_padding_statement_type): Likewise.
2116 (lang_add_fill): Now takes a "fill_type *" param.
2117 (lang_leave_output_section_statement): Likewise.
2118 (lang_do_assignments): Likewise.
2119 (lang_size_sections): Likewise.
2120 (lang_leave_overlay_section): Likewise.
2121 (lang_leave_overlay): Likewise.
2122 * ldlang.c: Include ldgram.h after ldexp.h.
2123 (lang_output_section_statement_lookup): Adjust for fill_type change.
2124 (print_fill_statement): Likewise.
2125 (print_padding_statement): Likewise.
2126 (insert_pad): Now takes a "fill_type *" arg.
2127 (size_input_section): Likewise.
2128 (lang_size_sections_1): Likewise.
2129 (lang_size_sections): Likewise.
2130 (lang_do_assignments): Likewise.
2131 (lang_add_fill): Likewise.
2132 (lang_leave_output_section_statement): Likewise.
2133 (lang_leave_overlay_section): Likewise.
2134 (lang_leave_overlay): Likewise.
2135 Adjust all callers of the above function.
2136 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2137 starting with "0X" as well as "0x". Return bigint.str for hex
2138 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2139 Always use base 16 for numbers starting with "$".
2140 * ldmain.c: Include ldgram.h after ldexp.h.
2141 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2142 of bfd_fill_link_order.
2143 * pe-dll.c: Adjust lang_do_assignments calls.
2144 * emultempl/elf32.em: Likewise.
2145 * emultempl/hppaelf.em: Likewise.
2146 * emultempl/ppc64elf.em: Likewise.
2147 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2148 lang_add_assignment call.
2149 * emultempl/pe.em: Likewise.
2151 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2153 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2154 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2155 the pattern in question is not a regexp.
2156 * ldlang.c: Likewise.
2157 * ldlang.h: Likewise.
2158 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2160 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2162 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2163 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2164 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2165 * ldexp.c (exp_data_seg): New variable.
2166 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2167 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2168 (exp_fold_tree): Handle DATA_SEGMENT_END.
2169 Pass allocation_done when recursing instead of hardcoding
2170 lang_allocating_phase_enum.
2171 * ldexp.h (exp_data_seg): New.
2172 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2173 (lang_size_sections): New.
2174 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2175 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2176 if COMMONPAGESIZE is defined.
2177 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2178 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2179 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2180 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2181 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2184 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2186 * Makefile.in: Regenerate.
2188 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2190 * lexsup.c: Remove strtoul declaration.
2192 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2194 * ldmain.c: Add prototype for main ().
2195 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2196 * emultempl/lnk960.em (lnk960_choose_target): Function should
2199 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2201 * ldlang.c (entry_section): New initialised variable.
2202 (lang_finish): Use it.
2203 * ldlang.h (entry_section): Declare.
2204 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2205 entry_section to ".opd".
2207 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2209 * ld.texinfo (Options): Add back in -nostdlib documentation,
2210 which had been inadvertently removed.
2212 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2214 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2215 register section vma to a sane value after emitting error. Make
2216 fatal conditions cause program exit when emitting message.
2218 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2220 * configure.tgt: Add or32-*-rtems target.
2222 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2224 Contribute sh64-elf.
2225 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2226 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2227 in OTHER_RELOCATABLE_SECTIONS.
2228 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2229 * emulparams/shelf32.sh (STACK_ADDR): Define.
2230 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2231 (OTHER_SECTIONS): this. Removed stack settings.
2232 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2233 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2234 2001-03-12 DJ Delorie <dj@redhat.com>
2235 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2236 relaxing if any shmedia or mixed sections are found.
2237 2001-03-07 DJ Delorie <dj@redhat.com>
2238 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2239 einfo. Gracefully decline to output to non-elf formats.
2240 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2241 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2242 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2243 * emulparams/shelf32.sh: Ditto.
2244 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2245 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2247 2001-01-10 Ben Elliston <bje@redhat.com>
2248 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2249 non-portable shell constructs. From Hans-Peter Nilsson.
2250 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2251 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2252 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2253 dependencies to the shell script include chain.
2254 * Makefile.in: Regenerate.
2255 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2256 * emultempl/sh64elf.em: Update and tweak comments.
2257 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2258 make a .cranges section SEC_IN_MEMORY.
2259 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2260 * emultempl/sh64elf.em
2261 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2262 .cranges section found to be necessary; continue and set stored
2263 section contents flags for sections with non-mixed contents.
2264 Use a struct sh64_section_data container and sh64_elf_section_data
2265 to store contents-type flags.
2266 Remove unused update of "isec".
2267 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2268 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2269 access contents-type flags. Assert that the associated container
2270 is initialized. Use that container, not elf_gp_size, to hold size
2271 of linker-generated cranges contents.
2272 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2273 * emultempl/sh64elf.em
2274 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2275 there's already a .cranges section. When section flag difference
2276 is found, don't NULL-check cranges a second time. Tweak comments.
2277 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2278 merging, not max size, as size of ld-generated .cranges contents.
2279 Don't set ELF section flags in output section. When checking for
2280 needed .cranges descriptors, don't use a variable; compare
2281 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2283 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2284 * emultempl/sh64elf.em: New file.
2285 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2286 * Makefile.in: Regenerate.
2287 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2288 (OTHER_RELOCATING_SECTIONS): Ditto.
2289 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2290 * emulparams/shlelf32.sh: Stub out all settings except
2291 OUTPUT_FORMAT. Source shelf32.sh.
2292 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2293 OTHER_RELOCATING_SECTIONS.
2294 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2295 * emulparams/shlelf64.sh: Stub out all settings except
2296 OUTPUT_FORMAT. Source shelf64.sh.
2297 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2298 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2300 (DATA_START_SYMBOLS): Define, provide ___data.
2301 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2302 for consecutive .data section.
2303 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2304 section after .data section.
2305 * emulparams/shlelf64.sh: Ditto.
2306 * emulparams/shelf32.sh: Ditto.
2307 (ALIGNMENT): Define to 8.
2308 * emulparams/shelf32.sh: Ditto.
2309 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2310 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2311 built-in linker scripts.
2312 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2313 * emulparams/shlelf64.sh: New.
2314 * emulparams/shelf64.sh: New.
2315 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2317 * Makefile.am: Add support for shlelf64 and shelf64.
2318 * Makefile.in: Regenerate.
2319 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2320 * configure.tgt (sh64-*-elf*): Add shelf as default.
2321 Add shlelf to targ_extra_emuls.
2322 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2323 * emulparams/shelf32.sh: New file.
2324 * emulparams/shlelf32.sh: New file.
2325 * Makefile.am: Add support for shlelf32 and shelf32.
2326 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2327 * Makefile.in: Regenerate.
2329 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2331 * ldlang.c (lang_reset_memory_regions): Rename from
2332 reset_memory_regions. Change all callers. Make public.
2333 * ldlang.h (lang_reset_memory_regions): Prototype.
2334 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2335 lang_reset_memory_regions before lang_size_sections.
2336 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2337 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2339 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2341 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2342 arithmetic when checking for too many global registers.
2344 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2346 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2347 (ehppanbsd.c): New rule.
2348 * Makefile.in: Regenerate.
2349 * configure.tgt (hppa*-*-netbsd*): New target.
2350 * emulparams/hppalinux.sh: Add comment to check other files
2351 that source this file it is modified, and list which
2353 * emulparams/hppanbsd.sh: New file.
2355 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2357 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2360 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2362 Support on-demand global register allocation from
2363 R_MMIX_BASE_PLUS_OFFSET relocs.
2364 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2365 mmix_set_reg_section_vma. Call
2366 _bfd_mmix_finalize_linker_allocated_gregs.
2367 (mmix_before_allocation): New function.
2368 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2369 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2370 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2371 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2372 before .MMIX.reg_contents.
2373 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2374 (mmo_after_open): New function.
2375 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2376 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2377 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2379 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2381 * emulparams/or32.sh: New file.
2382 * emulparams/or32elf.sh: New file.
2383 * scripttempl/or32.sc: New file.
2384 * configure.tgt : Add support for or32.
2385 * configure: Regenerate
2386 * Makefile.am: Add support for or32.
2387 * Makefile.in: Regenerate.
2388 * NEWS: Mention support for or32.
2389 * po/ld.pot: Regenerate.
2391 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2392 Mitch Lichtenberg <mpl@broadcom.com>
2394 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2395 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2396 reloc creation (ld --embedded-relocs).
2398 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2400 * configure: Regenerated.
2402 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2404 * Makefile.am (install): Depend on install-info.
2405 * Makefile.in: Regenerate.
2407 2002-01-26 Christian Rose <menthos@menthos.com>
2409 * ldmain.c (main): Use full sentences to ease translation.
2411 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2413 * po/fr.po: Updated version.
2415 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2417 * po/es.po: Updated version.
2419 2002-01-25 Andreas Jaeger <aj@suse.de>
2421 * ldlex.l (yy_input): Correct error check.
2423 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2425 * ldmisc.c (demangle): Put back dots when string not demangled.
2427 2002-01-22 Richard Henderson <rth@redhat.com>
2429 * emulparams/elf64alpha.sh (NOP): Use unop.
2431 2002-01-21 Andreas Jaeger <aj@suse.de>
2433 * ldlex.l: Use fread instead of read.
2435 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2437 * configure.tgt (ia64-*-netbsd*): New target.
2439 2002-01-21 H.J. Lu <hjl@gnu.org>
2441 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2443 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2445 2002-01-18 Andreas Jaeger <aj@suse.de>
2447 * ldver.c (ldversion): Update year.
2449 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2451 * po/ld.pot: Regenerate.
2453 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2455 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2456 * Makefile.in: Regenerate.
2457 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2458 * emultempl/ppc64elf.em: New file.
2460 2002-01-15 DJ Delorie <dj@redhat.com>
2462 * scripttempl/pe.sc: Add support for constructor priorities.
2464 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2466 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2467 * emulparams/avr23xx.sh: Likewise.
2468 * emulparams/avr4433.sh: Likewise.
2469 * emulparams/avr44x4.sh: Likewise.
2470 * emulparams/avr85xx.sh: Likewise.
2471 * emulparams/avrmega103.sh: Likewise.
2472 * emulparams/avrmega161.sh: Likewise.
2473 * emulparams/avrmega603.sh: Likewise.
2474 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2476 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2478 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2479 archive is excluded.
2481 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2483 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2484 (eshelf_nbsd.c): New rule.
2485 (eshlelf_nbsd.c): New rule.
2486 * Makefile.in: Regenerate.
2487 * configure.tgt (sh*le-*-netbsdelf*): New target.
2488 (sh*-*-netbsdelf*): New target.
2489 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2490 * ld/emulparams/shelf_nbsd.sh: New emulation.
2491 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2493 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2495 * po/es.po: New file: Spanish translation.
2496 * configure.in (ALL_LINGUAS): Add es.
2497 * configure: Regenerate.
2499 2002-01-06 John Marshall <jmarshall@acm.org>
2501 * ld.texinfo: Note that --emit-relocs is currently only
2502 implemented for ELF.
2504 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2506 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2507 of bfd_section_list_remove and bfd_section_list_insert macros.
2508 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2509 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2511 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2513 * configure.tgt (x86_64-*-netbsd*): New target.
2515 2001-12-21 Tom Rix <trix@redhat.com>
2517 (gld*_create_output_section_statements): New function.
2518 For -binitfini support.
2519 * emultempl/aix.em (gld*_before_parse): Fix comment.
2520 * emultempl/aix.em (gld*_parse_args): Fix comment.
2522 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2524 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2526 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2528 * configure.tgt (arm-*-netbsdelf*): Add target.
2529 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2530 * emulparams/armelf_nbsd.sh: Added.
2531 * Makefile.am: Add rules for earmelf_nbsd.
2532 * Makefile.in: Regenerate.
2534 2001-12-19 Andreas Jaeger <aj@suse.de>,
2535 Susanne Oberhauser <froh@suse.de>
2537 * configure.host: Add rules for x86_64-*linux-gnu. Change
2538 s390x-linux entry to use gcc to report configuration, replace gcc
2539 with $CC in s390-linux
2541 2001-12-19 Andreas Jaeger <aj@suse.de>
2543 * ld.texinfo (VERSION): Fix markup.
2545 2001-12-18 matthew green <mrg@eterna.com.au>
2547 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2548 (m68kelfnbsd.c): New rule.
2549 * Makefile.in: Regenerate.
2550 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2551 (m68*-*-netbsd*4k*): .. this.
2552 (m68*-*-netbsdelf*): New target.
2553 (m68*-*-netbsd*): Also include ELF support.
2554 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2555 * emulparams/m68kelfnbsd.sh: New emulation.
2557 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2559 * ldgram.y (vers_node): Support anonymous version tags.
2560 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2561 tag is not defined together with non-anonymous versions.
2562 * ld.texinfo: Document it.
2564 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2566 * po/tr.po: New file: Turkish translation.
2567 * configure.in (ALL_LINGUAS): Add tr.
2568 * configure: Regenerate.
2570 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2572 * Makefile.am: Add rules for eelf64alpha_nbsd.
2573 * Makefile.in: Regenerate.
2574 * configure.tgt (alpha*-*-netbsd*): Set
2575 targ_emul to elf64alpha_nbsd.
2576 * emulparams/elf64alpha_nbsd.sh: Added.
2578 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2580 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2581 section_tail when fiddling with section list.
2582 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2583 broken into separate strings to make translation easier.
2584 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2585 fiddling with section list.
2586 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2588 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2590 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2592 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2594 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2596 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2598 * emultempl/elf32.em (finish): Supply output_bfd
2599 to bfd_elf*_discard_info.
2600 (OPTION_EH_FRAME_HDR): Define.
2601 (longopts): Add --eh-frame-hdr.
2602 (parse_args): Handle it.
2603 (list_options): Add --eh-frame-hdr to help.
2604 * emultempl/hppaelf.em (finish): Supply output_bfd
2605 to bfd_elf*_discard_info.
2606 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2608 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2610 * lexsup.c (parse_args): Don't pass shortopts to second call to
2611 getopt functions. Restore optind rather than decrementing before
2612 second call. Remove errind as it now duplicates last_optind.
2614 2001-12-11 Christopher Faylor <cgf@redhat.com>
2616 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2618 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2619 Richard Henderson <rth@redhat.com>
2621 * Makefile.am: Add support for xstormy16.
2622 * configure.tgt: Add support for xstormy16.
2623 * Makefile.in: Regenerate.
2624 * emulparams/elf32xstormy16.sh: New file.
2625 * scripttempl/xstormy16.sc: New file.
2627 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2629 * Makefile.in (LIB_PATH): Make configurable.
2630 (GENSCRIPTS): Set LIB_PATH in environment.
2631 * configure.in: Substitute LIB_PATH.
2632 * configure: Regenerate.
2633 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2634 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2636 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2638 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2639 describing the -N option so that it is easier to translate into
2642 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2644 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2645 statements describing a single option with a single, newline
2646 escaped fprintf. This allows better translation into other
2649 * ldmain.c (add_archive_element): Combine multiple strings
2650 into a single string to permit better translation into other
2653 2001-12-05 Tom Rix <trix@redhat.com>
2655 * Makefile.am: Remove eaixppc64.
2656 * Makefile.in: Regenerate.
2658 2001-12-04 Tom Rix <trix@redhat.com>
2660 * emultempl/aix.em (choose_target): Change default target to
2661 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2663 (gld*_read_file): Fix typo.
2664 (change_symbol_mode): Add prototype.
2667 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2668 * emulparams/aixrs6.sh : Same.
2669 * emulparams/ppcmacos.sh : Same.
2670 * emulparams/aixppc64.sh : Delete file.
2671 * emultempl/aix.em : Formatting changes.
2673 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2675 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2676 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2678 (OTHER_END_SYMBOLS): Fix formatting.
2679 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2680 (OTHER_END_SYMBOLS): Fix formatting.
2682 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2684 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2686 2001-12-02 Tom Rix <trix@redhat.com>
2688 * configure.tgt : Remove eaixppc64 emulations.
2689 * Makefile.in : Remove eaixppc64.c
2690 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2691 (ldemul_default_target): Same.
2692 * emultempl/gld960.em (gld960_choose_target): Same.
2693 * emultempl/gld960c.em (gld960_choose_target): Same.
2694 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2695 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2696 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2697 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2698 * emultempl/aix.em (choose_target): New function. Handle emulation of
2701 2001-11-27 H.J. Lu <hjl@gnu.org>
2703 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2704 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2705 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2706 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2707 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2708 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2709 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2710 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2712 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2715 (REL_SDATA): Likewise.
2716 (REL_SBSS): Likewise.
2717 (REL_SDATA2): Likewise.
2718 (REL_SBSS2): Likewise.
2719 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2722 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2724 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2726 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2728 2001-11-22 H.J. Lu <hjl@gnu.org>
2730 * Makefile.in: Regenerated with automake based on automake
2731 1.4-8 in RedHat 7.1.
2733 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2735 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2736 (config.status): Delete rule.
2737 Add extra dependencies to cover sourced emulparams files.
2738 * Makefile.in: Regenerate.
2740 * scripttempl/elf.sc: Order <section>, <section>.* and
2741 corresponding linkonce sections as seen in input files.
2742 Formatting fixes. Zero vma of all sections if not relocating.
2743 (STACK): Define and insert if STACK_ADDR defined.
2744 (OTHER_RELOCATING_SECTIONS): Delete.
2745 (OTHER_END_SYMBOLS): Define.
2746 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2747 (OTHER_READWRITE_SECTIONS): Likewise.
2748 (OTHER_GOT_SECTIONS): Likewise.
2749 (OTHER_SDATA_SECTIONS): Likewise.
2750 (OTHER_BSS_SECTIONS): Likewise.
2751 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2752 (OTHER_READWRITE_SECTIONS): Likewise.
2753 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2754 (OTHER_READWRITE_SECTIONS): Likewise
2756 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2757 (STACK_ADDR): Define.
2758 * emulparams/armelf_oabi.sh: As for armelf.sh.
2759 * emulparams/elf32mcore.sh: As for armelf.sh.
2760 * emulparams/h8300elf.sh: As for armelf.sh.
2761 * emulparams/mn10200.sh: As for armelf.sh.
2762 * emulparams/shelf.sh: As for armelf.sh.
2764 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2765 (OTHER_END_SYMBOLS): Define.
2766 * emulparams/m32relf.sh: As for elf32fr30.sh.
2767 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2768 * emulparams/h8300self.sh: As for elf32fr30.sh.
2770 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2771 defines with RELOCATING test.
2772 (OTHER_SDATA_SECTIONS): Likewise.
2773 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2774 (OTHER_END_SYMBOLS): ..this.
2775 * emulparams/crislinux.sh: As for criself.sh.
2777 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2779 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2780 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2781 normal and linkonce sections as seen in input files.
2782 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2783 (TEXT_DYNAMIC): Likewise.
2784 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2785 (OTHER_SDATA_SECTIONS): Likewise.
2786 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2787 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2788 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2789 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2790 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2791 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2792 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2793 sections as seen in input files.
2794 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2795 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2797 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2798 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2799 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2800 (OTHER_SECTIONS): Instead, use this..
2801 (OTHER_END_SYMBOLS): ..and this.
2803 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2804 * emulparams/elf32bsmip.sh: Likewise.
2805 * emulparams/elf32btsmip.sh: Likewise.
2806 * emulparams/elf32ebmip.sh: Likewise.
2807 * emulparams/elf32lmip.sh: Likewise.
2808 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2809 * emulparams/elf32lsmip.sh: Likewise.
2810 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2811 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2812 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2813 * emulparams/elf64btsmip.sh: Likewise.
2814 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2815 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2816 * emulparams/elf32ppclinux.sh: Likewise.
2817 * emulparams/elf32ppcsim.sh: Likewise.
2818 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2819 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2820 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2821 * emulparams/h8300self.sh: Likewise.
2822 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2823 * emulparams/sh.sh: Comment.
2824 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2825 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2826 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2828 2001-11-21 David Heine <dlheine@tensilica.com>
2829 Alan Modra <amodra@bigpond.net.au>
2831 * ldlang.c (map_input_to_output_sections): Replace "break"
2832 accidentally removed with 2001-08-03 change.
2833 (lang_gc_sections_1): Likewise.
2835 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2837 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2839 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2841 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2842 of false when calling lang_size_sections.
2843 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2845 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2847 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2848 function when LDEMUL_FINISH isn't set to the same name. Don't
2849 call ${LDEMUL_FINISH}.
2850 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2851 * emultempl/armelf.em (arm_elf_finish): Call
2852 gld${EMULATION_NAME}_finish.
2853 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2854 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2855 hppaelf_layout_sections_again if necessary.
2856 (need_laying_out): New var.
2857 (hppaelf_layaout_sections_again): Rename to
2858 hppaelf_layout_sections_again. Clear need_laying_out.
2859 (PARSE_AND_LIST_OPTIONS): Format text.
2861 2001-11-14 H.J. Lu <hjl@gnu.org>
2863 * emultempl/armelf.em (arm_elf_finish): Renamed from
2864 gld${EMULATION_NAME}_finish.
2865 (LDEMUL_FINISH): Set to arm_elf_finish.
2867 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2869 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2870 (struct ld_emulation_xfer_struct): Use it.
2872 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2874 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2875 additional symbols referenced by newer crt0.o files from HP.
2877 2001-11-12 Anthony Green <green@redhat.com>
2879 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2881 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2883 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2884 * Makefile.in: Regenerate.
2886 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2888 * ld.texinfo: Use @command for commands, @option for options.
2889 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2891 * Makefile.in: Rebuild.
2893 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2895 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2896 Add support for targets.
2898 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2900 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2901 * configure: Regernate.
2902 * po/fr.po: New file.
2903 * po/sv.po: New file.
2905 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2907 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2908 as little endian default and to support big endian.
2910 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2912 * ld.texinfo (Options): Document new option, -nostdlib.
2913 * lexsup.c (OPTION_NOSTDLIB): New definition.
2914 (ld_options): Add entry for "nostdlib".
2915 (parse_args): Handle OPTIONS_NOSTDLIB.
2916 * ldfile.c (ldfile_add_library_path): Don't add directories
2917 to the search path if they weren't specified on the command line
2918 and -nostdlib was specified.
2919 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2921 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2923 * lexsup.c (parse_args): Prevent infinite parsing loop when
2924 "-rpath.a" is specified on the command line.
2925 Replace calls to fprintf with calls to einfo.
2927 2001-10-31 John Marshall <jmarshall@acm.org>
2929 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2930 appear only once across all the linker scripts involved in a link
2931 invocation no longer applies. Make the documentation reflect
2934 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2936 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2938 (sh-*-linux*): Added targ_extra_libpath.
2940 2001-10-31 David Heine <dlheine@tensilica.com>
2942 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2943 for padding statements.
2945 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2947 * configure.tgt (mmix-*-*): New target.
2948 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2949 Add dependencies to match.
2950 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2951 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2952 scripttempl/mmo.sc: New files.
2953 * gen-doc.texi: @set MMIX.
2954 * ld.texinfo: Ditto.
2955 [MMIX] Add MMIX node.
2956 * Makefile.in: Regenerate.
2958 2001-10-29 Kazu Hirata <kazu@hxi.com>
2960 * ldlang.c: Fix a comment typo.
2962 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2964 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2965 entries, and match *-*-linux*.
2967 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2969 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2970 with ldlex_script, ldlex_popstate.
2971 (ifile_p1): Likewise.
2972 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2974 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2975 to 1. Don't BEGIN(SCRIPT).
2976 (lex_redirect): Similarly.
2977 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2979 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2981 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2982 __EH_FRAME_END__ and accept eh frames into data section.
2983 Add ctor and dtor sections.
2985 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2987 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2988 (auto-export): Fix indentation.
2990 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2992 * pe-dll.c (autofilter_objectlist): Add startup objects
2994 (auto-export): Constify char * p.
2995 Extract file basename and use strcmp rather than ststr
2998 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3000 * ldmain.c (get_emulation): Improve comment about the handling
3003 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3005 * po/POTFILES.in: Regenerate.
3007 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3009 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3010 -z nocopyreloc and -z nocombreloc usage strings.
3012 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3014 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3017 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3019 * scripttempl/armaout.sc: Place .bss section after end of aligned
3020 data section to match behaviour of aout code in constructrion of
3023 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3025 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3026 startup files for mingw32 dlls to list.
3028 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3030 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3032 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3034 * configure.tgt (targ): Add arm9e-*-elf.
3036 2001-10-05 H.J. Lu <hjl@gnu.org>
3038 * genscripts.sh: Fix a typo in the last change.
3040 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3042 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3043 -z nocombreloc in usage.
3045 2001-10-03 Jim Blandy <jimb@redhat.com>
3047 * genscripts.sh: Include a comment at the top of each generated
3048 script, explaining its purpose.
3050 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3052 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3053 * NEWS: Mention -z nocopyreloc.
3054 * ld.texinfo (Options): Describe nocopyreloc.
3056 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3058 * configure: Regenerate.
3060 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3062 * ldver.h (ld_program_version): Remove declaration.
3063 * lexsup.c (parse_args): Move printing of copyright message..
3064 * ldver.c (ldversion): .. to here.
3065 Use BFD_VERSION_STRING in place of BFD_VERSION.
3066 (ld_program_version): Remove.
3067 * Makefile.am (Makefile): Depend on bfd/configure.in.
3069 * Makefile.in: Regenerate.
3071 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3073 * Makefile.am: Update dependencies with "make dep-am".
3074 * Makefile.in: Regenerate.
3076 2001-09-29 John Reiser <jreiser@BitWagon.com>
3078 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3079 * lexsup.c: Add --no-define-common commandline option.
3080 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3081 * ldlex.l: Likewise.
3082 * ld.h: Add command_line.inhibit_common_definition.
3083 * ldmain.c (main): Initialize.
3084 * ld.texinfo: Document.
3086 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3088 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3090 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3092 * ldmisc.c (USE_STDARG): Remove.
3093 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3098 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3099 declarations. Update copyright.
3101 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3103 * pe-dll.c: Remove obsoleted declaration of
3104 pe_get_data_import_dll_name.
3105 (pe_create_import_fixup): Fix thinko.
3107 * ld.texinfo(enable-auto-import): Clarify the explanation.
3109 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3111 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3112 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3113 DLL_SUPPORT controlled code.
3115 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3117 * emultempl/pe.em(pe_data_import_dll): Make static.
3118 (pe_get_data_import_dll_name): New accessor function.
3119 * pe-dll.c(pe_create_import_fixup): call
3120 pe_get_data_import_dll_name() from pe.em, instead of
3121 directly accessing pe_data_import_dll variable from pe.em.
3123 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3125 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3126 (def_file_add_directive): Use ISSPACE instead of isspace.
3127 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3128 isdigit/isxdigit/isalpha/isalnum.
3129 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3130 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3131 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3132 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3134 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3135 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3137 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3138 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3139 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3140 (ctor_prio): Use ISDIGIT instead of isdigit.
3141 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3142 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3143 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3145 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3146 (stricpy): Use TOLOWER instead of isupper/tolower.
3147 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3148 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3149 (lex_warn_invalid): Use ISPRINT instead of isprint.
3150 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3151 (main): For gettext, also set the LC_CTYPE locate facet.
3152 (add_keepsyms_file): Use ISSPACE instead of isspace.
3153 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3154 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3155 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3156 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3157 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3158 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3159 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3160 (quoteput): Use ISSPACE instead of isspace.
3161 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3164 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3166 * deffilep.y (def_stash_module): Constify "name" param.
3168 * pe-dll.c: Replace CONST with const throughout.
3169 (quick_symbol): Constify "n1", "n2", "n3" params.
3170 (make_singleton_name_thunk): Constify "import" param. Make
3171 "buffer_len" a size_t.
3172 (make_import_fixup_entry): Constify "name", "fixup_name",
3173 "dll_symname" params.
3174 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3175 (pe_get32): Likewise.
3176 (pe_implied_import_dll): Likewise.
3178 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3179 (sort_by_section_name): Likewise.
3181 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3182 (make_import_fixup): Cast printf arg, rel->address to long rather
3184 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3186 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3188 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3189 defines BufferSize. Increase buffer size by one.
3191 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3193 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3195 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3197 * configure.tgt: Add arm-openbsd target.
3199 2001-09-12 H.J. Lu <hjl@gnu.org>
3201 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3203 (ALL_64_EMULATIONS): Here.
3204 * Makefile.in: Regenerated.
3206 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3208 * emultempl/pe.em(make_import_fixup): change signature to
3209 take asection as well as arelec; we need this for proper
3210 error reporting. Only call pe_create_import_fixup() if
3211 there is no attempt to add a constant addend to the reloc;
3212 otherwise, report error condition.
3213 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3214 since final argument is a pointer to make_import_fixup().
3215 Change call to cb() to match make_import_fixup() signature.
3216 (make_import_fixup_mark): make buffer_len unsigned.
3217 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3219 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3221 * ld.texinfo: add verbose documentation for auto-import
3222 direct-addressing workaround, to compliment the terse
3225 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3227 * scripttempl/v850.sc: Add gcc_except_table sections.
3229 2001-09-11 Jeffrey A Law (law@cygnus.com)
3231 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3232 * emulparams/h8300self.sh: Similarly.
3234 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3236 * ld.texinfo (Options, --stack): Correct default value for stack
3239 2001-09-05 Tom Rix <trix@redhat.com>
3241 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3243 2001-09-03 Andreas Jaeger <aj@suse.de>
3245 * emultempl/beos.em: Declare prototypes for comparions functions,
3248 2001-09-02 Andreas Jaeger <aj@suse.de>
3250 * emultempl/aix.em: Add missing prototype.
3251 * emultempl/lnk960.em: Likewise.
3252 * emultempl/vanilla.em: Likewise.
3253 * emultempl/armcoff.em: Likewise.
3254 * emultempl/armelf_oabi.em: Likewise.
3255 * emultempl/beos.em: Likewise.
3256 * emultempl/gld960c.em: Likewise.
3257 * emultempl/gld960.em: Likewise.
3259 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3260 for prototype declaration.
3262 2001-08-31 Eric Christopher <echristo@redhat.com>
3263 Jason Eckhardt <jle@redhat.com>
3265 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3267 2001-08-31 Andreas Jaeger <aj@suse.de>
3269 * emultempl/pe.em: Add missing prototypes.
3270 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3271 pe_find_data_imports.
3272 (pr_sym): Add unused attribute.
3274 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3276 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3277 default from coff to elf.
3279 2001-08-29 Jeff Law <law@redhat.com>
3281 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3283 * emulparams/h8300self.sh: Similarly.
3285 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3287 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3289 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3290 * configure.tgt (h8300-*-elf*): New case.
3291 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3292 * emulparams/h8300self.sh: New file.
3293 * Makefile.in: Regenerated.
3295 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3297 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3300 2001-08-27 Linus Nordberg <linus@swox.com>
3301 Alan Modra <amodra@bigpond.net.au>
3303 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3304 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3306 * Makefile.in: Regenerate.
3307 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3308 entries to correct alphabetical position.
3309 * emulparams/elf64ppc.sh: New.
3310 * emulparams/elf64lppc.sh: New.
3312 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3314 * ldmain.c (main): Declare BSIZE as static.
3316 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3318 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3319 into .rel.dyn resp. .rela.dyn if combreloc.
3320 (get_script): If .x linker script is equal to .xn, only put it
3321 once into the binary.
3322 Add .xc and .xsc scripts.
3323 (parse_args): Handle -z combreloc and -z nocombreloc.
3324 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3325 For .xc and .xsc scripts put all .rel* or .rela* input sections
3326 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3327 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3329 Strip trailing whitespace from script.
3330 Generate .xc and .xsc scripts if requested.
3331 * ldmain.c (main): Initialize link_info.combreloc and
3332 link_info.spare_dynamic_tags.
3333 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3334 (ld_options): Add --spare-dynamic-tags option.
3335 (parse_args): Likewise.
3336 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3337 * ldint.texinfo: Document .xc and .xsc linker scripts.
3338 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3340 2001-08-22 H.J. Lu <hjl@gnu.org>
3342 * emulparams/elf32fr30.sh: Add a newline.
3344 2001-08-21 Andreas Jaeger <aj@suse.de>
3346 * deffilep.y: Add missing prototypes.
3347 * pe-dll.c: Likewise.
3349 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3351 * ldlang.c (insert_pad): Fix typos in last patch.
3353 * ldlang.c: When traversing lang_statement_union_type lists,
3354 consistently use "header.next" rather than "next".
3355 * mpw-eppcmac.c: Likewise.
3356 * emultempl/beos.em: Likewise.
3357 * emultempl/hppaelf.em: Likewise.
3358 * emultempl/pe.em: Likewise.
3359 * ldlang.h (union lang_statement_union): Remove "next" field.
3361 * ldlang.c (insert_pad): Use offsetof macro.
3362 (lang_size_sections): Always neuter padding statements.
3363 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3365 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3366 passed to lang_size_sections.
3367 (pe_exe_fill_sections): Likewise.
3368 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3369 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3371 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3373 * emultempl/aix.em: Formatting fixes.
3375 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3377 * ldlang.c (insert_pad): Make use of an existing pad statement if
3378 available. Move code calculating alignment, adjusting section
3379 alignment power, and adjusting dot to ..
3380 (size_input_section): .. here. Remove unused relax param.
3381 (lang_size_sections): Change boolean `relax' param to boolean *.
3382 Adjust call to size_input_section. Make use of insert_pad to
3383 place pad after the assignment statement. If relaxing, zap
3385 (reset_memory_regions): Reset output_bfd section sizes too.
3386 (relax_again): Move to..
3387 (lang_process): ..here. Adjust call to lang_size_sections, and
3388 remove duplicated code.
3389 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3391 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3393 * ld.texinfo: Document that fill values now use the four least
3395 * emulparams/elf32fr30.sh (NOP): Update.
3396 * emulparams/elf32mcore.sh: Likewise.
3397 * emulparams/elf64_s390.sh: Likewise.
3398 * emulparams/elf_i386.sh: Likewise.
3399 * emulparams/elf_i386_be.sh: Likewise.
3400 * emulparams/elf_i386_chaos.sh: Likewise.
3401 * emulparams/elf_i386_ldso.sh: Likewise.
3402 * emulparams/elf_s390.sh: Likewise.
3403 * emulparams/elf_x86_64.sh: Likewise.
3404 * emulparams/i386moss.sh: Likewise.
3405 * emulparams/i386nw.sh: Likewise.
3406 * emulparams/m68kelf.sh: Likewise.
3407 * scripttempl/elf.sc: Update NOP comment.
3408 * scripttempl/elfi370.sc: Likewise.
3409 * scripttempl/elfm68hc11.sc: Likewise.
3410 * scripttempl/elfm68hc12.sc: Likewise.
3411 * scripttempl/nw.sc: Likewise.
3413 2001-08-15 Tom Rix <trix@redhat.com>
3415 * ldgram.y (saved_script_handle): Initialize to NULL.
3416 * ldmain.c (main): Change check on saved_script_handle.
3418 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3420 * emultempl/elf32.em: Formatting fixes.
3421 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3422 looking at sec->owner.
3423 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3424 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3425 unused code, and reorganize orphan section placement code.
3427 * ldlang.c (wild_doit): Rename to lang_add_section.
3428 * ldlang.h: Here too.
3429 * mpw-elfmips.c: And here.
3430 * emultempl/beos.em: And here.
3431 * emultempl/elf32.em: And here.
3432 * emultempl/hppaelf.em: And here.
3433 * emultempl/pe.em: And here.
3435 2001-08-13 Richard Henderson <rth@redhat.com>
3437 * emultempl/needrelax.em: New file.
3438 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3439 * Makefile.am (eelf64_ia64.c): Depend on it.
3440 * Makefile.in: Rebuild.
3442 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3444 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3445 output_section is set non-NULL.
3447 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3448 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3449 needlessly create an output_section_statement. Treat a correctly
3450 named output_section_statement with NULL bfd_section as compatible.
3452 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3454 * emultempl/generic.em: Support EXTRA_EM_FILE.
3455 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3456 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3457 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3458 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3459 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3460 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3461 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3462 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3463 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3464 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3466 2001-08-12 Richard Henderson <rth@redhat.com>
3468 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3469 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3470 scripttempl/v850.sc: Keep .jcr data.
3472 2001-08-12 H.J. Lu <hjl@gnu.org>
3473 Andrew Haley <aph@cambridge.redhat.com>
3474 Nick Clifton <nickc@redhat.com>
3476 * ldgram.y (had_script): Change name to saved_script_handle.
3477 Change type to file handle.
3478 * ld.h (had_script): Rename and retype.
3479 * ldfile.c (ldfile_open_command_file): Save the file handle
3480 used in saved_script_handle.
3481 * lexsup.c (parse_args): Do not allow -c option to alter
3482 saved_script_handle.
3483 * ldmain.c (main): Print out the linker script used if
3484 --verbose is given. Check saved_script_handle to obtain the
3485 external linker script used, or if NULL, dump the builtin
3487 * ld.texinfo: Document that --verbose now dumps the linker
3488 script used, regardless of whether it was an internal or an
3491 2001-08-10 Andreas Jaeger <aj@suse.de>
3493 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3495 * configure: Regenerate.
3497 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3499 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3501 * scripttempl/elf.sc: Move non-text .dynamic section before
3502 .plt/.got/.sdata* group.
3503 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3504 (OTHER_SDATA_SECTIONS): Add.
3505 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3507 * emulparams/crislinux.sh: Likewise.
3508 * emulparams/elf32b4300.sh: Likewise.
3509 * emulparams/elf32bmip.sh: Likewise.
3510 * emulparams/elf32bmipn32.sh: Likewise.
3511 * emulparams/elf32bsmip.sh: Likewise.
3512 * emulparams/elf32btsmip.sh: Likewise.
3513 * emulparams/elf32ebmip.sh: Likewise.
3514 * emulparams/elf32elmip.sh: Likewise.
3515 * emulparams/elf32l4300.sh: Likewise.
3516 * emulparams/elf32lmip.sh: Likewise.
3517 * emulparams/elf32lsmip.sh: Likewise.
3518 * emulparams/elf32ltsmip.sh: Likewise.
3519 * emulparams/elf64bmip.sh: Likewise.
3520 * emulparams/elf64btsmip.sh: Likewise.
3521 * emulparams/elf64ltsmip.sh: Likewise.
3523 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3525 * genscripts.sh: Source the emulparams script before each output
3526 script is generated so that variables like `RELOCATING' may affect
3527 variables defined in the emulparams script.
3529 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3531 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3534 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3535 ie. iterate over wild_statement.section_list.
3536 (gld${EMULATION_NAME}_place_orphan): Likewise.
3538 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3540 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3541 .fini[0-4] sections used by _exit
3542 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3543 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3544 * scripttempl/elfm68hc11.sc: Likewise.
3546 2001-08-03 H.J. Lu <hjl@gnu.org>
3548 * emultempl/beos.em (init): Add the missing initialization.
3550 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3552 * ld.texinfo (Input Section Basics): Clarify ordering of output
3554 * ldlang.c (callback_t): Add wildcard_list param.
3555 (walk_wild_section): Remove "section" param. Rewrite for
3556 lang_wild_statement_type change. Remove unique_section_p test.
3557 (walk_wild_file): Remove "section" param.
3558 (walk_wild): Remove "section" and "file" params.
3559 (lang_gc_wild): Likewise.
3560 (wild): Likewise. Modify for lang_wild_statement_type change.
3561 (wild_sort): Likewise. Add "sec" param.
3562 (gc_section_callback): Likewise.
3563 (output_section_callback): Likewise. Do unique_section_p test.
3564 (map_input_to_output_sections): Modify call to wild.
3565 (lang_gc_sections_1): Likewise.
3566 (print_wild_statement): Modify for lang_wild_statement_type
3568 (lang_add_wild): Replace filename, filenames_sorted param with
3569 filespec. Replace section_name, sections_sorted,
3570 exclude_filename_list with section_list.
3571 * ldlang.h (lang_add_wild): Here too.
3572 (lang_wild_statement_type): Replace section_name, sections_sorted,
3573 and exclude_filename_list with section_list.
3574 * ldgram.y (current_file): Delete.
3575 (%union): Add wildcard_list.
3576 (file_NAME_list): Set type to wildcard_list. Build a linked list
3577 rather than calling lang_add_wild for each entry.
3578 (input_section_spec_no_keep): Call lang_add_wild here instead.
3579 * ld.h (struct wildcard_list): Declare.
3580 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3582 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3584 * ldmain.c (main): initialize link_info.pei386_auto_import
3585 * pe-dll.c: new tables for auto-export filtering
3586 (auto_export): change API, pass abfd for contextual filtering.
3587 Loop thru tables of excluded symbols instead of comparing
3590 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3592 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3593 static variable current_sec (static struct sec *). Add
3594 forward declaration for add_bfd_to_link.
3595 (process_def_file): Don't export undefined symbols. Do not
3596 export symbols starting with "_imp__". Call auto_export()
3598 (pe_walk_relocs_of_symbol): New function.
3599 (generate_reloc): add optional extra debugging
3600 (pe_dll_generate_def_file): eliminate extraneous initial blank
3602 (make_one): enlarge symtab to make room for __nm__ symbols
3603 (DATA auto-import support).
3604 (make_singleton_name_thunk): New function.
3605 (make_import_fixup_mark): New function.
3606 (make_import_fixup_entry): New function.
3607 (pe_create_import_fixup): New function.
3608 (add_bfd_to_link): Specify that 'name' argument is a CONST
3610 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3611 declare new functions pe_walk_relocs_of_symbol and
3612 pe_create_import_fixup.
3613 * emultempl/pe.em: add new options --enable-auto-import,
3614 --disable-auto-import, and --enable-extra-pe-debug.
3615 (make_import_fixup): New function.
3616 (pe_find_data_imports): New function.
3617 (pr_sym): New function.
3618 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3619 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3622 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3624 * ld.texinfo: add additional documentation for
3625 --export-all-symbols. Document --out-implib,
3626 --enable-auto-image-base, --disable-auto-image-base,
3627 --dll-search-prefix, --enable-auto-import, and
3628 --disable-auto-import.
3629 * ldint.texinfo: Add detailed documentation on auto-import
3632 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3634 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3637 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3639 * Makefile.am: Update dependencies with "make dep-am".
3640 * Makefile.in: Regenerate
3642 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3644 * ldcref.c (check_section_sym_xref): New function.
3645 (check_nocrossrefs): Call it.
3646 (check_nocrossref): Interate over h->refs here instead of..
3647 (check_refs): ..here. Pass in the symbol name, section, and bfd
3648 rather than hash_entry pointers.
3649 (struct check_refs_info): Keep symbol name rather than hash entry.
3651 (check_reloc_refs): Tweak for above changes in check_refs_info.
3652 Only report references to section syms when symname is NULL to
3653 prevent duplicate messages for the same reloc.
3655 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3657 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3658 available. Do not print NULL trees.
3659 (exp_print_token): Print unknown tokens with values > 126 as
3660 decimal values not ASCII characters.
3662 * ldlang.c (lang_leave_overlay): If a region is specified assign
3663 it to all sections inside the overlay unless they have been
3664 assigned to the own, non-default, memory region.
3666 * README: Add header for consistency with other README files.
3668 2001-07-14 H.J. Lu <hjl@gnu.org>
3670 * emultempl/elf32.em (output_prev_sec_find): Never return
3671 bfd_abs_section_ptr, bfd_com_section_ptr nor
3672 bfd_und_section_ptr.
3674 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3676 * Makefile.am (em32relf.c): Change dependency from generic.em to
3678 * Makefile.in: Regenerate.
3680 2001-07-14 matthew green <mrg@eterna.com.au>
3682 * configure.tgt (i386-*-netbsdelf*): New target.
3683 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3685 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3687 * emultempl/elf32.em (output_prev_sec_find): New.
3688 (place_orphan): Use it.
3690 2001-07-11 H.J. Lu <hjl@gnu.org>
3692 * ldmain.c (main): Fix typos in the last change.
3694 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3696 * ldmain.c (main): Disallow -F and -f without -shared.
3698 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3700 * emultempl/pe.em (after_open): Check for the output_bfd not
3701 having any coff_data structure allocated to it.
3703 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3705 * emultempl/elf32.em: Do not assuming that contents of the buffer
3706 returned from basename function will remain unchanged accross other
3709 2001-07-03 H.J. Lu <hjl@gnu.org>
3711 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3712 2001-07-03. It creates dynamic entries even for static binaries.
3714 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3716 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3717 (DYNAMIC): Use it to reserve few dynamic entries for
3720 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3722 * emulparams/hppa64linux.sh: New file.
3723 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3724 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3725 (ehppa64linux.c): Add rule to make it.
3727 * Makefile.in: Regenerate.
3729 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3731 * ld.texinfo (Options, -r): Mention restrictions when using
3732 different object formats.
3734 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3736 * ldlang.c (lang_check): Emit fatal error if relocatable link
3737 between different object flavours with relocations in input.
3739 2001-06-19 H.J. Lu <hjl@gnu.org>
3741 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3742 (--version-script): Mention the language support.
3744 2001-06-19 H.J. Lu <hjl@gnu.org>
3746 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3748 2001-06-18 H.J. Lu <hjl@gnu.org>
3750 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3751 (diststuff): Add $(MANS).
3752 * Makefile.in: Regenerated.
3756 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3758 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3759 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3760 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3761 * ld.h (args_type): Remove member export_dynamic. All users
3762 changed to use struct bfd_link_info member.
3764 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3765 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3766 * Makefile.in: Regenerate.
3768 2001-06-18 H.J. Lu <hjl@gnu.org>
3770 * ldlang.c (init_os): Add the newline to the einfo call.
3771 (lang_check): Likewise.
3772 (lang_do_version_exports_section): Likewise.
3774 2001-06-15 H.J. Lu <hjl@gnu.org>
3776 * lexsup.c (parse_args); Save optind to report unrecognized
3779 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3781 * ldlang.c (lang_check): Emit fatal error if relocatable link
3782 between different object flavours.
3784 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3785 Set new link_info member export_dynamic.
3786 * ldmain.c (main): Initialize new link_info member export_dynamic.
3788 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3790 * ldlang.c (walk_wild): Only call walk_wild_file if
3791 lookup_name returns something.
3792 (lookup_name): If load_symbols fails, return NULL.
3793 (load_symbols): Change to a boolean function.
3794 (open_input_bfds): If load_symbols fails then do not make the
3797 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3799 * ldlang.c (record_bfd_errors): Remove.
3801 * emultempl/aix.em: Fix copyright dates.
3803 2001-06-07 Andreas Jaeger <aj@suse.de>
3805 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3806 (TEXT_START_ADDR): Likewise.
3808 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3810 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3812 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3814 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3816 2001-05-31 H.J. Lu <hjl@gnu.org>
3818 * ldlang.c (open_input_bfds): Don't change the bfd error
3819 handler whilst loading symbols.
3821 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3823 * configure.tgt: Remove i370-mvs architecture, it is not currently
3826 2001-05-25 H.J. Lu <hjl@gnu.org>
3828 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3829 like emulparams/aixppc.sh.
3831 2001-05-25 H.J. Lu <hjl@gnu.org>
3833 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3834 setting of output_filename after bfd_scan_arch.
3835 * emultempl/pe.em: Likewise.
3837 2001-05-25 H.J. Lu <hjl@gnu.org>
3839 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3840 like emulparams/aixppc.sh.
3842 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3843 instead of ${srcdir}/emultempl/stringify.sed.
3845 2001-05-25 Timothy Wall <twall@oculustech.com>
3847 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3850 2001-05-25 Alan Modra <amodra@one.net.au>
3852 * configure.host: Replace linuxoldld with linux*oldld.
3853 * configure.tgt: Likewise.
3855 2001-05-24 H.J. Lu <hjl@gnu.org>
3857 * emultempl/stringify.sed: Removed again.
3859 2001-05-24 H.J. Lu <hjl@gnu.org>
3861 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3862 (gld${EMULATION_NAME}_before_parse): Initialize
3863 ldfile_output_architecture, ldfile_output_machine and
3864 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3865 * emultempl/beos.em: Likewise.
3866 * emultempl/elf32.em: Likewise.
3867 * emultempl/linux.em: Likewise.
3868 * emultempl/mipsecoff.em: Likewise.
3869 * emultempl/pe.em: Likewise.
3870 * emultempl/sunos.em: Likewise.
3872 2001-05-24 Tom Rix <trix@redhat.com>
3874 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3875 udate import file format.
3876 (change_symbol_mode) New, same
3877 (is_syscall) New, same
3878 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3879 * emulparams/aixppc64.sh : same
3880 * emulparams/aixrs6.sh : same
3881 * emulparams/ppcmacos.sh : same
3882 * emultempl/aix.em : use strtoull to parse options
3883 * Makefile.am : add eaixppc64 emulation for xcoff64
3884 * Makefile.in : same
3885 * configure.tgt : same
3887 * scripttempl/aix.sc : default text section offset to 0x10000000
3888 default data section offset to 0x20000000
3889 add .sv3264 and .sv64 pseudo sections
3890 loader and debug sections use the currect section offset.
3892 * emultempl/aix.em : Add xcoff64 support
3893 Add -binitfini support
3894 (gld${EMULATION_NAME}_before_parse) -binitfini
3895 (gld${EMULATION_NAME}_parse_args) same
3896 (gld${EMULATION_NAME}_before_allocation) format change for special
3899 * emulparams/aixppc64.sh : New file for xcoff64 support
3901 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3903 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3904 variable to avoid non-portable shell construct.
3906 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3908 * ldmain.c (get_emulation): Add -mips5 command line argument.
3910 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3912 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3913 (ELF_INTERPRETER_NAME): Define it.
3914 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3916 * configure.tgt (targ_emul, targ_extra_emuls)
3917 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3918 as primary, elf_i386 as extra.
3919 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3920 (eelf_i386_ldso.c): New rule.
3921 * Makefile.in: Rebuilt.
3923 2001-05-22 Nick Clifton <nickc@redhat.com>
3925 * lexsup.c (ld_options): Allow -I to be an alias for
3926 --dynamic-linker. This is for Solaris compatability.
3927 * ld.texinfo: Document that -I can be used.
3930 2001-05-16 Alan Modra <amodra@one.net.au>
3932 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3933 whether an input section is the first one assigned to an output
3935 Assorted formatting fixes.
3937 2001-05-14 DJ Delorie <dj@delorie.com>
3939 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3940 * Makefile.in: Ditto.
3942 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3944 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3945 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3947 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3949 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3951 * ldlang.c (lang_process): Call bfd_merge_sections.
3953 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3955 * ldgram.y: Fix typo.
3957 2001-05-03 H.J. Lu <hjl@gnu.org>
3959 * emultempl/elf32.em: Include "libiberty.h".
3960 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3961 basename of the bfd filename.
3962 (gld${EMULATION_NAME}_stat_needed): Likewise.
3963 (gld${EMULATION_NAME}_try_needed): Likewise.
3964 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3966 2001-05-02 H.J. Lu <hjl@gnu.org>
3968 * emultempl/pe.em: Include <ctype.h>.
3970 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3972 * emulparams/elf32openrisc.sh: New file.
3974 * Makefile.am: Add OpenRISC target.
3975 * Makefile.in: Regenerated.
3977 * configure.tgt: Add openrisc-*-* mapping.
3979 2001-05-02 Nick Clifton <nickc@redhat.com>
3981 * emultempl/aix.em: Replace buystring with xstrdup.
3982 * emultempl/beos.em: Replace buystring with xstrdup.
3984 2001-05-02 H.J. Lu <hjl@gnu.org>
3986 * ldfile.c: Include "libiberty.h".
3987 * ldlex.l: Likewise.
3989 * ldmisc.c (buystring): Removed.
3990 * ldmisc.h: Likewise.
3992 * ldfile.c: Replace buystring with xstrdup.
3993 * ldlang.c: Likewise.
3994 * ldlex.l: Likewise.
3995 * ldmain.c: Likewise.
3996 * ldmisc.c: Likewise.
3997 * lexsup.c: Likewise.
3998 * mpw-eppcmac.c: Likewise.
4000 2001-04-30 Andreas Jaeger <aj@suse.de>
4002 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4004 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4006 * ldlang.c (load_symbols): Give emulation a chance
4007 to process unrecognized file before fatal error is
4008 reported, not after.
4010 2001-04-27 Sean McNeil <sean@mcneil.com>
4012 * configure.tgt: Add arm-vxworks target.
4013 * scripttempl/armcoff.sc: Support .text or .data as a section name
4017 2001-04-13 J.T. Conklin <jtc@redback.com>
4019 * ld.texinfo: Document --fatal-warnings.
4022 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4023 warnings have been turned into errors.
4024 * lexsup.c (OPTION_WARN_FATAL): Define.
4025 (ld_options): Entry for --fatal-warnings.
4026 (parse_args): Handle OPTION_WARN_FATAL.
4027 * ld.h (ld_config_type): Add fatal_warnings field.
4029 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4031 * ldmain.c (main): Default to discard_sec_merge.
4032 * lexsup.c (OPTION_DISCARD_NONE): Define.
4033 (ld_options): Add --discard-none.
4034 (parse_args): Handle OPTION_DISCARD_NONE.
4035 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4036 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4037 all its input sections match.
4039 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4041 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4042 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4043 (eelf32ltsmip.c): New target.
4044 (eelf64btsmip.c): Likewise.
4045 (eelf64ltsmip.c): Likewise.
4046 * Makefile.in: Regenerated.
4048 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4050 (mips*-*-linux-gnu*): Likewise.
4052 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4054 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4056 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4059 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4061 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4062 correct value of __Stext here.
4063 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4066 * emulparams/crislinux.sh: Remove FIXME.
4068 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4070 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4071 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4073 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4075 * configure.tgt (cris-*-*): Change default emulation to criself.
4076 (cris-*-*aout*): New rule.
4078 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4080 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4081 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4083 2001-03-26 Andreas Jaeger <aj@suse.de>
4085 * ld.texinfo (Overview): Fix syntax in texi code.
4087 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4089 * ld.texinfo: Put @c man indications to generate the ld man page.
4090 When generating man, define all the variables. Define SEEALSO
4091 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4092 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4093 (ld.1): Generate from ld.texinfo.
4094 * Makefile.in: Regenerate.
4096 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4098 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4099 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4101 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4103 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4104 is an absolute path look only for this file and not along the path.
4106 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4108 * emultempl/elf32.em (OPTION_GROUP): New macro.
4109 Add new option Bgroup to longopts.
4110 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4111 (gld*_list_options): Add -Bgroup and -z defs.
4112 * ld.1: Document -Bgroup and -z defs.
4113 * ld.texinfo: Likewise.
4115 2001-03-07 Michael Meissner <meissner@redhat.com>
4117 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4118 with sections created by -fdata-sections.
4119 (.dynbss,.bss): Ditto.
4121 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4123 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4124 after_allocation_default, not gld..._before_allocation.
4126 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4128 * configure.in (BFD_VERSION): New.
4129 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4130 * configure: Regenerate.
4131 * Makefile.am: Run "make dep-am"
4132 * Makefile.in: Regenerate.
4134 2001-02-26 Timothy Wall <twall@cygnus.com>
4136 * emulparams/elf64_aix.sh: Add additional read-only sections;
4137 uncomment lines which are now required.
4139 2001-02-26 H.J. Lu <hjl@gnu.org>
4141 * ldlang.c (open_input_bfds): Set the bfd error handler so
4142 that problems can be caught whilst loading symbols.
4143 (record_bfd_errors): New function: Report BFD errors and mark
4144 the executable output as being invalid.
4146 2001-02-22 Timothy Wall <twall@cygnus.com>
4148 * configure.host: Add configuration for ia64-*-aix*.
4149 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4150 Add dependencies for eelf64_aix.c.
4151 * Makefile.in: Regenerate.
4152 * configure.tgt: Add ia64-*-aix* mapping.
4153 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4155 2001-02-20 H.J. Lu <hjl@gnu.org>
4157 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4158 false if we found the file.
4160 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4162 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4163 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4165 2001-02-18 lars brinkhoff <lars@nocrew.org>
4167 * Makefile.am: Add PDP-11 target.
4168 * configure.tgt: Likewise.
4169 * emulparams/pdp11.sh: New file.
4171 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4173 * configure.host: Add a generic FreeBSD configuration entry such that
4174 all [modern] FreeBSD systems on all platforms will look the same.
4176 2001-02-14 H.J. Lu <hjl@gnu.org>
4178 * configure.tgt: Remove mention of earmelf_linux26.
4180 2001-02-13 Richard Henderson <rth@redhat.com>
4182 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4184 2001-02-13 H.J. Lu <hjl@gnu.org>
4186 * ldexp.h (node_type): Add etree_provided.
4187 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4188 type to etree_provided if defined by PROVIDE. Allow updating
4190 (exp_print_tree): Handle etree_provided.
4191 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4194 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4196 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4197 .IA_64.unwind.* pattern to unwind table section and
4198 .IA_64.unwind_info* pattern to unwind info section.
4200 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4202 * Makefile.am: Add linux target for S/390.
4203 * Makefile.in: Likewise.
4204 * configure.host: Likewise.
4205 * configure.tgt: Likewise.
4206 * emulparams/elf64_s390.sh: New file.
4207 * emulparams/elf_s390.sh: New file.
4209 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4211 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4213 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4215 2001-02-06 Philip Blundell <philb@gnu.org>
4217 * Makefile.am: Remove mention of earmelf_linux26.
4218 * Makefile.in: Regenerate.
4220 2001-02-04 Philip Blundell <philb@gnu.org>
4222 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4223 * emulparams/armelf_linux26.sh: Delete.
4224 * configure.tgt: Remove mention of armelf_linux26 emulation.
4226 2001-02-01 Nick Clifton <nickc@redhat.com>
4228 * ld.1: Replace occurances of -oformat with --oformat.
4230 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4232 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4233 load_base is specified.
4235 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4237 * emultempl/elf32.em: Correct spelling in comments and listed
4240 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4242 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4243 default for the first section of a group of overlay sections.
4245 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4247 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4248 * Makefile.in: Regenerate.
4249 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4250 Check for null tool_dir.
4252 2001-01-16 Jim Wilson <wilson@redhat.com>
4254 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4255 and IA_64.unwind.info.
4257 2001-01-16 H.J. Lu <hjl@gnu.org>
4259 * ldlang.c (lang_check): Merge the private data only if the
4260 input file has contents.
4262 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4264 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4266 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4267 enabling search for libmilli. On a relocatable link, make .text
4269 (LDEMUL_AFTER_PARSE): Define.
4270 (hppaelf_finish): Correct spelling of relocatable in comments.
4272 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4273 rummage through the script for sections on the unique list.
4274 Correct length of strncmp for ".note".
4275 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4277 * ldlang.c (unique_section_list): New var.
4278 (unique_section_p): New function.
4279 (walk_wild_section): Don't match sections on unique_section_list.
4280 (lang_add_unique): New function.
4281 Correct spelling of relocatable in comments.
4283 * ldlang.h (struct unique_sections): Declare.
4284 (unique_section_list): Declare.
4285 (unique_section_p): Declare.
4286 (lang_add_unique): Declare.
4288 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4289 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4291 * ld.texinfo (--unique): Update.
4293 2001-01-13 Nick Clifton <nickc@redhat.com>
4295 * lexsup.c (parse_args): Remove spurious white space.
4297 2001-01-12 Nick Clifton <nickc@redhat.com>
4299 * lexsup.c (parse_args): Update copyright date.
4301 2001-01-12 Philip Blundell <pb@futuretv.com>
4303 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4305 2001-01-10 Kazu Hirata <kazu@hxi.com>
4307 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4308 * scripttempl/h8300h.sc: Fix formatting.
4309 * scripttempl/h8300s.sc: Likewise.
4310 * scripttempl/h8500.sc: Likewise.
4311 * scripttempl/h8500b.sc: Likewise.
4312 * scripttempl/h8500c.sc: Likewise.
4313 * scripttempl/h8500m.sc: Likewise.
4314 * scripttempl/h8500s.sc: Likewise.
4316 2000-01-07 David O'Brien <obrien@BSDi.com>
4318 * emultempl/elf32.em: Only perform Linux ld hints processing when
4321 2001-01-07 Philip Blundell <philb@gnu.org>
4323 * ld.texinfo (Bug Reporting): Update email address for reports.
4325 2000-12-31 Nick Clifton <nickc@redhat.com>
4327 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4328 options by checking for a return value of '?' not -1.
4330 2000-12-28 Nick Clifton <nickc@redhat.com>
4332 * lexsup.c (struct ld_option): Add new enum value:
4334 (ld_options[]): Change -omagic, -output and -oformat options
4335 to be EXACTLY_TWO_DASHES.
4336 (OUTPUT_COUNT): Use ARRAY_SIZE.
4337 (parse_args): Change parameter 'argc' to unsigned.
4338 Place EXACTLY_TWO_DASHES options into new really_longopts
4340 If getopt_long_only fails, try calling getopt_long using the
4341 really_longopts array.
4342 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4345 * ldlex.h: Fix prototype of parse_args.
4347 * ld.texinfo: Document that long options starting with 'o'
4348 must be preceeded by two dashes. Change example of a single
4349 dashed long option from -oformat to -trace-symbol.
4351 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4353 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4354 (longopts[]): New --no-default-excludes option.
4355 (gld_${EMULATION_NAME}_list_options): Document.
4356 (gld_${EMULATION_NAME}_parse_args): Handle.
4358 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4360 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4361 whitespace, it breaks the K&R C preprocessor.
4363 2000-12-11 DJ Delorie <dj@redhat.com>
4365 * ld.texinfo: Add notes about --whole-archive and gcc.
4367 2000-11-18 Fred Fish <fnf@be.com>
4369 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4370 (ld_options): Entry for --allow-shlib-undefined.
4371 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4372 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4374 * ld.texinfo: Document new command line switch.
4376 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4378 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4379 .fixup is actually read/write.
4380 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4381 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4382 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4384 2000-12-11 Jan Hubicka <jh@suse.cz>
4386 * NEWS: Add note about x86_64 architecture.
4388 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4390 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4391 Set DWARF2 sections to a VMA of zero.
4393 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4395 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4397 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4398 (sparc*-*-rtems*): Switched from a.out to ELF.
4400 2000-11-30 Jan Hubicka <jh@suse.cz>
4402 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4403 (eelf_x86_64.c): New.
4404 * Makefile.in: Regenerate.
4405 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4406 * emulparams/elf_x86_64.sh: New.
4408 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4410 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4411 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4413 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4414 merging non-a.out sections into CONSTRUCTING.
4416 2000-11-28 Nick Clifton <nickc@redhat.com>
4418 * ld.1 (COPYING): Mention that the GNU Free Documentation
4419 License is present in the sources, but not the output, and
4420 also available from the GNU website.
4421 (GNU Free Documentation License): Comment out this section.
4423 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4425 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4428 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4430 * ld.1: Remove old date so it does not give the impression the manpage
4433 2000-11-24 Nick Clifton <nickc@redhat.com>
4435 * configure.tgt (xscale-coff): Add target.
4436 (xscale-elf): Add target.
4438 2000-11-24 Fred Fish <fnf@be.com>
4440 * ldmain.c (main): Remove redundant init of config.make_executable
4443 2000-11-15 Richard Henderson <rth@redhat.com>
4445 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4447 2000-11-14 Kazu Hirata <kazu@hxi.com>
4449 * scripttempl/h8300.sc: Fix formatting.
4450 * scripttempl/h8300h.sc: Likewise.
4451 * scripttempl/h8300s.sc: Likewise.
4453 2000-11-14 Denis Chertykov <denisc@overta.ru>
4455 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4457 2000-11-09 Philip Blundell <pb@futuretv.com>
4459 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4460 around orphan sections whose names can be represented in C.
4462 2000-11-07 Jim Wilson <wilson@redhat.com>
4464 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4465 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4467 2000-11-06 Nick Clifton <nickc@redhat.com>
4469 * ld.texinfo: Add GNU Free Documentation License.
4470 * ldint.texinfo: Add GNU Free Documentation License.
4471 * ld.1: Add GNU Free Documentation License.
4473 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4475 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4476 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4478 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4479 Move 2000-11-02 Makefile.in changes to this file.
4480 * Makefile.in: Regenerate.
4482 2000-11-03 Nick Clifton <nickc@redhat.com>
4484 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4485 constructors and destructors.
4486 * scripttempl/h8300h.sc: Ditto.
4487 * scripttempl/h8300s.sc: Ditto.
4488 * scripttempl/h8500.sc: Ditto.
4489 * scripttempl/h8500b.sc: Ditto.
4490 * scripttempl/h8500c.sc: Ditto.
4491 * scripttempl/h8500m.sc: Ditto.
4492 * scripttempl/h8500s.sc: Ditto.
4493 * scripttempl/v850.sc: Ditto.
4494 * scripttempl/w65.sc: Ditto.
4495 * scripttempl/z8000.sc: Ditto.
4497 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4499 * Makefile.in (e_i386_chaos.c): New rule.
4500 (ALL_EMULATIONS): Added e_i386_chaos.o.
4501 * emulparams/elf_i386_chaos.sh: New file.
4502 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4504 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4506 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4507 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4508 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4509 library path suffix.
4510 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4512 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4514 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4515 for consecutive sections.
4517 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4519 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4521 * ld.texinfo: Added notes about this new option.
4523 2000-10-16 Nick Clifton <nickc@redhat.com>
4525 * emultempl/pe.em (_after_open): Add tests of return values from
4526 bfd functions. Emit appropriate error messages if necessary.
4528 2000-10-13 Nick Clifton <nickc@redhat.com>
4530 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4531 local variables - they are not used, but leave in the call to
4532 bfd_canonicalize_symtab.
4533 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4534 pe_dll_search_prefix.
4536 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4538 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4539 (longopts): New --dll-search-prefix option.
4540 (gld_${EMULATION_NAME}_list_options): Document.
4541 (gld_${EMULATION_NAME}_parse_args): Handle.
4542 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4543 dynamically, search for a dll named '<prefix><basename>.dll'
4544 in preference to 'lib<basename>.dll' if --dll-search-prefix
4547 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4549 * ldlang.c (section_already_linked): Set kept_section instead of
4552 2000-10-10 Kazu Hirata <kazu@hxi.com>
4554 * deffile.h: Fix formatting.
4555 * lexsup.c: Likewise.
4558 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4560 * pe-dll.c (make_one): Do not generate code thunk for DATA
4562 (process_def_file): deduce DATA flag for auto-export sumbols.
4564 2000-10-09 Kazu Hirata <kazu@hxi.com>
4566 * ld.h: Fix formatting.
4567 * ldcref.c: Likewise.
4568 * ldctor.h: Likewise.
4569 * ldemul.c: Likewise.
4570 * ldemul.h: Likewise.
4571 * ldexp.c: Likewise.
4572 * ldexp.h: Likewise.
4573 * ldfile.c: Likewise.
4574 * ldfile.h: Likewise.
4575 * ldlang.c: Likewise.
4576 * ldlang.h: Likewise.
4577 * ldmain.c: Likewise.
4578 * pe-dll.c: Likewise.
4580 * pe-dll.c: Revert some formatting fixes.
4582 2000-10-08 Kazu Hirata <kazu@hxi.com>
4584 * pe-dll.c: Fix formatting.
4586 2000-10-05 Kazu Hirata <kazu@hxi.com>
4588 * ldlang.c: Fix formatting.
4590 2000-10-03 DJ Delorie <dj@redhat.com>
4592 * pe-dll.c (fill_edata): initialize entire block
4593 (make_one): fill in correct section.
4595 2000-10-03 Kazu Hirata <kazu@hxi.com>
4597 * ldexp.c: Fix formatting.
4599 2000-10-02 DJ Delorie <dj@redhat.com>
4601 * emultempl/pe.em (gld_*_after_open): detect case where there two
4602 import libraries for same dll; rename one to ensure proper link
4605 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4607 (generate_edata): fix typo
4609 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4611 * scripttempl/crisaout.sc (ENTRY): Now __start.
4612 (.text): Add default setting for __start.
4613 Remove CONSTRUCTORS handling.
4614 (/DISCARD/): Add .gnu.warning.*.
4615 * emulparams/crislinux.sh (ENTRY): Now __start.
4616 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4617 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4618 (ENTRY): Now __start.
4619 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4620 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4622 2000-09-29 Kazu Hirata <kazu@hxi.com>
4624 * deffile.h: Fix formatting.
4626 * ldcref.c: Likewise.
4627 * ldctor.c: Likewise.
4628 * ldctor.h: Likewise.
4629 * ldemul.c: Likewise.
4630 * ldemul.h: Likewise.
4631 * ldexp.c: Likewise.
4632 * ldexp.h: Likewise.
4633 * ldfile.c: Likewise.
4634 * ldfile.h: Likewise.
4635 * ldlang.c: Likewise.
4636 * ldlang.h: Likewise.
4637 * lexsup.c: Likewise.
4639 * pe-dll.c: Likewise.
4641 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4643 * pe-dll.c (process_def_file): Uninitialized data wasn't
4644 exported with --export-all-symbols switch.
4646 2000-09-28 DJ Delorie <dj@redhat.com>
4648 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4649 noname work properly.
4651 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4653 * ld.texinfo (HPPA ELF32): New section.
4655 * emultempl/hppaelf.em (group_size): New.
4656 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4657 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4658 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4659 options to prevent abbreviations matching.
4660 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4661 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4663 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4665 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4666 on the m68*-*-elf target. Make it support COFF input objects.
4668 2000-09-21 Kazu Hirata <kazu@hxi.com>
4670 * ldmain.c: Fix formatting.
4671 * ldmisc.c: Likewise.
4672 * ldver.c: Likewise.
4673 * ldwrite.c: Likewise.
4675 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4677 * ldwrite.c (clone_section): Silence gcc warnings.
4679 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4681 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4682 out of memory failure.
4684 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4685 (clone_section): Handle out of memory failures. Rename var to
4686 avoid c++ reserved word.
4688 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4690 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4691 stub_name param to stub_sec_name.
4692 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4694 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4696 * emultempl/m68kelf.em: New file.
4697 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4698 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4699 * Makefile.in: Regenerate.
4701 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4703 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4706 2000-09-13 Nick Clifton <nickc@redhat.com>
4708 * ldmain.c (multiple_definition): Disable relaxation if
4709 multiple symbol definitions are encountered - otherwise the
4710 linker could abort with an assertion failure.
4712 2000-09-10 Nick Clifton <nickc@redhat.com>
4714 * mri.c: Fix formatting.
4716 2000-09-07 H.J. Lu <hjl@gnu.org>
4718 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4719 * configure: Rebuild.
4721 2000-09-07 H.J. Lu <hjl@gnu.org>
4723 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4724 * Makefile.in: Rebuild.
4726 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4728 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4729 broken list handling. Create __start_SECNAME and __stop_SECNAME
4730 when no place-holder. Add some comments. Test both SEC_CODE and
4731 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4732 Handle case where no output section statement created.
4734 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4736 * configure.tgt (sh-*-linux*): Added.
4737 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4738 * Makefile.in: Rebuilt.
4739 * emulparams/shelf_linux.sh: New file.
4740 * emulparams/shlelf_linux.sh: New file.
4742 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4744 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4745 try shuffling sections when the orphan happens to be the place
4746 holder. Keep count of unique section names generated so we speed
4747 the search for a new name.
4749 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4751 * configure: Rebuilt with new libtool.m4.
4753 2000-09-05 Nick Clifton <nickc@redhat.com>
4755 * Makefile.in: Regenerate.
4756 * aclocal.m4: Regenerate.
4757 * configure: Regenerate.
4758 * config.in: Regenerate.
4759 * po/ld.pot: Regenerate.
4761 * ldint.texinfo: Remove CVS revision marker - it foils local
4764 * emultempl/ticoff.em: Remove extraneous comma.
4766 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4768 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4769 to stub section flags.
4770 (hppa_for_each_input_file_wrapper): New.
4771 (hppa_lang_for_each_input_file): New.
4772 (lang_for_each_input_file): Define to call above.
4773 (multi_subspace): New.
4774 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4775 (PARSE_AND_LIST_PROLOGUE): Define.
4776 (PARSE_AND_LIST_LONGOPTS): Define.
4777 (PARSE_AND_LIST_OPTIONS): Define.
4778 (PARSE_AND_LIST_ARGS_CASES): Define.
4779 (hppaelf_finish): Call elf32_hppa_set_gp.
4780 (hppaelf_set_output_arch): Remove.
4781 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4783 * emulparams/hppalinux.sh (ELFSIZE): Define.
4785 (OTHER_READONLY_SECTIONS): Define.
4787 (GENERATE_SHLIB_SCRIPT): Define.
4789 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4790 to const throughout. Change `void *' to `PTR' throughout.
4791 (lang_memory_default): Function is local to file, add `static'.
4793 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4794 (ehppalinux.c): Likewise.
4795 (earmelf.c): Likewise.
4796 (earmelf_linux.c): Likewise.
4797 (earmelf_linux26.c): Likewise.
4798 * Makefile.in: Regenerate.
4800 * ld.h (ld_config_type): Add unique_orphan_sections.
4801 * lexsup.c (OPTION_UNIQUE): Define.
4802 (ld_options): Add "--unique".
4803 (parse_args): Handle it.
4804 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4805 search for an existing output section if unique_orphan_sections is
4806 set. Make use of bfd_get_unique_section_name rather than
4807 duplicating code here.
4808 * ld.texinfo: Describe --unique.
4810 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4811 optional arg to split-by-file.
4812 (parse_args): Handle them.
4813 * ld.texinfo: Update description of these options.
4814 * ldwrite.c (clone_section): Pass in the section name. Replace
4815 local code with bfd_get_unique_section_name.
4816 (split_sections): Tidy code and comments. Use a list traversal
4817 more appropriate to the list construction. Handle cooked section
4818 sizes. Split when split_by_reloc reached rather than exceeded.
4819 Track section size and split when split_by_file reached. Fix
4820 link_order_tail (even though it's not used).
4821 (ldwrite): Modify condition for calling split_sections to suit
4822 changed split_by_reloc and split_by_file.
4823 * ldmain.c (main): Init config.split_by_reloc and
4824 config.split_by_file to -1.
4825 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4826 Change split_by_file to bfd_size_type.
4828 2000-09-02 Nick Clifton <nickc@redhat.com>
4830 * configure.in: Increase version number to 2.10.91.
4831 * NEWS: Mention new ability to support removal of duplicate DWARF2
4833 * configure: Regenerate.
4834 * aclocal.m4: Regenerate.
4835 * config.in: Regenerate.
4837 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4839 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4841 * scripttempl/elf32avr.sc: Ditto.
4842 * scripttempl/elfd10v.sc: Ditto.
4843 * scripttempl/elfd30v.sc: Ditto.
4844 * scripttempl/elfi370.sc: Ditto.
4845 * scripttempl/elfm68hc11.sc: Ditto.
4846 * scripttempl/elfm68hc12.sc: Ditto.
4847 * scripttempl/elfi386beos.sc: Ditto.
4848 * scripttempl/v850.sc: Ditto.
4850 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4852 * acinclude.m4: Include libtool and gettext macros from the
4854 * aclocal.m4, configure: Rebuilt.
4856 2000-08-25 Nick Clifton <nickc@redhat.com>
4858 * ldlang.c (open_output): When choosing the target for a
4859 particular endianness, do nothing if the target is not
4862 2000-08-25 H.J. Lu <hjl@gnu.org>
4864 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4865 check -rpath nor LD_RUN_PATH for cross link.
4866 * ld.texinfo: Document the change.
4868 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4870 * NEWS: Mention support for CRIS.
4872 2000-08-23 H.J. Lu <hjl@gnu.org>
4874 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4875 the current runpath list from bfd_elf_get_runpath_list ()
4878 2000-08-22 H.J. Lu <hjl@gnu.org>
4880 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4881 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4882 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4883 trace_file_tries is non-zero.
4884 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4885 if trace_file_tries is non-zero.
4887 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4890 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4892 * NEWS: Mention i860 support.
4894 2000-08-14 Andreas Schwab <schwab@suse.de>
4896 * scripttempl/elf.sc: Fix last change to use correct comment
4899 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4901 * scripttempl/elf.sc: Add a comment giving the correspondence
4902 between sections, per-datum sections, and linkonce sections. Make
4903 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4906 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4908 * emulparams/elf32_i860.sh: New file.
4909 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4910 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4911 (eelf32_i860.c): New rule.
4912 * Makefile.in: Regenerate.
4914 2000-08-10 Nick Clifton <nickc@cygnus.com>
4916 * emulparams/mipspe.sh (ENTRY): Add definition.
4918 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4920 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4923 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4925 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4926 the final size of .bss section.
4927 * scripttempl/elfm68hc12.sc: Likewise.
4929 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4931 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4932 gld${EMULATION_NAME}_parse_args for consistency. Combine
4933 lastoptind and prevoptind vars, and keep track of last optind.
4934 (gld_${EMULATION_NAME}_list_options): Rename to
4935 gld${EMULATION_NAME}_list_options.
4937 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4939 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4940 (i586-sco-sysv5uw7.1.0).
4942 2000-07-27 H.J. Lu <hjl@gnu.org>
4944 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4945 (PARSE_AND_LIST_PROLOGUE): New.
4946 (PARSE_AND_LIST_LONGOPTS): Likewise.
4947 (PARSE_AND_LIST_OPTIONS): Likewise.
4948 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4949 (PARSE_AND_LIST_EPILOGUE): Likewise.
4951 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4953 * emultempl/armelf.em: Elide functions common to elf32.em,
4954 ie. most of the file.
4955 (arm_elf_after_open): New. Do arm specific things then call
4956 gld${EMULATION_NAME}_after_open.
4957 (arm_elf_before_allocation): New. Call
4958 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4959 (PARSE_AND_LIST_PROLOGUE): Define.
4960 (PARSE_AND_LIST_SHORTOPTS): Define.
4961 (PARSE_AND_LIST_LONGOPTS): Define.
4962 (PARSE_AND_LIST_OPTIONS): Define.
4963 (PARSE_AND_LIST_ARGS_CASES): Define.
4964 (LDEMUL_AFTER_OPEN): Define.
4965 (LDEMUL_BEFORE_ALLOCATION): Define.
4966 (LDEMUL_BEFORE_PARSE): Define.
4967 (LDEMUL_FINISH): Define.
4969 * emultempl/hppaelf.em: Similarly zap most of this file.
4970 (hppaelf_add_stub_section): Prototype.
4971 (hppaelf_layaout_sections_again): Prototype.
4972 (hook_in_stub): Prototype.
4973 (LDEMUL_SET_OUTPUT_ARCH): Define.
4974 (LDEMUL_FINISH): Define.
4975 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4977 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4978 (EXTRA_EM_FILE): New.
4979 * emulparams/armelf_linux.sh: Likewise.
4980 * emulparams/armelf_linux26.sh: Likewise.
4981 * emulparams/hppalinux.sh: Likewise.
4982 * emulparams/hppaelf.sh: Likewise.
4985 * emultempl/elf32.em: Fix formatting.
4986 (EXTRA_EM_FILE): Source it.
4987 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4988 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4989 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4990 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4991 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4992 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4993 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4994 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4995 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4996 allow functions in this file to be overridden.
4997 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4999 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5001 * emultempl/elf32.em: Reorganize file.
5003 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5005 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5006 specific option to fit 64-bit executable in the lower
5007 31-bit address range. This is done by changing start
5008 address of .interp (the very first section of executable)
5009 and then setting EF_ALPHA_32BIT elf header flag.
5011 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5013 * emultempl/m68kcoff.em: New file.
5014 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5015 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5017 * Makefile.in: Regenerate.
5019 2000-07-20 H.J. Lu <hjl@gnu.org>
5021 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5022 and "disable-new-dtags" to stop getopt from treating -d/-e as
5023 abbreviations for these options.
5025 2000-07-20 H.J. Lu <hjl@gnu.org>
5027 * ld.texinfo: Add documentation for --disable-new-dtags and
5030 * ldmain.c (main): Initialize link_info.new_dtags to false.
5032 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5033 --disable-new-dtags and --enable-new-dtags.
5034 (gld_${EMULATION_NAME}_list_options): Likewise.
5036 2000-07-05 Kenneth Block <krblock@computer.org>
5038 * lexsup.c: Add optional style to demangle switch
5039 * ld.texinfo: Document optional style to demangle switch.
5041 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5043 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5045 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5046 Regenerate dependencies.
5047 * Makefile.in: Rebuild.
5048 * configure.tgt (cris-*-*): New target.
5049 * emulparams/crisaout.sh, emulparams/criself.sh,
5050 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5051 * po/POTFILES.in, po/ld.pot: Regenerate.
5053 2000-07-20 H.J. Lu <hjl@gnu.org>
5055 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5056 Print out ignored -z options.
5058 2000-07-19 H.J. Lu <hjl@gnu.org>
5060 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5061 (PARSE_AND_LIST_PROLOGUE): New.
5062 (PARSE_AND_LIST_LONGOPTS): Likewise.
5063 (PARSE_AND_LIST_OPTIONS): Likewise.
5064 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5066 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5068 * lexsup.c (ld_options): Comment out 'z'.
5069 (parse_args): Likewise.
5071 * emultempl/elf32.em: Include "elf/common.h".
5072 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5074 (gld_${EMULATION_NAME}_list_options): Likewise.
5076 * ld.texinfo: Add documentation for the recognized -z options.
5078 2000-07-19 H.J. Lu <hjl@gnu.org>
5080 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5081 bfd_elf_set_dt_needed_soname ().
5083 2000-07-18 DJ Delorie <dj@cygnus.com>
5085 * pe-dll.c (pe_dll_id_target): check object target name also
5087 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5089 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5090 ${INIT_END} if relocating.
5091 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5093 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5095 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5096 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5097 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5098 errors introduced by the old dynamic lib search order.
5100 2000-07-17 DJ Delorie <dj@cygnus.com>
5102 * pe-dll.c (process_def_file): auto-export data items also
5103 (pe_process_import_defs): also see if _imp_ form needed
5105 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5107 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5108 for dll import libraries
5110 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5112 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5113 gcc 2.95.2 and later.
5115 2000-07-11 Kazu Hirata <kazu@hxi.com>
5117 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5120 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5122 * ldemul.h (struct lang_input_statement_struct): Remove forward
5124 (struct search_dirs): Likewise.
5125 * ldfile.h (struct lang_input_statement_struct): Likewise.
5126 Protect file from multiple inclusion.
5127 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5128 declaration from macro to file scope.
5130 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5131 * ldgram.y: Likewise here.
5132 * ldlang.c: And here.
5133 * ldmain.c: And here.
5134 * mpw-elfmips.c: And here.
5135 * mpw-eppcmac.c: And here.
5136 * emultempl/aix.em: And here.
5137 * emultempl/armcoff.em: And here.
5138 * emultempl/armelf.em: And here.
5139 * emultempl/armelf_oabi.em: And here.
5140 * emultempl/beos.em: And here.
5141 * emultempl/elf32.em: And here.
5142 * emultempl/hppaelf.em: And here.
5143 * emultempl/linux.em: And here.
5144 * emultempl/lnk960.em: And here.
5145 * emultempl/pe.em: And here.
5146 * emultempl/sunos.em: And here.
5147 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5148 * mpw-idtmips.c: Ditto.
5149 * emultempl/generic.em: Ditto.
5150 * emultempl/gld960.em: Ditto.
5151 * emultempl/gld960c.em: Ditto.
5152 * emultempl/mipsecoff.em: Ditto.
5153 * emultempl/ticoff.em: Ditto.
5154 * emultempl/vanilla.em: Ditto.
5156 * pe-dll.c: Include ldfile.h
5157 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5159 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5160 arguments to bfd_elf32_size_dynamic_sections call.
5161 (gldelf32ebmip_place_orphan): Add missing arguments to
5162 lang_leave_output_section_statement call.
5164 2000-07-10 H.J. Lu <hjl@gnu.org>
5166 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5168 (strhash): Likewise.
5169 (compute_dll_image_base): Likewise.
5170 (pe_undef_found_sym): Likewise.
5171 (pe_undef_cdecl_match): Likewise.
5172 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5173 argument "arch" with ATTRIBUTE_UNUSED.
5175 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5177 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5179 From Ryan Bradetich <rbradetich@uswest.net>
5180 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5182 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5184 Changes to create multiple linker stubs, positioned immediately
5185 before the section where they are required.
5186 * emultempl/hppaelf.em: Include elf32-hppa.h.
5187 (stub_sec, file_chain): Delete.
5188 (hppaelf_create_output_section_statements): Don't make a stub
5190 (hook_stub_info): New struct.
5191 (hook_in_stub): New function.
5192 (hppaelf_add_stub_section): New function.
5193 (hppaelf_finish): Do nothing for relocateable links. Modify the
5194 call to elf32_hppa_size_stubs. Move code for updating section
5196 (hppaelf_layaout_sections_again): ..to here, a new function.
5198 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5199 broken list handling. Pass in a pointer to the list.
5200 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5202 (hppaelf_before_parse): Prototype.
5203 (hppaelf_set_output_arch): Prototype.
5204 (hppaelf_create_output_section_statements): Prototype.
5205 (hppaelf_delete_padding_statements): Prototype.
5206 (hppaelf_finish): Prototype.
5209 * emultempl/hppaelf.em: Include ctype.h.
5210 (struct orphan_save): New.
5211 (gld${EMULATION_NAME}_place_orphan): New.
5212 (output_rel_find): New.
5213 (hppaelf_get_script): Update from elf32.em.
5214 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5215 Change emulation_name field to "${EMULATION_NAME}". Add
5216 gld${EMULATION_NAME}_place_orphan.
5218 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5219 ehppalinux.o, sort it. Regenerate dependencies.
5220 (ehppalinux.c): Depend on hppaelf.em
5221 * Makefile.in: Regenerate.
5223 * configure.tgt: targ_emul=hppalinux for hppa*linux
5225 * emulparams/hppalinux.sh: New.
5226 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5228 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5230 * lexsup.c (parse_args): Copy section name.
5232 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5234 * emultempl/pe.em: institute the following search order for
5235 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5236 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5237 static lib (libfoo.a) if none of the above are found.
5239 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5241 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5242 (longopts): New --{enable,disable}-auto-image-base options.
5243 (gld_${EMULATION_NAME}_list_options): Document.
5244 (gld_${EMULATION_NAME}_parse): Handle.
5245 (strhash): New static function.
5246 (compute_dll_image_base): New static function.
5247 (gld_${EMULATION_NAME}_set_symbols): Use.
5249 2000-07-05 DJ Delorie <dj@redhat.com>
5253 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5255 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5256 * emulparams/elf32btsmip.sh: New file.
5257 * Makefile.am: Add traditional mips target.
5258 * Makefile.in: Rebuild.
5260 2000-07-01 H.J. Lu <hjl@gnu.org>
5262 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5263 automake to use YLWRAP.
5264 * Makefile.in: Rebuild.
5266 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5268 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5269 (CLEANFILES): Add DEPA.
5270 * Makefile.in: Regenerate.
5272 2000-06-30 Timothy Wall <twall@ppc>
5274 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5275 the page in the upper octet of the address.
5277 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5279 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5281 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5283 * NEWS: arm-elf does --gc-sections too.
5285 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5287 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5289 * Makefile.in: Regenerate.
5291 2000-06-21 H.J. Lu <hjl@gnu.org>
5293 * Makefile.am: Rebuild dependency.
5294 * Makefile.in: Rebuild.
5296 2000-06-20 H.J. Lu <hjl@gnu.org>
5298 * Makefile.am: Rebuild dependency.
5299 * Makefile.in: Rebuild.
5301 2000-06-20 Timothy Wall <twall@cygnus.com>
5303 * scripttempl/tic54xcoff.sc: New.
5304 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5305 * gen-doc.texi: Add flag for TI COFF.
5306 * ld.texinfo: Add documentation for TI COFF handling switches.
5307 * emultempl/ticoff.em: New. TI COFF handling.
5308 * configure.tgt: Add tic54x target.
5309 * Makefile.am: Add tic54x target.
5310 * Makefile.in: Ditto.
5312 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5314 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5315 checking for backslashes.
5317 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5319 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5321 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5323 * NEWS: Update list of targets supporting --gc-sections.
5325 * scripttempl/elf.sc: KEEP .eh_frame contents.
5326 * scripttempl/elfd30v.sc: Same here.
5328 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5330 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5332 * Makefile.in: Rebuild.
5333 * configure.tgt: Recognize m68hc12 and m68hc11.
5334 * scripttempl/elfm68hc12.sc: New file.
5335 * emulparams/m68hc12elfb: New emulation.
5336 * emulparams/m68hc12elf: New emulation.
5337 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5338 (includes a memory.x script to define the ROM and RAM banks).
5339 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5340 New configuration files for support of Motorola 68hc11
5342 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5344 * ldmain.c (main): Only change SEC_READONLY for final link.
5346 2000-06-13 H.J. Lu <hjl@gnu.org>
5348 * configure: Regenerate.
5350 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5352 * configure.in (VERSION): Update to show this is the CVS mainline.
5354 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5356 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5357 input objects to be ECOFF.
5358 (check_sections): einfo takes %B, not %P, to print a BFD name.
5360 2000-06-05 Michael Matz <matz@ifh.de>
5362 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5365 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5367 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5369 * emulparams/avr1200.sh (STACK): Define as 0.
5370 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5371 * emulparams/avr4433.sh (STACK): Likewise.
5372 * emulparams/avr44x4.sh (STACK): Likewise.
5373 * emulparams/avr85xx.sh (STACK): Likewise.
5374 * emulparams/avrmega103.sh (STACK): Likewise.
5375 * emulparams/avrmega161.sh (STACK): Likewise.
5376 * emulparams/avrmega603.sh (STACK): Likewise.
5377 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5378 (__stack): Define from ${STACK} for main().
5380 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5382 * Makefile.am: Update dependencies with "make dep-am"
5383 * Makefile.in: Regenerate.
5385 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5387 * ldmain.c: Include filenames.h.
5388 (set_scripts_dir): Support backslashes in program name.
5390 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5392 * ldmain.c (main): When deciding if ".text" section should be
5393 read-only, don't forget to reset SEC_READONLY because it
5394 could be already set.
5396 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5398 * ld.1: Add documentation for new command line option:
5399 --section-start <sectionname>=<sectionorg>
5400 This is a generic version of -Ttext etc. which accepts
5401 any section name as a parameter instead of just text/data/
5403 * ld.texinfo: More docs.
5405 * lexsup.c: (parse_args): Recognize new command line option.
5406 (ld_options): Add new option.
5408 2000-05-18 H.J. Lu <hjl@gnu.org>
5410 * lexsup.c (parse_args): `i' == `r', not `q'.
5412 2000-05-18 Jeffrey A Law (law@cygnus.com)
5414 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5416 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5417 Rick Gorton <gorton@scrugs.lkg.dec.com>
5419 Add support for '-q' == '--emit-relocs' switch.
5420 * ldmain.c (main): Default to false.
5421 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5422 * NEWS: Describe the emitrelocations switch.
5423 * ld.texinfo: Describe the emitrelocations switch.
5425 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5427 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5428 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5429 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5432 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5434 * lexsup.c (parse_args): Update the year in the copyright notice.
5436 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5438 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5439 Replace defines with those from intl/libgettext.h to quieten gcc
5442 2000-05-10 H.J. Lu <hjl@gnu.org>
5444 * ldlang.c (open_input_bfds): Don't load the same file within
5445 a group again if the whole archive has been loaded already.
5447 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5449 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5450 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5453 2000-05-01 Jim Wilson <wilson@cygnus.com>
5455 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5457 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5458 host "ia64-*-linux-gnu*".
5460 2000-04-29 Andreas Jaeger <aj@suse.de>
5462 * ld.h: Correctly check GCC version.
5464 2000-04-25 Jeffrey A Law (law@cygnus.com)
5466 * Makefile.am: Add PA64 support. Add missing dependencies for
5468 * Makefile.in: Rebuilt.
5469 * configure.tgt: Add PA64 support (currently disabled).
5471 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5473 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5474 (output_rel_find): New function.
5475 (hold_section, hold_use): Delete.
5476 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5477 hold_interp): Make local to place_orphan.
5478 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5479 rather than place_section to find possible previous use of orphan.
5480 Similarly find the place-holder output sections. Use returned
5481 value from lang_enter_output_section_statement rather than calling
5482 lang_output_section_statement_lookup.
5483 * emultempl/armelf.em: Same here.
5484 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5486 * ldlang.c (lang_enter_output_section_statement): Return output
5488 * ldlang.h (lang_enter_output_section_statement): Change
5491 * ldlang.h (lang_output_section_statement): Export it.
5492 * ldlang.c (lang_output_section_statement): Ditto.
5494 2000-04-24 Nick Clifton <nickc@cygnus.com>
5496 * ld.texinfo (Output Section Data): Add note that section data
5497 commands cannot appear outside of section directives.
5499 2000-04-2 Matthew Green <mrg@cygnus.com>
5501 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5503 2000-04-21 Richard Henderson <rth@cygnus.com>
5504 David Mosberger <davidm@hpl.hp.com>
5506 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5507 (eelf64_ia64.c): New rule.
5508 * Makefile.in: Rebuild.
5509 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5510 * emulparams/elf64_ia64.sh: New file.
5512 2000-04-21 Richard Henderson <rth@cygnus.com>
5514 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5516 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5518 * dep-in.sed: Match space at start of file name, not at end.
5520 2000-04-18 H.J. Lu <hjl@gnu.org>
5522 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5523 lang_leave_output_section_statement () after calling
5524 lang_enter_output_section_statement ().
5525 * emultempl/armelf.em: Likewise.
5527 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5529 * emultempl/elf32.em (struct orphan_save): Add section field.
5530 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5531 better order, and place first orphan section as we did before the
5532 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5533 Don't call make_bfd_section here, let wild_doit do the job for us.
5534 Don't build a statement list when we'll only throw it away.
5535 * emultempl/armelf.em: Ditto.
5536 * emultempl/pe.em: Similarly.
5538 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5540 * scripttempl/elfppc.sc: Remove.
5541 * emulparams/elf32ppc.sh: Use elf.sc.
5542 * emulparams/elf32lppc.sh: Use elf.sc.
5543 * emulparams/elf32ppclinux.sh: Use elf.sc.
5544 * emulparams/elf32ppcsim.sh: New file.
5545 * emulparams/elf32lppcsim.sh: New file.
5546 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5547 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5548 * Makefile.in: Regenerate.
5549 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5551 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5553 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5554 ~SEC_ALLOC sections too. Init start address of debug sections.
5555 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5556 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5557 Also set all relocateable section start addresses.
5559 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5561 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5562 Add new BSS_PLT variable for when .plt need not be contained in
5563 the file. Move _etext so that it is also after .fini, and provide
5564 both etext and _etext with a leading underscore. Mark the start
5567 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5569 * emultempl/elf32.em (struct orphan_save): New.
5570 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5571 hold_interp): Make them struct orphan_save.
5572 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5573 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5574 the end of the relevant section list. Also add associated section
5575 statements to the end of any previous orphan statements.
5576 * emultempl/armelf.em: Similarly.
5577 * emultempl/pe.em: Similarly.
5579 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5581 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5583 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5585 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5586 --enable-build-warnings option.
5587 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5588 * Makefile.in, configure: Re-generate.
5590 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5592 * po/ld.pot: Regenerate.
5594 * lexsup.c (help): Restore translated part of bug string.
5596 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5597 (DEP): Quote when passing vars to sub-make. Add warning message
5599 (DEP1): Rewrite for "gcc -MM".
5600 (CLEANFILES): Add DEP2.
5601 Update dependencies.
5602 * Makefile.in: Regenerate.
5604 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5606 * ld.h: #include "bin-bugs.h"
5607 * lexsup.c (help): Use REPORT_BUGS_TO.
5609 2000-03-27 Denis Chertykov <denisc@overta.ru>
5611 * configure.tgt (avr-*-*): New target support.
5612 * Makefile.am: Likewise.
5613 * scripttempl/elf32avr.sc: New script file.
5614 * emulparams/avr1200.sh: New file.
5615 * emulparams/avr23xx.sh: New file.
5616 * emulparams/avr4433.sh New file.
5617 * emulparams/avr44x4.sh New file.
5618 * emulparams/avr85xx.sh New file.
5619 * emulparams/avrmega103.sh New file.
5620 * emulparams/avrmega161.sh New file.
5621 * emulparams/avrmega603.sh New file.
5622 * Makefile.in: Regenerate.
5624 2000-03-09 Andreas Jaeger <aj@suse.de>
5626 * Makefile.am (check-DEJAGNU): Also unset LANG.
5627 * Makefile.in: Rebuild.
5629 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5631 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5634 2000-03-02 H.J. Lu <hjl@gnu.org>
5636 * emulparams/elf32mcore.sh: Include "getopt.h".
5638 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5640 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5642 2000-03-01 H.J. Lu <hjl@gnu.org>
5644 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5645 * emulparams/shpe.sh: Likewise.
5647 2000-03-01 Nick Clifton <nickc@cygnus.com>
5649 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5650 to unused parameters.
5652 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5653 functions only used by DLL code.
5654 (_place_orphan): Initialise 'dollar'.
5656 2000-03-01 H.J. Lu <hjl@gnu.org>
5658 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5659 indicate if the undefined symbol is a fatal error or not.
5660 Don't delete the output file if "fatal" is false.
5662 2000-02-29 H.J. Lu <hjl@gnu.org>
5664 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5665 Set LC_COLLATE and LC_ALL to null and export them. It is for
5666 sort which expects the C locale.
5667 Add $(LIBS) to all $(HOSTING_LIBS).
5668 * Makefile.in: Rebuild.
5670 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5672 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5673 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5674 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5675 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5676 find_potential_libraries.
5678 2000-02-28 Jim Blandy <jimb@redhat.com>
5680 * ldgram.y (exclude_name_list): Don't require a comma to separate
5681 list entries; the lexer considers commas to be valid part of a
5682 filename, so in something like `foo, bar' the comma is considered
5683 part of the first filename, `foo,'.
5684 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5686 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5688 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5689 host "i[3456]86-*-freebsdelf*".
5691 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5693 * scripttempl/i386go32.sc: Move misplaced semicolons.
5695 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5697 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5698 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5699 (eelf64hppa.c, ehppaelf.c): Remove targets.
5700 * Makefile.in: Rebuild.
5702 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5704 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5705 GNU/Linux/sparc, but keep the default as 32.
5707 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5708 it default if sparcv9 or sparc64.
5710 2000-02-24 Nick Clifton <nickc@cygnus.com>
5712 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5713 * Makefile.in: Regenerate.
5714 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5716 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5717 find_potential_libraries.
5718 * ldemul.c (ldemul_find_potential_libraries): New function.
5720 * ldfile.c (ldfile_open_file_search): Allow function to be
5722 (ldfile_open_file): Call ldemul_find_potential_libraries.
5723 * ldfile.h: Add prototype for ldfile_open_file_search.
5725 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5727 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5728 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5730 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5731 (gld_X_find_potential_libraries): New function. Search for
5732 libraries called "*.lib".
5734 * scripttempl/pe.sc: Add .pdata section.
5736 2000-02-23 Richard Henderson <rth@cygnus.com>
5738 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5739 Add and use memory regions.
5741 2000-02-23 Linas Vepstas (linas@linas.org)
5743 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5745 * Makefile.am: Add support for Linux/IBM 370.
5746 * configure.tgt: Likewise.
5748 * Makefile.in: Regenerate.
5750 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5752 * ldlang.c (print_input_section, print_data_statement,
5753 print_reloc_statement, print_padding_statement, insert_pad,
5754 size_input_section, lang_check_section_addresses,
5755 lang_size_sections, lang_do_assignments, lang_set_startof,
5756 lang_one_common): Change `opb' to unsigned.
5757 (lang_do_assignments): Also change `size' to unsigned.
5759 2000-02-16 Richard Henderson <rth@cygnus.com>
5761 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5763 2000-02-16 Timothy Wall <twall@cygnus.com>
5765 * mri.c (mri_draw_tree): Add default LMA region argument to call
5766 to lang_leave_output_section_statement.
5767 * ldlang.h: Update prototypes with LMA region arguments.
5768 * ldlang.c (lang_size_sections): Encapsulate region bounds
5769 checking in os_check_region call.
5770 (os_check_region): New function.
5771 (lang_output_section_statement_lookup): Initialize lma_region.
5772 (lang_leave_output_section_statement): Add LMA region argument.
5773 (lang_leave_overlay): Ditto.
5774 * ldgram.y: Handle LMA region syntax.
5775 * ld.texinfo (Output Section Description): Describe LMA region usage.
5776 * emultempl/armelf.em (gld$place_orphan): Add default value for
5777 lma region in call to lang_leave_output_section_statement.
5778 * emultempl/elf32.em (gld$place_orphan): Add default value for
5779 lma region in call to lang_leave_output_section_statement.
5780 * emultempl/pe.em (gld$place_orphan): Add default value for
5781 lma region in call to lang_leave_output_section_statement.
5784 2000-02-04 Timothy Wall <twall@redhat.com>
5786 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5787 octets when calculating section end addresses.
5789 2000-02-04 Timothy Wall <twall@redhat.com>
5791 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5793 2000-02-03 Timothy Wall <twall@redhat.com>
5795 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5797 * ldlang.c (print_input_section, print_data_statement,
5798 print_reloc_statement, print_padding_statement): Print target
5799 address values and section sizes as bytes, not octets.
5800 (insert_pad) Calculate padding size in octets, and adjust "dot"
5802 (size_input_section) Always adjust "dot" by bytes, not octets.
5803 (lang_check_section_addresses, lang_do_assignments) Adjust
5804 "dot" by bytes, not octets. Use the larger of the directive size
5805 or octets_per_byte for the number of octets actually allocated in
5807 (lang_set_startof) Make sure STARTOF returns a target address.
5808 (lang_one_common) Record size changes in octets.
5809 (lang_abs_symbol_at_end_of) Section end symbol's value is
5810 recorded in target bytes.
5811 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5812 to be clear about behavior when an octet is smaller than one byte.
5814 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5816 * ldcref.c (output_cref): Don't pass message strings to printf
5820 * ldmisc.c (vfinfo): Same here.
5823 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5825 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5826 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5827 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5828 Add missing NULL initialisers, and comments.
5830 2000-01-21 Nick Clifton <nickc@cygnus.com>
5832 * ldlang.c (lang_size_sections): Fix typo in comment.
5834 2000-01-18 H.J. Lu <hjl@gnu.org>
5836 * ldlang.c (lang_size_sections): Also update the current
5837 address of a region if the SEC_NEVER_LOAD bit is not set.
5839 2000-01-10 Philip Blundell <pb@futuretv.com>
5841 * configure.tgt (arm*-*-conix*): New target.
5843 2000-01-07 Nick Clifton <nickc@cygnus.com>
5845 * ld.texinfo (Options): Remind users to preceed linker command
5846 line switches with -Wl, (or whatever is appropriate) if it is
5847 being invoked by a comnpiler driver program.
5848 Fix description of the behaviour of the -n command line switch.
5850 2000-01-05 Catherine Moore <clm@cygnus.com>
5852 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5854 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5855 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5856 (exclude_name_list): New.
5857 ldlang.c (walk_wild_section): Support list of excluded files.
5858 (print_wild_statement): Likewise.
5859 (lang_add_wild): Likewise.
5860 * ldlang.h (lang_wild_statement_type): Likewise.
5861 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5863 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5865 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5866 (process_def_file): Use.
5867 (pe_dll_compat_implib): New variable.
5870 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5871 pe_dll_compat_implib.
5873 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5874 compat-implib options.
5875 (gld_${EMULATION_NAME}_list_options): List new options.
5876 (gld_${EMULATION_NAME}_parse_args): Handle.
5878 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5881 * deffilep.y (opt_name): Allow "." in name.
5883 For older changes see ChangeLog-9899
5889 version-control: never