1 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
3 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
4 * scripttempl/elfm68hc11.sc: Likewise.
6 2003-07-28 Alan Modra <amodra@bigpond.net.au>
8 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
10 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
12 2003-07-27 Alan Modra <amodra@bigpond.net.au>
14 * ld.texinfo: Typo fixes. Document SUBALIGN.
15 * ldgram.y (opt_subalign): Add.
16 * ldlex.l (SUBALIGN): Recognize.
17 * ldlang.c (overlay_subalign): New var.
18 (lang_enter_overlay): Add subalign param.
19 (lang_enter_overlay_section): Pass overlay_subalign to
20 lang_enter_output_section_statement.
21 * ldlang.h (lang_enter_overlay): Update.
23 2003-07-24 Nick Clifton <nickc@redhat.com>
25 * po/fr.po: Updated French translation.
27 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
29 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
30 account .tramp sections;
31 * scripttempl/elfm68hc12.sc: Likewise.
33 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
35 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
37 2003-07-17 Nick Clifton <nickc@redhat.com>
39 * po/es.po: New Spanish translation.
41 2003-07-11 Alan Modra <amodra@bigpond.net.au>
43 * po/ld.pot: Regenerate.
45 2003-07-10 Bob Wilson <bob.wilson@acm.org>
47 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
48 with new .got.loc section.
49 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
51 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
52 sections separate for non-relocating links; likewise for .xt.insn.
54 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
56 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
57 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
58 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
59 * configure.host (am33_2.0-*-linux*): Added.
60 * configure.tgt (am33_2.0-*-linux*): Likewise.
61 * emulparams/elf32am33lin.sh: New.
62 * Makefile.am (eelf32am33lin.c): New rule.
63 * Makefile.in: Rebuilt.
65 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
67 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
68 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
69 (GENERATE_SHLIB_SCRIPT): Likewise.
71 2003-07-10 Alan Modra <amodra@bigpond.net.au>
73 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
75 * emultempl/ppc64elf.em (stub_added): New static var.
76 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
77 (ppc_add_stub_section): Set stub_added.
78 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
79 ppc64_elf_size_stubs call and test for stubs.
80 * scripttempl/elf.sc (GOT): Define and use.
82 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
84 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
85 Allow second call from ldemul_finish.
87 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
89 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
90 (OTHER_SECTIONS): Include .stack.
91 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
93 2003-07-02 Jakub Jelinek <jakub@redhat.com>
95 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
97 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
98 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
101 2003-06-28 Alan Modra <amodra@bigpond.net.au>
103 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
104 Replace PTR with void *. Formatting.
105 * ldcref.c: Likewise.
106 * ldctor.c: Likewise.
107 * ldctor.h: Likewise.
108 * ldemul.h: Likewise.
111 * ldfile.c: Likewise.
112 * ldfile.h: Likewise.
113 * ldlang.c: Likewise.
114 * ldlang.h: Likewise.
117 * ldmain.c: Likewise.
118 * ldmain.h: Likewise.
119 * ldmisc.c: Likewise.
120 * ldmisc.h: Likewise.
122 * ldwrite.c: Likewise.
123 * ldwrite.h: Likewise.
124 * lexsup.c: Likewise.
127 * pe-dll.c: Likewise.
128 * pe-dll.h: Likewise.
129 * deffilep.y: Likewise.
130 * deffile.h: Likewise. Don't include ansidecl.h.
131 * emulparams/elf32mcore.sh: Remove unnecessary cast.
132 * emultempl/m68kcoff.em: Likewise.
133 * emultempl/m68kelf.em: Likewise.
134 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
135 * sysdep.h: Don't include ansidecl.h.
136 * Makefile.am: Run "make dep-am".
137 * Makefile.in: Regenerate.
139 2003-06-27 Nick Clifton <nickc@redhat.com>
141 * deffilep.y (def_file_add_directive): Cope with NUL seperated
142 directives. Fix reporting of unparseable directives.
143 (def_error): Check for a NULL def_filename.
145 2003-06-27 Alan Modra <amodra@bigpond.net.au>
147 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
148 and casts. Replace PTR with void *. Formatting.
149 * emultempl/alphaelf.em: Likewise.
150 * emultempl/armcoff.em: Likewise.
151 * emultempl/armelf.em: Likewise.
152 * emultempl/armelf_oabi.em: Likewise.
153 * emultempl/beos.em: Likewise.
154 * emultempl/elf32.em: Likewise.
155 * emultempl/generic.em: Likewise.
156 * emultempl/gld960.em: Likewise.
157 * emultempl/gld960c.em: Likewise.
158 * emultempl/hppaelf.em: Likewise.
159 * emultempl/linux.em: Likewise.
160 * emultempl/lnk960.em: Likewise.
161 * emultempl/m68hc1xelf.em: Likewise.
162 * emultempl/m68kcoff.em: Likewise.
163 * emultempl/m68kelf.em: Likewise.
164 * emultempl/mipsecoff.em: Likewise.
165 * emultempl/mipself.em: Likewise.
166 * emultempl/mmix-elfnmmo.em: Likewise.
167 * emultempl/mmixelf.em: Likewise.
168 * emultempl/mmo.em: Likewise.
169 * emultempl/needrelax.em: Likewise.
170 * emultempl/netbsd.em: Likewise.
171 * emultempl/pe.em: Likewise.
172 * emultempl/sh64elf.em: Likewise.
173 * emultempl/sunos.em: Likewise.
174 * emultempl/ticoff.em: Likewise.
175 * emultempl/vanilla.em: Likewise.
176 * emultempl/xtensaelf.em: Likewise.
177 * Makefile.am: Correct dependencies.
178 * Makefile.in: Regenerate.
180 2003-06-25 Alan Modra <amodra@bigpond.net.au>
182 * ld.texinfo: Correct spelling of "relocatable".
183 * ldctor.c: Likewise.
185 * ldfile.c: Likewise.
186 * ldint.texinfo: Likewise.
187 * ldlang.c: Likewise.
188 * ldmain.c: Likewise.
189 * ldwrite.c: Likewise.
190 * lexsup.c: Likewise.
191 * emultempl/aix.em: Likewise.
192 * emultempl/alphaelf.em: Likewise.
193 * emultempl/armcoff.em: Likewise.
194 * emultempl/armelf_oabi.em: Likewise.
195 * emultempl/beos.em: Likewise.
196 * emultempl/elf32.em: Likewise.
197 * emultempl/generic.em: Likewise.
198 * emultempl/gld960.em: Likewise.
199 * emultempl/gld960c.em: Likewise.
200 * emultempl/hppaelf.em: Likewise.
201 * emultempl/linux.em: Likewise.
202 * emultempl/lnk960.em: Likewise.
203 * emultempl/m68hc1xelf.em: Likewise.
204 * emultempl/m68kcoff.em: Likewise.
205 * emultempl/m68kelf.em: Likewise.
206 * emultempl/mipsecoff.em: Likewise.
207 * emultempl/mipself.em: Likewise.
208 * emultempl/mmix-elfnmmo.em: Likewise.
209 * emultempl/mmo.em: Likewise.
210 * emultempl/needrelax.em: Likewise.
211 * emultempl/pe.em: Likewise.
212 * emultempl/ppc64elf.em: Likewise.
213 * emultempl/sh64elf.em: Likewise.
214 * emultempl/sunos.em: Likewise.
215 * emultempl/ticoff.em: Likewise.
216 * emultempl/xtensaelf.em: Likewise.
218 2003-06-24 Alan Modra <amodra@bigpond.net.au>
220 * emultempl/ppc32elf.em: Convert to C90.
222 2003-06-20 Alan Modra <amodra@bigpond.net.au>
224 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
225 unnecessary prototypes and casts.
227 2003-06-19 Alan Modra <amodra@bigpond.net.au>
229 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
230 statistics from ppc64_elf_build_stubs.
232 2003-06-19 Alan Modra <amodra@bigpond.net.au>
234 * emultempl/ppc64elf.em (build_section_lists): Check return status
235 from ppc64_elf_next_input_section.
237 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
239 * ldlang.c (section_already_linked): Put back assignment of
242 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
244 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
247 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
249 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
250 if not produced by gcc.
252 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
254 * configure.tgt: Add specific case for cris-*-linux-gnu*
255 with crislinux emulation only.
257 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
259 * configure.tgt: Add i386-netbsd-gnu target.
261 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
263 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
264 to $targ_extra_libpath.
266 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
268 * po/Make-in (DESTDIR): New.
269 (install-data-yes): Support $(DESTDIR).
270 (uninstall): Likewise.
272 2003-06-10 Doug Evans <dje@sebabeach.org>
274 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
275 * Makefile.in: Regenerate.
277 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
279 * configure.tgt (h8300*): Add h8300sxn emulations.
280 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
281 (eh8300sxn.c, eh8300sxnelf.c): New rules.
282 * Makefile.in: Regenerate.
283 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
284 * scripttempl/h8300sxn.sc: New file.
286 2003-06-10 Alan Modra <amodra@bigpond.net.au>
288 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
289 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
291 2003-06-08 Alan Modra <amodra@bigpond.net.au>
293 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
294 (build_toc_list): New function.
295 (gld${EMULATION_NAME}_finish): Call build_toc_list and
296 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
297 (OPTION_STUBSYMS): Define.
298 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
299 (PARSE_AND_LIST_OPTIONS): Document.
300 (PARSE_AND_LIST_ARGS_CASES): Handle.
302 2003-06-05 Roland McGrath <roland@redhat.com>
304 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
305 extra \t in -z noexecstack line.
307 2003-05-23 Jakub Jelinek <jakub@redhat.com>
309 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
310 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
311 -z execstack and -z noexecstack.
312 (gld${EMULATION_NAME}_list_options): Likewise.
313 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
315 2003-06-03 Michael Snyder <msnyder@redhat.com>
316 and Bernd Schmidt <bernds@redhat.com>
317 and Alexandre Oliva <aoliva@redhat.com>
319 * Makefile.am: Add new emulations for h8300sx.
320 * Makefile.in: Regenerate.
321 * configure.tgt: Add new emulations.
322 * emulparams/h8300sx.sh: New emulation.
323 * emulparams/h8300sxelf.sh: Ditto.
324 * scripttempl/h8300sx.sc: Ditto.
326 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
328 * ldmisc.c: Include "bfdlink.h".
329 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
330 and -LD_DEFINITION_IN_DISCARDED_SECTION.
332 * Makefile.am: Rebuild dependency.
333 * Makefile.in: Regenerated.
335 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
337 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
338 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
340 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
342 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
343 sorted alphabetically, instead of exported_symbols, which is
346 2003-05-30 Ulrich Drepper <drepper@redhat.com>
347 Jakub Jelinek <jakub@redhat.com>
349 * lexsup.c (OPTION_PIE): Define.
350 (ld_options): Add -pie and --pic-executable options.
351 (parse_args): Handle OPTION_PIE.
352 * ldmain.c (main): Initialize link_info.pie and
353 link_info.executable.
354 * genscripts.sh: Generate PIE scripts.
355 * ld.texinfo: Document -pie and --pic-executable options.
356 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
357 (gld${EMULATION_NAME}_place_orphan): Likewise.
358 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
359 * scripttempl/elf.sc: In PIE scripts set . the same way as in
361 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
362 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
363 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
364 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
365 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
366 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
367 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
368 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
369 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
370 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
371 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
373 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
375 * genscripts.sh: Create tmpdir/libpath.exp.
377 2003-05-30 Nick Clifton <nickc@redhat.com>
379 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
380 with a test for a NULL bfd_for_interworking.
382 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
384 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
385 correctly for more recent versions of NetBSD.
386 (alpha*-*-netbsd*): Remove.
387 (i[3-7]86-*-netbsd*): Remove.
389 2003-05-29 Nick Clifton <nickc@redhat.com>
391 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
393 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
395 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
396 trap on pointer crops.
398 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
400 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
401 as well as shle-...-netbsdelf.
403 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
405 * configure.host: Accept i[3-7]86 variants.
406 * configure.tgt: Likewise.
408 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
410 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
412 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
414 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
415 (earmelfb.c, earmelfb_linux.c): New rules.
416 * Makefile.in: Regenerated.
417 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
418 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
420 2003-05-09 Nick Clifton <nickc@redhat.com>
422 * ldlang.c (lang_size_sections_1): Default to generating a
423 fatal error message if a loadable section is not allocated
424 to a memory region when regions are defined.
426 2003-05-09 Alan Modra <amodra@bigpond.net.au>
428 * Makefile.am (em68hc11elf.c): Correct dependencies.
429 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
430 * Makefile.in: Regenerate.
431 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
432 bfd_elf_record_link_assignment name.
434 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
436 * ldmain.h (overflow_cutoff_limit): Declare.
437 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
438 (reloc_overflow): Limit error messages based on it.
439 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
442 2003-05-05 Alan Modra <amodra@bigpond.net.au>
444 * ldlex.l: Accept C style comments in version scripts.
446 2003-04-28 H.J. Lu <hjl@gnu.org>
448 * ldlang.c (lang_process): Add the relax finalize pass.
450 * ldmain.c (main): Initialize link_info.relax_finalizing to
453 2003-04-24 Roland McGrath <roland@redhat.com>
455 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
456 If a name string is unknown, give an error rather than crashing later.
458 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
460 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
461 eh8300hnelf.o, eh8300snelf.o and respective rules.
462 * Makefile.in: Regenerate.
463 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
464 * emulparams/h8300hn.sh: New
465 * emulparams/h8300sn.sh: New
466 * emulparams/h8300hnelf.sh: New
467 * emulparams/h8300snelf.sh: New
468 * scripttempl/h8300hn.sc: new
469 * scripttempl/h8300sn.sc: new
471 2003-04-23 H.J. Lu <hjl@gnu.org>
473 * ldmain.c (link_callbacks): Initialize error_handler.
475 * ldmisc.c (error_handler): New function.
477 * ldmisc.h (error_handler): New prototype.
479 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
481 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
482 * emulparams/m68hc11elfb.sh: Likewise.
483 * emulparams/m68hc12elf.sh: Likewise.
484 * emulparams/m68hc12elfb.sh: Likewise.
486 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
488 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
490 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
492 (LDEMUL_FINISH): Override to generate the trampolines after gc and
494 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
495 stub file for trampolines.
496 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
497 --no-trampoline and --bank-window to control the memory bank window.
499 2003-04-18 H.J. Lu <hjl@gnu.org>
501 * ldfile.c (ldfile_add_library_path): Remove the unused
504 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
506 * scripttempl/xstormy16.sc (__data, __rdata): New.
508 2003-04-16 Nick Clifton <nickc@redhat.com>
510 * scripttempl/xstormy16.sc: Add .jcr section mapping.
512 2003-04-15 H.J. Lu <hjl@gnu.org>
514 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
516 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
518 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
520 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
521 * ld.texinfo: Likewise.
523 2003-04-14 Alan Modra <amodra@bigpond.net.au>
525 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
526 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
527 other variants of crtbegin.o, crtend.o.
529 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
530 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
531 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
532 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
533 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
534 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
535 * scripttempl/mmo.sc (ctors, dtors): Likewise.
536 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
538 2003-04-09 Dmitry Diky <diwil@mail.ru>
540 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
541 sections to respect C++ constructor/destructor. Add ctors/dtors
542 start/stop definitions.
543 * scripttempl/elf32msp430_3.sc: Likewise.
545 2003-04-06 Nick Clifton <nickc@redhat.com>
547 * ld.texinfo (Options): Add a reminder of the target specific
548 nature to the description of the i386 PE specific options, for
549 readers who have not read all the way through the manual.
551 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
553 * configure.tgt: Fixed bug in list of targ_extra_emuls.
554 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
555 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
556 * emulparams/tic3xcoff_onchip.sh: Ditto
557 * emulparams/tic4xcoff.sh: Ditto
558 * scripttempl/tic4xcoff.sc: Ditto
560 2003-04-03 Nick Clifton <nickc@redhat.com>
562 * NEWS: Mention support for Xtensa architecture.
564 2003-04-02 Nick Clifton <nickc@redhat.com>
566 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
568 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
570 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
571 Don't call pe_dll_build_section() if link_info.relocateable.
572 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
573 if link_info.relocateable.
575 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
577 * pe-dll.c (process_def_file): Don't create an export
578 section if there are no exports and we're building an exe
579 (pe_dll_build_sections): Ditto
580 (pe_dll_fill_sections): Conditionalize setting
581 abfd->dll true on info->shared
582 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
583 If i386pe or armpe, call pe_dll_build_section()
584 for both exe's and dll's, not just dll's.
585 (gld_${EMULATION_NAME}_finish): For all targets except
586 shpe and mipspe, call pe_dll_fill_sections() for both
587 exe's and dll's, not just dll's.
589 2003-04-02 Bob Wilson <bob.wilson@acm.org>
591 * emulparams/xtensa-config.sh: Remove comment indicating that this is
594 2003-04-01 Bob Wilson <bob.wilson@acm.org>
596 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
597 (eelf32xtensa.c): New target.
598 * Makefile.in: Regenerate.
599 * configure.tgt: Handle xtensa-*-*.
600 * gen-doc.texi: Set XTENSA variable.
601 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
602 * emulparams/elf32xtensa.sh: New file.
603 * emulparams/xtensa-config.sh: Likewise.
604 * emultempl/xtensaelf.em: Likewise.
605 * scripttempl/elfxtensa.sc: Likewise.
607 2003-04-01 Jakub Jelinek <jakub@redhat.com>
609 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
610 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
611 if --enable-64-bit-bfd.
613 2003-04-01 Nick Clifton <nickc@redhat.com>
615 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
617 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
618 name of note section.
620 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
622 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
625 2003-03-31 David Heine <dlheine@suif.stanford.edu>
627 * ldfile.c (ldfile_add_library_path): Always allocate space for
629 * ldlang.c (lang_register_vers_node): Free the node if it cannot
631 * ldmain.c (set_scripts_dir): Always free the constructed
633 (add_keepsyms_file): Fix memory leak.
634 * ldmisc.c (vfinfo): Likewise.
635 * lexsup.c (parse_args): Likewise.
637 2003-03-25 Stan Cox <scox@redhat.com>
638 Nick Clifton <nickc@redhat.com>
640 Contribute support for Intel's iWMMXt chip - an ARM variant:
642 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
643 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
644 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
647 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
649 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
650 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
651 (main): Initialize them.
652 * ldfile.c: Include pathnames.h.
653 (is_sysrooted_pathname): New.
654 (ldfile_add_library_path): Use it.
655 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
656 search_dirs if given an absolute pathname.
657 (ldfile_open_file): Issue error message for sysrooted
659 * Makefile.am: Updated dependencies.
660 * Makefile.in: Rebuild.
662 2003-03-24 Daniel Néri <dne@mayonnaise.net>
664 * ld.texinfo: Rename all occurances of C54X to TIC54X.
666 2003-03-19 Andreas Schwab <schwab@suse.de>
668 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
671 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
673 * defilep.y (opt_base): If no number given, set to default
676 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
678 * deffilep.y (def_import): Use default extension of "dll"
679 if no extension provided in parsed IMPORT definition.
681 * deffilep.y (def_lex): Revert 2003-03-12 change.
682 (dot_name): New id type and rule.
683 (expline): Use instead of ID.
684 (opt_equal_name): Likewise.
686 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
688 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
690 2003-03-07 Christopher Faylor <cgf@redhat.com>
692 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
693 apparent accidental removal on 2003-01-06.
695 2003-03-04 Dmitry Diky <diwil@mail.ru>
697 * Makefile.am: Add new devices x1122 x1132 emulation
698 * configure.tgt: Likewise.
699 * Makefile.in: Regenerate.
700 * emulparams/msp430x1122.sh: New file.
701 * emulparams/msp430x1132.sh: New file.
703 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
705 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
708 * ldfile.h (struct search_dirs): Added sysrooted field.
709 * ldlang.h (struct lang_input_statement_struct): Likewise.
710 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
711 (ldfile_open_file_search): Look for sysrooted filename starting
712 with / in ld_sysroot instead of in the current directory. Clear
713 sysrooted flag if it's found in the current directory. Set it
714 from the search directory's sysrooted flag where it is found
716 * ldlang.c (ldlang_sysrooted_script): New static variable.
717 (new_afile): Mark search_file_enums as sysrooted if
718 ldlang_sysrooted_script.
719 (load_symbols): Set ldlang_sysrooted_script according to the
720 script's sysrooted field while processing it.
721 * ld.texinfo: Document INPUT behavior in sysroot.
723 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
725 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
727 2003-03-03 Alan Modra <amodra@bigpond.net.au>
729 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
730 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
731 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
732 PARSE_AND_LIST_EPILOGUE): Don't define.
733 * emultempl/alphaelf.em: New file.
735 2003-03-01 Alan Modra <amodra@bigpond.net.au>
737 * ldemul.c: Include getopt.h.
738 * emultempl/elf32.em: Include getopt.h earlier.
739 * emultempl/ticoff.em: Likewise.
741 2003-02-28 Alan Modra <amodra@bigpond.net.au>
743 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
744 support when scripts read from files.
746 2003-02-28 Alan Modra <amodra@bigpond.net.au>
748 * ldemul.c (ldemul_parse_args): Return FALSE by default.
749 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
752 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
753 (ldemul_parse_args): Return bfd_boolean. Formatting.
754 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
755 (ldemul_parse_args): Adjust.
756 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
757 Return bfd_boolean from parse_args.
758 * lexsup.c (parse_args): Malloc shortopts, longopts and
759 really_longopts. Call ldemul_add_options and ldemul_handle_option.
760 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
761 gld${EMULATION_NAME}_parse_args.
762 (gld${EMULATION_NAME}_handle_option): Likewise.
763 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
764 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
765 * emultempl/beos.em: Likewise.
766 * emultempl/pe.em: Likewise.
767 * emultempl/ticoff.em: Likewise.
768 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
769 (gld${EMULATION_NAME}_add_sysroot): Prototype.
770 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
772 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
773 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
774 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
775 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
777 * emultempl/generic.em: Likewise.
778 * emultempl/gld960.em: Likewise.
779 * emultempl/gld960c.em: Likewise.
780 * emultempl/linux.em: Likewise.
781 * emultempl/lnk960.em: Likewise.
782 * emultempl/m68kcoff.em: Likewise.
783 * emultempl/mipsecoff.em: Likewise.
784 * emultempl/sunos.em: Likewise.
785 * emultempl/vanilla.em: Likewise.
786 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
788 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
790 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
791 memory allocation error.
793 * Makefile.am (ldmain.o): Define TOOLBINDIR.
794 * Makefile.in: Rebuilt.
795 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
797 2003-02-21 Bob Wilson <bob.wilson@acm.org>
799 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
800 call os_region_check when it is set.
801 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
802 lang_size_sections_1.
803 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
804 only for the last call, not on every relaxation iteration.
805 * ldlang.h (lang_size_sections): Update prototype.
806 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
807 to lang_size_sections.
808 (pe_exe_fill_sections): Likewise.
809 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
810 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
811 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
812 (ppc_layout_sections_again): Likewise.
814 2003-02-21 Bob Wilson <bob.wilson@acm.org>
816 * gen-doc.texi: Set ARM and HPPA variables.
817 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
818 title capitalization more consistent. Add missing menu entries for
819 machine-specific sections and conditionalize them consistently.
820 Conditionalize text that is irrelevant when SingleFormat is set.
821 Add @group divisions to improve page breaks in long examples.
822 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
823 is correct. Remove "FIXME" comment about not using
824 @raisesections/@lowersections. Use @raisesections/@lowersections
825 consistently for machine-specific sections. Change to be more polite
826 about poor bug reports. Replace FDL appendix with include of fdl.texi.
827 Move WIN32 node to match its order in the menus.
828 * fdl.texi: New file.
830 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
832 * configure.in (TARGET_SYSTEM_ROOT): Set default to
833 ${exec_prefix}/${target_alias}/sys-root. Match explicit
834 '${exec_prefix}' (in addition to the expansion thereof) as
836 * configure: Rebuilt.
838 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
840 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
842 2003-02-20 Harri Porten <porten@kde.org>
844 * ldgram.y (vers_defns): Allow optional trailing semicolon in
847 2003-02-18 Alan Modra <amodra@bigpond.net.au>
849 * emultempl/ppc32elf.em: New file.
850 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
851 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
852 (eelf32lppcnto.c): Likewise.
853 (eelf32lppcsim.c): Likewise.
854 (eelf32ppcnto.c): Likewise.
855 (eelf32ppc.c): Likewise.
856 (eelf32ppc_fbsd.c): Likewise.
857 (eelf32ppcsim.c): Likewise.
858 (eelf32ppclinux.c): Likewise.
859 * Makefile.in: Regenerate.
861 2003-02-18 Alan Modra <amodra@bigpond.net.au>
863 * ld.texinfo: Remove spaces between @samp and opening brace.
865 2003-02-18 Alan Modra <amodra@bigpond.net.au>
867 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
869 (ppc_before_allocation): Don't do optimizations if wrong hash table.
870 (gld${EMULATION_NAME}_finish): Ditto.
872 2003-02-17 Nick Clifton <nickc@redhat.com>
874 * ldmain.c (main) Default allow_shlib_undefined to true.
875 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
876 (parse_args): Parse the new switch.
877 * ld.texinfo: Document new switch and default behaviour of
878 allowing undefined symbols in shared libraries.
880 2003-02-11 Dmitry Diky <diwil@mail.ru>
882 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
883 * scripttempl/elf32msp430_3.sc: Likewise.
885 2003-02-11 Uwe Stieber <uwe@wwws.de>
887 * configure.tgt: Add support for kaOS as cross build target
890 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
892 * hppaelf.em (group_size): Change default back to 1.
894 2003-02-09 Alan Modra <amodra@bigpond.net.au>
896 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
898 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
900 * hppaelf.em (group_size): Change default to -1.
902 2003-02-07 Nick Clifton <nickc@redhat.com>
904 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
906 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
907 no-pipeline-knowledge. This will prevent the getopt package from
908 thinking that there are any shorter abbreviations for
909 --no-pipeline-knowledge.
911 2003-02-07 Jakub Jelinek <jakub@redhat.com>
913 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
914 which already have it. Avoid duplicates.
916 2003-02-06 Jakub Jelinek <jakub@redhat.com>
918 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
919 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
920 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
922 2003-02-05 Alan Modra <amodra@bigpond.net.au>
924 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
925 call ppc64_elf_tls_optimize.
927 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
929 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
930 outside of GNU/Linux conditional.
932 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
934 * deffilep.y (def_get_module): New function: locate an already
936 * deffile.h (def_get_module): New prototype.
937 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
938 a dll multiple times.
940 2003-01-23 Alan Modra <amodra@bigpond.net.au>
942 * emultempl/sh64elf.em: Include elf32-sh64.h.
943 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
944 sh64_elf_section_data.
945 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
947 2003-01-23 Wu Yongwei <adah@netstd.com>
949 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
950 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
951 cross-80th-column-margin "an" to the next line.
953 2003-01-21 Nick Clifton <nickc@redhat.com>
955 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
956 * emulparams/tic3xcoff_onchip.sh: ...this.
957 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
958 * Makefile.in: Regenerate.
960 2003-01-21 Fabio Alemagna <falemagn@aros.org>
962 * configure.tgt: Handle i[3456]86-*-aros*
964 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
966 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
967 * Makefile.in: Regenerate
968 * configure.tgt: Added extra target emulations
969 * emulparams/tic3xcoff.sh: Remove old settings
970 * emulparams/tic4xcoff.sh: Ditto
971 * emulparams/tic3xcoff-onchip.sh: Added new
972 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
973 * scripttempl/tic3xcoff.sc: Remove
975 2003-01-17 Andreas Jaeger <aj@suse.de>
977 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
980 2003-01-16 Alan Modra <amodra@bigpond.net.au>
982 * Makefile.in: Regenerate.
984 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
986 * ld.texinfo (node WIN32): Some clarifications
987 and formatting fixups.
989 2003-01-09 Chris Demetriou <cgd@broadcom.com>
991 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
992 order, and handle (ignore) -mips32r2.
994 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
996 * ldmain.c (main): Make sure ld_sysroot is initialized.
998 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1000 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1002 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1003 (GENSCRIPTS): Add @use_sysroot@.
1004 * Makefile.in: Regenerated.
1005 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1006 * configure.tgt: ... here. Use ${target} instead of ${host}
1007 for NATIVE_LIB_DIRS.
1008 * configure.in: Add --with-sysroot.
1009 * configure: Regenerated.
1010 * genscripts.sh: Accept use_sysroot option. Set new variables
1011 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1012 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1013 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1014 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1015 (ld_sysroot): New variable.
1016 (main): Initialize ld_sysroot.
1017 * ldmain.h (ld_sysroot): New extern.
1018 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1019 searching $EMULATION_LIBPATH.
1020 (gld${EMULATION_NAME}_add_sysroot): New function.
1021 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1022 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1023 environment variables if $NATIVE.
1024 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1025 * NEWS: Mention --with-sysroot.
1027 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1028 instead of setting LIB_PATH.
1029 * emulparams/elf32ppc.sh: Likewise.
1030 * emulparams/elf64_s390.sh: Likewise.
1031 * emulparams/elf64_sparc.sh: Likewise.
1032 * emulparams/elf64ppc.sh: Likewise.
1033 * emulparams/elf_x86_64.sh: Likewise.
1035 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1036 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1038 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1040 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1042 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1044 * Makefile.am (ldmain.o): Pass BINDIR.
1045 * Makefile.in: Regenerated.
1046 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1049 2003-01-02 Ben Elliston <bje@redhat.com>
1051 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1052 (eelf32iq2000.c): New target.
1053 * Makefile.in: Regenerate.
1054 * configure.tgt: Handle iq2000-*-elf.
1055 * emulparams/elf32iq10.sh: New file.
1056 * emulparams/elf32iq2000.sh: New file.
1057 * scripttempl/iq2000.sc: New file.
1059 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1061 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1062 and _pei386_runtime_relocator to the exclude list.
1064 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1066 * ldfile.c: Fix comment typos.
1067 * ldlang.c: Likewise.
1069 * pe-dll.c: Likewise.
1071 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1073 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1074 * Makefile.am (ld.1): Depend on configdoc.texi
1076 * Makefile.in: Regenerated.
1078 2002-12-24 Dmitry Diky <diwil@mail.ru>
1080 * Makefile.am: Add msp430 target.
1081 * configure.tgt: Likewise.
1082 * Makefile.in: Regenerate.
1083 * emulparams/msp430x???.sh: New files. Linker script parameters
1084 for various msp430 configurations.
1085 * gen-doc.texi: Enable msp430 documenation.
1086 * ld.texinfo: Document msp430 sections.
1087 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1088 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1090 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1091 Charles Wilson <cwilson@ece.gatech.edu>
1093 * config.in (HAVE_REALPATH): New entry.
1094 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1096 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1098 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1101 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1103 * ldmain.c (main): Init "strip_discarded".
1104 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1105 (OPTION_NO_STRIP_DISCARDED): Define.
1106 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1107 (parse_args): Handle them.
1109 2002-12-23 Nick Clifton <nickc@redhat.com>
1111 * ld.h (struct args_type): Add new field
1112 'accept_unknown_input_architecture'.
1113 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1115 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1116 bfd_arch_get_compatible.
1117 * ldfile.c (ldfile_try_open_bfd): Likewise.
1118 * lexsup.c (ld_options): Add new command line switch
1119 --accept-unknown-input-architecture and its inverse.
1120 (parse_args): Handle --accept-unknown-input-architecture.
1121 * ld.texinfo: Document new linker option.
1122 * NEWS: Mention new linker option.
1124 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1126 * ldmain.c (main): Re-order link_info initialization. Init all
1129 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1131 * ld.texinfo: Clarify and extend the documentation
1132 in the Machine Dependent, WIN32 section.
1134 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1136 * ld.texinfo: Add win32 machine depending section.
1137 * gen-doc.texi: Enable win32 machine depending section.
1139 * configure.host: Add win32 library search path.
1141 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1143 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1144 import when auto-import is disabled.
1146 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1148 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1149 account for trailing '\0'.
1151 2002-12-17 Nick Clifton <nickc@redhat.com>
1153 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1154 so that it is not confused with -c.
1156 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1157 Charles Wilson <cwilson@ece.gatech.edu>
1159 * configure.in: Add check for realpath function.
1160 * configure: Regenerate.
1161 * config.in: Regenerate.
1162 * aclocal.m4: Regenerate.
1163 * deffile.h: Add .data field to def_file_import
1165 * pe-dll.c (pe_proces_import_defs): Use .data field of
1166 def_file_import structure to initialize flag_data field of
1167 def_file_export structure.
1168 (pe_implied_import_dll): New variables exp_funcbase and
1169 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1170 not filename (which may be a symlink). Scan the sections and
1171 initialize [data|bss]_[start|end]. When scanning the export
1172 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1173 that it is in the .bss or .data sections as data.
1174 * sysdep.h: Include limits.h and sys/param.h, and define
1175 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1176 exists, NULL otherwise.
1177 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1178 pe_process_import_defs before pe_find_data_imports, so that
1179 auto-import will check the virtual implib as well as "real"
1181 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1182 symlinks to their target; check that the target's extension is
1183 .dll before calling pe_implied_import_dll(), not the filename
1184 itself (which may be a symlink).
1186 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1188 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1189 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1192 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1194 * ldlang.h: Formatting.
1196 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1198 * ldlang.c (init_os): Ensure sections mentioned in load_base
1201 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1203 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1204 load_base for orphans that follow a section with load_base set.
1206 2002-12-01 H.J. Lu <hjl@gnu.org>
1208 * ld.texinfo: Remove the extra `;' in sample version script.
1210 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1212 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1214 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1215 * Makefile.in: Regenerate.
1217 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1218 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1219 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1220 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1221 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1222 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1223 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1224 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1225 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1226 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1227 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1228 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1229 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1231 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1233 * configure.host: Fix generic FreeBSD configuration entry.
1235 2002-11-27 H.J. Lu <hjl@gnu.org>
1237 * ld.texinfo: Add the missing `;' to sample version scripts.
1239 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1241 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1243 2002-11-14 Egor Duda <deo@logos-m.ru>
1245 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1246 assignment which has no effect.
1247 * pe-dll.h (pe_create_import_fixup): Change prototype.
1248 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1249 (pe_create_runtime_relocator_reference): Ditto.
1250 (pe_create_import_fixup): Handle relocations with non-zero addends.
1251 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1252 --disable-runtime-pseudo-reloc.
1253 (make_import_fixup): Handle relocations with non-zero addends. Create
1254 an external reference to _pei386_runtime_relocator symbol if at least
1255 one pseudo reloc was created.
1256 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1257 --disable-runtime-pseudo-reloc options.
1259 2002-11-12 Earl Chew <earl_chew@agilent.com>
1261 * ldlang.c (lang_add_section): Discard debugging sections that have
1262 been marked SEC_EXCLUDE.
1264 2002-11-12 Nick Clifton <nickc@redhat.com>
1266 * configure.in (ALL_LINGUAS): Add da.
1267 * configure: Regenerate.
1268 * po/da.po: New Danish translation.
1270 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1272 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1273 (LDEMUL_BEFORE_ALLOCATION): Define.
1274 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1276 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1278 2002-11-11 Christopher Faylor <cgf@redhat.com>
1280 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1283 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1285 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1286 of restricted auto-export libs.
1288 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1290 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1291 creative library naming instances like, e.g., libstdc++-2.a.
1293 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1295 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1296 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1298 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1300 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1301 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1302 (make_one): Don't prefix decorated fastcall symbols with '_'.
1303 (pe_process_import_defs): Likewise.
1304 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1305 symbols to cdecl names or vise-versa.
1307 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1309 * pe-dll.c (process_def_file): Handle fastcall symbols when
1310 generating undecorated aliases. Don't prefix decorated fastcall
1312 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1315 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1317 * emultempl/aix.em: Use include <> for generated headers.
1318 * emultempl/beos.em: Likewise.
1319 * emultempl/elf32.em: Likewise.
1320 * emultempl/pe.em: Likewise.
1321 * ldctor.c: Likewise.
1322 * ldexp.c: Likewise.
1323 * ldfile.c: Likewise.
1324 * ldlang.c: Likewise.
1325 * ldlex.c: Likewise.
1326 * ldlex.l: Likewise.
1327 * ldmain.c: Likewise.
1328 * ldmisc.c: Likewise.
1329 * ldwrite.c: Likewise.
1330 * lexsup.c: Likewise.
1332 * pe-dll.c: Likewise.
1334 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1336 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1337 sections into .rel{,a}.dyn.
1339 2002-10-23 Nick Clifton <nickc@redhat.com>
1341 * lexsup.c (OPTION_NO_OMAGIC): Define.
1342 (ld_options): Add "no-omagic" option.
1343 (parse_args): Parse --no-omagic.
1344 * ld.texinfo: Document --no-omagic.
1345 * NEWS: Mention new option.
1347 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1349 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1350 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1352 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1354 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1355 emulation name. Set LIB_PATH only for native tools, and
1356 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1357 .../lib variants, not instead of them. Mostly copied from...
1358 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1359 * emulparams/elf64bmip-defs.sh: Backed out.
1360 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1361 * emulparams/elf64btsmip.sh: Likewise.
1362 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1363 TEXT_DYNAMIC): Removed.
1365 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1367 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1368 (GENERATE_SHLIB_SCRIPT): Set to yes.
1369 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1370 * emulparams/elf32bmipn32.sh: here.
1371 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1372 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1373 * emulparams/elf64bmip-defs.sh: New file. Extend
1374 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1375 * emulparams/elf64bmip.sh: Bring in definitions from
1377 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1379 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1380 * emulparams/elf64btsmip.sh: Bring in definitions from
1382 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1383 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1385 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1387 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1388 (s390-*-linux*): Add elf64_s390 emulation if want64.
1389 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1390 genscript.sh changes.
1391 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1392 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1394 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1396 * ldlang.c (load_symbols): Revert last change.
1398 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1400 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1402 (lang_reasonable_defaults): Don't compare against false.
1403 (size_input_section): Likewise.
1404 (lang_size_sections_1): Likewise.
1405 (lang_do_assignments): Likewise.
1406 (lang_add_output): Likewise.
1408 * Makefile.am: Run "make dep-am".
1409 * Makefile.in: Regenerate.
1410 * ldver.c: #include "bfdver.h".
1412 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1414 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1416 * scripttempl/elfm68hc12.sc: Likewise.
1418 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1420 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1422 * ldgram.y (memory_spec): Provide empty action.
1423 (section <NAME>): Likewise.
1425 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1427 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1428 they have OUTPUT_FORMAT not matching actual output format.
1429 * ldlang.c (lang_get_output_target): New function.
1430 (open_output): Use it.
1431 * ldlang.h (lang_get_output_target): New prototype.
1433 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1435 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1436 when orphan is .rel, .rela when orphan is .rela.
1437 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1438 first. Remove outsecname var.
1440 2002-10-09 Richard Shann <richard.shann@superh.com>
1441 Stephen Clarke <stephen.clarke@superh.com>
1443 * Makefile.am: Add eshelf32_linux.o and
1444 eshlelf32_linux.o, new emulations for sh64 Linux.
1445 * Makefile.in: Regenerate.
1446 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1447 * emulparams/shelf32_linux.sh: New file.
1448 * emulparams/shlelf32_linux.sh: New file.
1450 2002-10-08 H.J. Lu <hjl@gnu.org>
1452 * ldlang.c (lang_file_exist): Removed.
1453 (new_afile): Revert the last change.
1454 * ldlang.h (lang_file_exist): Removed.
1455 * lexsup.c (parse_args): Revert the last change.
1457 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1459 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1460 auto-import symbols.
1461 (make_one): Create _nm_<symbol> for data only.
1463 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1465 * ldlang.c (lang_file_exist): New function.
1466 (new_afile): Abort if the filename to be added matches the linker
1468 * ldlang.h: Add prototype for lang_file_exist.
1469 * lexsup.c (parse_args): Abort if the output filename matches
1470 one of the input filenames.
1472 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1474 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1476 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1478 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1479 * scripttempl/elfm68hc11.sc: Likewise.
1480 * scripttempl/elfm68hc12.sc: Likewise.
1482 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1483 reloc sections just before .rel.plt/.rela.plt.
1484 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1485 Only put loadable reloc sections in hold_rel.
1487 2002-09-29 H.J. Lu <hjl@gnu.org>
1489 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1491 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1493 From "Anita Kulkarni" <AnitaK@kpit.com>
1494 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1497 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1499 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1501 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1502 SEGMENT_SIZE alignment.
1503 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1504 (SEGMENT_SIZE): Define.
1506 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1507 (fold_binary): Correct abs - non-abs case.
1508 (fold_trinary): New. Split out from exp_fold_tree.
1510 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1512 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1513 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1514 for start of .data, instead align up to 256M boundary.
1515 * scripttempl/aix.sc: Likewise.
1517 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1519 * scripttempl/i386go32.sc: Handle bss unique sections.
1521 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1523 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1525 2002-09-17 Stan Cox <scox@redhat.com>
1527 * emulparams/elf32bmipn32-defs.sh: New file.
1528 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1529 * emulparams/elf32btsmipn32.sh: Likewise.
1530 * emulparams/elf64bmip.sh: Likewise.
1531 * emulparams/elf64btsmip.sh: Likewise.
1533 2002-09-16 Bruno Haible <bruno@clisp.org>
1535 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1537 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1538 elf64-alpha-freebsd.
1540 2002-09-11 Nick Clifton <nickc@redhat.com>
1542 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1544 * po/tr.po: Updated Turkish translation.
1546 2002-09-06 Jeffrey A Law (law@redhat.com)
1548 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1550 2002-09-02 Nick Clifton <nickc@redhat.com>
1552 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1554 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1556 2002-08-30 Nick Clifton <nickc@redhat.com>
1558 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1559 used. Change INSN to start at 0x01000000 and extend for
1560 256K (ignoring holes). Start the STACK on a word aligned
1562 (.rodata): Start it at the READONLY_START_ADDR.
1564 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1566 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1568 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1570 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1571 added makefile targets for this file.
1572 * Makefile.in: Regenerate.
1573 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1574 * NEWS: Mention new port.
1576 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1578 * emulparams/tic3xcoff.sh: New file.
1579 * emulparams/tic4xcoff.sh: New file.
1580 * scripttempl/tic3xcoff.sc: New file.
1581 * scripttempl/tic4xcoff.sc: New file.
1583 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1585 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1586 strtoul and strtoull with bfd_scan_vma.
1587 (gld${EMULATION_NAME}_read_file): Likewise.
1589 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1591 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1593 2002-08-27 Egor Duda <deo@logos-m.ru>
1595 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1596 Add symbols for application to access them.
1598 2002-08-27 Nick Clifton <nickc@redhat.com>
1600 * emultempl/armelf.em: Revert this patch, it is not needed.
1602 2002-08-22 Adam Nemet <anemet@lnxw.com>
1604 2002-08-20 Dan Kegel <dank@kegel.com>
1606 * configure.in: added --with-lib-path argument to ld's configure
1608 * NEWS: Document new switch.
1609 * README: Mention new switch.
1610 * configure: Regenerate.
1611 * Makefile.in: Regenerate.
1613 Based on this patch:
1614 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1616 * Makefile.in (LIB_PATH): Make configurable.
1617 (GENSCRIPTS): Set LIB_PATH in environment.
1618 * configure.in: Substitute LIB_PATH.
1620 2002-08-22 Adam Nemet <anemet@lnxw.com>
1622 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1623 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1624 depending on the type of the function.
1625 (arm_elf_convert_thumb_symbol_to_address): New function.
1627 2002-08-22 Graeme Peterson <gp@qnx.com>
1629 * Makefile.am: Add esh{l}elf_nto.o files.
1630 * Makefile.in: Regenerate.
1631 * configure.tgt: Add support for sh-**-nto* targets.
1632 * emulparams/shelf_nto.sh: New file.
1633 * emulparams/shlelf_nto.sh: New file.
1635 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1637 * ldlang.c (offsetof): Define if not defined.
1639 2002-08-14 H.J. Lu <hjl@gnu.org>
1641 * configure.tgt: Always enable 64bit emulations for 32bit
1644 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1646 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1647 (MAXPAGESIZE): Set to 1.
1649 * ld.h (ALIGN_N): Delete.
1650 * ldexp.h (align_n): Declare.
1651 * ldexp.c (align_n): New function.
1652 (fold_binary): Use align_n instead of ALIGN_N.
1653 (exp_fold_tree): Likewise.
1654 * ldlang.c (lang_size_sections_1): Likewise.
1655 (lang_one_common): Likewise.
1656 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1658 2002-07-31 Graeme Peterson <gp@qnx.com>
1660 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1661 * Makefile.am: Add eelf32{l}ppcnto.o files.
1662 * Makefile.in: Regenerate.
1663 * emulparams/elf32lppcnto.sh: New file.
1664 * emulparams/elf32ppcnto.sh: New file.
1666 2002-08-07 H.J. Lu <hjl@gnu.org>
1668 * ld.texinfo: Document --no-undefined-version.
1670 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1671 `script.' fields to 0.
1673 * ldmain.c (main): Initialize the allow_undefined_version to
1676 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1677 (ld_options): Add --no-undefined-version.
1678 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1680 2002-08-07 Nick Clifton <nickc@redhat.com>
1682 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1683 an interworking bfd if there are input bfds. (107501)
1685 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1687 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1690 2002-08-01 Nick Clifton <nickc@redhat.com>
1692 * emulparams/armelf.sh: Revert previous delta.
1693 * scripttempl/elf.sc: Revert previous delta.
1695 2002-07-31 H.J. Lu <hjl@gnu.org>
1697 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1698 --enable-64-bit-bfd.
1700 2002-07-31 H.J. Lu <hjl@gnu.org>
1702 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1703 64bit BFD is selected.
1705 2002-07-31 H.J. Lu <hjl@gnu.org>
1707 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1708 if 64bit BFD is selected.
1710 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1712 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1713 link_info.common_skip_ar_aymbols.
1714 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1716 * ldmain.c (main): Initialize new field
1717 link_info.common_skip_ar_aymbols.
1719 2002-07-31 Adam Nemet <anemet@lnxw.com>
1721 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1723 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1726 2002-07-31 Nick Clifton <nickc@redhat.com>
1728 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1729 of the PDP-11 and 2.11BSD a.out support.
1731 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1733 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1734 for n32 ABI support.
1735 * Makefile.in: Regenerate.
1736 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1737 n32 ABI emulations for these 64 bit targets.
1738 * emulparams/elf32bmipn32.sh: Expand comment.
1739 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1741 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1743 2002-07-30 Graeme Peterson <gp@qnx.com>
1745 * configure.tgt: Add support for arm-*-nto target.
1746 * Makefile.am: Add earmnto.o file.
1747 * Makefile.in: Regenerate.
1748 * NEWS: Mention port of ARM support to QNX.
1749 * emulparams/armnto.sh: New file.
1751 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1753 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1754 for relocatable link.
1755 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1758 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1760 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1763 2002-07-25 Nick Clifton <nickc@redhat.com>
1765 * po/sv.po: Updated Swedish translation.
1766 * po/es.po: Updated Spanish translation.
1767 * po/fr.po: Updated French translation.
1769 2002-07-24 Nick Clifton <nickc@redhat.com>
1771 * po/sv.po: Updated Swedish translation.
1772 * po/es.po: Updated Spanish translation.
1774 2002-07-23 Nick Clifton <nickc@redhat.com>
1776 * po/fr.po: Updated French translation.
1778 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1780 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1781 bomb on /DISCARD/ input section.
1782 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1783 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1785 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1787 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1790 2002-07-16 Denis Chertykov <denisc@overta.ru>
1791 Nick Clifton <nickc@redhat.com>
1792 Frank Ch. Eigler <fche@redhat.com>
1793 John Healy <jhealy@redhat.com>
1795 * configure.tgt: Add support for ip2k-elf.
1796 * Makefile.am: Add support for ip2k-elf.
1797 * Makefile.in: Regenerate.
1798 * emulparams/elf32ip2k.sh: New file.
1799 * scripttempl/ip2k.sc: New file
1800 * NEWS: Mention support for new port.
1802 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1804 * NEWS: Add 'Changes in 2.13'.
1806 2002-07-14 H.J. Lu <hjl@gnu.org>
1808 * ld.texinfo: Document a .symver takes precedence over a
1811 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1813 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1814 (COMMONPAGESIZE): Define.
1816 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1818 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1820 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1822 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1823 powerpc-*-openbsd* and sparc64-*-openbsd*.
1824 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1825 * Makefile.in: Regenerate.
1826 * emulparams/hppaobsd.sh: New file.
1828 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1830 * ldlang.c (print_wild_statement): Fix output formatting.
1832 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1834 * ldlang.c: (strip_excluded_output_sections): New function.
1835 (lang_process): Call it.
1836 (lang_size_sections_1): Revert 2002-06-10 change.
1838 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1840 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1842 * Makefile.in: Regenerate.
1844 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1846 * ldfile.c (ldfile_try_open_bfd): Formatting.
1848 * ldmisc.c (demangle): Move so that it doesn't intrude between
1849 vfinfo comment and body. Add comment.
1851 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1853 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1855 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1857 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1858 * ldlang.c (entry_sym): Likewise.
1859 (ldlang_undef_chain_list_type): Likewise.
1860 (lang_finish): Adjust references to entry_symbol.
1861 (lang_add_entry): Likewise.
1862 (lang_gc_sections): Use link_info.gc_sym_list.
1863 (lang_process): Set link_info.gc_sym_list.
1864 * ldlex.l: Include bfdlink.h.
1865 * ldmain.c (main): Init link_info.gc_sym_list.
1866 * emultempl/aix.em: Adjust references to entry_symbol.
1867 * emultempl/armcoff.em: Likewise.
1868 * emultempl/armelf.em: Likewise.
1869 * emultempl/pe.em: Likewise.
1870 * emultempl/ppc64elf.em (ppc_after_open): New function.
1871 (LDEMUL_AFTER_OPEN): Define.
1872 * emulparams/elf64ppc.sh: KEEP .opd sections.
1874 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1876 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1877 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1878 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1879 (EEPROM_START_ADDR): Define.
1880 (EEPROM_MEMORY): Define.
1881 * emulparams/m68hc12elf.sh: Likewise.
1882 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1883 section to put soft registers in .page0.
1884 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1886 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1888 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1889 section. Add ${RELOCATING-0}.
1891 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1893 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1894 (OTHER_SECTIONS): Define.
1895 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1896 (OTHER_SECTIONS): Undef.
1898 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1900 * ldmisc.c (demangle): Restore dots stripped from sym name.
1902 2002-06-25 H.J. Lu <hjl@gnu.org>
1904 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1905 * Makefile.in: Regenerated.
1907 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1909 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1910 the size of attached object files, to allow make the object files
1911 available via FTP or HTTP and to mention that the mail will be
1912 sent to a mailing list.
1914 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1916 * configure.host (romp): Drop support.
1918 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1920 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1921 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1923 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1925 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1926 format specifier used to print BFD name.
1928 2002-06-18 Dave Brolley <brolley@redhat.com>
1930 From Catherine Moore, Michael Meissner, Jim Blandy:
1931 * emulparams/elf32frv.sh: New file.
1932 * configure.tgt: Support frv-*-*.
1933 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1934 (eelf32frv.c): New target.
1936 2002-06-17 Tom Rix <trix@redhat.com>
1938 * emultempl/elf32.em: gld*_get_script: Check for
1939 GENERATE_COMBRELOC_SCRIPT.
1940 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1941 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1943 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1945 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1947 2002-06-12 H.J. Lu <hjl@gnu.org>
1949 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1950 false if xvec doesn't match.
1952 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1954 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1956 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1958 * ldexp.c: Replace CONST with const.
1959 * ldfile.c: Likewise.
1960 * ldfile.h: Likewise.
1961 * ldlex.l: Likewise.
1963 * pe-dll.h: Likewise.
1965 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1967 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1969 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1971 * ldmain.c (main): initialize link_info.pei386_auto_import
1972 to -1 == implicit enable.
1973 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1974 initialize link_info.pei386_auto_import to -1 == implicit
1976 (gld_${EMULATION_NAME}_parse_args): When processing
1977 --enable-auto-import and --disable-auto-import options, use
1978 '1' and '0' instead of 'true' and 'false'.
1979 (pe_find_data_imports): Only issue message about auto-import
1980 when the feature is implicitly enabled. Downgrade message to
1981 informational instead of warning.
1983 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1985 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1987 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1989 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1990 HOSTING_CRT0 and HOSTING_LIBS.
1992 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1994 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1996 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1998 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1999 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2001 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2003 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2004 SEC_EXCLUDE sections when doing a relocatable link.
2006 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2008 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2009 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2010 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2011 (eshlelf64_nbsd.c): New rules.
2012 * Makefile.in: Regenerate.
2013 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2014 (sh64-*-netbsd*): New targets.
2015 * emulparams/shelf32_nbsd.sh: New file.
2016 * emulparams/shelf64_nbsd.sh: New file.
2017 * emulparams/shlelf32_nbsd.sh: New file.
2018 * emulparams/shlelf64_nbsd.sh: New file.
2020 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2022 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2024 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2026 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2027 C++ constructors/destructors, loosely based on the m68hc11 port.
2029 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2031 * Makefile.in: Regenerate.
2032 * aclocal.m4: Regenerate.
2033 * config.in: Regenerate.
2034 * configure: Regenerate.
2036 2002-05-31 Graeme Peterson <gp@qnx.com>
2038 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2039 (ei386nto.c): Add rule.
2040 * Makefile.in: Regenerate.
2041 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2042 * emulparams/i386nto.sh: New file.
2044 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2046 * NEWS: Add entry for VAX ELF support.
2048 2002-05-29 Matt Thomas <matt@3am-software.com>
2049 Jason Thorpe <thorpej@wasabisystems.com>
2051 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2053 (evaxnbsd.c): New rules.
2054 * Makefile.in: Regenerate.
2055 * configure.tgt (vax-*-netbsdelf*)
2057 (vax-*-netbsd*): New targets.
2058 * emulparams/elf32vax.sh: New file.
2059 * emulparams/vaxnbsd.sh: New file.
2061 2002-05-29 Adam Nemet <anemet@lnxw.com>
2063 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2064 bfd_for_interwork, instead add glue sections to each input bfd.
2065 (bfd_for_interwork): New global.
2066 (arm_elf_set_bfd_for_interworking): New function.
2067 (arm_elf_before_allocation): Use it.
2069 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2071 * Makefile.am: Add DLX make target.
2072 * configure.tgt: Add DLX configuration.
2073 * Makefile.in: Regenerate.
2074 * emulparams/elf32_dlx.sh: New file
2075 * scripttempl/dlx.sc: New file
2077 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2079 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2080 * Makefile.in: Regenerate.
2081 * emulparams/elf_chaos.sh: Use elf_chaos script.
2082 * scripttempl/elf_chaos.sc: New file.
2084 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2086 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2087 addresses and regions from here...
2088 (lang_get_regions): ...to this new function.
2089 (lang_leave_output_section_statement): Use lang_get_regions.
2090 (lang_leave_overlay): Likewise.
2091 * mri.c (mri_draw_tree): Pass null as last argument to
2092 lang_leave_output_section_statement.
2093 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2094 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2095 * emultempl/pe.em (gld*_place_orphan): Likewise.
2097 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2099 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2101 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2103 * ldemul.c: Fix formatting.
2104 * ldfile.c: Likewise.
2105 * pe-dll.c: Likewise.
2106 * pe-dll.h: Likewise.
2108 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2110 * ldlang.c (lang_process): Formatting, grammar.
2112 * ldlex.l: Use #include "" instead of <> for local header files.
2114 2002-05-24 TAMURA Kent <kent@netbsd.org>
2116 * configure.tgt: Add a target for i386-netbsdpe.
2118 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2120 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2121 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2122 output section if necessary. Handle .tbss.
2123 (lang_size_sections): Clear _raw_size for .tbss section
2124 (it allocates space in PT_TLS segment only).
2125 * ldwrite.c (build_link_order): Build link order for .tbss too.
2127 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2129 * configure.in: Correct spelling of AC_PREREQ.
2131 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2133 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2135 (autofilter_objlist): Add crtbegin.o, crtend.o.
2137 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2139 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2140 (longopts): Add new option --exclude-libs.
2141 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2142 (gld_${EMULATION_NAME}_parse_args): Use it.
2143 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2144 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2145 from whole archives.
2146 (pe_dll_add_excludes): Set excludes->type.
2147 (auto_export): Add new variable libname and set to archive basename if
2148 abfd. Use it when filtering default and user-specified libarary
2149 excludes. Let string "ALL" mean all libs when filtering user-specified
2151 * ld.texinfo: Document --exclude-libs.
2153 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2155 * ldemul.c (ldemul_new_vers_pattern): New function.
2156 * ldemul.h (ldemul_new_vers_pattern): Declare.
2157 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2158 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2159 * emultempl/ppc64elf.em (dotsyms): New static var.
2160 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2161 (LDEMUL_NEW_VERS_PATTERN): Define.
2162 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2163 (PARSE_AND_LIST_LONGOPTS): Likewise.
2164 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2165 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2167 * emultempl/armcoff.em: Likewise.
2168 * emultempl/armelf_oabi.em: Likewise.
2169 * emultempl/beos.em: Likewise.
2170 * emultempl/elf32.em: Likewise.
2171 * emultempl/generic.em: Likewise.
2172 * emultempl/gld960.em: Likewise.
2173 * emultempl/gld960c.em: Likewise.
2174 * emultempl/linux.em: Likewise.
2175 * emultempl/lnk960.em: Likewise.
2176 * emultempl/m68kcoff.em: Likewise.
2177 * emultempl/mipsecoff.em: Likewise.
2178 * emultempl/pe.em: Likewise.
2179 * emultempl/sunos.em: Likewise.
2180 * emultempl/ticoff.em: Likewise.
2181 * emultempl/vanilla.em: Likewise.
2183 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2185 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2186 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2187 (LIB_SEARCH_DIRS): No need to use "tr".
2188 (COMPILE_IN): Only set for native targets.
2189 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2190 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2191 * configure.tgt (powerpc*): Set tdir_*.
2192 (powerpcle*): Correct targ_extra_emuls.
2193 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2194 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2196 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2198 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2199 calling lang_add_entry.
2201 2002-05-21 H.J. Lu (hjl@gnu.org)
2203 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2205 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2207 * ld.texinfo: Updated for --allow-multiple-definition and
2210 * ldmain.c (main): Initialize the allow_multiple_definition
2213 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2214 (ld_options): Add --allow-multiple-definition.
2215 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2217 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2219 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2220 (earmelfb_nbsd.c): New rule.
2221 * Makefile.in: Regenerate.
2222 * configure.tgt (armeb-*-netbsdelf*): New target.
2223 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2224 (arm-*-netbsd*): Likewise.
2225 * emulparams/armelfb_nbsd.sh: New file.
2227 2002-05-18 Tom Rix <trix@redhat.com>
2229 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2232 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2234 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2235 * Makefile.in: Regenerate.
2236 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2238 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2240 * emulparams/avr1.sh: New file.
2241 * emulparams/avr2.sh: New file.
2242 * emulparams/avr3.sh: New file.
2243 * emulparams/avr4.sh: New file.
2244 * emulparams/avr5.sh: New file.
2245 * scripttempl/avr.sc: New file.
2247 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2249 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2250 (lang_place_orphans): Abort if just_syms_flag.
2252 2002-05-10 Tom Rix <trix@redhat.com>
2254 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2255 architecture and machine information in the output bfd.
2256 (gld*_before_parse): Remove old arch and machine code.
2257 (choose_target): Rename to gld*_choose_target.
2258 (rtld): Change type to int.
2259 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2260 objects in XCOFF archives.
2261 * ldfile.h: Update copyright date.
2263 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2265 * ldmain.c (main): Enable -z combreloc by default.
2267 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2269 * Makefile.am: Honour DESTDIR.
2270 * Makefile.in: Regenerate.
2272 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2274 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2275 (lang_enter_overlay): Remove the last two parameters.
2276 (lang_leave_overlay): Take them here instead.
2277 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2278 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2279 than lang_enter_overlay.
2280 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2281 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2282 (lang_size_sections_1): Evaluate it.
2283 (lang_leave_output_section_statement): Rework LMA lookup.
2284 (overlay_lma, overlay_nocrossrefs): Remove.
2285 (lang_enter_overlay): Remove LMA and crossref arguments.
2286 (lang_enter_overlay_section): Don't set the LMA here.
2287 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2288 assignment to the last section's update_dot_tree. Unconditionally
2289 use the load and run-time regions specified in the OVERLAY statement.
2290 Likewise the first section's LMA. Only set the other sections' LMAs
2291 when no load region is given.
2293 2002-05-06 Nick Clifton <nickc@redhat.com>
2295 * po/sv.po: New translation.
2297 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2299 * emultempl/hppaelf.em (build_section_lists): New function.
2300 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2301 and build_section_lists.
2303 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2305 * ld.h: Fix formatting.
2306 * ldexp.c: Likewise.
2307 * ldfile.c: Likewise.
2308 * ldlang.c: Likewise.
2309 * ldmain.c: Likewise.
2310 * lexsup.c: Likewise.
2311 * pe-dll.c: Likewise.
2313 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2315 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2316 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2317 (build_section_lists): Do output_section tests here.
2319 2002-04-30 Tom Rix <trix@redhat.com>
2321 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2323 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2325 Long branch stubs, multiple stub sections.
2326 * emultempl/ppc64elf.em: Include ldctor.h.
2327 (stub_file): New var.
2328 (group_size): New var.
2329 (ppc_create_output_section_statements): New function.
2330 (struct hook_stub_info): New.
2331 (hook_in_stub): New function.
2332 (ppc_add_stub_section): New function.
2333 (ppc_layout_sections_again): New function.
2334 (build_section_lists): New function.
2335 (gld${EMULATION_NAME}_finish): Rewrite.
2336 (real_func): New var.
2337 (ppc_for_each_input_file_wrapper): New function.
2338 (ppc_lang_for_each_input_file): New function.
2339 (lang_for_each_input_file): Define.
2340 (PARSE_AND_LIST_PROLOGUE): Define.
2341 (PARSE_AND_LIST_LONGOPTS): Define.
2342 (PARSE_AND_LIST_OPTIONS): Define.
2343 (PARSE_AND_LIST_ARGS_CASES): Define.
2344 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2346 2002-04-30 Tom Rix <trix@redhat.com>
2348 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2349 -blibpath, -bnolibpath support.
2351 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2353 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2354 (eelf32ppcwindiss.c): New target.
2355 * Makefile.in: Regenerated.
2356 * configure.tgt: Add support for powerpc-*-windiss.
2357 * emulparams/elf32ppcwindiss.sh: New file.
2359 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2361 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2362 * ldexp.c (exp_print_token): Add "infix_p" argument.
2363 (exp_print_tree): Update accordingly.
2365 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2367 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2368 * Makefile.in: Regenerate.
2369 * mpw-elfmips.c: Delete.
2370 * mpw-eppcmac.c: Delete.
2371 * mpw-esh.c: Delete.
2372 * mpw-idtmips.c: Delete.
2374 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2376 * emulparams/shelf32.sh (MACHINE): Now sh5.
2378 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2380 * ldgram.y: Fix syntax warning.
2382 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2384 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2385 to prevent "-n" from being taken as an abbreviation for
2386 "--no-pipeline-knowledge".
2388 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2390 * ldlang.c (lang_size_sections_1): Don't complain about
2391 SEC_NEVER_LOAD sections having no memory region specified.
2393 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2395 2002-04-07 matthew green <mrg@redhat.com>
2397 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2399 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2401 * dep-in.sed: Cope with absolute paths.
2402 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2404 * Makefile.in: Regenerate.
2406 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2408 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2410 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2412 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2413 is smaller than maximum, round dot up to common page boundary.
2415 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2417 * configure.host: Set up for generic hosts first, then tweak as
2418 necessary in more specific targets.
2419 (HOSTING_LIBS): Include libgcc_eh.a if found.
2421 2002-03-23 Andreas Jaeger <aj@suse.de>
2423 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2425 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2427 * Makefile.am: Run "make dep-am".
2428 * Makefile.in: Regenerate.
2430 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2432 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2434 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2436 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2437 add the symbol to the linker hash table immediately.
2438 (lang_place_undefineds): Split symbol creation out..
2439 (insert_undefined): ..to here.
2441 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2443 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2444 the contents of the buffer returned from basename function will are
2445 getting overwritten while still being used.
2447 2002-03-18 Jan Hubicka <jh@suse.cz>
2448 Andreas Jaeger <aj@suse.de>
2449 Andreas Schwab <schwab@suse.de>
2451 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2452 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2453 set libraries to default to lib64 paths.
2455 2002-03-18 Tom Rix <trix@redhat.com>
2457 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2458 * configure.tgt : Same.
2459 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2460 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2461 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2462 emulation parameters for better -b32, -b64 support.
2463 * emulparms/aixrs6.sh : Same.
2464 * emulparms/ppcmacos.sh : Same.
2465 * emultempl/aix.em (choose_target) : Use new emulation parameters
2466 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2467 * Makefile.in : Regenerate.
2469 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2471 * po/fr.po: Updated version.
2473 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2475 * ldmain.c (main): Move .text readonly flag fudges from here..
2476 * ldlang.c (lang_process): ..to here.
2478 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2480 * ldlang.c (lang_check): Remove the word size check added in last
2481 change. Treat emitrelocations case as for relocatable links.
2483 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2485 * po/fr.po: Updated version.
2487 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2489 * ldlang.c (lang_check): Do relocatable link checks first, so that
2490 warn_mismatch can't override. Check compatible and word size too.
2492 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2494 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2496 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2498 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2501 2002-03-04 H.J. Lu <hjl@gnu.org>
2503 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2504 .fini_array in the data segment.
2506 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2508 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2510 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2512 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2513 .init_array, and .fini_array.
2515 2002-02-20 Andreas Schwab <schwab@suse.de>
2517 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2518 .IA64_unwind* in a relocatable link.
2520 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2522 * NEWS: Mark 2.12 branch.
2524 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2526 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2527 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2529 2002-02-18 Tom Rix <trix@redhat.com>
2531 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2532 (gld*_before_allocation): Same.
2533 (gld*_create_output_section_statements): Generate
2534 __rtinit if run time linking. Add librtl.a to the link.
2535 (gld*_read_file): Clean.
2537 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2539 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2541 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2543 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2544 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2545 and eelf64alpha_fbsd.
2546 * Makefile.in: Regenerate.
2547 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2548 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2549 use a FreeBSD-specific emulation rather than the psABI one.
2550 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2551 for all FreeBSD ELF systems.
2552 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2554 * emulparams/elf32ppc_fbsd.sh: Likewise.
2555 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2556 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2557 * emulparams/elf64alpha_fbsd.sh: Likewise.
2558 * emulparams/elf_i386_fbsd.sh: Likewise.
2559 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2561 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2563 * po/tr.po: Updated version.
2565 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2567 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2570 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2572 * emultempl/mmo.em (mmo_after_open): Don't call
2573 _bfd_mmix_check_all_relocs when producing ELF output.
2575 2002-02-15 Richard Henderson <rth@redhat.com>
2577 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2578 definition. Emit a unop+nop pair.
2580 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2582 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2583 for presence of .MMIX.reg_contents.linker_allocated before early
2586 * NEWS: Mention support for MMIX.
2588 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2590 Support arbitrary length fill patterns.
2591 * ld.texinfo (Output Section Fill): Describe fill expressions.
2592 (FILL): Refer to the above.
2593 * ldexp.h (etree_value_type): Add "str" field.
2594 (union etree_union): Add "str" to "value" struct.
2595 (exp_bigintop): Declare.
2596 (exp_get_fill): Declare.
2597 * ldexp.c: Include "safe-ctype.h".
2598 (exp_intop): Set value.str to NULL.
2599 (exp_bigintop): New function.
2600 (new_rel): Pass in "str", and set new.str from it.
2601 (new_rel_from_section): Set new.str to NULL.
2602 (fold_name): Adjust calls to new_rel.
2603 (exp_fold_tree): Likewise.
2604 (exp_get_fill): New function.
2605 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2606 (INT): Returns a "bigint". Adjust all code handling INTs.
2607 (fill_opt): Returns a "fill".
2608 (fill_exp): Split out of fill_opt, use for FILL.
2609 * ldlang.h (struct _fill_type): New.
2610 (fill_type): Move typedef to ldexp.h.
2611 (lang_output_section_statement_type): "fill" is now a pointer.
2612 (lang_fill_statement_type): Likewise.
2613 (lang_padding_statement_type): Likewise.
2614 (lang_add_fill): Now takes a "fill_type *" param.
2615 (lang_leave_output_section_statement): Likewise.
2616 (lang_do_assignments): Likewise.
2617 (lang_size_sections): Likewise.
2618 (lang_leave_overlay_section): Likewise.
2619 (lang_leave_overlay): Likewise.
2620 * ldlang.c: Include ldgram.h after ldexp.h.
2621 (lang_output_section_statement_lookup): Adjust for fill_type change.
2622 (print_fill_statement): Likewise.
2623 (print_padding_statement): Likewise.
2624 (insert_pad): Now takes a "fill_type *" arg.
2625 (size_input_section): Likewise.
2626 (lang_size_sections_1): Likewise.
2627 (lang_size_sections): Likewise.
2628 (lang_do_assignments): Likewise.
2629 (lang_add_fill): Likewise.
2630 (lang_leave_output_section_statement): Likewise.
2631 (lang_leave_overlay_section): Likewise.
2632 (lang_leave_overlay): Likewise.
2633 Adjust all callers of the above function.
2634 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2635 starting with "0X" as well as "0x". Return bigint.str for hex
2636 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2637 Always use base 16 for numbers starting with "$".
2638 * ldmain.c: Include ldgram.h after ldexp.h.
2639 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2640 of bfd_fill_link_order.
2641 * pe-dll.c: Adjust lang_do_assignments calls.
2642 * emultempl/elf32.em: Likewise.
2643 * emultempl/hppaelf.em: Likewise.
2644 * emultempl/ppc64elf.em: Likewise.
2645 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2646 lang_add_assignment call.
2647 * emultempl/pe.em: Likewise.
2649 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2651 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2652 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2653 the pattern in question is not a regexp.
2654 * ldlang.c: Likewise.
2655 * ldlang.h: Likewise.
2656 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2658 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2660 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2661 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2662 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2663 * ldexp.c (exp_data_seg): New variable.
2664 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2665 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2666 (exp_fold_tree): Handle DATA_SEGMENT_END.
2667 Pass allocation_done when recursing instead of hardcoding
2668 lang_allocating_phase_enum.
2669 * ldexp.h (exp_data_seg): New.
2670 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2671 (lang_size_sections): New.
2672 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2673 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2674 if COMMONPAGESIZE is defined.
2675 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2676 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2677 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2678 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2679 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2682 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2684 * Makefile.in: Regenerate.
2686 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2688 * lexsup.c: Remove strtoul declaration.
2690 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2692 * ldmain.c: Add prototype for main ().
2693 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2694 * emultempl/lnk960.em (lnk960_choose_target): Function should
2697 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2699 * ldlang.c (entry_section): New initialised variable.
2700 (lang_finish): Use it.
2701 * ldlang.h (entry_section): Declare.
2702 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2703 entry_section to ".opd".
2705 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2707 * ld.texinfo (Options): Add back in -nostdlib documentation,
2708 which had been inadvertently removed.
2710 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2712 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2713 register section vma to a sane value after emitting error. Make
2714 fatal conditions cause program exit when emitting message.
2716 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2718 * configure.tgt: Add or32-*-rtems target.
2720 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2722 Contribute sh64-elf.
2723 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2724 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2725 in OTHER_RELOCATABLE_SECTIONS.
2726 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2727 * emulparams/shelf32.sh (STACK_ADDR): Define.
2728 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2729 (OTHER_SECTIONS): this. Removed stack settings.
2730 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2731 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2732 2001-03-12 DJ Delorie <dj@redhat.com>
2733 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2734 relaxing if any shmedia or mixed sections are found.
2735 2001-03-07 DJ Delorie <dj@redhat.com>
2736 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2737 einfo. Gracefully decline to output to non-elf formats.
2738 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2739 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2740 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2741 * emulparams/shelf32.sh: Ditto.
2742 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2743 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2745 2001-01-10 Ben Elliston <bje@redhat.com>
2746 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2747 non-portable shell constructs. From Hans-Peter Nilsson.
2748 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2749 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2750 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2751 dependencies to the shell script include chain.
2752 * Makefile.in: Regenerate.
2753 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2754 * emultempl/sh64elf.em: Update and tweak comments.
2755 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2756 make a .cranges section SEC_IN_MEMORY.
2757 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2758 * emultempl/sh64elf.em
2759 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2760 .cranges section found to be necessary; continue and set stored
2761 section contents flags for sections with non-mixed contents.
2762 Use a struct sh64_section_data container and sh64_elf_section_data
2763 to store contents-type flags.
2764 Remove unused update of "isec".
2765 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2766 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2767 access contents-type flags. Assert that the associated container
2768 is initialized. Use that container, not elf_gp_size, to hold size
2769 of linker-generated cranges contents.
2770 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2771 * emultempl/sh64elf.em
2772 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2773 there's already a .cranges section. When section flag difference
2774 is found, don't NULL-check cranges a second time. Tweak comments.
2775 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2776 merging, not max size, as size of ld-generated .cranges contents.
2777 Don't set ELF section flags in output section. When checking for
2778 needed .cranges descriptors, don't use a variable; compare
2779 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2781 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2782 * emultempl/sh64elf.em: New file.
2783 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2784 * Makefile.in: Regenerate.
2785 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2786 (OTHER_RELOCATING_SECTIONS): Ditto.
2787 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2788 * emulparams/shlelf32.sh: Stub out all settings except
2789 OUTPUT_FORMAT. Source shelf32.sh.
2790 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2791 OTHER_RELOCATING_SECTIONS.
2792 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2793 * emulparams/shlelf64.sh: Stub out all settings except
2794 OUTPUT_FORMAT. Source shelf64.sh.
2795 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2796 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2798 (DATA_START_SYMBOLS): Define, provide ___data.
2799 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2800 for consecutive .data section.
2801 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2802 section after .data section.
2803 * emulparams/shlelf64.sh: Ditto.
2804 * emulparams/shelf32.sh: Ditto.
2805 (ALIGNMENT): Define to 8.
2806 * emulparams/shelf32.sh: Ditto.
2807 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2808 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2809 built-in linker scripts.
2810 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2811 * emulparams/shlelf64.sh: New.
2812 * emulparams/shelf64.sh: New.
2813 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2815 * Makefile.am: Add support for shlelf64 and shelf64.
2816 * Makefile.in: Regenerate.
2817 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2818 * configure.tgt (sh64-*-elf*): Add shelf as default.
2819 Add shlelf to targ_extra_emuls.
2820 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2821 * emulparams/shelf32.sh: New file.
2822 * emulparams/shlelf32.sh: New file.
2823 * Makefile.am: Add support for shlelf32 and shelf32.
2824 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2825 * Makefile.in: Regenerate.
2827 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2829 * ldlang.c (lang_reset_memory_regions): Rename from
2830 reset_memory_regions. Change all callers. Make public.
2831 * ldlang.h (lang_reset_memory_regions): Prototype.
2832 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2833 lang_reset_memory_regions before lang_size_sections.
2834 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2835 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2837 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2839 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2840 arithmetic when checking for too many global registers.
2842 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2844 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2845 (ehppanbsd.c): New rule.
2846 * Makefile.in: Regenerate.
2847 * configure.tgt (hppa*-*-netbsd*): New target.
2848 * emulparams/hppalinux.sh: Add comment to check other files
2849 that source this file it is modified, and list which
2851 * emulparams/hppanbsd.sh: New file.
2853 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2855 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2858 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2860 Support on-demand global register allocation from
2861 R_MMIX_BASE_PLUS_OFFSET relocs.
2862 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2863 mmix_set_reg_section_vma. Call
2864 _bfd_mmix_finalize_linker_allocated_gregs.
2865 (mmix_before_allocation): New function.
2866 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2867 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2868 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2869 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2870 before .MMIX.reg_contents.
2871 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2872 (mmo_after_open): New function.
2873 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2874 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2875 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2877 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2879 * emulparams/or32.sh: New file.
2880 * emulparams/or32elf.sh: New file.
2881 * scripttempl/or32.sc: New file.
2882 * configure.tgt : Add support for or32.
2883 * configure: Regenerate
2884 * Makefile.am: Add support for or32.
2885 * Makefile.in: Regenerate.
2886 * NEWS: Mention support for or32.
2887 * po/ld.pot: Regenerate.
2889 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2890 Mitch Lichtenberg <mpl@broadcom.com>
2892 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2893 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2894 reloc creation (ld --embedded-relocs).
2896 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2898 * configure: Regenerated.
2900 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2902 * Makefile.am (install): Depend on install-info.
2903 * Makefile.in: Regenerate.
2905 2002-01-26 Christian Rose <menthos@menthos.com>
2907 * ldmain.c (main): Use full sentences to ease translation.
2909 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2911 * po/fr.po: Updated version.
2913 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2915 * po/es.po: Updated version.
2917 2002-01-25 Andreas Jaeger <aj@suse.de>
2919 * ldlex.l (yy_input): Correct error check.
2921 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2923 * ldmisc.c (demangle): Put back dots when string not demangled.
2925 2002-01-22 Richard Henderson <rth@redhat.com>
2927 * emulparams/elf64alpha.sh (NOP): Use unop.
2929 2002-01-21 Andreas Jaeger <aj@suse.de>
2931 * ldlex.l: Use fread instead of read.
2933 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2935 * configure.tgt (ia64-*-netbsd*): New target.
2937 2002-01-21 H.J. Lu <hjl@gnu.org>
2939 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2941 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2943 2002-01-18 Andreas Jaeger <aj@suse.de>
2945 * ldver.c (ldversion): Update year.
2947 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2949 * po/ld.pot: Regenerate.
2951 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2953 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2954 * Makefile.in: Regenerate.
2955 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2956 * emultempl/ppc64elf.em: New file.
2958 2002-01-15 DJ Delorie <dj@redhat.com>
2960 * scripttempl/pe.sc: Add support for constructor priorities.
2962 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2964 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2965 * emulparams/avr23xx.sh: Likewise.
2966 * emulparams/avr4433.sh: Likewise.
2967 * emulparams/avr44x4.sh: Likewise.
2968 * emulparams/avr85xx.sh: Likewise.
2969 * emulparams/avrmega103.sh: Likewise.
2970 * emulparams/avrmega161.sh: Likewise.
2971 * emulparams/avrmega603.sh: Likewise.
2972 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2974 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2976 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2977 archive is excluded.
2979 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2981 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2982 (eshelf_nbsd.c): New rule.
2983 (eshlelf_nbsd.c): New rule.
2984 * Makefile.in: Regenerate.
2985 * configure.tgt (sh*le-*-netbsdelf*): New target.
2986 (sh*-*-netbsdelf*): New target.
2987 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2988 * emulparams/shelf_nbsd.sh: New emulation.
2989 * emulparams/shlelf_nbsd.sh: New emulation.
2991 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2993 * po/es.po: New file: Spanish translation.
2994 * configure.in (ALL_LINGUAS): Add es.
2995 * configure: Regenerate.
2997 2002-01-06 John Marshall <jmarshall@acm.org>
2999 * ld.texinfo: Note that --emit-relocs is currently only
3000 implemented for ELF.
3002 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3004 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3005 of bfd_section_list_remove and bfd_section_list_insert macros.
3006 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3007 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3009 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3011 * configure.tgt (x86_64-*-netbsd*): New target.
3013 2001-12-21 Tom Rix <trix@redhat.com>
3015 (gld*_create_output_section_statements): New function.
3016 For -binitfini support.
3017 * emultempl/aix.em (gld*_before_parse): Fix comment.
3018 * emultempl/aix.em (gld*_parse_args): Fix comment.
3020 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3022 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3024 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3026 * configure.tgt (arm-*-netbsdelf*): Add target.
3027 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3028 * emulparams/armelf_nbsd.sh: Added.
3029 * Makefile.am: Add rules for earmelf_nbsd.
3030 * Makefile.in: Regenerate.
3032 2001-12-19 Andreas Jaeger <aj@suse.de>,
3033 Susanne Oberhauser <froh@suse.de>
3035 * configure.host: Add rules for x86_64-*linux-gnu. Change
3036 s390x-linux entry to use gcc to report configuration, replace gcc
3037 with $CC in s390-linux
3039 2001-12-19 Andreas Jaeger <aj@suse.de>
3041 * ld.texinfo (VERSION): Fix markup.
3043 2001-12-18 matthew green <mrg@eterna.com.au>
3045 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3046 (m68kelfnbsd.c): New rule.
3047 * Makefile.in: Regenerate.
3048 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3049 (m68*-*-netbsd*4k*): .. this.
3050 (m68*-*-netbsdelf*): New target.
3051 (m68*-*-netbsd*): Also include ELF support.
3052 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3053 * emulparams/m68kelfnbsd.sh: New emulation.
3055 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3057 * ldgram.y (vers_node): Support anonymous version tags.
3058 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3059 tag is not defined together with non-anonymous versions.
3060 * ld.texinfo: Document it.
3062 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3064 * po/tr.po: New file: Turkish translation.
3065 * configure.in (ALL_LINGUAS): Add tr.
3066 * configure: Regenerate.
3068 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3070 * Makefile.am: Add rules for eelf64alpha_nbsd.
3071 * Makefile.in: Regenerate.
3072 * configure.tgt (alpha*-*-netbsd*): Set
3073 targ_emul to elf64alpha_nbsd.
3074 * emulparams/elf64alpha_nbsd.sh: Added.
3076 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3078 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3079 section_tail when fiddling with section list.
3080 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3081 broken into separate strings to make translation easier.
3082 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3083 fiddling with section list.
3084 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3086 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3088 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3090 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3092 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3094 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3096 * emultempl/elf32.em (finish): Supply output_bfd
3097 to bfd_elf*_discard_info.
3098 (OPTION_EH_FRAME_HDR): Define.
3099 (longopts): Add --eh-frame-hdr.
3100 (parse_args): Handle it.
3101 (list_options): Add --eh-frame-hdr to help.
3102 * emultempl/hppaelf.em (finish): Supply output_bfd
3103 to bfd_elf*_discard_info.
3104 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3106 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3108 * lexsup.c (parse_args): Don't pass shortopts to second call to
3109 getopt functions. Restore optind rather than decrementing before
3110 second call. Remove errind as it now duplicates last_optind.
3112 2001-12-11 Christopher Faylor <cgf@redhat.com>
3114 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3116 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3117 Richard Henderson <rth@redhat.com>
3119 * Makefile.am: Add support for xstormy16.
3120 * configure.tgt: Add support for xstormy16.
3121 * Makefile.in: Regenerate.
3122 * emulparams/elf32xstormy16.sh: New file.
3123 * scripttempl/xstormy16.sc: New file.
3125 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3127 * Makefile.in (LIB_PATH): Make configurable.
3128 (GENSCRIPTS): Set LIB_PATH in environment.
3129 * configure.in: Substitute LIB_PATH.
3130 * configure: Regenerate.
3131 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3132 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3134 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3136 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3137 describing the -N option so that it is easier to translate into
3140 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3142 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3143 statements describing a single option with a single, newline
3144 escaped fprintf. This allows better translation into other
3147 * ldmain.c (add_archive_element): Combine multiple strings
3148 into a single string to permit better translation into other
3151 2001-12-05 Tom Rix <trix@redhat.com>
3153 * Makefile.am: Remove eaixppc64.
3154 * Makefile.in: Regenerate.
3156 2001-12-04 Tom Rix <trix@redhat.com>
3158 * emultempl/aix.em (choose_target): Change default target to
3159 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3161 (gld*_read_file): Fix typo.
3162 (change_symbol_mode): Add prototype.
3165 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3166 * emulparams/aixrs6.sh : Same.
3167 * emulparams/ppcmacos.sh : Same.
3168 * emulparams/aixppc64.sh : Delete file.
3169 * emultempl/aix.em : Formatting changes.
3171 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3173 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3174 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3176 (OTHER_END_SYMBOLS): Fix formatting.
3177 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3178 (OTHER_END_SYMBOLS): Fix formatting.
3180 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3182 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3184 2001-12-02 Tom Rix <trix@redhat.com>
3186 * configure.tgt : Remove eaixppc64 emulations.
3187 * Makefile.in : Remove eaixppc64.c
3188 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3189 (ldemul_default_target): Same.
3190 * emultempl/gld960.em (gld960_choose_target): Same.
3191 * emultempl/gld960c.em (gld960_choose_target): Same.
3192 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3193 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3194 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3195 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3196 * emultempl/aix.em (choose_target): New function. Handle emulation of
3199 2001-11-27 H.J. Lu <hjl@gnu.org>
3201 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3202 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3203 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3204 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3205 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3206 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3207 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3208 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3210 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3213 (REL_SDATA): Likewise.
3214 (REL_SBSS): Likewise.
3215 (REL_SDATA2): Likewise.
3216 (REL_SBSS2): Likewise.
3217 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3220 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3222 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3224 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3226 2001-11-22 H.J. Lu <hjl@gnu.org>
3228 * Makefile.in: Regenerated with automake based on automake
3229 1.4-8 in RedHat 7.1.
3231 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3233 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3234 (config.status): Delete rule.
3235 Add extra dependencies to cover sourced emulparams files.
3236 * Makefile.in: Regenerate.
3238 * scripttempl/elf.sc: Order <section>, <section>.* and
3239 corresponding linkonce sections as seen in input files.
3240 Formatting fixes. Zero vma of all sections if not relocating.
3241 (STACK): Define and insert if STACK_ADDR defined.
3242 (OTHER_RELOCATING_SECTIONS): Delete.
3243 (OTHER_END_SYMBOLS): Define.
3244 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3245 (OTHER_READWRITE_SECTIONS): Likewise.
3246 (OTHER_GOT_SECTIONS): Likewise.
3247 (OTHER_SDATA_SECTIONS): Likewise.
3248 (OTHER_BSS_SECTIONS): Likewise.
3249 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3250 (OTHER_READWRITE_SECTIONS): Likewise.
3251 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3252 (OTHER_READWRITE_SECTIONS): Likewise.
3254 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3255 (STACK_ADDR): Define.
3256 * emulparams/armelf_oabi.sh: As for armelf.sh.
3257 * emulparams/elf32mcore.sh: As for armelf.sh.
3258 * emulparams/h8300elf.sh: As for armelf.sh.
3259 * emulparams/mn10200.sh: As for armelf.sh.
3260 * emulparams/shelf.sh: As for armelf.sh.
3262 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3263 (OTHER_END_SYMBOLS): Define.
3264 * emulparams/m32relf.sh: As for elf32fr30.sh.
3265 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3266 * emulparams/h8300self.sh: As for elf32fr30.sh.
3268 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3269 defines with RELOCATING test.
3270 (OTHER_SDATA_SECTIONS): Likewise.
3271 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3272 (OTHER_END_SYMBOLS): ..this.
3273 * emulparams/crislinux.sh: As for criself.sh.
3275 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3277 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3278 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3279 normal and linkonce sections as seen in input files.
3280 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3281 (TEXT_DYNAMIC): Likewise.
3282 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3283 (OTHER_SDATA_SECTIONS): Likewise.
3284 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3285 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3286 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3287 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3288 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3289 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3290 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3291 sections as seen in input files.
3292 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3293 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3295 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3296 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3297 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3298 (OTHER_SECTIONS): Instead, use this..
3299 (OTHER_END_SYMBOLS): ..and this.
3301 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3302 * emulparams/elf32bsmip.sh: Likewise.
3303 * emulparams/elf32btsmip.sh: Likewise.
3304 * emulparams/elf32ebmip.sh: Likewise.
3305 * emulparams/elf32lmip.sh: Likewise.
3306 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3307 * emulparams/elf32lsmip.sh: Likewise.
3308 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3309 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3310 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3311 * emulparams/elf64btsmip.sh: Likewise.
3312 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3313 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3314 * emulparams/elf32ppclinux.sh: Likewise.
3315 * emulparams/elf32ppcsim.sh: Likewise.
3316 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3317 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3318 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3319 * emulparams/h8300self.sh: Likewise.
3320 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3321 * emulparams/sh.sh: Comment.
3322 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3323 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3324 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3326 2001-11-21 David Heine <dlheine@tensilica.com>
3327 Alan Modra <amodra@bigpond.net.au>
3329 * ldlang.c (map_input_to_output_sections): Replace "break"
3330 accidentally removed with 2001-08-03 change.
3331 (lang_gc_sections_1): Likewise.
3333 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3335 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3337 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3339 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3340 of false when calling lang_size_sections.
3341 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3343 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3345 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3346 function when LDEMUL_FINISH isn't set to the same name. Don't
3347 call ${LDEMUL_FINISH}.
3348 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3349 * emultempl/armelf.em (arm_elf_finish): Call
3350 gld${EMULATION_NAME}_finish.
3351 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3352 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3353 hppaelf_layout_sections_again if necessary.
3354 (need_laying_out): New var.
3355 (hppaelf_layaout_sections_again): Rename to
3356 hppaelf_layout_sections_again. Clear need_laying_out.
3357 (PARSE_AND_LIST_OPTIONS): Format text.
3359 2001-11-14 H.J. Lu <hjl@gnu.org>
3361 * emultempl/armelf.em (arm_elf_finish): Renamed from
3362 gld${EMULATION_NAME}_finish.
3363 (LDEMUL_FINISH): Set to arm_elf_finish.
3365 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3367 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3368 (struct ld_emulation_xfer_struct): Use it.
3370 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3372 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3373 additional symbols referenced by newer crt0.o files from HP.
3375 2001-11-12 Anthony Green <green@redhat.com>
3377 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3379 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3381 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3382 * Makefile.in: Regenerate.
3384 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3386 * ld.texinfo: Use @command for commands, @option for options.
3387 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3389 * Makefile.in: Rebuild.
3391 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3393 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3394 Add support for targets.
3396 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3398 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3399 * configure: Regernate.
3400 * po/fr.po: New file.
3401 * po/sv.po: New file.
3403 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3405 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3406 as little endian default and to support big endian.
3408 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3410 * ld.texinfo (Options): Document new option, -nostdlib.
3411 * lexsup.c (OPTION_NOSTDLIB): New definition.
3412 (ld_options): Add entry for "nostdlib".
3413 (parse_args): Handle OPTIONS_NOSTDLIB.
3414 * ldfile.c (ldfile_add_library_path): Don't add directories
3415 to the search path if they weren't specified on the command line
3416 and -nostdlib was specified.
3417 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3419 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3421 * lexsup.c (parse_args): Prevent infinite parsing loop when
3422 "-rpath.a" is specified on the command line.
3423 Replace calls to fprintf with calls to einfo.
3425 2001-10-31 John Marshall <jmarshall@acm.org>
3427 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3428 appear only once across all the linker scripts involved in a link
3429 invocation no longer applies. Make the documentation reflect
3432 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3434 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3436 (sh-*-linux*): Added targ_extra_libpath.
3438 2001-10-31 David Heine <dlheine@tensilica.com>
3440 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3441 for padding statements.
3443 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3445 * configure.tgt (mmix-*-*): New target.
3446 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3447 Add dependencies to match.
3448 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3449 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3450 scripttempl/mmo.sc: New files.
3451 * gen-doc.texi: @set MMIX.
3452 * ld.texinfo: Ditto.
3453 [MMIX] Add MMIX node.
3454 * Makefile.in: Regenerate.
3456 2001-10-29 Kazu Hirata <kazu@hxi.com>
3458 * ldlang.c: Fix a comment typo.
3460 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3462 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3463 entries, and match *-*-linux*.
3465 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3467 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3468 with ldlex_script, ldlex_popstate.
3469 (ifile_p1): Likewise.
3470 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3472 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3473 to 1. Don't BEGIN(SCRIPT).
3474 (lex_redirect): Similarly.
3475 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3477 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3479 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3480 __EH_FRAME_END__ and accept eh frames into data section.
3481 Add ctor and dtor sections.
3483 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3485 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3486 (auto-export): Fix indentation.
3488 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3490 * pe-dll.c (autofilter_objectlist): Add startup objects
3492 (auto-export): Constify char * p.
3493 Extract file basename and use strcmp rather than ststr
3496 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3498 * ldmain.c (get_emulation): Improve comment about the handling
3501 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3503 * po/POTFILES.in: Regenerate.
3505 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3507 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3508 -z nocopyreloc and -z nocombreloc usage strings.
3510 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3512 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3515 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3517 * scripttempl/armaout.sc: Place .bss section after end of aligned
3518 data section to match behaviour of aout code in constructrion of
3521 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3523 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3524 startup files for mingw32 dlls to list.
3526 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3528 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3530 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3532 * configure.tgt (targ): Add arm9e-*-elf.
3534 2001-10-05 H.J. Lu <hjl@gnu.org>
3536 * genscripts.sh: Fix a typo in the last change.
3538 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3540 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3541 -z nocombreloc in usage.
3543 2001-10-03 Jim Blandy <jimb@redhat.com>
3545 * genscripts.sh: Include a comment at the top of each generated
3546 script, explaining its purpose.
3548 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3550 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3551 * NEWS: Mention -z nocopyreloc.
3552 * ld.texinfo (Options): Describe nocopyreloc.
3554 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3556 * configure: Regenerate.
3558 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3560 * ldver.h (ld_program_version): Remove declaration.
3561 * lexsup.c (parse_args): Move printing of copyright message..
3562 * ldver.c (ldversion): .. to here.
3563 Use BFD_VERSION_STRING in place of BFD_VERSION.
3564 (ld_program_version): Remove.
3565 * Makefile.am (Makefile): Depend on bfd/configure.in.
3567 * Makefile.in: Regenerate.
3569 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3571 * Makefile.am: Update dependencies with "make dep-am".
3572 * Makefile.in: Regenerate.
3574 2001-09-29 John Reiser <jreiser@BitWagon.com>
3576 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3577 * lexsup.c: Add --no-define-common commandline option.
3578 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3579 * ldlex.l: Likewise.
3580 * ld.h: Add command_line.inhibit_common_definition.
3581 * ldmain.c (main): Initialize.
3582 * ld.texinfo: Document.
3584 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3586 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3588 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3590 * ldmisc.c (USE_STDARG): Remove.
3591 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3596 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3597 declarations. Update copyright.
3599 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3601 * pe-dll.c: Remove obsoleted declaration of
3602 pe_get_data_import_dll_name.
3603 (pe_create_import_fixup): Fix thinko.
3605 * ld.texinfo(enable-auto-import): Clarify the explanation.
3607 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3609 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3610 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3611 DLL_SUPPORT controlled code.
3613 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3615 * emultempl/pe.em(pe_data_import_dll): Make static.
3616 (pe_get_data_import_dll_name): New accessor function.
3617 * pe-dll.c(pe_create_import_fixup): call
3618 pe_get_data_import_dll_name() from pe.em, instead of
3619 directly accessing pe_data_import_dll variable from pe.em.
3621 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3623 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3624 (def_file_add_directive): Use ISSPACE instead of isspace.
3625 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3626 isdigit/isxdigit/isalpha/isalnum.
3627 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3628 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3629 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3630 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3632 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3633 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3635 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3636 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3637 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3638 (ctor_prio): Use ISDIGIT instead of isdigit.
3639 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3640 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3641 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3643 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3644 (stricpy): Use TOLOWER instead of isupper/tolower.
3645 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3646 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3647 (lex_warn_invalid): Use ISPRINT instead of isprint.
3648 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3649 (main): For gettext, also set the LC_CTYPE locate facet.
3650 (add_keepsyms_file): Use ISSPACE instead of isspace.
3651 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3652 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3653 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3654 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3655 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3656 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3657 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3658 (quoteput): Use ISSPACE instead of isspace.
3659 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3662 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3664 * deffilep.y (def_stash_module): Constify "name" param.
3666 * pe-dll.c: Replace CONST with const throughout.
3667 (quick_symbol): Constify "n1", "n2", "n3" params.
3668 (make_singleton_name_thunk): Constify "import" param. Make
3669 "buffer_len" a size_t.
3670 (make_import_fixup_entry): Constify "name", "fixup_name",
3671 "dll_symname" params.
3672 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3673 (pe_get32): Likewise.
3674 (pe_implied_import_dll): Likewise.
3676 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3677 (sort_by_section_name): Likewise.
3679 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3680 (make_import_fixup): Cast printf arg, rel->address to long rather
3682 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3684 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3686 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3687 defines BufferSize. Increase buffer size by one.
3689 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3691 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3693 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3695 * configure.tgt: Add arm-openbsd target.
3697 2001-09-12 H.J. Lu <hjl@gnu.org>
3699 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3701 (ALL_64_EMULATIONS): Here.
3702 * Makefile.in: Regenerated.
3704 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3706 * emultempl/pe.em(make_import_fixup): change signature to
3707 take asection as well as arelec; we need this for proper
3708 error reporting. Only call pe_create_import_fixup() if
3709 there is no attempt to add a constant addend to the reloc;
3710 otherwise, report error condition.
3711 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3712 since final argument is a pointer to make_import_fixup().
3713 Change call to cb() to match make_import_fixup() signature.
3714 (make_import_fixup_mark): make buffer_len unsigned.
3715 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3717 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3719 * ld.texinfo: add verbose documentation for auto-import
3720 direct-addressing workaround, to compliment the terse
3723 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3725 * scripttempl/v850.sc: Add gcc_except_table sections.
3727 2001-09-11 Jeffrey A Law (law@cygnus.com)
3729 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3730 * emulparams/h8300self.sh: Similarly.
3732 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3734 * ld.texinfo (Options, --stack): Correct default value for stack
3737 2001-09-05 Tom Rix <trix@redhat.com>
3739 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3741 2001-09-03 Andreas Jaeger <aj@suse.de>
3743 * emultempl/beos.em: Declare prototypes for comparions functions,
3746 2001-09-02 Andreas Jaeger <aj@suse.de>
3748 * emultempl/aix.em: Add missing prototype.
3749 * emultempl/lnk960.em: Likewise.
3750 * emultempl/vanilla.em: Likewise.
3751 * emultempl/armcoff.em: Likewise.
3752 * emultempl/armelf_oabi.em: Likewise.
3753 * emultempl/beos.em: Likewise.
3754 * emultempl/gld960c.em: Likewise.
3755 * emultempl/gld960.em: Likewise.
3757 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3758 for prototype declaration.
3760 2001-08-31 Eric Christopher <echristo@redhat.com>
3761 Jason Eckhardt <jle@redhat.com>
3763 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3765 2001-08-31 Andreas Jaeger <aj@suse.de>
3767 * emultempl/pe.em: Add missing prototypes.
3768 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3769 pe_find_data_imports.
3770 (pr_sym): Add unused attribute.
3772 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3774 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3775 default from coff to elf.
3777 2001-08-29 Jeff Law <law@redhat.com>
3779 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3781 * emulparams/h8300self.sh: Similarly.
3783 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3785 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3787 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3788 * configure.tgt (h8300-*-elf*): New case.
3789 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3790 * emulparams/h8300self.sh: New file.
3791 * Makefile.in: Regenerated.
3793 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3795 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3798 2001-08-27 Linus Nordberg <linus@swox.com>
3799 Alan Modra <amodra@bigpond.net.au>
3801 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3802 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3804 * Makefile.in: Regenerate.
3805 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3806 entries to correct alphabetical position.
3807 * emulparams/elf64ppc.sh: New.
3808 * emulparams/elf64lppc.sh: New.
3810 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3812 * ldmain.c (main): Declare BSIZE as static.
3814 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3816 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3817 into .rel.dyn resp. .rela.dyn if combreloc.
3818 (get_script): If .x linker script is equal to .xn, only put it
3819 once into the binary.
3820 Add .xc and .xsc scripts.
3821 (parse_args): Handle -z combreloc and -z nocombreloc.
3822 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3823 For .xc and .xsc scripts put all .rel* or .rela* input sections
3824 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3825 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3827 Strip trailing whitespace from script.
3828 Generate .xc and .xsc scripts if requested.
3829 * ldmain.c (main): Initialize link_info.combreloc and
3830 link_info.spare_dynamic_tags.
3831 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3832 (ld_options): Add --spare-dynamic-tags option.
3833 (parse_args): Likewise.
3834 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3835 * ldint.texinfo: Document .xc and .xsc linker scripts.
3836 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3838 2001-08-22 H.J. Lu <hjl@gnu.org>
3840 * emulparams/elf32fr30.sh: Add a newline.
3842 2001-08-21 Andreas Jaeger <aj@suse.de>
3844 * deffilep.y: Add missing prototypes.
3845 * pe-dll.c: Likewise.
3847 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3849 * ldlang.c (insert_pad): Fix typos in last patch.
3851 * ldlang.c: When traversing lang_statement_union_type lists,
3852 consistently use "header.next" rather than "next".
3853 * mpw-eppcmac.c: Likewise.
3854 * emultempl/beos.em: Likewise.
3855 * emultempl/hppaelf.em: Likewise.
3856 * emultempl/pe.em: Likewise.
3857 * ldlang.h (union lang_statement_union): Remove "next" field.
3859 * ldlang.c (insert_pad): Use offsetof macro.
3860 (lang_size_sections): Always neuter padding statements.
3861 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3863 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3864 passed to lang_size_sections.
3865 (pe_exe_fill_sections): Likewise.
3866 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3867 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3869 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3871 * emultempl/aix.em: Formatting fixes.
3873 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3875 * ldlang.c (insert_pad): Make use of an existing pad statement if
3876 available. Move code calculating alignment, adjusting section
3877 alignment power, and adjusting dot to ..
3878 (size_input_section): .. here. Remove unused relax param.
3879 (lang_size_sections): Change boolean `relax' param to boolean *.
3880 Adjust call to size_input_section. Make use of insert_pad to
3881 place pad after the assignment statement. If relaxing, zap
3883 (reset_memory_regions): Reset output_bfd section sizes too.
3884 (relax_again): Move to..
3885 (lang_process): ..here. Adjust call to lang_size_sections, and
3886 remove duplicated code.
3887 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3889 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3891 * ld.texinfo: Document that fill values now use the four least
3893 * emulparams/elf32fr30.sh (NOP): Update.
3894 * emulparams/elf32mcore.sh: Likewise.
3895 * emulparams/elf64_s390.sh: Likewise.
3896 * emulparams/elf_i386.sh: Likewise.
3897 * emulparams/elf_i386_be.sh: Likewise.
3898 * emulparams/elf_i386_chaos.sh: Likewise.
3899 * emulparams/elf_i386_ldso.sh: Likewise.
3900 * emulparams/elf_s390.sh: Likewise.
3901 * emulparams/elf_x86_64.sh: Likewise.
3902 * emulparams/i386moss.sh: Likewise.
3903 * emulparams/i386nw.sh: Likewise.
3904 * emulparams/m68kelf.sh: Likewise.
3905 * scripttempl/elf.sc: Update NOP comment.
3906 * scripttempl/elfi370.sc: Likewise.
3907 * scripttempl/elfm68hc11.sc: Likewise.
3908 * scripttempl/elfm68hc12.sc: Likewise.
3909 * scripttempl/nw.sc: Likewise.
3911 2001-08-15 Tom Rix <trix@redhat.com>
3913 * ldgram.y (saved_script_handle): Initialize to NULL.
3914 * ldmain.c (main): Change check on saved_script_handle.
3916 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3918 * emultempl/elf32.em: Formatting fixes.
3919 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3920 looking at sec->owner.
3921 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3922 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3923 unused code, and reorganize orphan section placement code.
3925 * ldlang.c (wild_doit): Rename to lang_add_section.
3926 * ldlang.h: Here too.
3927 * mpw-elfmips.c: And here.
3928 * emultempl/beos.em: And here.
3929 * emultempl/elf32.em: And here.
3930 * emultempl/hppaelf.em: And here.
3931 * emultempl/pe.em: And here.
3933 2001-08-13 Richard Henderson <rth@redhat.com>
3935 * emultempl/needrelax.em: New file.
3936 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3937 * Makefile.am (eelf64_ia64.c): Depend on it.
3938 * Makefile.in: Rebuild.
3940 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3942 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3943 output_section is set non-NULL.
3945 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3946 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3947 needlessly create an output_section_statement. Treat a correctly
3948 named output_section_statement with NULL bfd_section as compatible.
3950 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3952 * emultempl/generic.em: Support EXTRA_EM_FILE.
3953 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3954 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3955 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3956 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3957 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3958 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3959 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3960 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3961 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3962 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3964 2001-08-12 Richard Henderson <rth@redhat.com>
3966 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3967 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3968 scripttempl/v850.sc: Keep .jcr data.
3970 2001-08-12 H.J. Lu <hjl@gnu.org>
3971 Andrew Haley <aph@cambridge.redhat.com>
3972 Nick Clifton <nickc@redhat.com>
3974 * ldgram.y (had_script): Change name to saved_script_handle.
3975 Change type to file handle.
3976 * ld.h (had_script): Rename and retype.
3977 * ldfile.c (ldfile_open_command_file): Save the file handle
3978 used in saved_script_handle.
3979 * lexsup.c (parse_args): Do not allow -c option to alter
3980 saved_script_handle.
3981 * ldmain.c (main): Print out the linker script used if
3982 --verbose is given. Check saved_script_handle to obtain the
3983 external linker script used, or if NULL, dump the builtin
3985 * ld.texinfo: Document that --verbose now dumps the linker
3986 script used, regardless of whether it was an internal or an
3989 2001-08-10 Andreas Jaeger <aj@suse.de>
3991 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3993 * configure: Regenerate.
3995 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3997 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3999 * scripttempl/elf.sc: Move non-text .dynamic section before
4000 .plt/.got/.sdata* group.
4001 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4002 (OTHER_SDATA_SECTIONS): Add.
4003 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4005 * emulparams/crislinux.sh: Likewise.
4006 * emulparams/elf32b4300.sh: Likewise.
4007 * emulparams/elf32bmip.sh: Likewise.
4008 * emulparams/elf32bmipn32.sh: Likewise.
4009 * emulparams/elf32bsmip.sh: Likewise.
4010 * emulparams/elf32btsmip.sh: Likewise.
4011 * emulparams/elf32ebmip.sh: Likewise.
4012 * emulparams/elf32elmip.sh: Likewise.
4013 * emulparams/elf32l4300.sh: Likewise.
4014 * emulparams/elf32lmip.sh: Likewise.
4015 * emulparams/elf32lsmip.sh: Likewise.
4016 * emulparams/elf32ltsmip.sh: Likewise.
4017 * emulparams/elf64bmip.sh: Likewise.
4018 * emulparams/elf64btsmip.sh: Likewise.
4019 * emulparams/elf64ltsmip.sh: Likewise.
4021 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4023 * genscripts.sh: Source the emulparams script before each output
4024 script is generated so that variables like `RELOCATING' may affect
4025 variables defined in the emulparams script.
4027 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4029 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4032 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4033 ie. iterate over wild_statement.section_list.
4034 (gld${EMULATION_NAME}_place_orphan): Likewise.
4036 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4038 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4039 .fini[0-4] sections used by _exit
4040 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4041 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4042 * scripttempl/elfm68hc11.sc: Likewise.
4044 2001-08-03 H.J. Lu <hjl@gnu.org>
4046 * emultempl/beos.em (init): Add the missing initialization.
4048 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4050 * ld.texinfo (Input Section Basics): Clarify ordering of output
4052 * ldlang.c (callback_t): Add wildcard_list param.
4053 (walk_wild_section): Remove "section" param. Rewrite for
4054 lang_wild_statement_type change. Remove unique_section_p test.
4055 (walk_wild_file): Remove "section" param.
4056 (walk_wild): Remove "section" and "file" params.
4057 (lang_gc_wild): Likewise.
4058 (wild): Likewise. Modify for lang_wild_statement_type change.
4059 (wild_sort): Likewise. Add "sec" param.
4060 (gc_section_callback): Likewise.
4061 (output_section_callback): Likewise. Do unique_section_p test.
4062 (map_input_to_output_sections): Modify call to wild.
4063 (lang_gc_sections_1): Likewise.
4064 (print_wild_statement): Modify for lang_wild_statement_type
4066 (lang_add_wild): Replace filename, filenames_sorted param with
4067 filespec. Replace section_name, sections_sorted,
4068 exclude_filename_list with section_list.
4069 * ldlang.h (lang_add_wild): Here too.
4070 (lang_wild_statement_type): Replace section_name, sections_sorted,
4071 and exclude_filename_list with section_list.
4072 * ldgram.y (current_file): Delete.
4073 (%union): Add wildcard_list.
4074 (file_NAME_list): Set type to wildcard_list. Build a linked list
4075 rather than calling lang_add_wild for each entry.
4076 (input_section_spec_no_keep): Call lang_add_wild here instead.
4077 * ld.h (struct wildcard_list): Declare.
4078 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4080 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4082 * ldmain.c (main): initialize link_info.pei386_auto_import
4083 * pe-dll.c: new tables for auto-export filtering
4084 (auto_export): change API, pass abfd for contextual filtering.
4085 Loop thru tables of excluded symbols instead of comparing
4088 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4090 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4091 static variable current_sec (static struct sec *). Add
4092 forward declaration for add_bfd_to_link.
4093 (process_def_file): Don't export undefined symbols. Do not
4094 export symbols starting with "_imp__". Call auto_export()
4096 (pe_walk_relocs_of_symbol): New function.
4097 (generate_reloc): add optional extra debugging
4098 (pe_dll_generate_def_file): eliminate extraneous initial blank
4100 (make_one): enlarge symtab to make room for __nm__ symbols
4101 (DATA auto-import support).
4102 (make_singleton_name_thunk): New function.
4103 (make_import_fixup_mark): New function.
4104 (make_import_fixup_entry): New function.
4105 (pe_create_import_fixup): New function.
4106 (add_bfd_to_link): Specify that 'name' argument is a CONST
4108 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4109 declare new functions pe_walk_relocs_of_symbol and
4110 pe_create_import_fixup.
4111 * emultempl/pe.em: add new options --enable-auto-import,
4112 --disable-auto-import, and --enable-extra-pe-debug.
4113 (make_import_fixup): New function.
4114 (pe_find_data_imports): New function.
4115 (pr_sym): New function.
4116 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4117 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4120 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4122 * ld.texinfo: add additional documentation for
4123 --export-all-symbols. Document --out-implib,
4124 --enable-auto-image-base, --disable-auto-image-base,
4125 --dll-search-prefix, --enable-auto-import, and
4126 --disable-auto-import.
4127 * ldint.texinfo: Add detailed documentation on auto-import
4130 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4132 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4135 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4137 * Makefile.am: Update dependencies with "make dep-am".
4138 * Makefile.in: Regenerate
4140 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4142 * ldcref.c (check_section_sym_xref): New function.
4143 (check_nocrossrefs): Call it.
4144 (check_nocrossref): Interate over h->refs here instead of..
4145 (check_refs): ..here. Pass in the symbol name, section, and bfd
4146 rather than hash_entry pointers.
4147 (struct check_refs_info): Keep symbol name rather than hash entry.
4149 (check_reloc_refs): Tweak for above changes in check_refs_info.
4150 Only report references to section syms when symname is NULL to
4151 prevent duplicate messages for the same reloc.
4153 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4155 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4156 available. Do not print NULL trees.
4157 (exp_print_token): Print unknown tokens with values > 126 as
4158 decimal values not ASCII characters.
4160 * ldlang.c (lang_leave_overlay): If a region is specified assign
4161 it to all sections inside the overlay unless they have been
4162 assigned to the own, non-default, memory region.
4164 * README: Add header for consistency with other README files.
4166 2001-07-14 H.J. Lu <hjl@gnu.org>
4168 * emultempl/elf32.em (output_prev_sec_find): Never return
4169 bfd_abs_section_ptr, bfd_com_section_ptr nor
4170 bfd_und_section_ptr.
4172 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4174 * Makefile.am (em32relf.c): Change dependency from generic.em to
4176 * Makefile.in: Regenerate.
4178 2001-07-14 matthew green <mrg@eterna.com.au>
4180 * configure.tgt (i386-*-netbsdelf*): New target.
4181 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4183 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4185 * emultempl/elf32.em (output_prev_sec_find): New.
4186 (place_orphan): Use it.
4188 2001-07-11 H.J. Lu <hjl@gnu.org>
4190 * ldmain.c (main): Fix typos in the last change.
4192 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4194 * ldmain.c (main): Disallow -F and -f without -shared.
4196 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4198 * emultempl/pe.em (after_open): Check for the output_bfd not
4199 having any coff_data structure allocated to it.
4201 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4203 * emultempl/elf32.em: Do not assuming that contents of the buffer
4204 returned from basename function will remain unchanged accross other
4207 2001-07-03 H.J. Lu <hjl@gnu.org>
4209 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4210 2001-07-03. It creates dynamic entries even for static binaries.
4212 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4214 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4215 (DYNAMIC): Use it to reserve few dynamic entries for
4218 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4220 * emulparams/hppa64linux.sh: New file.
4221 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4222 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4223 (ehppa64linux.c): Add rule to make it.
4225 * Makefile.in: Regenerate.
4227 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4229 * ld.texinfo (Options, -r): Mention restrictions when using
4230 different object formats.
4232 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4234 * ldlang.c (lang_check): Emit fatal error if relocatable link
4235 between different object flavours with relocations in input.
4237 2001-06-19 H.J. Lu <hjl@gnu.org>
4239 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4240 (--version-script): Mention the language support.
4242 2001-06-19 H.J. Lu <hjl@gnu.org>
4244 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4246 2001-06-18 H.J. Lu <hjl@gnu.org>
4248 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4249 (diststuff): Add $(MANS).
4250 * Makefile.in: Regenerated.
4254 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4256 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4257 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4258 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4259 * ld.h (args_type): Remove member export_dynamic. All users
4260 changed to use struct bfd_link_info member.
4262 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4263 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4264 * Makefile.in: Regenerate.
4266 2001-06-18 H.J. Lu <hjl@gnu.org>
4268 * ldlang.c (init_os): Add the newline to the einfo call.
4269 (lang_check): Likewise.
4270 (lang_do_version_exports_section): Likewise.
4272 2001-06-15 H.J. Lu <hjl@gnu.org>
4274 * lexsup.c (parse_args); Save optind to report unrecognized
4277 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4279 * ldlang.c (lang_check): Emit fatal error if relocatable link
4280 between different object flavours.
4282 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4283 Set new link_info member export_dynamic.
4284 * ldmain.c (main): Initialize new link_info member export_dynamic.
4286 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4288 * ldlang.c (walk_wild): Only call walk_wild_file if
4289 lookup_name returns something.
4290 (lookup_name): If load_symbols fails, return NULL.
4291 (load_symbols): Change to a boolean function.
4292 (open_input_bfds): If load_symbols fails then do not make the
4295 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4297 * ldlang.c (record_bfd_errors): Remove.
4299 * emultempl/aix.em: Fix copyright dates.
4301 2001-06-07 Andreas Jaeger <aj@suse.de>
4303 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4304 (TEXT_START_ADDR): Likewise.
4306 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4308 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4310 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4312 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4314 2001-05-31 H.J. Lu <hjl@gnu.org>
4316 * ldlang.c (open_input_bfds): Don't change the bfd error
4317 handler whilst loading symbols.
4319 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4321 * configure.tgt: Remove i370-mvs architecture, it is not currently
4324 2001-05-25 H.J. Lu <hjl@gnu.org>
4326 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4327 like emulparams/aixppc.sh.
4329 2001-05-25 H.J. Lu <hjl@gnu.org>
4331 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4332 setting of output_filename after bfd_scan_arch.
4333 * emultempl/pe.em: Likewise.
4335 2001-05-25 H.J. Lu <hjl@gnu.org>
4337 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4338 like emulparams/aixppc.sh.
4340 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4341 instead of ${srcdir}/emultempl/stringify.sed.
4343 2001-05-25 Timothy Wall <twall@oculustech.com>
4345 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4348 2001-05-25 Alan Modra <amodra@one.net.au>
4350 * configure.host: Replace linuxoldld with linux*oldld.
4351 * configure.tgt: Likewise.
4353 2001-05-24 H.J. Lu <hjl@gnu.org>
4355 * emultempl/stringify.sed: Removed again.
4357 2001-05-24 H.J. Lu <hjl@gnu.org>
4359 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4360 (gld${EMULATION_NAME}_before_parse): Initialize
4361 ldfile_output_architecture, ldfile_output_machine and
4362 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4363 * emultempl/beos.em: Likewise.
4364 * emultempl/elf32.em: Likewise.
4365 * emultempl/linux.em: Likewise.
4366 * emultempl/mipsecoff.em: Likewise.
4367 * emultempl/pe.em: Likewise.
4368 * emultempl/sunos.em: Likewise.
4370 2001-05-24 Tom Rix <trix@redhat.com>
4372 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4373 udate import file format.
4374 (change_symbol_mode) New, same
4375 (is_syscall) New, same
4376 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4377 * emulparams/aixppc64.sh : same
4378 * emulparams/aixrs6.sh : same
4379 * emulparams/ppcmacos.sh : same
4380 * emultempl/aix.em : use strtoull to parse options
4381 * Makefile.am : add eaixppc64 emulation for xcoff64
4382 * Makefile.in : same
4383 * configure.tgt : same
4385 * scripttempl/aix.sc : default text section offset to 0x10000000
4386 default data section offset to 0x20000000
4387 add .sv3264 and .sv64 pseudo sections
4388 loader and debug sections use the currect section offset.
4390 * emultempl/aix.em : Add xcoff64 support
4391 Add -binitfini support
4392 (gld${EMULATION_NAME}_before_parse) -binitfini
4393 (gld${EMULATION_NAME}_parse_args) same
4394 (gld${EMULATION_NAME}_before_allocation) format change for special
4397 * emulparams/aixppc64.sh : New file for xcoff64 support
4399 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4401 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4402 variable to avoid non-portable shell construct.
4404 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4406 * ldmain.c (get_emulation): Add -mips5 command line argument.
4408 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4410 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4411 (ELF_INTERPRETER_NAME): Define it.
4412 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4414 * configure.tgt (targ_emul, targ_extra_emuls)
4415 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4416 as primary, elf_i386 as extra.
4417 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4418 (eelf_i386_ldso.c): New rule.
4419 * Makefile.in: Rebuilt.
4421 2001-05-22 Nick Clifton <nickc@redhat.com>
4423 * lexsup.c (ld_options): Allow -I to be an alias for
4424 --dynamic-linker. This is for Solaris compatability.
4425 * ld.texinfo: Document that -I can be used.
4428 2001-05-16 Alan Modra <amodra@one.net.au>
4430 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4431 whether an input section is the first one assigned to an output
4433 Assorted formatting fixes.
4435 2001-05-14 DJ Delorie <dj@delorie.com>
4437 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4438 * Makefile.in: Ditto.
4440 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4442 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4443 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4445 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4447 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4449 * ldlang.c (lang_process): Call bfd_merge_sections.
4451 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4453 * ldgram.y: Fix typo.
4455 2001-05-03 H.J. Lu <hjl@gnu.org>
4457 * emultempl/elf32.em: Include "libiberty.h".
4458 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4459 basename of the bfd filename.
4460 (gld${EMULATION_NAME}_stat_needed): Likewise.
4461 (gld${EMULATION_NAME}_try_needed): Likewise.
4462 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4464 2001-05-02 H.J. Lu <hjl@gnu.org>
4466 * emultempl/pe.em: Include <ctype.h>.
4468 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4470 * emulparams/elf32openrisc.sh: New file.
4472 * Makefile.am: Add OpenRISC target.
4473 * Makefile.in: Regenerated.
4475 * configure.tgt: Add openrisc-*-* mapping.
4477 2001-05-02 Nick Clifton <nickc@redhat.com>
4479 * emultempl/aix.em: Replace buystring with xstrdup.
4480 * emultempl/beos.em: Replace buystring with xstrdup.
4482 2001-05-02 H.J. Lu <hjl@gnu.org>
4484 * ldfile.c: Include "libiberty.h".
4485 * ldlex.l: Likewise.
4487 * ldmisc.c (buystring): Removed.
4488 * ldmisc.h: Likewise.
4490 * ldfile.c: Replace buystring with xstrdup.
4491 * ldlang.c: Likewise.
4492 * ldlex.l: Likewise.
4493 * ldmain.c: Likewise.
4494 * ldmisc.c: Likewise.
4495 * lexsup.c: Likewise.
4496 * mpw-eppcmac.c: Likewise.
4498 2001-04-30 Andreas Jaeger <aj@suse.de>
4500 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4502 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4504 * ldlang.c (load_symbols): Give emulation a chance
4505 to process unrecognized file before fatal error is
4506 reported, not after.
4508 2001-04-27 Sean McNeil <sean@mcneil.com>
4510 * configure.tgt: Add arm-vxworks target.
4511 * scripttempl/armcoff.sc: Support .text or .data as a section name
4515 2001-04-13 J.T. Conklin <jtc@redback.com>
4517 * ld.texinfo: Document --fatal-warnings.
4520 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4521 warnings have been turned into errors.
4522 * lexsup.c (OPTION_WARN_FATAL): Define.
4523 (ld_options): Entry for --fatal-warnings.
4524 (parse_args): Handle OPTION_WARN_FATAL.
4525 * ld.h (ld_config_type): Add fatal_warnings field.
4527 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4529 * ldmain.c (main): Default to discard_sec_merge.
4530 * lexsup.c (OPTION_DISCARD_NONE): Define.
4531 (ld_options): Add --discard-none.
4532 (parse_args): Handle OPTION_DISCARD_NONE.
4533 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4534 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4535 all its input sections match.
4537 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4539 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4540 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4541 (eelf32ltsmip.c): New target.
4542 (eelf64btsmip.c): Likewise.
4543 (eelf64ltsmip.c): Likewise.
4544 * Makefile.in: Regenerated.
4546 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4548 (mips*-*-linux-gnu*): Likewise.
4550 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4552 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4554 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4557 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4559 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4560 correct value of __Stext here.
4561 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4564 * emulparams/crislinux.sh: Remove FIXME.
4566 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4568 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4569 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4571 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4573 * configure.tgt (cris-*-*): Change default emulation to criself.
4574 (cris-*-*aout*): New rule.
4576 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4578 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4579 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4581 2001-03-26 Andreas Jaeger <aj@suse.de>
4583 * ld.texinfo (Overview): Fix syntax in texi code.
4585 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4587 * ld.texinfo: Put @c man indications to generate the ld man page.
4588 When generating man, define all the variables. Define SEEALSO
4589 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4590 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4591 (ld.1): Generate from ld.texinfo.
4592 * Makefile.in: Regenerate.
4594 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4596 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4597 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4599 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4601 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4602 is an absolute path look only for this file and not along the path.
4604 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4606 * emultempl/elf32.em (OPTION_GROUP): New macro.
4607 Add new option Bgroup to longopts.
4608 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4609 (gld*_list_options): Add -Bgroup and -z defs.
4610 * ld.1: Document -Bgroup and -z defs.
4611 * ld.texinfo: Likewise.
4613 2001-03-07 Michael Meissner <meissner@redhat.com>
4615 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4616 with sections created by -fdata-sections.
4617 (.dynbss,.bss): Ditto.
4619 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4621 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4622 after_allocation_default, not gld..._before_allocation.
4624 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4626 * configure.in (BFD_VERSION): New.
4627 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4628 * configure: Regenerate.
4629 * Makefile.am: Run "make dep-am"
4630 * Makefile.in: Regenerate.
4632 2001-02-26 Timothy Wall <twall@cygnus.com>
4634 * emulparams/elf64_aix.sh: Add additional read-only sections;
4635 uncomment lines which are now required.
4637 2001-02-26 H.J. Lu <hjl@gnu.org>
4639 * ldlang.c (open_input_bfds): Set the bfd error handler so
4640 that problems can be caught whilst loading symbols.
4641 (record_bfd_errors): New function: Report BFD errors and mark
4642 the executable output as being invalid.
4644 2001-02-22 Timothy Wall <twall@cygnus.com>
4646 * configure.host: Add configuration for ia64-*-aix*.
4647 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4648 Add dependencies for eelf64_aix.c.
4649 * Makefile.in: Regenerate.
4650 * configure.tgt: Add ia64-*-aix* mapping.
4651 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4653 2001-02-20 H.J. Lu <hjl@gnu.org>
4655 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4656 false if we found the file.
4658 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4660 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4661 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4663 2001-02-18 lars brinkhoff <lars@nocrew.org>
4665 * Makefile.am: Add PDP-11 target.
4666 * configure.tgt: Likewise.
4667 * emulparams/pdp11.sh: New file.
4669 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4671 * configure.host: Add a generic FreeBSD configuration entry such that
4672 all [modern] FreeBSD systems on all platforms will look the same.
4674 2001-02-14 H.J. Lu <hjl@gnu.org>
4676 * configure.tgt: Remove mention of earmelf_linux26.
4678 2001-02-13 Richard Henderson <rth@redhat.com>
4680 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4682 2001-02-13 H.J. Lu <hjl@gnu.org>
4684 * ldexp.h (node_type): Add etree_provided.
4685 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4686 type to etree_provided if defined by PROVIDE. Allow updating
4688 (exp_print_tree): Handle etree_provided.
4689 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4692 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4694 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4695 .IA_64.unwind.* pattern to unwind table section and
4696 .IA_64.unwind_info* pattern to unwind info section.
4698 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4700 * Makefile.am: Add linux target for S/390.
4701 * Makefile.in: Likewise.
4702 * configure.host: Likewise.
4703 * configure.tgt: Likewise.
4704 * emulparams/elf64_s390.sh: New file.
4705 * emulparams/elf_s390.sh: New file.
4707 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4709 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4711 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4713 2001-02-06 Philip Blundell <philb@gnu.org>
4715 * Makefile.am: Remove mention of earmelf_linux26.
4716 * Makefile.in: Regenerate.
4718 2001-02-04 Philip Blundell <philb@gnu.org>
4720 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4721 * emulparams/armelf_linux26.sh: Delete.
4722 * configure.tgt: Remove mention of armelf_linux26 emulation.
4724 2001-02-01 Nick Clifton <nickc@redhat.com>
4726 * ld.1: Replace occurances of -oformat with --oformat.
4728 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4730 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4731 load_base is specified.
4733 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4735 * emultempl/elf32.em: Correct spelling in comments and listed
4738 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4740 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4741 default for the first section of a group of overlay sections.
4743 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4745 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4746 * Makefile.in: Regenerate.
4747 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4748 Check for null tool_dir.
4750 2001-01-16 Jim Wilson <wilson@redhat.com>
4752 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4753 and IA_64.unwind.info.
4755 2001-01-16 H.J. Lu <hjl@gnu.org>
4757 * ldlang.c (lang_check): Merge the private data only if the
4758 input file has contents.
4760 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4762 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4764 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4765 enabling search for libmilli. On a relocatable link, make .text
4767 (LDEMUL_AFTER_PARSE): Define.
4768 (hppaelf_finish): Correct spelling of relocatable in comments.
4770 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4771 rummage through the script for sections on the unique list.
4772 Correct length of strncmp for ".note".
4773 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4775 * ldlang.c (unique_section_list): New var.
4776 (unique_section_p): New function.
4777 (walk_wild_section): Don't match sections on unique_section_list.
4778 (lang_add_unique): New function.
4779 Correct spelling of relocatable in comments.
4781 * ldlang.h (struct unique_sections): Declare.
4782 (unique_section_list): Declare.
4783 (unique_section_p): Declare.
4784 (lang_add_unique): Declare.
4786 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4787 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4789 * ld.texinfo (--unique): Update.
4791 2001-01-13 Nick Clifton <nickc@redhat.com>
4793 * lexsup.c (parse_args): Remove spurious white space.
4795 2001-01-12 Nick Clifton <nickc@redhat.com>
4797 * lexsup.c (parse_args): Update copyright date.
4799 2001-01-12 Philip Blundell <pb@futuretv.com>
4801 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4803 2001-01-10 Kazu Hirata <kazu@hxi.com>
4805 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4806 * scripttempl/h8300h.sc: Fix formatting.
4807 * scripttempl/h8300s.sc: Likewise.
4808 * scripttempl/h8500.sc: Likewise.
4809 * scripttempl/h8500b.sc: Likewise.
4810 * scripttempl/h8500c.sc: Likewise.
4811 * scripttempl/h8500m.sc: Likewise.
4812 * scripttempl/h8500s.sc: Likewise.
4814 2000-01-07 David O'Brien <obrien@BSDi.com>
4816 * emultempl/elf32.em: Only perform Linux ld hints processing when
4819 2001-01-07 Philip Blundell <philb@gnu.org>
4821 * ld.texinfo (Bug Reporting): Update email address for reports.
4823 2000-12-31 Nick Clifton <nickc@redhat.com>
4825 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4826 options by checking for a return value of '?' not -1.
4828 2000-12-28 Nick Clifton <nickc@redhat.com>
4830 * lexsup.c (struct ld_option): Add new enum value:
4832 (ld_options[]): Change -omagic, -output and -oformat options
4833 to be EXACTLY_TWO_DASHES.
4834 (OUTPUT_COUNT): Use ARRAY_SIZE.
4835 (parse_args): Change parameter 'argc' to unsigned.
4836 Place EXACTLY_TWO_DASHES options into new really_longopts
4838 If getopt_long_only fails, try calling getopt_long using the
4839 really_longopts array.
4840 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4843 * ldlex.h: Fix prototype of parse_args.
4845 * ld.texinfo: Document that long options starting with 'o'
4846 must be preceeded by two dashes. Change example of a single
4847 dashed long option from -oformat to -trace-symbol.
4849 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4851 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4852 (longopts[]): New --no-default-excludes option.
4853 (gld_${EMULATION_NAME}_list_options): Document.
4854 (gld_${EMULATION_NAME}_parse_args): Handle.
4856 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4858 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4859 whitespace, it breaks the K&R C preprocessor.
4861 2000-12-11 DJ Delorie <dj@redhat.com>
4863 * ld.texinfo: Add notes about --whole-archive and gcc.
4865 2000-11-18 Fred Fish <fnf@be.com>
4867 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4868 (ld_options): Entry for --allow-shlib-undefined.
4869 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4870 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4872 * ld.texinfo: Document new command line switch.
4874 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4876 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4877 .fixup is actually read/write.
4878 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4879 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4880 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4882 2000-12-11 Jan Hubicka <jh@suse.cz>
4884 * NEWS: Add note about x86_64 architecture.
4886 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4888 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4889 Set DWARF2 sections to a VMA of zero.
4891 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4893 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4895 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4896 (sparc*-*-rtems*): Switched from a.out to ELF.
4898 2000-11-30 Jan Hubicka <jh@suse.cz>
4900 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4901 (eelf_x86_64.c): New.
4902 * Makefile.in: Regenerate.
4903 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4904 * emulparams/elf_x86_64.sh: New.
4906 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4908 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4909 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4911 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4912 merging non-a.out sections into CONSTRUCTING.
4914 2000-11-28 Nick Clifton <nickc@redhat.com>
4916 * ld.1 (COPYING): Mention that the GNU Free Documentation
4917 License is present in the sources, but not the output, and
4918 also available from the GNU website.
4919 (GNU Free Documentation License): Comment out this section.
4921 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4923 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4926 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4928 * ld.1: Remove old date so it does not give the impression the manpage
4931 2000-11-24 Nick Clifton <nickc@redhat.com>
4933 * configure.tgt (xscale-coff): Add target.
4934 (xscale-elf): Add target.
4936 2000-11-24 Fred Fish <fnf@be.com>
4938 * ldmain.c (main): Remove redundant init of config.make_executable
4941 2000-11-15 Richard Henderson <rth@redhat.com>
4943 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4945 2000-11-14 Kazu Hirata <kazu@hxi.com>
4947 * scripttempl/h8300.sc: Fix formatting.
4948 * scripttempl/h8300h.sc: Likewise.
4949 * scripttempl/h8300s.sc: Likewise.
4951 2000-11-14 Denis Chertykov <denisc@overta.ru>
4953 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4955 2000-11-09 Philip Blundell <pb@futuretv.com>
4957 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4958 around orphan sections whose names can be represented in C.
4960 2000-11-07 Jim Wilson <wilson@redhat.com>
4962 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4963 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4965 2000-11-06 Nick Clifton <nickc@redhat.com>
4967 * ld.texinfo: Add GNU Free Documentation License.
4968 * ldint.texinfo: Add GNU Free Documentation License.
4969 * ld.1: Add GNU Free Documentation License.
4971 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4973 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4974 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4976 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4977 Move 2000-11-02 Makefile.in changes to this file.
4978 * Makefile.in: Regenerate.
4980 2000-11-03 Nick Clifton <nickc@redhat.com>
4982 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4983 constructors and destructors.
4984 * scripttempl/h8300h.sc: Ditto.
4985 * scripttempl/h8300s.sc: Ditto.
4986 * scripttempl/h8500.sc: Ditto.
4987 * scripttempl/h8500b.sc: Ditto.
4988 * scripttempl/h8500c.sc: Ditto.
4989 * scripttempl/h8500m.sc: Ditto.
4990 * scripttempl/h8500s.sc: Ditto.
4991 * scripttempl/v850.sc: Ditto.
4992 * scripttempl/w65.sc: Ditto.
4993 * scripttempl/z8000.sc: Ditto.
4995 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4997 * Makefile.in (e_i386_chaos.c): New rule.
4998 (ALL_EMULATIONS): Added e_i386_chaos.o.
4999 * emulparams/elf_i386_chaos.sh: New file.
5000 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5002 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5004 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5005 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5006 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5007 library path suffix.
5008 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5010 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5012 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5013 for consecutive sections.
5015 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5017 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5019 * ld.texinfo: Added notes about this new option.
5021 2000-10-16 Nick Clifton <nickc@redhat.com>
5023 * emultempl/pe.em (_after_open): Add tests of return values from
5024 bfd functions. Emit appropriate error messages if necessary.
5026 2000-10-13 Nick Clifton <nickc@redhat.com>
5028 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5029 local variables - they are not used, but leave in the call to
5030 bfd_canonicalize_symtab.
5031 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5032 pe_dll_search_prefix.
5034 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5036 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5037 (longopts): New --dll-search-prefix option.
5038 (gld_${EMULATION_NAME}_list_options): Document.
5039 (gld_${EMULATION_NAME}_parse_args): Handle.
5040 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5041 dynamically, search for a dll named '<prefix><basename>.dll'
5042 in preference to 'lib<basename>.dll' if --dll-search-prefix
5045 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5047 * ldlang.c (section_already_linked): Set kept_section instead of
5050 2000-10-10 Kazu Hirata <kazu@hxi.com>
5052 * deffile.h: Fix formatting.
5053 * lexsup.c: Likewise.
5056 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5058 * pe-dll.c (make_one): Do not generate code thunk for DATA
5060 (process_def_file): deduce DATA flag for auto-export sumbols.
5062 2000-10-09 Kazu Hirata <kazu@hxi.com>
5064 * ld.h: Fix formatting.
5065 * ldcref.c: Likewise.
5066 * ldctor.h: Likewise.
5067 * ldemul.c: Likewise.
5068 * ldemul.h: Likewise.
5069 * ldexp.c: Likewise.
5070 * ldexp.h: Likewise.
5071 * ldfile.c: Likewise.
5072 * ldfile.h: Likewise.
5073 * ldlang.c: Likewise.
5074 * ldlang.h: Likewise.
5075 * ldmain.c: Likewise.
5076 * pe-dll.c: Likewise.
5078 * pe-dll.c: Revert some formatting fixes.
5080 2000-10-08 Kazu Hirata <kazu@hxi.com>
5082 * pe-dll.c: Fix formatting.
5084 2000-10-05 Kazu Hirata <kazu@hxi.com>
5086 * ldlang.c: Fix formatting.
5088 2000-10-03 DJ Delorie <dj@redhat.com>
5090 * pe-dll.c (fill_edata): initialize entire block
5091 (make_one): fill in correct section.
5093 2000-10-03 Kazu Hirata <kazu@hxi.com>
5095 * ldexp.c: Fix formatting.
5097 2000-10-02 DJ Delorie <dj@redhat.com>
5099 * emultempl/pe.em (gld_*_after_open): detect case where there two
5100 import libraries for same dll; rename one to ensure proper link
5103 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5105 (generate_edata): fix typo
5107 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5109 * scripttempl/crisaout.sc (ENTRY): Now __start.
5110 (.text): Add default setting for __start.
5111 Remove CONSTRUCTORS handling.
5112 (/DISCARD/): Add .gnu.warning.*.
5113 * emulparams/crislinux.sh (ENTRY): Now __start.
5114 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5115 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5116 (ENTRY): Now __start.
5117 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5118 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5120 2000-09-29 Kazu Hirata <kazu@hxi.com>
5122 * deffile.h: Fix formatting.
5124 * ldcref.c: Likewise.
5125 * ldctor.c: Likewise.
5126 * ldctor.h: Likewise.
5127 * ldemul.c: Likewise.
5128 * ldemul.h: Likewise.
5129 * ldexp.c: Likewise.
5130 * ldexp.h: Likewise.
5131 * ldfile.c: Likewise.
5132 * ldfile.h: Likewise.
5133 * ldlang.c: Likewise.
5134 * ldlang.h: Likewise.
5135 * lexsup.c: Likewise.
5137 * pe-dll.c: Likewise.
5139 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5141 * pe-dll.c (process_def_file): Uninitialized data wasn't
5142 exported with --export-all-symbols switch.
5144 2000-09-28 DJ Delorie <dj@redhat.com>
5146 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5147 noname work properly.
5149 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5151 * ld.texinfo (HPPA ELF32): New section.
5153 * emultempl/hppaelf.em (group_size): New.
5154 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5155 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5156 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5157 options to prevent abbreviations matching.
5158 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5159 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5161 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5163 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5164 on the m68*-*-elf target. Make it support COFF input objects.
5166 2000-09-21 Kazu Hirata <kazu@hxi.com>
5168 * ldmain.c: Fix formatting.
5169 * ldmisc.c: Likewise.
5170 * ldver.c: Likewise.
5171 * ldwrite.c: Likewise.
5173 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5175 * ldwrite.c (clone_section): Silence gcc warnings.
5177 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5179 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5180 out of memory failure.
5182 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5183 (clone_section): Handle out of memory failures. Rename var to
5184 avoid c++ reserved word.
5186 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5188 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5189 stub_name param to stub_sec_name.
5190 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5192 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5194 * emultempl/m68kelf.em: New file.
5195 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5196 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5197 * Makefile.in: Regenerate.
5199 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5201 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5204 2000-09-13 Nick Clifton <nickc@redhat.com>
5206 * ldmain.c (multiple_definition): Disable relaxation if
5207 multiple symbol definitions are encountered - otherwise the
5208 linker could abort with an assertion failure.
5210 2000-09-10 Nick Clifton <nickc@redhat.com>
5212 * mri.c: Fix formatting.
5214 2000-09-07 H.J. Lu <hjl@gnu.org>
5216 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5217 * configure: Rebuild.
5219 2000-09-07 H.J. Lu <hjl@gnu.org>
5221 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5222 * Makefile.in: Rebuild.
5224 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5226 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5227 broken list handling. Create __start_SECNAME and __stop_SECNAME
5228 when no place-holder. Add some comments. Test both SEC_CODE and
5229 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5230 Handle case where no output section statement created.
5232 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5234 * configure.tgt (sh-*-linux*): Added.
5235 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5236 * Makefile.in: Rebuilt.
5237 * emulparams/shelf_linux.sh: New file.
5238 * emulparams/shlelf_linux.sh: New file.
5240 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5242 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5243 try shuffling sections when the orphan happens to be the place
5244 holder. Keep count of unique section names generated so we speed
5245 the search for a new name.
5247 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5249 * configure: Rebuilt with new libtool.m4.
5251 2000-09-05 Nick Clifton <nickc@redhat.com>
5253 * Makefile.in: Regenerate.
5254 * aclocal.m4: Regenerate.
5255 * configure: Regenerate.
5256 * config.in: Regenerate.
5257 * po/ld.pot: Regenerate.
5259 * ldint.texinfo: Remove CVS revision marker - it foils local
5262 * emultempl/ticoff.em: Remove extraneous comma.
5264 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5266 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5267 to stub section flags.
5268 (hppa_for_each_input_file_wrapper): New.
5269 (hppa_lang_for_each_input_file): New.
5270 (lang_for_each_input_file): Define to call above.
5271 (multi_subspace): New.
5272 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5273 (PARSE_AND_LIST_PROLOGUE): Define.
5274 (PARSE_AND_LIST_LONGOPTS): Define.
5275 (PARSE_AND_LIST_OPTIONS): Define.
5276 (PARSE_AND_LIST_ARGS_CASES): Define.
5277 (hppaelf_finish): Call elf32_hppa_set_gp.
5278 (hppaelf_set_output_arch): Remove.
5279 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5281 * emulparams/hppalinux.sh (ELFSIZE): Define.
5283 (OTHER_READONLY_SECTIONS): Define.
5285 (GENERATE_SHLIB_SCRIPT): Define.
5287 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5288 to const throughout. Change `void *' to `PTR' throughout.
5289 (lang_memory_default): Function is local to file, add `static'.
5291 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5292 (ehppalinux.c): Likewise.
5293 (earmelf.c): Likewise.
5294 (earmelf_linux.c): Likewise.
5295 (earmelf_linux26.c): Likewise.
5296 * Makefile.in: Regenerate.
5298 * ld.h (ld_config_type): Add unique_orphan_sections.
5299 * lexsup.c (OPTION_UNIQUE): Define.
5300 (ld_options): Add "--unique".
5301 (parse_args): Handle it.
5302 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5303 search for an existing output section if unique_orphan_sections is
5304 set. Make use of bfd_get_unique_section_name rather than
5305 duplicating code here.
5306 * ld.texinfo: Describe --unique.
5308 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5309 optional arg to split-by-file.
5310 (parse_args): Handle them.
5311 * ld.texinfo: Update description of these options.
5312 * ldwrite.c (clone_section): Pass in the section name. Replace
5313 local code with bfd_get_unique_section_name.
5314 (split_sections): Tidy code and comments. Use a list traversal
5315 more appropriate to the list construction. Handle cooked section
5316 sizes. Split when split_by_reloc reached rather than exceeded.
5317 Track section size and split when split_by_file reached. Fix
5318 link_order_tail (even though it's not used).
5319 (ldwrite): Modify condition for calling split_sections to suit
5320 changed split_by_reloc and split_by_file.
5321 * ldmain.c (main): Init config.split_by_reloc and
5322 config.split_by_file to -1.
5323 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5324 Change split_by_file to bfd_size_type.
5326 2000-09-02 Nick Clifton <nickc@redhat.com>
5328 * configure.in: Increase version number to 2.10.91.
5329 * NEWS: Mention new ability to support removal of duplicate DWARF2
5331 * configure: Regenerate.
5332 * aclocal.m4: Regenerate.
5333 * config.in: Regenerate.
5335 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5337 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5339 * scripttempl/elf32avr.sc: Ditto.
5340 * scripttempl/elfd10v.sc: Ditto.
5341 * scripttempl/elfd30v.sc: Ditto.
5342 * scripttempl/elfi370.sc: Ditto.
5343 * scripttempl/elfm68hc11.sc: Ditto.
5344 * scripttempl/elfm68hc12.sc: Ditto.
5345 * scripttempl/elfi386beos.sc: Ditto.
5346 * scripttempl/v850.sc: Ditto.
5348 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5350 * acinclude.m4: Include libtool and gettext macros from the
5352 * aclocal.m4, configure: Rebuilt.
5354 2000-08-25 Nick Clifton <nickc@redhat.com>
5356 * ldlang.c (open_output): When choosing the target for a
5357 particular endianness, do nothing if the target is not
5360 2000-08-25 H.J. Lu <hjl@gnu.org>
5362 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5363 check -rpath nor LD_RUN_PATH for cross link.
5364 * ld.texinfo: Document the change.
5366 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5368 * NEWS: Mention support for CRIS.
5370 2000-08-23 H.J. Lu <hjl@gnu.org>
5372 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5373 the current runpath list from bfd_elf_get_runpath_list ()
5376 2000-08-22 H.J. Lu <hjl@gnu.org>
5378 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5379 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5380 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5381 trace_file_tries is non-zero.
5382 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5383 if trace_file_tries is non-zero.
5385 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5388 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5390 * NEWS: Mention i860 support.
5392 2000-08-14 Andreas Schwab <schwab@suse.de>
5394 * scripttempl/elf.sc: Fix last change to use correct comment
5397 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5399 * scripttempl/elf.sc: Add a comment giving the correspondence
5400 between sections, per-datum sections, and linkonce sections. Make
5401 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5404 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5406 * emulparams/elf32_i860.sh: New file.
5407 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5408 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5409 (eelf32_i860.c): New rule.
5410 * Makefile.in: Regenerate.
5412 2000-08-10 Nick Clifton <nickc@cygnus.com>
5414 * emulparams/mipspe.sh (ENTRY): Add definition.
5416 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5418 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5421 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5423 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5424 the final size of .bss section.
5425 * scripttempl/elfm68hc12.sc: Likewise.
5427 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5429 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5430 gld${EMULATION_NAME}_parse_args for consistency. Combine
5431 lastoptind and prevoptind vars, and keep track of last optind.
5432 (gld_${EMULATION_NAME}_list_options): Rename to
5433 gld${EMULATION_NAME}_list_options.
5435 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5437 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5438 (i586-sco-sysv5uw7.1.0).
5440 2000-07-27 H.J. Lu <hjl@gnu.org>
5442 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5443 (PARSE_AND_LIST_PROLOGUE): New.
5444 (PARSE_AND_LIST_LONGOPTS): Likewise.
5445 (PARSE_AND_LIST_OPTIONS): Likewise.
5446 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5447 (PARSE_AND_LIST_EPILOGUE): Likewise.
5449 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5451 * emultempl/armelf.em: Elide functions common to elf32.em,
5452 ie. most of the file.
5453 (arm_elf_after_open): New. Do arm specific things then call
5454 gld${EMULATION_NAME}_after_open.
5455 (arm_elf_before_allocation): New. Call
5456 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5457 (PARSE_AND_LIST_PROLOGUE): Define.
5458 (PARSE_AND_LIST_SHORTOPTS): Define.
5459 (PARSE_AND_LIST_LONGOPTS): Define.
5460 (PARSE_AND_LIST_OPTIONS): Define.
5461 (PARSE_AND_LIST_ARGS_CASES): Define.
5462 (LDEMUL_AFTER_OPEN): Define.
5463 (LDEMUL_BEFORE_ALLOCATION): Define.
5464 (LDEMUL_BEFORE_PARSE): Define.
5465 (LDEMUL_FINISH): Define.
5467 * emultempl/hppaelf.em: Similarly zap most of this file.
5468 (hppaelf_add_stub_section): Prototype.
5469 (hppaelf_layaout_sections_again): Prototype.
5470 (hook_in_stub): Prototype.
5471 (LDEMUL_SET_OUTPUT_ARCH): Define.
5472 (LDEMUL_FINISH): Define.
5473 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5475 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5476 (EXTRA_EM_FILE): New.
5477 * emulparams/armelf_linux.sh: Likewise.
5478 * emulparams/armelf_linux26.sh: Likewise.
5479 * emulparams/hppalinux.sh: Likewise.
5480 * emulparams/hppaelf.sh: Likewise.
5483 * emultempl/elf32.em: Fix formatting.
5484 (EXTRA_EM_FILE): Source it.
5485 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5486 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5487 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5488 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5489 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5490 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5491 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5492 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5493 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5494 allow functions in this file to be overridden.
5495 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5497 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5499 * emultempl/elf32.em: Reorganize file.
5501 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5503 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5504 specific option to fit 64-bit executable in the lower
5505 31-bit address range. This is done by changing start
5506 address of .interp (the very first section of executable)
5507 and then setting EF_ALPHA_32BIT elf header flag.
5509 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5511 * emultempl/m68kcoff.em: New file.
5512 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5513 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5515 * Makefile.in: Regenerate.
5517 2000-07-20 H.J. Lu <hjl@gnu.org>
5519 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5520 and "disable-new-dtags" to stop getopt from treating -d/-e as
5521 abbreviations for these options.
5523 2000-07-20 H.J. Lu <hjl@gnu.org>
5525 * ld.texinfo: Add documentation for --disable-new-dtags and
5528 * ldmain.c (main): Initialize link_info.new_dtags to false.
5530 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5531 --disable-new-dtags and --enable-new-dtags.
5532 (gld_${EMULATION_NAME}_list_options): Likewise.
5534 2000-07-05 Kenneth Block <krblock@computer.org>
5536 * lexsup.c: Add optional style to demangle switch
5537 * ld.texinfo: Document optional style to demangle switch.
5539 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5541 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5543 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5544 Regenerate dependencies.
5545 * Makefile.in: Rebuild.
5546 * configure.tgt (cris-*-*): New target.
5547 * emulparams/crisaout.sh, emulparams/criself.sh,
5548 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5549 * po/POTFILES.in, po/ld.pot: Regenerate.
5551 2000-07-20 H.J. Lu <hjl@gnu.org>
5553 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5554 Print out ignored -z options.
5556 2000-07-19 H.J. Lu <hjl@gnu.org>
5558 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5559 (PARSE_AND_LIST_PROLOGUE): New.
5560 (PARSE_AND_LIST_LONGOPTS): Likewise.
5561 (PARSE_AND_LIST_OPTIONS): Likewise.
5562 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5564 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5566 * lexsup.c (ld_options): Comment out 'z'.
5567 (parse_args): Likewise.
5569 * emultempl/elf32.em: Include "elf/common.h".
5570 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5572 (gld_${EMULATION_NAME}_list_options): Likewise.
5574 * ld.texinfo: Add documentation for the recognized -z options.
5576 2000-07-19 H.J. Lu <hjl@gnu.org>
5578 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5579 bfd_elf_set_dt_needed_soname ().
5581 2000-07-18 DJ Delorie <dj@cygnus.com>
5583 * pe-dll.c (pe_dll_id_target): check object target name also
5585 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5587 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5588 ${INIT_END} if relocating.
5589 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5591 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5593 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5594 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5595 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5596 errors introduced by the old dynamic lib search order.
5598 2000-07-17 DJ Delorie <dj@cygnus.com>
5600 * pe-dll.c (process_def_file): auto-export data items also
5601 (pe_process_import_defs): also see if _imp_ form needed
5603 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5605 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5606 for dll import libraries
5608 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5610 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5611 gcc 2.95.2 and later.
5613 2000-07-11 Kazu Hirata <kazu@hxi.com>
5615 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5618 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5620 * ldemul.h (struct lang_input_statement_struct): Remove forward
5622 (struct search_dirs): Likewise.
5623 * ldfile.h (struct lang_input_statement_struct): Likewise.
5624 Protect file from multiple inclusion.
5625 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5626 declaration from macro to file scope.
5628 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5629 * ldgram.y: Likewise here.
5630 * ldlang.c: And here.
5631 * ldmain.c: And here.
5632 * mpw-elfmips.c: And here.
5633 * mpw-eppcmac.c: And here.
5634 * emultempl/aix.em: And here.
5635 * emultempl/armcoff.em: And here.
5636 * emultempl/armelf.em: And here.
5637 * emultempl/armelf_oabi.em: And here.
5638 * emultempl/beos.em: And here.
5639 * emultempl/elf32.em: And here.
5640 * emultempl/hppaelf.em: And here.
5641 * emultempl/linux.em: And here.
5642 * emultempl/lnk960.em: And here.
5643 * emultempl/pe.em: And here.
5644 * emultempl/sunos.em: And here.
5645 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5646 * mpw-idtmips.c: Ditto.
5647 * emultempl/generic.em: Ditto.
5648 * emultempl/gld960.em: Ditto.
5649 * emultempl/gld960c.em: Ditto.
5650 * emultempl/mipsecoff.em: Ditto.
5651 * emultempl/ticoff.em: Ditto.
5652 * emultempl/vanilla.em: Ditto.
5654 * pe-dll.c: Include ldfile.h
5655 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5657 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5658 arguments to bfd_elf32_size_dynamic_sections call.
5659 (gldelf32ebmip_place_orphan): Add missing arguments to
5660 lang_leave_output_section_statement call.
5662 2000-07-10 H.J. Lu <hjl@gnu.org>
5664 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5666 (strhash): Likewise.
5667 (compute_dll_image_base): Likewise.
5668 (pe_undef_found_sym): Likewise.
5669 (pe_undef_cdecl_match): Likewise.
5670 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5671 argument "arch" with ATTRIBUTE_UNUSED.
5673 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5675 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5677 From Ryan Bradetich <rbradetich@uswest.net>
5678 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5680 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5682 Changes to create multiple linker stubs, positioned immediately
5683 before the section where they are required.
5684 * emultempl/hppaelf.em: Include elf32-hppa.h.
5685 (stub_sec, file_chain): Delete.
5686 (hppaelf_create_output_section_statements): Don't make a stub
5688 (hook_stub_info): New struct.
5689 (hook_in_stub): New function.
5690 (hppaelf_add_stub_section): New function.
5691 (hppaelf_finish): Do nothing for relocateable links. Modify the
5692 call to elf32_hppa_size_stubs. Move code for updating section
5694 (hppaelf_layaout_sections_again): ..to here, a new function.
5696 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5697 broken list handling. Pass in a pointer to the list.
5698 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5700 (hppaelf_before_parse): Prototype.
5701 (hppaelf_set_output_arch): Prototype.
5702 (hppaelf_create_output_section_statements): Prototype.
5703 (hppaelf_delete_padding_statements): Prototype.
5704 (hppaelf_finish): Prototype.
5707 * emultempl/hppaelf.em: Include ctype.h.
5708 (struct orphan_save): New.
5709 (gld${EMULATION_NAME}_place_orphan): New.
5710 (output_rel_find): New.
5711 (hppaelf_get_script): Update from elf32.em.
5712 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5713 Change emulation_name field to "${EMULATION_NAME}". Add
5714 gld${EMULATION_NAME}_place_orphan.
5716 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5717 ehppalinux.o, sort it. Regenerate dependencies.
5718 (ehppalinux.c): Depend on hppaelf.em
5719 * Makefile.in: Regenerate.
5721 * configure.tgt: targ_emul=hppalinux for hppa*linux
5723 * emulparams/hppalinux.sh: New.
5724 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5726 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5728 * lexsup.c (parse_args): Copy section name.
5730 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5732 * emultempl/pe.em: institute the following search order for
5733 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5734 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5735 static lib (libfoo.a) if none of the above are found.
5737 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5739 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5740 (longopts): New --{enable,disable}-auto-image-base options.
5741 (gld_${EMULATION_NAME}_list_options): Document.
5742 (gld_${EMULATION_NAME}_parse): Handle.
5743 (strhash): New static function.
5744 (compute_dll_image_base): New static function.
5745 (gld_${EMULATION_NAME}_set_symbols): Use.
5747 2000-07-05 DJ Delorie <dj@redhat.com>
5751 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5753 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5754 * emulparams/elf32btsmip.sh: New file.
5755 * Makefile.am: Add traditional mips target.
5756 * Makefile.in: Rebuild.
5758 2000-07-01 H.J. Lu <hjl@gnu.org>
5760 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5761 automake to use YLWRAP.
5762 * Makefile.in: Rebuild.
5764 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5766 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5767 (CLEANFILES): Add DEPA.
5768 * Makefile.in: Regenerate.
5770 2000-06-30 Timothy Wall <twall@ppc>
5772 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5773 the page in the upper octet of the address.
5775 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5777 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5779 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5781 * NEWS: arm-elf does --gc-sections too.
5783 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5785 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5787 * Makefile.in: Regenerate.
5789 2000-06-21 H.J. Lu <hjl@gnu.org>
5791 * Makefile.am: Rebuild dependency.
5792 * Makefile.in: Rebuild.
5794 2000-06-20 H.J. Lu <hjl@gnu.org>
5796 * Makefile.am: Rebuild dependency.
5797 * Makefile.in: Rebuild.
5799 2000-06-20 Timothy Wall <twall@cygnus.com>
5801 * scripttempl/tic54xcoff.sc: New.
5802 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5803 * gen-doc.texi: Add flag for TI COFF.
5804 * ld.texinfo: Add documentation for TI COFF handling switches.
5805 * emultempl/ticoff.em: New. TI COFF handling.
5806 * configure.tgt: Add tic54x target.
5807 * Makefile.am: Add tic54x target.
5808 * Makefile.in: Ditto.
5810 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5812 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5813 checking for backslashes.
5815 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5817 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5819 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5821 * NEWS: Update list of targets supporting --gc-sections.
5823 * scripttempl/elf.sc: KEEP .eh_frame contents.
5824 * scripttempl/elfd30v.sc: Same here.
5826 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5828 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5830 * Makefile.in: Rebuild.
5831 * configure.tgt: Recognize m68hc12 and m68hc11.
5832 * scripttempl/elfm68hc12.sc: New file.
5833 * emulparams/m68hc12elfb: New emulation.
5834 * emulparams/m68hc12elf: New emulation.
5835 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5836 (includes a memory.x script to define the ROM and RAM banks).
5837 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5838 New configuration files for support of Motorola 68hc11
5840 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5842 * ldmain.c (main): Only change SEC_READONLY for final link.
5844 2000-06-13 H.J. Lu <hjl@gnu.org>
5846 * configure: Regenerate.
5848 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5850 * configure.in (VERSION): Update to show this is the CVS mainline.
5852 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5854 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5855 input objects to be ECOFF.
5856 (check_sections): einfo takes %B, not %P, to print a BFD name.
5858 2000-06-05 Michael Matz <matz@ifh.de>
5860 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5863 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5865 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5867 * emulparams/avr1200.sh (STACK): Define as 0.
5868 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5869 * emulparams/avr4433.sh (STACK): Likewise.
5870 * emulparams/avr44x4.sh (STACK): Likewise.
5871 * emulparams/avr85xx.sh (STACK): Likewise.
5872 * emulparams/avrmega103.sh (STACK): Likewise.
5873 * emulparams/avrmega161.sh (STACK): Likewise.
5874 * emulparams/avrmega603.sh (STACK): Likewise.
5875 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5876 (__stack): Define from ${STACK} for main().
5878 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5880 * Makefile.am: Update dependencies with "make dep-am"
5881 * Makefile.in: Regenerate.
5883 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5885 * ldmain.c: Include filenames.h.
5886 (set_scripts_dir): Support backslashes in program name.
5888 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5890 * ldmain.c (main): When deciding if ".text" section should be
5891 read-only, don't forget to reset SEC_READONLY because it
5892 could be already set.
5894 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5896 * ld.1: Add documentation for new command line option:
5897 --section-start <sectionname>=<sectionorg>
5898 This is a generic version of -Ttext etc. which accepts
5899 any section name as a parameter instead of just text/data/
5901 * ld.texinfo: More docs.
5903 * lexsup.c: (parse_args): Recognize new command line option.
5904 (ld_options): Add new option.
5906 2000-05-18 H.J. Lu <hjl@gnu.org>
5908 * lexsup.c (parse_args): `i' == `r', not `q'.
5910 2000-05-18 Jeffrey A Law (law@cygnus.com)
5912 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5914 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5915 Rick Gorton <gorton@scrugs.lkg.dec.com>
5917 Add support for '-q' == '--emit-relocs' switch.
5918 * ldmain.c (main): Default to false.
5919 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5920 * NEWS: Describe the emitrelocations switch.
5921 * ld.texinfo: Describe the emitrelocations switch.
5923 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5925 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5926 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5927 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5930 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5932 * lexsup.c (parse_args): Update the year in the copyright notice.
5934 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5936 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5937 Replace defines with those from intl/libgettext.h to quieten gcc
5940 2000-05-10 H.J. Lu <hjl@gnu.org>
5942 * ldlang.c (open_input_bfds): Don't load the same file within
5943 a group again if the whole archive has been loaded already.
5945 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5947 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5948 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5951 2000-05-01 Jim Wilson <wilson@cygnus.com>
5953 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5955 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5956 host "ia64-*-linux-gnu*".
5958 2000-04-29 Andreas Jaeger <aj@suse.de>
5960 * ld.h: Correctly check GCC version.
5962 2000-04-25 Jeffrey A Law (law@cygnus.com)
5964 * Makefile.am: Add PA64 support. Add missing dependencies for
5966 * Makefile.in: Rebuilt.
5967 * configure.tgt: Add PA64 support (currently disabled).
5969 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5971 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5972 (output_rel_find): New function.
5973 (hold_section, hold_use): Delete.
5974 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5975 hold_interp): Make local to place_orphan.
5976 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5977 rather than place_section to find possible previous use of orphan.
5978 Similarly find the place-holder output sections. Use returned
5979 value from lang_enter_output_section_statement rather than calling
5980 lang_output_section_statement_lookup.
5981 * emultempl/armelf.em: Same here.
5982 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5984 * ldlang.c (lang_enter_output_section_statement): Return output
5986 * ldlang.h (lang_enter_output_section_statement): Change
5989 * ldlang.h (lang_output_section_statement): Export it.
5990 * ldlang.c (lang_output_section_statement): Ditto.
5992 2000-04-24 Nick Clifton <nickc@cygnus.com>
5994 * ld.texinfo (Output Section Data): Add note that section data
5995 commands cannot appear outside of section directives.
5997 2000-04-2 Matthew Green <mrg@cygnus.com>
5999 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6001 2000-04-21 Richard Henderson <rth@cygnus.com>
6002 David Mosberger <davidm@hpl.hp.com>
6004 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6005 (eelf64_ia64.c): New rule.
6006 * Makefile.in: Rebuild.
6007 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6008 * emulparams/elf64_ia64.sh: New file.
6010 2000-04-21 Richard Henderson <rth@cygnus.com>
6012 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6014 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6016 * dep-in.sed: Match space at start of file name, not at end.
6018 2000-04-18 H.J. Lu <hjl@gnu.org>
6020 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6021 lang_leave_output_section_statement () after calling
6022 lang_enter_output_section_statement ().
6023 * emultempl/armelf.em: Likewise.
6025 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6027 * emultempl/elf32.em (struct orphan_save): Add section field.
6028 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6029 better order, and place first orphan section as we did before the
6030 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6031 Don't call make_bfd_section here, let wild_doit do the job for us.
6032 Don't build a statement list when we'll only throw it away.
6033 * emultempl/armelf.em: Ditto.
6034 * emultempl/pe.em: Similarly.
6036 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6038 * scripttempl/elfppc.sc: Remove.
6039 * emulparams/elf32ppc.sh: Use elf.sc.
6040 * emulparams/elf32lppc.sh: Use elf.sc.
6041 * emulparams/elf32ppclinux.sh: Use elf.sc.
6042 * emulparams/elf32ppcsim.sh: New file.
6043 * emulparams/elf32lppcsim.sh: New file.
6044 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6045 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6046 * Makefile.in: Regenerate.
6047 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6049 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6051 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6052 ~SEC_ALLOC sections too. Init start address of debug sections.
6053 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6054 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6055 Also set all relocateable section start addresses.
6057 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6059 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6060 Add new BSS_PLT variable for when .plt need not be contained in
6061 the file. Move _etext so that it is also after .fini, and provide
6062 both etext and _etext with a leading underscore. Mark the start
6065 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6067 * emultempl/elf32.em (struct orphan_save): New.
6068 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6069 hold_interp): Make them struct orphan_save.
6070 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6071 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6072 the end of the relevant section list. Also add associated section
6073 statements to the end of any previous orphan statements.
6074 * emultempl/armelf.em: Similarly.
6075 * emultempl/pe.em: Similarly.
6077 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6079 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6081 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6083 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6084 --enable-build-warnings option.
6085 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6086 * Makefile.in, configure: Re-generate.
6088 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6090 * po/ld.pot: Regenerate.
6092 * lexsup.c (help): Restore translated part of bug string.
6094 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6095 (DEP): Quote when passing vars to sub-make. Add warning message
6097 (DEP1): Rewrite for "gcc -MM".
6098 (CLEANFILES): Add DEP2.
6099 Update dependencies.
6100 * Makefile.in: Regenerate.
6102 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6104 * ld.h: #include "bin-bugs.h"
6105 * lexsup.c (help): Use REPORT_BUGS_TO.
6107 2000-03-27 Denis Chertykov <denisc@overta.ru>
6109 * configure.tgt (avr-*-*): New target support.
6110 * Makefile.am: Likewise.
6111 * scripttempl/elf32avr.sc: New script file.
6112 * emulparams/avr1200.sh: New file.
6113 * emulparams/avr23xx.sh: New file.
6114 * emulparams/avr4433.sh New file.
6115 * emulparams/avr44x4.sh New file.
6116 * emulparams/avr85xx.sh New file.
6117 * emulparams/avrmega103.sh New file.
6118 * emulparams/avrmega161.sh New file.
6119 * emulparams/avrmega603.sh New file.
6120 * Makefile.in: Regenerate.
6122 2000-03-09 Andreas Jaeger <aj@suse.de>
6124 * Makefile.am (check-DEJAGNU): Also unset LANG.
6125 * Makefile.in: Rebuild.
6127 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6129 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6132 2000-03-02 H.J. Lu <hjl@gnu.org>
6134 * emulparams/elf32mcore.sh: Include "getopt.h".
6136 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6138 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6140 2000-03-01 H.J. Lu <hjl@gnu.org>
6142 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6143 * emulparams/shpe.sh: Likewise.
6145 2000-03-01 Nick Clifton <nickc@cygnus.com>
6147 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6148 to unused parameters.
6150 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6151 functions only used by DLL code.
6152 (_place_orphan): Initialise 'dollar'.
6154 2000-03-01 H.J. Lu <hjl@gnu.org>
6156 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6157 indicate if the undefined symbol is a fatal error or not.
6158 Don't delete the output file if "fatal" is false.
6160 2000-02-29 H.J. Lu <hjl@gnu.org>
6162 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6163 Set LC_COLLATE and LC_ALL to null and export them. It is for
6164 sort which expects the C locale.
6165 Add $(LIBS) to all $(HOSTING_LIBS).
6166 * Makefile.in: Rebuild.
6168 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6170 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6171 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6172 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6173 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6174 find_potential_libraries.
6176 2000-02-28 Jim Blandy <jimb@redhat.com>
6178 * ldgram.y (exclude_name_list): Don't require a comma to separate
6179 list entries; the lexer considers commas to be valid part of a
6180 filename, so in something like `foo, bar' the comma is considered
6181 part of the first filename, `foo,'.
6182 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6184 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6186 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6187 host "i[3456]86-*-freebsdelf*".
6189 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6191 * scripttempl/i386go32.sc: Move misplaced semicolons.
6193 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6195 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6196 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6197 (eelf64hppa.c, ehppaelf.c): Remove targets.
6198 * Makefile.in: Rebuild.
6200 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6202 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6203 GNU/Linux/sparc, but keep the default as 32.
6205 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6206 it default if sparcv9 or sparc64.
6208 2000-02-24 Nick Clifton <nickc@cygnus.com>
6210 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6211 * Makefile.in: Regenerate.
6212 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6214 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6215 find_potential_libraries.
6216 * ldemul.c (ldemul_find_potential_libraries): New function.
6218 * ldfile.c (ldfile_open_file_search): Allow function to be
6220 (ldfile_open_file): Call ldemul_find_potential_libraries.
6221 * ldfile.h: Add prototype for ldfile_open_file_search.
6223 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6225 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6226 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6228 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6229 (gld_X_find_potential_libraries): New function. Search for
6230 libraries called "*.lib".
6232 * scripttempl/pe.sc: Add .pdata section.
6234 2000-02-23 Richard Henderson <rth@cygnus.com>
6236 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6237 Add and use memory regions.
6239 2000-02-23 Linas Vepstas (linas@linas.org)
6241 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6243 * Makefile.am: Add support for Linux/IBM 370.
6244 * configure.tgt: Likewise.
6246 * Makefile.in: Regenerate.
6248 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6250 * ldlang.c (print_input_section, print_data_statement,
6251 print_reloc_statement, print_padding_statement, insert_pad,
6252 size_input_section, lang_check_section_addresses,
6253 lang_size_sections, lang_do_assignments, lang_set_startof,
6254 lang_one_common): Change `opb' to unsigned.
6255 (lang_do_assignments): Also change `size' to unsigned.
6257 2000-02-16 Richard Henderson <rth@cygnus.com>
6259 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6261 2000-02-16 Timothy Wall <twall@cygnus.com>
6263 * mri.c (mri_draw_tree): Add default LMA region argument to call
6264 to lang_leave_output_section_statement.
6265 * ldlang.h: Update prototypes with LMA region arguments.
6266 * ldlang.c (lang_size_sections): Encapsulate region bounds
6267 checking in os_check_region call.
6268 (os_check_region): New function.
6269 (lang_output_section_statement_lookup): Initialize lma_region.
6270 (lang_leave_output_section_statement): Add LMA region argument.
6271 (lang_leave_overlay): Ditto.
6272 * ldgram.y: Handle LMA region syntax.
6273 * ld.texinfo (Output Section Description): Describe LMA region usage.
6274 * emultempl/armelf.em (gld$place_orphan): Add default value for
6275 lma region in call to lang_leave_output_section_statement.
6276 * emultempl/elf32.em (gld$place_orphan): Add default value for
6277 lma region in call to lang_leave_output_section_statement.
6278 * emultempl/pe.em (gld$place_orphan): Add default value for
6279 lma region in call to lang_leave_output_section_statement.
6282 2000-02-04 Timothy Wall <twall@redhat.com>
6284 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6285 octets when calculating section end addresses.
6287 2000-02-04 Timothy Wall <twall@redhat.com>
6289 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6291 2000-02-03 Timothy Wall <twall@redhat.com>
6293 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6295 * ldlang.c (print_input_section, print_data_statement,
6296 print_reloc_statement, print_padding_statement): Print target
6297 address values and section sizes as bytes, not octets.
6298 (insert_pad) Calculate padding size in octets, and adjust "dot"
6300 (size_input_section) Always adjust "dot" by bytes, not octets.
6301 (lang_check_section_addresses, lang_do_assignments) Adjust
6302 "dot" by bytes, not octets. Use the larger of the directive size
6303 or octets_per_byte for the number of octets actually allocated in
6305 (lang_set_startof) Make sure STARTOF returns a target address.
6306 (lang_one_common) Record size changes in octets.
6307 (lang_abs_symbol_at_end_of) Section end symbol's value is
6308 recorded in target bytes.
6309 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6310 to be clear about behavior when an octet is smaller than one byte.
6312 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6314 * ldcref.c (output_cref): Don't pass message strings to printf
6318 * ldmisc.c (vfinfo): Same here.
6321 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6323 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6324 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6325 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6326 Add missing NULL initialisers, and comments.
6328 2000-01-21 Nick Clifton <nickc@cygnus.com>
6330 * ldlang.c (lang_size_sections): Fix typo in comment.
6332 2000-01-18 H.J. Lu <hjl@gnu.org>
6334 * ldlang.c (lang_size_sections): Also update the current
6335 address of a region if the SEC_NEVER_LOAD bit is not set.
6337 2000-01-10 Philip Blundell <pb@futuretv.com>
6339 * configure.tgt (arm*-*-conix*): New target.
6341 2000-01-07 Nick Clifton <nickc@cygnus.com>
6343 * ld.texinfo (Options): Remind users to preceed linker command
6344 line switches with -Wl, (or whatever is appropriate) if it is
6345 being invoked by a comnpiler driver program.
6346 Fix description of the behaviour of the -n command line switch.
6348 2000-01-05 Catherine Moore <clm@cygnus.com>
6350 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6352 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6353 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6354 (exclude_name_list): New.
6355 ldlang.c (walk_wild_section): Support list of excluded files.
6356 (print_wild_statement): Likewise.
6357 (lang_add_wild): Likewise.
6358 * ldlang.h (lang_wild_statement_type): Likewise.
6359 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6361 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6363 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6364 (process_def_file): Use.
6365 (pe_dll_compat_implib): New variable.
6368 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6369 pe_dll_compat_implib.
6371 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6372 compat-implib options.
6373 (gld_${EMULATION_NAME}_list_options): List new options.
6374 (gld_${EMULATION_NAME}_parse_args): Handle.
6376 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6379 * deffilep.y (opt_name): Allow "." in name.
6381 For older changes see ChangeLog-9899
6387 version-control: never