1 2003-04-28 H.J. Lu <hjl@gnu.org>
3 * ldlang.c (lang_process): Add the relax finalize pass.
5 * ldmain.c (main): Initialize link_info.relax_finalizing to
8 2003-04-24 Roland McGrath <roland@redhat.com>
10 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
11 If a name string is unknown, give an error rather than crashing later.
13 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
15 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
16 eh8300hnelf.o, eh8300snelf.o and respective rules.
17 * Makefile.in: Regenerate.
18 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
19 * emulparams/h8300hn.sh: New
20 * emulparams/h8300sn.sh: New
21 * emulparams/h8300hnelf.sh: New
22 * emulparams/h8300snelf.sh: New
23 * scripttempl/h8300hn.sc: new
24 * scripttempl/h8300sn.sc: new
26 2003-04-23 H.J. Lu <hjl@gnu.org>
28 * ldmain.c (link_callbacks): Initialize error_handler.
30 * ldmisc.c (error_handler): New function.
32 * ldmisc.h (error_handler): New prototype.
34 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
36 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
37 * emulparams/m68hc11elfb.sh: Likewise.
38 * emulparams/m68hc12elf.sh: Likewise.
39 * emulparams/m68hc12elfb.sh: Likewise.
41 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
43 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
45 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
47 (LDEMUL_FINISH): Override to generate the trampolines after gc and
49 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
50 stub file for trampolines.
51 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
52 --no-trampoline and --bank-window to control the memory bank window.
54 2003-04-18 H.J. Lu <hjl@gnu.org>
56 * ldfile.c (ldfile_add_library_path): Remove the unused
59 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
61 * scripttempl/xstormy16.sc (__data, __rdata): New.
63 2003-04-16 Nick Clifton <nickc@redhat.com>
65 * scripttempl/xstormy16.sc: Add .jcr section mapping.
67 2003-04-15 H.J. Lu <hjl@gnu.org>
69 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
71 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
73 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
75 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
76 * ld.texinfo: Likewise.
78 2003-04-14 Alan Modra <amodra@bigpond.net.au>
80 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
81 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
82 other variants of crtbegin.o, crtend.o.
84 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
85 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
86 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
87 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
88 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
89 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
90 * scripttempl/mmo.sc (ctors, dtors): Likewise.
91 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
93 2003-04-09 Dmitry Diky <diwil@mail.ru>
95 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
96 sections to respect C++ constructor/destructor. Add ctors/dtors
97 start/stop definitions.
98 * scripttempl/elf32msp430_3.sc: Likewise.
100 2003-04-06 Nick Clifton <nickc@redhat.com>
102 * ld.texinfo (Options): Add a reminder of the target specific
103 nature to the description of the i386 PE specific options, for
104 readers who have not read all the way through the manual.
106 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
108 * configure.tgt: Fixed bug in list of targ_extra_emuls.
109 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
110 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
111 * emulparams/tic3xcoff_onchip.sh: Ditto
112 * emulparams/tic4xcoff.sh: Ditto
113 * scripttempl/tic4xcoff.sc: Ditto
115 2003-04-03 Nick Clifton <nickc@redhat.com>
117 * NEWS: Mention support for Xtensa architecture.
119 2003-04-02 Nick Clifton <nickc@redhat.com>
121 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
123 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
125 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
126 Don't call pe_dll_build_section() if link_info.relocateable.
127 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
128 if link_info.relocateable.
130 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
132 * pe-dll.c (process_def_file): Don't create an export
133 section if there are no exports and we're building an exe
134 (pe_dll_build_sections): Ditto
135 (pe_dll_fill_sections): Conditionalize setting
136 abfd->dll true on info->shared
137 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
138 If i386pe or armpe, call pe_dll_build_section()
139 for both exe's and dll's, not just dll's.
140 (gld_${EMULATION_NAME}_finish): For all targets except
141 shpe and mipspe, call pe_dll_fill_sections() for both
142 exe's and dll's, not just dll's.
144 2003-04-02 Bob Wilson <bob.wilson@acm.org>
146 * emulparams/xtensa-config.sh: Remove comment indicating that this is
149 2003-04-01 Bob Wilson <bob.wilson@acm.org>
151 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
152 (eelf32xtensa.c): New target.
153 * Makefile.in: Regenerate.
154 * configure.tgt: Handle xtensa-*-*.
155 * gen-doc.texi: Set XTENSA variable.
156 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
157 * emulparams/elf32xtensa.sh: New file.
158 * emulparams/xtensa-config.sh: Likewise.
159 * emultempl/xtensaelf.em: Likewise.
160 * scripttempl/elfxtensa.sc: Likewise.
162 2003-04-01 Jakub Jelinek <jakub@redhat.com>
164 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
165 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
166 if --enable-64-bit-bfd.
168 2003-04-01 Nick Clifton <nickc@redhat.com>
170 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
172 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
173 name of note section.
175 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
177 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
180 2003-03-31 David Heine <dlheine@suif.stanford.edu>
182 * ldfile.c (ldfile_add_library_path): Always allocate space for
184 * ldlang.c (lang_register_vers_node): Free the node if it cannot
186 * ldmain.c (set_scripts_dir): Always free the constructed
188 (add_keepsyms_file): Fix memory leak.
189 * ldmisc.c (vfinfo): Likewise.
190 * lexsup.c (parse_args): Likewise.
192 2003-03-25 Stan Cox <scox@redhat.com>
193 Nick Clifton <nickc@redhat.com>
195 Contribute support for Intel's iWMMXt chip - an ARM variant:
197 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
198 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
199 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
202 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
204 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
205 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
206 (main): Initialize them.
207 * ldfile.c: Include pathnames.h.
208 (is_sysrooted_pathname): New.
209 (ldfile_add_library_path): Use it.
210 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
211 search_dirs if given an absolute pathname.
212 (ldfile_open_file): Issue error message for sysrooted
214 * Makefile.am: Updated dependencies.
215 * Makefile.in: Rebuild.
217 2003-03-24 Daniel NĂ©ri <dne@mayonnaise.net>
219 * ld.texinfo: Rename all occurances of C54X to TIC54X.
221 2003-03-19 Andreas Schwab <schwab@suse.de>
223 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
226 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
228 * defilep.y (opt_base): If no number given, set to default
231 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
233 * deffilep.y (def_import): Use default extension of "dll"
234 if no extension provided in parsed IMPORT definition.
236 * deffilep.y (def_lex): Revert 2003-03-12 change.
237 (dot_name): New id type and rule.
238 (expline): Use instead of ID.
239 (opt_equal_name): Likewise.
241 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
243 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
245 2003-03-07 Christopher Faylor <cgf@redhat.com>
247 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
248 apparent accidental removal on 2003-01-06.
250 2003-03-04 Dmitry Diky <diwil@mail.ru>
252 * Makefile.am: Add new devices x1122 x1132 emulation
253 * configure.tgt: Likewise.
254 * Makefile.in: Regenerate.
255 * emulparams/msp430x1122.sh: New file.
256 * emulparams/msp430x1132.sh: New file.
258 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
260 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
263 * ldfile.h (struct search_dirs): Added sysrooted field.
264 * ldlang.h (struct lang_input_statement_struct): Likewise.
265 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
266 (ldfile_open_file_search): Look for sysrooted filename starting
267 with / in ld_sysroot instead of in the current directory. Clear
268 sysrooted flag if it's found in the current directory. Set it
269 from the search directory's sysrooted flag where it is found
271 * ldlang.c (ldlang_sysrooted_script): New static variable.
272 (new_afile): Mark search_file_enums as sysrooted if
273 ldlang_sysrooted_script.
274 (load_symbols): Set ldlang_sysrooted_script according to the
275 script's sysrooted field while processing it.
276 * ld.texinfo: Document INPUT behavior in sysroot.
278 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
280 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
282 2003-03-03 Alan Modra <amodra@bigpond.net.au>
284 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
285 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
286 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
287 PARSE_AND_LIST_EPILOGUE): Don't define.
288 * emultempl/alphaelf.em: New file.
290 2003-03-01 Alan Modra <amodra@bigpond.net.au>
292 * ldemul.c: Include getopt.h.
293 * emultempl/elf32.em: Include getopt.h earlier.
294 * emultempl/ticoff.em: Likewise.
296 2003-02-28 Alan Modra <amodra@bigpond.net.au>
298 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
299 support when scripts read from files.
301 2003-02-28 Alan Modra <amodra@bigpond.net.au>
303 * ldemul.c (ldemul_parse_args): Return FALSE by default.
304 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
307 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
308 (ldemul_parse_args): Return bfd_boolean. Formatting.
309 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
310 (ldemul_parse_args): Adjust.
311 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
312 Return bfd_boolean from parse_args.
313 * lexsup.c (parse_args): Malloc shortopts, longopts and
314 really_longopts. Call ldemul_add_options and ldemul_handle_option.
315 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
316 gld${EMULATION_NAME}_parse_args.
317 (gld${EMULATION_NAME}_handle_option): Likewise.
318 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
319 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
320 * emultempl/beos.em: Likewise.
321 * emultempl/pe.em: Likewise.
322 * emultempl/ticoff.em: Likewise.
323 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
324 (gld${EMULATION_NAME}_add_sysroot): Prototype.
325 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
327 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
328 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
329 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
330 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
332 * emultempl/generic.em: Likewise.
333 * emultempl/gld960.em: Likewise.
334 * emultempl/gld960c.em: Likewise.
335 * emultempl/linux.em: Likewise.
336 * emultempl/lnk960.em: Likewise.
337 * emultempl/m68kcoff.em: Likewise.
338 * emultempl/mipsecoff.em: Likewise.
339 * emultempl/sunos.em: Likewise.
340 * emultempl/vanilla.em: Likewise.
341 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
343 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
345 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
346 memory allocation error.
348 * Makefile.am (ldmain.o): Define TOOLBINDIR.
349 * Makefile.in: Rebuilt.
350 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
352 2003-02-21 Bob Wilson <bob.wilson@acm.org>
354 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
355 call os_region_check when it is set.
356 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
357 lang_size_sections_1.
358 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
359 only for the last call, not on every relaxation iteration.
360 * ldlang.h (lang_size_sections): Update prototype.
361 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
362 to lang_size_sections.
363 (pe_exe_fill_sections): Likewise.
364 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
365 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
366 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
367 (ppc_layout_sections_again): Likewise.
369 2003-02-21 Bob Wilson <bob.wilson@acm.org>
371 * gen-doc.texi: Set ARM and HPPA variables.
372 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
373 title capitalization more consistent. Add missing menu entries for
374 machine-specific sections and conditionalize them consistently.
375 Conditionalize text that is irrelevant when SingleFormat is set.
376 Add @group divisions to improve page breaks in long examples.
377 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
378 is correct. Remove "FIXME" comment about not using
379 @raisesections/@lowersections. Use @raisesections/@lowersections
380 consistently for machine-specific sections. Change to be more polite
381 about poor bug reports. Replace FDL appendix with include of fdl.texi.
382 Move WIN32 node to match its order in the menus.
383 * fdl.texi: New file.
385 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
387 * configure.in (TARGET_SYSTEM_ROOT): Set default to
388 ${exec_prefix}/${target_alias}/sys-root. Match explicit
389 '${exec_prefix}' (in addition to the expansion thereof) as
391 * configure: Rebuilt.
393 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
395 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
397 2003-02-20 Harri Porten <porten@kde.org>
399 * ldgram.y (vers_defns): Allow optional trailing semicolon in
402 2003-02-18 Alan Modra <amodra@bigpond.net.au>
404 * emultempl/ppc32elf.em: New file.
405 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
406 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
407 (eelf32lppcnto.c): Likewise.
408 (eelf32lppcsim.c): Likewise.
409 (eelf32ppcnto.c): Likewise.
410 (eelf32ppc.c): Likewise.
411 (eelf32ppc_fbsd.c): Likewise.
412 (eelf32ppcsim.c): Likewise.
413 (eelf32ppclinux.c): Likewise.
414 * Makefile.in: Regenerate.
416 2003-02-18 Alan Modra <amodra@bigpond.net.au>
418 * ld.texinfo: Remove spaces between @samp and opening brace.
420 2003-02-18 Alan Modra <amodra@bigpond.net.au>
422 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
424 (ppc_before_allocation): Don't do optimizations if wrong hash table.
425 (gld${EMULATION_NAME}_finish): Ditto.
427 2003-02-17 Nick Clifton <nickc@redhat.com>
429 * ldmain.c (main) Default allow_shlib_undefined to true.
430 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
431 (parse_args): Parse the new switch.
432 * ld.texinfo: Document new switch and default behaviour of
433 allowing undefined symbols in shared libraries.
435 2003-02-11 Dmitry Diky <diwil@mail.ru>
437 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
438 * scripttempl/elf32msp430_3.sc: Likewise.
440 2003-02-11 Uwe Stieber <uwe@wwws.de>
442 * configure.tgt: Add support for kaOS as cross build target
445 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
447 * hppaelf.em (group_size): Change default back to 1.
449 2003-02-09 Alan Modra <amodra@bigpond.net.au>
451 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
453 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
455 * hppaelf.em (group_size): Change default to -1.
457 2003-02-07 Nick Clifton <nickc@redhat.com>
459 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
461 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
462 no-pipeline-knowledge. This will prevent the getopt package from
463 thinking that there are any shorter abbreviations for
464 --no-pipeline-knowledge.
466 2003-02-07 Jakub Jelinek <jakub@redhat.com>
468 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
469 which already have it. Avoid duplicates.
471 2003-02-06 Jakub Jelinek <jakub@redhat.com>
473 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
474 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
475 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
477 2003-02-05 Alan Modra <amodra@bigpond.net.au>
479 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
480 call ppc64_elf_tls_optimize.
482 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
484 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
485 outside of GNU/Linux conditional.
487 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
489 * deffilep.y (def_get_module): New function: locate an already
491 * deffile.h (def_get_module): New prototype.
492 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
493 a dll multiple times.
495 2003-01-23 Alan Modra <amodra@bigpond.net.au>
497 * emultempl/sh64elf.em: Include elf32-sh64.h.
498 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
499 sh64_elf_section_data.
500 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
502 2003-01-23 Wu Yongwei <adah@netstd.com>
504 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
505 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
506 cross-80th-column-margin "an" to the next line.
508 2003-01-21 Nick Clifton <nickc@redhat.com>
510 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
511 * emulparams/tic3xcoff_onchip.sh: ...this.
512 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
513 * Makefile.in: Regenerate.
515 2003-01-21 Fabio Alemagna <falemagn@aros.org>
517 * configure.tgt: Handle i[3456]86-*-aros*
519 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
521 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
522 * Makefile.in: Regenerate
523 * configure.tgt: Added extra target emulations
524 * emulparams/tic3xcoff.sh: Remove old settings
525 * emulparams/tic4xcoff.sh: Ditto
526 * emulparams/tic3xcoff-onchip.sh: Added new
527 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
528 * scripttempl/tic3xcoff.sc: Remove
530 2003-01-17 Andreas Jaeger <aj@suse.de>
532 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
535 2003-01-16 Alan Modra <amodra@bigpond.net.au>
537 * Makefile.in: Regenerate.
539 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
541 * ld/ld.texinfo (node WIN32): Some clarifications
542 and formatting fixups.
544 2003-01-09 Chris Demetriou <cgd@broadcom.com>
546 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
547 order, and handle (ignore) -mips32r2.
549 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
551 * ldmain.c (main): Make sure ld_sysroot is initialized.
553 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
555 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
557 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
558 (GENSCRIPTS): Add @use_sysroot@.
559 * Makefile.in: Regenerated.
560 * configure.host: Move setting of NATIVE_LIB_DIRS to...
561 * configure.tgt: ... here. Use ${target} instead of ${host}
563 * configure.in: Add --with-sysroot.
564 * configure: Regenerated.
565 * genscripts.sh: Accept use_sysroot option. Set new variables
566 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
567 $use_sysroot. Don't search $tool_lib if $use_sysroot.
568 * ldfile.c (ldfile_add_library_path): Handle leading '='.
569 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
570 (ld_sysroot): New variable.
571 (main): Initialize ld_sysroot.
572 * ldmain.h (ld_sysroot): New extern.
573 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
574 searching $EMULATION_LIBPATH.
575 (gld${EMULATION_NAME}_add_sysroot): New function.
576 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
577 (gld${EMULATION_NAME}_after_open): Likewise. Only search
578 environment variables if $NATIVE.
579 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
580 * NEWS: Mention --with-sysroot.
582 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
583 instead of setting LIB_PATH.
584 * emulparams/elf32ppc.sh: Likewise.
585 * emulparams/elf64_s390.sh: Likewise.
586 * emulparams/elf64_sparc.sh: Likewise.
587 * emulparams/elf64ppc.sh: Likewise.
588 * emulparams/elf_x86_64.sh: Likewise.
590 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
591 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
593 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
595 * ld/pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
597 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
599 * Makefile.am (ldmain.o): Pass BINDIR.
600 * Makefile.in: Regenerated.
601 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
604 2003-01-02 Ben Elliston <bje@redhat.com>
606 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
607 (eelf32iq2000.c): New target.
608 * Makefile.in: Regenerate.
609 * configure.tgt: Handle iq2000-*-elf.
610 * emulparams/elf32iq10.sh: New file.
611 * emulparams/elf32iq2000.sh: New file.
612 * scripttempl/iq2000.sc: New file.
614 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
616 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
617 and _pei386_runtime_relocator to the exclude list.
619 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
621 * ldfile.c: Fix comment typos.
622 * ldlang.c: Likewise.
624 * pe-dll.c: Likewise.
626 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
628 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
629 * Makefile.am (ld.1): Depend on configdoc.texi
631 * Makefile.in: Regenerated.
633 2002-12-24 Dmitry Diky <diwil@mail.ru>
635 * Makefile.am: Add msp430 target.
636 * configure.tgt: Likewise.
637 * Makefile.in: Regenerate.
638 * emulparams/msp430x???.sh: New files. Linker script parameters
639 for various msp430 configurations.
640 * gen-doc.texi: Enable msp430 documenation.
641 * ld.texinfo: Document msp430 sections.
642 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
643 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
645 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
646 Charles Wilson <cwilson@ece.gatech.edu>
648 * ld/config.in (HAVE_REALPATH): New entry.
649 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
651 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
653 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
656 2002-12-23 Alan Modra <amodra@bigpond.net.au>
658 * ldmain.c (main): Init "strip_discarded".
659 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
660 (OPTION_NO_STRIP_DISCARDED): Define.
661 (ld_options): Add "strip-discarded" and "no-strip-discarded".
662 (parse_args): Handle them.
664 2002-12-23 Nick Clifton <nickc@redhat.com>
666 * ld.h (struct args_type): Add new field
667 'accept_unknown_input_architecture'.
668 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
670 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
671 bfd_arch_get_compatible.
672 * ldfile.c (ldfile_try_open_bfd): Likewise.
673 * lexsup.c (ld_options): Add new command line switch
674 --accept-unknown-input-architecture and its inverse.
675 (parse_args): Handle --accept-unknown-input-architecture.
676 * ld.texinfo: Document new linker option.
677 * NEWS: Mention new linker option.
679 2002-12-20 Alan Modra <amodra@bigpond.net.au>
681 * ldmain.c (main): Re-order link_info initialization. Init all
684 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
686 * ld.texinfo: Clarify and extend the documentation
687 in the Machine Dependent, WIN32 section.
689 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
691 * ld.texinfo: Add win32 machine depending section.
692 * gen-doc.texi: Enable win32 machine depending section.
694 * configure.host: Add win32 library search path.
696 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
698 * ld/emultempl/pe.em (pe_find_data_imports): Don't search for data
699 import when auto-import is disabled.
701 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
703 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
704 account for trailing '\0'.
706 2002-12-17 Nick Clifton <nickc@redhat.com>
708 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
709 so that it is not confused with -c.
711 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
712 Charles Wilson <cwilson@ece.gatech.edu>
714 * configure.in: Add check for realpath function.
715 * configure: Regenerate.
716 * config.in: Regenerate.
717 * aclocal.m4: Regenerate.
718 * deffile.h: Add .data field to def_file_import
720 * pe-dll.c (pe_proces_import_defs): Use .data field of
721 def_file_import structure to initialize flag_data field of
722 def_file_export structure.
723 (pe_implied_import_dll): New variables exp_funcbase and
724 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
725 not filename (which may be a symlink). Scan the sections and
726 initialize [data|bss]_[start|end]. When scanning the export
727 table, skip _nm_ symbols, and mark any symbols whose rva indicates
728 that it is in the .bss or .data sections as data.
729 * sysdep.h: Include limits.h and sys/param.h, and define
730 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
731 exists, NULL otherwise.
732 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
733 pe_process_import_defs before pe_find_data_imports, so that
734 auto-import will check the virtual implib as well as "real"
736 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
737 symlinks to their target; check that the target's extension is
738 .dll before calling pe_implied_import_dll(), not the filename
739 itself (which may be a symlink).
741 2002-12-10 Alan Modra <amodra@bigpond.net.au>
743 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
744 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
747 2002-12-08 Alan Modra <amodra@bigpond.net.au>
749 * ldlang.h: Formatting.
751 2002-12-07 Alan Modra <amodra@bigpond.net.au>
753 * ldlang.c (init_os): Ensure sections mentioned in load_base
756 2002-12-05 Alan Modra <amodra@bigpond.net.au>
758 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
759 load_base for orphans that follow a section with load_base set.
761 2002-12-01 H.J. Lu <hjl@gnu.org>
763 * ld.texinfo: Remove the extra `;' in sample version script.
765 2002-11-30 Alan Modra <amodra@bigpond.net.au>
767 * configure.host: Correct dynamic-linker for powerpc64 hosts.
769 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
770 * Makefile.in: Regenerate.
772 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
773 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
774 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
775 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
776 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
777 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
778 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
779 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
780 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
781 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
782 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
783 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
784 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
786 2002-11-27 David O'Brien <obrien@FreeBSD.org>
788 * configure.host: Fix generic FreeBSD configuration entry.
790 2002-11-27 H.J. Lu <hjl@gnu.org>
792 * ld.texinfo: Add the missing `;' to sample version scripts.
794 2002-11-20 Alan Modra <amodra@bigpond.net.au>
796 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
798 2002-11-14 Egor Duda <deo@logos-m.ru>
800 * ldmain.c (main): Make runtime relocs disabled by default. Remove
801 assignment which has no effect.
802 * pe-dll.h (pe_create_import_fixup): Change prototype.
803 * pe-dll.c (make_runtime_pseudo_reloc): New function.
804 (pe_create_runtime_relocator_reference): Ditto.
805 (pe_create_import_fixup): Handle relocations with non-zero addends.
806 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
807 --disable-runtime-pseudo-reloc.
808 (make_import_fixup): Handle relocations with non-zero addends. Create
809 an external reference to _pei386_runtime_relocator symbol if at least
810 one pseudo reloc was created.
811 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
812 --disable-runtime-pseudo-reloc options.
814 2002-11-12 Earl Chew <earl_chew@agilent.com>
816 * ldlang.c (lang_add_section): Discard debugging sections that have
817 been marked SEC_EXCLUDE.
819 2002-11-12 Nick Clifton <nickc@redhat.com>
821 * configure.in (ALL_LINGUAS): Add da.
822 * configure: Regenerate.
823 * po/da.po: New Danish translation.
825 2002-11-12 Alan Modra <amodra@bigpond.net.au>
827 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
828 (LDEMUL_BEFORE_ALLOCATION): Define.
829 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
831 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
833 2002-11-11 Christopher Faylor <cgf@redhat.com>
835 * configure.tgt (LIB_PATH): Default to searching w32api directory under
838 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
840 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
841 of restricted auto-export libs.
843 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
845 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
846 creative library naming instances like, e.g., libstdc++-2.a.
848 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
850 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
851 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
853 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
855 * deffilep.y (def_lex): Handle '@' as first character of an ID.
856 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
857 (make_one): Don't prefix decorated fastcall symbols with '_'.
858 (pe_process_import_defs): Likewise.
859 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
860 symbols to cdecl names or vise-versa.
862 2002-10-13 Eric Kohl <ekohl@rz-online.de>
864 * pe-dll.c (process_def_file): Handle fastcall symbols when
865 generating undecorated aliases. Don't prefix decorated fastcall
867 (fill_exported_offsets): Don't prefix decorated fastcall symbols
870 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
872 * emultempl/aix.em: Use include <> for generated headers.
873 * emultempl/beos.em: Likewise.
874 * emultempl/elf32.em: Likewise.
875 * emultempl/pe.em: Likewise.
876 * ldctor.c: Likewise.
878 * ldfile.c: Likewise.
879 * ldlang.c: Likewise.
882 * ldmain.c: Likewise.
883 * ldmisc.c: Likewise.
884 * ldwrite.c: Likewise.
885 * lexsup.c: Likewise.
887 * pe-dll.c: Likewise.
889 2002-10-23 Jakub Jelinek <jakub@redhat.com>
891 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
892 sections into .rel{,a}.dyn.
894 2002-10-23 Nick Clifton <nickc@redhat.com>
896 * lexsup.c (OPTION_NO_OMAGIC): Define.
897 (ld_options): Add "no-omagic" option.
898 (parse_args): Parse --no-omagic.
899 * ld.texinfo: Document --no-omagic.
900 * NEWS: Mention new option.
902 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
904 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
905 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
907 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
909 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
910 emulation name. Set LIB_PATH only for native tools, and
911 search the ABI-specific versions of NATIVE_LIB_DIRS before the
912 .../lib variants, not instead of them. Mostly copied from...
913 * emulparams/elf32ppc.sh: ... here. Fixed typo.
914 * emulparams/elf64bmip-defs.sh: Backed out.
915 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
916 * emulparams/elf64btsmip.sh: Likewise.
917 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
918 TEXT_DYNAMIC): Removed.
920 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
922 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
923 (GENERATE_SHLIB_SCRIPT): Set to yes.
924 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
925 * emulparams/elf32bmipn32.sh: here.
926 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
927 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
928 * emulparams/elf64bmip-defs.sh: New file. Extend
929 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
930 * emulparams/elf64bmip.sh: Bring in definitions from
932 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
934 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
935 * emulparams/elf64btsmip.sh: Bring in definitions from
937 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
938 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
940 2002-10-16 Jakub Jelinek <jakub@redhat.com>
942 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
943 (s390-*-linux*): Add elf64_s390 emulation if want64.
944 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
945 genscript.sh changes.
946 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
947 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
949 2002-10-15 Alan Modra <amodra@bigpond.net.au>
951 * ldlang.c (load_symbols): Revert last change.
953 2002-10-14 Alan Modra <amodra@bigpond.net.au>
955 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
957 (lang_reasonable_defaults): Don't compare against false.
958 (size_input_section): Likewise.
959 (lang_size_sections_1): Likewise.
960 (lang_do_assignments): Likewise.
961 (lang_add_output): Likewise.
963 * Makefile.am: Run "make dep-am".
964 * Makefile.in: Regenerate.
965 * ldver.c: #include "bfdver.h".
967 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
969 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
971 * scripttempl/elfm68hc12.sc: Likewise.
973 2002-10-11 Alan Modra <amodra@bigpond.net.au>
975 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
977 * ldgram.y (memory_spec): Provide empty action.
978 (section <NAME>): Likewise.
980 2002-10-10 Jakub Jelinek <jakub@redhat.com>
982 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
983 they have OUTPUT_FORMAT not matching actual output format.
984 * ldlang.c (lang_get_output_target): New function.
985 (open_output): Use it.
986 * ldlang.h (lang_get_output_target): New prototype.
988 2002-10-10 Alan Modra <amodra@bigpond.net.au>
990 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
991 when orphan is .rel, .rela when orphan is .rela.
992 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
993 first. Remove outsecname var.
995 2002-10-09 Richard Shann <richard.shann@superh.com>
996 Stephen Clarke <stephen.clarke@superh.com>
998 * Makefile.am: Add eshelf32_linux.o and
999 eshlelf32_linux.o, new emulations for sh64 Linux.
1000 * Makefile.in: Regenerate.
1001 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1002 * emulparams/shelf32_linux.sh: New file.
1003 * emulparams/shlelf32_linux.sh: New file.
1005 2002-10-08 H.J. Lu <hjl@gnu.org>
1007 * ldlang.c (lang_file_exist): Removed.
1008 (new_afile): Revert the last change.
1009 * ldlang.h (lang_file_exist): Removed.
1010 * lexsup.c (parse_args): Revert the last change.
1012 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1014 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1015 auto-import symbols.
1016 (make_one): Create _nm_<symbol> for data only.
1018 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1020 * ldlang.c (lang_file_exist): New function.
1021 (new_afile): Abort if the filename to be added matches the linker
1023 * ldlang.h: Add prototype for lang_file_exist.
1024 * lexsup.c (parse_args): Abort if the output filename matches
1025 one of the input filenames.
1027 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1029 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1031 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1033 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1034 * scripttempl/elfm68hc11.sc: Likewise.
1035 * scripttempl/elfm68hc12.sc: Likewise.
1037 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1038 reloc sections just before .rel.plt/.rela.plt.
1039 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1040 Only put loadable reloc sections in hold_rel.
1042 2002-09-29 H.J. Lu <hjl@gnu.org>
1044 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1046 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1048 From "Anita Kulkarni" <AnitaK@kpit.com>
1049 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1052 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1054 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1056 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1057 SEGMENT_SIZE alignment.
1058 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1059 (SEGMENT_SIZE): Define.
1061 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1062 (fold_binary): Correct abs - non-abs case.
1063 (fold_trinary): New. Split out from exp_fold_tree.
1065 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1067 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1068 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1069 for start of .data, instead align up to 256M boundary.
1070 * scripttempl/aix.sc: Likewise.
1072 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1074 * scripttempl/i386go32.sc: Handle bss unique sections.
1076 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1078 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1080 2002-09-17 Stan Cox <scox@redhat.com>
1082 * emulparams/elf32bmipn32-defs.sh: New file.
1083 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1084 * emulparams/elf32btsmipn32.sh: Likewise.
1085 * emulparams/elf64bmip.sh: Likewise.
1086 * emulparams/elf64btsmip.sh: Likewise.
1088 2002-09-16 Bruno Haible <bruno@clisp.org>
1090 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1092 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1093 elf64-alpha-freebsd.
1095 2002-09-11 Nick Clifton <nickc@redhat.com>
1097 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1099 * po/tr.po: Updated Turkish translation.
1101 2002-09-06 Jeffrey A Law (law@redhat.com)
1103 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1105 2002-09-02 Nick Clifton <nickc@redhat.com>
1107 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1109 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1111 2002-08-30 Nick Clifton <nickc@redhat.com>
1113 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1114 used. Change INSN to start at 0x01000000 and extend for
1115 256K (ignoring holes). Start the STACK on a word aligned
1117 (.rodata): Start it at the READONLY_START_ADDR.
1119 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1121 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1123 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1125 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1126 added makefile targets for this file.
1127 * Makefile.in: Regenerate.
1128 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1129 * NEWS: Mention new port.
1131 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1133 * emulparams/tic3xcoff.sh: New file.
1134 * emulparams/tic4xcoff.sh: New file.
1135 * scripttempl/tic3xcoff.sc: New file.
1136 * scripttempl/tic4xcoff.sc: New file.
1138 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1140 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1141 strtoul and strtoull with bfd_scan_vma.
1142 (gld${EMULATION_NAME}_read_file): Likewise.
1144 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1146 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1148 2002-08-27 Egor Duda <deo@logos-m.ru>
1150 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1151 Add symbols for application to access them.
1153 2002-08-27 Nick Clifton <nickc@redhat.com>
1155 * emultempl/armelf.em: Revert this patch, it is not needed.
1157 2002-08-22 Adam Nemet <anemet@lnxw.com>
1159 2002-08-20 Dan Kegel <dank@kegel.com>
1161 * configure.in: added --with-lib-path argument to ld's configure
1163 * ld/NEWS: Document new switch.
1164 * ld/README: Mention new switch.
1165 * configure: Regenerate.
1166 * Makefile.in: Regenerate.
1168 Based on this patch:
1169 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1171 * Makefile.in (LIB_PATH): Make configurable.
1172 (GENSCRIPTS): Set LIB_PATH in environment.
1173 * configure.in: Substitute LIB_PATH.
1175 2002-08-22 Adam Nemet <anemet@lnxw.com>
1177 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1178 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1179 depending on the type of the function.
1180 (arm_elf_convert_thumb_symbol_to_address): New function.
1182 2002-08-22 Graeme Peterson <gp@qnx.com>
1184 * Makefile.am: Add esh{l}elf_nto.o files.
1185 * Makefile.in: Regenerate.
1186 * configure.tgt: Add support for sh-**-nto* targets.
1187 * emulparams/shelf_nto.sh: New file.
1188 * emulparams/shlelf_nto.sh: New file.
1190 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1192 * ldlang.c (offsetof): Define if not defined.
1194 2002-08-14 H.J. Lu <hjl@gnu.org>
1196 * configure.tgt: Always enable 64bit emulations for 32bit
1199 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1201 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1202 (MAXPAGESIZE): Set to 1.
1204 * ld.h (ALIGN_N): Delete.
1205 * ldexp.h (align_n): Declare.
1206 * ldexp.c (align_n): New function.
1207 (fold_binary): Use align_n instead of ALIGN_N.
1208 (exp_fold_tree): Likewise.
1209 * ldlang.c (lang_size_sections_1): Likewise.
1210 (lang_one_common): Likewise.
1211 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1213 2002-07-31 Graeme Peterson <gp@qnx.com>
1215 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1216 * Makefile.am: Add eelf32{l}ppcnto.o files.
1217 * Makefile.in: Regenerate.
1218 * emulparams/elf32lppcnto.sh: New file.
1219 * emulparams/elf32ppcnto.sh: New file.
1221 2002-08-07 H.J. Lu <hjl@gnu.org>
1223 * ld.texinfo: Document --no-undefined-version.
1225 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1226 `script.' fields to 0.
1228 * ldmain.c (main): Initialize the allow_undefined_version to
1231 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1232 (ld_options): Add --no-undefined-version.
1233 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1235 2002-08-07 Nick Clifton <nickc@redhat.com>
1237 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1238 an interworking bfd if there are input bfds. (107501)
1240 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1242 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1245 2002-08-01 Nick Clifton <nickc@redhat.com>
1247 * emulparams/armelf.sh: Revert previous delta.
1248 * scripttempl/elf.sc: Revert previous delta.
1250 2002-07-31 H.J. Lu <hjl@gnu.org>
1252 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1253 --enable-64-bit-bfd.
1255 2002-07-31 H.J. Lu <hjl@gnu.org>
1257 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1258 64bit BFD is selected.
1260 2002-07-31 H.J. Lu <hjl@gnu.org>
1262 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1263 if 64bit BFD is selected.
1265 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1267 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1268 link_info.common_skip_ar_aymbols.
1269 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1271 * ldmain.c (main): Initialize new field
1272 link_info.common_skip_ar_aymbols.
1274 2002-07-31 Adam Nemet <anemet@lnxw.com>
1276 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1278 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1281 2002-07-31 Nick Clifton <nickc@redhat.com>
1283 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1284 of the PDP-11 and 2.11BSD a.out support.
1286 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1288 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1289 for n32 ABI support.
1290 * Makefile.in: Regenerate.
1291 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1292 n32 ABI emulations for these 64 bit targets.
1293 * emulparams/elf32bmipn32.sh: Expand comment.
1294 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1296 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1298 2002-07-30 Graeme Peterson <gp@qnx.com>
1300 * configure.tgt: Add support for arm-*-nto target.
1301 * Makefile.am: Add earmnto.o file.
1302 * Makefile.in: Regenerate.
1303 * NEWS: Mention port of ARM support to QNX.
1304 * emulparams/armnto.sh: New file.
1306 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1308 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1309 for relocatable link.
1310 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1313 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1315 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1318 2002-07-25 Nick Clifton <nickc@redhat.com>
1320 * po/sv.po: Updated Swedish translation.
1321 * po/es.po: Updated Spanish translation.
1322 * po/fr.po: Updated French translation.
1324 2002-07-24 Nick Clifton <nickc@redhat.com>
1326 * po/sv.po: Updated Swedish translation.
1327 * po/es.po: Updated Spanish translation.
1329 2002-07-23 Nick Clifton <nickc@redhat.com>
1331 * po/fr.po: Updated French translation.
1333 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1335 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1336 bomb on /DISCARD/ input section.
1337 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1338 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1340 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1342 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1345 2002-07-16 Denis Chertykov <denisc@overta.ru>
1346 Nick Clifton <nickc@redhat.com>
1347 Frank Ch. Eigler <fche@redhat.com>
1348 John Healy <jhealy@redhat.com>
1350 * configure.tgt: Add support for ip2k-elf.
1351 * Makefile.am: Add support for ip2k-elf.
1352 * Makefile.in: Regenerate.
1353 * emulparams/elf32ip2k.sh: New file.
1354 * scripttempl/ip2k.sc: New file
1355 * NEWS: Mention support for new port.
1357 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1359 * NEWS: Add 'Changes in 2.13'.
1361 2002-07-14 H.J. Lu <hjl@gnu.org>
1363 * ld.texinfo: Document a .symver takes precedence over a
1366 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1368 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1369 (COMMONPAGESIZE): Define.
1371 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1373 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1375 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1377 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1378 powerpc-*-openbsd* and sparc64-*-openbsd*.
1379 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1380 * Makefile.in: Regenerate.
1381 * emulparams/hppaobsd.sh: New file.
1383 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1385 * ldlang.c (print_wild_statement): Fix output formatting.
1387 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1389 * ldlang.c: (strip_excluded_output_sections): New function.
1390 (lang_process): Call it.
1391 (lang_size_sections_1): Revert 2002-06-10 change.
1393 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1395 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1397 * Makefile.in: Regenerate.
1399 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1401 * ldfile.c (ldfile_try_open_bfd): Formatting.
1403 * ldmisc.c (demangle): Move so that it doesn't intrude between
1404 vfinfo comment and body. Add comment.
1406 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1408 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1410 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1412 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1413 * ldlang.c (entry_sym): Likewise.
1414 (ldlang_undef_chain_list_type): Likewise.
1415 (lang_finish): Adjust references to entry_symbol.
1416 (lang_add_entry): Likewise.
1417 (lang_gc_sections): Use link_info.gc_sym_list.
1418 (lang_process): Set link_info.gc_sym_list.
1419 * ldlex.l: Include bfdlink.h.
1420 * ldmain.c (main): Init link_info.gc_sym_list.
1421 * emultempl/aix.em: Adjust references to entry_symbol.
1422 * emultempl/armcoff.em: Likewise.
1423 * emultempl/armelf.em: Likewise.
1424 * emultempl/pe.em: Likewise.
1425 * emultempl/ppc64elf.em (ppc_after_open): New function.
1426 (LDEMUL_AFTER_OPEN): Define.
1427 * emulparams/elf64ppc.sh: KEEP .opd sections.
1429 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1431 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1432 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1433 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1434 (EEPROM_START_ADDR): Define.
1435 (EEPROM_MEMORY): Define.
1436 * emulparams/m68hc12elf.sh: Likewise.
1437 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1438 section to put soft registers in .page0.
1439 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1441 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1443 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1444 section. Add ${RELOCATING-0}.
1446 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1448 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1449 (OTHER_SECTIONS): Define.
1450 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1451 (OTHER_SECTIONS): Undef.
1453 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1455 * ldmisc.c (demangle): Restore dots stripped from sym name.
1457 2002-06-25 H.J. Lu <hjl@gnu.org>
1459 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1460 * Makefile.in: Regenerated.
1462 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1464 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1465 the size of attached object files, to allow make the object files
1466 available via FTP or HTTP and to mention that the mail will be
1467 sent to a mailing list.
1469 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1471 * ld/configure.host (romp): Drop support.
1473 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1475 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1476 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1478 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1480 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1481 format specifier used to print BFD name.
1483 2002-06-18 Dave Brolley <brolley@redhat.com>
1485 From Catherine Moore, Michael Meissner, Jim Blandy:
1486 * emulparams/elf32frv.sh: New file.
1487 * configure.tgt: Support frv-*-*.
1488 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1489 (eelf32frv.c): New target.
1491 2002-06-17 Tom Rix <trix@redhat.com>
1493 * emultempl/elf32.em: gld*_get_script: Check for
1494 GENERATE_COMBRELOC_SCRIPT.
1495 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1496 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1498 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1500 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1502 2002-06-12 H.J. Lu <hjl@gnu.org>
1504 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1505 false if xvec doesn't match.
1507 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1509 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1511 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1513 * ldexp.c: Replace CONST with const.
1514 * ldfile.c: Likewise.
1515 * ldfile.h: Likewise.
1516 * ldlex.l: Likewise.
1518 * pe-dll.h: Likewise.
1520 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1522 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1524 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1526 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
1527 to -1 == implicit enable.
1528 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1529 initialize link_info.pei386_auto_import to -1 == implicit
1531 (gld_${EMULATION_NAME}_parse_args): When processing
1532 --enable-auto-import and --disable-auto-import options, use
1533 '1' and '0' instead of 'true' and 'false'.
1534 (pe_find_data_imports): Only issue message about auto-import
1535 when the feature is implicitly enabled. Downgrade message to
1536 informational instead of warning.
1538 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1540 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1542 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1544 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1545 HOSTING_CRT0 and HOSTING_LIBS.
1547 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1549 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1551 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1553 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1554 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1556 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1558 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1559 SEC_EXCLUDE sections when doing a relocatable link.
1561 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1563 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1564 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1565 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1566 (eshlelf64_nbsd.c): New rules.
1567 * Makefile.in: Regenerate.
1568 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1569 (sh64-*-netbsd*): New targets.
1570 * emulparams/shelf32_nbsd.sh: New file.
1571 * emulparams/shelf64_nbsd.sh: New file.
1572 * emulparams/shlelf32_nbsd.sh: New file.
1573 * emulparams/shlelf64_nbsd.sh: New file.
1575 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1577 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1579 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1581 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1582 C++ constructors/destructors, loosely based on the m68hc11 port.
1584 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1586 * Makefile.in: Regenerate.
1587 * aclocal.m4: Regenerate.
1588 * config.in: Regenerate.
1589 * configure: Regenerate.
1591 2002-05-31 Graeme Peterson <gp@qnx.com>
1593 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1594 (ei386nto.c): Add rule.
1595 * Makefile.in: Regenerate.
1596 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1597 * emulparams/i386nto.sh: New file.
1599 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1601 * NEWS: Add entry for VAX ELF support.
1603 2002-05-29 Matt Thomas <matt@3am-software.com>
1604 Jason Thorpe <thorpej@wasabisystems.com>
1606 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1608 (evaxnbsd.c): New rules.
1609 * Makefile.in: Regenerate.
1610 * configure.tgt (vax-*-netbsdelf*)
1612 (vax-*-netbsd*): New targets.
1613 * emulparams/elf32vax.sh: New file.
1614 * emulparams/vaxnbsd.sh: New file.
1616 2002-05-29 Adam Nemet <anemet@lnxw.com>
1618 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1619 bfd_for_interwork, instead add glue sections to each input bfd.
1620 (bfd_for_interwork): New global.
1621 (arm_elf_set_bfd_for_interworking): New function.
1622 (arm_elf_before_allocation): Use it.
1624 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1626 * Makefile.am: Add DLX make target.
1627 * configure.tgt: Add DLX configuration.
1628 * Makefile.in: Regenerate.
1629 * emulparams/elf32_dlx.sh: New file
1630 * scripttempl/dlx.sc: New file
1632 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1634 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1635 * Makefile.in: Regenerate.
1636 * emulparams/elf_chaos.sh: Use elf_chaos script.
1637 * scripttempl/elf_chaos.sc: New file.
1639 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1641 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1642 addresses and regions from here...
1643 (lang_get_regions): ...to this new function.
1644 (lang_leave_output_section_statement): Use lang_get_regions.
1645 (lang_leave_overlay): Likewise.
1646 * mri.c (mri_draw_tree): Pass null as last argument to
1647 lang_leave_output_section_statement.
1648 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1649 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1650 * emultempl/pe.em (gld*_place_orphan): Likewise.
1652 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1654 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1656 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1658 * ldemul.c: Fix formatting.
1659 * ldfile.c: Likewise.
1660 * pe-dll.c: Likewise.
1661 * pe-dll.h: Likewise.
1663 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1665 * ldlang.c (lang_process): Formatting, grammar.
1667 * ldlex.l: Use #include "" instead of <> for local header files.
1669 2002-05-24 TAMURA Kent <kent@netbsd.org>
1671 * configure.tgt: Add a target for i386-netbsdpe.
1673 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1675 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1676 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1677 output section if necessary. Handle .tbss.
1678 (lang_size_sections): Clear _raw_size for .tbss section
1679 (it allocates space in PT_TLS segment only).
1680 * ldwrite.c (build_link_order): Build link order for .tbss too.
1682 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1684 * configure.in: Correct spelling of AC_PREREQ.
1686 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1688 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1690 (autofilter_objlist): Add crtbegin.o, crtend.o.
1692 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1694 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1695 (longopts): Add new option --exclude-libs.
1696 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1697 (gld_${EMULATION_NAME}_parse_args): Use it.
1698 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1699 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1700 from whole archives.
1701 (pe_dll_add_excludes): Set excludes->type.
1702 (auto_export): Add new variable libname and set to archive basename if
1703 abfd. Use it when filtering default and user-specified libarary
1704 excludes. Let string "ALL" mean all libs when filtering user-specified
1706 * ld.texinfo: Document --exclude-libs.
1708 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1710 * ldemul.c (ldemul_new_vers_pattern): New function.
1711 * ldemul.h (ldemul_new_vers_pattern): Declare.
1712 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1713 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1714 * emultempl/ppc64elf.em (dotsyms): New static var.
1715 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1716 (LDEMUL_NEW_VERS_PATTERN): Define.
1717 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1718 (PARSE_AND_LIST_LONGOPTS): Likewise.
1719 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1720 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1722 * emultempl/armcoff.em: Likewise.
1723 * emultempl/armelf_oabi.em: Likewise.
1724 * emultempl/beos.em: Likewise.
1725 * emultempl/elf32.em: Likewise.
1726 * emultempl/generic.em: Likewise.
1727 * emultempl/gld960.em: Likewise.
1728 * emultempl/gld960c.em: Likewise.
1729 * emultempl/linux.em: Likewise.
1730 * emultempl/lnk960.em: Likewise.
1731 * emultempl/m68kcoff.em: Likewise.
1732 * emultempl/mipsecoff.em: Likewise.
1733 * emultempl/pe.em: Likewise.
1734 * emultempl/sunos.em: Likewise.
1735 * emultempl/ticoff.em: Likewise.
1736 * emultempl/vanilla.em: Likewise.
1738 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1740 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1741 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1742 (LIB_SEARCH_DIRS): No need to use "tr".
1743 (COMPILE_IN): Only set for native targets.
1744 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1745 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1746 * configure.tgt (powerpc*): Set tdir_*.
1747 (powerpcle*): Correct targ_extra_emuls.
1748 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1749 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1751 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1753 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1754 calling lang_add_entry.
1756 2002-05-21 H.J. Lu (hjl@gnu.org)
1758 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1760 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1762 * ld.texinfo: Updated for --allow-multiple-definition and
1765 * ldmain.c (main): Initialize the allow_multiple_definition
1768 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1769 (ld_options): Add --allow-multiple-definition.
1770 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1772 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1774 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1775 (earmelfb_nbsd.c): New rule.
1776 * Makefile.in: Regenerate.
1777 * configure.tgt (armeb-*-netbsdelf*): New target.
1778 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1779 (arm-*-netbsd*): Likewise.
1780 * emulparams/armelfb_nbsd.sh: New file.
1782 2002-05-18 Tom Rix <trix@redhat.com>
1784 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1787 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1789 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1790 * Makefile.in: Regenerate.
1791 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1793 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1795 * emulparams/avr1.sh: New file.
1796 * emulparams/avr2.sh: New file.
1797 * emulparams/avr3.sh: New file.
1798 * emulparams/avr4.sh: New file.
1799 * emulparams/avr5.sh: New file.
1800 * scripttempl/avr.sc: New file.
1802 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1804 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1805 (lang_place_orphans): Abort if just_syms_flag.
1807 2002-05-10 Tom Rix <trix@redhat.com>
1809 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1810 architecture and machine information in the output bfd.
1811 (gld*_before_parse): Remove old arch and machine code.
1812 (choose_target): Rename to gld*_choose_target.
1813 (rtld): Change type to int.
1814 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1815 objects in XCOFF archives.
1816 * ldfile.h: Update copyright date.
1818 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1820 * ldmain.c (main): Enable -z combreloc by default.
1822 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1824 * Makefile.am: Honour DESTDIR.
1825 * Makefile.in: Regenerate.
1827 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1829 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1830 (lang_enter_overlay): Remove the last two parameters.
1831 (lang_leave_overlay): Take them here instead.
1832 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1833 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1834 than lang_enter_overlay.
1835 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1836 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1837 (lang_size_sections_1): Evaluate it.
1838 (lang_leave_output_section_statement): Rework LMA lookup.
1839 (overlay_lma, overlay_nocrossrefs): Remove.
1840 (lang_enter_overlay): Remove LMA and crossref arguments.
1841 (lang_enter_overlay_section): Don't set the LMA here.
1842 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1843 assignment to the last section's update_dot_tree. Unconditionally
1844 use the load and run-time regions specified in the OVERLAY statement.
1845 Likewise the first section's LMA. Only set the other sections' LMAs
1846 when no load region is given.
1848 2002-05-06 Nick Clifton <nickc@redhat.com>
1850 * po/sv.po: New translation.
1852 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1854 * emultempl/hppaelf.em (build_section_lists): New function.
1855 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1856 and build_section_lists.
1858 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1860 * ld.h: Fix formatting.
1861 * ldexp.c: Likewise.
1862 * ldfile.c: Likewise.
1863 * ldlang.c: Likewise.
1864 * ldmain.c: Likewise.
1865 * lexsup.c: Likewise.
1866 * pe-dll.c: Likewise.
1868 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1870 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1871 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1872 (build_section_lists): Do output_section tests here.
1874 2002-04-30 Tom Rix <trix@redhat.com>
1876 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1878 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1880 Long branch stubs, multiple stub sections.
1881 * emultempl/ppc64elf.em: Include ldctor.h.
1882 (stub_file): New var.
1883 (group_size): New var.
1884 (ppc_create_output_section_statements): New function.
1885 (struct hook_stub_info): New.
1886 (hook_in_stub): New function.
1887 (ppc_add_stub_section): New function.
1888 (ppc_layout_sections_again): New function.
1889 (build_section_lists): New function.
1890 (gld${EMULATION_NAME}_finish): Rewrite.
1891 (real_func): New var.
1892 (ppc_for_each_input_file_wrapper): New function.
1893 (ppc_lang_for_each_input_file): New function.
1894 (lang_for_each_input_file): Define.
1895 (PARSE_AND_LIST_PROLOGUE): Define.
1896 (PARSE_AND_LIST_LONGOPTS): Define.
1897 (PARSE_AND_LIST_OPTIONS): Define.
1898 (PARSE_AND_LIST_ARGS_CASES): Define.
1899 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1901 2002-04-30 Tom Rix <trix@redhat.com>
1903 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1904 -blibpath, -bnolibpath support.
1906 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1908 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1909 (eelf32ppcwindiss.c): New target.
1910 * Makefile.in: Regenerated.
1911 * configure.tgt: Add support for powerpc-*-windiss.
1912 * emulparams/elf32ppcwindiss.sh: New file.
1914 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1916 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1917 * ldexp.c (exp_print_token): Add "infix_p" argument.
1918 (exp_print_tree): Update accordingly.
1920 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1922 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1923 * Makefile.in: Regenerate.
1924 * mpw-elfmips.c: Delete.
1925 * mpw-eppcmac.c: Delete.
1926 * mpw-esh.c: Delete.
1927 * mpw-idtmips.c: Delete.
1929 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1931 * emulparams/shelf32.sh (MACHINE): Now sh5.
1933 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1935 * ldgram.y: Fix syntax warning.
1937 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1939 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1940 to prevent "-n" from being taken as an abbreviation for
1941 "--no-pipeline-knowledge".
1943 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1945 * ldlang.c (lang_size_sections_1): Don't complain about
1946 SEC_NEVER_LOAD sections having no memory region specified.
1948 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1950 2002-04-07 matthew green <mrg@redhat.com>
1952 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1954 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1956 * dep-in.sed: Cope with absolute paths.
1957 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1959 * Makefile.in: Regenerate.
1961 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1963 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1965 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1967 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1968 is smaller than maximum, round dot up to common page boundary.
1970 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1972 * configure.host: Set up for generic hosts first, then tweak as
1973 necessary in more specific targets.
1974 (HOSTING_LIBS): Include libgcc_eh.a if found.
1976 2002-03-23 Andreas Jaeger <aj@suse.de>
1978 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1980 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1982 * Makefile.am: Run "make dep-am".
1983 * Makefile.in: Regenerate.
1985 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1987 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1989 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1991 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1992 add the symbol to the linker hash table immediately.
1993 (lang_place_undefineds): Split symbol creation out..
1994 (insert_undefined): ..to here.
1996 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1998 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1999 the contents of the buffer returned from basename function will are
2000 getting overwritten while still being used.
2002 2002-03-18 Jan Hubicka <jh@suse.cz>
2003 Andreas Jaeger <aj@suse.de>
2004 Andreas Schwab <schwab@suse.de>
2006 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2007 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2008 set libraries to default to lib64 paths.
2010 2002-03-18 Tom Rix <trix@redhat.com>
2012 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2013 * configure.tgt : Same.
2014 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2015 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2016 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2017 emulation parameters for better -b32, -b64 support.
2018 * emulparms/aixrs6.sh : Same.
2019 * emulparms/ppcmacos.sh : Same.
2020 * emultempl/aix.em (choose_target) : Use new emulation parameters
2021 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2022 * Makefile.in : Regenerate.
2024 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2026 * po/fr.po: Updated version.
2028 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2030 * ldmain.c (main): Move .text readonly flag fudges from here..
2031 * ldlang.c (lang_process): ..to here.
2033 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2035 * ldlang.c (lang_check): Remove the word size check added in last
2036 change. Treat emitrelocations case as for relocatable links.
2038 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2040 * po/fr.po: Updated version.
2042 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2044 * ldlang.c (lang_check): Do relocatable link checks first, so that
2045 warn_mismatch can't override. Check compatible and word size too.
2047 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2049 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2051 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2053 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2056 2002-03-04 H.J. Lu <hjl@gnu.org>
2058 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2059 .fini_array in the data segment.
2061 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2063 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2065 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2067 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2068 .init_array, and .fini_array.
2070 2002-02-20 Andreas Schwab <schwab@suse.de>
2072 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2073 .IA64_unwind* in a relocatable link.
2075 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2077 * NEWS: Mark 2.12 branch.
2079 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2081 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2082 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2084 2002-02-18 Tom Rix <trix@redhat.com>
2086 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2087 (gld*_before_allocation): Same.
2088 (gld*_create_output_section_statements): Generate
2089 __rtinit if run time linking. Add librtl.a to the link.
2090 (gld*_read_file): Clean.
2092 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2094 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2096 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2098 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2099 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2100 and eelf64alpha_fbsd.
2101 * Makefile.in: Regenerate.
2102 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2103 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2104 use a FreeBSD-specific emulation rather than the psABI one.
2105 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2106 for all FreeBSD ELF systems.
2107 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2109 * emulparams/elf32ppc_fbsd.sh: Likewise.
2110 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2111 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2112 * emulparams/elf64alpha_fbsd.sh: Likewise.
2113 * emulparams/elf_i386_fbsd.sh: Likewise.
2114 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2116 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2118 * po/tr.po: Updated version.
2120 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2122 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2125 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2127 * emultempl/mmo.em (mmo_after_open): Don't call
2128 _bfd_mmix_check_all_relocs when producing ELF output.
2130 2002-02-15 Richard Henderson <rth@redhat.com>
2132 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2133 definition. Emit a unop+nop pair.
2135 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2137 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2138 for presence of .MMIX.reg_contents.linker_allocated before early
2141 * NEWS: Mention support for MMIX.
2143 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2145 Support arbitrary length fill patterns.
2146 * ld.texinfo (Output Section Fill): Describe fill expressions.
2147 (FILL): Refer to the above.
2148 * ldexp.h (etree_value_type): Add "str" field.
2149 (union etree_union): Add "str" to "value" struct.
2150 (exp_bigintop): Declare.
2151 (exp_get_fill): Declare.
2152 * ldexp.c: Include "safe-ctype.h".
2153 (exp_intop): Set value.str to NULL.
2154 (exp_bigintop): New function.
2155 (new_rel): Pass in "str", and set new.str from it.
2156 (new_rel_from_section): Set new.str to NULL.
2157 (fold_name): Adjust calls to new_rel.
2158 (exp_fold_tree): Likewise.
2159 (exp_get_fill): New function.
2160 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2161 (INT): Returns a "bigint". Adjust all code handling INTs.
2162 (fill_opt): Returns a "fill".
2163 (fill_exp): Split out of fill_opt, use for FILL.
2164 * ldlang.h (struct _fill_type): New.
2165 (fill_type): Move typedef to ldexp.h.
2166 (lang_output_section_statement_type): "fill" is now a pointer.
2167 (lang_fill_statement_type): Likewise.
2168 (lang_padding_statement_type): Likewise.
2169 (lang_add_fill): Now takes a "fill_type *" param.
2170 (lang_leave_output_section_statement): Likewise.
2171 (lang_do_assignments): Likewise.
2172 (lang_size_sections): Likewise.
2173 (lang_leave_overlay_section): Likewise.
2174 (lang_leave_overlay): Likewise.
2175 * ldlang.c: Include ldgram.h after ldexp.h.
2176 (lang_output_section_statement_lookup): Adjust for fill_type change.
2177 (print_fill_statement): Likewise.
2178 (print_padding_statement): Likewise.
2179 (insert_pad): Now takes a "fill_type *" arg.
2180 (size_input_section): Likewise.
2181 (lang_size_sections_1): Likewise.
2182 (lang_size_sections): Likewise.
2183 (lang_do_assignments): Likewise.
2184 (lang_add_fill): Likewise.
2185 (lang_leave_output_section_statement): Likewise.
2186 (lang_leave_overlay_section): Likewise.
2187 (lang_leave_overlay): Likewise.
2188 Adjust all callers of the above function.
2189 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2190 starting with "0X" as well as "0x". Return bigint.str for hex
2191 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2192 Always use base 16 for numbers starting with "$".
2193 * ldmain.c: Include ldgram.h after ldexp.h.
2194 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2195 of bfd_fill_link_order.
2196 * pe-dll.c: Adjust lang_do_assignments calls.
2197 * emultempl/elf32.em: Likewise.
2198 * emultempl/hppaelf.em: Likewise.
2199 * emultempl/ppc64elf.em: Likewise.
2200 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2201 lang_add_assignment call.
2202 * emultempl/pe.em: Likewise.
2204 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2206 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2207 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2208 the pattern in question is not a regexp.
2209 * ldlang.c: Likewise.
2210 * ldlang.h: Likewise.
2211 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2213 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2215 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2216 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2217 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2218 * ldexp.c (exp_data_seg): New variable.
2219 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2220 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2221 (exp_fold_tree): Handle DATA_SEGMENT_END.
2222 Pass allocation_done when recursing instead of hardcoding
2223 lang_allocating_phase_enum.
2224 * ldexp.h (exp_data_seg): New.
2225 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2226 (lang_size_sections): New.
2227 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2228 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2229 if COMMONPAGESIZE is defined.
2230 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2231 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2232 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2233 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2234 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2237 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2239 * Makefile.in: Regenerate.
2241 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2243 * lexsup.c: Remove strtoul declaration.
2245 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2247 * ldmain.c: Add prototype for main ().
2248 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2249 * emultempl/lnk960.em (lnk960_choose_target): Function should
2252 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2254 * ldlang.c (entry_section): New initialised variable.
2255 (lang_finish): Use it.
2256 * ldlang.h (entry_section): Declare.
2257 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2258 entry_section to ".opd".
2260 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2262 * ld.texinfo (Options): Add back in -nostdlib documentation,
2263 which had been inadvertently removed.
2265 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2267 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2268 register section vma to a sane value after emitting error. Make
2269 fatal conditions cause program exit when emitting message.
2271 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2273 * configure.tgt: Add or32-*-rtems target.
2275 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2277 Contribute sh64-elf.
2278 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2279 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2280 in OTHER_RELOCATABLE_SECTIONS.
2281 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2282 * emulparams/shelf32.sh (STACK_ADDR): Define.
2283 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2284 (OTHER_SECTIONS): this. Removed stack settings.
2285 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2286 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2287 2001-03-12 DJ Delorie <dj@redhat.com>
2288 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2289 relaxing if any shmedia or mixed sections are found.
2290 2001-03-07 DJ Delorie <dj@redhat.com>
2291 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2292 einfo. Gracefully decline to output to non-elf formats.
2293 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2294 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2295 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2296 * emulparams/shelf32.sh: Ditto.
2297 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2298 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2300 2001-01-10 Ben Elliston <bje@redhat.com>
2301 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2302 non-portable shell constructs. From Hans-Peter Nilsson.
2303 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2304 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2305 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2306 dependencies to the shell script include chain.
2307 * Makefile.in: Regenerate.
2308 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2309 * emultempl/sh64elf.em: Update and tweak comments.
2310 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2311 make a .cranges section SEC_IN_MEMORY.
2312 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2313 * emultempl/sh64elf.em
2314 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2315 .cranges section found to be necessary; continue and set stored
2316 section contents flags for sections with non-mixed contents.
2317 Use a struct sh64_section_data container and sh64_elf_section_data
2318 to store contents-type flags.
2319 Remove unused update of "isec".
2320 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2321 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2322 access contents-type flags. Assert that the associated container
2323 is initialized. Use that container, not elf_gp_size, to hold size
2324 of linker-generated cranges contents.
2325 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2326 * emultempl/sh64elf.em
2327 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2328 there's already a .cranges section. When section flag difference
2329 is found, don't NULL-check cranges a second time. Tweak comments.
2330 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2331 merging, not max size, as size of ld-generated .cranges contents.
2332 Don't set ELF section flags in output section. When checking for
2333 needed .cranges descriptors, don't use a variable; compare
2334 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2336 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2337 * emultempl/sh64elf.em: New file.
2338 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2339 * Makefile.in: Regenerate.
2340 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2341 (OTHER_RELOCATING_SECTIONS): Ditto.
2342 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2343 * emulparams/shlelf32.sh: Stub out all settings except
2344 OUTPUT_FORMAT. Source shelf32.sh.
2345 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2346 OTHER_RELOCATING_SECTIONS.
2347 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2348 * emulparams/shlelf64.sh: Stub out all settings except
2349 OUTPUT_FORMAT. Source shelf64.sh.
2350 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2351 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2353 (DATA_START_SYMBOLS): Define, provide ___data.
2354 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2355 for consecutive .data section.
2356 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2357 section after .data section.
2358 * emulparams/shlelf64.sh: Ditto.
2359 * emulparams/shelf32.sh: Ditto.
2360 (ALIGNMENT): Define to 8.
2361 * emulparams/shelf32.sh: Ditto.
2362 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2363 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2364 built-in linker scripts.
2365 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2366 * emulparams/shlelf64.sh: New.
2367 * emulparams/shelf64.sh: New.
2368 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2370 * Makefile.am: Add support for shlelf64 and shelf64.
2371 * Makefile.in: Regenerate.
2372 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2373 * configure.tgt (sh64-*-elf*): Add shelf as default.
2374 Add shlelf to targ_extra_emuls.
2375 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2376 * emulparams/shelf32.sh: New file.
2377 * emulparams/shlelf32.sh: New file.
2378 * Makefile.am: Add support for shlelf32 and shelf32.
2379 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2380 * Makefile.in: Regenerate.
2382 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2384 * ldlang.c (lang_reset_memory_regions): Rename from
2385 reset_memory_regions. Change all callers. Make public.
2386 * ldlang.h (lang_reset_memory_regions): Prototype.
2387 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2388 lang_reset_memory_regions before lang_size_sections.
2389 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2390 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2392 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2394 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2395 arithmetic when checking for too many global registers.
2397 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2399 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2400 (ehppanbsd.c): New rule.
2401 * Makefile.in: Regenerate.
2402 * configure.tgt (hppa*-*-netbsd*): New target.
2403 * emulparams/hppalinux.sh: Add comment to check other files
2404 that source this file it is modified, and list which
2406 * emulparams/hppanbsd.sh: New file.
2408 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2410 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2413 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2415 Support on-demand global register allocation from
2416 R_MMIX_BASE_PLUS_OFFSET relocs.
2417 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2418 mmix_set_reg_section_vma. Call
2419 _bfd_mmix_finalize_linker_allocated_gregs.
2420 (mmix_before_allocation): New function.
2421 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2422 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2423 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2424 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2425 before .MMIX.reg_contents.
2426 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2427 (mmo_after_open): New function.
2428 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2429 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2430 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2432 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2434 * emulparams/or32.sh: New file.
2435 * emulparams/or32elf.sh: New file.
2436 * scripttempl/or32.sc: New file.
2437 * configure.tgt : Add support for or32.
2438 * configure: Regenerate
2439 * Makefile.am: Add support for or32.
2440 * Makefile.in: Regenerate.
2441 * NEWS: Mention support for or32.
2442 * po/ld.pot: Regenerate.
2444 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2445 Mitch Lichtenberg <mpl@broadcom.com>
2447 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2448 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2449 reloc creation (ld --embedded-relocs).
2451 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2453 * configure: Regenerated.
2455 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2457 * Makefile.am (install): Depend on install-info.
2458 * Makefile.in: Regenerate.
2460 2002-01-26 Christian Rose <menthos@menthos.com>
2462 * ldmain.c (main): Use full sentences to ease translation.
2464 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2466 * po/fr.po: Updated version.
2468 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2470 * po/es.po: Updated version.
2472 2002-01-25 Andreas Jaeger <aj@suse.de>
2474 * ldlex.l (yy_input): Correct error check.
2476 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2478 * ldmisc.c (demangle): Put back dots when string not demangled.
2480 2002-01-22 Richard Henderson <rth@redhat.com>
2482 * emulparams/elf64alpha.sh (NOP): Use unop.
2484 2002-01-21 Andreas Jaeger <aj@suse.de>
2486 * ldlex.l: Use fread instead of read.
2488 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2490 * configure.tgt (ia64-*-netbsd*): New target.
2492 2002-01-21 H.J. Lu <hjl@gnu.org>
2494 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2496 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2498 2002-01-18 Andreas Jaeger <aj@suse.de>
2500 * ldver.c (ldversion): Update year.
2502 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2504 * po/ld.pot: Regenerate.
2506 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2508 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2509 * Makefile.in: Regenerate.
2510 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2511 * emultempl/ppc64elf.em: New file.
2513 2002-01-15 DJ Delorie <dj@redhat.com>
2515 * scripttempl/pe.sc: Add support for constructor priorities.
2517 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2519 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2520 * emulparams/avr23xx.sh: Likewise.
2521 * emulparams/avr4433.sh: Likewise.
2522 * emulparams/avr44x4.sh: Likewise.
2523 * emulparams/avr85xx.sh: Likewise.
2524 * emulparams/avrmega103.sh: Likewise.
2525 * emulparams/avrmega161.sh: Likewise.
2526 * emulparams/avrmega603.sh: Likewise.
2527 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2529 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2531 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2532 archive is excluded.
2534 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2536 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2537 (eshelf_nbsd.c): New rule.
2538 (eshlelf_nbsd.c): New rule.
2539 * Makefile.in: Regenerate.
2540 * configure.tgt (sh*le-*-netbsdelf*): New target.
2541 (sh*-*-netbsdelf*): New target.
2542 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2543 * ld/emulparams/shelf_nbsd.sh: New emulation.
2544 * ld/emulparams/shlelf_nbsd.sh: New emulation.
2546 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2548 * po/es.po: New file: Spanish translation.
2549 * configure.in (ALL_LINGUAS): Add es.
2550 * configure: Regenerate.
2552 2002-01-06 John Marshall <jmarshall@acm.org>
2554 * ld.texinfo: Note that --emit-relocs is currently only
2555 implemented for ELF.
2557 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2559 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2560 of bfd_section_list_remove and bfd_section_list_insert macros.
2561 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2562 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2564 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2566 * configure.tgt (x86_64-*-netbsd*): New target.
2568 2001-12-21 Tom Rix <trix@redhat.com>
2570 (gld*_create_output_section_statements): New function.
2571 For -binitfini support.
2572 * emultempl/aix.em (gld*_before_parse): Fix comment.
2573 * emultempl/aix.em (gld*_parse_args): Fix comment.
2575 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2577 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2579 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2581 * configure.tgt (arm-*-netbsdelf*): Add target.
2582 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2583 * emulparams/armelf_nbsd.sh: Added.
2584 * Makefile.am: Add rules for earmelf_nbsd.
2585 * Makefile.in: Regenerate.
2587 2001-12-19 Andreas Jaeger <aj@suse.de>,
2588 Susanne Oberhauser <froh@suse.de>
2590 * configure.host: Add rules for x86_64-*linux-gnu. Change
2591 s390x-linux entry to use gcc to report configuration, replace gcc
2592 with $CC in s390-linux
2594 2001-12-19 Andreas Jaeger <aj@suse.de>
2596 * ld.texinfo (VERSION): Fix markup.
2598 2001-12-18 matthew green <mrg@eterna.com.au>
2600 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2601 (m68kelfnbsd.c): New rule.
2602 * Makefile.in: Regenerate.
2603 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2604 (m68*-*-netbsd*4k*): .. this.
2605 (m68*-*-netbsdelf*): New target.
2606 (m68*-*-netbsd*): Also include ELF support.
2607 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2608 * emulparams/m68kelfnbsd.sh: New emulation.
2610 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2612 * ldgram.y (vers_node): Support anonymous version tags.
2613 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2614 tag is not defined together with non-anonymous versions.
2615 * ld.texinfo: Document it.
2617 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2619 * po/tr.po: New file: Turkish translation.
2620 * configure.in (ALL_LINGUAS): Add tr.
2621 * configure: Regenerate.
2623 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2625 * Makefile.am: Add rules for eelf64alpha_nbsd.
2626 * Makefile.in: Regenerate.
2627 * configure.tgt (alpha*-*-netbsd*): Set
2628 targ_emul to elf64alpha_nbsd.
2629 * emulparams/elf64alpha_nbsd.sh: Added.
2631 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2633 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2634 section_tail when fiddling with section list.
2635 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2636 broken into separate strings to make translation easier.
2637 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2638 fiddling with section list.
2639 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2641 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2643 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2645 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2647 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2649 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2651 * emultempl/elf32.em (finish): Supply output_bfd
2652 to bfd_elf*_discard_info.
2653 (OPTION_EH_FRAME_HDR): Define.
2654 (longopts): Add --eh-frame-hdr.
2655 (parse_args): Handle it.
2656 (list_options): Add --eh-frame-hdr to help.
2657 * emultempl/hppaelf.em (finish): Supply output_bfd
2658 to bfd_elf*_discard_info.
2659 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2661 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2663 * lexsup.c (parse_args): Don't pass shortopts to second call to
2664 getopt functions. Restore optind rather than decrementing before
2665 second call. Remove errind as it now duplicates last_optind.
2667 2001-12-11 Christopher Faylor <cgf@redhat.com>
2669 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2671 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2672 Richard Henderson <rth@redhat.com>
2674 * Makefile.am: Add support for xstormy16.
2675 * configure.tgt: Add support for xstormy16.
2676 * Makefile.in: Regenerate.
2677 * emulparams/elf32xstormy16.sh: New file.
2678 * scripttempl/xstormy16.sc: New file.
2680 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2682 * Makefile.in (LIB_PATH): Make configurable.
2683 (GENSCRIPTS): Set LIB_PATH in environment.
2684 * configure.in: Substitute LIB_PATH.
2685 * configure: Regenerate.
2686 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2687 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2689 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2691 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2692 describing the -N option so that it is easier to translate into
2695 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2697 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2698 statements describing a single option with a single, newline
2699 escaped fprintf. This allows better translation into other
2702 * ldmain.c (add_archive_element): Combine multiple strings
2703 into a single string to permit better translation into other
2706 2001-12-05 Tom Rix <trix@redhat.com>
2708 * Makefile.am: Remove eaixppc64.
2709 * Makefile.in: Regenerate.
2711 2001-12-04 Tom Rix <trix@redhat.com>
2713 * emultempl/aix.em (choose_target): Change default target to
2714 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2716 (gld*_read_file): Fix typo.
2717 (change_symbol_mode): Add prototype.
2720 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2721 * emulparams/aixrs6.sh : Same.
2722 * emulparams/ppcmacos.sh : Same.
2723 * emulparams/aixppc64.sh : Delete file.
2724 * emultempl/aix.em : Formatting changes.
2726 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2728 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2729 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2731 (OTHER_END_SYMBOLS): Fix formatting.
2732 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2733 (OTHER_END_SYMBOLS): Fix formatting.
2735 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2737 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2739 2001-12-02 Tom Rix <trix@redhat.com>
2741 * configure.tgt : Remove eaixppc64 emulations.
2742 * Makefile.in : Remove eaixppc64.c
2743 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2744 (ldemul_default_target): Same.
2745 * emultempl/gld960.em (gld960_choose_target): Same.
2746 * emultempl/gld960c.em (gld960_choose_target): Same.
2747 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2748 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2749 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2750 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2751 * emultempl/aix.em (choose_target): New function. Handle emulation of
2754 2001-11-27 H.J. Lu <hjl@gnu.org>
2756 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2757 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2758 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2759 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2760 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2761 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2762 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2763 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2765 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2768 (REL_SDATA): Likewise.
2769 (REL_SBSS): Likewise.
2770 (REL_SDATA2): Likewise.
2771 (REL_SBSS2): Likewise.
2772 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2775 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2777 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2779 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2781 2001-11-22 H.J. Lu <hjl@gnu.org>
2783 * Makefile.in: Regenerated with automake based on automake
2784 1.4-8 in RedHat 7.1.
2786 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2788 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2789 (config.status): Delete rule.
2790 Add extra dependencies to cover sourced emulparams files.
2791 * Makefile.in: Regenerate.
2793 * scripttempl/elf.sc: Order <section>, <section>.* and
2794 corresponding linkonce sections as seen in input files.
2795 Formatting fixes. Zero vma of all sections if not relocating.
2796 (STACK): Define and insert if STACK_ADDR defined.
2797 (OTHER_RELOCATING_SECTIONS): Delete.
2798 (OTHER_END_SYMBOLS): Define.
2799 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2800 (OTHER_READWRITE_SECTIONS): Likewise.
2801 (OTHER_GOT_SECTIONS): Likewise.
2802 (OTHER_SDATA_SECTIONS): Likewise.
2803 (OTHER_BSS_SECTIONS): Likewise.
2804 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2805 (OTHER_READWRITE_SECTIONS): Likewise.
2806 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2807 (OTHER_READWRITE_SECTIONS): Likewise
2809 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2810 (STACK_ADDR): Define.
2811 * emulparams/armelf_oabi.sh: As for armelf.sh.
2812 * emulparams/elf32mcore.sh: As for armelf.sh.
2813 * emulparams/h8300elf.sh: As for armelf.sh.
2814 * emulparams/mn10200.sh: As for armelf.sh.
2815 * emulparams/shelf.sh: As for armelf.sh.
2817 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2818 (OTHER_END_SYMBOLS): Define.
2819 * emulparams/m32relf.sh: As for elf32fr30.sh.
2820 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2821 * emulparams/h8300self.sh: As for elf32fr30.sh.
2823 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2824 defines with RELOCATING test.
2825 (OTHER_SDATA_SECTIONS): Likewise.
2826 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2827 (OTHER_END_SYMBOLS): ..this.
2828 * emulparams/crislinux.sh: As for criself.sh.
2830 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2832 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2833 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2834 normal and linkonce sections as seen in input files.
2835 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2836 (TEXT_DYNAMIC): Likewise.
2837 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2838 (OTHER_SDATA_SECTIONS): Likewise.
2839 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2840 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2841 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2842 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2843 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2844 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2845 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2846 sections as seen in input files.
2847 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2848 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2850 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2851 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2852 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2853 (OTHER_SECTIONS): Instead, use this..
2854 (OTHER_END_SYMBOLS): ..and this.
2856 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2857 * emulparams/elf32bsmip.sh: Likewise.
2858 * emulparams/elf32btsmip.sh: Likewise.
2859 * emulparams/elf32ebmip.sh: Likewise.
2860 * emulparams/elf32lmip.sh: Likewise.
2861 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2862 * emulparams/elf32lsmip.sh: Likewise.
2863 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2864 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2865 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2866 * emulparams/elf64btsmip.sh: Likewise.
2867 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2868 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2869 * emulparams/elf32ppclinux.sh: Likewise.
2870 * emulparams/elf32ppcsim.sh: Likewise.
2871 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2872 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2873 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2874 * emulparams/h8300self.sh: Likewise.
2875 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2876 * emulparams/sh.sh: Comment.
2877 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2878 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2879 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2881 2001-11-21 David Heine <dlheine@tensilica.com>
2882 Alan Modra <amodra@bigpond.net.au>
2884 * ldlang.c (map_input_to_output_sections): Replace "break"
2885 accidentally removed with 2001-08-03 change.
2886 (lang_gc_sections_1): Likewise.
2888 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2890 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2892 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2894 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2895 of false when calling lang_size_sections.
2896 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2898 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2900 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2901 function when LDEMUL_FINISH isn't set to the same name. Don't
2902 call ${LDEMUL_FINISH}.
2903 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2904 * emultempl/armelf.em (arm_elf_finish): Call
2905 gld${EMULATION_NAME}_finish.
2906 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2907 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2908 hppaelf_layout_sections_again if necessary.
2909 (need_laying_out): New var.
2910 (hppaelf_layaout_sections_again): Rename to
2911 hppaelf_layout_sections_again. Clear need_laying_out.
2912 (PARSE_AND_LIST_OPTIONS): Format text.
2914 2001-11-14 H.J. Lu <hjl@gnu.org>
2916 * emultempl/armelf.em (arm_elf_finish): Renamed from
2917 gld${EMULATION_NAME}_finish.
2918 (LDEMUL_FINISH): Set to arm_elf_finish.
2920 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2922 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2923 (struct ld_emulation_xfer_struct): Use it.
2925 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2927 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2928 additional symbols referenced by newer crt0.o files from HP.
2930 2001-11-12 Anthony Green <green@redhat.com>
2932 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2934 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2936 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2937 * Makefile.in: Regenerate.
2939 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2941 * ld.texinfo: Use @command for commands, @option for options.
2942 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2944 * Makefile.in: Rebuild.
2946 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2948 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2949 Add support for targets.
2951 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2953 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2954 * configure: Regernate.
2955 * po/fr.po: New file.
2956 * po/sv.po: New file.
2958 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2960 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2961 as little endian default and to support big endian.
2963 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2965 * ld.texinfo (Options): Document new option, -nostdlib.
2966 * lexsup.c (OPTION_NOSTDLIB): New definition.
2967 (ld_options): Add entry for "nostdlib".
2968 (parse_args): Handle OPTIONS_NOSTDLIB.
2969 * ldfile.c (ldfile_add_library_path): Don't add directories
2970 to the search path if they weren't specified on the command line
2971 and -nostdlib was specified.
2972 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2974 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2976 * lexsup.c (parse_args): Prevent infinite parsing loop when
2977 "-rpath.a" is specified on the command line.
2978 Replace calls to fprintf with calls to einfo.
2980 2001-10-31 John Marshall <jmarshall@acm.org>
2982 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2983 appear only once across all the linker scripts involved in a link
2984 invocation no longer applies. Make the documentation reflect
2987 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2989 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2991 (sh-*-linux*): Added targ_extra_libpath.
2993 2001-10-31 David Heine <dlheine@tensilica.com>
2995 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2996 for padding statements.
2998 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3000 * configure.tgt (mmix-*-*): New target.
3001 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3002 Add dependencies to match.
3003 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3004 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3005 scripttempl/mmo.sc: New files.
3006 * gen-doc.texi: @set MMIX.
3007 * ld.texinfo: Ditto.
3008 [MMIX] Add MMIX node.
3009 * Makefile.in: Regenerate.
3011 2001-10-29 Kazu Hirata <kazu@hxi.com>
3013 * ldlang.c: Fix a comment typo.
3015 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3017 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3018 entries, and match *-*-linux*.
3020 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3022 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3023 with ldlex_script, ldlex_popstate.
3024 (ifile_p1): Likewise.
3025 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3027 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3028 to 1. Don't BEGIN(SCRIPT).
3029 (lex_redirect): Similarly.
3030 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3032 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3034 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3035 __EH_FRAME_END__ and accept eh frames into data section.
3036 Add ctor and dtor sections.
3038 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3040 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3041 (auto-export): Fix indentation.
3043 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3045 * pe-dll.c (autofilter_objectlist): Add startup objects
3047 (auto-export): Constify char * p.
3048 Extract file basename and use strcmp rather than ststr
3051 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3053 * ldmain.c (get_emulation): Improve comment about the handling
3056 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3058 * po/POTFILES.in: Regenerate.
3060 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3062 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3063 -z nocopyreloc and -z nocombreloc usage strings.
3065 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3067 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3070 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3072 * scripttempl/armaout.sc: Place .bss section after end of aligned
3073 data section to match behaviour of aout code in constructrion of
3076 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3078 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3079 startup files for mingw32 dlls to list.
3081 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3083 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3085 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3087 * configure.tgt (targ): Add arm9e-*-elf.
3089 2001-10-05 H.J. Lu <hjl@gnu.org>
3091 * genscripts.sh: Fix a typo in the last change.
3093 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3095 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3096 -z nocombreloc in usage.
3098 2001-10-03 Jim Blandy <jimb@redhat.com>
3100 * genscripts.sh: Include a comment at the top of each generated
3101 script, explaining its purpose.
3103 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3105 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3106 * NEWS: Mention -z nocopyreloc.
3107 * ld.texinfo (Options): Describe nocopyreloc.
3109 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3111 * configure: Regenerate.
3113 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3115 * ldver.h (ld_program_version): Remove declaration.
3116 * lexsup.c (parse_args): Move printing of copyright message..
3117 * ldver.c (ldversion): .. to here.
3118 Use BFD_VERSION_STRING in place of BFD_VERSION.
3119 (ld_program_version): Remove.
3120 * Makefile.am (Makefile): Depend on bfd/configure.in.
3122 * Makefile.in: Regenerate.
3124 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3126 * Makefile.am: Update dependencies with "make dep-am".
3127 * Makefile.in: Regenerate.
3129 2001-09-29 John Reiser <jreiser@BitWagon.com>
3131 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3132 * lexsup.c: Add --no-define-common commandline option.
3133 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3134 * ldlex.l: Likewise.
3135 * ld.h: Add command_line.inhibit_common_definition.
3136 * ldmain.c (main): Initialize.
3137 * ld.texinfo: Document.
3139 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3141 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3143 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3145 * ldmisc.c (USE_STDARG): Remove.
3146 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3151 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3152 declarations. Update copyright.
3154 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3156 * pe-dll.c: Remove obsoleted declaration of
3157 pe_get_data_import_dll_name.
3158 (pe_create_import_fixup): Fix thinko.
3160 * ld.texinfo(enable-auto-import): Clarify the explanation.
3162 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3164 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3165 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3166 DLL_SUPPORT controlled code.
3168 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3170 * emultempl/pe.em(pe_data_import_dll): Make static.
3171 (pe_get_data_import_dll_name): New accessor function.
3172 * pe-dll.c(pe_create_import_fixup): call
3173 pe_get_data_import_dll_name() from pe.em, instead of
3174 directly accessing pe_data_import_dll variable from pe.em.
3176 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3178 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3179 (def_file_add_directive): Use ISSPACE instead of isspace.
3180 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3181 isdigit/isxdigit/isalpha/isalnum.
3182 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3183 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3184 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3185 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3187 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3188 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3190 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3191 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3192 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3193 (ctor_prio): Use ISDIGIT instead of isdigit.
3194 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3195 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3196 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3198 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3199 (stricpy): Use TOLOWER instead of isupper/tolower.
3200 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3201 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3202 (lex_warn_invalid): Use ISPRINT instead of isprint.
3203 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3204 (main): For gettext, also set the LC_CTYPE locate facet.
3205 (add_keepsyms_file): Use ISSPACE instead of isspace.
3206 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3207 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3208 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3209 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3210 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3211 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3212 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3213 (quoteput): Use ISSPACE instead of isspace.
3214 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3217 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3219 * deffilep.y (def_stash_module): Constify "name" param.
3221 * pe-dll.c: Replace CONST with const throughout.
3222 (quick_symbol): Constify "n1", "n2", "n3" params.
3223 (make_singleton_name_thunk): Constify "import" param. Make
3224 "buffer_len" a size_t.
3225 (make_import_fixup_entry): Constify "name", "fixup_name",
3226 "dll_symname" params.
3227 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3228 (pe_get32): Likewise.
3229 (pe_implied_import_dll): Likewise.
3231 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3232 (sort_by_section_name): Likewise.
3234 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3235 (make_import_fixup): Cast printf arg, rel->address to long rather
3237 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3239 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3241 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3242 defines BufferSize. Increase buffer size by one.
3244 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3246 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3248 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3250 * configure.tgt: Add arm-openbsd target.
3252 2001-09-12 H.J. Lu <hjl@gnu.org>
3254 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3256 (ALL_64_EMULATIONS): Here.
3257 * Makefile.in: Regenerated.
3259 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3261 * emultempl/pe.em(make_import_fixup): change signature to
3262 take asection as well as arelec; we need this for proper
3263 error reporting. Only call pe_create_import_fixup() if
3264 there is no attempt to add a constant addend to the reloc;
3265 otherwise, report error condition.
3266 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3267 since final argument is a pointer to make_import_fixup().
3268 Change call to cb() to match make_import_fixup() signature.
3269 (make_import_fixup_mark): make buffer_len unsigned.
3270 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3272 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3274 * ld.texinfo: add verbose documentation for auto-import
3275 direct-addressing workaround, to compliment the terse
3278 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3280 * scripttempl/v850.sc: Add gcc_except_table sections.
3282 2001-09-11 Jeffrey A Law (law@cygnus.com)
3284 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3285 * emulparams/h8300self.sh: Similarly.
3287 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3289 * ld.texinfo (Options, --stack): Correct default value for stack
3292 2001-09-05 Tom Rix <trix@redhat.com>
3294 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3296 2001-09-03 Andreas Jaeger <aj@suse.de>
3298 * emultempl/beos.em: Declare prototypes for comparions functions,
3301 2001-09-02 Andreas Jaeger <aj@suse.de>
3303 * emultempl/aix.em: Add missing prototype.
3304 * emultempl/lnk960.em: Likewise.
3305 * emultempl/vanilla.em: Likewise.
3306 * emultempl/armcoff.em: Likewise.
3307 * emultempl/armelf_oabi.em: Likewise.
3308 * emultempl/beos.em: Likewise.
3309 * emultempl/gld960c.em: Likewise.
3310 * emultempl/gld960.em: Likewise.
3312 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3313 for prototype declaration.
3315 2001-08-31 Eric Christopher <echristo@redhat.com>
3316 Jason Eckhardt <jle@redhat.com>
3318 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3320 2001-08-31 Andreas Jaeger <aj@suse.de>
3322 * emultempl/pe.em: Add missing prototypes.
3323 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3324 pe_find_data_imports.
3325 (pr_sym): Add unused attribute.
3327 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3329 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3330 default from coff to elf.
3332 2001-08-29 Jeff Law <law@redhat.com>
3334 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3336 * emulparams/h8300self.sh: Similarly.
3338 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3340 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3342 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3343 * configure.tgt (h8300-*-elf*): New case.
3344 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3345 * emulparams/h8300self.sh: New file.
3346 * Makefile.in: Regenerated.
3348 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3350 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3353 2001-08-27 Linus Nordberg <linus@swox.com>
3354 Alan Modra <amodra@bigpond.net.au>
3356 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3357 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3359 * Makefile.in: Regenerate.
3360 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3361 entries to correct alphabetical position.
3362 * emulparams/elf64ppc.sh: New.
3363 * emulparams/elf64lppc.sh: New.
3365 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3367 * ldmain.c (main): Declare BSIZE as static.
3369 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3371 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3372 into .rel.dyn resp. .rela.dyn if combreloc.
3373 (get_script): If .x linker script is equal to .xn, only put it
3374 once into the binary.
3375 Add .xc and .xsc scripts.
3376 (parse_args): Handle -z combreloc and -z nocombreloc.
3377 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3378 For .xc and .xsc scripts put all .rel* or .rela* input sections
3379 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3380 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3382 Strip trailing whitespace from script.
3383 Generate .xc and .xsc scripts if requested.
3384 * ldmain.c (main): Initialize link_info.combreloc and
3385 link_info.spare_dynamic_tags.
3386 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3387 (ld_options): Add --spare-dynamic-tags option.
3388 (parse_args): Likewise.
3389 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3390 * ldint.texinfo: Document .xc and .xsc linker scripts.
3391 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3393 2001-08-22 H.J. Lu <hjl@gnu.org>
3395 * emulparams/elf32fr30.sh: Add a newline.
3397 2001-08-21 Andreas Jaeger <aj@suse.de>
3399 * deffilep.y: Add missing prototypes.
3400 * pe-dll.c: Likewise.
3402 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3404 * ldlang.c (insert_pad): Fix typos in last patch.
3406 * ldlang.c: When traversing lang_statement_union_type lists,
3407 consistently use "header.next" rather than "next".
3408 * mpw-eppcmac.c: Likewise.
3409 * emultempl/beos.em: Likewise.
3410 * emultempl/hppaelf.em: Likewise.
3411 * emultempl/pe.em: Likewise.
3412 * ldlang.h (union lang_statement_union): Remove "next" field.
3414 * ldlang.c (insert_pad): Use offsetof macro.
3415 (lang_size_sections): Always neuter padding statements.
3416 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3418 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3419 passed to lang_size_sections.
3420 (pe_exe_fill_sections): Likewise.
3421 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3422 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3424 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3426 * emultempl/aix.em: Formatting fixes.
3428 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3430 * ldlang.c (insert_pad): Make use of an existing pad statement if
3431 available. Move code calculating alignment, adjusting section
3432 alignment power, and adjusting dot to ..
3433 (size_input_section): .. here. Remove unused relax param.
3434 (lang_size_sections): Change boolean `relax' param to boolean *.
3435 Adjust call to size_input_section. Make use of insert_pad to
3436 place pad after the assignment statement. If relaxing, zap
3438 (reset_memory_regions): Reset output_bfd section sizes too.
3439 (relax_again): Move to..
3440 (lang_process): ..here. Adjust call to lang_size_sections, and
3441 remove duplicated code.
3442 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3444 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3446 * ld.texinfo: Document that fill values now use the four least
3448 * emulparams/elf32fr30.sh (NOP): Update.
3449 * emulparams/elf32mcore.sh: Likewise.
3450 * emulparams/elf64_s390.sh: Likewise.
3451 * emulparams/elf_i386.sh: Likewise.
3452 * emulparams/elf_i386_be.sh: Likewise.
3453 * emulparams/elf_i386_chaos.sh: Likewise.
3454 * emulparams/elf_i386_ldso.sh: Likewise.
3455 * emulparams/elf_s390.sh: Likewise.
3456 * emulparams/elf_x86_64.sh: Likewise.
3457 * emulparams/i386moss.sh: Likewise.
3458 * emulparams/i386nw.sh: Likewise.
3459 * emulparams/m68kelf.sh: Likewise.
3460 * scripttempl/elf.sc: Update NOP comment.
3461 * scripttempl/elfi370.sc: Likewise.
3462 * scripttempl/elfm68hc11.sc: Likewise.
3463 * scripttempl/elfm68hc12.sc: Likewise.
3464 * scripttempl/nw.sc: Likewise.
3466 2001-08-15 Tom Rix <trix@redhat.com>
3468 * ldgram.y (saved_script_handle): Initialize to NULL.
3469 * ldmain.c (main): Change check on saved_script_handle.
3471 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3473 * emultempl/elf32.em: Formatting fixes.
3474 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3475 looking at sec->owner.
3476 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3477 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3478 unused code, and reorganize orphan section placement code.
3480 * ldlang.c (wild_doit): Rename to lang_add_section.
3481 * ldlang.h: Here too.
3482 * mpw-elfmips.c: And here.
3483 * emultempl/beos.em: And here.
3484 * emultempl/elf32.em: And here.
3485 * emultempl/hppaelf.em: And here.
3486 * emultempl/pe.em: And here.
3488 2001-08-13 Richard Henderson <rth@redhat.com>
3490 * emultempl/needrelax.em: New file.
3491 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3492 * Makefile.am (eelf64_ia64.c): Depend on it.
3493 * Makefile.in: Rebuild.
3495 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3497 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3498 output_section is set non-NULL.
3500 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3501 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3502 needlessly create an output_section_statement. Treat a correctly
3503 named output_section_statement with NULL bfd_section as compatible.
3505 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3507 * emultempl/generic.em: Support EXTRA_EM_FILE.
3508 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3509 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3510 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3511 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3512 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3513 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3514 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3515 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3516 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3517 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3519 2001-08-12 Richard Henderson <rth@redhat.com>
3521 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3522 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3523 scripttempl/v850.sc: Keep .jcr data.
3525 2001-08-12 H.J. Lu <hjl@gnu.org>
3526 Andrew Haley <aph@cambridge.redhat.com>
3527 Nick Clifton <nickc@redhat.com>
3529 * ldgram.y (had_script): Change name to saved_script_handle.
3530 Change type to file handle.
3531 * ld.h (had_script): Rename and retype.
3532 * ldfile.c (ldfile_open_command_file): Save the file handle
3533 used in saved_script_handle.
3534 * lexsup.c (parse_args): Do not allow -c option to alter
3535 saved_script_handle.
3536 * ldmain.c (main): Print out the linker script used if
3537 --verbose is given. Check saved_script_handle to obtain the
3538 external linker script used, or if NULL, dump the builtin
3540 * ld.texinfo: Document that --verbose now dumps the linker
3541 script used, regardless of whether it was an internal or an
3544 2001-08-10 Andreas Jaeger <aj@suse.de>
3546 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3548 * configure: Regenerate.
3550 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3552 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3554 * scripttempl/elf.sc: Move non-text .dynamic section before
3555 .plt/.got/.sdata* group.
3556 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3557 (OTHER_SDATA_SECTIONS): Add.
3558 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3560 * emulparams/crislinux.sh: Likewise.
3561 * emulparams/elf32b4300.sh: Likewise.
3562 * emulparams/elf32bmip.sh: Likewise.
3563 * emulparams/elf32bmipn32.sh: Likewise.
3564 * emulparams/elf32bsmip.sh: Likewise.
3565 * emulparams/elf32btsmip.sh: Likewise.
3566 * emulparams/elf32ebmip.sh: Likewise.
3567 * emulparams/elf32elmip.sh: Likewise.
3568 * emulparams/elf32l4300.sh: Likewise.
3569 * emulparams/elf32lmip.sh: Likewise.
3570 * emulparams/elf32lsmip.sh: Likewise.
3571 * emulparams/elf32ltsmip.sh: Likewise.
3572 * emulparams/elf64bmip.sh: Likewise.
3573 * emulparams/elf64btsmip.sh: Likewise.
3574 * emulparams/elf64ltsmip.sh: Likewise.
3576 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3578 * genscripts.sh: Source the emulparams script before each output
3579 script is generated so that variables like `RELOCATING' may affect
3580 variables defined in the emulparams script.
3582 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3584 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3587 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3588 ie. iterate over wild_statement.section_list.
3589 (gld${EMULATION_NAME}_place_orphan): Likewise.
3591 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3593 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3594 .fini[0-4] sections used by _exit
3595 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3596 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3597 * scripttempl/elfm68hc11.sc: Likewise.
3599 2001-08-03 H.J. Lu <hjl@gnu.org>
3601 * emultempl/beos.em (init): Add the missing initialization.
3603 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3605 * ld.texinfo (Input Section Basics): Clarify ordering of output
3607 * ldlang.c (callback_t): Add wildcard_list param.
3608 (walk_wild_section): Remove "section" param. Rewrite for
3609 lang_wild_statement_type change. Remove unique_section_p test.
3610 (walk_wild_file): Remove "section" param.
3611 (walk_wild): Remove "section" and "file" params.
3612 (lang_gc_wild): Likewise.
3613 (wild): Likewise. Modify for lang_wild_statement_type change.
3614 (wild_sort): Likewise. Add "sec" param.
3615 (gc_section_callback): Likewise.
3616 (output_section_callback): Likewise. Do unique_section_p test.
3617 (map_input_to_output_sections): Modify call to wild.
3618 (lang_gc_sections_1): Likewise.
3619 (print_wild_statement): Modify for lang_wild_statement_type
3621 (lang_add_wild): Replace filename, filenames_sorted param with
3622 filespec. Replace section_name, sections_sorted,
3623 exclude_filename_list with section_list.
3624 * ldlang.h (lang_add_wild): Here too.
3625 (lang_wild_statement_type): Replace section_name, sections_sorted,
3626 and exclude_filename_list with section_list.
3627 * ldgram.y (current_file): Delete.
3628 (%union): Add wildcard_list.
3629 (file_NAME_list): Set type to wildcard_list. Build a linked list
3630 rather than calling lang_add_wild for each entry.
3631 (input_section_spec_no_keep): Call lang_add_wild here instead.
3632 * ld.h (struct wildcard_list): Declare.
3633 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3635 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3637 * ldmain.c (main): initialize link_info.pei386_auto_import
3638 * pe-dll.c: new tables for auto-export filtering
3639 (auto_export): change API, pass abfd for contextual filtering.
3640 Loop thru tables of excluded symbols instead of comparing
3643 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3645 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3646 static variable current_sec (static struct sec *). Add
3647 forward declaration for add_bfd_to_link.
3648 (process_def_file): Don't export undefined symbols. Do not
3649 export symbols starting with "_imp__". Call auto_export()
3651 (pe_walk_relocs_of_symbol): New function.
3652 (generate_reloc): add optional extra debugging
3653 (pe_dll_generate_def_file): eliminate extraneous initial blank
3655 (make_one): enlarge symtab to make room for __nm__ symbols
3656 (DATA auto-import support).
3657 (make_singleton_name_thunk): New function.
3658 (make_import_fixup_mark): New function.
3659 (make_import_fixup_entry): New function.
3660 (pe_create_import_fixup): New function.
3661 (add_bfd_to_link): Specify that 'name' argument is a CONST
3663 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3664 declare new functions pe_walk_relocs_of_symbol and
3665 pe_create_import_fixup.
3666 * emultempl/pe.em: add new options --enable-auto-import,
3667 --disable-auto-import, and --enable-extra-pe-debug.
3668 (make_import_fixup): New function.
3669 (pe_find_data_imports): New function.
3670 (pr_sym): New function.
3671 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3672 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3675 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3677 * ld.texinfo: add additional documentation for
3678 --export-all-symbols. Document --out-implib,
3679 --enable-auto-image-base, --disable-auto-image-base,
3680 --dll-search-prefix, --enable-auto-import, and
3681 --disable-auto-import.
3682 * ldint.texinfo: Add detailed documentation on auto-import
3685 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3687 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3690 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3692 * Makefile.am: Update dependencies with "make dep-am".
3693 * Makefile.in: Regenerate
3695 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3697 * ldcref.c (check_section_sym_xref): New function.
3698 (check_nocrossrefs): Call it.
3699 (check_nocrossref): Interate over h->refs here instead of..
3700 (check_refs): ..here. Pass in the symbol name, section, and bfd
3701 rather than hash_entry pointers.
3702 (struct check_refs_info): Keep symbol name rather than hash entry.
3704 (check_reloc_refs): Tweak for above changes in check_refs_info.
3705 Only report references to section syms when symname is NULL to
3706 prevent duplicate messages for the same reloc.
3708 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3710 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3711 available. Do not print NULL trees.
3712 (exp_print_token): Print unknown tokens with values > 126 as
3713 decimal values not ASCII characters.
3715 * ldlang.c (lang_leave_overlay): If a region is specified assign
3716 it to all sections inside the overlay unless they have been
3717 assigned to the own, non-default, memory region.
3719 * README: Add header for consistency with other README files.
3721 2001-07-14 H.J. Lu <hjl@gnu.org>
3723 * emultempl/elf32.em (output_prev_sec_find): Never return
3724 bfd_abs_section_ptr, bfd_com_section_ptr nor
3725 bfd_und_section_ptr.
3727 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3729 * Makefile.am (em32relf.c): Change dependency from generic.em to
3731 * Makefile.in: Regenerate.
3733 2001-07-14 matthew green <mrg@eterna.com.au>
3735 * configure.tgt (i386-*-netbsdelf*): New target.
3736 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3738 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3740 * emultempl/elf32.em (output_prev_sec_find): New.
3741 (place_orphan): Use it.
3743 2001-07-11 H.J. Lu <hjl@gnu.org>
3745 * ldmain.c (main): Fix typos in the last change.
3747 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3749 * ldmain.c (main): Disallow -F and -f without -shared.
3751 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3753 * emultempl/pe.em (after_open): Check for the output_bfd not
3754 having any coff_data structure allocated to it.
3756 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3758 * emultempl/elf32.em: Do not assuming that contents of the buffer
3759 returned from basename function will remain unchanged accross other
3762 2001-07-03 H.J. Lu <hjl@gnu.org>
3764 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3765 2001-07-03. It creates dynamic entries even for static binaries.
3767 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3769 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3770 (DYNAMIC): Use it to reserve few dynamic entries for
3773 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3775 * emulparams/hppa64linux.sh: New file.
3776 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3777 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3778 (ehppa64linux.c): Add rule to make it.
3780 * Makefile.in: Regenerate.
3782 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3784 * ld.texinfo (Options, -r): Mention restrictions when using
3785 different object formats.
3787 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3789 * ldlang.c (lang_check): Emit fatal error if relocatable link
3790 between different object flavours with relocations in input.
3792 2001-06-19 H.J. Lu <hjl@gnu.org>
3794 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3795 (--version-script): Mention the language support.
3797 2001-06-19 H.J. Lu <hjl@gnu.org>
3799 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3801 2001-06-18 H.J. Lu <hjl@gnu.org>
3803 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3804 (diststuff): Add $(MANS).
3805 * Makefile.in: Regenerated.
3809 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3811 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3812 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3813 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3814 * ld.h (args_type): Remove member export_dynamic. All users
3815 changed to use struct bfd_link_info member.
3817 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3818 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3819 * Makefile.in: Regenerate.
3821 2001-06-18 H.J. Lu <hjl@gnu.org>
3823 * ldlang.c (init_os): Add the newline to the einfo call.
3824 (lang_check): Likewise.
3825 (lang_do_version_exports_section): Likewise.
3827 2001-06-15 H.J. Lu <hjl@gnu.org>
3829 * lexsup.c (parse_args); Save optind to report unrecognized
3832 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3834 * ldlang.c (lang_check): Emit fatal error if relocatable link
3835 between different object flavours.
3837 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3838 Set new link_info member export_dynamic.
3839 * ldmain.c (main): Initialize new link_info member export_dynamic.
3841 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3843 * ldlang.c (walk_wild): Only call walk_wild_file if
3844 lookup_name returns something.
3845 (lookup_name): If load_symbols fails, return NULL.
3846 (load_symbols): Change to a boolean function.
3847 (open_input_bfds): If load_symbols fails then do not make the
3850 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3852 * ldlang.c (record_bfd_errors): Remove.
3854 * emultempl/aix.em: Fix copyright dates.
3856 2001-06-07 Andreas Jaeger <aj@suse.de>
3858 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3859 (TEXT_START_ADDR): Likewise.
3861 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3863 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3865 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3867 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3869 2001-05-31 H.J. Lu <hjl@gnu.org>
3871 * ldlang.c (open_input_bfds): Don't change the bfd error
3872 handler whilst loading symbols.
3874 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3876 * configure.tgt: Remove i370-mvs architecture, it is not currently
3879 2001-05-25 H.J. Lu <hjl@gnu.org>
3881 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3882 like emulparams/aixppc.sh.
3884 2001-05-25 H.J. Lu <hjl@gnu.org>
3886 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3887 setting of output_filename after bfd_scan_arch.
3888 * emultempl/pe.em: Likewise.
3890 2001-05-25 H.J. Lu <hjl@gnu.org>
3892 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3893 like emulparams/aixppc.sh.
3895 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3896 instead of ${srcdir}/emultempl/stringify.sed.
3898 2001-05-25 Timothy Wall <twall@oculustech.com>
3900 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3903 2001-05-25 Alan Modra <amodra@one.net.au>
3905 * configure.host: Replace linuxoldld with linux*oldld.
3906 * configure.tgt: Likewise.
3908 2001-05-24 H.J. Lu <hjl@gnu.org>
3910 * emultempl/stringify.sed: Removed again.
3912 2001-05-24 H.J. Lu <hjl@gnu.org>
3914 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3915 (gld${EMULATION_NAME}_before_parse): Initialize
3916 ldfile_output_architecture, ldfile_output_machine and
3917 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3918 * emultempl/beos.em: Likewise.
3919 * emultempl/elf32.em: Likewise.
3920 * emultempl/linux.em: Likewise.
3921 * emultempl/mipsecoff.em: Likewise.
3922 * emultempl/pe.em: Likewise.
3923 * emultempl/sunos.em: Likewise.
3925 2001-05-24 Tom Rix <trix@redhat.com>
3927 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3928 udate import file format.
3929 (change_symbol_mode) New, same
3930 (is_syscall) New, same
3931 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3932 * emulparams/aixppc64.sh : same
3933 * emulparams/aixrs6.sh : same
3934 * emulparams/ppcmacos.sh : same
3935 * emultempl/aix.em : use strtoull to parse options
3936 * Makefile.am : add eaixppc64 emulation for xcoff64
3937 * Makefile.in : same
3938 * configure.tgt : same
3940 * scripttempl/aix.sc : default text section offset to 0x10000000
3941 default data section offset to 0x20000000
3942 add .sv3264 and .sv64 pseudo sections
3943 loader and debug sections use the currect section offset.
3945 * emultempl/aix.em : Add xcoff64 support
3946 Add -binitfini support
3947 (gld${EMULATION_NAME}_before_parse) -binitfini
3948 (gld${EMULATION_NAME}_parse_args) same
3949 (gld${EMULATION_NAME}_before_allocation) format change for special
3952 * emulparams/aixppc64.sh : New file for xcoff64 support
3954 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3956 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3957 variable to avoid non-portable shell construct.
3959 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3961 * ldmain.c (get_emulation): Add -mips5 command line argument.
3963 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3965 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3966 (ELF_INTERPRETER_NAME): Define it.
3967 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3969 * configure.tgt (targ_emul, targ_extra_emuls)
3970 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3971 as primary, elf_i386 as extra.
3972 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3973 (eelf_i386_ldso.c): New rule.
3974 * Makefile.in: Rebuilt.
3976 2001-05-22 Nick Clifton <nickc@redhat.com>
3978 * lexsup.c (ld_options): Allow -I to be an alias for
3979 --dynamic-linker. This is for Solaris compatability.
3980 * ld.texinfo: Document that -I can be used.
3983 2001-05-16 Alan Modra <amodra@one.net.au>
3985 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3986 whether an input section is the first one assigned to an output
3988 Assorted formatting fixes.
3990 2001-05-14 DJ Delorie <dj@delorie.com>
3992 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3993 * Makefile.in: Ditto.
3995 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3997 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3998 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4000 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4002 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4004 * ldlang.c (lang_process): Call bfd_merge_sections.
4006 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4008 * ldgram.y: Fix typo.
4010 2001-05-03 H.J. Lu <hjl@gnu.org>
4012 * emultempl/elf32.em: Include "libiberty.h".
4013 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4014 basename of the bfd filename.
4015 (gld${EMULATION_NAME}_stat_needed): Likewise.
4016 (gld${EMULATION_NAME}_try_needed): Likewise.
4017 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4019 2001-05-02 H.J. Lu <hjl@gnu.org>
4021 * emultempl/pe.em: Include <ctype.h>.
4023 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4025 * emulparams/elf32openrisc.sh: New file.
4027 * Makefile.am: Add OpenRISC target.
4028 * Makefile.in: Regenerated.
4030 * configure.tgt: Add openrisc-*-* mapping.
4032 2001-05-02 Nick Clifton <nickc@redhat.com>
4034 * emultempl/aix.em: Replace buystring with xstrdup.
4035 * emultempl/beos.em: Replace buystring with xstrdup.
4037 2001-05-02 H.J. Lu <hjl@gnu.org>
4039 * ldfile.c: Include "libiberty.h".
4040 * ldlex.l: Likewise.
4042 * ldmisc.c (buystring): Removed.
4043 * ldmisc.h: Likewise.
4045 * ldfile.c: Replace buystring with xstrdup.
4046 * ldlang.c: Likewise.
4047 * ldlex.l: Likewise.
4048 * ldmain.c: Likewise.
4049 * ldmisc.c: Likewise.
4050 * lexsup.c: Likewise.
4051 * mpw-eppcmac.c: Likewise.
4053 2001-04-30 Andreas Jaeger <aj@suse.de>
4055 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4057 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4059 * ldlang.c (load_symbols): Give emulation a chance
4060 to process unrecognized file before fatal error is
4061 reported, not after.
4063 2001-04-27 Sean McNeil <sean@mcneil.com>
4065 * configure.tgt: Add arm-vxworks target.
4066 * scripttempl/armcoff.sc: Support .text or .data as a section name
4070 2001-04-13 J.T. Conklin <jtc@redback.com>
4072 * ld.texinfo: Document --fatal-warnings.
4075 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4076 warnings have been turned into errors.
4077 * lexsup.c (OPTION_WARN_FATAL): Define.
4078 (ld_options): Entry for --fatal-warnings.
4079 (parse_args): Handle OPTION_WARN_FATAL.
4080 * ld.h (ld_config_type): Add fatal_warnings field.
4082 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4084 * ldmain.c (main): Default to discard_sec_merge.
4085 * lexsup.c (OPTION_DISCARD_NONE): Define.
4086 (ld_options): Add --discard-none.
4087 (parse_args): Handle OPTION_DISCARD_NONE.
4088 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4089 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4090 all its input sections match.
4092 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4094 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4095 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4096 (eelf32ltsmip.c): New target.
4097 (eelf64btsmip.c): Likewise.
4098 (eelf64ltsmip.c): Likewise.
4099 * Makefile.in: Regenerated.
4101 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4103 (mips*-*-linux-gnu*): Likewise.
4105 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4107 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4109 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4112 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4114 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4115 correct value of __Stext here.
4116 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4119 * emulparams/crislinux.sh: Remove FIXME.
4121 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4123 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4124 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4126 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4128 * configure.tgt (cris-*-*): Change default emulation to criself.
4129 (cris-*-*aout*): New rule.
4131 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4133 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4134 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4136 2001-03-26 Andreas Jaeger <aj@suse.de>
4138 * ld.texinfo (Overview): Fix syntax in texi code.
4140 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4142 * ld.texinfo: Put @c man indications to generate the ld man page.
4143 When generating man, define all the variables. Define SEEALSO
4144 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4145 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4146 (ld.1): Generate from ld.texinfo.
4147 * Makefile.in: Regenerate.
4149 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4151 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4152 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4154 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4156 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4157 is an absolute path look only for this file and not along the path.
4159 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4161 * emultempl/elf32.em (OPTION_GROUP): New macro.
4162 Add new option Bgroup to longopts.
4163 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4164 (gld*_list_options): Add -Bgroup and -z defs.
4165 * ld.1: Document -Bgroup and -z defs.
4166 * ld.texinfo: Likewise.
4168 2001-03-07 Michael Meissner <meissner@redhat.com>
4170 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4171 with sections created by -fdata-sections.
4172 (.dynbss,.bss): Ditto.
4174 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4176 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4177 after_allocation_default, not gld..._before_allocation.
4179 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4181 * configure.in (BFD_VERSION): New.
4182 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4183 * configure: Regenerate.
4184 * Makefile.am: Run "make dep-am"
4185 * Makefile.in: Regenerate.
4187 2001-02-26 Timothy Wall <twall@cygnus.com>
4189 * emulparams/elf64_aix.sh: Add additional read-only sections;
4190 uncomment lines which are now required.
4192 2001-02-26 H.J. Lu <hjl@gnu.org>
4194 * ldlang.c (open_input_bfds): Set the bfd error handler so
4195 that problems can be caught whilst loading symbols.
4196 (record_bfd_errors): New function: Report BFD errors and mark
4197 the executable output as being invalid.
4199 2001-02-22 Timothy Wall <twall@cygnus.com>
4201 * configure.host: Add configuration for ia64-*-aix*.
4202 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4203 Add dependencies for eelf64_aix.c.
4204 * Makefile.in: Regenerate.
4205 * configure.tgt: Add ia64-*-aix* mapping.
4206 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4208 2001-02-20 H.J. Lu <hjl@gnu.org>
4210 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4211 false if we found the file.
4213 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4215 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4216 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4218 2001-02-18 lars brinkhoff <lars@nocrew.org>
4220 * Makefile.am: Add PDP-11 target.
4221 * configure.tgt: Likewise.
4222 * emulparams/pdp11.sh: New file.
4224 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4226 * configure.host: Add a generic FreeBSD configuration entry such that
4227 all [modern] FreeBSD systems on all platforms will look the same.
4229 2001-02-14 H.J. Lu <hjl@gnu.org>
4231 * configure.tgt: Remove mention of earmelf_linux26.
4233 2001-02-13 Richard Henderson <rth@redhat.com>
4235 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4237 2001-02-13 H.J. Lu <hjl@gnu.org>
4239 * ldexp.h (node_type): Add etree_provided.
4240 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4241 type to etree_provided if defined by PROVIDE. Allow updating
4243 (exp_print_tree): Handle etree_provided.
4244 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4247 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4249 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4250 .IA_64.unwind.* pattern to unwind table section and
4251 .IA_64.unwind_info* pattern to unwind info section.
4253 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4255 * Makefile.am: Add linux target for S/390.
4256 * Makefile.in: Likewise.
4257 * configure.host: Likewise.
4258 * configure.tgt: Likewise.
4259 * emulparams/elf64_s390.sh: New file.
4260 * emulparams/elf_s390.sh: New file.
4262 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4264 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4266 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4268 2001-02-06 Philip Blundell <philb@gnu.org>
4270 * Makefile.am: Remove mention of earmelf_linux26.
4271 * Makefile.in: Regenerate.
4273 2001-02-04 Philip Blundell <philb@gnu.org>
4275 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4276 * emulparams/armelf_linux26.sh: Delete.
4277 * configure.tgt: Remove mention of armelf_linux26 emulation.
4279 2001-02-01 Nick Clifton <nickc@redhat.com>
4281 * ld.1: Replace occurances of -oformat with --oformat.
4283 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4285 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4286 load_base is specified.
4288 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4290 * emultempl/elf32.em: Correct spelling in comments and listed
4293 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4295 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4296 default for the first section of a group of overlay sections.
4298 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4300 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4301 * Makefile.in: Regenerate.
4302 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4303 Check for null tool_dir.
4305 2001-01-16 Jim Wilson <wilson@redhat.com>
4307 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4308 and IA_64.unwind.info.
4310 2001-01-16 H.J. Lu <hjl@gnu.org>
4312 * ldlang.c (lang_check): Merge the private data only if the
4313 input file has contents.
4315 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4317 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4319 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4320 enabling search for libmilli. On a relocatable link, make .text
4322 (LDEMUL_AFTER_PARSE): Define.
4323 (hppaelf_finish): Correct spelling of relocatable in comments.
4325 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4326 rummage through the script for sections on the unique list.
4327 Correct length of strncmp for ".note".
4328 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4330 * ldlang.c (unique_section_list): New var.
4331 (unique_section_p): New function.
4332 (walk_wild_section): Don't match sections on unique_section_list.
4333 (lang_add_unique): New function.
4334 Correct spelling of relocatable in comments.
4336 * ldlang.h (struct unique_sections): Declare.
4337 (unique_section_list): Declare.
4338 (unique_section_p): Declare.
4339 (lang_add_unique): Declare.
4341 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4342 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4344 * ld.texinfo (--unique): Update.
4346 2001-01-13 Nick Clifton <nickc@redhat.com>
4348 * lexsup.c (parse_args): Remove spurious white space.
4350 2001-01-12 Nick Clifton <nickc@redhat.com>
4352 * lexsup.c (parse_args): Update copyright date.
4354 2001-01-12 Philip Blundell <pb@futuretv.com>
4356 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4358 2001-01-10 Kazu Hirata <kazu@hxi.com>
4360 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4361 * scripttempl/h8300h.sc: Fix formatting.
4362 * scripttempl/h8300s.sc: Likewise.
4363 * scripttempl/h8500.sc: Likewise.
4364 * scripttempl/h8500b.sc: Likewise.
4365 * scripttempl/h8500c.sc: Likewise.
4366 * scripttempl/h8500m.sc: Likewise.
4367 * scripttempl/h8500s.sc: Likewise.
4369 2000-01-07 David O'Brien <obrien@BSDi.com>
4371 * emultempl/elf32.em: Only perform Linux ld hints processing when
4374 2001-01-07 Philip Blundell <philb@gnu.org>
4376 * ld.texinfo (Bug Reporting): Update email address for reports.
4378 2000-12-31 Nick Clifton <nickc@redhat.com>
4380 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4381 options by checking for a return value of '?' not -1.
4383 2000-12-28 Nick Clifton <nickc@redhat.com>
4385 * lexsup.c (struct ld_option): Add new enum value:
4387 (ld_options[]): Change -omagic, -output and -oformat options
4388 to be EXACTLY_TWO_DASHES.
4389 (OUTPUT_COUNT): Use ARRAY_SIZE.
4390 (parse_args): Change parameter 'argc' to unsigned.
4391 Place EXACTLY_TWO_DASHES options into new really_longopts
4393 If getopt_long_only fails, try calling getopt_long using the
4394 really_longopts array.
4395 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4398 * ldlex.h: Fix prototype of parse_args.
4400 * ld.texinfo: Document that long options starting with 'o'
4401 must be preceeded by two dashes. Change example of a single
4402 dashed long option from -oformat to -trace-symbol.
4404 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4406 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4407 (longopts[]): New --no-default-excludes option.
4408 (gld_${EMULATION_NAME}_list_options): Document.
4409 (gld_${EMULATION_NAME}_parse_args): Handle.
4411 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4413 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4414 whitespace, it breaks the K&R C preprocessor.
4416 2000-12-11 DJ Delorie <dj@redhat.com>
4418 * ld.texinfo: Add notes about --whole-archive and gcc.
4420 2000-11-18 Fred Fish <fnf@be.com>
4422 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4423 (ld_options): Entry for --allow-shlib-undefined.
4424 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4425 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4427 * ld.texinfo: Document new command line switch.
4429 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4431 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4432 .fixup is actually read/write.
4433 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4434 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4435 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4437 2000-12-11 Jan Hubicka <jh@suse.cz>
4439 * NEWS: Add note about x86_64 architecture.
4441 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4443 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4444 Set DWARF2 sections to a VMA of zero.
4446 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4448 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4450 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4451 (sparc*-*-rtems*): Switched from a.out to ELF.
4453 2000-11-30 Jan Hubicka <jh@suse.cz>
4455 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4456 (eelf_x86_64.c): New.
4457 * Makefile.in: Regenerate.
4458 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4459 * emulparams/elf_x86_64.sh: New.
4461 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4463 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4464 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4466 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4467 merging non-a.out sections into CONSTRUCTING.
4469 2000-11-28 Nick Clifton <nickc@redhat.com>
4471 * ld.1 (COPYING): Mention that the GNU Free Documentation
4472 License is present in the sources, but not the output, and
4473 also available from the GNU website.
4474 (GNU Free Documentation License): Comment out this section.
4476 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4478 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4481 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4483 * ld.1: Remove old date so it does not give the impression the manpage
4486 2000-11-24 Nick Clifton <nickc@redhat.com>
4488 * configure.tgt (xscale-coff): Add target.
4489 (xscale-elf): Add target.
4491 2000-11-24 Fred Fish <fnf@be.com>
4493 * ldmain.c (main): Remove redundant init of config.make_executable
4496 2000-11-15 Richard Henderson <rth@redhat.com>
4498 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4500 2000-11-14 Kazu Hirata <kazu@hxi.com>
4502 * scripttempl/h8300.sc: Fix formatting.
4503 * scripttempl/h8300h.sc: Likewise.
4504 * scripttempl/h8300s.sc: Likewise.
4506 2000-11-14 Denis Chertykov <denisc@overta.ru>
4508 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4510 2000-11-09 Philip Blundell <pb@futuretv.com>
4512 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4513 around orphan sections whose names can be represented in C.
4515 2000-11-07 Jim Wilson <wilson@redhat.com>
4517 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4518 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4520 2000-11-06 Nick Clifton <nickc@redhat.com>
4522 * ld.texinfo: Add GNU Free Documentation License.
4523 * ldint.texinfo: Add GNU Free Documentation License.
4524 * ld.1: Add GNU Free Documentation License.
4526 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4528 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4529 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4531 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4532 Move 2000-11-02 Makefile.in changes to this file.
4533 * Makefile.in: Regenerate.
4535 2000-11-03 Nick Clifton <nickc@redhat.com>
4537 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4538 constructors and destructors.
4539 * scripttempl/h8300h.sc: Ditto.
4540 * scripttempl/h8300s.sc: Ditto.
4541 * scripttempl/h8500.sc: Ditto.
4542 * scripttempl/h8500b.sc: Ditto.
4543 * scripttempl/h8500c.sc: Ditto.
4544 * scripttempl/h8500m.sc: Ditto.
4545 * scripttempl/h8500s.sc: Ditto.
4546 * scripttempl/v850.sc: Ditto.
4547 * scripttempl/w65.sc: Ditto.
4548 * scripttempl/z8000.sc: Ditto.
4550 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4552 * Makefile.in (e_i386_chaos.c): New rule.
4553 (ALL_EMULATIONS): Added e_i386_chaos.o.
4554 * emulparams/elf_i386_chaos.sh: New file.
4555 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4557 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4559 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4560 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4561 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4562 library path suffix.
4563 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4565 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4567 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4568 for consecutive sections.
4570 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4572 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4574 * ld.texinfo: Added notes about this new option.
4576 2000-10-16 Nick Clifton <nickc@redhat.com>
4578 * emultempl/pe.em (_after_open): Add tests of return values from
4579 bfd functions. Emit appropriate error messages if necessary.
4581 2000-10-13 Nick Clifton <nickc@redhat.com>
4583 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4584 local variables - they are not used, but leave in the call to
4585 bfd_canonicalize_symtab.
4586 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4587 pe_dll_search_prefix.
4589 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4591 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4592 (longopts): New --dll-search-prefix option.
4593 (gld_${EMULATION_NAME}_list_options): Document.
4594 (gld_${EMULATION_NAME}_parse_args): Handle.
4595 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4596 dynamically, search for a dll named '<prefix><basename>.dll'
4597 in preference to 'lib<basename>.dll' if --dll-search-prefix
4600 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4602 * ldlang.c (section_already_linked): Set kept_section instead of
4605 2000-10-10 Kazu Hirata <kazu@hxi.com>
4607 * deffile.h: Fix formatting.
4608 * lexsup.c: Likewise.
4611 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4613 * pe-dll.c (make_one): Do not generate code thunk for DATA
4615 (process_def_file): deduce DATA flag for auto-export sumbols.
4617 2000-10-09 Kazu Hirata <kazu@hxi.com>
4619 * ld.h: Fix formatting.
4620 * ldcref.c: Likewise.
4621 * ldctor.h: Likewise.
4622 * ldemul.c: Likewise.
4623 * ldemul.h: Likewise.
4624 * ldexp.c: Likewise.
4625 * ldexp.h: Likewise.
4626 * ldfile.c: Likewise.
4627 * ldfile.h: Likewise.
4628 * ldlang.c: Likewise.
4629 * ldlang.h: Likewise.
4630 * ldmain.c: Likewise.
4631 * pe-dll.c: Likewise.
4633 * pe-dll.c: Revert some formatting fixes.
4635 2000-10-08 Kazu Hirata <kazu@hxi.com>
4637 * pe-dll.c: Fix formatting.
4639 2000-10-05 Kazu Hirata <kazu@hxi.com>
4641 * ldlang.c: Fix formatting.
4643 2000-10-03 DJ Delorie <dj@redhat.com>
4645 * pe-dll.c (fill_edata): initialize entire block
4646 (make_one): fill in correct section.
4648 2000-10-03 Kazu Hirata <kazu@hxi.com>
4650 * ldexp.c: Fix formatting.
4652 2000-10-02 DJ Delorie <dj@redhat.com>
4654 * emultempl/pe.em (gld_*_after_open): detect case where there two
4655 import libraries for same dll; rename one to ensure proper link
4658 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4660 (generate_edata): fix typo
4662 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4664 * scripttempl/crisaout.sc (ENTRY): Now __start.
4665 (.text): Add default setting for __start.
4666 Remove CONSTRUCTORS handling.
4667 (/DISCARD/): Add .gnu.warning.*.
4668 * emulparams/crislinux.sh (ENTRY): Now __start.
4669 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4670 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4671 (ENTRY): Now __start.
4672 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4673 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4675 2000-09-29 Kazu Hirata <kazu@hxi.com>
4677 * deffile.h: Fix formatting.
4679 * ldcref.c: Likewise.
4680 * ldctor.c: Likewise.
4681 * ldctor.h: Likewise.
4682 * ldemul.c: Likewise.
4683 * ldemul.h: Likewise.
4684 * ldexp.c: Likewise.
4685 * ldexp.h: Likewise.
4686 * ldfile.c: Likewise.
4687 * ldfile.h: Likewise.
4688 * ldlang.c: Likewise.
4689 * ldlang.h: Likewise.
4690 * lexsup.c: Likewise.
4692 * pe-dll.c: Likewise.
4694 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4696 * pe-dll.c (process_def_file): Uninitialized data wasn't
4697 exported with --export-all-symbols switch.
4699 2000-09-28 DJ Delorie <dj@redhat.com>
4701 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4702 noname work properly.
4704 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4706 * ld.texinfo (HPPA ELF32): New section.
4708 * emultempl/hppaelf.em (group_size): New.
4709 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4710 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4711 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4712 options to prevent abbreviations matching.
4713 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4714 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4716 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4718 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4719 on the m68*-*-elf target. Make it support COFF input objects.
4721 2000-09-21 Kazu Hirata <kazu@hxi.com>
4723 * ldmain.c: Fix formatting.
4724 * ldmisc.c: Likewise.
4725 * ldver.c: Likewise.
4726 * ldwrite.c: Likewise.
4728 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4730 * ldwrite.c (clone_section): Silence gcc warnings.
4732 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4734 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4735 out of memory failure.
4737 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4738 (clone_section): Handle out of memory failures. Rename var to
4739 avoid c++ reserved word.
4741 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4743 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4744 stub_name param to stub_sec_name.
4745 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4747 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4749 * emultempl/m68kelf.em: New file.
4750 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4751 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4752 * Makefile.in: Regenerate.
4754 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4756 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4759 2000-09-13 Nick Clifton <nickc@redhat.com>
4761 * ldmain.c (multiple_definition): Disable relaxation if
4762 multiple symbol definitions are encountered - otherwise the
4763 linker could abort with an assertion failure.
4765 2000-09-10 Nick Clifton <nickc@redhat.com>
4767 * mri.c: Fix formatting.
4769 2000-09-07 H.J. Lu <hjl@gnu.org>
4771 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4772 * configure: Rebuild.
4774 2000-09-07 H.J. Lu <hjl@gnu.org>
4776 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4777 * Makefile.in: Rebuild.
4779 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4781 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4782 broken list handling. Create __start_SECNAME and __stop_SECNAME
4783 when no place-holder. Add some comments. Test both SEC_CODE and
4784 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4785 Handle case where no output section statement created.
4787 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4789 * configure.tgt (sh-*-linux*): Added.
4790 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4791 * Makefile.in: Rebuilt.
4792 * emulparams/shelf_linux.sh: New file.
4793 * emulparams/shlelf_linux.sh: New file.
4795 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4797 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4798 try shuffling sections when the orphan happens to be the place
4799 holder. Keep count of unique section names generated so we speed
4800 the search for a new name.
4802 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4804 * configure: Rebuilt with new libtool.m4.
4806 2000-09-05 Nick Clifton <nickc@redhat.com>
4808 * Makefile.in: Regenerate.
4809 * aclocal.m4: Regenerate.
4810 * configure: Regenerate.
4811 * config.in: Regenerate.
4812 * po/ld.pot: Regenerate.
4814 * ldint.texinfo: Remove CVS revision marker - it foils local
4817 * emultempl/ticoff.em: Remove extraneous comma.
4819 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4821 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4822 to stub section flags.
4823 (hppa_for_each_input_file_wrapper): New.
4824 (hppa_lang_for_each_input_file): New.
4825 (lang_for_each_input_file): Define to call above.
4826 (multi_subspace): New.
4827 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4828 (PARSE_AND_LIST_PROLOGUE): Define.
4829 (PARSE_AND_LIST_LONGOPTS): Define.
4830 (PARSE_AND_LIST_OPTIONS): Define.
4831 (PARSE_AND_LIST_ARGS_CASES): Define.
4832 (hppaelf_finish): Call elf32_hppa_set_gp.
4833 (hppaelf_set_output_arch): Remove.
4834 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4836 * emulparams/hppalinux.sh (ELFSIZE): Define.
4838 (OTHER_READONLY_SECTIONS): Define.
4840 (GENERATE_SHLIB_SCRIPT): Define.
4842 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4843 to const throughout. Change `void *' to `PTR' throughout.
4844 (lang_memory_default): Function is local to file, add `static'.
4846 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4847 (ehppalinux.c): Likewise.
4848 (earmelf.c): Likewise.
4849 (earmelf_linux.c): Likewise.
4850 (earmelf_linux26.c): Likewise.
4851 * Makefile.in: Regenerate.
4853 * ld.h (ld_config_type): Add unique_orphan_sections.
4854 * lexsup.c (OPTION_UNIQUE): Define.
4855 (ld_options): Add "--unique".
4856 (parse_args): Handle it.
4857 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4858 search for an existing output section if unique_orphan_sections is
4859 set. Make use of bfd_get_unique_section_name rather than
4860 duplicating code here.
4861 * ld.texinfo: Describe --unique.
4863 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4864 optional arg to split-by-file.
4865 (parse_args): Handle them.
4866 * ld.texinfo: Update description of these options.
4867 * ldwrite.c (clone_section): Pass in the section name. Replace
4868 local code with bfd_get_unique_section_name.
4869 (split_sections): Tidy code and comments. Use a list traversal
4870 more appropriate to the list construction. Handle cooked section
4871 sizes. Split when split_by_reloc reached rather than exceeded.
4872 Track section size and split when split_by_file reached. Fix
4873 link_order_tail (even though it's not used).
4874 (ldwrite): Modify condition for calling split_sections to suit
4875 changed split_by_reloc and split_by_file.
4876 * ldmain.c (main): Init config.split_by_reloc and
4877 config.split_by_file to -1.
4878 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4879 Change split_by_file to bfd_size_type.
4881 2000-09-02 Nick Clifton <nickc@redhat.com>
4883 * configure.in: Increase version number to 2.10.91.
4884 * NEWS: Mention new ability to support removal of duplicate DWARF2
4886 * configure: Regenerate.
4887 * aclocal.m4: Regenerate.
4888 * config.in: Regenerate.
4890 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4892 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4894 * scripttempl/elf32avr.sc: Ditto.
4895 * scripttempl/elfd10v.sc: Ditto.
4896 * scripttempl/elfd30v.sc: Ditto.
4897 * scripttempl/elfi370.sc: Ditto.
4898 * scripttempl/elfm68hc11.sc: Ditto.
4899 * scripttempl/elfm68hc12.sc: Ditto.
4900 * scripttempl/elfi386beos.sc: Ditto.
4901 * scripttempl/v850.sc: Ditto.
4903 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4905 * acinclude.m4: Include libtool and gettext macros from the
4907 * aclocal.m4, configure: Rebuilt.
4909 2000-08-25 Nick Clifton <nickc@redhat.com>
4911 * ldlang.c (open_output): When choosing the target for a
4912 particular endianness, do nothing if the target is not
4915 2000-08-25 H.J. Lu <hjl@gnu.org>
4917 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4918 check -rpath nor LD_RUN_PATH for cross link.
4919 * ld.texinfo: Document the change.
4921 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4923 * NEWS: Mention support for CRIS.
4925 2000-08-23 H.J. Lu <hjl@gnu.org>
4927 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4928 the current runpath list from bfd_elf_get_runpath_list ()
4931 2000-08-22 H.J. Lu <hjl@gnu.org>
4933 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4934 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4935 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4936 trace_file_tries is non-zero.
4937 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4938 if trace_file_tries is non-zero.
4940 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4943 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4945 * NEWS: Mention i860 support.
4947 2000-08-14 Andreas Schwab <schwab@suse.de>
4949 * scripttempl/elf.sc: Fix last change to use correct comment
4952 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4954 * scripttempl/elf.sc: Add a comment giving the correspondence
4955 between sections, per-datum sections, and linkonce sections. Make
4956 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4959 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4961 * emulparams/elf32_i860.sh: New file.
4962 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4963 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4964 (eelf32_i860.c): New rule.
4965 * Makefile.in: Regenerate.
4967 2000-08-10 Nick Clifton <nickc@cygnus.com>
4969 * emulparams/mipspe.sh (ENTRY): Add definition.
4971 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4973 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4976 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4978 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4979 the final size of .bss section.
4980 * scripttempl/elfm68hc12.sc: Likewise.
4982 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4984 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4985 gld${EMULATION_NAME}_parse_args for consistency. Combine
4986 lastoptind and prevoptind vars, and keep track of last optind.
4987 (gld_${EMULATION_NAME}_list_options): Rename to
4988 gld${EMULATION_NAME}_list_options.
4990 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4992 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4993 (i586-sco-sysv5uw7.1.0).
4995 2000-07-27 H.J. Lu <hjl@gnu.org>
4997 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4998 (PARSE_AND_LIST_PROLOGUE): New.
4999 (PARSE_AND_LIST_LONGOPTS): Likewise.
5000 (PARSE_AND_LIST_OPTIONS): Likewise.
5001 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5002 (PARSE_AND_LIST_EPILOGUE): Likewise.
5004 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5006 * emultempl/armelf.em: Elide functions common to elf32.em,
5007 ie. most of the file.
5008 (arm_elf_after_open): New. Do arm specific things then call
5009 gld${EMULATION_NAME}_after_open.
5010 (arm_elf_before_allocation): New. Call
5011 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5012 (PARSE_AND_LIST_PROLOGUE): Define.
5013 (PARSE_AND_LIST_SHORTOPTS): Define.
5014 (PARSE_AND_LIST_LONGOPTS): Define.
5015 (PARSE_AND_LIST_OPTIONS): Define.
5016 (PARSE_AND_LIST_ARGS_CASES): Define.
5017 (LDEMUL_AFTER_OPEN): Define.
5018 (LDEMUL_BEFORE_ALLOCATION): Define.
5019 (LDEMUL_BEFORE_PARSE): Define.
5020 (LDEMUL_FINISH): Define.
5022 * emultempl/hppaelf.em: Similarly zap most of this file.
5023 (hppaelf_add_stub_section): Prototype.
5024 (hppaelf_layaout_sections_again): Prototype.
5025 (hook_in_stub): Prototype.
5026 (LDEMUL_SET_OUTPUT_ARCH): Define.
5027 (LDEMUL_FINISH): Define.
5028 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5030 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5031 (EXTRA_EM_FILE): New.
5032 * emulparams/armelf_linux.sh: Likewise.
5033 * emulparams/armelf_linux26.sh: Likewise.
5034 * emulparams/hppalinux.sh: Likewise.
5035 * emulparams/hppaelf.sh: Likewise.
5038 * emultempl/elf32.em: Fix formatting.
5039 (EXTRA_EM_FILE): Source it.
5040 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5041 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5042 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5043 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5044 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5045 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5046 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5047 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5048 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5049 allow functions in this file to be overridden.
5050 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5052 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5054 * emultempl/elf32.em: Reorganize file.
5056 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5058 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5059 specific option to fit 64-bit executable in the lower
5060 31-bit address range. This is done by changing start
5061 address of .interp (the very first section of executable)
5062 and then setting EF_ALPHA_32BIT elf header flag.
5064 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5066 * emultempl/m68kcoff.em: New file.
5067 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5068 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5070 * Makefile.in: Regenerate.
5072 2000-07-20 H.J. Lu <hjl@gnu.org>
5074 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5075 and "disable-new-dtags" to stop getopt from treating -d/-e as
5076 abbreviations for these options.
5078 2000-07-20 H.J. Lu <hjl@gnu.org>
5080 * ld.texinfo: Add documentation for --disable-new-dtags and
5083 * ldmain.c (main): Initialize link_info.new_dtags to false.
5085 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5086 --disable-new-dtags and --enable-new-dtags.
5087 (gld_${EMULATION_NAME}_list_options): Likewise.
5089 2000-07-05 Kenneth Block <krblock@computer.org>
5091 * lexsup.c: Add optional style to demangle switch
5092 * ld.texinfo: Document optional style to demangle switch.
5094 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5096 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5098 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5099 Regenerate dependencies.
5100 * Makefile.in: Rebuild.
5101 * configure.tgt (cris-*-*): New target.
5102 * emulparams/crisaout.sh, emulparams/criself.sh,
5103 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5104 * po/POTFILES.in, po/ld.pot: Regenerate.
5106 2000-07-20 H.J. Lu <hjl@gnu.org>
5108 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5109 Print out ignored -z options.
5111 2000-07-19 H.J. Lu <hjl@gnu.org>
5113 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5114 (PARSE_AND_LIST_PROLOGUE): New.
5115 (PARSE_AND_LIST_LONGOPTS): Likewise.
5116 (PARSE_AND_LIST_OPTIONS): Likewise.
5117 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5119 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5121 * lexsup.c (ld_options): Comment out 'z'.
5122 (parse_args): Likewise.
5124 * emultempl/elf32.em: Include "elf/common.h".
5125 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5127 (gld_${EMULATION_NAME}_list_options): Likewise.
5129 * ld.texinfo: Add documentation for the recognized -z options.
5131 2000-07-19 H.J. Lu <hjl@gnu.org>
5133 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5134 bfd_elf_set_dt_needed_soname ().
5136 2000-07-18 DJ Delorie <dj@cygnus.com>
5138 * pe-dll.c (pe_dll_id_target): check object target name also
5140 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5142 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5143 ${INIT_END} if relocating.
5144 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5146 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5148 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5149 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5150 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5151 errors introduced by the old dynamic lib search order.
5153 2000-07-17 DJ Delorie <dj@cygnus.com>
5155 * pe-dll.c (process_def_file): auto-export data items also
5156 (pe_process_import_defs): also see if _imp_ form needed
5158 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5160 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5161 for dll import libraries
5163 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5165 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5166 gcc 2.95.2 and later.
5168 2000-07-11 Kazu Hirata <kazu@hxi.com>
5170 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5173 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5175 * ldemul.h (struct lang_input_statement_struct): Remove forward
5177 (struct search_dirs): Likewise.
5178 * ldfile.h (struct lang_input_statement_struct): Likewise.
5179 Protect file from multiple inclusion.
5180 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5181 declaration from macro to file scope.
5183 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5184 * ldgram.y: Likewise here.
5185 * ldlang.c: And here.
5186 * ldmain.c: And here.
5187 * mpw-elfmips.c: And here.
5188 * mpw-eppcmac.c: And here.
5189 * emultempl/aix.em: And here.
5190 * emultempl/armcoff.em: And here.
5191 * emultempl/armelf.em: And here.
5192 * emultempl/armelf_oabi.em: And here.
5193 * emultempl/beos.em: And here.
5194 * emultempl/elf32.em: And here.
5195 * emultempl/hppaelf.em: And here.
5196 * emultempl/linux.em: And here.
5197 * emultempl/lnk960.em: And here.
5198 * emultempl/pe.em: And here.
5199 * emultempl/sunos.em: And here.
5200 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5201 * mpw-idtmips.c: Ditto.
5202 * emultempl/generic.em: Ditto.
5203 * emultempl/gld960.em: Ditto.
5204 * emultempl/gld960c.em: Ditto.
5205 * emultempl/mipsecoff.em: Ditto.
5206 * emultempl/ticoff.em: Ditto.
5207 * emultempl/vanilla.em: Ditto.
5209 * pe-dll.c: Include ldfile.h
5210 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5212 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5213 arguments to bfd_elf32_size_dynamic_sections call.
5214 (gldelf32ebmip_place_orphan): Add missing arguments to
5215 lang_leave_output_section_statement call.
5217 2000-07-10 H.J. Lu <hjl@gnu.org>
5219 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5221 (strhash): Likewise.
5222 (compute_dll_image_base): Likewise.
5223 (pe_undef_found_sym): Likewise.
5224 (pe_undef_cdecl_match): Likewise.
5225 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5226 argument "arch" with ATTRIBUTE_UNUSED.
5228 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5230 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5232 From Ryan Bradetich <rbradetich@uswest.net>
5233 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5235 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5237 Changes to create multiple linker stubs, positioned immediately
5238 before the section where they are required.
5239 * emultempl/hppaelf.em: Include elf32-hppa.h.
5240 (stub_sec, file_chain): Delete.
5241 (hppaelf_create_output_section_statements): Don't make a stub
5243 (hook_stub_info): New struct.
5244 (hook_in_stub): New function.
5245 (hppaelf_add_stub_section): New function.
5246 (hppaelf_finish): Do nothing for relocateable links. Modify the
5247 call to elf32_hppa_size_stubs. Move code for updating section
5249 (hppaelf_layaout_sections_again): ..to here, a new function.
5251 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5252 broken list handling. Pass in a pointer to the list.
5253 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5255 (hppaelf_before_parse): Prototype.
5256 (hppaelf_set_output_arch): Prototype.
5257 (hppaelf_create_output_section_statements): Prototype.
5258 (hppaelf_delete_padding_statements): Prototype.
5259 (hppaelf_finish): Prototype.
5262 * emultempl/hppaelf.em: Include ctype.h.
5263 (struct orphan_save): New.
5264 (gld${EMULATION_NAME}_place_orphan): New.
5265 (output_rel_find): New.
5266 (hppaelf_get_script): Update from elf32.em.
5267 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5268 Change emulation_name field to "${EMULATION_NAME}". Add
5269 gld${EMULATION_NAME}_place_orphan.
5271 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5272 ehppalinux.o, sort it. Regenerate dependencies.
5273 (ehppalinux.c): Depend on hppaelf.em
5274 * Makefile.in: Regenerate.
5276 * configure.tgt: targ_emul=hppalinux for hppa*linux
5278 * emulparams/hppalinux.sh: New.
5279 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5281 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5283 * lexsup.c (parse_args): Copy section name.
5285 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5287 * emultempl/pe.em: institute the following search order for
5288 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5289 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5290 static lib (libfoo.a) if none of the above are found.
5292 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5294 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5295 (longopts): New --{enable,disable}-auto-image-base options.
5296 (gld_${EMULATION_NAME}_list_options): Document.
5297 (gld_${EMULATION_NAME}_parse): Handle.
5298 (strhash): New static function.
5299 (compute_dll_image_base): New static function.
5300 (gld_${EMULATION_NAME}_set_symbols): Use.
5302 2000-07-05 DJ Delorie <dj@redhat.com>
5306 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5308 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5309 * emulparams/elf32btsmip.sh: New file.
5310 * Makefile.am: Add traditional mips target.
5311 * Makefile.in: Rebuild.
5313 2000-07-01 H.J. Lu <hjl@gnu.org>
5315 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5316 automake to use YLWRAP.
5317 * Makefile.in: Rebuild.
5319 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5321 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5322 (CLEANFILES): Add DEPA.
5323 * Makefile.in: Regenerate.
5325 2000-06-30 Timothy Wall <twall@ppc>
5327 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5328 the page in the upper octet of the address.
5330 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5332 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5334 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5336 * NEWS: arm-elf does --gc-sections too.
5338 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5340 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5342 * Makefile.in: Regenerate.
5344 2000-06-21 H.J. Lu <hjl@gnu.org>
5346 * Makefile.am: Rebuild dependency.
5347 * Makefile.in: Rebuild.
5349 2000-06-20 H.J. Lu <hjl@gnu.org>
5351 * Makefile.am: Rebuild dependency.
5352 * Makefile.in: Rebuild.
5354 2000-06-20 Timothy Wall <twall@cygnus.com>
5356 * scripttempl/tic54xcoff.sc: New.
5357 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5358 * gen-doc.texi: Add flag for TI COFF.
5359 * ld.texinfo: Add documentation for TI COFF handling switches.
5360 * emultempl/ticoff.em: New. TI COFF handling.
5361 * configure.tgt: Add tic54x target.
5362 * Makefile.am: Add tic54x target.
5363 * Makefile.in: Ditto.
5365 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5367 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5368 checking for backslashes.
5370 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5372 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5374 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5376 * NEWS: Update list of targets supporting --gc-sections.
5378 * scripttempl/elf.sc: KEEP .eh_frame contents.
5379 * scripttempl/elfd30v.sc: Same here.
5381 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5383 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5385 * Makefile.in: Rebuild.
5386 * configure.tgt: Recognize m68hc12 and m68hc11.
5387 * scripttempl/elfm68hc12.sc: New file.
5388 * emulparams/m68hc12elfb: New emulation.
5389 * emulparams/m68hc12elf: New emulation.
5390 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5391 (includes a memory.x script to define the ROM and RAM banks).
5392 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5393 New configuration files for support of Motorola 68hc11
5395 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5397 * ldmain.c (main): Only change SEC_READONLY for final link.
5399 2000-06-13 H.J. Lu <hjl@gnu.org>
5401 * configure: Regenerate.
5403 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5405 * configure.in (VERSION): Update to show this is the CVS mainline.
5407 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5409 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5410 input objects to be ECOFF.
5411 (check_sections): einfo takes %B, not %P, to print a BFD name.
5413 2000-06-05 Michael Matz <matz@ifh.de>
5415 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5418 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5420 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5422 * emulparams/avr1200.sh (STACK): Define as 0.
5423 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5424 * emulparams/avr4433.sh (STACK): Likewise.
5425 * emulparams/avr44x4.sh (STACK): Likewise.
5426 * emulparams/avr85xx.sh (STACK): Likewise.
5427 * emulparams/avrmega103.sh (STACK): Likewise.
5428 * emulparams/avrmega161.sh (STACK): Likewise.
5429 * emulparams/avrmega603.sh (STACK): Likewise.
5430 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5431 (__stack): Define from ${STACK} for main().
5433 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5435 * Makefile.am: Update dependencies with "make dep-am"
5436 * Makefile.in: Regenerate.
5438 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5440 * ldmain.c: Include filenames.h.
5441 (set_scripts_dir): Support backslashes in program name.
5443 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5445 * ldmain.c (main): When deciding if ".text" section should be
5446 read-only, don't forget to reset SEC_READONLY because it
5447 could be already set.
5449 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5451 * ld.1: Add documentation for new command line option:
5452 --section-start <sectionname>=<sectionorg>
5453 This is a generic version of -Ttext etc. which accepts
5454 any section name as a parameter instead of just text/data/
5456 * ld.texinfo: More docs.
5458 * lexsup.c: (parse_args): Recognize new command line option.
5459 (ld_options): Add new option.
5461 2000-05-18 H.J. Lu <hjl@gnu.org>
5463 * lexsup.c (parse_args): `i' == `r', not `q'.
5465 2000-05-18 Jeffrey A Law (law@cygnus.com)
5467 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5469 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5470 Rick Gorton <gorton@scrugs.lkg.dec.com>
5472 Add support for '-q' == '--emit-relocs' switch.
5473 * ldmain.c (main): Default to false.
5474 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5475 * NEWS: Describe the emitrelocations switch.
5476 * ld.texinfo: Describe the emitrelocations switch.
5478 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5480 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5481 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5482 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5485 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5487 * lexsup.c (parse_args): Update the year in the copyright notice.
5489 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5491 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5492 Replace defines with those from intl/libgettext.h to quieten gcc
5495 2000-05-10 H.J. Lu <hjl@gnu.org>
5497 * ldlang.c (open_input_bfds): Don't load the same file within
5498 a group again if the whole archive has been loaded already.
5500 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5502 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5503 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5506 2000-05-01 Jim Wilson <wilson@cygnus.com>
5508 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5510 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5511 host "ia64-*-linux-gnu*".
5513 2000-04-29 Andreas Jaeger <aj@suse.de>
5515 * ld.h: Correctly check GCC version.
5517 2000-04-25 Jeffrey A Law (law@cygnus.com)
5519 * Makefile.am: Add PA64 support. Add missing dependencies for
5521 * Makefile.in: Rebuilt.
5522 * configure.tgt: Add PA64 support (currently disabled).
5524 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5526 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5527 (output_rel_find): New function.
5528 (hold_section, hold_use): Delete.
5529 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5530 hold_interp): Make local to place_orphan.
5531 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5532 rather than place_section to find possible previous use of orphan.
5533 Similarly find the place-holder output sections. Use returned
5534 value from lang_enter_output_section_statement rather than calling
5535 lang_output_section_statement_lookup.
5536 * emultempl/armelf.em: Same here.
5537 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5539 * ldlang.c (lang_enter_output_section_statement): Return output
5541 * ldlang.h (lang_enter_output_section_statement): Change
5544 * ldlang.h (lang_output_section_statement): Export it.
5545 * ldlang.c (lang_output_section_statement): Ditto.
5547 2000-04-24 Nick Clifton <nickc@cygnus.com>
5549 * ld.texinfo (Output Section Data): Add note that section data
5550 commands cannot appear outside of section directives.
5552 2000-04-2 Matthew Green <mrg@cygnus.com>
5554 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5556 2000-04-21 Richard Henderson <rth@cygnus.com>
5557 David Mosberger <davidm@hpl.hp.com>
5559 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5560 (eelf64_ia64.c): New rule.
5561 * Makefile.in: Rebuild.
5562 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5563 * emulparams/elf64_ia64.sh: New file.
5565 2000-04-21 Richard Henderson <rth@cygnus.com>
5567 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5569 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5571 * dep-in.sed: Match space at start of file name, not at end.
5573 2000-04-18 H.J. Lu <hjl@gnu.org>
5575 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5576 lang_leave_output_section_statement () after calling
5577 lang_enter_output_section_statement ().
5578 * emultempl/armelf.em: Likewise.
5580 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5582 * emultempl/elf32.em (struct orphan_save): Add section field.
5583 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5584 better order, and place first orphan section as we did before the
5585 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5586 Don't call make_bfd_section here, let wild_doit do the job for us.
5587 Don't build a statement list when we'll only throw it away.
5588 * emultempl/armelf.em: Ditto.
5589 * emultempl/pe.em: Similarly.
5591 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5593 * scripttempl/elfppc.sc: Remove.
5594 * emulparams/elf32ppc.sh: Use elf.sc.
5595 * emulparams/elf32lppc.sh: Use elf.sc.
5596 * emulparams/elf32ppclinux.sh: Use elf.sc.
5597 * emulparams/elf32ppcsim.sh: New file.
5598 * emulparams/elf32lppcsim.sh: New file.
5599 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5600 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5601 * Makefile.in: Regenerate.
5602 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5604 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5606 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5607 ~SEC_ALLOC sections too. Init start address of debug sections.
5608 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5609 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5610 Also set all relocateable section start addresses.
5612 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5614 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5615 Add new BSS_PLT variable for when .plt need not be contained in
5616 the file. Move _etext so that it is also after .fini, and provide
5617 both etext and _etext with a leading underscore. Mark the start
5620 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5622 * emultempl/elf32.em (struct orphan_save): New.
5623 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5624 hold_interp): Make them struct orphan_save.
5625 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5626 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5627 the end of the relevant section list. Also add associated section
5628 statements to the end of any previous orphan statements.
5629 * emultempl/armelf.em: Similarly.
5630 * emultempl/pe.em: Similarly.
5632 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5634 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5636 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5638 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5639 --enable-build-warnings option.
5640 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5641 * Makefile.in, configure: Re-generate.
5643 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5645 * po/ld.pot: Regenerate.
5647 * lexsup.c (help): Restore translated part of bug string.
5649 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5650 (DEP): Quote when passing vars to sub-make. Add warning message
5652 (DEP1): Rewrite for "gcc -MM".
5653 (CLEANFILES): Add DEP2.
5654 Update dependencies.
5655 * Makefile.in: Regenerate.
5657 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5659 * ld.h: #include "bin-bugs.h"
5660 * lexsup.c (help): Use REPORT_BUGS_TO.
5662 2000-03-27 Denis Chertykov <denisc@overta.ru>
5664 * configure.tgt (avr-*-*): New target support.
5665 * Makefile.am: Likewise.
5666 * scripttempl/elf32avr.sc: New script file.
5667 * emulparams/avr1200.sh: New file.
5668 * emulparams/avr23xx.sh: New file.
5669 * emulparams/avr4433.sh New file.
5670 * emulparams/avr44x4.sh New file.
5671 * emulparams/avr85xx.sh New file.
5672 * emulparams/avrmega103.sh New file.
5673 * emulparams/avrmega161.sh New file.
5674 * emulparams/avrmega603.sh New file.
5675 * Makefile.in: Regenerate.
5677 2000-03-09 Andreas Jaeger <aj@suse.de>
5679 * Makefile.am (check-DEJAGNU): Also unset LANG.
5680 * Makefile.in: Rebuild.
5682 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5684 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5687 2000-03-02 H.J. Lu <hjl@gnu.org>
5689 * emulparams/elf32mcore.sh: Include "getopt.h".
5691 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5693 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5695 2000-03-01 H.J. Lu <hjl@gnu.org>
5697 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5698 * emulparams/shpe.sh: Likewise.
5700 2000-03-01 Nick Clifton <nickc@cygnus.com>
5702 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5703 to unused parameters.
5705 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5706 functions only used by DLL code.
5707 (_place_orphan): Initialise 'dollar'.
5709 2000-03-01 H.J. Lu <hjl@gnu.org>
5711 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5712 indicate if the undefined symbol is a fatal error or not.
5713 Don't delete the output file if "fatal" is false.
5715 2000-02-29 H.J. Lu <hjl@gnu.org>
5717 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5718 Set LC_COLLATE and LC_ALL to null and export them. It is for
5719 sort which expects the C locale.
5720 Add $(LIBS) to all $(HOSTING_LIBS).
5721 * Makefile.in: Rebuild.
5723 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5725 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5726 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5727 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5728 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5729 find_potential_libraries.
5731 2000-02-28 Jim Blandy <jimb@redhat.com>
5733 * ldgram.y (exclude_name_list): Don't require a comma to separate
5734 list entries; the lexer considers commas to be valid part of a
5735 filename, so in something like `foo, bar' the comma is considered
5736 part of the first filename, `foo,'.
5737 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5739 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5741 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5742 host "i[3456]86-*-freebsdelf*".
5744 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5746 * scripttempl/i386go32.sc: Move misplaced semicolons.
5748 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5750 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5751 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5752 (eelf64hppa.c, ehppaelf.c): Remove targets.
5753 * Makefile.in: Rebuild.
5755 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5757 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5758 GNU/Linux/sparc, but keep the default as 32.
5760 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5761 it default if sparcv9 or sparc64.
5763 2000-02-24 Nick Clifton <nickc@cygnus.com>
5765 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5766 * Makefile.in: Regenerate.
5767 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5769 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5770 find_potential_libraries.
5771 * ldemul.c (ldemul_find_potential_libraries): New function.
5773 * ldfile.c (ldfile_open_file_search): Allow function to be
5775 (ldfile_open_file): Call ldemul_find_potential_libraries.
5776 * ldfile.h: Add prototype for ldfile_open_file_search.
5778 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5780 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5781 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5783 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5784 (gld_X_find_potential_libraries): New function. Search for
5785 libraries called "*.lib".
5787 * scripttempl/pe.sc: Add .pdata section.
5789 2000-02-23 Richard Henderson <rth@cygnus.com>
5791 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5792 Add and use memory regions.
5794 2000-02-23 Linas Vepstas (linas@linas.org)
5796 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5798 * Makefile.am: Add support for Linux/IBM 370.
5799 * configure.tgt: Likewise.
5801 * Makefile.in: Regenerate.
5803 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5805 * ldlang.c (print_input_section, print_data_statement,
5806 print_reloc_statement, print_padding_statement, insert_pad,
5807 size_input_section, lang_check_section_addresses,
5808 lang_size_sections, lang_do_assignments, lang_set_startof,
5809 lang_one_common): Change `opb' to unsigned.
5810 (lang_do_assignments): Also change `size' to unsigned.
5812 2000-02-16 Richard Henderson <rth@cygnus.com>
5814 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5816 2000-02-16 Timothy Wall <twall@cygnus.com>
5818 * mri.c (mri_draw_tree): Add default LMA region argument to call
5819 to lang_leave_output_section_statement.
5820 * ldlang.h: Update prototypes with LMA region arguments.
5821 * ldlang.c (lang_size_sections): Encapsulate region bounds
5822 checking in os_check_region call.
5823 (os_check_region): New function.
5824 (lang_output_section_statement_lookup): Initialize lma_region.
5825 (lang_leave_output_section_statement): Add LMA region argument.
5826 (lang_leave_overlay): Ditto.
5827 * ldgram.y: Handle LMA region syntax.
5828 * ld.texinfo (Output Section Description): Describe LMA region usage.
5829 * emultempl/armelf.em (gld$place_orphan): Add default value for
5830 lma region in call to lang_leave_output_section_statement.
5831 * emultempl/elf32.em (gld$place_orphan): Add default value for
5832 lma region in call to lang_leave_output_section_statement.
5833 * emultempl/pe.em (gld$place_orphan): Add default value for
5834 lma region in call to lang_leave_output_section_statement.
5837 2000-02-04 Timothy Wall <twall@redhat.com>
5839 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5840 octets when calculating section end addresses.
5842 2000-02-04 Timothy Wall <twall@redhat.com>
5844 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5846 2000-02-03 Timothy Wall <twall@redhat.com>
5848 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5850 * ldlang.c (print_input_section, print_data_statement,
5851 print_reloc_statement, print_padding_statement): Print target
5852 address values and section sizes as bytes, not octets.
5853 (insert_pad) Calculate padding size in octets, and adjust "dot"
5855 (size_input_section) Always adjust "dot" by bytes, not octets.
5856 (lang_check_section_addresses, lang_do_assignments) Adjust
5857 "dot" by bytes, not octets. Use the larger of the directive size
5858 or octets_per_byte for the number of octets actually allocated in
5860 (lang_set_startof) Make sure STARTOF returns a target address.
5861 (lang_one_common) Record size changes in octets.
5862 (lang_abs_symbol_at_end_of) Section end symbol's value is
5863 recorded in target bytes.
5864 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5865 to be clear about behavior when an octet is smaller than one byte.
5867 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5869 * ldcref.c (output_cref): Don't pass message strings to printf
5873 * ldmisc.c (vfinfo): Same here.
5876 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5878 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5879 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5880 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5881 Add missing NULL initialisers, and comments.
5883 2000-01-21 Nick Clifton <nickc@cygnus.com>
5885 * ldlang.c (lang_size_sections): Fix typo in comment.
5887 2000-01-18 H.J. Lu <hjl@gnu.org>
5889 * ldlang.c (lang_size_sections): Also update the current
5890 address of a region if the SEC_NEVER_LOAD bit is not set.
5892 2000-01-10 Philip Blundell <pb@futuretv.com>
5894 * configure.tgt (arm*-*-conix*): New target.
5896 2000-01-07 Nick Clifton <nickc@cygnus.com>
5898 * ld.texinfo (Options): Remind users to preceed linker command
5899 line switches with -Wl, (or whatever is appropriate) if it is
5900 being invoked by a comnpiler driver program.
5901 Fix description of the behaviour of the -n command line switch.
5903 2000-01-05 Catherine Moore <clm@cygnus.com>
5905 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5907 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5908 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5909 (exclude_name_list): New.
5910 ldlang.c (walk_wild_section): Support list of excluded files.
5911 (print_wild_statement): Likewise.
5912 (lang_add_wild): Likewise.
5913 * ldlang.h (lang_wild_statement_type): Likewise.
5914 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5916 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5918 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5919 (process_def_file): Use.
5920 (pe_dll_compat_implib): New variable.
5923 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5924 pe_dll_compat_implib.
5926 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5927 compat-implib options.
5928 (gld_${EMULATION_NAME}_list_options): List new options.
5929 (gld_${EMULATION_NAME}_parse_args): Handle.
5931 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5934 * deffilep.y (opt_name): Allow "." in name.
5936 For older changes see ChangeLog-9899
5942 version-control: never