1 2003-06-25 Alan Modra <amodra@bigpond.net.au>
3 * ld.texinfo: Correct spelling of "relocatable".
7 * ldint.texinfo: Likewise
12 * emultempl/aix.em: Likewise
13 * emultempl/alphaelf.em: Likewise
14 * emultempl/armcoff.em: Likewise
15 * emultempl/armelf_oabi.em: Likewise
16 * emultempl/beos.em: Likewise
17 * emultempl/elf32.em: Likewise
18 * emultempl/generic.em: Likewise
19 * emultempl/gld960.em: Likewise
20 * emultempl/gld960c.em: Likewise
21 * emultempl/hppaelf.em: Likewise
22 * emultempl/linux.em: Likewise
23 * emultempl/lnk960.em: Likewise
24 * emultempl/m68hc1xelf.em: Likewise
25 * emultempl/m68kcoff.em: Likewise
26 * emultempl/m68kelf.em: Likewise
27 * emultempl/mipsecoff.em: Likewise
28 * emultempl/mipself.em: Likewise
29 * emultempl/mmix-elfnmmo.em: Likewise
30 * emultempl/mmo.em: Likewise
31 * emultempl/needrelax.em: Likewise
32 * emultempl/pe.em: Likewise
33 * emultempl/ppc64elf.em: Likewise
34 * emultempl/sh64elf.em: Likewise
35 * emultempl/sunos.em: Likewise
36 * emultempl/ticoff.em: Likewise
37 * emultempl/xtensaelf.em: Likewise
39 2003-06-24 Alan Modra <amodra@bigpond.net.au>
41 * emultempl/ppc32elf.em: Convert to C90.
43 2003-06-20 Alan Modra <amodra@bigpond.net.au>
45 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
46 unnecessary prototypes and casts.
48 2003-06-19 Alan Modra <amodra@bigpond.net.au>
50 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
51 statistics from ppc64_elf_build_stubs.
53 2003-06-19 Alan Modra <amodra@bigpond.net.au>
55 * emultempl/ppc64elf.em (build_section_lists): Check return status
56 from ppc64_elf_next_input_section.
58 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
60 * ldlang.c (section_already_linked): Put back assignment of
63 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
65 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
68 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
70 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
71 if not produced by gcc.
73 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
75 * configure.tgt: Add specific case for cris-*-linux-gnu*
76 with crislinux emulation only.
78 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
80 * configure.tgt: Add i386-netbsd-gnu target.
82 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
84 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
85 to $targ_extra_libpath.
87 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
89 * po/Make-in (DESTDIR): New.
90 (install-data-yes): Support $(DESTDIR).
91 (uninstall): Likewise.
93 2003-06-10 Doug Evans <dje@sebabeach.org>
95 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
96 * Makefile.in: Regenerate.
98 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
100 * configure.tgt (h8300*): Add h8300sxn emulations.
101 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
102 (eh8300sxn.c, eh8300sxnelf.c): New rules.
103 * Makefile.in: Regenerate.
104 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
105 * scripttempl/h8300sxn.sc: New file.
107 2003-06-10 Alan Modra <amodra@bigpond.net.au>
109 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
110 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
112 2003-06-08 Alan Modra <amodra@bigpond.net.au>
114 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
115 (build_toc_list): New function.
116 (gld${EMULATION_NAME}_finish): Call build_toc_list and
117 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
118 (OPTION_STUBSYMS): Define.
119 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
120 (PARSE_AND_LIST_OPTIONS): Document.
121 (PARSE_AND_LIST_ARGS_CASES): Handle.
123 2003-06-05 Roland McGrath <roland@redhat.com>
125 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
126 extra \t in -z noexecstack line.
128 2003-05-23 Jakub Jelinek <jakub@redhat.com>
130 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
131 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
132 -z execstack and -z noexecstack.
133 (gld${EMULATION_NAME}_list_options): Likewise.
134 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
136 2003-06-03 Michael Snyder <msnyder@redhat.com>
137 and Bernd Schmidt <bernds@redhat.com>
138 and Alexandre Oliva <aoliva@redhat.com>
140 * Makefile.am: Add new emulations for h8300sx.
141 * Makefile.in: Regenerate.
142 * configure.tgt: Add new emulations.
143 * emulparams/h8300sx.sh: New emulation.
144 * emulparams/h8300sxelf.sh: Ditto.
145 * scripttempl/h8300sx.sc: Ditto.
147 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
149 * ldmisc.c: Include "bfdlink.h".
150 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
151 and -LD_DEFINITION_IN_DISCARDED_SECTION.
153 * Makefile.am: Rebuild dependency.
154 * Makefile.in: Regenerated.
156 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
158 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
159 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
161 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
163 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
164 sorted alphabetically, instead of exported_symbols, which is
167 2003-05-30 Ulrich Drepper <drepper@redhat.com>
168 Jakub Jelinek <jakub@redhat.com>
170 * lexsup.c (OPTION_PIE): Define.
171 (ld_options): Add -pie and --pic-executable options.
172 (parse_args): Handle OPTION_PIE.
173 * ldmain.c (main): Initialize link_info.pie and
174 link_info.executable.
175 * genscripts.sh: Generate PIE scripts.
176 * ld.texinfo: Document -pie and --pic-executable options.
177 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
178 (gld${EMULATION_NAME}_place_orphan): Likewise.
179 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
180 * scripttempl/elf.sc: In PIE scripts set . the same way as in
182 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
183 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
184 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
185 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
186 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
187 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
188 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
189 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
190 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
191 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
192 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
194 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
196 * genscripts.sh: Create tmpdir/libpath.exp.
198 2003-05-30 Nick Clifton <nickc@redhat.com>
200 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
201 with a test for a NULL bfd_for_interworking.
203 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
205 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
206 correctly for more recent versions of NetBSD.
207 (alpha*-*-netbsd*): Remove.
208 (i[3-7]86-*-netbsd*): Remove.
210 2003-05-29 Nick Clifton <nickc@redhat.com>
212 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
214 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
216 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
217 trap on pointer crops.
219 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
221 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
222 as well as shle-...-netbsdelf.
224 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
226 * configure.host: Accept i[3-7]86 variants.
227 * configure.tgt: Likewise.
229 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
231 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
233 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
235 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
236 (earmelfb.c, earmelfb_linux.c): New rules.
237 * Makefile.in: Regenerated.
238 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
239 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
241 2003-05-09 Nick Clifton <nickc@redhat.com>
243 * ldlang.c (lang_size_sections_1): Default to generating a
244 fatal error message if a loadable section is not allocated
245 to a memory region when regions are defined.
247 2003-05-09 Alan Modra <amodra@bigpond.net.au>
249 * Makefile.am (em68hc11elf.c): Correct dependencies.
250 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
251 * Makefile.in: Regenerate.
252 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
253 bfd_elf_record_link_assignment name.
255 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
257 * ldmain.h (overflow_cutoff_limit): Declare.
258 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
259 (reloc_overflow): Limit error messages based on it.
260 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
263 2003-05-05 Alan Modra <amodra@bigpond.net.au>
265 * ldlex.l: Accept C style comments in version scripts.
267 2003-04-28 H.J. Lu <hjl@gnu.org>
269 * ldlang.c (lang_process): Add the relax finalize pass.
271 * ldmain.c (main): Initialize link_info.relax_finalizing to
274 2003-04-24 Roland McGrath <roland@redhat.com>
276 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
277 If a name string is unknown, give an error rather than crashing later.
279 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
281 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
282 eh8300hnelf.o, eh8300snelf.o and respective rules.
283 * Makefile.in: Regenerate.
284 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
285 * emulparams/h8300hn.sh: New
286 * emulparams/h8300sn.sh: New
287 * emulparams/h8300hnelf.sh: New
288 * emulparams/h8300snelf.sh: New
289 * scripttempl/h8300hn.sc: new
290 * scripttempl/h8300sn.sc: new
292 2003-04-23 H.J. Lu <hjl@gnu.org>
294 * ldmain.c (link_callbacks): Initialize error_handler.
296 * ldmisc.c (error_handler): New function.
298 * ldmisc.h (error_handler): New prototype.
300 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
302 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
303 * emulparams/m68hc11elfb.sh: Likewise.
304 * emulparams/m68hc12elf.sh: Likewise.
305 * emulparams/m68hc12elfb.sh: Likewise.
307 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
309 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
311 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
313 (LDEMUL_FINISH): Override to generate the trampolines after gc and
315 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
316 stub file for trampolines.
317 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
318 --no-trampoline and --bank-window to control the memory bank window.
320 2003-04-18 H.J. Lu <hjl@gnu.org>
322 * ldfile.c (ldfile_add_library_path): Remove the unused
325 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
327 * scripttempl/xstormy16.sc (__data, __rdata): New.
329 2003-04-16 Nick Clifton <nickc@redhat.com>
331 * scripttempl/xstormy16.sc: Add .jcr section mapping.
333 2003-04-15 H.J. Lu <hjl@gnu.org>
335 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
337 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
339 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
341 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
342 * ld.texinfo: Likewise.
344 2003-04-14 Alan Modra <amodra@bigpond.net.au>
346 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
347 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
348 other variants of crtbegin.o, crtend.o.
350 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
351 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
352 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
353 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
354 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
355 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
356 * scripttempl/mmo.sc (ctors, dtors): Likewise.
357 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
359 2003-04-09 Dmitry Diky <diwil@mail.ru>
361 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
362 sections to respect C++ constructor/destructor. Add ctors/dtors
363 start/stop definitions.
364 * scripttempl/elf32msp430_3.sc: Likewise.
366 2003-04-06 Nick Clifton <nickc@redhat.com>
368 * ld.texinfo (Options): Add a reminder of the target specific
369 nature to the description of the i386 PE specific options, for
370 readers who have not read all the way through the manual.
372 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
374 * configure.tgt: Fixed bug in list of targ_extra_emuls.
375 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
376 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
377 * emulparams/tic3xcoff_onchip.sh: Ditto
378 * emulparams/tic4xcoff.sh: Ditto
379 * scripttempl/tic4xcoff.sc: Ditto
381 2003-04-03 Nick Clifton <nickc@redhat.com>
383 * NEWS: Mention support for Xtensa architecture.
385 2003-04-02 Nick Clifton <nickc@redhat.com>
387 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
389 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
391 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
392 Don't call pe_dll_build_section() if link_info.relocateable.
393 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
394 if link_info.relocateable.
396 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
398 * pe-dll.c (process_def_file): Don't create an export
399 section if there are no exports and we're building an exe
400 (pe_dll_build_sections): Ditto
401 (pe_dll_fill_sections): Conditionalize setting
402 abfd->dll true on info->shared
403 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
404 If i386pe or armpe, call pe_dll_build_section()
405 for both exe's and dll's, not just dll's.
406 (gld_${EMULATION_NAME}_finish): For all targets except
407 shpe and mipspe, call pe_dll_fill_sections() for both
408 exe's and dll's, not just dll's.
410 2003-04-02 Bob Wilson <bob.wilson@acm.org>
412 * emulparams/xtensa-config.sh: Remove comment indicating that this is
415 2003-04-01 Bob Wilson <bob.wilson@acm.org>
417 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
418 (eelf32xtensa.c): New target.
419 * Makefile.in: Regenerate.
420 * configure.tgt: Handle xtensa-*-*.
421 * gen-doc.texi: Set XTENSA variable.
422 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
423 * emulparams/elf32xtensa.sh: New file.
424 * emulparams/xtensa-config.sh: Likewise.
425 * emultempl/xtensaelf.em: Likewise.
426 * scripttempl/elfxtensa.sc: Likewise.
428 2003-04-01 Jakub Jelinek <jakub@redhat.com>
430 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
431 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
432 if --enable-64-bit-bfd.
434 2003-04-01 Nick Clifton <nickc@redhat.com>
436 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
438 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
439 name of note section.
441 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
443 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
446 2003-03-31 David Heine <dlheine@suif.stanford.edu>
448 * ldfile.c (ldfile_add_library_path): Always allocate space for
450 * ldlang.c (lang_register_vers_node): Free the node if it cannot
452 * ldmain.c (set_scripts_dir): Always free the constructed
454 (add_keepsyms_file): Fix memory leak.
455 * ldmisc.c (vfinfo): Likewise.
456 * lexsup.c (parse_args): Likewise.
458 2003-03-25 Stan Cox <scox@redhat.com>
459 Nick Clifton <nickc@redhat.com>
461 Contribute support for Intel's iWMMXt chip - an ARM variant:
463 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
464 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
465 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
468 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
470 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
471 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
472 (main): Initialize them.
473 * ldfile.c: Include pathnames.h.
474 (is_sysrooted_pathname): New.
475 (ldfile_add_library_path): Use it.
476 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
477 search_dirs if given an absolute pathname.
478 (ldfile_open_file): Issue error message for sysrooted
480 * Makefile.am: Updated dependencies.
481 * Makefile.in: Rebuild.
483 2003-03-24 Daniel Néri <dne@mayonnaise.net>
485 * ld.texinfo: Rename all occurances of C54X to TIC54X.
487 2003-03-19 Andreas Schwab <schwab@suse.de>
489 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
492 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
494 * defilep.y (opt_base): If no number given, set to default
497 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
499 * deffilep.y (def_import): Use default extension of "dll"
500 if no extension provided in parsed IMPORT definition.
502 * deffilep.y (def_lex): Revert 2003-03-12 change.
503 (dot_name): New id type and rule.
504 (expline): Use instead of ID.
505 (opt_equal_name): Likewise.
507 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
509 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
511 2003-03-07 Christopher Faylor <cgf@redhat.com>
513 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
514 apparent accidental removal on 2003-01-06.
516 2003-03-04 Dmitry Diky <diwil@mail.ru>
518 * Makefile.am: Add new devices x1122 x1132 emulation
519 * configure.tgt: Likewise.
520 * Makefile.in: Regenerate.
521 * emulparams/msp430x1122.sh: New file.
522 * emulparams/msp430x1132.sh: New file.
524 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
526 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
529 * ldfile.h (struct search_dirs): Added sysrooted field.
530 * ldlang.h (struct lang_input_statement_struct): Likewise.
531 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
532 (ldfile_open_file_search): Look for sysrooted filename starting
533 with / in ld_sysroot instead of in the current directory. Clear
534 sysrooted flag if it's found in the current directory. Set it
535 from the search directory's sysrooted flag where it is found
537 * ldlang.c (ldlang_sysrooted_script): New static variable.
538 (new_afile): Mark search_file_enums as sysrooted if
539 ldlang_sysrooted_script.
540 (load_symbols): Set ldlang_sysrooted_script according to the
541 script's sysrooted field while processing it.
542 * ld.texinfo: Document INPUT behavior in sysroot.
544 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
546 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
548 2003-03-03 Alan Modra <amodra@bigpond.net.au>
550 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
551 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
552 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
553 PARSE_AND_LIST_EPILOGUE): Don't define.
554 * emultempl/alphaelf.em: New file.
556 2003-03-01 Alan Modra <amodra@bigpond.net.au>
558 * ldemul.c: Include getopt.h.
559 * emultempl/elf32.em: Include getopt.h earlier.
560 * emultempl/ticoff.em: Likewise.
562 2003-02-28 Alan Modra <amodra@bigpond.net.au>
564 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
565 support when scripts read from files.
567 2003-02-28 Alan Modra <amodra@bigpond.net.au>
569 * ldemul.c (ldemul_parse_args): Return FALSE by default.
570 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
573 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
574 (ldemul_parse_args): Return bfd_boolean. Formatting.
575 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
576 (ldemul_parse_args): Adjust.
577 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
578 Return bfd_boolean from parse_args.
579 * lexsup.c (parse_args): Malloc shortopts, longopts and
580 really_longopts. Call ldemul_add_options and ldemul_handle_option.
581 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
582 gld${EMULATION_NAME}_parse_args.
583 (gld${EMULATION_NAME}_handle_option): Likewise.
584 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
585 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
586 * emultempl/beos.em: Likewise.
587 * emultempl/pe.em: Likewise.
588 * emultempl/ticoff.em: Likewise.
589 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
590 (gld${EMULATION_NAME}_add_sysroot): Prototype.
591 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
593 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
594 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
595 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
596 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
598 * emultempl/generic.em: Likewise.
599 * emultempl/gld960.em: Likewise.
600 * emultempl/gld960c.em: Likewise.
601 * emultempl/linux.em: Likewise.
602 * emultempl/lnk960.em: Likewise.
603 * emultempl/m68kcoff.em: Likewise.
604 * emultempl/mipsecoff.em: Likewise.
605 * emultempl/sunos.em: Likewise.
606 * emultempl/vanilla.em: Likewise.
607 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
609 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
611 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
612 memory allocation error.
614 * Makefile.am (ldmain.o): Define TOOLBINDIR.
615 * Makefile.in: Rebuilt.
616 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
618 2003-02-21 Bob Wilson <bob.wilson@acm.org>
620 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
621 call os_region_check when it is set.
622 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
623 lang_size_sections_1.
624 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
625 only for the last call, not on every relaxation iteration.
626 * ldlang.h (lang_size_sections): Update prototype.
627 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
628 to lang_size_sections.
629 (pe_exe_fill_sections): Likewise.
630 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
631 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
632 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
633 (ppc_layout_sections_again): Likewise.
635 2003-02-21 Bob Wilson <bob.wilson@acm.org>
637 * gen-doc.texi: Set ARM and HPPA variables.
638 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
639 title capitalization more consistent. Add missing menu entries for
640 machine-specific sections and conditionalize them consistently.
641 Conditionalize text that is irrelevant when SingleFormat is set.
642 Add @group divisions to improve page breaks in long examples.
643 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
644 is correct. Remove "FIXME" comment about not using
645 @raisesections/@lowersections. Use @raisesections/@lowersections
646 consistently for machine-specific sections. Change to be more polite
647 about poor bug reports. Replace FDL appendix with include of fdl.texi.
648 Move WIN32 node to match its order in the menus.
649 * fdl.texi: New file.
651 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
653 * configure.in (TARGET_SYSTEM_ROOT): Set default to
654 ${exec_prefix}/${target_alias}/sys-root. Match explicit
655 '${exec_prefix}' (in addition to the expansion thereof) as
657 * configure: Rebuilt.
659 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
661 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
663 2003-02-20 Harri Porten <porten@kde.org>
665 * ldgram.y (vers_defns): Allow optional trailing semicolon in
668 2003-02-18 Alan Modra <amodra@bigpond.net.au>
670 * emultempl/ppc32elf.em: New file.
671 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
672 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
673 (eelf32lppcnto.c): Likewise.
674 (eelf32lppcsim.c): Likewise.
675 (eelf32ppcnto.c): Likewise.
676 (eelf32ppc.c): Likewise.
677 (eelf32ppc_fbsd.c): Likewise.
678 (eelf32ppcsim.c): Likewise.
679 (eelf32ppclinux.c): Likewise.
680 * Makefile.in: Regenerate.
682 2003-02-18 Alan Modra <amodra@bigpond.net.au>
684 * ld.texinfo: Remove spaces between @samp and opening brace.
686 2003-02-18 Alan Modra <amodra@bigpond.net.au>
688 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
690 (ppc_before_allocation): Don't do optimizations if wrong hash table.
691 (gld${EMULATION_NAME}_finish): Ditto.
693 2003-02-17 Nick Clifton <nickc@redhat.com>
695 * ldmain.c (main) Default allow_shlib_undefined to true.
696 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
697 (parse_args): Parse the new switch.
698 * ld.texinfo: Document new switch and default behaviour of
699 allowing undefined symbols in shared libraries.
701 2003-02-11 Dmitry Diky <diwil@mail.ru>
703 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
704 * scripttempl/elf32msp430_3.sc: Likewise.
706 2003-02-11 Uwe Stieber <uwe@wwws.de>
708 * configure.tgt: Add support for kaOS as cross build target
711 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
713 * hppaelf.em (group_size): Change default back to 1.
715 2003-02-09 Alan Modra <amodra@bigpond.net.au>
717 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
719 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
721 * hppaelf.em (group_size): Change default to -1.
723 2003-02-07 Nick Clifton <nickc@redhat.com>
725 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
727 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
728 no-pipeline-knowledge. This will prevent the getopt package from
729 thinking that there are any shorter abbreviations for
730 --no-pipeline-knowledge.
732 2003-02-07 Jakub Jelinek <jakub@redhat.com>
734 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
735 which already have it. Avoid duplicates.
737 2003-02-06 Jakub Jelinek <jakub@redhat.com>
739 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
740 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
741 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
743 2003-02-05 Alan Modra <amodra@bigpond.net.au>
745 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
746 call ppc64_elf_tls_optimize.
748 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
750 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
751 outside of GNU/Linux conditional.
753 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
755 * deffilep.y (def_get_module): New function: locate an already
757 * deffile.h (def_get_module): New prototype.
758 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
759 a dll multiple times.
761 2003-01-23 Alan Modra <amodra@bigpond.net.au>
763 * emultempl/sh64elf.em: Include elf32-sh64.h.
764 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
765 sh64_elf_section_data.
766 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
768 2003-01-23 Wu Yongwei <adah@netstd.com>
770 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
771 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
772 cross-80th-column-margin "an" to the next line.
774 2003-01-21 Nick Clifton <nickc@redhat.com>
776 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
777 * emulparams/tic3xcoff_onchip.sh: ...this.
778 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
779 * Makefile.in: Regenerate.
781 2003-01-21 Fabio Alemagna <falemagn@aros.org>
783 * configure.tgt: Handle i[3456]86-*-aros*
785 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
787 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
788 * Makefile.in: Regenerate
789 * configure.tgt: Added extra target emulations
790 * emulparams/tic3xcoff.sh: Remove old settings
791 * emulparams/tic4xcoff.sh: Ditto
792 * emulparams/tic3xcoff-onchip.sh: Added new
793 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
794 * scripttempl/tic3xcoff.sc: Remove
796 2003-01-17 Andreas Jaeger <aj@suse.de>
798 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
801 2003-01-16 Alan Modra <amodra@bigpond.net.au>
803 * Makefile.in: Regenerate.
805 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
807 * ld.texinfo (node WIN32): Some clarifications
808 and formatting fixups.
810 2003-01-09 Chris Demetriou <cgd@broadcom.com>
812 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
813 order, and handle (ignore) -mips32r2.
815 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
817 * ldmain.c (main): Make sure ld_sysroot is initialized.
819 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
821 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
823 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
824 (GENSCRIPTS): Add @use_sysroot@.
825 * Makefile.in: Regenerated.
826 * configure.host: Move setting of NATIVE_LIB_DIRS to...
827 * configure.tgt: ... here. Use ${target} instead of ${host}
829 * configure.in: Add --with-sysroot.
830 * configure: Regenerated.
831 * genscripts.sh: Accept use_sysroot option. Set new variables
832 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
833 $use_sysroot. Don't search $tool_lib if $use_sysroot.
834 * ldfile.c (ldfile_add_library_path): Handle leading '='.
835 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
836 (ld_sysroot): New variable.
837 (main): Initialize ld_sysroot.
838 * ldmain.h (ld_sysroot): New extern.
839 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
840 searching $EMULATION_LIBPATH.
841 (gld${EMULATION_NAME}_add_sysroot): New function.
842 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
843 (gld${EMULATION_NAME}_after_open): Likewise. Only search
844 environment variables if $NATIVE.
845 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
846 * NEWS: Mention --with-sysroot.
848 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
849 instead of setting LIB_PATH.
850 * emulparams/elf32ppc.sh: Likewise.
851 * emulparams/elf64_s390.sh: Likewise.
852 * emulparams/elf64_sparc.sh: Likewise.
853 * emulparams/elf64ppc.sh: Likewise.
854 * emulparams/elf_x86_64.sh: Likewise.
856 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
857 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
859 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
861 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
863 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
865 * Makefile.am (ldmain.o): Pass BINDIR.
866 * Makefile.in: Regenerated.
867 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
870 2003-01-02 Ben Elliston <bje@redhat.com>
872 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
873 (eelf32iq2000.c): New target.
874 * Makefile.in: Regenerate.
875 * configure.tgt: Handle iq2000-*-elf.
876 * emulparams/elf32iq10.sh: New file.
877 * emulparams/elf32iq2000.sh: New file.
878 * scripttempl/iq2000.sc: New file.
880 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
882 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
883 and _pei386_runtime_relocator to the exclude list.
885 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
887 * ldfile.c: Fix comment typos.
888 * ldlang.c: Likewise.
890 * pe-dll.c: Likewise.
892 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
894 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
895 * Makefile.am (ld.1): Depend on configdoc.texi
897 * Makefile.in: Regenerated.
899 2002-12-24 Dmitry Diky <diwil@mail.ru>
901 * Makefile.am: Add msp430 target.
902 * configure.tgt: Likewise.
903 * Makefile.in: Regenerate.
904 * emulparams/msp430x???.sh: New files. Linker script parameters
905 for various msp430 configurations.
906 * gen-doc.texi: Enable msp430 documenation.
907 * ld.texinfo: Document msp430 sections.
908 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
909 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
911 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
912 Charles Wilson <cwilson@ece.gatech.edu>
914 * config.in (HAVE_REALPATH): New entry.
915 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
917 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
919 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
922 2002-12-23 Alan Modra <amodra@bigpond.net.au>
924 * ldmain.c (main): Init "strip_discarded".
925 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
926 (OPTION_NO_STRIP_DISCARDED): Define.
927 (ld_options): Add "strip-discarded" and "no-strip-discarded".
928 (parse_args): Handle them.
930 2002-12-23 Nick Clifton <nickc@redhat.com>
932 * ld.h (struct args_type): Add new field
933 'accept_unknown_input_architecture'.
934 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
936 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
937 bfd_arch_get_compatible.
938 * ldfile.c (ldfile_try_open_bfd): Likewise.
939 * lexsup.c (ld_options): Add new command line switch
940 --accept-unknown-input-architecture and its inverse.
941 (parse_args): Handle --accept-unknown-input-architecture.
942 * ld.texinfo: Document new linker option.
943 * NEWS: Mention new linker option.
945 2002-12-20 Alan Modra <amodra@bigpond.net.au>
947 * ldmain.c (main): Re-order link_info initialization. Init all
950 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
952 * ld.texinfo: Clarify and extend the documentation
953 in the Machine Dependent, WIN32 section.
955 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
957 * ld.texinfo: Add win32 machine depending section.
958 * gen-doc.texi: Enable win32 machine depending section.
960 * configure.host: Add win32 library search path.
962 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
964 * emultempl/pe.em (pe_find_data_imports): Don't search for data
965 import when auto-import is disabled.
967 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
969 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
970 account for trailing '\0'.
972 2002-12-17 Nick Clifton <nickc@redhat.com>
974 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
975 so that it is not confused with -c.
977 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
978 Charles Wilson <cwilson@ece.gatech.edu>
980 * configure.in: Add check for realpath function.
981 * configure: Regenerate.
982 * config.in: Regenerate.
983 * aclocal.m4: Regenerate.
984 * deffile.h: Add .data field to def_file_import
986 * pe-dll.c (pe_proces_import_defs): Use .data field of
987 def_file_import structure to initialize flag_data field of
988 def_file_export structure.
989 (pe_implied_import_dll): New variables exp_funcbase and
990 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
991 not filename (which may be a symlink). Scan the sections and
992 initialize [data|bss]_[start|end]. When scanning the export
993 table, skip _nm_ symbols, and mark any symbols whose rva indicates
994 that it is in the .bss or .data sections as data.
995 * sysdep.h: Include limits.h and sys/param.h, and define
996 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
997 exists, NULL otherwise.
998 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
999 pe_process_import_defs before pe_find_data_imports, so that
1000 auto-import will check the virtual implib as well as "real"
1002 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1003 symlinks to their target; check that the target's extension is
1004 .dll before calling pe_implied_import_dll(), not the filename
1005 itself (which may be a symlink).
1007 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1009 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1010 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1013 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1015 * ldlang.h: Formatting.
1017 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1019 * ldlang.c (init_os): Ensure sections mentioned in load_base
1022 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1024 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1025 load_base for orphans that follow a section with load_base set.
1027 2002-12-01 H.J. Lu <hjl@gnu.org>
1029 * ld.texinfo: Remove the extra `;' in sample version script.
1031 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1033 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1035 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1036 * Makefile.in: Regenerate.
1038 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1039 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1040 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1041 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1042 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1043 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1044 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1045 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1046 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1047 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1048 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1049 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1050 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1052 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1054 * configure.host: Fix generic FreeBSD configuration entry.
1056 2002-11-27 H.J. Lu <hjl@gnu.org>
1058 * ld.texinfo: Add the missing `;' to sample version scripts.
1060 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1062 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1064 2002-11-14 Egor Duda <deo@logos-m.ru>
1066 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1067 assignment which has no effect.
1068 * pe-dll.h (pe_create_import_fixup): Change prototype.
1069 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1070 (pe_create_runtime_relocator_reference): Ditto.
1071 (pe_create_import_fixup): Handle relocations with non-zero addends.
1072 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1073 --disable-runtime-pseudo-reloc.
1074 (make_import_fixup): Handle relocations with non-zero addends. Create
1075 an external reference to _pei386_runtime_relocator symbol if at least
1076 one pseudo reloc was created.
1077 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1078 --disable-runtime-pseudo-reloc options.
1080 2002-11-12 Earl Chew <earl_chew@agilent.com>
1082 * ldlang.c (lang_add_section): Discard debugging sections that have
1083 been marked SEC_EXCLUDE.
1085 2002-11-12 Nick Clifton <nickc@redhat.com>
1087 * configure.in (ALL_LINGUAS): Add da.
1088 * configure: Regenerate.
1089 * po/da.po: New Danish translation.
1091 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1093 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1094 (LDEMUL_BEFORE_ALLOCATION): Define.
1095 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1097 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1099 2002-11-11 Christopher Faylor <cgf@redhat.com>
1101 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1104 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1106 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1107 of restricted auto-export libs.
1109 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1111 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1112 creative library naming instances like, e.g., libstdc++-2.a.
1114 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1116 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1117 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1119 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1121 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1122 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1123 (make_one): Don't prefix decorated fastcall symbols with '_'.
1124 (pe_process_import_defs): Likewise.
1125 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1126 symbols to cdecl names or vise-versa.
1128 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1130 * pe-dll.c (process_def_file): Handle fastcall symbols when
1131 generating undecorated aliases. Don't prefix decorated fastcall
1133 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1136 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1138 * emultempl/aix.em: Use include <> for generated headers.
1139 * emultempl/beos.em: Likewise.
1140 * emultempl/elf32.em: Likewise.
1141 * emultempl/pe.em: Likewise.
1142 * ldctor.c: Likewise.
1143 * ldexp.c: Likewise.
1144 * ldfile.c: Likewise.
1145 * ldlang.c: Likewise.
1146 * ldlex.c: Likewise.
1147 * ldlex.l: Likewise.
1148 * ldmain.c: Likewise.
1149 * ldmisc.c: Likewise.
1150 * ldwrite.c: Likewise.
1151 * lexsup.c: Likewise.
1153 * pe-dll.c: Likewise.
1155 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1157 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1158 sections into .rel{,a}.dyn.
1160 2002-10-23 Nick Clifton <nickc@redhat.com>
1162 * lexsup.c (OPTION_NO_OMAGIC): Define.
1163 (ld_options): Add "no-omagic" option.
1164 (parse_args): Parse --no-omagic.
1165 * ld.texinfo: Document --no-omagic.
1166 * NEWS: Mention new option.
1168 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1170 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1171 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1173 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1175 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1176 emulation name. Set LIB_PATH only for native tools, and
1177 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1178 .../lib variants, not instead of them. Mostly copied from...
1179 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1180 * emulparams/elf64bmip-defs.sh: Backed out.
1181 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1182 * emulparams/elf64btsmip.sh: Likewise.
1183 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1184 TEXT_DYNAMIC): Removed.
1186 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1188 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1189 (GENERATE_SHLIB_SCRIPT): Set to yes.
1190 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1191 * emulparams/elf32bmipn32.sh: here.
1192 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1193 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1194 * emulparams/elf64bmip-defs.sh: New file. Extend
1195 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1196 * emulparams/elf64bmip.sh: Bring in definitions from
1198 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1200 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1201 * emulparams/elf64btsmip.sh: Bring in definitions from
1203 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1204 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1206 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1208 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1209 (s390-*-linux*): Add elf64_s390 emulation if want64.
1210 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1211 genscript.sh changes.
1212 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1213 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1215 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1217 * ldlang.c (load_symbols): Revert last change.
1219 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1221 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1223 (lang_reasonable_defaults): Don't compare against false.
1224 (size_input_section): Likewise.
1225 (lang_size_sections_1): Likewise.
1226 (lang_do_assignments): Likewise.
1227 (lang_add_output): Likewise.
1229 * Makefile.am: Run "make dep-am".
1230 * Makefile.in: Regenerate.
1231 * ldver.c: #include "bfdver.h".
1233 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1235 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1237 * scripttempl/elfm68hc12.sc: Likewise.
1239 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1241 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1243 * ldgram.y (memory_spec): Provide empty action.
1244 (section <NAME>): Likewise.
1246 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1248 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1249 they have OUTPUT_FORMAT not matching actual output format.
1250 * ldlang.c (lang_get_output_target): New function.
1251 (open_output): Use it.
1252 * ldlang.h (lang_get_output_target): New prototype.
1254 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1256 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1257 when orphan is .rel, .rela when orphan is .rela.
1258 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1259 first. Remove outsecname var.
1261 2002-10-09 Richard Shann <richard.shann@superh.com>
1262 Stephen Clarke <stephen.clarke@superh.com>
1264 * Makefile.am: Add eshelf32_linux.o and
1265 eshlelf32_linux.o, new emulations for sh64 Linux.
1266 * Makefile.in: Regenerate.
1267 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1268 * emulparams/shelf32_linux.sh: New file.
1269 * emulparams/shlelf32_linux.sh: New file.
1271 2002-10-08 H.J. Lu <hjl@gnu.org>
1273 * ldlang.c (lang_file_exist): Removed.
1274 (new_afile): Revert the last change.
1275 * ldlang.h (lang_file_exist): Removed.
1276 * lexsup.c (parse_args): Revert the last change.
1278 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1280 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1281 auto-import symbols.
1282 (make_one): Create _nm_<symbol> for data only.
1284 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1286 * ldlang.c (lang_file_exist): New function.
1287 (new_afile): Abort if the filename to be added matches the linker
1289 * ldlang.h: Add prototype for lang_file_exist.
1290 * lexsup.c (parse_args): Abort if the output filename matches
1291 one of the input filenames.
1293 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1295 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1297 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1299 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1300 * scripttempl/elfm68hc11.sc: Likewise.
1301 * scripttempl/elfm68hc12.sc: Likewise.
1303 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1304 reloc sections just before .rel.plt/.rela.plt.
1305 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1306 Only put loadable reloc sections in hold_rel.
1308 2002-09-29 H.J. Lu <hjl@gnu.org>
1310 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1312 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1314 From "Anita Kulkarni" <AnitaK@kpit.com>
1315 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1318 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1320 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1322 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1323 SEGMENT_SIZE alignment.
1324 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1325 (SEGMENT_SIZE): Define.
1327 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1328 (fold_binary): Correct abs - non-abs case.
1329 (fold_trinary): New. Split out from exp_fold_tree.
1331 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1333 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1334 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1335 for start of .data, instead align up to 256M boundary.
1336 * scripttempl/aix.sc: Likewise.
1338 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1340 * scripttempl/i386go32.sc: Handle bss unique sections.
1342 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1344 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1346 2002-09-17 Stan Cox <scox@redhat.com>
1348 * emulparams/elf32bmipn32-defs.sh: New file.
1349 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1350 * emulparams/elf32btsmipn32.sh: Likewise.
1351 * emulparams/elf64bmip.sh: Likewise.
1352 * emulparams/elf64btsmip.sh: Likewise.
1354 2002-09-16 Bruno Haible <bruno@clisp.org>
1356 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1358 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1359 elf64-alpha-freebsd.
1361 2002-09-11 Nick Clifton <nickc@redhat.com>
1363 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1365 * po/tr.po: Updated Turkish translation.
1367 2002-09-06 Jeffrey A Law (law@redhat.com)
1369 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1371 2002-09-02 Nick Clifton <nickc@redhat.com>
1373 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1375 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1377 2002-08-30 Nick Clifton <nickc@redhat.com>
1379 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1380 used. Change INSN to start at 0x01000000 and extend for
1381 256K (ignoring holes). Start the STACK on a word aligned
1383 (.rodata): Start it at the READONLY_START_ADDR.
1385 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1387 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1389 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1391 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1392 added makefile targets for this file.
1393 * Makefile.in: Regenerate.
1394 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1395 * NEWS: Mention new port.
1397 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1399 * emulparams/tic3xcoff.sh: New file.
1400 * emulparams/tic4xcoff.sh: New file.
1401 * scripttempl/tic3xcoff.sc: New file.
1402 * scripttempl/tic4xcoff.sc: New file.
1404 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1406 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1407 strtoul and strtoull with bfd_scan_vma.
1408 (gld${EMULATION_NAME}_read_file): Likewise.
1410 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1412 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1414 2002-08-27 Egor Duda <deo@logos-m.ru>
1416 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1417 Add symbols for application to access them.
1419 2002-08-27 Nick Clifton <nickc@redhat.com>
1421 * emultempl/armelf.em: Revert this patch, it is not needed.
1423 2002-08-22 Adam Nemet <anemet@lnxw.com>
1425 2002-08-20 Dan Kegel <dank@kegel.com>
1427 * configure.in: added --with-lib-path argument to ld's configure
1429 * NEWS: Document new switch.
1430 * README: Mention new switch.
1431 * configure: Regenerate.
1432 * Makefile.in: Regenerate.
1434 Based on this patch:
1435 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1437 * Makefile.in (LIB_PATH): Make configurable.
1438 (GENSCRIPTS): Set LIB_PATH in environment.
1439 * configure.in: Substitute LIB_PATH.
1441 2002-08-22 Adam Nemet <anemet@lnxw.com>
1443 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1444 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1445 depending on the type of the function.
1446 (arm_elf_convert_thumb_symbol_to_address): New function.
1448 2002-08-22 Graeme Peterson <gp@qnx.com>
1450 * Makefile.am: Add esh{l}elf_nto.o files.
1451 * Makefile.in: Regenerate.
1452 * configure.tgt: Add support for sh-**-nto* targets.
1453 * emulparams/shelf_nto.sh: New file.
1454 * emulparams/shlelf_nto.sh: New file.
1456 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1458 * ldlang.c (offsetof): Define if not defined.
1460 2002-08-14 H.J. Lu <hjl@gnu.org>
1462 * configure.tgt: Always enable 64bit emulations for 32bit
1465 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1467 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1468 (MAXPAGESIZE): Set to 1.
1470 * ld.h (ALIGN_N): Delete.
1471 * ldexp.h (align_n): Declare.
1472 * ldexp.c (align_n): New function.
1473 (fold_binary): Use align_n instead of ALIGN_N.
1474 (exp_fold_tree): Likewise.
1475 * ldlang.c (lang_size_sections_1): Likewise.
1476 (lang_one_common): Likewise.
1477 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1479 2002-07-31 Graeme Peterson <gp@qnx.com>
1481 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1482 * Makefile.am: Add eelf32{l}ppcnto.o files.
1483 * Makefile.in: Regenerate.
1484 * emulparams/elf32lppcnto.sh: New file.
1485 * emulparams/elf32ppcnto.sh: New file.
1487 2002-08-07 H.J. Lu <hjl@gnu.org>
1489 * ld.texinfo: Document --no-undefined-version.
1491 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1492 `script.' fields to 0.
1494 * ldmain.c (main): Initialize the allow_undefined_version to
1497 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1498 (ld_options): Add --no-undefined-version.
1499 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1501 2002-08-07 Nick Clifton <nickc@redhat.com>
1503 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1504 an interworking bfd if there are input bfds. (107501)
1506 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1508 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1511 2002-08-01 Nick Clifton <nickc@redhat.com>
1513 * emulparams/armelf.sh: Revert previous delta.
1514 * scripttempl/elf.sc: Revert previous delta.
1516 2002-07-31 H.J. Lu <hjl@gnu.org>
1518 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1519 --enable-64-bit-bfd.
1521 2002-07-31 H.J. Lu <hjl@gnu.org>
1523 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1524 64bit BFD is selected.
1526 2002-07-31 H.J. Lu <hjl@gnu.org>
1528 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1529 if 64bit BFD is selected.
1531 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1533 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1534 link_info.common_skip_ar_aymbols.
1535 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1537 * ldmain.c (main): Initialize new field
1538 link_info.common_skip_ar_aymbols.
1540 2002-07-31 Adam Nemet <anemet@lnxw.com>
1542 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1544 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1547 2002-07-31 Nick Clifton <nickc@redhat.com>
1549 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1550 of the PDP-11 and 2.11BSD a.out support.
1552 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1554 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1555 for n32 ABI support.
1556 * Makefile.in: Regenerate.
1557 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1558 n32 ABI emulations for these 64 bit targets.
1559 * emulparams/elf32bmipn32.sh: Expand comment.
1560 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1562 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1564 2002-07-30 Graeme Peterson <gp@qnx.com>
1566 * configure.tgt: Add support for arm-*-nto target.
1567 * Makefile.am: Add earmnto.o file.
1568 * Makefile.in: Regenerate.
1569 * NEWS: Mention port of ARM support to QNX.
1570 * emulparams/armnto.sh: New file.
1572 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1574 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1575 for relocatable link.
1576 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1579 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1581 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1584 2002-07-25 Nick Clifton <nickc@redhat.com>
1586 * po/sv.po: Updated Swedish translation.
1587 * po/es.po: Updated Spanish translation.
1588 * po/fr.po: Updated French translation.
1590 2002-07-24 Nick Clifton <nickc@redhat.com>
1592 * po/sv.po: Updated Swedish translation.
1593 * po/es.po: Updated Spanish translation.
1595 2002-07-23 Nick Clifton <nickc@redhat.com>
1597 * po/fr.po: Updated French translation.
1599 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1601 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1602 bomb on /DISCARD/ input section.
1603 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1604 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1606 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1608 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1611 2002-07-16 Denis Chertykov <denisc@overta.ru>
1612 Nick Clifton <nickc@redhat.com>
1613 Frank Ch. Eigler <fche@redhat.com>
1614 John Healy <jhealy@redhat.com>
1616 * configure.tgt: Add support for ip2k-elf.
1617 * Makefile.am: Add support for ip2k-elf.
1618 * Makefile.in: Regenerate.
1619 * emulparams/elf32ip2k.sh: New file.
1620 * scripttempl/ip2k.sc: New file
1621 * NEWS: Mention support for new port.
1623 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1625 * NEWS: Add 'Changes in 2.13'.
1627 2002-07-14 H.J. Lu <hjl@gnu.org>
1629 * ld.texinfo: Document a .symver takes precedence over a
1632 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1634 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1635 (COMMONPAGESIZE): Define.
1637 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1639 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1641 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1643 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1644 powerpc-*-openbsd* and sparc64-*-openbsd*.
1645 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1646 * Makefile.in: Regenerate.
1647 * emulparams/hppaobsd.sh: New file.
1649 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1651 * ldlang.c (print_wild_statement): Fix output formatting.
1653 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1655 * ldlang.c: (strip_excluded_output_sections): New function.
1656 (lang_process): Call it.
1657 (lang_size_sections_1): Revert 2002-06-10 change.
1659 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1661 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1663 * Makefile.in: Regenerate.
1665 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1667 * ldfile.c (ldfile_try_open_bfd): Formatting.
1669 * ldmisc.c (demangle): Move so that it doesn't intrude between
1670 vfinfo comment and body. Add comment.
1672 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1674 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1676 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1678 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1679 * ldlang.c (entry_sym): Likewise.
1680 (ldlang_undef_chain_list_type): Likewise.
1681 (lang_finish): Adjust references to entry_symbol.
1682 (lang_add_entry): Likewise.
1683 (lang_gc_sections): Use link_info.gc_sym_list.
1684 (lang_process): Set link_info.gc_sym_list.
1685 * ldlex.l: Include bfdlink.h.
1686 * ldmain.c (main): Init link_info.gc_sym_list.
1687 * emultempl/aix.em: Adjust references to entry_symbol.
1688 * emultempl/armcoff.em: Likewise.
1689 * emultempl/armelf.em: Likewise.
1690 * emultempl/pe.em: Likewise.
1691 * emultempl/ppc64elf.em (ppc_after_open): New function.
1692 (LDEMUL_AFTER_OPEN): Define.
1693 * emulparams/elf64ppc.sh: KEEP .opd sections.
1695 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1697 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1698 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1699 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1700 (EEPROM_START_ADDR): Define.
1701 (EEPROM_MEMORY): Define.
1702 * emulparams/m68hc12elf.sh: Likewise.
1703 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1704 section to put soft registers in .page0.
1705 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1707 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1709 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1710 section. Add ${RELOCATING-0}.
1712 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1714 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1715 (OTHER_SECTIONS): Define.
1716 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1717 (OTHER_SECTIONS): Undef.
1719 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1721 * ldmisc.c (demangle): Restore dots stripped from sym name.
1723 2002-06-25 H.J. Lu <hjl@gnu.org>
1725 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1726 * Makefile.in: Regenerated.
1728 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1730 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1731 the size of attached object files, to allow make the object files
1732 available via FTP or HTTP and to mention that the mail will be
1733 sent to a mailing list.
1735 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1737 * configure.host (romp): Drop support.
1739 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1741 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1742 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1744 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1746 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1747 format specifier used to print BFD name.
1749 2002-06-18 Dave Brolley <brolley@redhat.com>
1751 From Catherine Moore, Michael Meissner, Jim Blandy:
1752 * emulparams/elf32frv.sh: New file.
1753 * configure.tgt: Support frv-*-*.
1754 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1755 (eelf32frv.c): New target.
1757 2002-06-17 Tom Rix <trix@redhat.com>
1759 * emultempl/elf32.em: gld*_get_script: Check for
1760 GENERATE_COMBRELOC_SCRIPT.
1761 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1762 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1764 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1766 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1768 2002-06-12 H.J. Lu <hjl@gnu.org>
1770 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1771 false if xvec doesn't match.
1773 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1775 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1777 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1779 * ldexp.c: Replace CONST with const.
1780 * ldfile.c: Likewise.
1781 * ldfile.h: Likewise.
1782 * ldlex.l: Likewise.
1784 * pe-dll.h: Likewise.
1786 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1788 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1790 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1792 * ldmain.c (main): initialize link_info.pei386_auto_import
1793 to -1 == implicit enable.
1794 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1795 initialize link_info.pei386_auto_import to -1 == implicit
1797 (gld_${EMULATION_NAME}_parse_args): When processing
1798 --enable-auto-import and --disable-auto-import options, use
1799 '1' and '0' instead of 'true' and 'false'.
1800 (pe_find_data_imports): Only issue message about auto-import
1801 when the feature is implicitly enabled. Downgrade message to
1802 informational instead of warning.
1804 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1806 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1808 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1810 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1811 HOSTING_CRT0 and HOSTING_LIBS.
1813 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1815 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1817 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1819 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1820 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1822 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1824 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1825 SEC_EXCLUDE sections when doing a relocatable link.
1827 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1829 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
1830 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
1831 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
1832 (eshlelf64_nbsd.c): New rules.
1833 * Makefile.in: Regenerate.
1834 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1835 (sh64-*-netbsd*): New targets.
1836 * emulparams/shelf32_nbsd.sh: New file.
1837 * emulparams/shelf64_nbsd.sh: New file.
1838 * emulparams/shlelf32_nbsd.sh: New file.
1839 * emulparams/shlelf64_nbsd.sh: New file.
1841 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1843 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
1845 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1847 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
1848 C++ constructors/destructors, loosely based on the m68hc11 port.
1850 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1852 * Makefile.in: Regenerate.
1853 * aclocal.m4: Regenerate.
1854 * config.in: Regenerate.
1855 * configure: Regenerate.
1857 2002-05-31 Graeme Peterson <gp@qnx.com>
1859 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
1860 (ei386nto.c): Add rule.
1861 * Makefile.in: Regenerate.
1862 * configure.tgt: Add i[3456]86-*-nto-qnx*.
1863 * emulparams/i386nto.sh: New file.
1865 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1867 * NEWS: Add entry for VAX ELF support.
1869 2002-05-29 Matt Thomas <matt@3am-software.com>
1870 Jason Thorpe <thorpej@wasabisystems.com>
1872 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
1874 (evaxnbsd.c): New rules.
1875 * Makefile.in: Regenerate.
1876 * configure.tgt (vax-*-netbsdelf*)
1878 (vax-*-netbsd*): New targets.
1879 * emulparams/elf32vax.sh: New file.
1880 * emulparams/vaxnbsd.sh: New file.
1882 2002-05-29 Adam Nemet <anemet@lnxw.com>
1884 * emultempl/armelf.em (arm_elf_after_open): Don't determine
1885 bfd_for_interwork, instead add glue sections to each input bfd.
1886 (bfd_for_interwork): New global.
1887 (arm_elf_set_bfd_for_interworking): New function.
1888 (arm_elf_before_allocation): Use it.
1890 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1892 * Makefile.am: Add DLX make target.
1893 * configure.tgt: Add DLX configuration.
1894 * Makefile.in: Regenerate.
1895 * emulparams/elf32_dlx.sh: New file
1896 * scripttempl/dlx.sc: New file
1898 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
1900 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
1901 * Makefile.in: Regenerate.
1902 * emulparams/elf_chaos.sh: Use elf_chaos script.
1903 * scripttempl/elf_chaos.sc: New file.
1905 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
1907 * ldlang.c (lang_size_sections_1): Move check for conflicting load
1908 addresses and regions from here...
1909 (lang_get_regions): ...to this new function.
1910 (lang_leave_output_section_statement): Use lang_get_regions.
1911 (lang_leave_overlay): Likewise.
1912 * mri.c (mri_draw_tree): Pass null as last argument to
1913 lang_leave_output_section_statement.
1914 * emultempl/elf32.em (gld*_place_orphan): Likewise.
1915 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1916 * emultempl/pe.em (gld*_place_orphan): Likewise.
1918 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1920 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
1922 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1924 * ldemul.c: Fix formatting.
1925 * ldfile.c: Likewise.
1926 * pe-dll.c: Likewise.
1927 * pe-dll.h: Likewise.
1929 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1931 * ldlang.c (lang_process): Formatting, grammar.
1933 * ldlex.l: Use #include "" instead of <> for local header files.
1935 2002-05-24 TAMURA Kent <kent@netbsd.org>
1937 * configure.tgt: Add a target for i386-netbsdpe.
1939 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1941 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
1942 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
1943 output section if necessary. Handle .tbss.
1944 (lang_size_sections): Clear _raw_size for .tbss section
1945 (it allocates space in PT_TLS segment only).
1946 * ldwrite.c (build_link_order): Build link order for .tbss too.
1948 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1950 * configure.in: Correct spelling of AC_PREREQ.
1952 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1954 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
1956 (autofilter_objlist): Add crtbegin.o, crtend.o.
1958 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
1960 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
1961 (longopts): Add new option --exclude-libs.
1962 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
1963 (gld_${EMULATION_NAME}_parse_args): Use it.
1964 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
1965 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
1966 from whole archives.
1967 (pe_dll_add_excludes): Set excludes->type.
1968 (auto_export): Add new variable libname and set to archive basename if
1969 abfd. Use it when filtering default and user-specified libarary
1970 excludes. Let string "ALL" mean all libs when filtering user-specified
1972 * ld.texinfo: Document --exclude-libs.
1974 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1976 * ldemul.c (ldemul_new_vers_pattern): New function.
1977 * ldemul.h (ldemul_new_vers_pattern): Declare.
1978 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1979 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1980 * emultempl/ppc64elf.em (dotsyms): New static var.
1981 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1982 (LDEMUL_NEW_VERS_PATTERN): Define.
1983 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1984 (PARSE_AND_LIST_LONGOPTS): Likewise.
1985 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1986 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1988 * emultempl/armcoff.em: Likewise.
1989 * emultempl/armelf_oabi.em: Likewise.
1990 * emultempl/beos.em: Likewise.
1991 * emultempl/elf32.em: Likewise.
1992 * emultempl/generic.em: Likewise.
1993 * emultempl/gld960.em: Likewise.
1994 * emultempl/gld960c.em: Likewise.
1995 * emultempl/linux.em: Likewise.
1996 * emultempl/lnk960.em: Likewise.
1997 * emultempl/m68kcoff.em: Likewise.
1998 * emultempl/mipsecoff.em: Likewise.
1999 * emultempl/pe.em: Likewise.
2000 * emultempl/sunos.em: Likewise.
2001 * emultempl/ticoff.em: Likewise.
2002 * emultempl/vanilla.em: Likewise.
2004 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2006 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2007 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2008 (LIB_SEARCH_DIRS): No need to use "tr".
2009 (COMPILE_IN): Only set for native targets.
2010 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2011 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2012 * configure.tgt (powerpc*): Set tdir_*.
2013 (powerpcle*): Correct targ_extra_emuls.
2014 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2015 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2017 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2019 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2020 calling lang_add_entry.
2022 2002-05-21 H.J. Lu (hjl@gnu.org)
2024 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2026 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2028 * ld.texinfo: Updated for --allow-multiple-definition and
2031 * ldmain.c (main): Initialize the allow_multiple_definition
2034 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2035 (ld_options): Add --allow-multiple-definition.
2036 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2038 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2040 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2041 (earmelfb_nbsd.c): New rule.
2042 * Makefile.in: Regenerate.
2043 * configure.tgt (armeb-*-netbsdelf*): New target.
2044 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2045 (arm-*-netbsd*): Likewise.
2046 * emulparams/armelfb_nbsd.sh: New file.
2048 2002-05-18 Tom Rix <trix@redhat.com>
2050 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2053 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2055 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2056 * Makefile.in: Regenerate.
2057 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2059 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2061 * emulparams/avr1.sh: New file.
2062 * emulparams/avr2.sh: New file.
2063 * emulparams/avr3.sh: New file.
2064 * emulparams/avr4.sh: New file.
2065 * emulparams/avr5.sh: New file.
2066 * scripttempl/avr.sc: New file.
2068 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2070 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2071 (lang_place_orphans): Abort if just_syms_flag.
2073 2002-05-10 Tom Rix <trix@redhat.com>
2075 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2076 architecture and machine information in the output bfd.
2077 (gld*_before_parse): Remove old arch and machine code.
2078 (choose_target): Rename to gld*_choose_target.
2079 (rtld): Change type to int.
2080 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2081 objects in XCOFF archives.
2082 * ldfile.h: Update copyright date.
2084 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2086 * ldmain.c (main): Enable -z combreloc by default.
2088 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2090 * Makefile.am: Honour DESTDIR.
2091 * Makefile.in: Regenerate.
2093 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2095 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2096 (lang_enter_overlay): Remove the last two parameters.
2097 (lang_leave_overlay): Take them here instead.
2098 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2099 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2100 than lang_enter_overlay.
2101 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2102 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2103 (lang_size_sections_1): Evaluate it.
2104 (lang_leave_output_section_statement): Rework LMA lookup.
2105 (overlay_lma, overlay_nocrossrefs): Remove.
2106 (lang_enter_overlay): Remove LMA and crossref arguments.
2107 (lang_enter_overlay_section): Don't set the LMA here.
2108 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2109 assignment to the last section's update_dot_tree. Unconditionally
2110 use the load and run-time regions specified in the OVERLAY statement.
2111 Likewise the first section's LMA. Only set the other sections' LMAs
2112 when no load region is given.
2114 2002-05-06 Nick Clifton <nickc@redhat.com>
2116 * po/sv.po: New translation.
2118 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2120 * emultempl/hppaelf.em (build_section_lists): New function.
2121 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2122 and build_section_lists.
2124 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2126 * ld.h: Fix formatting.
2127 * ldexp.c: Likewise.
2128 * ldfile.c: Likewise.
2129 * ldlang.c: Likewise.
2130 * ldmain.c: Likewise.
2131 * lexsup.c: Likewise.
2132 * pe-dll.c: Likewise.
2134 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2136 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2137 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2138 (build_section_lists): Do output_section tests here.
2140 2002-04-30 Tom Rix <trix@redhat.com>
2142 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2144 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2146 Long branch stubs, multiple stub sections.
2147 * emultempl/ppc64elf.em: Include ldctor.h.
2148 (stub_file): New var.
2149 (group_size): New var.
2150 (ppc_create_output_section_statements): New function.
2151 (struct hook_stub_info): New.
2152 (hook_in_stub): New function.
2153 (ppc_add_stub_section): New function.
2154 (ppc_layout_sections_again): New function.
2155 (build_section_lists): New function.
2156 (gld${EMULATION_NAME}_finish): Rewrite.
2157 (real_func): New var.
2158 (ppc_for_each_input_file_wrapper): New function.
2159 (ppc_lang_for_each_input_file): New function.
2160 (lang_for_each_input_file): Define.
2161 (PARSE_AND_LIST_PROLOGUE): Define.
2162 (PARSE_AND_LIST_LONGOPTS): Define.
2163 (PARSE_AND_LIST_OPTIONS): Define.
2164 (PARSE_AND_LIST_ARGS_CASES): Define.
2165 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2167 2002-04-30 Tom Rix <trix@redhat.com>
2169 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2170 -blibpath, -bnolibpath support.
2172 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2174 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2175 (eelf32ppcwindiss.c): New target.
2176 * Makefile.in: Regenerated.
2177 * configure.tgt: Add support for powerpc-*-windiss.
2178 * emulparams/elf32ppcwindiss.sh: New file.
2180 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2182 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2183 * ldexp.c (exp_print_token): Add "infix_p" argument.
2184 (exp_print_tree): Update accordingly.
2186 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2188 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2189 * Makefile.in: Regenerate.
2190 * mpw-elfmips.c: Delete.
2191 * mpw-eppcmac.c: Delete.
2192 * mpw-esh.c: Delete.
2193 * mpw-idtmips.c: Delete.
2195 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2197 * emulparams/shelf32.sh (MACHINE): Now sh5.
2199 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2201 * ldgram.y: Fix syntax warning.
2203 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2205 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2206 to prevent "-n" from being taken as an abbreviation for
2207 "--no-pipeline-knowledge".
2209 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2211 * ldlang.c (lang_size_sections_1): Don't complain about
2212 SEC_NEVER_LOAD sections having no memory region specified.
2214 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2216 2002-04-07 matthew green <mrg@redhat.com>
2218 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2220 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2222 * dep-in.sed: Cope with absolute paths.
2223 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2225 * Makefile.in: Regenerate.
2227 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2229 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2231 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2233 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2234 is smaller than maximum, round dot up to common page boundary.
2236 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2238 * configure.host: Set up for generic hosts first, then tweak as
2239 necessary in more specific targets.
2240 (HOSTING_LIBS): Include libgcc_eh.a if found.
2242 2002-03-23 Andreas Jaeger <aj@suse.de>
2244 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2246 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2248 * Makefile.am: Run "make dep-am".
2249 * Makefile.in: Regenerate.
2251 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2253 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2255 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2257 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2258 add the symbol to the linker hash table immediately.
2259 (lang_place_undefineds): Split symbol creation out..
2260 (insert_undefined): ..to here.
2262 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2264 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2265 the contents of the buffer returned from basename function will are
2266 getting overwritten while still being used.
2268 2002-03-18 Jan Hubicka <jh@suse.cz>
2269 Andreas Jaeger <aj@suse.de>
2270 Andreas Schwab <schwab@suse.de>
2272 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2273 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2274 set libraries to default to lib64 paths.
2276 2002-03-18 Tom Rix <trix@redhat.com>
2278 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2279 * configure.tgt : Same.
2280 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2281 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2282 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2283 emulation parameters for better -b32, -b64 support.
2284 * emulparms/aixrs6.sh : Same.
2285 * emulparms/ppcmacos.sh : Same.
2286 * emultempl/aix.em (choose_target) : Use new emulation parameters
2287 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2288 * Makefile.in : Regenerate.
2290 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2292 * po/fr.po: Updated version.
2294 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2296 * ldmain.c (main): Move .text readonly flag fudges from here..
2297 * ldlang.c (lang_process): ..to here.
2299 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2301 * ldlang.c (lang_check): Remove the word size check added in last
2302 change. Treat emitrelocations case as for relocatable links.
2304 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2306 * po/fr.po: Updated version.
2308 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2310 * ldlang.c (lang_check): Do relocatable link checks first, so that
2311 warn_mismatch can't override. Check compatible and word size too.
2313 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2315 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2317 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2319 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2322 2002-03-04 H.J. Lu <hjl@gnu.org>
2324 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2325 .fini_array in the data segment.
2327 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2329 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2331 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2333 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2334 .init_array, and .fini_array.
2336 2002-02-20 Andreas Schwab <schwab@suse.de>
2338 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2339 .IA64_unwind* in a relocatable link.
2341 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2343 * NEWS: Mark 2.12 branch.
2345 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2347 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2348 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2350 2002-02-18 Tom Rix <trix@redhat.com>
2352 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2353 (gld*_before_allocation): Same.
2354 (gld*_create_output_section_statements): Generate
2355 __rtinit if run time linking. Add librtl.a to the link.
2356 (gld*_read_file): Clean.
2358 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2360 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2362 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2364 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2365 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2366 and eelf64alpha_fbsd.
2367 * Makefile.in: Regenerate.
2368 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2369 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2370 use a FreeBSD-specific emulation rather than the psABI one.
2371 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2372 for all FreeBSD ELF systems.
2373 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2375 * emulparams/elf32ppc_fbsd.sh: Likewise.
2376 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2377 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2378 * emulparams/elf64alpha_fbsd.sh: Likewise.
2379 * emulparams/elf_i386_fbsd.sh: Likewise.
2380 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2382 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2384 * po/tr.po: Updated version.
2386 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2388 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2391 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2393 * emultempl/mmo.em (mmo_after_open): Don't call
2394 _bfd_mmix_check_all_relocs when producing ELF output.
2396 2002-02-15 Richard Henderson <rth@redhat.com>
2398 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2399 definition. Emit a unop+nop pair.
2401 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2403 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2404 for presence of .MMIX.reg_contents.linker_allocated before early
2407 * NEWS: Mention support for MMIX.
2409 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2411 Support arbitrary length fill patterns.
2412 * ld.texinfo (Output Section Fill): Describe fill expressions.
2413 (FILL): Refer to the above.
2414 * ldexp.h (etree_value_type): Add "str" field.
2415 (union etree_union): Add "str" to "value" struct.
2416 (exp_bigintop): Declare.
2417 (exp_get_fill): Declare.
2418 * ldexp.c: Include "safe-ctype.h".
2419 (exp_intop): Set value.str to NULL.
2420 (exp_bigintop): New function.
2421 (new_rel): Pass in "str", and set new.str from it.
2422 (new_rel_from_section): Set new.str to NULL.
2423 (fold_name): Adjust calls to new_rel.
2424 (exp_fold_tree): Likewise.
2425 (exp_get_fill): New function.
2426 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2427 (INT): Returns a "bigint". Adjust all code handling INTs.
2428 (fill_opt): Returns a "fill".
2429 (fill_exp): Split out of fill_opt, use for FILL.
2430 * ldlang.h (struct _fill_type): New.
2431 (fill_type): Move typedef to ldexp.h.
2432 (lang_output_section_statement_type): "fill" is now a pointer.
2433 (lang_fill_statement_type): Likewise.
2434 (lang_padding_statement_type): Likewise.
2435 (lang_add_fill): Now takes a "fill_type *" param.
2436 (lang_leave_output_section_statement): Likewise.
2437 (lang_do_assignments): Likewise.
2438 (lang_size_sections): Likewise.
2439 (lang_leave_overlay_section): Likewise.
2440 (lang_leave_overlay): Likewise.
2441 * ldlang.c: Include ldgram.h after ldexp.h.
2442 (lang_output_section_statement_lookup): Adjust for fill_type change.
2443 (print_fill_statement): Likewise.
2444 (print_padding_statement): Likewise.
2445 (insert_pad): Now takes a "fill_type *" arg.
2446 (size_input_section): Likewise.
2447 (lang_size_sections_1): Likewise.
2448 (lang_size_sections): Likewise.
2449 (lang_do_assignments): Likewise.
2450 (lang_add_fill): Likewise.
2451 (lang_leave_output_section_statement): Likewise.
2452 (lang_leave_overlay_section): Likewise.
2453 (lang_leave_overlay): Likewise.
2454 Adjust all callers of the above function.
2455 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2456 starting with "0X" as well as "0x". Return bigint.str for hex
2457 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2458 Always use base 16 for numbers starting with "$".
2459 * ldmain.c: Include ldgram.h after ldexp.h.
2460 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2461 of bfd_fill_link_order.
2462 * pe-dll.c: Adjust lang_do_assignments calls.
2463 * emultempl/elf32.em: Likewise.
2464 * emultempl/hppaelf.em: Likewise.
2465 * emultempl/ppc64elf.em: Likewise.
2466 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2467 lang_add_assignment call.
2468 * emultempl/pe.em: Likewise.
2470 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2472 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2473 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2474 the pattern in question is not a regexp.
2475 * ldlang.c: Likewise.
2476 * ldlang.h: Likewise.
2477 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2479 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2481 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2482 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2483 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2484 * ldexp.c (exp_data_seg): New variable.
2485 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2486 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2487 (exp_fold_tree): Handle DATA_SEGMENT_END.
2488 Pass allocation_done when recursing instead of hardcoding
2489 lang_allocating_phase_enum.
2490 * ldexp.h (exp_data_seg): New.
2491 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2492 (lang_size_sections): New.
2493 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2494 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2495 if COMMONPAGESIZE is defined.
2496 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2497 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2498 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2499 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2500 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2503 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2505 * Makefile.in: Regenerate.
2507 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2509 * lexsup.c: Remove strtoul declaration.
2511 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2513 * ldmain.c: Add prototype for main ().
2514 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2515 * emultempl/lnk960.em (lnk960_choose_target): Function should
2518 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2520 * ldlang.c (entry_section): New initialised variable.
2521 (lang_finish): Use it.
2522 * ldlang.h (entry_section): Declare.
2523 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2524 entry_section to ".opd".
2526 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2528 * ld.texinfo (Options): Add back in -nostdlib documentation,
2529 which had been inadvertently removed.
2531 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2533 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2534 register section vma to a sane value after emitting error. Make
2535 fatal conditions cause program exit when emitting message.
2537 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2539 * configure.tgt: Add or32-*-rtems target.
2541 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2543 Contribute sh64-elf.
2544 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2545 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2546 in OTHER_RELOCATABLE_SECTIONS.
2547 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2548 * emulparams/shelf32.sh (STACK_ADDR): Define.
2549 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2550 (OTHER_SECTIONS): this. Removed stack settings.
2551 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2552 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2553 2001-03-12 DJ Delorie <dj@redhat.com>
2554 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2555 relaxing if any shmedia or mixed sections are found.
2556 2001-03-07 DJ Delorie <dj@redhat.com>
2557 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2558 einfo. Gracefully decline to output to non-elf formats.
2559 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2560 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2561 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2562 * emulparams/shelf32.sh: Ditto.
2563 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2564 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2566 2001-01-10 Ben Elliston <bje@redhat.com>
2567 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2568 non-portable shell constructs. From Hans-Peter Nilsson.
2569 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2570 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2571 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2572 dependencies to the shell script include chain.
2573 * Makefile.in: Regenerate.
2574 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2575 * emultempl/sh64elf.em: Update and tweak comments.
2576 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2577 make a .cranges section SEC_IN_MEMORY.
2578 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2579 * emultempl/sh64elf.em
2580 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2581 .cranges section found to be necessary; continue and set stored
2582 section contents flags for sections with non-mixed contents.
2583 Use a struct sh64_section_data container and sh64_elf_section_data
2584 to store contents-type flags.
2585 Remove unused update of "isec".
2586 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2587 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2588 access contents-type flags. Assert that the associated container
2589 is initialized. Use that container, not elf_gp_size, to hold size
2590 of linker-generated cranges contents.
2591 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2592 * emultempl/sh64elf.em
2593 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2594 there's already a .cranges section. When section flag difference
2595 is found, don't NULL-check cranges a second time. Tweak comments.
2596 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2597 merging, not max size, as size of ld-generated .cranges contents.
2598 Don't set ELF section flags in output section. When checking for
2599 needed .cranges descriptors, don't use a variable; compare
2600 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2602 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2603 * emultempl/sh64elf.em: New file.
2604 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2605 * Makefile.in: Regenerate.
2606 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2607 (OTHER_RELOCATING_SECTIONS): Ditto.
2608 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2609 * emulparams/shlelf32.sh: Stub out all settings except
2610 OUTPUT_FORMAT. Source shelf32.sh.
2611 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2612 OTHER_RELOCATING_SECTIONS.
2613 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2614 * emulparams/shlelf64.sh: Stub out all settings except
2615 OUTPUT_FORMAT. Source shelf64.sh.
2616 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2617 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2619 (DATA_START_SYMBOLS): Define, provide ___data.
2620 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2621 for consecutive .data section.
2622 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2623 section after .data section.
2624 * emulparams/shlelf64.sh: Ditto.
2625 * emulparams/shelf32.sh: Ditto.
2626 (ALIGNMENT): Define to 8.
2627 * emulparams/shelf32.sh: Ditto.
2628 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2629 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2630 built-in linker scripts.
2631 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2632 * emulparams/shlelf64.sh: New.
2633 * emulparams/shelf64.sh: New.
2634 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2636 * Makefile.am: Add support for shlelf64 and shelf64.
2637 * Makefile.in: Regenerate.
2638 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2639 * configure.tgt (sh64-*-elf*): Add shelf as default.
2640 Add shlelf to targ_extra_emuls.
2641 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2642 * emulparams/shelf32.sh: New file.
2643 * emulparams/shlelf32.sh: New file.
2644 * Makefile.am: Add support for shlelf32 and shelf32.
2645 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2646 * Makefile.in: Regenerate.
2648 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2650 * ldlang.c (lang_reset_memory_regions): Rename from
2651 reset_memory_regions. Change all callers. Make public.
2652 * ldlang.h (lang_reset_memory_regions): Prototype.
2653 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2654 lang_reset_memory_regions before lang_size_sections.
2655 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2656 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2658 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2660 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2661 arithmetic when checking for too many global registers.
2663 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2665 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2666 (ehppanbsd.c): New rule.
2667 * Makefile.in: Regenerate.
2668 * configure.tgt (hppa*-*-netbsd*): New target.
2669 * emulparams/hppalinux.sh: Add comment to check other files
2670 that source this file it is modified, and list which
2672 * emulparams/hppanbsd.sh: New file.
2674 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2676 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2679 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2681 Support on-demand global register allocation from
2682 R_MMIX_BASE_PLUS_OFFSET relocs.
2683 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2684 mmix_set_reg_section_vma. Call
2685 _bfd_mmix_finalize_linker_allocated_gregs.
2686 (mmix_before_allocation): New function.
2687 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2688 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2689 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2690 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2691 before .MMIX.reg_contents.
2692 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2693 (mmo_after_open): New function.
2694 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2695 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2696 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2698 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2700 * emulparams/or32.sh: New file.
2701 * emulparams/or32elf.sh: New file.
2702 * scripttempl/or32.sc: New file.
2703 * configure.tgt : Add support for or32.
2704 * configure: Regenerate
2705 * Makefile.am: Add support for or32.
2706 * Makefile.in: Regenerate.
2707 * NEWS: Mention support for or32.
2708 * po/ld.pot: Regenerate.
2710 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2711 Mitch Lichtenberg <mpl@broadcom.com>
2713 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2714 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2715 reloc creation (ld --embedded-relocs).
2717 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2719 * configure: Regenerated.
2721 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2723 * Makefile.am (install): Depend on install-info.
2724 * Makefile.in: Regenerate.
2726 2002-01-26 Christian Rose <menthos@menthos.com>
2728 * ldmain.c (main): Use full sentences to ease translation.
2730 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2732 * po/fr.po: Updated version.
2734 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2736 * po/es.po: Updated version.
2738 2002-01-25 Andreas Jaeger <aj@suse.de>
2740 * ldlex.l (yy_input): Correct error check.
2742 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2744 * ldmisc.c (demangle): Put back dots when string not demangled.
2746 2002-01-22 Richard Henderson <rth@redhat.com>
2748 * emulparams/elf64alpha.sh (NOP): Use unop.
2750 2002-01-21 Andreas Jaeger <aj@suse.de>
2752 * ldlex.l: Use fread instead of read.
2754 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2756 * configure.tgt (ia64-*-netbsd*): New target.
2758 2002-01-21 H.J. Lu <hjl@gnu.org>
2760 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2762 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2764 2002-01-18 Andreas Jaeger <aj@suse.de>
2766 * ldver.c (ldversion): Update year.
2768 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2770 * po/ld.pot: Regenerate.
2772 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2774 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2775 * Makefile.in: Regenerate.
2776 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2777 * emultempl/ppc64elf.em: New file.
2779 2002-01-15 DJ Delorie <dj@redhat.com>
2781 * scripttempl/pe.sc: Add support for constructor priorities.
2783 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2785 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2786 * emulparams/avr23xx.sh: Likewise.
2787 * emulparams/avr4433.sh: Likewise.
2788 * emulparams/avr44x4.sh: Likewise.
2789 * emulparams/avr85xx.sh: Likewise.
2790 * emulparams/avrmega103.sh: Likewise.
2791 * emulparams/avrmega161.sh: Likewise.
2792 * emulparams/avrmega603.sh: Likewise.
2793 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2795 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2797 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2798 archive is excluded.
2800 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2802 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2803 (eshelf_nbsd.c): New rule.
2804 (eshlelf_nbsd.c): New rule.
2805 * Makefile.in: Regenerate.
2806 * configure.tgt (sh*le-*-netbsdelf*): New target.
2807 (sh*-*-netbsdelf*): New target.
2808 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2809 * emulparams/shelf_nbsd.sh: New emulation.
2810 * emulparams/shlelf_nbsd.sh: New emulation.
2812 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2814 * po/es.po: New file: Spanish translation.
2815 * configure.in (ALL_LINGUAS): Add es.
2816 * configure: Regenerate.
2818 2002-01-06 John Marshall <jmarshall@acm.org>
2820 * ld.texinfo: Note that --emit-relocs is currently only
2821 implemented for ELF.
2823 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2825 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
2826 of bfd_section_list_remove and bfd_section_list_insert macros.
2827 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2828 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2830 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2832 * configure.tgt (x86_64-*-netbsd*): New target.
2834 2001-12-21 Tom Rix <trix@redhat.com>
2836 (gld*_create_output_section_statements): New function.
2837 For -binitfini support.
2838 * emultempl/aix.em (gld*_before_parse): Fix comment.
2839 * emultempl/aix.em (gld*_parse_args): Fix comment.
2841 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
2843 * configure.tgt (mips*-dec-netbsd*): Delete alias for
2845 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
2847 * configure.tgt (arm-*-netbsdelf*): Add target.
2848 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
2849 * emulparams/armelf_nbsd.sh: Added.
2850 * Makefile.am: Add rules for earmelf_nbsd.
2851 * Makefile.in: Regenerate.
2853 2001-12-19 Andreas Jaeger <aj@suse.de>,
2854 Susanne Oberhauser <froh@suse.de>
2856 * configure.host: Add rules for x86_64-*linux-gnu. Change
2857 s390x-linux entry to use gcc to report configuration, replace gcc
2858 with $CC in s390-linux
2860 2001-12-19 Andreas Jaeger <aj@suse.de>
2862 * ld.texinfo (VERSION): Fix markup.
2864 2001-12-18 matthew green <mrg@eterna.com.au>
2866 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
2867 (m68kelfnbsd.c): New rule.
2868 * Makefile.in: Regenerate.
2869 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
2870 (m68*-*-netbsd*4k*): .. this.
2871 (m68*-*-netbsdelf*): New target.
2872 (m68*-*-netbsd*): Also include ELF support.
2873 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
2874 * emulparams/m68kelfnbsd.sh: New emulation.
2876 2001-12-18 Jakub Jelinek <jakub@redhat.com>
2878 * ldgram.y (vers_node): Support anonymous version tags.
2879 * ldlang.c (lang_register_vers_node): Ensure anonymous version
2880 tag is not defined together with non-anonymous versions.
2881 * ld.texinfo: Document it.
2883 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
2885 * po/tr.po: New file: Turkish translation.
2886 * configure.in (ALL_LINGUAS): Add tr.
2887 * configure: Regenerate.
2889 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
2891 * Makefile.am: Add rules for eelf64alpha_nbsd.
2892 * Makefile.in: Regenerate.
2893 * configure.tgt (alpha*-*-netbsd*): Set
2894 targ_emul to elf64alpha_nbsd.
2895 * emulparams/elf64alpha_nbsd.sh: Added.
2897 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2899 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
2900 section_tail when fiddling with section list.
2901 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
2902 broken into separate strings to make translation easier.
2903 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
2904 fiddling with section list.
2905 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2907 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
2909 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
2911 2001-12-15 Alan Modra <amodra@bigpond.net.au>
2913 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
2915 2001-12-13 Jakub Jelinek <jakub@redhat.com>
2917 * emultempl/elf32.em (finish): Supply output_bfd
2918 to bfd_elf*_discard_info.
2919 (OPTION_EH_FRAME_HDR): Define.
2920 (longopts): Add --eh-frame-hdr.
2921 (parse_args): Handle it.
2922 (list_options): Add --eh-frame-hdr to help.
2923 * emultempl/hppaelf.em (finish): Supply output_bfd
2924 to bfd_elf*_discard_info.
2925 * scripttempl/elf.sc (.eh_frame_hdr): Add.
2927 2001-12-13 Alan Modra <amodra@bigpond.net.au>
2929 * lexsup.c (parse_args): Don't pass shortopts to second call to
2930 getopt functions. Restore optind rather than decrementing before
2931 second call. Remove errind as it now duplicates last_optind.
2933 2001-12-11 Christopher Faylor <cgf@redhat.com>
2935 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
2937 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
2938 Richard Henderson <rth@redhat.com>
2940 * Makefile.am: Add support for xstormy16.
2941 * configure.tgt: Add support for xstormy16.
2942 * Makefile.in: Regenerate.
2943 * emulparams/elf32xstormy16.sh: New file.
2944 * scripttempl/xstormy16.sc: New file.
2946 2001-10-01 Christopher Faylor <cgf@cygnus.com>
2948 * Makefile.in (LIB_PATH): Make configurable.
2949 (GENSCRIPTS): Set LIB_PATH in environment.
2950 * configure.in: Substitute LIB_PATH.
2951 * configure: Regenerate.
2952 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
2953 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
2955 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
2957 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
2958 describing the -N option so that it is easier to translate into
2961 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
2963 * emultempl/pe.em (..._list_options): Replace multiple fprintf
2964 statements describing a single option with a single, newline
2965 escaped fprintf. This allows better translation into other
2968 * ldmain.c (add_archive_element): Combine multiple strings
2969 into a single string to permit better translation into other
2972 2001-12-05 Tom Rix <trix@redhat.com>
2974 * Makefile.am: Remove eaixppc64.
2975 * Makefile.in: Regenerate.
2977 2001-12-04 Tom Rix <trix@redhat.com>
2979 * emultempl/aix.em (choose_target): Change default target to
2980 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2982 (gld*_read_file): Fix typo.
2983 (change_symbol_mode): Add prototype.
2986 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2987 * emulparams/aixrs6.sh : Same.
2988 * emulparams/ppcmacos.sh : Same.
2989 * emulparams/aixppc64.sh : Delete file.
2990 * emultempl/aix.em : Formatting changes.
2992 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2994 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2995 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2997 (OTHER_END_SYMBOLS): Fix formatting.
2998 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2999 (OTHER_END_SYMBOLS): Fix formatting.
3001 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3003 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3005 2001-12-02 Tom Rix <trix@redhat.com>
3007 * configure.tgt : Remove eaixppc64 emulations.
3008 * Makefile.in : Remove eaixppc64.c
3009 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3010 (ldemul_default_target): Same.
3011 * emultempl/gld960.em (gld960_choose_target): Same.
3012 * emultempl/gld960c.em (gld960_choose_target): Same.
3013 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3014 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3015 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3016 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3017 * emultempl/aix.em (choose_target): New function. Handle emulation of
3020 2001-11-27 H.J. Lu <hjl@gnu.org>
3022 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3023 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3024 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3025 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3026 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3027 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3028 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3029 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3031 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3034 (REL_SDATA): Likewise.
3035 (REL_SBSS): Likewise.
3036 (REL_SDATA2): Likewise.
3037 (REL_SBSS2): Likewise.
3038 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3041 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3043 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3045 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3047 2001-11-22 H.J. Lu <hjl@gnu.org>
3049 * Makefile.in: Regenerated with automake based on automake
3050 1.4-8 in RedHat 7.1.
3052 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3054 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3055 (config.status): Delete rule.
3056 Add extra dependencies to cover sourced emulparams files.
3057 * Makefile.in: Regenerate.
3059 * scripttempl/elf.sc: Order <section>, <section>.* and
3060 corresponding linkonce sections as seen in input files.
3061 Formatting fixes. Zero vma of all sections if not relocating.
3062 (STACK): Define and insert if STACK_ADDR defined.
3063 (OTHER_RELOCATING_SECTIONS): Delete.
3064 (OTHER_END_SYMBOLS): Define.
3065 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3066 (OTHER_READWRITE_SECTIONS): Likewise.
3067 (OTHER_GOT_SECTIONS): Likewise.
3068 (OTHER_SDATA_SECTIONS): Likewise.
3069 (OTHER_BSS_SECTIONS): Likewise.
3070 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3071 (OTHER_READWRITE_SECTIONS): Likewise.
3072 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3073 (OTHER_READWRITE_SECTIONS): Likewise
3075 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3076 (STACK_ADDR): Define.
3077 * emulparams/armelf_oabi.sh: As for armelf.sh.
3078 * emulparams/elf32mcore.sh: As for armelf.sh.
3079 * emulparams/h8300elf.sh: As for armelf.sh.
3080 * emulparams/mn10200.sh: As for armelf.sh.
3081 * emulparams/shelf.sh: As for armelf.sh.
3083 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3084 (OTHER_END_SYMBOLS): Define.
3085 * emulparams/m32relf.sh: As for elf32fr30.sh.
3086 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3087 * emulparams/h8300self.sh: As for elf32fr30.sh.
3089 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3090 defines with RELOCATING test.
3091 (OTHER_SDATA_SECTIONS): Likewise.
3092 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3093 (OTHER_END_SYMBOLS): ..this.
3094 * emulparams/crislinux.sh: As for criself.sh.
3096 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3098 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3099 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3100 normal and linkonce sections as seen in input files.
3101 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3102 (TEXT_DYNAMIC): Likewise.
3103 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3104 (OTHER_SDATA_SECTIONS): Likewise.
3105 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3106 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3107 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3108 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3109 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3110 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3111 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3112 sections as seen in input files.
3113 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3114 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3116 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3117 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3118 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3119 (OTHER_SECTIONS): Instead, use this..
3120 (OTHER_END_SYMBOLS): ..and this.
3122 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3123 * emulparams/elf32bsmip.sh: Likewise.
3124 * emulparams/elf32btsmip.sh: Likewise.
3125 * emulparams/elf32ebmip.sh: Likewise.
3126 * emulparams/elf32lmip.sh: Likewise.
3127 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3128 * emulparams/elf32lsmip.sh: Likewise.
3129 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3130 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3131 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3132 * emulparams/elf64btsmip.sh: Likewise.
3133 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3134 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3135 * emulparams/elf32ppclinux.sh: Likewise.
3136 * emulparams/elf32ppcsim.sh: Likewise.
3137 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3138 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3139 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3140 * emulparams/h8300self.sh: Likewise.
3141 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3142 * emulparams/sh.sh: Comment.
3143 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3144 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3145 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3147 2001-11-21 David Heine <dlheine@tensilica.com>
3148 Alan Modra <amodra@bigpond.net.au>
3150 * ldlang.c (map_input_to_output_sections): Replace "break"
3151 accidentally removed with 2001-08-03 change.
3152 (lang_gc_sections_1): Likewise.
3154 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3156 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3158 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3160 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3161 of false when calling lang_size_sections.
3162 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3164 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3166 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3167 function when LDEMUL_FINISH isn't set to the same name. Don't
3168 call ${LDEMUL_FINISH}.
3169 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3170 * emultempl/armelf.em (arm_elf_finish): Call
3171 gld${EMULATION_NAME}_finish.
3172 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3173 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3174 hppaelf_layout_sections_again if necessary.
3175 (need_laying_out): New var.
3176 (hppaelf_layaout_sections_again): Rename to
3177 hppaelf_layout_sections_again. Clear need_laying_out.
3178 (PARSE_AND_LIST_OPTIONS): Format text.
3180 2001-11-14 H.J. Lu <hjl@gnu.org>
3182 * emultempl/armelf.em (arm_elf_finish): Renamed from
3183 gld${EMULATION_NAME}_finish.
3184 (LDEMUL_FINISH): Set to arm_elf_finish.
3186 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3188 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3189 (struct ld_emulation_xfer_struct): Use it.
3191 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3193 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3194 additional symbols referenced by newer crt0.o files from HP.
3196 2001-11-12 Anthony Green <green@redhat.com>
3198 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3200 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3202 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3203 * Makefile.in: Regenerate.
3205 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3207 * ld.texinfo: Use @command for commands, @option for options.
3208 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3210 * Makefile.in: Rebuild.
3212 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3214 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3215 Add support for targets.
3217 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3219 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3220 * configure: Regernate.
3221 * po/fr.po: New file.
3222 * po/sv.po: New file.
3224 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3226 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3227 as little endian default and to support big endian.
3229 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3231 * ld.texinfo (Options): Document new option, -nostdlib.
3232 * lexsup.c (OPTION_NOSTDLIB): New definition.
3233 (ld_options): Add entry for "nostdlib".
3234 (parse_args): Handle OPTIONS_NOSTDLIB.
3235 * ldfile.c (ldfile_add_library_path): Don't add directories
3236 to the search path if they weren't specified on the command line
3237 and -nostdlib was specified.
3238 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3240 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3242 * lexsup.c (parse_args): Prevent infinite parsing loop when
3243 "-rpath.a" is specified on the command line.
3244 Replace calls to fprintf with calls to einfo.
3246 2001-10-31 John Marshall <jmarshall@acm.org>
3248 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3249 appear only once across all the linker scripts involved in a link
3250 invocation no longer applies. Make the documentation reflect
3253 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3255 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3257 (sh-*-linux*): Added targ_extra_libpath.
3259 2001-10-31 David Heine <dlheine@tensilica.com>
3261 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3262 for padding statements.
3264 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3266 * configure.tgt (mmix-*-*): New target.
3267 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3268 Add dependencies to match.
3269 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3270 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3271 scripttempl/mmo.sc: New files.
3272 * gen-doc.texi: @set MMIX.
3273 * ld.texinfo: Ditto.
3274 [MMIX] Add MMIX node.
3275 * Makefile.in: Regenerate.
3277 2001-10-29 Kazu Hirata <kazu@hxi.com>
3279 * ldlang.c: Fix a comment typo.
3281 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3283 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3284 entries, and match *-*-linux*.
3286 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3288 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3289 with ldlex_script, ldlex_popstate.
3290 (ifile_p1): Likewise.
3291 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3293 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3294 to 1. Don't BEGIN(SCRIPT).
3295 (lex_redirect): Similarly.
3296 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3298 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3300 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3301 __EH_FRAME_END__ and accept eh frames into data section.
3302 Add ctor and dtor sections.
3304 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3306 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3307 (auto-export): Fix indentation.
3309 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3311 * pe-dll.c (autofilter_objectlist): Add startup objects
3313 (auto-export): Constify char * p.
3314 Extract file basename and use strcmp rather than ststr
3317 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3319 * ldmain.c (get_emulation): Improve comment about the handling
3322 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3324 * po/POTFILES.in: Regenerate.
3326 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3328 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3329 -z nocopyreloc and -z nocombreloc usage strings.
3331 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3333 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3336 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3338 * scripttempl/armaout.sc: Place .bss section after end of aligned
3339 data section to match behaviour of aout code in constructrion of
3342 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3344 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3345 startup files for mingw32 dlls to list.
3347 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3349 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3351 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3353 * configure.tgt (targ): Add arm9e-*-elf.
3355 2001-10-05 H.J. Lu <hjl@gnu.org>
3357 * genscripts.sh: Fix a typo in the last change.
3359 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3361 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3362 -z nocombreloc in usage.
3364 2001-10-03 Jim Blandy <jimb@redhat.com>
3366 * genscripts.sh: Include a comment at the top of each generated
3367 script, explaining its purpose.
3369 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3371 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3372 * NEWS: Mention -z nocopyreloc.
3373 * ld.texinfo (Options): Describe nocopyreloc.
3375 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3377 * configure: Regenerate.
3379 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3381 * ldver.h (ld_program_version): Remove declaration.
3382 * lexsup.c (parse_args): Move printing of copyright message..
3383 * ldver.c (ldversion): .. to here.
3384 Use BFD_VERSION_STRING in place of BFD_VERSION.
3385 (ld_program_version): Remove.
3386 * Makefile.am (Makefile): Depend on bfd/configure.in.
3388 * Makefile.in: Regenerate.
3390 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3392 * Makefile.am: Update dependencies with "make dep-am".
3393 * Makefile.in: Regenerate.
3395 2001-09-29 John Reiser <jreiser@BitWagon.com>
3397 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3398 * lexsup.c: Add --no-define-common commandline option.
3399 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3400 * ldlex.l: Likewise.
3401 * ld.h: Add command_line.inhibit_common_definition.
3402 * ldmain.c (main): Initialize.
3403 * ld.texinfo: Document.
3405 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3407 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3409 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3411 * ldmisc.c (USE_STDARG): Remove.
3412 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3417 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3418 declarations. Update copyright.
3420 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3422 * pe-dll.c: Remove obsoleted declaration of
3423 pe_get_data_import_dll_name.
3424 (pe_create_import_fixup): Fix thinko.
3426 * ld.texinfo(enable-auto-import): Clarify the explanation.
3428 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3430 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3431 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3432 DLL_SUPPORT controlled code.
3434 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3436 * emultempl/pe.em(pe_data_import_dll): Make static.
3437 (pe_get_data_import_dll_name): New accessor function.
3438 * pe-dll.c(pe_create_import_fixup): call
3439 pe_get_data_import_dll_name() from pe.em, instead of
3440 directly accessing pe_data_import_dll variable from pe.em.
3442 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3444 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3445 (def_file_add_directive): Use ISSPACE instead of isspace.
3446 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3447 isdigit/isxdigit/isalpha/isalnum.
3448 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3449 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3450 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3451 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3453 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3454 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3456 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3457 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3458 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3459 (ctor_prio): Use ISDIGIT instead of isdigit.
3460 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3461 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3462 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3464 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3465 (stricpy): Use TOLOWER instead of isupper/tolower.
3466 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3467 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3468 (lex_warn_invalid): Use ISPRINT instead of isprint.
3469 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3470 (main): For gettext, also set the LC_CTYPE locate facet.
3471 (add_keepsyms_file): Use ISSPACE instead of isspace.
3472 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3473 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3474 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3475 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3476 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3477 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3478 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3479 (quoteput): Use ISSPACE instead of isspace.
3480 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3483 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3485 * deffilep.y (def_stash_module): Constify "name" param.
3487 * pe-dll.c: Replace CONST with const throughout.
3488 (quick_symbol): Constify "n1", "n2", "n3" params.
3489 (make_singleton_name_thunk): Constify "import" param. Make
3490 "buffer_len" a size_t.
3491 (make_import_fixup_entry): Constify "name", "fixup_name",
3492 "dll_symname" params.
3493 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3494 (pe_get32): Likewise.
3495 (pe_implied_import_dll): Likewise.
3497 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3498 (sort_by_section_name): Likewise.
3500 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3501 (make_import_fixup): Cast printf arg, rel->address to long rather
3503 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3505 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3507 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3508 defines BufferSize. Increase buffer size by one.
3510 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3512 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3514 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3516 * configure.tgt: Add arm-openbsd target.
3518 2001-09-12 H.J. Lu <hjl@gnu.org>
3520 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3522 (ALL_64_EMULATIONS): Here.
3523 * Makefile.in: Regenerated.
3525 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3527 * emultempl/pe.em(make_import_fixup): change signature to
3528 take asection as well as arelec; we need this for proper
3529 error reporting. Only call pe_create_import_fixup() if
3530 there is no attempt to add a constant addend to the reloc;
3531 otherwise, report error condition.
3532 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3533 since final argument is a pointer to make_import_fixup().
3534 Change call to cb() to match make_import_fixup() signature.
3535 (make_import_fixup_mark): make buffer_len unsigned.
3536 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3538 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3540 * ld.texinfo: add verbose documentation for auto-import
3541 direct-addressing workaround, to compliment the terse
3544 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3546 * scripttempl/v850.sc: Add gcc_except_table sections.
3548 2001-09-11 Jeffrey A Law (law@cygnus.com)
3550 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3551 * emulparams/h8300self.sh: Similarly.
3553 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3555 * ld.texinfo (Options, --stack): Correct default value for stack
3558 2001-09-05 Tom Rix <trix@redhat.com>
3560 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3562 2001-09-03 Andreas Jaeger <aj@suse.de>
3564 * emultempl/beos.em: Declare prototypes for comparions functions,
3567 2001-09-02 Andreas Jaeger <aj@suse.de>
3569 * emultempl/aix.em: Add missing prototype.
3570 * emultempl/lnk960.em: Likewise.
3571 * emultempl/vanilla.em: Likewise.
3572 * emultempl/armcoff.em: Likewise.
3573 * emultempl/armelf_oabi.em: Likewise.
3574 * emultempl/beos.em: Likewise.
3575 * emultempl/gld960c.em: Likewise.
3576 * emultempl/gld960.em: Likewise.
3578 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3579 for prototype declaration.
3581 2001-08-31 Eric Christopher <echristo@redhat.com>
3582 Jason Eckhardt <jle@redhat.com>
3584 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3586 2001-08-31 Andreas Jaeger <aj@suse.de>
3588 * emultempl/pe.em: Add missing prototypes.
3589 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3590 pe_find_data_imports.
3591 (pr_sym): Add unused attribute.
3593 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3595 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3596 default from coff to elf.
3598 2001-08-29 Jeff Law <law@redhat.com>
3600 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3602 * emulparams/h8300self.sh: Similarly.
3604 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3606 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3608 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3609 * configure.tgt (h8300-*-elf*): New case.
3610 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3611 * emulparams/h8300self.sh: New file.
3612 * Makefile.in: Regenerated.
3614 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3616 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3619 2001-08-27 Linus Nordberg <linus@swox.com>
3620 Alan Modra <amodra@bigpond.net.au>
3622 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3623 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3625 * Makefile.in: Regenerate.
3626 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3627 entries to correct alphabetical position.
3628 * emulparams/elf64ppc.sh: New.
3629 * emulparams/elf64lppc.sh: New.
3631 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3633 * ldmain.c (main): Declare BSIZE as static.
3635 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3637 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3638 into .rel.dyn resp. .rela.dyn if combreloc.
3639 (get_script): If .x linker script is equal to .xn, only put it
3640 once into the binary.
3641 Add .xc and .xsc scripts.
3642 (parse_args): Handle -z combreloc and -z nocombreloc.
3643 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3644 For .xc and .xsc scripts put all .rel* or .rela* input sections
3645 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3646 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3648 Strip trailing whitespace from script.
3649 Generate .xc and .xsc scripts if requested.
3650 * ldmain.c (main): Initialize link_info.combreloc and
3651 link_info.spare_dynamic_tags.
3652 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3653 (ld_options): Add --spare-dynamic-tags option.
3654 (parse_args): Likewise.
3655 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3656 * ldint.texinfo: Document .xc and .xsc linker scripts.
3657 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3659 2001-08-22 H.J. Lu <hjl@gnu.org>
3661 * emulparams/elf32fr30.sh: Add a newline.
3663 2001-08-21 Andreas Jaeger <aj@suse.de>
3665 * deffilep.y: Add missing prototypes.
3666 * pe-dll.c: Likewise.
3668 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3670 * ldlang.c (insert_pad): Fix typos in last patch.
3672 * ldlang.c: When traversing lang_statement_union_type lists,
3673 consistently use "header.next" rather than "next".
3674 * mpw-eppcmac.c: Likewise.
3675 * emultempl/beos.em: Likewise.
3676 * emultempl/hppaelf.em: Likewise.
3677 * emultempl/pe.em: Likewise.
3678 * ldlang.h (union lang_statement_union): Remove "next" field.
3680 * ldlang.c (insert_pad): Use offsetof macro.
3681 (lang_size_sections): Always neuter padding statements.
3682 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3684 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3685 passed to lang_size_sections.
3686 (pe_exe_fill_sections): Likewise.
3687 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3688 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3690 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3692 * emultempl/aix.em: Formatting fixes.
3694 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3696 * ldlang.c (insert_pad): Make use of an existing pad statement if
3697 available. Move code calculating alignment, adjusting section
3698 alignment power, and adjusting dot to ..
3699 (size_input_section): .. here. Remove unused relax param.
3700 (lang_size_sections): Change boolean `relax' param to boolean *.
3701 Adjust call to size_input_section. Make use of insert_pad to
3702 place pad after the assignment statement. If relaxing, zap
3704 (reset_memory_regions): Reset output_bfd section sizes too.
3705 (relax_again): Move to..
3706 (lang_process): ..here. Adjust call to lang_size_sections, and
3707 remove duplicated code.
3708 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3710 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3712 * ld.texinfo: Document that fill values now use the four least
3714 * emulparams/elf32fr30.sh (NOP): Update.
3715 * emulparams/elf32mcore.sh: Likewise.
3716 * emulparams/elf64_s390.sh: Likewise.
3717 * emulparams/elf_i386.sh: Likewise.
3718 * emulparams/elf_i386_be.sh: Likewise.
3719 * emulparams/elf_i386_chaos.sh: Likewise.
3720 * emulparams/elf_i386_ldso.sh: Likewise.
3721 * emulparams/elf_s390.sh: Likewise.
3722 * emulparams/elf_x86_64.sh: Likewise.
3723 * emulparams/i386moss.sh: Likewise.
3724 * emulparams/i386nw.sh: Likewise.
3725 * emulparams/m68kelf.sh: Likewise.
3726 * scripttempl/elf.sc: Update NOP comment.
3727 * scripttempl/elfi370.sc: Likewise.
3728 * scripttempl/elfm68hc11.sc: Likewise.
3729 * scripttempl/elfm68hc12.sc: Likewise.
3730 * scripttempl/nw.sc: Likewise.
3732 2001-08-15 Tom Rix <trix@redhat.com>
3734 * ldgram.y (saved_script_handle): Initialize to NULL.
3735 * ldmain.c (main): Change check on saved_script_handle.
3737 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3739 * emultempl/elf32.em: Formatting fixes.
3740 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3741 looking at sec->owner.
3742 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3743 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3744 unused code, and reorganize orphan section placement code.
3746 * ldlang.c (wild_doit): Rename to lang_add_section.
3747 * ldlang.h: Here too.
3748 * mpw-elfmips.c: And here.
3749 * emultempl/beos.em: And here.
3750 * emultempl/elf32.em: And here.
3751 * emultempl/hppaelf.em: And here.
3752 * emultempl/pe.em: And here.
3754 2001-08-13 Richard Henderson <rth@redhat.com>
3756 * emultempl/needrelax.em: New file.
3757 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3758 * Makefile.am (eelf64_ia64.c): Depend on it.
3759 * Makefile.in: Rebuild.
3761 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3763 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3764 output_section is set non-NULL.
3766 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3767 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3768 needlessly create an output_section_statement. Treat a correctly
3769 named output_section_statement with NULL bfd_section as compatible.
3771 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3773 * emultempl/generic.em: Support EXTRA_EM_FILE.
3774 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3775 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3776 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3777 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3778 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3779 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3780 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3781 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3782 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3783 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3785 2001-08-12 Richard Henderson <rth@redhat.com>
3787 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3788 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3789 scripttempl/v850.sc: Keep .jcr data.
3791 2001-08-12 H.J. Lu <hjl@gnu.org>
3792 Andrew Haley <aph@cambridge.redhat.com>
3793 Nick Clifton <nickc@redhat.com>
3795 * ldgram.y (had_script): Change name to saved_script_handle.
3796 Change type to file handle.
3797 * ld.h (had_script): Rename and retype.
3798 * ldfile.c (ldfile_open_command_file): Save the file handle
3799 used in saved_script_handle.
3800 * lexsup.c (parse_args): Do not allow -c option to alter
3801 saved_script_handle.
3802 * ldmain.c (main): Print out the linker script used if
3803 --verbose is given. Check saved_script_handle to obtain the
3804 external linker script used, or if NULL, dump the builtin
3806 * ld.texinfo: Document that --verbose now dumps the linker
3807 script used, regardless of whether it was an internal or an
3810 2001-08-10 Andreas Jaeger <aj@suse.de>
3812 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3814 * configure: Regenerate.
3816 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3818 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3820 * scripttempl/elf.sc: Move non-text .dynamic section before
3821 .plt/.got/.sdata* group.
3822 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3823 (OTHER_SDATA_SECTIONS): Add.
3824 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
3826 * emulparams/crislinux.sh: Likewise.
3827 * emulparams/elf32b4300.sh: Likewise.
3828 * emulparams/elf32bmip.sh: Likewise.
3829 * emulparams/elf32bmipn32.sh: Likewise.
3830 * emulparams/elf32bsmip.sh: Likewise.
3831 * emulparams/elf32btsmip.sh: Likewise.
3832 * emulparams/elf32ebmip.sh: Likewise.
3833 * emulparams/elf32elmip.sh: Likewise.
3834 * emulparams/elf32l4300.sh: Likewise.
3835 * emulparams/elf32lmip.sh: Likewise.
3836 * emulparams/elf32lsmip.sh: Likewise.
3837 * emulparams/elf32ltsmip.sh: Likewise.
3838 * emulparams/elf64bmip.sh: Likewise.
3839 * emulparams/elf64btsmip.sh: Likewise.
3840 * emulparams/elf64ltsmip.sh: Likewise.
3842 2001-08-08 Alan Modra <amodra@bigpond.net.au>
3844 * genscripts.sh: Source the emulparams script before each output
3845 script is generated so that variables like `RELOCATING' may affect
3846 variables defined in the emulparams script.
3848 2001-08-04 Alan Modra <amodra@bigpond.net.au>
3850 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
3853 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
3854 ie. iterate over wild_statement.section_list.
3855 (gld${EMULATION_NAME}_place_orphan): Likewise.
3857 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3859 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
3860 .fini[0-4] sections used by _exit
3861 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
3862 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
3863 * scripttempl/elfm68hc11.sc: Likewise.
3865 2001-08-03 H.J. Lu <hjl@gnu.org>
3867 * emultempl/beos.em (init): Add the missing initialization.
3869 2001-08-03 Alan Modra <amodra@bigpond.net.au>
3871 * ld.texinfo (Input Section Basics): Clarify ordering of output
3873 * ldlang.c (callback_t): Add wildcard_list param.
3874 (walk_wild_section): Remove "section" param. Rewrite for
3875 lang_wild_statement_type change. Remove unique_section_p test.
3876 (walk_wild_file): Remove "section" param.
3877 (walk_wild): Remove "section" and "file" params.
3878 (lang_gc_wild): Likewise.
3879 (wild): Likewise. Modify for lang_wild_statement_type change.
3880 (wild_sort): Likewise. Add "sec" param.
3881 (gc_section_callback): Likewise.
3882 (output_section_callback): Likewise. Do unique_section_p test.
3883 (map_input_to_output_sections): Modify call to wild.
3884 (lang_gc_sections_1): Likewise.
3885 (print_wild_statement): Modify for lang_wild_statement_type
3887 (lang_add_wild): Replace filename, filenames_sorted param with
3888 filespec. Replace section_name, sections_sorted,
3889 exclude_filename_list with section_list.
3890 * ldlang.h (lang_add_wild): Here too.
3891 (lang_wild_statement_type): Replace section_name, sections_sorted,
3892 and exclude_filename_list with section_list.
3893 * ldgram.y (current_file): Delete.
3894 (%union): Add wildcard_list.
3895 (file_NAME_list): Set type to wildcard_list. Build a linked list
3896 rather than calling lang_add_wild for each entry.
3897 (input_section_spec_no_keep): Call lang_add_wild here instead.
3898 * ld.h (struct wildcard_list): Declare.
3899 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
3901 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3903 * ldmain.c (main): initialize link_info.pei386_auto_import
3904 * pe-dll.c: new tables for auto-export filtering
3905 (auto_export): change API, pass abfd for contextual filtering.
3906 Loop thru tables of excluded symbols instead of comparing
3909 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
3911 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
3912 static variable current_sec (static struct sec *). Add
3913 forward declaration for add_bfd_to_link.
3914 (process_def_file): Don't export undefined symbols. Do not
3915 export symbols starting with "_imp__". Call auto_export()
3917 (pe_walk_relocs_of_symbol): New function.
3918 (generate_reloc): add optional extra debugging
3919 (pe_dll_generate_def_file): eliminate extraneous initial blank
3921 (make_one): enlarge symtab to make room for __nm__ symbols
3922 (DATA auto-import support).
3923 (make_singleton_name_thunk): New function.
3924 (make_import_fixup_mark): New function.
3925 (make_import_fixup_entry): New function.
3926 (pe_create_import_fixup): New function.
3927 (add_bfd_to_link): Specify that 'name' argument is a CONST
3929 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
3930 declare new functions pe_walk_relocs_of_symbol and
3931 pe_create_import_fixup.
3932 * emultempl/pe.em: add new options --enable-auto-import,
3933 --disable-auto-import, and --enable-extra-pe-debug.
3934 (make_import_fixup): New function.
3935 (pe_find_data_imports): New function.
3936 (pr_sym): New function.
3937 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
3938 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
3941 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
3943 * ld.texinfo: add additional documentation for
3944 --export-all-symbols. Document --out-implib,
3945 --enable-auto-image-base, --disable-auto-image-base,
3946 --dll-search-prefix, --enable-auto-import, and
3947 --disable-auto-import.
3948 * ldint.texinfo: Add detailed documentation on auto-import
3951 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
3953 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
3956 2001-07-24 Alan Modra <amodra@bigpond.net.au>
3958 * Makefile.am: Update dependencies with "make dep-am".
3959 * Makefile.in: Regenerate
3961 2001-07-23 Alan Modra <amodra@bigpond.net.au>
3963 * ldcref.c (check_section_sym_xref): New function.
3964 (check_nocrossrefs): Call it.
3965 (check_nocrossref): Interate over h->refs here instead of..
3966 (check_refs): ..here. Pass in the symbol name, section, and bfd
3967 rather than hash_entry pointers.
3968 (struct check_refs_info): Keep symbol name rather than hash entry.
3970 (check_reloc_refs): Tweak for above changes in check_refs_info.
3971 Only report references to section syms when symname is NULL to
3972 prevent duplicate messages for the same reloc.
3974 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3976 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3977 available. Do not print NULL trees.
3978 (exp_print_token): Print unknown tokens with values > 126 as
3979 decimal values not ASCII characters.
3981 * ldlang.c (lang_leave_overlay): If a region is specified assign
3982 it to all sections inside the overlay unless they have been
3983 assigned to the own, non-default, memory region.
3985 * README: Add header for consistency with other README files.
3987 2001-07-14 H.J. Lu <hjl@gnu.org>
3989 * emultempl/elf32.em (output_prev_sec_find): Never return
3990 bfd_abs_section_ptr, bfd_com_section_ptr nor
3991 bfd_und_section_ptr.
3993 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3995 * Makefile.am (em32relf.c): Change dependency from generic.em to
3997 * Makefile.in: Regenerate.
3999 2001-07-14 matthew green <mrg@eterna.com.au>
4001 * configure.tgt (i386-*-netbsdelf*): New target.
4002 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4004 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4006 * emultempl/elf32.em (output_prev_sec_find): New.
4007 (place_orphan): Use it.
4009 2001-07-11 H.J. Lu <hjl@gnu.org>
4011 * ldmain.c (main): Fix typos in the last change.
4013 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4015 * ldmain.c (main): Disallow -F and -f without -shared.
4017 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4019 * emultempl/pe.em (after_open): Check for the output_bfd not
4020 having any coff_data structure allocated to it.
4022 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4024 * emultempl/elf32.em: Do not assuming that contents of the buffer
4025 returned from basename function will remain unchanged accross other
4028 2001-07-03 H.J. Lu <hjl@gnu.org>
4030 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4031 2001-07-03. It creates dynamic entries even for static binaries.
4033 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4035 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4036 (DYNAMIC): Use it to reserve few dynamic entries for
4039 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4041 * emulparams/hppa64linux.sh: New file.
4042 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4043 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4044 (ehppa64linux.c): Add rule to make it.
4046 * Makefile.in: Regenerate.
4048 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4050 * ld.texinfo (Options, -r): Mention restrictions when using
4051 different object formats.
4053 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4055 * ldlang.c (lang_check): Emit fatal error if relocatable link
4056 between different object flavours with relocations in input.
4058 2001-06-19 H.J. Lu <hjl@gnu.org>
4060 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4061 (--version-script): Mention the language support.
4063 2001-06-19 H.J. Lu <hjl@gnu.org>
4065 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4067 2001-06-18 H.J. Lu <hjl@gnu.org>
4069 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4070 (diststuff): Add $(MANS).
4071 * Makefile.in: Regenerated.
4075 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4077 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4078 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4079 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4080 * ld.h (args_type): Remove member export_dynamic. All users
4081 changed to use struct bfd_link_info member.
4083 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4084 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4085 * Makefile.in: Regenerate.
4087 2001-06-18 H.J. Lu <hjl@gnu.org>
4089 * ldlang.c (init_os): Add the newline to the einfo call.
4090 (lang_check): Likewise.
4091 (lang_do_version_exports_section): Likewise.
4093 2001-06-15 H.J. Lu <hjl@gnu.org>
4095 * lexsup.c (parse_args); Save optind to report unrecognized
4098 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4100 * ldlang.c (lang_check): Emit fatal error if relocatable link
4101 between different object flavours.
4103 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4104 Set new link_info member export_dynamic.
4105 * ldmain.c (main): Initialize new link_info member export_dynamic.
4107 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4109 * ldlang.c (walk_wild): Only call walk_wild_file if
4110 lookup_name returns something.
4111 (lookup_name): If load_symbols fails, return NULL.
4112 (load_symbols): Change to a boolean function.
4113 (open_input_bfds): If load_symbols fails then do not make the
4116 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4118 * ldlang.c (record_bfd_errors): Remove.
4120 * emultempl/aix.em: Fix copyright dates.
4122 2001-06-07 Andreas Jaeger <aj@suse.de>
4124 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4125 (TEXT_START_ADDR): Likewise.
4127 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4129 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4131 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4133 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4135 2001-05-31 H.J. Lu <hjl@gnu.org>
4137 * ldlang.c (open_input_bfds): Don't change the bfd error
4138 handler whilst loading symbols.
4140 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4142 * configure.tgt: Remove i370-mvs architecture, it is not currently
4145 2001-05-25 H.J. Lu <hjl@gnu.org>
4147 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4148 like emulparams/aixppc.sh.
4150 2001-05-25 H.J. Lu <hjl@gnu.org>
4152 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4153 setting of output_filename after bfd_scan_arch.
4154 * emultempl/pe.em: Likewise.
4156 2001-05-25 H.J. Lu <hjl@gnu.org>
4158 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4159 like emulparams/aixppc.sh.
4161 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4162 instead of ${srcdir}/emultempl/stringify.sed.
4164 2001-05-25 Timothy Wall <twall@oculustech.com>
4166 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4169 2001-05-25 Alan Modra <amodra@one.net.au>
4171 * configure.host: Replace linuxoldld with linux*oldld.
4172 * configure.tgt: Likewise.
4174 2001-05-24 H.J. Lu <hjl@gnu.org>
4176 * emultempl/stringify.sed: Removed again.
4178 2001-05-24 H.J. Lu <hjl@gnu.org>
4180 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4181 (gld${EMULATION_NAME}_before_parse): Initialize
4182 ldfile_output_architecture, ldfile_output_machine and
4183 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4184 * emultempl/beos.em: Likewise.
4185 * emultempl/elf32.em: Likewise.
4186 * emultempl/linux.em: Likewise.
4187 * emultempl/mipsecoff.em: Likewise.
4188 * emultempl/pe.em: Likewise.
4189 * emultempl/sunos.em: Likewise.
4191 2001-05-24 Tom Rix <trix@redhat.com>
4193 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4194 udate import file format.
4195 (change_symbol_mode) New, same
4196 (is_syscall) New, same
4197 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4198 * emulparams/aixppc64.sh : same
4199 * emulparams/aixrs6.sh : same
4200 * emulparams/ppcmacos.sh : same
4201 * emultempl/aix.em : use strtoull to parse options
4202 * Makefile.am : add eaixppc64 emulation for xcoff64
4203 * Makefile.in : same
4204 * configure.tgt : same
4206 * scripttempl/aix.sc : default text section offset to 0x10000000
4207 default data section offset to 0x20000000
4208 add .sv3264 and .sv64 pseudo sections
4209 loader and debug sections use the currect section offset.
4211 * emultempl/aix.em : Add xcoff64 support
4212 Add -binitfini support
4213 (gld${EMULATION_NAME}_before_parse) -binitfini
4214 (gld${EMULATION_NAME}_parse_args) same
4215 (gld${EMULATION_NAME}_before_allocation) format change for special
4218 * emulparams/aixppc64.sh : New file for xcoff64 support
4220 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4222 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4223 variable to avoid non-portable shell construct.
4225 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4227 * ldmain.c (get_emulation): Add -mips5 command line argument.
4229 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4231 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4232 (ELF_INTERPRETER_NAME): Define it.
4233 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4235 * configure.tgt (targ_emul, targ_extra_emuls)
4236 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4237 as primary, elf_i386 as extra.
4238 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4239 (eelf_i386_ldso.c): New rule.
4240 * Makefile.in: Rebuilt.
4242 2001-05-22 Nick Clifton <nickc@redhat.com>
4244 * lexsup.c (ld_options): Allow -I to be an alias for
4245 --dynamic-linker. This is for Solaris compatability.
4246 * ld.texinfo: Document that -I can be used.
4249 2001-05-16 Alan Modra <amodra@one.net.au>
4251 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4252 whether an input section is the first one assigned to an output
4254 Assorted formatting fixes.
4256 2001-05-14 DJ Delorie <dj@delorie.com>
4258 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4259 * Makefile.in: Ditto.
4261 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4263 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4264 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4266 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4268 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4270 * ldlang.c (lang_process): Call bfd_merge_sections.
4272 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4274 * ldgram.y: Fix typo.
4276 2001-05-03 H.J. Lu <hjl@gnu.org>
4278 * emultempl/elf32.em: Include "libiberty.h".
4279 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4280 basename of the bfd filename.
4281 (gld${EMULATION_NAME}_stat_needed): Likewise.
4282 (gld${EMULATION_NAME}_try_needed): Likewise.
4283 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4285 2001-05-02 H.J. Lu <hjl@gnu.org>
4287 * emultempl/pe.em: Include <ctype.h>.
4289 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4291 * emulparams/elf32openrisc.sh: New file.
4293 * Makefile.am: Add OpenRISC target.
4294 * Makefile.in: Regenerated.
4296 * configure.tgt: Add openrisc-*-* mapping.
4298 2001-05-02 Nick Clifton <nickc@redhat.com>
4300 * emultempl/aix.em: Replace buystring with xstrdup.
4301 * emultempl/beos.em: Replace buystring with xstrdup.
4303 2001-05-02 H.J. Lu <hjl@gnu.org>
4305 * ldfile.c: Include "libiberty.h".
4306 * ldlex.l: Likewise.
4308 * ldmisc.c (buystring): Removed.
4309 * ldmisc.h: Likewise.
4311 * ldfile.c: Replace buystring with xstrdup.
4312 * ldlang.c: Likewise.
4313 * ldlex.l: Likewise.
4314 * ldmain.c: Likewise.
4315 * ldmisc.c: Likewise.
4316 * lexsup.c: Likewise.
4317 * mpw-eppcmac.c: Likewise.
4319 2001-04-30 Andreas Jaeger <aj@suse.de>
4321 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4323 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4325 * ldlang.c (load_symbols): Give emulation a chance
4326 to process unrecognized file before fatal error is
4327 reported, not after.
4329 2001-04-27 Sean McNeil <sean@mcneil.com>
4331 * configure.tgt: Add arm-vxworks target.
4332 * scripttempl/armcoff.sc: Support .text or .data as a section name
4336 2001-04-13 J.T. Conklin <jtc@redback.com>
4338 * ld.texinfo: Document --fatal-warnings.
4341 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4342 warnings have been turned into errors.
4343 * lexsup.c (OPTION_WARN_FATAL): Define.
4344 (ld_options): Entry for --fatal-warnings.
4345 (parse_args): Handle OPTION_WARN_FATAL.
4346 * ld.h (ld_config_type): Add fatal_warnings field.
4348 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4350 * ldmain.c (main): Default to discard_sec_merge.
4351 * lexsup.c (OPTION_DISCARD_NONE): Define.
4352 (ld_options): Add --discard-none.
4353 (parse_args): Handle OPTION_DISCARD_NONE.
4354 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4355 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4356 all its input sections match.
4358 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4360 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4361 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4362 (eelf32ltsmip.c): New target.
4363 (eelf64btsmip.c): Likewise.
4364 (eelf64ltsmip.c): Likewise.
4365 * Makefile.in: Regenerated.
4367 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4369 (mips*-*-linux-gnu*): Likewise.
4371 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4373 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4375 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4378 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4380 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4381 correct value of __Stext here.
4382 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4385 * emulparams/crislinux.sh: Remove FIXME.
4387 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4389 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4390 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4392 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4394 * configure.tgt (cris-*-*): Change default emulation to criself.
4395 (cris-*-*aout*): New rule.
4397 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4399 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4400 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4402 2001-03-26 Andreas Jaeger <aj@suse.de>
4404 * ld.texinfo (Overview): Fix syntax in texi code.
4406 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4408 * ld.texinfo: Put @c man indications to generate the ld man page.
4409 When generating man, define all the variables. Define SEEALSO
4410 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4411 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4412 (ld.1): Generate from ld.texinfo.
4413 * Makefile.in: Regenerate.
4415 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4417 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4418 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4420 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4422 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4423 is an absolute path look only for this file and not along the path.
4425 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4427 * emultempl/elf32.em (OPTION_GROUP): New macro.
4428 Add new option Bgroup to longopts.
4429 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4430 (gld*_list_options): Add -Bgroup and -z defs.
4431 * ld.1: Document -Bgroup and -z defs.
4432 * ld.texinfo: Likewise.
4434 2001-03-07 Michael Meissner <meissner@redhat.com>
4436 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4437 with sections created by -fdata-sections.
4438 (.dynbss,.bss): Ditto.
4440 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4442 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4443 after_allocation_default, not gld..._before_allocation.
4445 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4447 * configure.in (BFD_VERSION): New.
4448 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4449 * configure: Regenerate.
4450 * Makefile.am: Run "make dep-am"
4451 * Makefile.in: Regenerate.
4453 2001-02-26 Timothy Wall <twall@cygnus.com>
4455 * emulparams/elf64_aix.sh: Add additional read-only sections;
4456 uncomment lines which are now required.
4458 2001-02-26 H.J. Lu <hjl@gnu.org>
4460 * ldlang.c (open_input_bfds): Set the bfd error handler so
4461 that problems can be caught whilst loading symbols.
4462 (record_bfd_errors): New function: Report BFD errors and mark
4463 the executable output as being invalid.
4465 2001-02-22 Timothy Wall <twall@cygnus.com>
4467 * configure.host: Add configuration for ia64-*-aix*.
4468 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4469 Add dependencies for eelf64_aix.c.
4470 * Makefile.in: Regenerate.
4471 * configure.tgt: Add ia64-*-aix* mapping.
4472 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4474 2001-02-20 H.J. Lu <hjl@gnu.org>
4476 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4477 false if we found the file.
4479 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4481 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4482 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4484 2001-02-18 lars brinkhoff <lars@nocrew.org>
4486 * Makefile.am: Add PDP-11 target.
4487 * configure.tgt: Likewise.
4488 * emulparams/pdp11.sh: New file.
4490 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4492 * configure.host: Add a generic FreeBSD configuration entry such that
4493 all [modern] FreeBSD systems on all platforms will look the same.
4495 2001-02-14 H.J. Lu <hjl@gnu.org>
4497 * configure.tgt: Remove mention of earmelf_linux26.
4499 2001-02-13 Richard Henderson <rth@redhat.com>
4501 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4503 2001-02-13 H.J. Lu <hjl@gnu.org>
4505 * ldexp.h (node_type): Add etree_provided.
4506 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4507 type to etree_provided if defined by PROVIDE. Allow updating
4509 (exp_print_tree): Handle etree_provided.
4510 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4513 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4515 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4516 .IA_64.unwind.* pattern to unwind table section and
4517 .IA_64.unwind_info* pattern to unwind info section.
4519 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4521 * Makefile.am: Add linux target for S/390.
4522 * Makefile.in: Likewise.
4523 * configure.host: Likewise.
4524 * configure.tgt: Likewise.
4525 * emulparams/elf64_s390.sh: New file.
4526 * emulparams/elf_s390.sh: New file.
4528 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4530 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4532 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4534 2001-02-06 Philip Blundell <philb@gnu.org>
4536 * Makefile.am: Remove mention of earmelf_linux26.
4537 * Makefile.in: Regenerate.
4539 2001-02-04 Philip Blundell <philb@gnu.org>
4541 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4542 * emulparams/armelf_linux26.sh: Delete.
4543 * configure.tgt: Remove mention of armelf_linux26 emulation.
4545 2001-02-01 Nick Clifton <nickc@redhat.com>
4547 * ld.1: Replace occurances of -oformat with --oformat.
4549 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4551 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4552 load_base is specified.
4554 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4556 * emultempl/elf32.em: Correct spelling in comments and listed
4559 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4561 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4562 default for the first section of a group of overlay sections.
4564 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4566 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4567 * Makefile.in: Regenerate.
4568 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4569 Check for null tool_dir.
4571 2001-01-16 Jim Wilson <wilson@redhat.com>
4573 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4574 and IA_64.unwind.info.
4576 2001-01-16 H.J. Lu <hjl@gnu.org>
4578 * ldlang.c (lang_check): Merge the private data only if the
4579 input file has contents.
4581 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4583 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4585 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4586 enabling search for libmilli. On a relocatable link, make .text
4588 (LDEMUL_AFTER_PARSE): Define.
4589 (hppaelf_finish): Correct spelling of relocatable in comments.
4591 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4592 rummage through the script for sections on the unique list.
4593 Correct length of strncmp for ".note".
4594 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4596 * ldlang.c (unique_section_list): New var.
4597 (unique_section_p): New function.
4598 (walk_wild_section): Don't match sections on unique_section_list.
4599 (lang_add_unique): New function.
4600 Correct spelling of relocatable in comments.
4602 * ldlang.h (struct unique_sections): Declare.
4603 (unique_section_list): Declare.
4604 (unique_section_p): Declare.
4605 (lang_add_unique): Declare.
4607 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4608 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4610 * ld.texinfo (--unique): Update.
4612 2001-01-13 Nick Clifton <nickc@redhat.com>
4614 * lexsup.c (parse_args): Remove spurious white space.
4616 2001-01-12 Nick Clifton <nickc@redhat.com>
4618 * lexsup.c (parse_args): Update copyright date.
4620 2001-01-12 Philip Blundell <pb@futuretv.com>
4622 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4624 2001-01-10 Kazu Hirata <kazu@hxi.com>
4626 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4627 * scripttempl/h8300h.sc: Fix formatting.
4628 * scripttempl/h8300s.sc: Likewise.
4629 * scripttempl/h8500.sc: Likewise.
4630 * scripttempl/h8500b.sc: Likewise.
4631 * scripttempl/h8500c.sc: Likewise.
4632 * scripttempl/h8500m.sc: Likewise.
4633 * scripttempl/h8500s.sc: Likewise.
4635 2000-01-07 David O'Brien <obrien@BSDi.com>
4637 * emultempl/elf32.em: Only perform Linux ld hints processing when
4640 2001-01-07 Philip Blundell <philb@gnu.org>
4642 * ld.texinfo (Bug Reporting): Update email address for reports.
4644 2000-12-31 Nick Clifton <nickc@redhat.com>
4646 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4647 options by checking for a return value of '?' not -1.
4649 2000-12-28 Nick Clifton <nickc@redhat.com>
4651 * lexsup.c (struct ld_option): Add new enum value:
4653 (ld_options[]): Change -omagic, -output and -oformat options
4654 to be EXACTLY_TWO_DASHES.
4655 (OUTPUT_COUNT): Use ARRAY_SIZE.
4656 (parse_args): Change parameter 'argc' to unsigned.
4657 Place EXACTLY_TWO_DASHES options into new really_longopts
4659 If getopt_long_only fails, try calling getopt_long using the
4660 really_longopts array.
4661 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4664 * ldlex.h: Fix prototype of parse_args.
4666 * ld.texinfo: Document that long options starting with 'o'
4667 must be preceeded by two dashes. Change example of a single
4668 dashed long option from -oformat to -trace-symbol.
4670 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4672 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4673 (longopts[]): New --no-default-excludes option.
4674 (gld_${EMULATION_NAME}_list_options): Document.
4675 (gld_${EMULATION_NAME}_parse_args): Handle.
4677 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4679 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4680 whitespace, it breaks the K&R C preprocessor.
4682 2000-12-11 DJ Delorie <dj@redhat.com>
4684 * ld.texinfo: Add notes about --whole-archive and gcc.
4686 2000-11-18 Fred Fish <fnf@be.com>
4688 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4689 (ld_options): Entry for --allow-shlib-undefined.
4690 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4691 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4693 * ld.texinfo: Document new command line switch.
4695 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4697 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4698 .fixup is actually read/write.
4699 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4700 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4701 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4703 2000-12-11 Jan Hubicka <jh@suse.cz>
4705 * NEWS: Add note about x86_64 architecture.
4707 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4709 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4710 Set DWARF2 sections to a VMA of zero.
4712 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4714 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4716 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4717 (sparc*-*-rtems*): Switched from a.out to ELF.
4719 2000-11-30 Jan Hubicka <jh@suse.cz>
4721 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4722 (eelf_x86_64.c): New.
4723 * Makefile.in: Regenerate.
4724 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4725 * emulparams/elf_x86_64.sh: New.
4727 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4729 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4730 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4732 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4733 merging non-a.out sections into CONSTRUCTING.
4735 2000-11-28 Nick Clifton <nickc@redhat.com>
4737 * ld.1 (COPYING): Mention that the GNU Free Documentation
4738 License is present in the sources, but not the output, and
4739 also available from the GNU website.
4740 (GNU Free Documentation License): Comment out this section.
4742 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4744 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4747 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4749 * ld.1: Remove old date so it does not give the impression the manpage
4752 2000-11-24 Nick Clifton <nickc@redhat.com>
4754 * configure.tgt (xscale-coff): Add target.
4755 (xscale-elf): Add target.
4757 2000-11-24 Fred Fish <fnf@be.com>
4759 * ldmain.c (main): Remove redundant init of config.make_executable
4762 2000-11-15 Richard Henderson <rth@redhat.com>
4764 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4766 2000-11-14 Kazu Hirata <kazu@hxi.com>
4768 * scripttempl/h8300.sc: Fix formatting.
4769 * scripttempl/h8300h.sc: Likewise.
4770 * scripttempl/h8300s.sc: Likewise.
4772 2000-11-14 Denis Chertykov <denisc@overta.ru>
4774 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4776 2000-11-09 Philip Blundell <pb@futuretv.com>
4778 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4779 around orphan sections whose names can be represented in C.
4781 2000-11-07 Jim Wilson <wilson@redhat.com>
4783 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4784 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4786 2000-11-06 Nick Clifton <nickc@redhat.com>
4788 * ld.texinfo: Add GNU Free Documentation License.
4789 * ldint.texinfo: Add GNU Free Documentation License.
4790 * ld.1: Add GNU Free Documentation License.
4792 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4794 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4795 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4797 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4798 Move 2000-11-02 Makefile.in changes to this file.
4799 * Makefile.in: Regenerate.
4801 2000-11-03 Nick Clifton <nickc@redhat.com>
4803 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4804 constructors and destructors.
4805 * scripttempl/h8300h.sc: Ditto.
4806 * scripttempl/h8300s.sc: Ditto.
4807 * scripttempl/h8500.sc: Ditto.
4808 * scripttempl/h8500b.sc: Ditto.
4809 * scripttempl/h8500c.sc: Ditto.
4810 * scripttempl/h8500m.sc: Ditto.
4811 * scripttempl/h8500s.sc: Ditto.
4812 * scripttempl/v850.sc: Ditto.
4813 * scripttempl/w65.sc: Ditto.
4814 * scripttempl/z8000.sc: Ditto.
4816 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4818 * Makefile.in (e_i386_chaos.c): New rule.
4819 (ALL_EMULATIONS): Added e_i386_chaos.o.
4820 * emulparams/elf_i386_chaos.sh: New file.
4821 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4823 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4825 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
4826 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
4827 Fix sed invocation, so that it coped with '/' in Solaris 64bit
4828 library path suffix.
4829 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
4831 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4833 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
4834 for consecutive sections.
4836 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4838 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
4840 * ld.texinfo: Added notes about this new option.
4842 2000-10-16 Nick Clifton <nickc@redhat.com>
4844 * emultempl/pe.em (_after_open): Add tests of return values from
4845 bfd functions. Emit appropriate error messages if necessary.
4847 2000-10-13 Nick Clifton <nickc@redhat.com>
4849 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
4850 local variables - they are not used, but leave in the call to
4851 bfd_canonicalize_symtab.
4852 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
4853 pe_dll_search_prefix.
4855 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
4857 * emultempl/pe.em (pe_dll_search_prefix): New variable,
4858 (longopts): New --dll-search-prefix option.
4859 (gld_${EMULATION_NAME}_list_options): Document.
4860 (gld_${EMULATION_NAME}_parse_args): Handle.
4861 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
4862 dynamically, search for a dll named '<prefix><basename>.dll'
4863 in preference to 'lib<basename>.dll' if --dll-search-prefix
4866 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4868 * ldlang.c (section_already_linked): Set kept_section instead of
4871 2000-10-10 Kazu Hirata <kazu@hxi.com>
4873 * deffile.h: Fix formatting.
4874 * lexsup.c: Likewise.
4877 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4879 * pe-dll.c (make_one): Do not generate code thunk for DATA
4881 (process_def_file): deduce DATA flag for auto-export sumbols.
4883 2000-10-09 Kazu Hirata <kazu@hxi.com>
4885 * ld.h: Fix formatting.
4886 * ldcref.c: Likewise.
4887 * ldctor.h: Likewise.
4888 * ldemul.c: Likewise.
4889 * ldemul.h: Likewise.
4890 * ldexp.c: Likewise.
4891 * ldexp.h: Likewise.
4892 * ldfile.c: Likewise.
4893 * ldfile.h: Likewise.
4894 * ldlang.c: Likewise.
4895 * ldlang.h: Likewise.
4896 * ldmain.c: Likewise.
4897 * pe-dll.c: Likewise.
4899 * pe-dll.c: Revert some formatting fixes.
4901 2000-10-08 Kazu Hirata <kazu@hxi.com>
4903 * pe-dll.c: Fix formatting.
4905 2000-10-05 Kazu Hirata <kazu@hxi.com>
4907 * ldlang.c: Fix formatting.
4909 2000-10-03 DJ Delorie <dj@redhat.com>
4911 * pe-dll.c (fill_edata): initialize entire block
4912 (make_one): fill in correct section.
4914 2000-10-03 Kazu Hirata <kazu@hxi.com>
4916 * ldexp.c: Fix formatting.
4918 2000-10-02 DJ Delorie <dj@redhat.com>
4920 * emultempl/pe.em (gld_*_after_open): detect case where there two
4921 import libraries for same dll; rename one to ensure proper link
4924 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
4926 (generate_edata): fix typo
4928 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4930 * scripttempl/crisaout.sc (ENTRY): Now __start.
4931 (.text): Add default setting for __start.
4932 Remove CONSTRUCTORS handling.
4933 (/DISCARD/): Add .gnu.warning.*.
4934 * emulparams/crislinux.sh (ENTRY): Now __start.
4935 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
4936 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
4937 (ENTRY): Now __start.
4938 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
4939 (EXECUTABLE_SYMBOLS): Add default setting for __start.
4941 2000-09-29 Kazu Hirata <kazu@hxi.com>
4943 * deffile.h: Fix formatting.
4945 * ldcref.c: Likewise.
4946 * ldctor.c: Likewise.
4947 * ldctor.h: Likewise.
4948 * ldemul.c: Likewise.
4949 * ldemul.h: Likewise.
4950 * ldexp.c: Likewise.
4951 * ldexp.h: Likewise.
4952 * ldfile.c: Likewise.
4953 * ldfile.h: Likewise.
4954 * ldlang.c: Likewise.
4955 * ldlang.h: Likewise.
4956 * lexsup.c: Likewise.
4958 * pe-dll.c: Likewise.
4960 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4962 * pe-dll.c (process_def_file): Uninitialized data wasn't
4963 exported with --export-all-symbols switch.
4965 2000-09-28 DJ Delorie <dj@redhat.com>
4967 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
4968 noname work properly.
4970 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4972 * ld.texinfo (HPPA ELF32): New section.
4974 * emultempl/hppaelf.em (group_size): New.
4975 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4976 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4977 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4978 options to prevent abbreviations matching.
4979 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4980 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4982 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4984 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4985 on the m68*-*-elf target. Make it support COFF input objects.
4987 2000-09-21 Kazu Hirata <kazu@hxi.com>
4989 * ldmain.c: Fix formatting.
4990 * ldmisc.c: Likewise.
4991 * ldver.c: Likewise.
4992 * ldwrite.c: Likewise.
4994 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4996 * ldwrite.c (clone_section): Silence gcc warnings.
4998 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5000 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5001 out of memory failure.
5003 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5004 (clone_section): Handle out of memory failures. Rename var to
5005 avoid c++ reserved word.
5007 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5009 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5010 stub_name param to stub_sec_name.
5011 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5013 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5015 * emultempl/m68kelf.em: New file.
5016 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5017 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5018 * Makefile.in: Regenerate.
5020 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5022 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5025 2000-09-13 Nick Clifton <nickc@redhat.com>
5027 * ldmain.c (multiple_definition): Disable relaxation if
5028 multiple symbol definitions are encountered - otherwise the
5029 linker could abort with an assertion failure.
5031 2000-09-10 Nick Clifton <nickc@redhat.com>
5033 * mri.c: Fix formatting.
5035 2000-09-07 H.J. Lu <hjl@gnu.org>
5037 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5038 * configure: Rebuild.
5040 2000-09-07 H.J. Lu <hjl@gnu.org>
5042 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5043 * Makefile.in: Rebuild.
5045 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5047 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5048 broken list handling. Create __start_SECNAME and __stop_SECNAME
5049 when no place-holder. Add some comments. Test both SEC_CODE and
5050 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5051 Handle case where no output section statement created.
5053 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5055 * configure.tgt (sh-*-linux*): Added.
5056 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5057 * Makefile.in: Rebuilt.
5058 * emulparams/shelf_linux.sh: New file.
5059 * emulparams/shlelf_linux.sh: New file.
5061 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5063 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5064 try shuffling sections when the orphan happens to be the place
5065 holder. Keep count of unique section names generated so we speed
5066 the search for a new name.
5068 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5070 * configure: Rebuilt with new libtool.m4.
5072 2000-09-05 Nick Clifton <nickc@redhat.com>
5074 * Makefile.in: Regenerate.
5075 * aclocal.m4: Regenerate.
5076 * configure: Regenerate.
5077 * config.in: Regenerate.
5078 * po/ld.pot: Regenerate.
5080 * ldint.texinfo: Remove CVS revision marker - it foils local
5083 * emultempl/ticoff.em: Remove extraneous comma.
5085 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5087 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5088 to stub section flags.
5089 (hppa_for_each_input_file_wrapper): New.
5090 (hppa_lang_for_each_input_file): New.
5091 (lang_for_each_input_file): Define to call above.
5092 (multi_subspace): New.
5093 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5094 (PARSE_AND_LIST_PROLOGUE): Define.
5095 (PARSE_AND_LIST_LONGOPTS): Define.
5096 (PARSE_AND_LIST_OPTIONS): Define.
5097 (PARSE_AND_LIST_ARGS_CASES): Define.
5098 (hppaelf_finish): Call elf32_hppa_set_gp.
5099 (hppaelf_set_output_arch): Remove.
5100 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5102 * emulparams/hppalinux.sh (ELFSIZE): Define.
5104 (OTHER_READONLY_SECTIONS): Define.
5106 (GENERATE_SHLIB_SCRIPT): Define.
5108 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5109 to const throughout. Change `void *' to `PTR' throughout.
5110 (lang_memory_default): Function is local to file, add `static'.
5112 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5113 (ehppalinux.c): Likewise.
5114 (earmelf.c): Likewise.
5115 (earmelf_linux.c): Likewise.
5116 (earmelf_linux26.c): Likewise.
5117 * Makefile.in: Regenerate.
5119 * ld.h (ld_config_type): Add unique_orphan_sections.
5120 * lexsup.c (OPTION_UNIQUE): Define.
5121 (ld_options): Add "--unique".
5122 (parse_args): Handle it.
5123 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5124 search for an existing output section if unique_orphan_sections is
5125 set. Make use of bfd_get_unique_section_name rather than
5126 duplicating code here.
5127 * ld.texinfo: Describe --unique.
5129 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5130 optional arg to split-by-file.
5131 (parse_args): Handle them.
5132 * ld.texinfo: Update description of these options.
5133 * ldwrite.c (clone_section): Pass in the section name. Replace
5134 local code with bfd_get_unique_section_name.
5135 (split_sections): Tidy code and comments. Use a list traversal
5136 more appropriate to the list construction. Handle cooked section
5137 sizes. Split when split_by_reloc reached rather than exceeded.
5138 Track section size and split when split_by_file reached. Fix
5139 link_order_tail (even though it's not used).
5140 (ldwrite): Modify condition for calling split_sections to suit
5141 changed split_by_reloc and split_by_file.
5142 * ldmain.c (main): Init config.split_by_reloc and
5143 config.split_by_file to -1.
5144 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5145 Change split_by_file to bfd_size_type.
5147 2000-09-02 Nick Clifton <nickc@redhat.com>
5149 * configure.in: Increase version number to 2.10.91.
5150 * NEWS: Mention new ability to support removal of duplicate DWARF2
5152 * configure: Regenerate.
5153 * aclocal.m4: Regenerate.
5154 * config.in: Regenerate.
5156 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5158 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5160 * scripttempl/elf32avr.sc: Ditto.
5161 * scripttempl/elfd10v.sc: Ditto.
5162 * scripttempl/elfd30v.sc: Ditto.
5163 * scripttempl/elfi370.sc: Ditto.
5164 * scripttempl/elfm68hc11.sc: Ditto.
5165 * scripttempl/elfm68hc12.sc: Ditto.
5166 * scripttempl/elfi386beos.sc: Ditto.
5167 * scripttempl/v850.sc: Ditto.
5169 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5171 * acinclude.m4: Include libtool and gettext macros from the
5173 * aclocal.m4, configure: Rebuilt.
5175 2000-08-25 Nick Clifton <nickc@redhat.com>
5177 * ldlang.c (open_output): When choosing the target for a
5178 particular endianness, do nothing if the target is not
5181 2000-08-25 H.J. Lu <hjl@gnu.org>
5183 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5184 check -rpath nor LD_RUN_PATH for cross link.
5185 * ld.texinfo: Document the change.
5187 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5189 * NEWS: Mention support for CRIS.
5191 2000-08-23 H.J. Lu <hjl@gnu.org>
5193 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5194 the current runpath list from bfd_elf_get_runpath_list ()
5197 2000-08-22 H.J. Lu <hjl@gnu.org>
5199 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5200 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5201 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5202 trace_file_tries is non-zero.
5203 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5204 if trace_file_tries is non-zero.
5206 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5209 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5211 * NEWS: Mention i860 support.
5213 2000-08-14 Andreas Schwab <schwab@suse.de>
5215 * scripttempl/elf.sc: Fix last change to use correct comment
5218 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5220 * scripttempl/elf.sc: Add a comment giving the correspondence
5221 between sections, per-datum sections, and linkonce sections. Make
5222 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5225 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5227 * emulparams/elf32_i860.sh: New file.
5228 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5229 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5230 (eelf32_i860.c): New rule.
5231 * Makefile.in: Regenerate.
5233 2000-08-10 Nick Clifton <nickc@cygnus.com>
5235 * emulparams/mipspe.sh (ENTRY): Add definition.
5237 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5239 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5242 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5244 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5245 the final size of .bss section.
5246 * scripttempl/elfm68hc12.sc: Likewise.
5248 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5250 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5251 gld${EMULATION_NAME}_parse_args for consistency. Combine
5252 lastoptind and prevoptind vars, and keep track of last optind.
5253 (gld_${EMULATION_NAME}_list_options): Rename to
5254 gld${EMULATION_NAME}_list_options.
5256 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5258 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5259 (i586-sco-sysv5uw7.1.0).
5261 2000-07-27 H.J. Lu <hjl@gnu.org>
5263 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5264 (PARSE_AND_LIST_PROLOGUE): New.
5265 (PARSE_AND_LIST_LONGOPTS): Likewise.
5266 (PARSE_AND_LIST_OPTIONS): Likewise.
5267 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5268 (PARSE_AND_LIST_EPILOGUE): Likewise.
5270 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5272 * emultempl/armelf.em: Elide functions common to elf32.em,
5273 ie. most of the file.
5274 (arm_elf_after_open): New. Do arm specific things then call
5275 gld${EMULATION_NAME}_after_open.
5276 (arm_elf_before_allocation): New. Call
5277 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5278 (PARSE_AND_LIST_PROLOGUE): Define.
5279 (PARSE_AND_LIST_SHORTOPTS): Define.
5280 (PARSE_AND_LIST_LONGOPTS): Define.
5281 (PARSE_AND_LIST_OPTIONS): Define.
5282 (PARSE_AND_LIST_ARGS_CASES): Define.
5283 (LDEMUL_AFTER_OPEN): Define.
5284 (LDEMUL_BEFORE_ALLOCATION): Define.
5285 (LDEMUL_BEFORE_PARSE): Define.
5286 (LDEMUL_FINISH): Define.
5288 * emultempl/hppaelf.em: Similarly zap most of this file.
5289 (hppaelf_add_stub_section): Prototype.
5290 (hppaelf_layaout_sections_again): Prototype.
5291 (hook_in_stub): Prototype.
5292 (LDEMUL_SET_OUTPUT_ARCH): Define.
5293 (LDEMUL_FINISH): Define.
5294 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5296 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5297 (EXTRA_EM_FILE): New.
5298 * emulparams/armelf_linux.sh: Likewise.
5299 * emulparams/armelf_linux26.sh: Likewise.
5300 * emulparams/hppalinux.sh: Likewise.
5301 * emulparams/hppaelf.sh: Likewise.
5304 * emultempl/elf32.em: Fix formatting.
5305 (EXTRA_EM_FILE): Source it.
5306 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5307 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5308 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5309 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5310 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5311 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5312 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5313 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5314 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5315 allow functions in this file to be overridden.
5316 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5318 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5320 * emultempl/elf32.em: Reorganize file.
5322 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5324 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5325 specific option to fit 64-bit executable in the lower
5326 31-bit address range. This is done by changing start
5327 address of .interp (the very first section of executable)
5328 and then setting EF_ALPHA_32BIT elf header flag.
5330 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5332 * emultempl/m68kcoff.em: New file.
5333 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5334 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5336 * Makefile.in: Regenerate.
5338 2000-07-20 H.J. Lu <hjl@gnu.org>
5340 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5341 and "disable-new-dtags" to stop getopt from treating -d/-e as
5342 abbreviations for these options.
5344 2000-07-20 H.J. Lu <hjl@gnu.org>
5346 * ld.texinfo: Add documentation for --disable-new-dtags and
5349 * ldmain.c (main): Initialize link_info.new_dtags to false.
5351 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5352 --disable-new-dtags and --enable-new-dtags.
5353 (gld_${EMULATION_NAME}_list_options): Likewise.
5355 2000-07-05 Kenneth Block <krblock@computer.org>
5357 * lexsup.c: Add optional style to demangle switch
5358 * ld.texinfo: Document optional style to demangle switch.
5360 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5362 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5364 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5365 Regenerate dependencies.
5366 * Makefile.in: Rebuild.
5367 * configure.tgt (cris-*-*): New target.
5368 * emulparams/crisaout.sh, emulparams/criself.sh,
5369 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5370 * po/POTFILES.in, po/ld.pot: Regenerate.
5372 2000-07-20 H.J. Lu <hjl@gnu.org>
5374 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5375 Print out ignored -z options.
5377 2000-07-19 H.J. Lu <hjl@gnu.org>
5379 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5380 (PARSE_AND_LIST_PROLOGUE): New.
5381 (PARSE_AND_LIST_LONGOPTS): Likewise.
5382 (PARSE_AND_LIST_OPTIONS): Likewise.
5383 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5385 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5387 * lexsup.c (ld_options): Comment out 'z'.
5388 (parse_args): Likewise.
5390 * emultempl/elf32.em: Include "elf/common.h".
5391 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5393 (gld_${EMULATION_NAME}_list_options): Likewise.
5395 * ld.texinfo: Add documentation for the recognized -z options.
5397 2000-07-19 H.J. Lu <hjl@gnu.org>
5399 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5400 bfd_elf_set_dt_needed_soname ().
5402 2000-07-18 DJ Delorie <dj@cygnus.com>
5404 * pe-dll.c (pe_dll_id_target): check object target name also
5406 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5408 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5409 ${INIT_END} if relocating.
5410 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5412 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5414 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5415 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5416 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5417 errors introduced by the old dynamic lib search order.
5419 2000-07-17 DJ Delorie <dj@cygnus.com>
5421 * pe-dll.c (process_def_file): auto-export data items also
5422 (pe_process_import_defs): also see if _imp_ form needed
5424 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5426 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5427 for dll import libraries
5429 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5431 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5432 gcc 2.95.2 and later.
5434 2000-07-11 Kazu Hirata <kazu@hxi.com>
5436 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5439 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5441 * ldemul.h (struct lang_input_statement_struct): Remove forward
5443 (struct search_dirs): Likewise.
5444 * ldfile.h (struct lang_input_statement_struct): Likewise.
5445 Protect file from multiple inclusion.
5446 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5447 declaration from macro to file scope.
5449 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5450 * ldgram.y: Likewise here.
5451 * ldlang.c: And here.
5452 * ldmain.c: And here.
5453 * mpw-elfmips.c: And here.
5454 * mpw-eppcmac.c: And here.
5455 * emultempl/aix.em: And here.
5456 * emultempl/armcoff.em: And here.
5457 * emultempl/armelf.em: And here.
5458 * emultempl/armelf_oabi.em: And here.
5459 * emultempl/beos.em: And here.
5460 * emultempl/elf32.em: And here.
5461 * emultempl/hppaelf.em: And here.
5462 * emultempl/linux.em: And here.
5463 * emultempl/lnk960.em: And here.
5464 * emultempl/pe.em: And here.
5465 * emultempl/sunos.em: And here.
5466 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5467 * mpw-idtmips.c: Ditto.
5468 * emultempl/generic.em: Ditto.
5469 * emultempl/gld960.em: Ditto.
5470 * emultempl/gld960c.em: Ditto.
5471 * emultempl/mipsecoff.em: Ditto.
5472 * emultempl/ticoff.em: Ditto.
5473 * emultempl/vanilla.em: Ditto.
5475 * pe-dll.c: Include ldfile.h
5476 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5478 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5479 arguments to bfd_elf32_size_dynamic_sections call.
5480 (gldelf32ebmip_place_orphan): Add missing arguments to
5481 lang_leave_output_section_statement call.
5483 2000-07-10 H.J. Lu <hjl@gnu.org>
5485 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5487 (strhash): Likewise.
5488 (compute_dll_image_base): Likewise.
5489 (pe_undef_found_sym): Likewise.
5490 (pe_undef_cdecl_match): Likewise.
5491 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5492 argument "arch" with ATTRIBUTE_UNUSED.
5494 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5496 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5498 From Ryan Bradetich <rbradetich@uswest.net>
5499 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5501 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5503 Changes to create multiple linker stubs, positioned immediately
5504 before the section where they are required.
5505 * emultempl/hppaelf.em: Include elf32-hppa.h.
5506 (stub_sec, file_chain): Delete.
5507 (hppaelf_create_output_section_statements): Don't make a stub
5509 (hook_stub_info): New struct.
5510 (hook_in_stub): New function.
5511 (hppaelf_add_stub_section): New function.
5512 (hppaelf_finish): Do nothing for relocateable links. Modify the
5513 call to elf32_hppa_size_stubs. Move code for updating section
5515 (hppaelf_layaout_sections_again): ..to here, a new function.
5517 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5518 broken list handling. Pass in a pointer to the list.
5519 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5521 (hppaelf_before_parse): Prototype.
5522 (hppaelf_set_output_arch): Prototype.
5523 (hppaelf_create_output_section_statements): Prototype.
5524 (hppaelf_delete_padding_statements): Prototype.
5525 (hppaelf_finish): Prototype.
5528 * emultempl/hppaelf.em: Include ctype.h.
5529 (struct orphan_save): New.
5530 (gld${EMULATION_NAME}_place_orphan): New.
5531 (output_rel_find): New.
5532 (hppaelf_get_script): Update from elf32.em.
5533 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5534 Change emulation_name field to "${EMULATION_NAME}". Add
5535 gld${EMULATION_NAME}_place_orphan.
5537 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5538 ehppalinux.o, sort it. Regenerate dependencies.
5539 (ehppalinux.c): Depend on hppaelf.em
5540 * Makefile.in: Regenerate.
5542 * configure.tgt: targ_emul=hppalinux for hppa*linux
5544 * emulparams/hppalinux.sh: New.
5545 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5547 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5549 * lexsup.c (parse_args): Copy section name.
5551 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5553 * emultempl/pe.em: institute the following search order for
5554 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5555 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5556 static lib (libfoo.a) if none of the above are found.
5558 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5560 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5561 (longopts): New --{enable,disable}-auto-image-base options.
5562 (gld_${EMULATION_NAME}_list_options): Document.
5563 (gld_${EMULATION_NAME}_parse): Handle.
5564 (strhash): New static function.
5565 (compute_dll_image_base): New static function.
5566 (gld_${EMULATION_NAME}_set_symbols): Use.
5568 2000-07-05 DJ Delorie <dj@redhat.com>
5572 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5574 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5575 * emulparams/elf32btsmip.sh: New file.
5576 * Makefile.am: Add traditional mips target.
5577 * Makefile.in: Rebuild.
5579 2000-07-01 H.J. Lu <hjl@gnu.org>
5581 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5582 automake to use YLWRAP.
5583 * Makefile.in: Rebuild.
5585 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5587 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5588 (CLEANFILES): Add DEPA.
5589 * Makefile.in: Regenerate.
5591 2000-06-30 Timothy Wall <twall@ppc>
5593 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5594 the page in the upper octet of the address.
5596 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5598 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5600 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5602 * NEWS: arm-elf does --gc-sections too.
5604 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5606 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5608 * Makefile.in: Regenerate.
5610 2000-06-21 H.J. Lu <hjl@gnu.org>
5612 * Makefile.am: Rebuild dependency.
5613 * Makefile.in: Rebuild.
5615 2000-06-20 H.J. Lu <hjl@gnu.org>
5617 * Makefile.am: Rebuild dependency.
5618 * Makefile.in: Rebuild.
5620 2000-06-20 Timothy Wall <twall@cygnus.com>
5622 * scripttempl/tic54xcoff.sc: New.
5623 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5624 * gen-doc.texi: Add flag for TI COFF.
5625 * ld.texinfo: Add documentation for TI COFF handling switches.
5626 * emultempl/ticoff.em: New. TI COFF handling.
5627 * configure.tgt: Add tic54x target.
5628 * Makefile.am: Add tic54x target.
5629 * Makefile.in: Ditto.
5631 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5633 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5634 checking for backslashes.
5636 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5638 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5640 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5642 * NEWS: Update list of targets supporting --gc-sections.
5644 * scripttempl/elf.sc: KEEP .eh_frame contents.
5645 * scripttempl/elfd30v.sc: Same here.
5647 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5649 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5651 * Makefile.in: Rebuild.
5652 * configure.tgt: Recognize m68hc12 and m68hc11.
5653 * scripttempl/elfm68hc12.sc: New file.
5654 * emulparams/m68hc12elfb: New emulation.
5655 * emulparams/m68hc12elf: New emulation.
5656 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5657 (includes a memory.x script to define the ROM and RAM banks).
5658 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5659 New configuration files for support of Motorola 68hc11
5661 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5663 * ldmain.c (main): Only change SEC_READONLY for final link.
5665 2000-06-13 H.J. Lu <hjl@gnu.org>
5667 * configure: Regenerate.
5669 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5671 * configure.in (VERSION): Update to show this is the CVS mainline.
5673 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5675 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5676 input objects to be ECOFF.
5677 (check_sections): einfo takes %B, not %P, to print a BFD name.
5679 2000-06-05 Michael Matz <matz@ifh.de>
5681 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5684 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5686 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5688 * emulparams/avr1200.sh (STACK): Define as 0.
5689 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5690 * emulparams/avr4433.sh (STACK): Likewise.
5691 * emulparams/avr44x4.sh (STACK): Likewise.
5692 * emulparams/avr85xx.sh (STACK): Likewise.
5693 * emulparams/avrmega103.sh (STACK): Likewise.
5694 * emulparams/avrmega161.sh (STACK): Likewise.
5695 * emulparams/avrmega603.sh (STACK): Likewise.
5696 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5697 (__stack): Define from ${STACK} for main().
5699 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5701 * Makefile.am: Update dependencies with "make dep-am"
5702 * Makefile.in: Regenerate.
5704 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5706 * ldmain.c: Include filenames.h.
5707 (set_scripts_dir): Support backslashes in program name.
5709 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5711 * ldmain.c (main): When deciding if ".text" section should be
5712 read-only, don't forget to reset SEC_READONLY because it
5713 could be already set.
5715 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5717 * ld.1: Add documentation for new command line option:
5718 --section-start <sectionname>=<sectionorg>
5719 This is a generic version of -Ttext etc. which accepts
5720 any section name as a parameter instead of just text/data/
5722 * ld.texinfo: More docs.
5724 * lexsup.c: (parse_args): Recognize new command line option.
5725 (ld_options): Add new option.
5727 2000-05-18 H.J. Lu <hjl@gnu.org>
5729 * lexsup.c (parse_args): `i' == `r', not `q'.
5731 2000-05-18 Jeffrey A Law (law@cygnus.com)
5733 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5735 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5736 Rick Gorton <gorton@scrugs.lkg.dec.com>
5738 Add support for '-q' == '--emit-relocs' switch.
5739 * ldmain.c (main): Default to false.
5740 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5741 * NEWS: Describe the emitrelocations switch.
5742 * ld.texinfo: Describe the emitrelocations switch.
5744 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5746 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5747 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5748 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5751 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5753 * lexsup.c (parse_args): Update the year in the copyright notice.
5755 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5757 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5758 Replace defines with those from intl/libgettext.h to quieten gcc
5761 2000-05-10 H.J. Lu <hjl@gnu.org>
5763 * ldlang.c (open_input_bfds): Don't load the same file within
5764 a group again if the whole archive has been loaded already.
5766 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5768 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5769 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5772 2000-05-01 Jim Wilson <wilson@cygnus.com>
5774 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5776 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5777 host "ia64-*-linux-gnu*".
5779 2000-04-29 Andreas Jaeger <aj@suse.de>
5781 * ld.h: Correctly check GCC version.
5783 2000-04-25 Jeffrey A Law (law@cygnus.com)
5785 * Makefile.am: Add PA64 support. Add missing dependencies for
5787 * Makefile.in: Rebuilt.
5788 * configure.tgt: Add PA64 support (currently disabled).
5790 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5792 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5793 (output_rel_find): New function.
5794 (hold_section, hold_use): Delete.
5795 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5796 hold_interp): Make local to place_orphan.
5797 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5798 rather than place_section to find possible previous use of orphan.
5799 Similarly find the place-holder output sections. Use returned
5800 value from lang_enter_output_section_statement rather than calling
5801 lang_output_section_statement_lookup.
5802 * emultempl/armelf.em: Same here.
5803 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5805 * ldlang.c (lang_enter_output_section_statement): Return output
5807 * ldlang.h (lang_enter_output_section_statement): Change
5810 * ldlang.h (lang_output_section_statement): Export it.
5811 * ldlang.c (lang_output_section_statement): Ditto.
5813 2000-04-24 Nick Clifton <nickc@cygnus.com>
5815 * ld.texinfo (Output Section Data): Add note that section data
5816 commands cannot appear outside of section directives.
5818 2000-04-2 Matthew Green <mrg@cygnus.com>
5820 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5822 2000-04-21 Richard Henderson <rth@cygnus.com>
5823 David Mosberger <davidm@hpl.hp.com>
5825 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
5826 (eelf64_ia64.c): New rule.
5827 * Makefile.in: Rebuild.
5828 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
5829 * emulparams/elf64_ia64.sh: New file.
5831 2000-04-21 Richard Henderson <rth@cygnus.com>
5833 * scripttempl/elfd30v.sc: Place .gcc_except_table.
5835 2000-04-19 Alan Modra <alan@linuxcare.com.au>
5837 * dep-in.sed: Match space at start of file name, not at end.
5839 2000-04-18 H.J. Lu <hjl@gnu.org>
5841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
5842 lang_leave_output_section_statement () after calling
5843 lang_enter_output_section_statement ().
5844 * emultempl/armelf.em: Likewise.
5846 2000-04-18 Alan Modra <alan@linuxcare.com.au>
5848 * emultempl/elf32.em (struct orphan_save): Add section field.
5849 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
5850 better order, and place first orphan section as we did before the
5851 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
5852 Don't call make_bfd_section here, let wild_doit do the job for us.
5853 Don't build a statement list when we'll only throw it away.
5854 * emultempl/armelf.em: Ditto.
5855 * emultempl/pe.em: Similarly.
5857 2000-04-14 Geoff Keating <geoffk@cygnus.com>
5859 * scripttempl/elfppc.sc: Remove.
5860 * emulparams/elf32ppc.sh: Use elf.sc.
5861 * emulparams/elf32lppc.sh: Use elf.sc.
5862 * emulparams/elf32ppclinux.sh: Use elf.sc.
5863 * emulparams/elf32ppcsim.sh: New file.
5864 * emulparams/elf32lppcsim.sh: New file.
5865 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
5866 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
5867 * Makefile.in: Regenerate.
5868 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
5870 2000-04-14 Alan Modra <alan@linuxcare.com.au>
5872 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
5873 ~SEC_ALLOC sections too. Init start address of debug sections.
5874 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5875 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
5876 Also set all relocateable section start addresses.
5878 2000-04-13 Geoff Keating <geoffk@cygnus.com>
5880 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
5881 Add new BSS_PLT variable for when .plt need not be contained in
5882 the file. Move _etext so that it is also after .fini, and provide
5883 both etext and _etext with a leading underscore. Mark the start
5886 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5888 * emultempl/elf32.em (struct orphan_save): New.
5889 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5890 hold_interp): Make them struct orphan_save.
5891 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
5892 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
5893 the end of the relevant section list. Also add associated section
5894 statements to the end of any previous orphan statements.
5895 * emultempl/armelf.em: Similarly.
5896 * emultempl/pe.em: Similarly.
5898 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5900 * ld.texinfo (Simple Example): Remove extraneous paragraph.
5902 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
5904 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5905 --enable-build-warnings option.
5906 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5907 * Makefile.in, configure: Re-generate.
5909 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5911 * po/ld.pot: Regenerate.
5913 * lexsup.c (help): Restore translated part of bug string.
5915 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
5916 (DEP): Quote when passing vars to sub-make. Add warning message
5918 (DEP1): Rewrite for "gcc -MM".
5919 (CLEANFILES): Add DEP2.
5920 Update dependencies.
5921 * Makefile.in: Regenerate.
5923 2000-04-03 Alan Modra <alan@linuxcare.com.au>
5925 * ld.h: #include "bin-bugs.h"
5926 * lexsup.c (help): Use REPORT_BUGS_TO.
5928 2000-03-27 Denis Chertykov <denisc@overta.ru>
5930 * configure.tgt (avr-*-*): New target support.
5931 * Makefile.am: Likewise.
5932 * scripttempl/elf32avr.sc: New script file.
5933 * emulparams/avr1200.sh: New file.
5934 * emulparams/avr23xx.sh: New file.
5935 * emulparams/avr4433.sh New file.
5936 * emulparams/avr44x4.sh New file.
5937 * emulparams/avr85xx.sh New file.
5938 * emulparams/avrmega103.sh New file.
5939 * emulparams/avrmega161.sh New file.
5940 * emulparams/avrmega603.sh New file.
5941 * Makefile.in: Regenerate.
5943 2000-03-09 Andreas Jaeger <aj@suse.de>
5945 * Makefile.am (check-DEJAGNU): Also unset LANG.
5946 * Makefile.in: Rebuild.
5948 2000-03-06 Ian Lance Taylor <ian@zembu.com>
5950 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
5953 2000-03-02 H.J. Lu <hjl@gnu.org>
5955 * emulparams/elf32mcore.sh: Include "getopt.h".
5957 2000-03-01 Ian Lance Taylor <ian@zembu.com>
5959 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
5961 2000-03-01 H.J. Lu <hjl@gnu.org>
5963 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
5964 * emulparams/shpe.sh: Likewise.
5966 2000-03-01 Nick Clifton <nickc@cygnus.com>
5968 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
5969 to unused parameters.
5971 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5972 functions only used by DLL code.
5973 (_place_orphan): Initialise 'dollar'.
5975 2000-03-01 H.J. Lu <hjl@gnu.org>
5977 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5978 indicate if the undefined symbol is a fatal error or not.
5979 Don't delete the output file if "fatal" is false.
5981 2000-02-29 H.J. Lu <hjl@gnu.org>
5983 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5984 Set LC_COLLATE and LC_ALL to null and export them. It is for
5985 sort which expects the C locale.
5986 Add $(LIBS) to all $(HOSTING_LIBS).
5987 * Makefile.in: Rebuild.
5989 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5991 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5992 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5993 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5994 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5995 find_potential_libraries.
5997 2000-02-28 Jim Blandy <jimb@redhat.com>
5999 * ldgram.y (exclude_name_list): Don't require a comma to separate
6000 list entries; the lexer considers commas to be valid part of a
6001 filename, so in something like `foo, bar' the comma is considered
6002 part of the first filename, `foo,'.
6003 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6005 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6007 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6008 host "i[3456]86-*-freebsdelf*".
6010 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6012 * scripttempl/i386go32.sc: Move misplaced semicolons.
6014 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6016 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6017 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6018 (eelf64hppa.c, ehppaelf.c): Remove targets.
6019 * Makefile.in: Rebuild.
6021 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6023 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6024 GNU/Linux/sparc, but keep the default as 32.
6026 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6027 it default if sparcv9 or sparc64.
6029 2000-02-24 Nick Clifton <nickc@cygnus.com>
6031 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6032 * Makefile.in: Regenerate.
6033 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6035 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6036 find_potential_libraries.
6037 * ldemul.c (ldemul_find_potential_libraries): New function.
6039 * ldfile.c (ldfile_open_file_search): Allow function to be
6041 (ldfile_open_file): Call ldemul_find_potential_libraries.
6042 * ldfile.h: Add prototype for ldfile_open_file_search.
6044 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6046 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6047 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6049 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6050 (gld_X_find_potential_libraries): New function. Search for
6051 libraries called "*.lib".
6053 * scripttempl/pe.sc: Add .pdata section.
6055 2000-02-23 Richard Henderson <rth@cygnus.com>
6057 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6058 Add and use memory regions.
6060 2000-02-23 Linas Vepstas (linas@linas.org)
6062 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6064 * Makefile.am: Add support for Linux/IBM 370.
6065 * configure.tgt: Likewise.
6067 * Makefile.in: Regenerate.
6069 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6071 * ldlang.c (print_input_section, print_data_statement,
6072 print_reloc_statement, print_padding_statement, insert_pad,
6073 size_input_section, lang_check_section_addresses,
6074 lang_size_sections, lang_do_assignments, lang_set_startof,
6075 lang_one_common): Change `opb' to unsigned.
6076 (lang_do_assignments): Also change `size' to unsigned.
6078 2000-02-16 Richard Henderson <rth@cygnus.com>
6080 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6082 2000-02-16 Timothy Wall <twall@cygnus.com>
6084 * mri.c (mri_draw_tree): Add default LMA region argument to call
6085 to lang_leave_output_section_statement.
6086 * ldlang.h: Update prototypes with LMA region arguments.
6087 * ldlang.c (lang_size_sections): Encapsulate region bounds
6088 checking in os_check_region call.
6089 (os_check_region): New function.
6090 (lang_output_section_statement_lookup): Initialize lma_region.
6091 (lang_leave_output_section_statement): Add LMA region argument.
6092 (lang_leave_overlay): Ditto.
6093 * ldgram.y: Handle LMA region syntax.
6094 * ld.texinfo (Output Section Description): Describe LMA region usage.
6095 * emultempl/armelf.em (gld$place_orphan): Add default value for
6096 lma region in call to lang_leave_output_section_statement.
6097 * emultempl/elf32.em (gld$place_orphan): Add default value for
6098 lma region in call to lang_leave_output_section_statement.
6099 * emultempl/pe.em (gld$place_orphan): Add default value for
6100 lma region in call to lang_leave_output_section_statement.
6103 2000-02-04 Timothy Wall <twall@redhat.com>
6105 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6106 octets when calculating section end addresses.
6108 2000-02-04 Timothy Wall <twall@redhat.com>
6110 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6112 2000-02-03 Timothy Wall <twall@redhat.com>
6114 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6116 * ldlang.c (print_input_section, print_data_statement,
6117 print_reloc_statement, print_padding_statement): Print target
6118 address values and section sizes as bytes, not octets.
6119 (insert_pad) Calculate padding size in octets, and adjust "dot"
6121 (size_input_section) Always adjust "dot" by bytes, not octets.
6122 (lang_check_section_addresses, lang_do_assignments) Adjust
6123 "dot" by bytes, not octets. Use the larger of the directive size
6124 or octets_per_byte for the number of octets actually allocated in
6126 (lang_set_startof) Make sure STARTOF returns a target address.
6127 (lang_one_common) Record size changes in octets.
6128 (lang_abs_symbol_at_end_of) Section end symbol's value is
6129 recorded in target bytes.
6130 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6131 to be clear about behavior when an octet is smaller than one byte.
6133 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6135 * ldcref.c (output_cref): Don't pass message strings to printf
6139 * ldmisc.c (vfinfo): Same here.
6142 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6144 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6145 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6146 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6147 Add missing NULL initialisers, and comments.
6149 2000-01-21 Nick Clifton <nickc@cygnus.com>
6151 * ldlang.c (lang_size_sections): Fix typo in comment.
6153 2000-01-18 H.J. Lu <hjl@gnu.org>
6155 * ldlang.c (lang_size_sections): Also update the current
6156 address of a region if the SEC_NEVER_LOAD bit is not set.
6158 2000-01-10 Philip Blundell <pb@futuretv.com>
6160 * configure.tgt (arm*-*-conix*): New target.
6162 2000-01-07 Nick Clifton <nickc@cygnus.com>
6164 * ld.texinfo (Options): Remind users to preceed linker command
6165 line switches with -Wl, (or whatever is appropriate) if it is
6166 being invoked by a comnpiler driver program.
6167 Fix description of the behaviour of the -n command line switch.
6169 2000-01-05 Catherine Moore <clm@cygnus.com>
6171 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6173 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6174 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6175 (exclude_name_list): New.
6176 ldlang.c (walk_wild_section): Support list of excluded files.
6177 (print_wild_statement): Likewise.
6178 (lang_add_wild): Likewise.
6179 * ldlang.h (lang_wild_statement_type): Likewise.
6180 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6182 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6184 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6185 (process_def_file): Use.
6186 (pe_dll_compat_implib): New variable.
6189 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6190 pe_dll_compat_implib.
6192 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6193 compat-implib options.
6194 (gld_${EMULATION_NAME}_list_options): List new options.
6195 (gld_${EMULATION_NAME}_parse_args): Handle.
6197 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6200 * deffilep.y (opt_name): Allow "." in name.
6202 For older changes see ChangeLog-9899
6208 version-control: never