1 2003-08-08 Dmitry Diky <diwil@mail.ru>
3 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
5 * Makefile.in: Regenerate.
6 * configure.tgt: Add extra emulations.
7 * emulparams/msp430xE423.sh: New file.
8 * emulparams/msp430xE427.sh: New file.
9 * emulparams/msp430xW425.sh: New file.
10 * emulparams/msp430xE425.sh: New file.
11 * emulparams/msp430xW423.sh: New file.
12 * emulparams/msp430xW427.sh: New file.
14 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
16 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
17 Change second (cmdline) arg to lang_add_entry to FALSE.
18 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
20 2003-08-05 Christian Groessler <chris@groessler.org>
21 Jason Eckhardt <jle@rice.edu>
23 * configure.tgt: Recognize new target i860-*-coff.
24 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
25 (ecoff_i860.c): New rule.
26 * emulparams/coff_i860.sh: New file.
27 * scripttempl/i860coff.sc: New file.
28 * Makefile.in: Regenerate.
30 2003-08-04 Nick Clifton <nickc@redhat.com>
32 * emultempl/elf32.em (before_allocation): Prepend "warning: "
33 to messages produced for .gnu.warning.SYMBOL sections.
35 2003-08-04 Alan Modra <amodra@bigpond.net.au>
37 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
38 .rel.dyn before other reloc sections. Don't stop looking for reloc
39 sections on finding one that isn't allocated. Match .rel even when
40 placing .rela and vice versa, when setting last_rel and
41 last_rel_alloc for the first time. If no reloc sections in script,
42 prefer allocated section over non-alloc.
43 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
45 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
47 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
48 section for shared library.
49 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
50 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
52 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
54 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
55 * scripttempl/elfm68hc11.sc: Likewise.
57 2003-07-28 Alan Modra <amodra@bigpond.net.au>
59 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
61 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
63 2003-07-27 Alan Modra <amodra@bigpond.net.au>
65 * ld.texinfo: Typo fixes. Document SUBALIGN.
66 * ldgram.y (opt_subalign): Add.
67 * ldlex.l (SUBALIGN): Recognize.
68 * ldlang.c (overlay_subalign): New var.
69 (lang_enter_overlay): Add subalign param.
70 (lang_enter_overlay_section): Pass overlay_subalign to
71 lang_enter_output_section_statement.
72 * ldlang.h (lang_enter_overlay): Update.
74 2003-07-24 Nick Clifton <nickc@redhat.com>
76 * po/fr.po: Updated French translation.
78 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
80 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
81 account .tramp sections;
82 * scripttempl/elfm68hc12.sc: Likewise.
84 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
86 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
88 2003-07-17 Nick Clifton <nickc@redhat.com>
90 * po/es.po: New Spanish translation.
92 2003-07-11 Alan Modra <amodra@bigpond.net.au>
94 * po/ld.pot: Regenerate.
96 2003-07-10 Bob Wilson <bob.wilson@acm.org>
98 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
99 with new .got.loc section.
100 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
101 non-relocating links.
102 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
103 sections separate for non-relocating links; likewise for .xt.insn.
105 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
107 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
108 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
109 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
110 * configure.host (am33_2.0-*-linux*): Added.
111 * configure.tgt (am33_2.0-*-linux*): Likewise.
112 * emulparams/elf32am33lin.sh: New.
113 * Makefile.am (eelf32am33lin.c): New rule.
114 * Makefile.in: Rebuilt.
116 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
118 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
119 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
120 (GENERATE_SHLIB_SCRIPT): Likewise.
122 2003-07-10 Alan Modra <amodra@bigpond.net.au>
124 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
126 * emultempl/ppc64elf.em (stub_added): New static var.
127 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
128 (ppc_add_stub_section): Set stub_added.
129 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
130 ppc64_elf_size_stubs call and test for stubs.
131 * scripttempl/elf.sc (GOT): Define and use.
133 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
135 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
136 Allow second call from ldemul_finish.
138 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
140 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
141 (OTHER_SECTIONS): Include .stack.
142 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
144 2003-07-02 Jakub Jelinek <jakub@redhat.com>
146 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
148 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
149 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
152 2003-06-28 Alan Modra <amodra@bigpond.net.au>
154 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
155 Replace PTR with void *. Formatting.
156 * ldcref.c: Likewise.
157 * ldctor.c: Likewise.
158 * ldctor.h: Likewise.
159 * ldemul.h: Likewise.
162 * ldfile.c: Likewise.
163 * ldfile.h: Likewise.
164 * ldlang.c: Likewise.
165 * ldlang.h: Likewise.
168 * ldmain.c: Likewise.
169 * ldmain.h: Likewise.
170 * ldmisc.c: Likewise.
171 * ldmisc.h: Likewise.
173 * ldwrite.c: Likewise.
174 * ldwrite.h: Likewise.
175 * lexsup.c: Likewise.
178 * pe-dll.c: Likewise.
179 * pe-dll.h: Likewise.
180 * deffilep.y: Likewise.
181 * deffile.h: Likewise. Don't include ansidecl.h.
182 * emulparams/elf32mcore.sh: Remove unnecessary cast.
183 * emultempl/m68kcoff.em: Likewise.
184 * emultempl/m68kelf.em: Likewise.
185 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
186 * sysdep.h: Don't include ansidecl.h.
187 * Makefile.am: Run "make dep-am".
188 * Makefile.in: Regenerate.
190 2003-06-27 Nick Clifton <nickc@redhat.com>
192 * deffilep.y (def_file_add_directive): Cope with NUL seperated
193 directives. Fix reporting of unparseable directives.
194 (def_error): Check for a NULL def_filename.
196 2003-06-27 Alan Modra <amodra@bigpond.net.au>
198 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
199 and casts. Replace PTR with void *. Formatting.
200 * emultempl/alphaelf.em: Likewise.
201 * emultempl/armcoff.em: Likewise.
202 * emultempl/armelf.em: Likewise.
203 * emultempl/armelf_oabi.em: Likewise.
204 * emultempl/beos.em: Likewise.
205 * emultempl/elf32.em: Likewise.
206 * emultempl/generic.em: Likewise.
207 * emultempl/gld960.em: Likewise.
208 * emultempl/gld960c.em: Likewise.
209 * emultempl/hppaelf.em: Likewise.
210 * emultempl/linux.em: Likewise.
211 * emultempl/lnk960.em: Likewise.
212 * emultempl/m68hc1xelf.em: Likewise.
213 * emultempl/m68kcoff.em: Likewise.
214 * emultempl/m68kelf.em: Likewise.
215 * emultempl/mipsecoff.em: Likewise.
216 * emultempl/mipself.em: Likewise.
217 * emultempl/mmix-elfnmmo.em: Likewise.
218 * emultempl/mmixelf.em: Likewise.
219 * emultempl/mmo.em: Likewise.
220 * emultempl/needrelax.em: Likewise.
221 * emultempl/netbsd.em: Likewise.
222 * emultempl/pe.em: Likewise.
223 * emultempl/sh64elf.em: Likewise.
224 * emultempl/sunos.em: Likewise.
225 * emultempl/ticoff.em: Likewise.
226 * emultempl/vanilla.em: Likewise.
227 * emultempl/xtensaelf.em: Likewise.
228 * Makefile.am: Correct dependencies.
229 * Makefile.in: Regenerate.
231 2003-06-25 Alan Modra <amodra@bigpond.net.au>
233 * ld.texinfo: Correct spelling of "relocatable".
234 * ldctor.c: Likewise.
236 * ldfile.c: Likewise.
237 * ldint.texinfo: Likewise.
238 * ldlang.c: Likewise.
239 * ldmain.c: Likewise.
240 * ldwrite.c: Likewise.
241 * lexsup.c: Likewise.
242 * emultempl/aix.em: Likewise.
243 * emultempl/alphaelf.em: Likewise.
244 * emultempl/armcoff.em: Likewise.
245 * emultempl/armelf_oabi.em: Likewise.
246 * emultempl/beos.em: Likewise.
247 * emultempl/elf32.em: Likewise.
248 * emultempl/generic.em: Likewise.
249 * emultempl/gld960.em: Likewise.
250 * emultempl/gld960c.em: Likewise.
251 * emultempl/hppaelf.em: Likewise.
252 * emultempl/linux.em: Likewise.
253 * emultempl/lnk960.em: Likewise.
254 * emultempl/m68hc1xelf.em: Likewise.
255 * emultempl/m68kcoff.em: Likewise.
256 * emultempl/m68kelf.em: Likewise.
257 * emultempl/mipsecoff.em: Likewise.
258 * emultempl/mipself.em: Likewise.
259 * emultempl/mmix-elfnmmo.em: Likewise.
260 * emultempl/mmo.em: Likewise.
261 * emultempl/needrelax.em: Likewise.
262 * emultempl/pe.em: Likewise.
263 * emultempl/ppc64elf.em: Likewise.
264 * emultempl/sh64elf.em: Likewise.
265 * emultempl/sunos.em: Likewise.
266 * emultempl/ticoff.em: Likewise.
267 * emultempl/xtensaelf.em: Likewise.
269 2003-06-24 Alan Modra <amodra@bigpond.net.au>
271 * emultempl/ppc32elf.em: Convert to C90.
273 2003-06-20 Alan Modra <amodra@bigpond.net.au>
275 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
276 unnecessary prototypes and casts.
278 2003-06-19 Alan Modra <amodra@bigpond.net.au>
280 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
281 statistics from ppc64_elf_build_stubs.
283 2003-06-19 Alan Modra <amodra@bigpond.net.au>
285 * emultempl/ppc64elf.em (build_section_lists): Check return status
286 from ppc64_elf_next_input_section.
288 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
290 * ldlang.c (section_already_linked): Put back assignment of
293 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
295 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
298 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
300 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
301 if not produced by gcc.
303 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
305 * configure.tgt: Add specific case for cris-*-linux-gnu*
306 with crislinux emulation only.
308 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
310 * configure.tgt: Add i386-netbsd-gnu target.
312 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
314 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
315 to $targ_extra_libpath.
317 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
319 * po/Make-in (DESTDIR): New.
320 (install-data-yes): Support $(DESTDIR).
321 (uninstall): Likewise.
323 2003-06-10 Doug Evans <dje@sebabeach.org>
325 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
326 * Makefile.in: Regenerate.
328 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
330 * configure.tgt (h8300*): Add h8300sxn emulations.
331 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
332 (eh8300sxn.c, eh8300sxnelf.c): New rules.
333 * Makefile.in: Regenerate.
334 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
335 * scripttempl/h8300sxn.sc: New file.
337 2003-06-10 Alan Modra <amodra@bigpond.net.au>
339 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
340 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
342 2003-06-08 Alan Modra <amodra@bigpond.net.au>
344 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
345 (build_toc_list): New function.
346 (gld${EMULATION_NAME}_finish): Call build_toc_list and
347 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
348 (OPTION_STUBSYMS): Define.
349 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
350 (PARSE_AND_LIST_OPTIONS): Document.
351 (PARSE_AND_LIST_ARGS_CASES): Handle.
353 2003-06-05 Roland McGrath <roland@redhat.com>
355 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
356 extra \t in -z noexecstack line.
358 2003-05-23 Jakub Jelinek <jakub@redhat.com>
360 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
361 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
362 -z execstack and -z noexecstack.
363 (gld${EMULATION_NAME}_list_options): Likewise.
364 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
366 2003-06-03 Michael Snyder <msnyder@redhat.com>
367 and Bernd Schmidt <bernds@redhat.com>
368 and Alexandre Oliva <aoliva@redhat.com>
370 * Makefile.am: Add new emulations for h8300sx.
371 * Makefile.in: Regenerate.
372 * configure.tgt: Add new emulations.
373 * emulparams/h8300sx.sh: New emulation.
374 * emulparams/h8300sxelf.sh: Ditto.
375 * scripttempl/h8300sx.sc: Ditto.
377 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
379 * ldmisc.c: Include "bfdlink.h".
380 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
381 and -LD_DEFINITION_IN_DISCARDED_SECTION.
383 * Makefile.am: Rebuild dependency.
384 * Makefile.in: Regenerated.
386 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
388 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
389 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
391 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
393 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
394 sorted alphabetically, instead of exported_symbols, which is
397 2003-05-30 Ulrich Drepper <drepper@redhat.com>
398 Jakub Jelinek <jakub@redhat.com>
400 * lexsup.c (OPTION_PIE): Define.
401 (ld_options): Add -pie and --pic-executable options.
402 (parse_args): Handle OPTION_PIE.
403 * ldmain.c (main): Initialize link_info.pie and
404 link_info.executable.
405 * genscripts.sh: Generate PIE scripts.
406 * ld.texinfo: Document -pie and --pic-executable options.
407 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
408 (gld${EMULATION_NAME}_place_orphan): Likewise.
409 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
410 * scripttempl/elf.sc: In PIE scripts set . the same way as in
412 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
413 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
414 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
415 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
416 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
417 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
418 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
419 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
420 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
421 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
422 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
424 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
426 * genscripts.sh: Create tmpdir/libpath.exp.
428 2003-05-30 Nick Clifton <nickc@redhat.com>
430 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
431 with a test for a NULL bfd_for_interworking.
433 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
435 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
436 correctly for more recent versions of NetBSD.
437 (alpha*-*-netbsd*): Remove.
438 (i[3-7]86-*-netbsd*): Remove.
440 2003-05-29 Nick Clifton <nickc@redhat.com>
442 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
444 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
446 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
447 trap on pointer crops.
449 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
451 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
452 as well as shle-...-netbsdelf.
454 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
456 * configure.host: Accept i[3-7]86 variants.
457 * configure.tgt: Likewise.
459 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
461 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
463 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
465 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
466 (earmelfb.c, earmelfb_linux.c): New rules.
467 * Makefile.in: Regenerated.
468 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
469 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
471 2003-05-09 Nick Clifton <nickc@redhat.com>
473 * ldlang.c (lang_size_sections_1): Default to generating a
474 fatal error message if a loadable section is not allocated
475 to a memory region when regions are defined.
477 2003-05-09 Alan Modra <amodra@bigpond.net.au>
479 * Makefile.am (em68hc11elf.c): Correct dependencies.
480 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
481 * Makefile.in: Regenerate.
482 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
483 bfd_elf_record_link_assignment name.
485 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
487 * ldmain.h (overflow_cutoff_limit): Declare.
488 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
489 (reloc_overflow): Limit error messages based on it.
490 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
493 2003-05-05 Alan Modra <amodra@bigpond.net.au>
495 * ldlex.l: Accept C style comments in version scripts.
497 2003-04-28 H.J. Lu <hjl@gnu.org>
499 * ldlang.c (lang_process): Add the relax finalize pass.
501 * ldmain.c (main): Initialize link_info.relax_finalizing to
504 2003-04-24 Roland McGrath <roland@redhat.com>
506 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
507 If a name string is unknown, give an error rather than crashing later.
509 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
511 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
512 eh8300hnelf.o, eh8300snelf.o and respective rules.
513 * Makefile.in: Regenerate.
514 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
515 * emulparams/h8300hn.sh: New
516 * emulparams/h8300sn.sh: New
517 * emulparams/h8300hnelf.sh: New
518 * emulparams/h8300snelf.sh: New
519 * scripttempl/h8300hn.sc: new
520 * scripttempl/h8300sn.sc: new
522 2003-04-23 H.J. Lu <hjl@gnu.org>
524 * ldmain.c (link_callbacks): Initialize error_handler.
526 * ldmisc.c (error_handler): New function.
528 * ldmisc.h (error_handler): New prototype.
530 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
532 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
533 * emulparams/m68hc11elfb.sh: Likewise.
534 * emulparams/m68hc12elf.sh: Likewise.
535 * emulparams/m68hc12elfb.sh: Likewise.
537 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
539 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
541 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
543 (LDEMUL_FINISH): Override to generate the trampolines after gc and
545 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
546 stub file for trampolines.
547 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
548 --no-trampoline and --bank-window to control the memory bank window.
550 2003-04-18 H.J. Lu <hjl@gnu.org>
552 * ldfile.c (ldfile_add_library_path): Remove the unused
555 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
557 * scripttempl/xstormy16.sc (__data, __rdata): New.
559 2003-04-16 Nick Clifton <nickc@redhat.com>
561 * scripttempl/xstormy16.sc: Add .jcr section mapping.
563 2003-04-15 H.J. Lu <hjl@gnu.org>
565 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
567 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
569 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
571 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
572 * ld.texinfo: Likewise.
574 2003-04-14 Alan Modra <amodra@bigpond.net.au>
576 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
577 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
578 other variants of crtbegin.o, crtend.o.
580 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
581 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
582 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
583 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
584 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
585 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
586 * scripttempl/mmo.sc (ctors, dtors): Likewise.
587 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
589 2003-04-09 Dmitry Diky <diwil@mail.ru>
591 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
592 sections to respect C++ constructor/destructor. Add ctors/dtors
593 start/stop definitions.
594 * scripttempl/elf32msp430_3.sc: Likewise.
596 2003-04-06 Nick Clifton <nickc@redhat.com>
598 * ld.texinfo (Options): Add a reminder of the target specific
599 nature to the description of the i386 PE specific options, for
600 readers who have not read all the way through the manual.
602 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
604 * configure.tgt: Fixed bug in list of targ_extra_emuls.
605 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
606 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
607 * emulparams/tic3xcoff_onchip.sh: Ditto
608 * emulparams/tic4xcoff.sh: Ditto
609 * scripttempl/tic4xcoff.sc: Ditto
611 2003-04-03 Nick Clifton <nickc@redhat.com>
613 * NEWS: Mention support for Xtensa architecture.
615 2003-04-02 Nick Clifton <nickc@redhat.com>
617 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
619 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
621 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
622 Don't call pe_dll_build_section() if link_info.relocateable.
623 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
624 if link_info.relocateable.
626 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
628 * pe-dll.c (process_def_file): Don't create an export
629 section if there are no exports and we're building an exe
630 (pe_dll_build_sections): Ditto
631 (pe_dll_fill_sections): Conditionalize setting
632 abfd->dll true on info->shared
633 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
634 If i386pe or armpe, call pe_dll_build_section()
635 for both exe's and dll's, not just dll's.
636 (gld_${EMULATION_NAME}_finish): For all targets except
637 shpe and mipspe, call pe_dll_fill_sections() for both
638 exe's and dll's, not just dll's.
640 2003-04-02 Bob Wilson <bob.wilson@acm.org>
642 * emulparams/xtensa-config.sh: Remove comment indicating that this is
645 2003-04-01 Bob Wilson <bob.wilson@acm.org>
647 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
648 (eelf32xtensa.c): New target.
649 * Makefile.in: Regenerate.
650 * configure.tgt: Handle xtensa-*-*.
651 * gen-doc.texi: Set XTENSA variable.
652 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
653 * emulparams/elf32xtensa.sh: New file.
654 * emulparams/xtensa-config.sh: Likewise.
655 * emultempl/xtensaelf.em: Likewise.
656 * scripttempl/elfxtensa.sc: Likewise.
658 2003-04-01 Jakub Jelinek <jakub@redhat.com>
660 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
661 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
662 if --enable-64-bit-bfd.
664 2003-04-01 Nick Clifton <nickc@redhat.com>
666 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
668 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
669 name of note section.
671 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
673 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
676 2003-03-31 David Heine <dlheine@suif.stanford.edu>
678 * ldfile.c (ldfile_add_library_path): Always allocate space for
680 * ldlang.c (lang_register_vers_node): Free the node if it cannot
682 * ldmain.c (set_scripts_dir): Always free the constructed
684 (add_keepsyms_file): Fix memory leak.
685 * ldmisc.c (vfinfo): Likewise.
686 * lexsup.c (parse_args): Likewise.
688 2003-03-25 Stan Cox <scox@redhat.com>
689 Nick Clifton <nickc@redhat.com>
691 Contribute support for Intel's iWMMXt chip - an ARM variant:
693 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
694 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
695 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
698 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
700 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
701 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
702 (main): Initialize them.
703 * ldfile.c: Include pathnames.h.
704 (is_sysrooted_pathname): New.
705 (ldfile_add_library_path): Use it.
706 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
707 search_dirs if given an absolute pathname.
708 (ldfile_open_file): Issue error message for sysrooted
710 * Makefile.am: Updated dependencies.
711 * Makefile.in: Rebuild.
713 2003-03-24 Daniel Néri <dne@mayonnaise.net>
715 * ld.texinfo: Rename all occurances of C54X to TIC54X.
717 2003-03-19 Andreas Schwab <schwab@suse.de>
719 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
722 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
724 * deffilep.y (opt_base): If no number given, set to default
727 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
729 * deffilep.y (def_import): Use default extension of "dll"
730 if no extension provided in parsed IMPORT definition.
732 * deffilep.y (def_lex): Revert 2003-03-12 change.
733 (dot_name): New id type and rule.
734 (expline): Use instead of ID.
735 (opt_equal_name): Likewise.
737 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
739 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
741 2003-03-07 Christopher Faylor <cgf@redhat.com>
743 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
744 apparent accidental removal on 2003-01-06.
746 2003-03-04 Dmitry Diky <diwil@mail.ru>
748 * Makefile.am: Add new devices x1122 x1132 emulation
749 * configure.tgt: Likewise.
750 * Makefile.in: Regenerate.
751 * emulparams/msp430x1122.sh: New file.
752 * emulparams/msp430x1132.sh: New file.
754 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
756 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
759 * ldfile.h (struct search_dirs): Added sysrooted field.
760 * ldlang.h (struct lang_input_statement_struct): Likewise.
761 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
762 (ldfile_open_file_search): Look for sysrooted filename starting
763 with / in ld_sysroot instead of in the current directory. Clear
764 sysrooted flag if it's found in the current directory. Set it
765 from the search directory's sysrooted flag where it is found
767 * ldlang.c (ldlang_sysrooted_script): New static variable.
768 (new_afile): Mark search_file_enums as sysrooted if
769 ldlang_sysrooted_script.
770 (load_symbols): Set ldlang_sysrooted_script according to the
771 script's sysrooted field while processing it.
772 * ld.texinfo: Document INPUT behavior in sysroot.
774 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
776 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
778 2003-03-03 Alan Modra <amodra@bigpond.net.au>
780 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
781 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
782 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
783 PARSE_AND_LIST_EPILOGUE): Don't define.
784 * emultempl/alphaelf.em: New file.
786 2003-03-01 Alan Modra <amodra@bigpond.net.au>
788 * ldemul.c: Include getopt.h.
789 * emultempl/elf32.em: Include getopt.h earlier.
790 * emultempl/ticoff.em: Likewise.
792 2003-02-28 Alan Modra <amodra@bigpond.net.au>
794 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
795 support when scripts read from files.
797 2003-02-28 Alan Modra <amodra@bigpond.net.au>
799 * ldemul.c (ldemul_parse_args): Return FALSE by default.
800 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
803 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
804 (ldemul_parse_args): Return bfd_boolean. Formatting.
805 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
806 (ldemul_parse_args): Adjust.
807 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
808 Return bfd_boolean from parse_args.
809 * lexsup.c (parse_args): Malloc shortopts, longopts and
810 really_longopts. Call ldemul_add_options and ldemul_handle_option.
811 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
812 gld${EMULATION_NAME}_parse_args.
813 (gld${EMULATION_NAME}_handle_option): Likewise.
814 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
815 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
816 * emultempl/beos.em: Likewise.
817 * emultempl/pe.em: Likewise.
818 * emultempl/ticoff.em: Likewise.
819 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
820 (gld${EMULATION_NAME}_add_sysroot): Prototype.
821 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
823 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
824 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
825 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
826 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
828 * emultempl/generic.em: Likewise.
829 * emultempl/gld960.em: Likewise.
830 * emultempl/gld960c.em: Likewise.
831 * emultempl/linux.em: Likewise.
832 * emultempl/lnk960.em: Likewise.
833 * emultempl/m68kcoff.em: Likewise.
834 * emultempl/mipsecoff.em: Likewise.
835 * emultempl/sunos.em: Likewise.
836 * emultempl/vanilla.em: Likewise.
837 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
839 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
841 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
842 memory allocation error.
844 * Makefile.am (ldmain.o): Define TOOLBINDIR.
845 * Makefile.in: Rebuilt.
846 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
848 2003-02-21 Bob Wilson <bob.wilson@acm.org>
850 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
851 call os_region_check when it is set.
852 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
853 lang_size_sections_1.
854 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
855 only for the last call, not on every relaxation iteration.
856 * ldlang.h (lang_size_sections): Update prototype.
857 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
858 to lang_size_sections.
859 (pe_exe_fill_sections): Likewise.
860 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
861 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
862 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
863 (ppc_layout_sections_again): Likewise.
865 2003-02-21 Bob Wilson <bob.wilson@acm.org>
867 * gen-doc.texi: Set ARM and HPPA variables.
868 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
869 title capitalization more consistent. Add missing menu entries for
870 machine-specific sections and conditionalize them consistently.
871 Conditionalize text that is irrelevant when SingleFormat is set.
872 Add @group divisions to improve page breaks in long examples.
873 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
874 is correct. Remove "FIXME" comment about not using
875 @raisesections/@lowersections. Use @raisesections/@lowersections
876 consistently for machine-specific sections. Change to be more polite
877 about poor bug reports. Replace FDL appendix with include of fdl.texi.
878 Move WIN32 node to match its order in the menus.
879 * fdl.texi: New file.
881 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
883 * configure.in (TARGET_SYSTEM_ROOT): Set default to
884 ${exec_prefix}/${target_alias}/sys-root. Match explicit
885 '${exec_prefix}' (in addition to the expansion thereof) as
887 * configure: Rebuilt.
889 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
891 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
893 2003-02-20 Harri Porten <porten@kde.org>
895 * ldgram.y (vers_defns): Allow optional trailing semicolon in
898 2003-02-18 Alan Modra <amodra@bigpond.net.au>
900 * emultempl/ppc32elf.em: New file.
901 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
902 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
903 (eelf32lppcnto.c): Likewise.
904 (eelf32lppcsim.c): Likewise.
905 (eelf32ppcnto.c): Likewise.
906 (eelf32ppc.c): Likewise.
907 (eelf32ppc_fbsd.c): Likewise.
908 (eelf32ppcsim.c): Likewise.
909 (eelf32ppclinux.c): Likewise.
910 * Makefile.in: Regenerate.
912 2003-02-18 Alan Modra <amodra@bigpond.net.au>
914 * ld.texinfo: Remove spaces between @samp and opening brace.
916 2003-02-18 Alan Modra <amodra@bigpond.net.au>
918 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
920 (ppc_before_allocation): Don't do optimizations if wrong hash table.
921 (gld${EMULATION_NAME}_finish): Ditto.
923 2003-02-17 Nick Clifton <nickc@redhat.com>
925 * ldmain.c (main) Default allow_shlib_undefined to true.
926 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
927 (parse_args): Parse the new switch.
928 * ld.texinfo: Document new switch and default behaviour of
929 allowing undefined symbols in shared libraries.
931 2003-02-11 Dmitry Diky <diwil@mail.ru>
933 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
934 * scripttempl/elf32msp430_3.sc: Likewise.
936 2003-02-11 Uwe Stieber <uwe@wwws.de>
938 * configure.tgt: Add support for kaOS as cross build target
941 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
943 * hppaelf.em (group_size): Change default back to 1.
945 2003-02-09 Alan Modra <amodra@bigpond.net.au>
947 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
949 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
951 * hppaelf.em (group_size): Change default to -1.
953 2003-02-07 Nick Clifton <nickc@redhat.com>
955 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
957 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
958 no-pipeline-knowledge. This will prevent the getopt package from
959 thinking that there are any shorter abbreviations for
960 --no-pipeline-knowledge.
962 2003-02-07 Jakub Jelinek <jakub@redhat.com>
964 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
965 which already have it. Avoid duplicates.
967 2003-02-06 Jakub Jelinek <jakub@redhat.com>
969 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
970 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
971 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
973 2003-02-05 Alan Modra <amodra@bigpond.net.au>
975 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
976 call ppc64_elf_tls_optimize.
978 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
980 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
981 outside of GNU/Linux conditional.
983 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
985 * deffilep.y (def_get_module): New function: locate an already
987 * deffile.h (def_get_module): New prototype.
988 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
989 a dll multiple times.
991 2003-01-23 Alan Modra <amodra@bigpond.net.au>
993 * emultempl/sh64elf.em: Include elf32-sh64.h.
994 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
995 sh64_elf_section_data.
996 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
998 2003-01-23 Wu Yongwei <adah@netstd.com>
1000 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1001 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1002 cross-80th-column-margin "an" to the next line.
1004 2003-01-21 Nick Clifton <nickc@redhat.com>
1006 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1007 * emulparams/tic3xcoff_onchip.sh: ...this.
1008 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1009 * Makefile.in: Regenerate.
1011 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1013 * configure.tgt: Handle i[3456]86-*-aros*
1015 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1017 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1018 * Makefile.in: Regenerate
1019 * configure.tgt: Added extra target emulations
1020 * emulparams/tic3xcoff.sh: Remove old settings
1021 * emulparams/tic4xcoff.sh: Ditto
1022 * emulparams/tic3xcoff-onchip.sh: Added new
1023 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1024 * scripttempl/tic3xcoff.sc: Remove
1026 2003-01-17 Andreas Jaeger <aj@suse.de>
1028 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1031 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1033 * Makefile.in: Regenerate.
1035 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1037 * ld.texinfo (node WIN32): Some clarifications
1038 and formatting fixups.
1040 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1042 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1043 order, and handle (ignore) -mips32r2.
1045 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1047 * ldmain.c (main): Make sure ld_sysroot is initialized.
1049 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1051 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1053 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1054 (GENSCRIPTS): Add @use_sysroot@.
1055 * Makefile.in: Regenerated.
1056 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1057 * configure.tgt: ... here. Use ${target} instead of ${host}
1058 for NATIVE_LIB_DIRS.
1059 * configure.in: Add --with-sysroot.
1060 * configure: Regenerated.
1061 * genscripts.sh: Accept use_sysroot option. Set new variables
1062 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1063 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1064 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1065 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1066 (ld_sysroot): New variable.
1067 (main): Initialize ld_sysroot.
1068 * ldmain.h (ld_sysroot): New extern.
1069 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1070 searching $EMULATION_LIBPATH.
1071 (gld${EMULATION_NAME}_add_sysroot): New function.
1072 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1073 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1074 environment variables if $NATIVE.
1075 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1076 * NEWS: Mention --with-sysroot.
1078 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1079 instead of setting LIB_PATH.
1080 * emulparams/elf32ppc.sh: Likewise.
1081 * emulparams/elf64_s390.sh: Likewise.
1082 * emulparams/elf64_sparc.sh: Likewise.
1083 * emulparams/elf64ppc.sh: Likewise.
1084 * emulparams/elf_x86_64.sh: Likewise.
1086 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1087 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1089 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1091 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1093 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1095 * Makefile.am (ldmain.o): Pass BINDIR.
1096 * Makefile.in: Regenerated.
1097 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1100 2003-01-02 Ben Elliston <bje@redhat.com>
1102 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1103 (eelf32iq2000.c): New target.
1104 * Makefile.in: Regenerate.
1105 * configure.tgt: Handle iq2000-*-elf.
1106 * emulparams/elf32iq10.sh: New file.
1107 * emulparams/elf32iq2000.sh: New file.
1108 * scripttempl/iq2000.sc: New file.
1110 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1112 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1113 and _pei386_runtime_relocator to the exclude list.
1115 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1117 * ldfile.c: Fix comment typos.
1118 * ldlang.c: Likewise.
1120 * pe-dll.c: Likewise.
1122 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1124 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1125 * Makefile.am (ld.1): Depend on configdoc.texi
1127 * Makefile.in: Regenerated.
1129 2002-12-24 Dmitry Diky <diwil@mail.ru>
1131 * Makefile.am: Add msp430 target.
1132 * configure.tgt: Likewise.
1133 * Makefile.in: Regenerate.
1134 * emulparams/msp430x???.sh: New files. Linker script parameters
1135 for various msp430 configurations.
1136 * gen-doc.texi: Enable msp430 documenation.
1137 * ld.texinfo: Document msp430 sections.
1138 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1139 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1141 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1142 Charles Wilson <cwilson@ece.gatech.edu>
1144 * config.in (HAVE_REALPATH): New entry.
1145 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1147 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1149 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1152 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1154 * ldmain.c (main): Init "strip_discarded".
1155 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1156 (OPTION_NO_STRIP_DISCARDED): Define.
1157 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1158 (parse_args): Handle them.
1160 2002-12-23 Nick Clifton <nickc@redhat.com>
1162 * ld.h (struct args_type): Add new field
1163 'accept_unknown_input_architecture'.
1164 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1166 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1167 bfd_arch_get_compatible.
1168 * ldfile.c (ldfile_try_open_bfd): Likewise.
1169 * lexsup.c (ld_options): Add new command line switch
1170 --accept-unknown-input-architecture and its inverse.
1171 (parse_args): Handle --accept-unknown-input-architecture.
1172 * ld.texinfo: Document new linker option.
1173 * NEWS: Mention new linker option.
1175 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1177 * ldmain.c (main): Re-order link_info initialization. Init all
1180 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1182 * ld.texinfo: Clarify and extend the documentation
1183 in the Machine Dependent, WIN32 section.
1185 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1187 * ld.texinfo: Add win32 machine depending section.
1188 * gen-doc.texi: Enable win32 machine depending section.
1190 * configure.host: Add win32 library search path.
1192 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1194 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1195 import when auto-import is disabled.
1197 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1199 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1200 account for trailing '\0'.
1202 2002-12-17 Nick Clifton <nickc@redhat.com>
1204 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1205 so that it is not confused with -c.
1207 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1208 Charles Wilson <cwilson@ece.gatech.edu>
1210 * configure.in: Add check for realpath function.
1211 * configure: Regenerate.
1212 * config.in: Regenerate.
1213 * aclocal.m4: Regenerate.
1214 * deffile.h: Add .data field to def_file_import
1216 * pe-dll.c (pe_proces_import_defs): Use .data field of
1217 def_file_import structure to initialize flag_data field of
1218 def_file_export structure.
1219 (pe_implied_import_dll): New variables exp_funcbase and
1220 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1221 not filename (which may be a symlink). Scan the sections and
1222 initialize [data|bss]_[start|end]. When scanning the export
1223 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1224 that it is in the .bss or .data sections as data.
1225 * sysdep.h: Include limits.h and sys/param.h, and define
1226 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1227 exists, NULL otherwise.
1228 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1229 pe_process_import_defs before pe_find_data_imports, so that
1230 auto-import will check the virtual implib as well as "real"
1232 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1233 symlinks to their target; check that the target's extension is
1234 .dll before calling pe_implied_import_dll(), not the filename
1235 itself (which may be a symlink).
1237 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1239 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1240 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1243 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1245 * ldlang.h: Formatting.
1247 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1249 * ldlang.c (init_os): Ensure sections mentioned in load_base
1252 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1255 load_base for orphans that follow a section with load_base set.
1257 2002-12-01 H.J. Lu <hjl@gnu.org>
1259 * ld.texinfo: Remove the extra `;' in sample version script.
1261 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1263 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1265 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1266 * Makefile.in: Regenerate.
1268 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1269 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1270 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1271 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1272 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1273 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1274 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1275 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1276 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1277 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1278 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1279 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1280 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1282 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1284 * configure.host: Fix generic FreeBSD configuration entry.
1286 2002-11-27 H.J. Lu <hjl@gnu.org>
1288 * ld.texinfo: Add the missing `;' to sample version scripts.
1290 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1292 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1294 2002-11-14 Egor Duda <deo@logos-m.ru>
1296 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1297 assignment which has no effect.
1298 * pe-dll.h (pe_create_import_fixup): Change prototype.
1299 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1300 (pe_create_runtime_relocator_reference): Ditto.
1301 (pe_create_import_fixup): Handle relocations with non-zero addends.
1302 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1303 --disable-runtime-pseudo-reloc.
1304 (make_import_fixup): Handle relocations with non-zero addends. Create
1305 an external reference to _pei386_runtime_relocator symbol if at least
1306 one pseudo reloc was created.
1307 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1308 --disable-runtime-pseudo-reloc options.
1310 2002-11-12 Earl Chew <earl_chew@agilent.com>
1312 * ldlang.c (lang_add_section): Discard debugging sections that have
1313 been marked SEC_EXCLUDE.
1315 2002-11-12 Nick Clifton <nickc@redhat.com>
1317 * configure.in (ALL_LINGUAS): Add da.
1318 * configure: Regenerate.
1319 * po/da.po: New Danish translation.
1321 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1323 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1324 (LDEMUL_BEFORE_ALLOCATION): Define.
1325 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1327 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1329 2002-11-11 Christopher Faylor <cgf@redhat.com>
1331 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1334 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1336 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1337 of restricted auto-export libs.
1339 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1341 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1342 creative library naming instances like, e.g., libstdc++-2.a.
1344 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1346 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1347 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1349 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1351 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1352 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1353 (make_one): Don't prefix decorated fastcall symbols with '_'.
1354 (pe_process_import_defs): Likewise.
1355 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1356 symbols to cdecl names or vise-versa.
1358 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1360 * pe-dll.c (process_def_file): Handle fastcall symbols when
1361 generating undecorated aliases. Don't prefix decorated fastcall
1363 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1366 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1368 * emultempl/aix.em: Use include <> for generated headers.
1369 * emultempl/beos.em: Likewise.
1370 * emultempl/elf32.em: Likewise.
1371 * emultempl/pe.em: Likewise.
1372 * ldctor.c: Likewise.
1373 * ldexp.c: Likewise.
1374 * ldfile.c: Likewise.
1375 * ldlang.c: Likewise.
1376 * ldlex.c: Likewise.
1377 * ldlex.l: Likewise.
1378 * ldmain.c: Likewise.
1379 * ldmisc.c: Likewise.
1380 * ldwrite.c: Likewise.
1381 * lexsup.c: Likewise.
1383 * pe-dll.c: Likewise.
1385 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1387 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1388 sections into .rel{,a}.dyn.
1390 2002-10-23 Nick Clifton <nickc@redhat.com>
1392 * lexsup.c (OPTION_NO_OMAGIC): Define.
1393 (ld_options): Add "no-omagic" option.
1394 (parse_args): Parse --no-omagic.
1395 * ld.texinfo: Document --no-omagic.
1396 * NEWS: Mention new option.
1398 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1400 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1401 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1403 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1405 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1406 emulation name. Set LIB_PATH only for native tools, and
1407 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1408 .../lib variants, not instead of them. Mostly copied from...
1409 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1410 * emulparams/elf64bmip-defs.sh: Backed out.
1411 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1412 * emulparams/elf64btsmip.sh: Likewise.
1413 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1414 TEXT_DYNAMIC): Removed.
1416 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1418 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1419 (GENERATE_SHLIB_SCRIPT): Set to yes.
1420 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1421 * emulparams/elf32bmipn32.sh: here.
1422 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1423 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1424 * emulparams/elf64bmip-defs.sh: New file. Extend
1425 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1426 * emulparams/elf64bmip.sh: Bring in definitions from
1428 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1430 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1431 * emulparams/elf64btsmip.sh: Bring in definitions from
1433 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1434 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1436 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1438 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1439 (s390-*-linux*): Add elf64_s390 emulation if want64.
1440 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1441 genscript.sh changes.
1442 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1443 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1445 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1447 * ldlang.c (load_symbols): Revert last change.
1449 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1451 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1453 (lang_reasonable_defaults): Don't compare against false.
1454 (size_input_section): Likewise.
1455 (lang_size_sections_1): Likewise.
1456 (lang_do_assignments): Likewise.
1457 (lang_add_output): Likewise.
1459 * Makefile.am: Run "make dep-am".
1460 * Makefile.in: Regenerate.
1461 * ldver.c: #include "bfdver.h".
1463 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1465 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1467 * scripttempl/elfm68hc12.sc: Likewise.
1469 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1471 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1473 * ldgram.y (memory_spec): Provide empty action.
1474 (section <NAME>): Likewise.
1476 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1478 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1479 they have OUTPUT_FORMAT not matching actual output format.
1480 * ldlang.c (lang_get_output_target): New function.
1481 (open_output): Use it.
1482 * ldlang.h (lang_get_output_target): New prototype.
1484 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1486 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1487 when orphan is .rel, .rela when orphan is .rela.
1488 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1489 first. Remove outsecname var.
1491 2002-10-09 Richard Shann <richard.shann@superh.com>
1492 Stephen Clarke <stephen.clarke@superh.com>
1494 * Makefile.am: Add eshelf32_linux.o and
1495 eshlelf32_linux.o, new emulations for sh64 Linux.
1496 * Makefile.in: Regenerate.
1497 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1498 * emulparams/shelf32_linux.sh: New file.
1499 * emulparams/shlelf32_linux.sh: New file.
1501 2002-10-08 H.J. Lu <hjl@gnu.org>
1503 * ldlang.c (lang_file_exist): Removed.
1504 (new_afile): Revert the last change.
1505 * ldlang.h (lang_file_exist): Removed.
1506 * lexsup.c (parse_args): Revert the last change.
1508 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1510 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1511 auto-import symbols.
1512 (make_one): Create _nm_<symbol> for data only.
1514 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1516 * ldlang.c (lang_file_exist): New function.
1517 (new_afile): Abort if the filename to be added matches the linker
1519 * ldlang.h: Add prototype for lang_file_exist.
1520 * lexsup.c (parse_args): Abort if the output filename matches
1521 one of the input filenames.
1523 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1525 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1527 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1529 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1530 * scripttempl/elfm68hc11.sc: Likewise.
1531 * scripttempl/elfm68hc12.sc: Likewise.
1533 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1534 reloc sections just before .rel.plt/.rela.plt.
1535 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1536 Only put loadable reloc sections in hold_rel.
1538 2002-09-29 H.J. Lu <hjl@gnu.org>
1540 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1542 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1544 From "Anita Kulkarni" <AnitaK@kpit.com>
1545 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1548 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1550 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1552 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1553 SEGMENT_SIZE alignment.
1554 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1555 (SEGMENT_SIZE): Define.
1557 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1558 (fold_binary): Correct abs - non-abs case.
1559 (fold_trinary): New. Split out from exp_fold_tree.
1561 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1563 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1564 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1565 for start of .data, instead align up to 256M boundary.
1566 * scripttempl/aix.sc: Likewise.
1568 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1570 * scripttempl/i386go32.sc: Handle bss unique sections.
1572 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1574 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1576 2002-09-17 Stan Cox <scox@redhat.com>
1578 * emulparams/elf32bmipn32-defs.sh: New file.
1579 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1580 * emulparams/elf32btsmipn32.sh: Likewise.
1581 * emulparams/elf64bmip.sh: Likewise.
1582 * emulparams/elf64btsmip.sh: Likewise.
1584 2002-09-16 Bruno Haible <bruno@clisp.org>
1586 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1588 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1589 elf64-alpha-freebsd.
1591 2002-09-11 Nick Clifton <nickc@redhat.com>
1593 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1595 * po/tr.po: Updated Turkish translation.
1597 2002-09-06 Jeffrey A Law (law@redhat.com)
1599 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1601 2002-09-02 Nick Clifton <nickc@redhat.com>
1603 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1605 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1607 2002-08-30 Nick Clifton <nickc@redhat.com>
1609 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1610 used. Change INSN to start at 0x01000000 and extend for
1611 256K (ignoring holes). Start the STACK on a word aligned
1613 (.rodata): Start it at the READONLY_START_ADDR.
1615 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1617 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1619 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1621 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1622 added makefile targets for this file.
1623 * Makefile.in: Regenerate.
1624 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1625 * NEWS: Mention new port.
1627 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1629 * emulparams/tic3xcoff.sh: New file.
1630 * emulparams/tic4xcoff.sh: New file.
1631 * scripttempl/tic3xcoff.sc: New file.
1632 * scripttempl/tic4xcoff.sc: New file.
1634 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1636 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1637 strtoul and strtoull with bfd_scan_vma.
1638 (gld${EMULATION_NAME}_read_file): Likewise.
1640 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1642 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1644 2002-08-27 Egor Duda <deo@logos-m.ru>
1646 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1647 Add symbols for application to access them.
1649 2002-08-27 Nick Clifton <nickc@redhat.com>
1651 * emultempl/armelf.em: Revert this patch, it is not needed.
1653 2002-08-22 Adam Nemet <anemet@lnxw.com>
1655 2002-08-20 Dan Kegel <dank@kegel.com>
1657 * configure.in: added --with-lib-path argument to ld's configure
1659 * NEWS: Document new switch.
1660 * README: Mention new switch.
1661 * configure: Regenerate.
1662 * Makefile.in: Regenerate.
1664 Based on this patch:
1665 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1667 * Makefile.in (LIB_PATH): Make configurable.
1668 (GENSCRIPTS): Set LIB_PATH in environment.
1669 * configure.in: Substitute LIB_PATH.
1671 2002-08-22 Adam Nemet <anemet@lnxw.com>
1673 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1674 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1675 depending on the type of the function.
1676 (arm_elf_convert_thumb_symbol_to_address): New function.
1678 2002-08-22 Graeme Peterson <gp@qnx.com>
1680 * Makefile.am: Add esh{l}elf_nto.o files.
1681 * Makefile.in: Regenerate.
1682 * configure.tgt: Add support for sh-**-nto* targets.
1683 * emulparams/shelf_nto.sh: New file.
1684 * emulparams/shlelf_nto.sh: New file.
1686 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1688 * ldlang.c (offsetof): Define if not defined.
1690 2002-08-14 H.J. Lu <hjl@gnu.org>
1692 * configure.tgt: Always enable 64bit emulations for 32bit
1695 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1697 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1698 (MAXPAGESIZE): Set to 1.
1700 * ld.h (ALIGN_N): Delete.
1701 * ldexp.h (align_n): Declare.
1702 * ldexp.c (align_n): New function.
1703 (fold_binary): Use align_n instead of ALIGN_N.
1704 (exp_fold_tree): Likewise.
1705 * ldlang.c (lang_size_sections_1): Likewise.
1706 (lang_one_common): Likewise.
1707 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1709 2002-07-31 Graeme Peterson <gp@qnx.com>
1711 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1712 * Makefile.am: Add eelf32{l}ppcnto.o files.
1713 * Makefile.in: Regenerate.
1714 * emulparams/elf32lppcnto.sh: New file.
1715 * emulparams/elf32ppcnto.sh: New file.
1717 2002-08-07 H.J. Lu <hjl@gnu.org>
1719 * ld.texinfo: Document --no-undefined-version.
1721 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1722 `script.' fields to 0.
1724 * ldmain.c (main): Initialize the allow_undefined_version to
1727 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1728 (ld_options): Add --no-undefined-version.
1729 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1731 2002-08-07 Nick Clifton <nickc@redhat.com>
1733 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1734 an interworking bfd if there are input bfds. (107501)
1736 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1738 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1741 2002-08-01 Nick Clifton <nickc@redhat.com>
1743 * emulparams/armelf.sh: Revert previous delta.
1744 * scripttempl/elf.sc: Revert previous delta.
1746 2002-07-31 H.J. Lu <hjl@gnu.org>
1748 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1749 --enable-64-bit-bfd.
1751 2002-07-31 H.J. Lu <hjl@gnu.org>
1753 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1754 64bit BFD is selected.
1756 2002-07-31 H.J. Lu <hjl@gnu.org>
1758 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1759 if 64bit BFD is selected.
1761 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1763 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1764 link_info.common_skip_ar_aymbols.
1765 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1767 * ldmain.c (main): Initialize new field
1768 link_info.common_skip_ar_aymbols.
1770 2002-07-31 Adam Nemet <anemet@lnxw.com>
1772 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1774 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1777 2002-07-31 Nick Clifton <nickc@redhat.com>
1779 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1780 of the PDP-11 and 2.11BSD a.out support.
1782 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1784 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1785 for n32 ABI support.
1786 * Makefile.in: Regenerate.
1787 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1788 n32 ABI emulations for these 64 bit targets.
1789 * emulparams/elf32bmipn32.sh: Expand comment.
1790 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1792 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1794 2002-07-30 Graeme Peterson <gp@qnx.com>
1796 * configure.tgt: Add support for arm-*-nto target.
1797 * Makefile.am: Add earmnto.o file.
1798 * Makefile.in: Regenerate.
1799 * NEWS: Mention port of ARM support to QNX.
1800 * emulparams/armnto.sh: New file.
1802 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1804 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1805 for relocatable link.
1806 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1809 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1811 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1814 2002-07-25 Nick Clifton <nickc@redhat.com>
1816 * po/sv.po: Updated Swedish translation.
1817 * po/es.po: Updated Spanish translation.
1818 * po/fr.po: Updated French translation.
1820 2002-07-24 Nick Clifton <nickc@redhat.com>
1822 * po/sv.po: Updated Swedish translation.
1823 * po/es.po: Updated Spanish translation.
1825 2002-07-23 Nick Clifton <nickc@redhat.com>
1827 * po/fr.po: Updated French translation.
1829 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1831 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1832 bomb on /DISCARD/ input section.
1833 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1834 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1836 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1838 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1841 2002-07-16 Denis Chertykov <denisc@overta.ru>
1842 Nick Clifton <nickc@redhat.com>
1843 Frank Ch. Eigler <fche@redhat.com>
1844 John Healy <jhealy@redhat.com>
1846 * configure.tgt: Add support for ip2k-elf.
1847 * Makefile.am: Add support for ip2k-elf.
1848 * Makefile.in: Regenerate.
1849 * emulparams/elf32ip2k.sh: New file.
1850 * scripttempl/ip2k.sc: New file
1851 * NEWS: Mention support for new port.
1853 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1855 * NEWS: Add 'Changes in 2.13'.
1857 2002-07-14 H.J. Lu <hjl@gnu.org>
1859 * ld.texinfo: Document a .symver takes precedence over a
1862 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1864 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1865 (COMMONPAGESIZE): Define.
1867 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1869 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1871 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1873 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1874 powerpc-*-openbsd* and sparc64-*-openbsd*.
1875 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1876 * Makefile.in: Regenerate.
1877 * emulparams/hppaobsd.sh: New file.
1879 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1881 * ldlang.c (print_wild_statement): Fix output formatting.
1883 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1885 * ldlang.c: (strip_excluded_output_sections): New function.
1886 (lang_process): Call it.
1887 (lang_size_sections_1): Revert 2002-06-10 change.
1889 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1891 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1893 * Makefile.in: Regenerate.
1895 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1897 * ldfile.c (ldfile_try_open_bfd): Formatting.
1899 * ldmisc.c (demangle): Move so that it doesn't intrude between
1900 vfinfo comment and body. Add comment.
1902 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1904 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1906 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1908 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1909 * ldlang.c (entry_sym): Likewise.
1910 (ldlang_undef_chain_list_type): Likewise.
1911 (lang_finish): Adjust references to entry_symbol.
1912 (lang_add_entry): Likewise.
1913 (lang_gc_sections): Use link_info.gc_sym_list.
1914 (lang_process): Set link_info.gc_sym_list.
1915 * ldlex.l: Include bfdlink.h.
1916 * ldmain.c (main): Init link_info.gc_sym_list.
1917 * emultempl/aix.em: Adjust references to entry_symbol.
1918 * emultempl/armcoff.em: Likewise.
1919 * emultempl/armelf.em: Likewise.
1920 * emultempl/pe.em: Likewise.
1921 * emultempl/ppc64elf.em (ppc_after_open): New function.
1922 (LDEMUL_AFTER_OPEN): Define.
1923 * emulparams/elf64ppc.sh: KEEP .opd sections.
1925 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1927 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1928 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1929 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1930 (EEPROM_START_ADDR): Define.
1931 (EEPROM_MEMORY): Define.
1932 * emulparams/m68hc12elf.sh: Likewise.
1933 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1934 section to put soft registers in .page0.
1935 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1937 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1939 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1940 section. Add ${RELOCATING-0}.
1942 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1944 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1945 (OTHER_SECTIONS): Define.
1946 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1947 (OTHER_SECTIONS): Undef.
1949 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1951 * ldmisc.c (demangle): Restore dots stripped from sym name.
1953 2002-06-25 H.J. Lu <hjl@gnu.org>
1955 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1956 * Makefile.in: Regenerated.
1958 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1960 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1961 the size of attached object files, to allow make the object files
1962 available via FTP or HTTP and to mention that the mail will be
1963 sent to a mailing list.
1965 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1967 * configure.host (romp): Drop support.
1969 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1971 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1972 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1974 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1976 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1977 format specifier used to print BFD name.
1979 2002-06-18 Dave Brolley <brolley@redhat.com>
1981 From Catherine Moore, Michael Meissner, Jim Blandy:
1982 * emulparams/elf32frv.sh: New file.
1983 * configure.tgt: Support frv-*-*.
1984 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1985 (eelf32frv.c): New target.
1987 2002-06-17 Tom Rix <trix@redhat.com>
1989 * emultempl/elf32.em: gld*_get_script: Check for
1990 GENERATE_COMBRELOC_SCRIPT.
1991 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1992 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1994 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1996 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1998 2002-06-12 H.J. Lu <hjl@gnu.org>
2000 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2001 false if xvec doesn't match.
2003 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2005 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2007 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2009 * ldexp.c: Replace CONST with const.
2010 * ldfile.c: Likewise.
2011 * ldfile.h: Likewise.
2012 * ldlex.l: Likewise.
2014 * pe-dll.h: Likewise.
2016 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2018 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2020 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2022 * ldmain.c (main): initialize link_info.pei386_auto_import
2023 to -1 == implicit enable.
2024 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2025 initialize link_info.pei386_auto_import to -1 == implicit
2027 (gld_${EMULATION_NAME}_parse_args): When processing
2028 --enable-auto-import and --disable-auto-import options, use
2029 '1' and '0' instead of 'true' and 'false'.
2030 (pe_find_data_imports): Only issue message about auto-import
2031 when the feature is implicitly enabled. Downgrade message to
2032 informational instead of warning.
2034 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2036 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2038 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2040 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2041 HOSTING_CRT0 and HOSTING_LIBS.
2043 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2045 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2047 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2049 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2050 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2052 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2055 SEC_EXCLUDE sections when doing a relocatable link.
2057 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2059 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2060 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2061 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2062 (eshlelf64_nbsd.c): New rules.
2063 * Makefile.in: Regenerate.
2064 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2065 (sh64-*-netbsd*): New targets.
2066 * emulparams/shelf32_nbsd.sh: New file.
2067 * emulparams/shelf64_nbsd.sh: New file.
2068 * emulparams/shlelf32_nbsd.sh: New file.
2069 * emulparams/shlelf64_nbsd.sh: New file.
2071 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2073 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2075 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2077 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2078 C++ constructors/destructors, loosely based on the m68hc11 port.
2080 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2082 * Makefile.in: Regenerate.
2083 * aclocal.m4: Regenerate.
2084 * config.in: Regenerate.
2085 * configure: Regenerate.
2087 2002-05-31 Graeme Peterson <gp@qnx.com>
2089 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2090 (ei386nto.c): Add rule.
2091 * Makefile.in: Regenerate.
2092 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2093 * emulparams/i386nto.sh: New file.
2095 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2097 * NEWS: Add entry for VAX ELF support.
2099 2002-05-29 Matt Thomas <matt@3am-software.com>
2100 Jason Thorpe <thorpej@wasabisystems.com>
2102 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2104 (evaxnbsd.c): New rules.
2105 * Makefile.in: Regenerate.
2106 * configure.tgt (vax-*-netbsdelf*)
2108 (vax-*-netbsd*): New targets.
2109 * emulparams/elf32vax.sh: New file.
2110 * emulparams/vaxnbsd.sh: New file.
2112 2002-05-29 Adam Nemet <anemet@lnxw.com>
2114 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2115 bfd_for_interwork, instead add glue sections to each input bfd.
2116 (bfd_for_interwork): New global.
2117 (arm_elf_set_bfd_for_interworking): New function.
2118 (arm_elf_before_allocation): Use it.
2120 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2122 * Makefile.am: Add DLX make target.
2123 * configure.tgt: Add DLX configuration.
2124 * Makefile.in: Regenerate.
2125 * emulparams/elf32_dlx.sh: New file
2126 * scripttempl/dlx.sc: New file
2128 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2130 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2131 * Makefile.in: Regenerate.
2132 * emulparams/elf_chaos.sh: Use elf_chaos script.
2133 * scripttempl/elf_chaos.sc: New file.
2135 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2137 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2138 addresses and regions from here...
2139 (lang_get_regions): ...to this new function.
2140 (lang_leave_output_section_statement): Use lang_get_regions.
2141 (lang_leave_overlay): Likewise.
2142 * mri.c (mri_draw_tree): Pass null as last argument to
2143 lang_leave_output_section_statement.
2144 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2145 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2146 * emultempl/pe.em (gld*_place_orphan): Likewise.
2148 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2150 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2152 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2154 * ldemul.c: Fix formatting.
2155 * ldfile.c: Likewise.
2156 * pe-dll.c: Likewise.
2157 * pe-dll.h: Likewise.
2159 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2161 * ldlang.c (lang_process): Formatting, grammar.
2163 * ldlex.l: Use #include "" instead of <> for local header files.
2165 2002-05-24 TAMURA Kent <kent@netbsd.org>
2167 * configure.tgt: Add a target for i386-netbsdpe.
2169 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2171 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2172 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2173 output section if necessary. Handle .tbss.
2174 (lang_size_sections): Clear _raw_size for .tbss section
2175 (it allocates space in PT_TLS segment only).
2176 * ldwrite.c (build_link_order): Build link order for .tbss too.
2178 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2180 * configure.in: Correct spelling of AC_PREREQ.
2182 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2184 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2186 (autofilter_objlist): Add crtbegin.o, crtend.o.
2188 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2190 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2191 (longopts): Add new option --exclude-libs.
2192 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2193 (gld_${EMULATION_NAME}_parse_args): Use it.
2194 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2195 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2196 from whole archives.
2197 (pe_dll_add_excludes): Set excludes->type.
2198 (auto_export): Add new variable libname and set to archive basename if
2199 abfd. Use it when filtering default and user-specified libarary
2200 excludes. Let string "ALL" mean all libs when filtering user-specified
2202 * ld.texinfo: Document --exclude-libs.
2204 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2206 * ldemul.c (ldemul_new_vers_pattern): New function.
2207 * ldemul.h (ldemul_new_vers_pattern): Declare.
2208 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2209 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2210 * emultempl/ppc64elf.em (dotsyms): New static var.
2211 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2212 (LDEMUL_NEW_VERS_PATTERN): Define.
2213 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2214 (PARSE_AND_LIST_LONGOPTS): Likewise.
2215 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2216 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2218 * emultempl/armcoff.em: Likewise.
2219 * emultempl/armelf_oabi.em: Likewise.
2220 * emultempl/beos.em: Likewise.
2221 * emultempl/elf32.em: Likewise.
2222 * emultempl/generic.em: Likewise.
2223 * emultempl/gld960.em: Likewise.
2224 * emultempl/gld960c.em: Likewise.
2225 * emultempl/linux.em: Likewise.
2226 * emultempl/lnk960.em: Likewise.
2227 * emultempl/m68kcoff.em: Likewise.
2228 * emultempl/mipsecoff.em: Likewise.
2229 * emultempl/pe.em: Likewise.
2230 * emultempl/sunos.em: Likewise.
2231 * emultempl/ticoff.em: Likewise.
2232 * emultempl/vanilla.em: Likewise.
2234 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2236 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2237 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2238 (LIB_SEARCH_DIRS): No need to use "tr".
2239 (COMPILE_IN): Only set for native targets.
2240 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2241 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2242 * configure.tgt (powerpc*): Set tdir_*.
2243 (powerpcle*): Correct targ_extra_emuls.
2244 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2245 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2247 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2249 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2250 calling lang_add_entry.
2252 2002-05-21 H.J. Lu (hjl@gnu.org)
2254 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2256 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2258 * ld.texinfo: Updated for --allow-multiple-definition and
2261 * ldmain.c (main): Initialize the allow_multiple_definition
2264 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2265 (ld_options): Add --allow-multiple-definition.
2266 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2268 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2270 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2271 (earmelfb_nbsd.c): New rule.
2272 * Makefile.in: Regenerate.
2273 * configure.tgt (armeb-*-netbsdelf*): New target.
2274 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2275 (arm-*-netbsd*): Likewise.
2276 * emulparams/armelfb_nbsd.sh: New file.
2278 2002-05-18 Tom Rix <trix@redhat.com>
2280 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2283 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2285 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2286 * Makefile.in: Regenerate.
2287 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2289 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2291 * emulparams/avr1.sh: New file.
2292 * emulparams/avr2.sh: New file.
2293 * emulparams/avr3.sh: New file.
2294 * emulparams/avr4.sh: New file.
2295 * emulparams/avr5.sh: New file.
2296 * scripttempl/avr.sc: New file.
2298 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2300 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2301 (lang_place_orphans): Abort if just_syms_flag.
2303 2002-05-10 Tom Rix <trix@redhat.com>
2305 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2306 architecture and machine information in the output bfd.
2307 (gld*_before_parse): Remove old arch and machine code.
2308 (choose_target): Rename to gld*_choose_target.
2309 (rtld): Change type to int.
2310 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2311 objects in XCOFF archives.
2312 * ldfile.h: Update copyright date.
2314 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2316 * ldmain.c (main): Enable -z combreloc by default.
2318 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2320 * Makefile.am: Honour DESTDIR.
2321 * Makefile.in: Regenerate.
2323 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2325 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2326 (lang_enter_overlay): Remove the last two parameters.
2327 (lang_leave_overlay): Take them here instead.
2328 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2329 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2330 than lang_enter_overlay.
2331 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2332 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2333 (lang_size_sections_1): Evaluate it.
2334 (lang_leave_output_section_statement): Rework LMA lookup.
2335 (overlay_lma, overlay_nocrossrefs): Remove.
2336 (lang_enter_overlay): Remove LMA and crossref arguments.
2337 (lang_enter_overlay_section): Don't set the LMA here.
2338 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2339 assignment to the last section's update_dot_tree. Unconditionally
2340 use the load and run-time regions specified in the OVERLAY statement.
2341 Likewise the first section's LMA. Only set the other sections' LMAs
2342 when no load region is given.
2344 2002-05-06 Nick Clifton <nickc@redhat.com>
2346 * po/sv.po: New translation.
2348 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2350 * emultempl/hppaelf.em (build_section_lists): New function.
2351 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2352 and build_section_lists.
2354 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2356 * ld.h: Fix formatting.
2357 * ldexp.c: Likewise.
2358 * ldfile.c: Likewise.
2359 * ldlang.c: Likewise.
2360 * ldmain.c: Likewise.
2361 * lexsup.c: Likewise.
2362 * pe-dll.c: Likewise.
2364 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2366 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2367 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2368 (build_section_lists): Do output_section tests here.
2370 2002-04-30 Tom Rix <trix@redhat.com>
2372 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2374 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2376 Long branch stubs, multiple stub sections.
2377 * emultempl/ppc64elf.em: Include ldctor.h.
2378 (stub_file): New var.
2379 (group_size): New var.
2380 (ppc_create_output_section_statements): New function.
2381 (struct hook_stub_info): New.
2382 (hook_in_stub): New function.
2383 (ppc_add_stub_section): New function.
2384 (ppc_layout_sections_again): New function.
2385 (build_section_lists): New function.
2386 (gld${EMULATION_NAME}_finish): Rewrite.
2387 (real_func): New var.
2388 (ppc_for_each_input_file_wrapper): New function.
2389 (ppc_lang_for_each_input_file): New function.
2390 (lang_for_each_input_file): Define.
2391 (PARSE_AND_LIST_PROLOGUE): Define.
2392 (PARSE_AND_LIST_LONGOPTS): Define.
2393 (PARSE_AND_LIST_OPTIONS): Define.
2394 (PARSE_AND_LIST_ARGS_CASES): Define.
2395 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2397 2002-04-30 Tom Rix <trix@redhat.com>
2399 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2400 -blibpath, -bnolibpath support.
2402 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2404 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2405 (eelf32ppcwindiss.c): New target.
2406 * Makefile.in: Regenerated.
2407 * configure.tgt: Add support for powerpc-*-windiss.
2408 * emulparams/elf32ppcwindiss.sh: New file.
2410 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2412 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2413 * ldexp.c (exp_print_token): Add "infix_p" argument.
2414 (exp_print_tree): Update accordingly.
2416 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2418 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2419 * Makefile.in: Regenerate.
2420 * mpw-elfmips.c: Delete.
2421 * mpw-eppcmac.c: Delete.
2422 * mpw-esh.c: Delete.
2423 * mpw-idtmips.c: Delete.
2425 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2427 * emulparams/shelf32.sh (MACHINE): Now sh5.
2429 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2431 * ldgram.y: Fix syntax warning.
2433 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2435 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2436 to prevent "-n" from being taken as an abbreviation for
2437 "--no-pipeline-knowledge".
2439 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2441 * ldlang.c (lang_size_sections_1): Don't complain about
2442 SEC_NEVER_LOAD sections having no memory region specified.
2444 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2446 2002-04-07 matthew green <mrg@redhat.com>
2448 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2450 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2452 * dep-in.sed: Cope with absolute paths.
2453 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2455 * Makefile.in: Regenerate.
2457 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2459 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2461 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2463 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2464 is smaller than maximum, round dot up to common page boundary.
2466 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2468 * configure.host: Set up for generic hosts first, then tweak as
2469 necessary in more specific targets.
2470 (HOSTING_LIBS): Include libgcc_eh.a if found.
2472 2002-03-23 Andreas Jaeger <aj@suse.de>
2474 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2476 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2478 * Makefile.am: Run "make dep-am".
2479 * Makefile.in: Regenerate.
2481 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2483 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2485 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2487 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2488 add the symbol to the linker hash table immediately.
2489 (lang_place_undefineds): Split symbol creation out..
2490 (insert_undefined): ..to here.
2492 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2494 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2495 the contents of the buffer returned from basename function will are
2496 getting overwritten while still being used.
2498 2002-03-18 Jan Hubicka <jh@suse.cz>
2499 Andreas Jaeger <aj@suse.de>
2500 Andreas Schwab <schwab@suse.de>
2502 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2503 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2504 set libraries to default to lib64 paths.
2506 2002-03-18 Tom Rix <trix@redhat.com>
2508 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2509 * configure.tgt : Same.
2510 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2511 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2512 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2513 emulation parameters for better -b32, -b64 support.
2514 * emulparms/aixrs6.sh : Same.
2515 * emulparms/ppcmacos.sh : Same.
2516 * emultempl/aix.em (choose_target) : Use new emulation parameters
2517 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2518 * Makefile.in : Regenerate.
2520 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2522 * po/fr.po: Updated version.
2524 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2526 * ldmain.c (main): Move .text readonly flag fudges from here..
2527 * ldlang.c (lang_process): ..to here.
2529 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2531 * ldlang.c (lang_check): Remove the word size check added in last
2532 change. Treat emitrelocations case as for relocatable links.
2534 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2536 * po/fr.po: Updated version.
2538 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2540 * ldlang.c (lang_check): Do relocatable link checks first, so that
2541 warn_mismatch can't override. Check compatible and word size too.
2543 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2545 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2547 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2549 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2552 2002-03-04 H.J. Lu <hjl@gnu.org>
2554 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2555 .fini_array in the data segment.
2557 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2559 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2561 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2563 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2564 .init_array, and .fini_array.
2566 2002-02-20 Andreas Schwab <schwab@suse.de>
2568 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2569 .IA64_unwind* in a relocatable link.
2571 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2573 * NEWS: Mark 2.12 branch.
2575 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2577 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2578 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2580 2002-02-18 Tom Rix <trix@redhat.com>
2582 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2583 (gld*_before_allocation): Same.
2584 (gld*_create_output_section_statements): Generate
2585 __rtinit if run time linking. Add librtl.a to the link.
2586 (gld*_read_file): Clean.
2588 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2590 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2592 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2594 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2595 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2596 and eelf64alpha_fbsd.
2597 * Makefile.in: Regenerate.
2598 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2599 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2600 use a FreeBSD-specific emulation rather than the psABI one.
2601 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2602 for all FreeBSD ELF systems.
2603 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2605 * emulparams/elf32ppc_fbsd.sh: Likewise.
2606 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2607 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2608 * emulparams/elf64alpha_fbsd.sh: Likewise.
2609 * emulparams/elf_i386_fbsd.sh: Likewise.
2610 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2612 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2614 * po/tr.po: Updated version.
2616 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2618 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2621 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2623 * emultempl/mmo.em (mmo_after_open): Don't call
2624 _bfd_mmix_check_all_relocs when producing ELF output.
2626 2002-02-15 Richard Henderson <rth@redhat.com>
2628 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2629 definition. Emit a unop+nop pair.
2631 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2633 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2634 for presence of .MMIX.reg_contents.linker_allocated before early
2637 * NEWS: Mention support for MMIX.
2639 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2641 Support arbitrary length fill patterns.
2642 * ld.texinfo (Output Section Fill): Describe fill expressions.
2643 (FILL): Refer to the above.
2644 * ldexp.h (etree_value_type): Add "str" field.
2645 (union etree_union): Add "str" to "value" struct.
2646 (exp_bigintop): Declare.
2647 (exp_get_fill): Declare.
2648 * ldexp.c: Include "safe-ctype.h".
2649 (exp_intop): Set value.str to NULL.
2650 (exp_bigintop): New function.
2651 (new_rel): Pass in "str", and set new.str from it.
2652 (new_rel_from_section): Set new.str to NULL.
2653 (fold_name): Adjust calls to new_rel.
2654 (exp_fold_tree): Likewise.
2655 (exp_get_fill): New function.
2656 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2657 (INT): Returns a "bigint". Adjust all code handling INTs.
2658 (fill_opt): Returns a "fill".
2659 (fill_exp): Split out of fill_opt, use for FILL.
2660 * ldlang.h (struct _fill_type): New.
2661 (fill_type): Move typedef to ldexp.h.
2662 (lang_output_section_statement_type): "fill" is now a pointer.
2663 (lang_fill_statement_type): Likewise.
2664 (lang_padding_statement_type): Likewise.
2665 (lang_add_fill): Now takes a "fill_type *" param.
2666 (lang_leave_output_section_statement): Likewise.
2667 (lang_do_assignments): Likewise.
2668 (lang_size_sections): Likewise.
2669 (lang_leave_overlay_section): Likewise.
2670 (lang_leave_overlay): Likewise.
2671 * ldlang.c: Include ldgram.h after ldexp.h.
2672 (lang_output_section_statement_lookup): Adjust for fill_type change.
2673 (print_fill_statement): Likewise.
2674 (print_padding_statement): Likewise.
2675 (insert_pad): Now takes a "fill_type *" arg.
2676 (size_input_section): Likewise.
2677 (lang_size_sections_1): Likewise.
2678 (lang_size_sections): Likewise.
2679 (lang_do_assignments): Likewise.
2680 (lang_add_fill): Likewise.
2681 (lang_leave_output_section_statement): Likewise.
2682 (lang_leave_overlay_section): Likewise.
2683 (lang_leave_overlay): Likewise.
2684 Adjust all callers of the above function.
2685 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2686 starting with "0X" as well as "0x". Return bigint.str for hex
2687 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2688 Always use base 16 for numbers starting with "$".
2689 * ldmain.c: Include ldgram.h after ldexp.h.
2690 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2691 of bfd_fill_link_order.
2692 * pe-dll.c: Adjust lang_do_assignments calls.
2693 * emultempl/elf32.em: Likewise.
2694 * emultempl/hppaelf.em: Likewise.
2695 * emultempl/ppc64elf.em: Likewise.
2696 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2697 lang_add_assignment call.
2698 * emultempl/pe.em: Likewise.
2700 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2702 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2703 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2704 the pattern in question is not a regexp.
2705 * ldlang.c: Likewise.
2706 * ldlang.h: Likewise.
2707 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2709 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2711 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2712 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2713 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2714 * ldexp.c (exp_data_seg): New variable.
2715 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2716 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2717 (exp_fold_tree): Handle DATA_SEGMENT_END.
2718 Pass allocation_done when recursing instead of hardcoding
2719 lang_allocating_phase_enum.
2720 * ldexp.h (exp_data_seg): New.
2721 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2722 (lang_size_sections): New.
2723 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2724 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2725 if COMMONPAGESIZE is defined.
2726 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2727 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2728 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2729 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2730 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2733 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2735 * Makefile.in: Regenerate.
2737 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2739 * lexsup.c: Remove strtoul declaration.
2741 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2743 * ldmain.c: Add prototype for main ().
2744 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2745 * emultempl/lnk960.em (lnk960_choose_target): Function should
2748 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2750 * ldlang.c (entry_section): New initialised variable.
2751 (lang_finish): Use it.
2752 * ldlang.h (entry_section): Declare.
2753 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2754 entry_section to ".opd".
2756 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2758 * ld.texinfo (Options): Add back in -nostdlib documentation,
2759 which had been inadvertently removed.
2761 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2763 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2764 register section vma to a sane value after emitting error. Make
2765 fatal conditions cause program exit when emitting message.
2767 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2769 * configure.tgt: Add or32-*-rtems target.
2771 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2773 Contribute sh64-elf.
2774 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2775 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2776 in OTHER_RELOCATABLE_SECTIONS.
2777 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2778 * emulparams/shelf32.sh (STACK_ADDR): Define.
2779 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2780 (OTHER_SECTIONS): this. Removed stack settings.
2781 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2782 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2783 2001-03-12 DJ Delorie <dj@redhat.com>
2784 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2785 relaxing if any shmedia or mixed sections are found.
2786 2001-03-07 DJ Delorie <dj@redhat.com>
2787 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2788 einfo. Gracefully decline to output to non-elf formats.
2789 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2790 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2791 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2792 * emulparams/shelf32.sh: Ditto.
2793 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2794 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2796 2001-01-10 Ben Elliston <bje@redhat.com>
2797 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2798 non-portable shell constructs. From Hans-Peter Nilsson.
2799 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2800 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2801 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2802 dependencies to the shell script include chain.
2803 * Makefile.in: Regenerate.
2804 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2805 * emultempl/sh64elf.em: Update and tweak comments.
2806 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2807 make a .cranges section SEC_IN_MEMORY.
2808 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2809 * emultempl/sh64elf.em
2810 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2811 .cranges section found to be necessary; continue and set stored
2812 section contents flags for sections with non-mixed contents.
2813 Use a struct sh64_section_data container and sh64_elf_section_data
2814 to store contents-type flags.
2815 Remove unused update of "isec".
2816 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2817 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2818 access contents-type flags. Assert that the associated container
2819 is initialized. Use that container, not elf_gp_size, to hold size
2820 of linker-generated cranges contents.
2821 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2822 * emultempl/sh64elf.em
2823 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2824 there's already a .cranges section. When section flag difference
2825 is found, don't NULL-check cranges a second time. Tweak comments.
2826 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2827 merging, not max size, as size of ld-generated .cranges contents.
2828 Don't set ELF section flags in output section. When checking for
2829 needed .cranges descriptors, don't use a variable; compare
2830 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2832 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2833 * emultempl/sh64elf.em: New file.
2834 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2835 * Makefile.in: Regenerate.
2836 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2837 (OTHER_RELOCATING_SECTIONS): Ditto.
2838 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2839 * emulparams/shlelf32.sh: Stub out all settings except
2840 OUTPUT_FORMAT. Source shelf32.sh.
2841 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2842 OTHER_RELOCATING_SECTIONS.
2843 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2844 * emulparams/shlelf64.sh: Stub out all settings except
2845 OUTPUT_FORMAT. Source shelf64.sh.
2846 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2847 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2849 (DATA_START_SYMBOLS): Define, provide ___data.
2850 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2851 for consecutive .data section.
2852 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2853 section after .data section.
2854 * emulparams/shlelf64.sh: Ditto.
2855 * emulparams/shelf32.sh: Ditto.
2856 (ALIGNMENT): Define to 8.
2857 * emulparams/shelf32.sh: Ditto.
2858 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2859 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2860 built-in linker scripts.
2861 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2862 * emulparams/shlelf64.sh: New.
2863 * emulparams/shelf64.sh: New.
2864 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2866 * Makefile.am: Add support for shlelf64 and shelf64.
2867 * Makefile.in: Regenerate.
2868 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2869 * configure.tgt (sh64-*-elf*): Add shelf as default.
2870 Add shlelf to targ_extra_emuls.
2871 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2872 * emulparams/shelf32.sh: New file.
2873 * emulparams/shlelf32.sh: New file.
2874 * Makefile.am: Add support for shlelf32 and shelf32.
2875 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2876 * Makefile.in: Regenerate.
2878 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2880 * ldlang.c (lang_reset_memory_regions): Rename from
2881 reset_memory_regions. Change all callers. Make public.
2882 * ldlang.h (lang_reset_memory_regions): Prototype.
2883 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2884 lang_reset_memory_regions before lang_size_sections.
2885 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2886 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2888 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2890 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2891 arithmetic when checking for too many global registers.
2893 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2895 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2896 (ehppanbsd.c): New rule.
2897 * Makefile.in: Regenerate.
2898 * configure.tgt (hppa*-*-netbsd*): New target.
2899 * emulparams/hppalinux.sh: Add comment to check other files
2900 that source this file it is modified, and list which
2902 * emulparams/hppanbsd.sh: New file.
2904 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2906 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2909 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2911 Support on-demand global register allocation from
2912 R_MMIX_BASE_PLUS_OFFSET relocs.
2913 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2914 mmix_set_reg_section_vma. Call
2915 _bfd_mmix_finalize_linker_allocated_gregs.
2916 (mmix_before_allocation): New function.
2917 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2918 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2919 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2920 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2921 before .MMIX.reg_contents.
2922 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2923 (mmo_after_open): New function.
2924 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2925 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2926 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2928 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2930 * emulparams/or32.sh: New file.
2931 * emulparams/or32elf.sh: New file.
2932 * scripttempl/or32.sc: New file.
2933 * configure.tgt : Add support for or32.
2934 * configure: Regenerate
2935 * Makefile.am: Add support for or32.
2936 * Makefile.in: Regenerate.
2937 * NEWS: Mention support for or32.
2938 * po/ld.pot: Regenerate.
2940 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2941 Mitch Lichtenberg <mpl@broadcom.com>
2943 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2944 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2945 reloc creation (ld --embedded-relocs).
2947 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2949 * configure: Regenerated.
2951 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2953 * Makefile.am (install): Depend on install-info.
2954 * Makefile.in: Regenerate.
2956 2002-01-26 Christian Rose <menthos@menthos.com>
2958 * ldmain.c (main): Use full sentences to ease translation.
2960 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2962 * po/fr.po: Updated version.
2964 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2966 * po/es.po: Updated version.
2968 2002-01-25 Andreas Jaeger <aj@suse.de>
2970 * ldlex.l (yy_input): Correct error check.
2972 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2974 * ldmisc.c (demangle): Put back dots when string not demangled.
2976 2002-01-22 Richard Henderson <rth@redhat.com>
2978 * emulparams/elf64alpha.sh (NOP): Use unop.
2980 2002-01-21 Andreas Jaeger <aj@suse.de>
2982 * ldlex.l: Use fread instead of read.
2984 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2986 * configure.tgt (ia64-*-netbsd*): New target.
2988 2002-01-21 H.J. Lu <hjl@gnu.org>
2990 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2992 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2994 2002-01-18 Andreas Jaeger <aj@suse.de>
2996 * ldver.c (ldversion): Update year.
2998 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3000 * po/ld.pot: Regenerate.
3002 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3004 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3005 * Makefile.in: Regenerate.
3006 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3007 * emultempl/ppc64elf.em: New file.
3009 2002-01-15 DJ Delorie <dj@redhat.com>
3011 * scripttempl/pe.sc: Add support for constructor priorities.
3013 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3015 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3016 * emulparams/avr23xx.sh: Likewise.
3017 * emulparams/avr4433.sh: Likewise.
3018 * emulparams/avr44x4.sh: Likewise.
3019 * emulparams/avr85xx.sh: Likewise.
3020 * emulparams/avrmega103.sh: Likewise.
3021 * emulparams/avrmega161.sh: Likewise.
3022 * emulparams/avrmega603.sh: Likewise.
3023 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3025 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3027 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3028 archive is excluded.
3030 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3032 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3033 (eshelf_nbsd.c): New rule.
3034 (eshlelf_nbsd.c): New rule.
3035 * Makefile.in: Regenerate.
3036 * configure.tgt (sh*le-*-netbsdelf*): New target.
3037 (sh*-*-netbsdelf*): New target.
3038 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3039 * emulparams/shelf_nbsd.sh: New emulation.
3040 * emulparams/shlelf_nbsd.sh: New emulation.
3042 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3044 * po/es.po: New file: Spanish translation.
3045 * configure.in (ALL_LINGUAS): Add es.
3046 * configure: Regenerate.
3048 2002-01-06 John Marshall <jmarshall@acm.org>
3050 * ld.texinfo: Note that --emit-relocs is currently only
3051 implemented for ELF.
3053 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3055 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3056 of bfd_section_list_remove and bfd_section_list_insert macros.
3057 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3058 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3060 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3062 * configure.tgt (x86_64-*-netbsd*): New target.
3064 2001-12-21 Tom Rix <trix@redhat.com>
3066 (gld*_create_output_section_statements): New function.
3067 For -binitfini support.
3068 * emultempl/aix.em (gld*_before_parse): Fix comment.
3069 * emultempl/aix.em (gld*_parse_args): Fix comment.
3071 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3073 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3075 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3077 * configure.tgt (arm-*-netbsdelf*): Add target.
3078 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3079 * emulparams/armelf_nbsd.sh: Added.
3080 * Makefile.am: Add rules for earmelf_nbsd.
3081 * Makefile.in: Regenerate.
3083 2001-12-19 Andreas Jaeger <aj@suse.de>,
3084 Susanne Oberhauser <froh@suse.de>
3086 * configure.host: Add rules for x86_64-*linux-gnu. Change
3087 s390x-linux entry to use gcc to report configuration, replace gcc
3088 with $CC in s390-linux
3090 2001-12-19 Andreas Jaeger <aj@suse.de>
3092 * ld.texinfo (VERSION): Fix markup.
3094 2001-12-18 matthew green <mrg@eterna.com.au>
3096 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3097 (m68kelfnbsd.c): New rule.
3098 * Makefile.in: Regenerate.
3099 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3100 (m68*-*-netbsd*4k*): .. this.
3101 (m68*-*-netbsdelf*): New target.
3102 (m68*-*-netbsd*): Also include ELF support.
3103 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3104 * emulparams/m68kelfnbsd.sh: New emulation.
3106 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3108 * ldgram.y (vers_node): Support anonymous version tags.
3109 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3110 tag is not defined together with non-anonymous versions.
3111 * ld.texinfo: Document it.
3113 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3115 * po/tr.po: New file: Turkish translation.
3116 * configure.in (ALL_LINGUAS): Add tr.
3117 * configure: Regenerate.
3119 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3121 * Makefile.am: Add rules for eelf64alpha_nbsd.
3122 * Makefile.in: Regenerate.
3123 * configure.tgt (alpha*-*-netbsd*): Set
3124 targ_emul to elf64alpha_nbsd.
3125 * emulparams/elf64alpha_nbsd.sh: Added.
3127 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3129 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3130 section_tail when fiddling with section list.
3131 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3132 broken into separate strings to make translation easier.
3133 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3134 fiddling with section list.
3135 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3137 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3139 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3141 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3143 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3145 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3147 * emultempl/elf32.em (finish): Supply output_bfd
3148 to bfd_elf*_discard_info.
3149 (OPTION_EH_FRAME_HDR): Define.
3150 (longopts): Add --eh-frame-hdr.
3151 (parse_args): Handle it.
3152 (list_options): Add --eh-frame-hdr to help.
3153 * emultempl/hppaelf.em (finish): Supply output_bfd
3154 to bfd_elf*_discard_info.
3155 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3157 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3159 * lexsup.c (parse_args): Don't pass shortopts to second call to
3160 getopt functions. Restore optind rather than decrementing before
3161 second call. Remove errind as it now duplicates last_optind.
3163 2001-12-11 Christopher Faylor <cgf@redhat.com>
3165 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3167 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3168 Richard Henderson <rth@redhat.com>
3170 * Makefile.am: Add support for xstormy16.
3171 * configure.tgt: Add support for xstormy16.
3172 * Makefile.in: Regenerate.
3173 * emulparams/elf32xstormy16.sh: New file.
3174 * scripttempl/xstormy16.sc: New file.
3176 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3178 * Makefile.in (LIB_PATH): Make configurable.
3179 (GENSCRIPTS): Set LIB_PATH in environment.
3180 * configure.in: Substitute LIB_PATH.
3181 * configure: Regenerate.
3182 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3183 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3185 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3187 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3188 describing the -N option so that it is easier to translate into
3191 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3193 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3194 statements describing a single option with a single, newline
3195 escaped fprintf. This allows better translation into other
3198 * ldmain.c (add_archive_element): Combine multiple strings
3199 into a single string to permit better translation into other
3202 2001-12-05 Tom Rix <trix@redhat.com>
3204 * Makefile.am: Remove eaixppc64.
3205 * Makefile.in: Regenerate.
3207 2001-12-04 Tom Rix <trix@redhat.com>
3209 * emultempl/aix.em (choose_target): Change default target to
3210 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3212 (gld*_read_file): Fix typo.
3213 (change_symbol_mode): Add prototype.
3216 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3217 * emulparams/aixrs6.sh : Same.
3218 * emulparams/ppcmacos.sh : Same.
3219 * emulparams/aixppc64.sh : Delete file.
3220 * emultempl/aix.em : Formatting changes.
3222 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3224 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3225 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3227 (OTHER_END_SYMBOLS): Fix formatting.
3228 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3229 (OTHER_END_SYMBOLS): Fix formatting.
3231 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3233 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3235 2001-12-02 Tom Rix <trix@redhat.com>
3237 * configure.tgt : Remove eaixppc64 emulations.
3238 * Makefile.in : Remove eaixppc64.c
3239 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3240 (ldemul_default_target): Same.
3241 * emultempl/gld960.em (gld960_choose_target): Same.
3242 * emultempl/gld960c.em (gld960_choose_target): Same.
3243 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3244 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3245 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3246 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3247 * emultempl/aix.em (choose_target): New function. Handle emulation of
3250 2001-11-27 H.J. Lu <hjl@gnu.org>
3252 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3253 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3254 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3255 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3256 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3257 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3258 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3259 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3261 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3264 (REL_SDATA): Likewise.
3265 (REL_SBSS): Likewise.
3266 (REL_SDATA2): Likewise.
3267 (REL_SBSS2): Likewise.
3268 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3271 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3273 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3275 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3277 2001-11-22 H.J. Lu <hjl@gnu.org>
3279 * Makefile.in: Regenerated with automake based on automake
3280 1.4-8 in RedHat 7.1.
3282 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3284 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3285 (config.status): Delete rule.
3286 Add extra dependencies to cover sourced emulparams files.
3287 * Makefile.in: Regenerate.
3289 * scripttempl/elf.sc: Order <section>, <section>.* and
3290 corresponding linkonce sections as seen in input files.
3291 Formatting fixes. Zero vma of all sections if not relocating.
3292 (STACK): Define and insert if STACK_ADDR defined.
3293 (OTHER_RELOCATING_SECTIONS): Delete.
3294 (OTHER_END_SYMBOLS): Define.
3295 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3296 (OTHER_READWRITE_SECTIONS): Likewise.
3297 (OTHER_GOT_SECTIONS): Likewise.
3298 (OTHER_SDATA_SECTIONS): Likewise.
3299 (OTHER_BSS_SECTIONS): Likewise.
3300 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3301 (OTHER_READWRITE_SECTIONS): Likewise.
3302 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3303 (OTHER_READWRITE_SECTIONS): Likewise.
3305 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3306 (STACK_ADDR): Define.
3307 * emulparams/armelf_oabi.sh: As for armelf.sh.
3308 * emulparams/elf32mcore.sh: As for armelf.sh.
3309 * emulparams/h8300elf.sh: As for armelf.sh.
3310 * emulparams/mn10200.sh: As for armelf.sh.
3311 * emulparams/shelf.sh: As for armelf.sh.
3313 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3314 (OTHER_END_SYMBOLS): Define.
3315 * emulparams/m32relf.sh: As for elf32fr30.sh.
3316 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3317 * emulparams/h8300self.sh: As for elf32fr30.sh.
3319 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3320 defines with RELOCATING test.
3321 (OTHER_SDATA_SECTIONS): Likewise.
3322 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3323 (OTHER_END_SYMBOLS): ..this.
3324 * emulparams/crislinux.sh: As for criself.sh.
3326 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3328 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3329 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3330 normal and linkonce sections as seen in input files.
3331 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3332 (TEXT_DYNAMIC): Likewise.
3333 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3334 (OTHER_SDATA_SECTIONS): Likewise.
3335 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3336 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3337 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3338 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3339 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3340 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3341 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3342 sections as seen in input files.
3343 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3344 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3346 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3347 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3348 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3349 (OTHER_SECTIONS): Instead, use this..
3350 (OTHER_END_SYMBOLS): ..and this.
3352 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3353 * emulparams/elf32bsmip.sh: Likewise.
3354 * emulparams/elf32btsmip.sh: Likewise.
3355 * emulparams/elf32ebmip.sh: Likewise.
3356 * emulparams/elf32lmip.sh: Likewise.
3357 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3358 * emulparams/elf32lsmip.sh: Likewise.
3359 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3360 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3361 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3362 * emulparams/elf64btsmip.sh: Likewise.
3363 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3364 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3365 * emulparams/elf32ppclinux.sh: Likewise.
3366 * emulparams/elf32ppcsim.sh: Likewise.
3367 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3368 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3369 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3370 * emulparams/h8300self.sh: Likewise.
3371 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3372 * emulparams/sh.sh: Comment.
3373 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3374 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3375 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3377 2001-11-21 David Heine <dlheine@tensilica.com>
3378 Alan Modra <amodra@bigpond.net.au>
3380 * ldlang.c (map_input_to_output_sections): Replace "break"
3381 accidentally removed with 2001-08-03 change.
3382 (lang_gc_sections_1): Likewise.
3384 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3386 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3388 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3390 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3391 of false when calling lang_size_sections.
3392 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3394 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3396 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3397 function when LDEMUL_FINISH isn't set to the same name. Don't
3398 call ${LDEMUL_FINISH}.
3399 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3400 * emultempl/armelf.em (arm_elf_finish): Call
3401 gld${EMULATION_NAME}_finish.
3402 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3403 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3404 hppaelf_layout_sections_again if necessary.
3405 (need_laying_out): New var.
3406 (hppaelf_layaout_sections_again): Rename to
3407 hppaelf_layout_sections_again. Clear need_laying_out.
3408 (PARSE_AND_LIST_OPTIONS): Format text.
3410 2001-11-14 H.J. Lu <hjl@gnu.org>
3412 * emultempl/armelf.em (arm_elf_finish): Renamed from
3413 gld${EMULATION_NAME}_finish.
3414 (LDEMUL_FINISH): Set to arm_elf_finish.
3416 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3418 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3419 (struct ld_emulation_xfer_struct): Use it.
3421 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3423 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3424 additional symbols referenced by newer crt0.o files from HP.
3426 2001-11-12 Anthony Green <green@redhat.com>
3428 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3430 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3432 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3433 * Makefile.in: Regenerate.
3435 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3437 * ld.texinfo: Use @command for commands, @option for options.
3438 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3440 * Makefile.in: Rebuild.
3442 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3444 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3445 Add support for targets.
3447 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3449 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3450 * configure: Regernate.
3451 * po/fr.po: New file.
3452 * po/sv.po: New file.
3454 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3456 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3457 as little endian default and to support big endian.
3459 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3461 * ld.texinfo (Options): Document new option, -nostdlib.
3462 * lexsup.c (OPTION_NOSTDLIB): New definition.
3463 (ld_options): Add entry for "nostdlib".
3464 (parse_args): Handle OPTIONS_NOSTDLIB.
3465 * ldfile.c (ldfile_add_library_path): Don't add directories
3466 to the search path if they weren't specified on the command line
3467 and -nostdlib was specified.
3468 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3470 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3472 * lexsup.c (parse_args): Prevent infinite parsing loop when
3473 "-rpath.a" is specified on the command line.
3474 Replace calls to fprintf with calls to einfo.
3476 2001-10-31 John Marshall <jmarshall@acm.org>
3478 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3479 appear only once across all the linker scripts involved in a link
3480 invocation no longer applies. Make the documentation reflect
3483 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3485 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3487 (sh-*-linux*): Added targ_extra_libpath.
3489 2001-10-31 David Heine <dlheine@tensilica.com>
3491 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3492 for padding statements.
3494 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3496 * configure.tgt (mmix-*-*): New target.
3497 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3498 Add dependencies to match.
3499 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3500 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3501 scripttempl/mmo.sc: New files.
3502 * gen-doc.texi: @set MMIX.
3503 * ld.texinfo: Ditto.
3504 [MMIX] Add MMIX node.
3505 * Makefile.in: Regenerate.
3507 2001-10-29 Kazu Hirata <kazu@hxi.com>
3509 * ldlang.c: Fix a comment typo.
3511 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3513 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3514 entries, and match *-*-linux*.
3516 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3518 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3519 with ldlex_script, ldlex_popstate.
3520 (ifile_p1): Likewise.
3521 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3523 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3524 to 1. Don't BEGIN(SCRIPT).
3525 (lex_redirect): Similarly.
3526 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3528 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3530 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3531 __EH_FRAME_END__ and accept eh frames into data section.
3532 Add ctor and dtor sections.
3534 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3536 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3537 (auto-export): Fix indentation.
3539 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3541 * pe-dll.c (autofilter_objectlist): Add startup objects
3543 (auto-export): Constify char * p.
3544 Extract file basename and use strcmp rather than ststr
3547 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3549 * ldmain.c (get_emulation): Improve comment about the handling
3552 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3554 * po/POTFILES.in: Regenerate.
3556 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3558 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3559 -z nocopyreloc and -z nocombreloc usage strings.
3561 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3563 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3566 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3568 * scripttempl/armaout.sc: Place .bss section after end of aligned
3569 data section to match behaviour of aout code in constructrion of
3572 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3574 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3575 startup files for mingw32 dlls to list.
3577 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3579 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3581 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3583 * configure.tgt (targ): Add arm9e-*-elf.
3585 2001-10-05 H.J. Lu <hjl@gnu.org>
3587 * genscripts.sh: Fix a typo in the last change.
3589 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3591 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3592 -z nocombreloc in usage.
3594 2001-10-03 Jim Blandy <jimb@redhat.com>
3596 * genscripts.sh: Include a comment at the top of each generated
3597 script, explaining its purpose.
3599 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3601 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3602 * NEWS: Mention -z nocopyreloc.
3603 * ld.texinfo (Options): Describe nocopyreloc.
3605 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3607 * configure: Regenerate.
3609 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3611 * ldver.h (ld_program_version): Remove declaration.
3612 * lexsup.c (parse_args): Move printing of copyright message..
3613 * ldver.c (ldversion): .. to here.
3614 Use BFD_VERSION_STRING in place of BFD_VERSION.
3615 (ld_program_version): Remove.
3616 * Makefile.am (Makefile): Depend on bfd/configure.in.
3618 * Makefile.in: Regenerate.
3620 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3622 * Makefile.am: Update dependencies with "make dep-am".
3623 * Makefile.in: Regenerate.
3625 2001-09-29 John Reiser <jreiser@BitWagon.com>
3627 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3628 * lexsup.c: Add --no-define-common commandline option.
3629 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3630 * ldlex.l: Likewise.
3631 * ld.h: Add command_line.inhibit_common_definition.
3632 * ldmain.c (main): Initialize.
3633 * ld.texinfo: Document.
3635 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3637 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3639 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3641 * ldmisc.c (USE_STDARG): Remove.
3642 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3647 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3648 declarations. Update copyright.
3650 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3652 * pe-dll.c: Remove obsoleted declaration of
3653 pe_get_data_import_dll_name.
3654 (pe_create_import_fixup): Fix thinko.
3656 * ld.texinfo(enable-auto-import): Clarify the explanation.
3658 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3660 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3661 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3662 DLL_SUPPORT controlled code.
3664 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3666 * emultempl/pe.em(pe_data_import_dll): Make static.
3667 (pe_get_data_import_dll_name): New accessor function.
3668 * pe-dll.c(pe_create_import_fixup): call
3669 pe_get_data_import_dll_name() from pe.em, instead of
3670 directly accessing pe_data_import_dll variable from pe.em.
3672 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3674 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3675 (def_file_add_directive): Use ISSPACE instead of isspace.
3676 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3677 isdigit/isxdigit/isalpha/isalnum.
3678 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3679 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3680 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3681 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3683 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3684 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3686 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3687 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3688 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3689 (ctor_prio): Use ISDIGIT instead of isdigit.
3690 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3691 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3692 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3694 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3695 (stricpy): Use TOLOWER instead of isupper/tolower.
3696 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3697 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3698 (lex_warn_invalid): Use ISPRINT instead of isprint.
3699 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3700 (main): For gettext, also set the LC_CTYPE locate facet.
3701 (add_keepsyms_file): Use ISSPACE instead of isspace.
3702 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3703 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3704 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3705 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3706 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3707 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3708 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3709 (quoteput): Use ISSPACE instead of isspace.
3710 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3713 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3715 * deffilep.y (def_stash_module): Constify "name" param.
3717 * pe-dll.c: Replace CONST with const throughout.
3718 (quick_symbol): Constify "n1", "n2", "n3" params.
3719 (make_singleton_name_thunk): Constify "import" param. Make
3720 "buffer_len" a size_t.
3721 (make_import_fixup_entry): Constify "name", "fixup_name",
3722 "dll_symname" params.
3723 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3724 (pe_get32): Likewise.
3725 (pe_implied_import_dll): Likewise.
3727 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3728 (sort_by_section_name): Likewise.
3730 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3731 (make_import_fixup): Cast printf arg, rel->address to long rather
3733 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3735 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3737 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3738 defines BufferSize. Increase buffer size by one.
3740 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3742 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3744 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3746 * configure.tgt: Add arm-openbsd target.
3748 2001-09-12 H.J. Lu <hjl@gnu.org>
3750 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3752 (ALL_64_EMULATIONS): Here.
3753 * Makefile.in: Regenerated.
3755 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3757 * emultempl/pe.em(make_import_fixup): change signature to
3758 take asection as well as arelec; we need this for proper
3759 error reporting. Only call pe_create_import_fixup() if
3760 there is no attempt to add a constant addend to the reloc;
3761 otherwise, report error condition.
3762 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3763 since final argument is a pointer to make_import_fixup().
3764 Change call to cb() to match make_import_fixup() signature.
3765 (make_import_fixup_mark): make buffer_len unsigned.
3766 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3768 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3770 * ld.texinfo: add verbose documentation for auto-import
3771 direct-addressing workaround, to compliment the terse
3774 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3776 * scripttempl/v850.sc: Add gcc_except_table sections.
3778 2001-09-11 Jeffrey A Law (law@cygnus.com)
3780 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3781 * emulparams/h8300self.sh: Similarly.
3783 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3785 * ld.texinfo (Options, --stack): Correct default value for stack
3788 2001-09-05 Tom Rix <trix@redhat.com>
3790 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3792 2001-09-03 Andreas Jaeger <aj@suse.de>
3794 * emultempl/beos.em: Declare prototypes for comparions functions,
3797 2001-09-02 Andreas Jaeger <aj@suse.de>
3799 * emultempl/aix.em: Add missing prototype.
3800 * emultempl/lnk960.em: Likewise.
3801 * emultempl/vanilla.em: Likewise.
3802 * emultempl/armcoff.em: Likewise.
3803 * emultempl/armelf_oabi.em: Likewise.
3804 * emultempl/beos.em: Likewise.
3805 * emultempl/gld960c.em: Likewise.
3806 * emultempl/gld960.em: Likewise.
3808 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3809 for prototype declaration.
3811 2001-08-31 Eric Christopher <echristo@redhat.com>
3812 Jason Eckhardt <jle@redhat.com>
3814 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3816 2001-08-31 Andreas Jaeger <aj@suse.de>
3818 * emultempl/pe.em: Add missing prototypes.
3819 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3820 pe_find_data_imports.
3821 (pr_sym): Add unused attribute.
3823 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3825 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3826 default from coff to elf.
3828 2001-08-29 Jeff Law <law@redhat.com>
3830 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3832 * emulparams/h8300self.sh: Similarly.
3834 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3836 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3838 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3839 * configure.tgt (h8300-*-elf*): New case.
3840 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3841 * emulparams/h8300self.sh: New file.
3842 * Makefile.in: Regenerated.
3844 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3846 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3849 2001-08-27 Linus Nordberg <linus@swox.com>
3850 Alan Modra <amodra@bigpond.net.au>
3852 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3853 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3855 * Makefile.in: Regenerate.
3856 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3857 entries to correct alphabetical position.
3858 * emulparams/elf64ppc.sh: New.
3859 * emulparams/elf64lppc.sh: New.
3861 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3863 * ldmain.c (main): Declare BSIZE as static.
3865 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3867 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3868 into .rel.dyn resp. .rela.dyn if combreloc.
3869 (get_script): If .x linker script is equal to .xn, only put it
3870 once into the binary.
3871 Add .xc and .xsc scripts.
3872 (parse_args): Handle -z combreloc and -z nocombreloc.
3873 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3874 For .xc and .xsc scripts put all .rel* or .rela* input sections
3875 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3876 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3878 Strip trailing whitespace from script.
3879 Generate .xc and .xsc scripts if requested.
3880 * ldmain.c (main): Initialize link_info.combreloc and
3881 link_info.spare_dynamic_tags.
3882 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3883 (ld_options): Add --spare-dynamic-tags option.
3884 (parse_args): Likewise.
3885 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3886 * ldint.texinfo: Document .xc and .xsc linker scripts.
3887 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3889 2001-08-22 H.J. Lu <hjl@gnu.org>
3891 * emulparams/elf32fr30.sh: Add a newline.
3893 2001-08-21 Andreas Jaeger <aj@suse.de>
3895 * deffilep.y: Add missing prototypes.
3896 * pe-dll.c: Likewise.
3898 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3900 * ldlang.c (insert_pad): Fix typos in last patch.
3902 * ldlang.c: When traversing lang_statement_union_type lists,
3903 consistently use "header.next" rather than "next".
3904 * mpw-eppcmac.c: Likewise.
3905 * emultempl/beos.em: Likewise.
3906 * emultempl/hppaelf.em: Likewise.
3907 * emultempl/pe.em: Likewise.
3908 * ldlang.h (union lang_statement_union): Remove "next" field.
3910 * ldlang.c (insert_pad): Use offsetof macro.
3911 (lang_size_sections): Always neuter padding statements.
3912 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3914 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3915 passed to lang_size_sections.
3916 (pe_exe_fill_sections): Likewise.
3917 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3918 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3920 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3922 * emultempl/aix.em: Formatting fixes.
3924 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3926 * ldlang.c (insert_pad): Make use of an existing pad statement if
3927 available. Move code calculating alignment, adjusting section
3928 alignment power, and adjusting dot to ..
3929 (size_input_section): .. here. Remove unused relax param.
3930 (lang_size_sections): Change boolean `relax' param to boolean *.
3931 Adjust call to size_input_section. Make use of insert_pad to
3932 place pad after the assignment statement. If relaxing, zap
3934 (reset_memory_regions): Reset output_bfd section sizes too.
3935 (relax_again): Move to..
3936 (lang_process): ..here. Adjust call to lang_size_sections, and
3937 remove duplicated code.
3938 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3940 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3942 * ld.texinfo: Document that fill values now use the four least
3944 * emulparams/elf32fr30.sh (NOP): Update.
3945 * emulparams/elf32mcore.sh: Likewise.
3946 * emulparams/elf64_s390.sh: Likewise.
3947 * emulparams/elf_i386.sh: Likewise.
3948 * emulparams/elf_i386_be.sh: Likewise.
3949 * emulparams/elf_i386_chaos.sh: Likewise.
3950 * emulparams/elf_i386_ldso.sh: Likewise.
3951 * emulparams/elf_s390.sh: Likewise.
3952 * emulparams/elf_x86_64.sh: Likewise.
3953 * emulparams/i386moss.sh: Likewise.
3954 * emulparams/i386nw.sh: Likewise.
3955 * emulparams/m68kelf.sh: Likewise.
3956 * scripttempl/elf.sc: Update NOP comment.
3957 * scripttempl/elfi370.sc: Likewise.
3958 * scripttempl/elfm68hc11.sc: Likewise.
3959 * scripttempl/elfm68hc12.sc: Likewise.
3960 * scripttempl/nw.sc: Likewise.
3962 2001-08-15 Tom Rix <trix@redhat.com>
3964 * ldgram.y (saved_script_handle): Initialize to NULL.
3965 * ldmain.c (main): Change check on saved_script_handle.
3967 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3969 * emultempl/elf32.em: Formatting fixes.
3970 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3971 looking at sec->owner.
3972 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3973 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3974 unused code, and reorganize orphan section placement code.
3976 * ldlang.c (wild_doit): Rename to lang_add_section.
3977 * ldlang.h: Here too.
3978 * mpw-elfmips.c: And here.
3979 * emultempl/beos.em: And here.
3980 * emultempl/elf32.em: And here.
3981 * emultempl/hppaelf.em: And here.
3982 * emultempl/pe.em: And here.
3984 2001-08-13 Richard Henderson <rth@redhat.com>
3986 * emultempl/needrelax.em: New file.
3987 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3988 * Makefile.am (eelf64_ia64.c): Depend on it.
3989 * Makefile.in: Rebuild.
3991 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3993 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3994 output_section is set non-NULL.
3996 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3997 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3998 needlessly create an output_section_statement. Treat a correctly
3999 named output_section_statement with NULL bfd_section as compatible.
4001 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4003 * emultempl/generic.em: Support EXTRA_EM_FILE.
4004 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4005 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4006 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4007 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4008 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4009 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4010 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4011 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4012 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4013 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4015 2001-08-12 Richard Henderson <rth@redhat.com>
4017 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4018 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4019 scripttempl/v850.sc: Keep .jcr data.
4021 2001-08-12 H.J. Lu <hjl@gnu.org>
4022 Andrew Haley <aph@cambridge.redhat.com>
4023 Nick Clifton <nickc@redhat.com>
4025 * ldgram.y (had_script): Change name to saved_script_handle.
4026 Change type to file handle.
4027 * ld.h (had_script): Rename and retype.
4028 * ldfile.c (ldfile_open_command_file): Save the file handle
4029 used in saved_script_handle.
4030 * lexsup.c (parse_args): Do not allow -c option to alter
4031 saved_script_handle.
4032 * ldmain.c (main): Print out the linker script used if
4033 --verbose is given. Check saved_script_handle to obtain the
4034 external linker script used, or if NULL, dump the builtin
4036 * ld.texinfo: Document that --verbose now dumps the linker
4037 script used, regardless of whether it was an internal or an
4040 2001-08-10 Andreas Jaeger <aj@suse.de>
4042 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4044 * configure: Regenerate.
4046 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4048 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4050 * scripttempl/elf.sc: Move non-text .dynamic section before
4051 .plt/.got/.sdata* group.
4052 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4053 (OTHER_SDATA_SECTIONS): Add.
4054 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4056 * emulparams/crislinux.sh: Likewise.
4057 * emulparams/elf32b4300.sh: Likewise.
4058 * emulparams/elf32bmip.sh: Likewise.
4059 * emulparams/elf32bmipn32.sh: Likewise.
4060 * emulparams/elf32bsmip.sh: Likewise.
4061 * emulparams/elf32btsmip.sh: Likewise.
4062 * emulparams/elf32ebmip.sh: Likewise.
4063 * emulparams/elf32elmip.sh: Likewise.
4064 * emulparams/elf32l4300.sh: Likewise.
4065 * emulparams/elf32lmip.sh: Likewise.
4066 * emulparams/elf32lsmip.sh: Likewise.
4067 * emulparams/elf32ltsmip.sh: Likewise.
4068 * emulparams/elf64bmip.sh: Likewise.
4069 * emulparams/elf64btsmip.sh: Likewise.
4070 * emulparams/elf64ltsmip.sh: Likewise.
4072 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4074 * genscripts.sh: Source the emulparams script before each output
4075 script is generated so that variables like `RELOCATING' may affect
4076 variables defined in the emulparams script.
4078 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4080 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4083 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4084 ie. iterate over wild_statement.section_list.
4085 (gld${EMULATION_NAME}_place_orphan): Likewise.
4087 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4089 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4090 .fini[0-4] sections used by _exit
4091 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4092 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4093 * scripttempl/elfm68hc11.sc: Likewise.
4095 2001-08-03 H.J. Lu <hjl@gnu.org>
4097 * emultempl/beos.em (init): Add the missing initialization.
4099 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4101 * ld.texinfo (Input Section Basics): Clarify ordering of output
4103 * ldlang.c (callback_t): Add wildcard_list param.
4104 (walk_wild_section): Remove "section" param. Rewrite for
4105 lang_wild_statement_type change. Remove unique_section_p test.
4106 (walk_wild_file): Remove "section" param.
4107 (walk_wild): Remove "section" and "file" params.
4108 (lang_gc_wild): Likewise.
4109 (wild): Likewise. Modify for lang_wild_statement_type change.
4110 (wild_sort): Likewise. Add "sec" param.
4111 (gc_section_callback): Likewise.
4112 (output_section_callback): Likewise. Do unique_section_p test.
4113 (map_input_to_output_sections): Modify call to wild.
4114 (lang_gc_sections_1): Likewise.
4115 (print_wild_statement): Modify for lang_wild_statement_type
4117 (lang_add_wild): Replace filename, filenames_sorted param with
4118 filespec. Replace section_name, sections_sorted,
4119 exclude_filename_list with section_list.
4120 * ldlang.h (lang_add_wild): Here too.
4121 (lang_wild_statement_type): Replace section_name, sections_sorted,
4122 and exclude_filename_list with section_list.
4123 * ldgram.y (current_file): Delete.
4124 (%union): Add wildcard_list.
4125 (file_NAME_list): Set type to wildcard_list. Build a linked list
4126 rather than calling lang_add_wild for each entry.
4127 (input_section_spec_no_keep): Call lang_add_wild here instead.
4128 * ld.h (struct wildcard_list): Declare.
4129 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4131 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4133 * ldmain.c (main): initialize link_info.pei386_auto_import
4134 * pe-dll.c: new tables for auto-export filtering
4135 (auto_export): change API, pass abfd for contextual filtering.
4136 Loop thru tables of excluded symbols instead of comparing
4139 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4141 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4142 static variable current_sec (static struct sec *). Add
4143 forward declaration for add_bfd_to_link.
4144 (process_def_file): Don't export undefined symbols. Do not
4145 export symbols starting with "_imp__". Call auto_export()
4147 (pe_walk_relocs_of_symbol): New function.
4148 (generate_reloc): add optional extra debugging
4149 (pe_dll_generate_def_file): eliminate extraneous initial blank
4151 (make_one): enlarge symtab to make room for __nm__ symbols
4152 (DATA auto-import support).
4153 (make_singleton_name_thunk): New function.
4154 (make_import_fixup_mark): New function.
4155 (make_import_fixup_entry): New function.
4156 (pe_create_import_fixup): New function.
4157 (add_bfd_to_link): Specify that 'name' argument is a CONST
4159 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4160 declare new functions pe_walk_relocs_of_symbol and
4161 pe_create_import_fixup.
4162 * emultempl/pe.em: add new options --enable-auto-import,
4163 --disable-auto-import, and --enable-extra-pe-debug.
4164 (make_import_fixup): New function.
4165 (pe_find_data_imports): New function.
4166 (pr_sym): New function.
4167 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4168 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4171 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4173 * ld.texinfo: add additional documentation for
4174 --export-all-symbols. Document --out-implib,
4175 --enable-auto-image-base, --disable-auto-image-base,
4176 --dll-search-prefix, --enable-auto-import, and
4177 --disable-auto-import.
4178 * ldint.texinfo: Add detailed documentation on auto-import
4181 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4183 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4186 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4188 * Makefile.am: Update dependencies with "make dep-am".
4189 * Makefile.in: Regenerate
4191 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4193 * ldcref.c (check_section_sym_xref): New function.
4194 (check_nocrossrefs): Call it.
4195 (check_nocrossref): Interate over h->refs here instead of..
4196 (check_refs): ..here. Pass in the symbol name, section, and bfd
4197 rather than hash_entry pointers.
4198 (struct check_refs_info): Keep symbol name rather than hash entry.
4200 (check_reloc_refs): Tweak for above changes in check_refs_info.
4201 Only report references to section syms when symname is NULL to
4202 prevent duplicate messages for the same reloc.
4204 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4206 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4207 available. Do not print NULL trees.
4208 (exp_print_token): Print unknown tokens with values > 126 as
4209 decimal values not ASCII characters.
4211 * ldlang.c (lang_leave_overlay): If a region is specified assign
4212 it to all sections inside the overlay unless they have been
4213 assigned to the own, non-default, memory region.
4215 * README: Add header for consistency with other README files.
4217 2001-07-14 H.J. Lu <hjl@gnu.org>
4219 * emultempl/elf32.em (output_prev_sec_find): Never return
4220 bfd_abs_section_ptr, bfd_com_section_ptr nor
4221 bfd_und_section_ptr.
4223 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4225 * Makefile.am (em32relf.c): Change dependency from generic.em to
4227 * Makefile.in: Regenerate.
4229 2001-07-14 matthew green <mrg@eterna.com.au>
4231 * configure.tgt (i386-*-netbsdelf*): New target.
4232 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4234 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4236 * emultempl/elf32.em (output_prev_sec_find): New.
4237 (place_orphan): Use it.
4239 2001-07-11 H.J. Lu <hjl@gnu.org>
4241 * ldmain.c (main): Fix typos in the last change.
4243 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4245 * ldmain.c (main): Disallow -F and -f without -shared.
4247 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4249 * emultempl/pe.em (after_open): Check for the output_bfd not
4250 having any coff_data structure allocated to it.
4252 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4254 * emultempl/elf32.em: Do not assuming that contents of the buffer
4255 returned from basename function will remain unchanged accross other
4258 2001-07-03 H.J. Lu <hjl@gnu.org>
4260 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4261 2001-07-03. It creates dynamic entries even for static binaries.
4263 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4265 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4266 (DYNAMIC): Use it to reserve few dynamic entries for
4269 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4271 * emulparams/hppa64linux.sh: New file.
4272 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4273 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4274 (ehppa64linux.c): Add rule to make it.
4276 * Makefile.in: Regenerate.
4278 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4280 * ld.texinfo (Options, -r): Mention restrictions when using
4281 different object formats.
4283 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4285 * ldlang.c (lang_check): Emit fatal error if relocatable link
4286 between different object flavours with relocations in input.
4288 2001-06-19 H.J. Lu <hjl@gnu.org>
4290 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4291 (--version-script): Mention the language support.
4293 2001-06-19 H.J. Lu <hjl@gnu.org>
4295 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4297 2001-06-18 H.J. Lu <hjl@gnu.org>
4299 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4300 (diststuff): Add $(MANS).
4301 * Makefile.in: Regenerated.
4305 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4307 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4308 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4309 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4310 * ld.h (args_type): Remove member export_dynamic. All users
4311 changed to use struct bfd_link_info member.
4313 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4314 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4315 * Makefile.in: Regenerate.
4317 2001-06-18 H.J. Lu <hjl@gnu.org>
4319 * ldlang.c (init_os): Add the newline to the einfo call.
4320 (lang_check): Likewise.
4321 (lang_do_version_exports_section): Likewise.
4323 2001-06-15 H.J. Lu <hjl@gnu.org>
4325 * lexsup.c (parse_args); Save optind to report unrecognized
4328 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4330 * ldlang.c (lang_check): Emit fatal error if relocatable link
4331 between different object flavours.
4333 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4334 Set new link_info member export_dynamic.
4335 * ldmain.c (main): Initialize new link_info member export_dynamic.
4337 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4339 * ldlang.c (walk_wild): Only call walk_wild_file if
4340 lookup_name returns something.
4341 (lookup_name): If load_symbols fails, return NULL.
4342 (load_symbols): Change to a boolean function.
4343 (open_input_bfds): If load_symbols fails then do not make the
4346 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4348 * ldlang.c (record_bfd_errors): Remove.
4350 * emultempl/aix.em: Fix copyright dates.
4352 2001-06-07 Andreas Jaeger <aj@suse.de>
4354 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4355 (TEXT_START_ADDR): Likewise.
4357 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4359 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4361 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4363 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4365 2001-05-31 H.J. Lu <hjl@gnu.org>
4367 * ldlang.c (open_input_bfds): Don't change the bfd error
4368 handler whilst loading symbols.
4370 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4372 * configure.tgt: Remove i370-mvs architecture, it is not currently
4375 2001-05-25 H.J. Lu <hjl@gnu.org>
4377 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4378 like emulparams/aixppc.sh.
4380 2001-05-25 H.J. Lu <hjl@gnu.org>
4382 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4383 setting of output_filename after bfd_scan_arch.
4384 * emultempl/pe.em: Likewise.
4386 2001-05-25 H.J. Lu <hjl@gnu.org>
4388 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4389 like emulparams/aixppc.sh.
4391 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4392 instead of ${srcdir}/emultempl/stringify.sed.
4394 2001-05-25 Timothy Wall <twall@oculustech.com>
4396 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4399 2001-05-25 Alan Modra <amodra@one.net.au>
4401 * configure.host: Replace linuxoldld with linux*oldld.
4402 * configure.tgt: Likewise.
4404 2001-05-24 H.J. Lu <hjl@gnu.org>
4406 * emultempl/stringify.sed: Removed again.
4408 2001-05-24 H.J. Lu <hjl@gnu.org>
4410 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4411 (gld${EMULATION_NAME}_before_parse): Initialize
4412 ldfile_output_architecture, ldfile_output_machine and
4413 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4414 * emultempl/beos.em: Likewise.
4415 * emultempl/elf32.em: Likewise.
4416 * emultempl/linux.em: Likewise.
4417 * emultempl/mipsecoff.em: Likewise.
4418 * emultempl/pe.em: Likewise.
4419 * emultempl/sunos.em: Likewise.
4421 2001-05-24 Tom Rix <trix@redhat.com>
4423 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4424 udate import file format.
4425 (change_symbol_mode) New, same
4426 (is_syscall) New, same
4427 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4428 * emulparams/aixppc64.sh : same
4429 * emulparams/aixrs6.sh : same
4430 * emulparams/ppcmacos.sh : same
4431 * emultempl/aix.em : use strtoull to parse options
4432 * Makefile.am : add eaixppc64 emulation for xcoff64
4433 * Makefile.in : same
4434 * configure.tgt : same
4436 * scripttempl/aix.sc : default text section offset to 0x10000000
4437 default data section offset to 0x20000000
4438 add .sv3264 and .sv64 pseudo sections
4439 loader and debug sections use the currect section offset.
4441 * emultempl/aix.em : Add xcoff64 support
4442 Add -binitfini support
4443 (gld${EMULATION_NAME}_before_parse) -binitfini
4444 (gld${EMULATION_NAME}_parse_args) same
4445 (gld${EMULATION_NAME}_before_allocation) format change for special
4448 * emulparams/aixppc64.sh : New file for xcoff64 support
4450 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4452 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4453 variable to avoid non-portable shell construct.
4455 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4457 * ldmain.c (get_emulation): Add -mips5 command line argument.
4459 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4461 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4462 (ELF_INTERPRETER_NAME): Define it.
4463 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4465 * configure.tgt (targ_emul, targ_extra_emuls)
4466 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4467 as primary, elf_i386 as extra.
4468 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4469 (eelf_i386_ldso.c): New rule.
4470 * Makefile.in: Rebuilt.
4472 2001-05-22 Nick Clifton <nickc@redhat.com>
4474 * lexsup.c (ld_options): Allow -I to be an alias for
4475 --dynamic-linker. This is for Solaris compatability.
4476 * ld.texinfo: Document that -I can be used.
4479 2001-05-16 Alan Modra <amodra@one.net.au>
4481 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4482 whether an input section is the first one assigned to an output
4484 Assorted formatting fixes.
4486 2001-05-14 DJ Delorie <dj@delorie.com>
4488 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4489 * Makefile.in: Ditto.
4491 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4493 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4494 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4496 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4498 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4500 * ldlang.c (lang_process): Call bfd_merge_sections.
4502 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4504 * ldgram.y: Fix typo.
4506 2001-05-03 H.J. Lu <hjl@gnu.org>
4508 * emultempl/elf32.em: Include "libiberty.h".
4509 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4510 basename of the bfd filename.
4511 (gld${EMULATION_NAME}_stat_needed): Likewise.
4512 (gld${EMULATION_NAME}_try_needed): Likewise.
4513 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4515 2001-05-02 H.J. Lu <hjl@gnu.org>
4517 * emultempl/pe.em: Include <ctype.h>.
4519 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4521 * emulparams/elf32openrisc.sh: New file.
4523 * Makefile.am: Add OpenRISC target.
4524 * Makefile.in: Regenerated.
4526 * configure.tgt: Add openrisc-*-* mapping.
4528 2001-05-02 Nick Clifton <nickc@redhat.com>
4530 * emultempl/aix.em: Replace buystring with xstrdup.
4531 * emultempl/beos.em: Replace buystring with xstrdup.
4533 2001-05-02 H.J. Lu <hjl@gnu.org>
4535 * ldfile.c: Include "libiberty.h".
4536 * ldlex.l: Likewise.
4538 * ldmisc.c (buystring): Removed.
4539 * ldmisc.h: Likewise.
4541 * ldfile.c: Replace buystring with xstrdup.
4542 * ldlang.c: Likewise.
4543 * ldlex.l: Likewise.
4544 * ldmain.c: Likewise.
4545 * ldmisc.c: Likewise.
4546 * lexsup.c: Likewise.
4547 * mpw-eppcmac.c: Likewise.
4549 2001-04-30 Andreas Jaeger <aj@suse.de>
4551 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4553 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4555 * ldlang.c (load_symbols): Give emulation a chance
4556 to process unrecognized file before fatal error is
4557 reported, not after.
4559 2001-04-27 Sean McNeil <sean@mcneil.com>
4561 * configure.tgt: Add arm-vxworks target.
4562 * scripttempl/armcoff.sc: Support .text or .data as a section name
4566 2001-04-13 J.T. Conklin <jtc@redback.com>
4568 * ld.texinfo: Document --fatal-warnings.
4571 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4572 warnings have been turned into errors.
4573 * lexsup.c (OPTION_WARN_FATAL): Define.
4574 (ld_options): Entry for --fatal-warnings.
4575 (parse_args): Handle OPTION_WARN_FATAL.
4576 * ld.h (ld_config_type): Add fatal_warnings field.
4578 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4580 * ldmain.c (main): Default to discard_sec_merge.
4581 * lexsup.c (OPTION_DISCARD_NONE): Define.
4582 (ld_options): Add --discard-none.
4583 (parse_args): Handle OPTION_DISCARD_NONE.
4584 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4585 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4586 all its input sections match.
4588 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4590 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4591 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4592 (eelf32ltsmip.c): New target.
4593 (eelf64btsmip.c): Likewise.
4594 (eelf64ltsmip.c): Likewise.
4595 * Makefile.in: Regenerated.
4597 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4599 (mips*-*-linux-gnu*): Likewise.
4601 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4603 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4605 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4608 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4610 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4611 correct value of __Stext here.
4612 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4615 * emulparams/crislinux.sh: Remove FIXME.
4617 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4619 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4620 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4622 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4624 * configure.tgt (cris-*-*): Change default emulation to criself.
4625 (cris-*-*aout*): New rule.
4627 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4629 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4630 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4632 2001-03-26 Andreas Jaeger <aj@suse.de>
4634 * ld.texinfo (Overview): Fix syntax in texi code.
4636 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4638 * ld.texinfo: Put @c man indications to generate the ld man page.
4639 When generating man, define all the variables. Define SEEALSO
4640 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4641 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4642 (ld.1): Generate from ld.texinfo.
4643 * Makefile.in: Regenerate.
4645 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4647 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4648 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4650 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4652 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4653 is an absolute path look only for this file and not along the path.
4655 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4657 * emultempl/elf32.em (OPTION_GROUP): New macro.
4658 Add new option Bgroup to longopts.
4659 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4660 (gld*_list_options): Add -Bgroup and -z defs.
4661 * ld.1: Document -Bgroup and -z defs.
4662 * ld.texinfo: Likewise.
4664 2001-03-07 Michael Meissner <meissner@redhat.com>
4666 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4667 with sections created by -fdata-sections.
4668 (.dynbss,.bss): Ditto.
4670 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4672 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4673 after_allocation_default, not gld..._before_allocation.
4675 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4677 * configure.in (BFD_VERSION): New.
4678 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4679 * configure: Regenerate.
4680 * Makefile.am: Run "make dep-am"
4681 * Makefile.in: Regenerate.
4683 2001-02-26 Timothy Wall <twall@cygnus.com>
4685 * emulparams/elf64_aix.sh: Add additional read-only sections;
4686 uncomment lines which are now required.
4688 2001-02-26 H.J. Lu <hjl@gnu.org>
4690 * ldlang.c (open_input_bfds): Set the bfd error handler so
4691 that problems can be caught whilst loading symbols.
4692 (record_bfd_errors): New function: Report BFD errors and mark
4693 the executable output as being invalid.
4695 2001-02-22 Timothy Wall <twall@cygnus.com>
4697 * configure.host: Add configuration for ia64-*-aix*.
4698 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4699 Add dependencies for eelf64_aix.c.
4700 * Makefile.in: Regenerate.
4701 * configure.tgt: Add ia64-*-aix* mapping.
4702 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4704 2001-02-20 H.J. Lu <hjl@gnu.org>
4706 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4707 false if we found the file.
4709 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4711 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4712 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4714 2001-02-18 lars brinkhoff <lars@nocrew.org>
4716 * Makefile.am: Add PDP-11 target.
4717 * configure.tgt: Likewise.
4718 * emulparams/pdp11.sh: New file.
4720 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4722 * configure.host: Add a generic FreeBSD configuration entry such that
4723 all [modern] FreeBSD systems on all platforms will look the same.
4725 2001-02-14 H.J. Lu <hjl@gnu.org>
4727 * configure.tgt: Remove mention of earmelf_linux26.
4729 2001-02-13 Richard Henderson <rth@redhat.com>
4731 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4733 2001-02-13 H.J. Lu <hjl@gnu.org>
4735 * ldexp.h (node_type): Add etree_provided.
4736 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4737 type to etree_provided if defined by PROVIDE. Allow updating
4739 (exp_print_tree): Handle etree_provided.
4740 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4743 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4745 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4746 .IA_64.unwind.* pattern to unwind table section and
4747 .IA_64.unwind_info* pattern to unwind info section.
4749 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4751 * Makefile.am: Add linux target for S/390.
4752 * Makefile.in: Likewise.
4753 * configure.host: Likewise.
4754 * configure.tgt: Likewise.
4755 * emulparams/elf64_s390.sh: New file.
4756 * emulparams/elf_s390.sh: New file.
4758 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4760 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4762 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4764 2001-02-06 Philip Blundell <philb@gnu.org>
4766 * Makefile.am: Remove mention of earmelf_linux26.
4767 * Makefile.in: Regenerate.
4769 2001-02-04 Philip Blundell <philb@gnu.org>
4771 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4772 * emulparams/armelf_linux26.sh: Delete.
4773 * configure.tgt: Remove mention of armelf_linux26 emulation.
4775 2001-02-01 Nick Clifton <nickc@redhat.com>
4777 * ld.1: Replace occurances of -oformat with --oformat.
4779 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4781 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4782 load_base is specified.
4784 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4786 * emultempl/elf32.em: Correct spelling in comments and listed
4789 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4791 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4792 default for the first section of a group of overlay sections.
4794 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4796 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4797 * Makefile.in: Regenerate.
4798 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4799 Check for null tool_dir.
4801 2001-01-16 Jim Wilson <wilson@redhat.com>
4803 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4804 and IA_64.unwind.info.
4806 2001-01-16 H.J. Lu <hjl@gnu.org>
4808 * ldlang.c (lang_check): Merge the private data only if the
4809 input file has contents.
4811 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4813 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4815 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4816 enabling search for libmilli. On a relocatable link, make .text
4818 (LDEMUL_AFTER_PARSE): Define.
4819 (hppaelf_finish): Correct spelling of relocatable in comments.
4821 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4822 rummage through the script for sections on the unique list.
4823 Correct length of strncmp for ".note".
4824 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4826 * ldlang.c (unique_section_list): New var.
4827 (unique_section_p): New function.
4828 (walk_wild_section): Don't match sections on unique_section_list.
4829 (lang_add_unique): New function.
4830 Correct spelling of relocatable in comments.
4832 * ldlang.h (struct unique_sections): Declare.
4833 (unique_section_list): Declare.
4834 (unique_section_p): Declare.
4835 (lang_add_unique): Declare.
4837 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4838 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4840 * ld.texinfo (--unique): Update.
4842 2001-01-13 Nick Clifton <nickc@redhat.com>
4844 * lexsup.c (parse_args): Remove spurious white space.
4846 2001-01-12 Nick Clifton <nickc@redhat.com>
4848 * lexsup.c (parse_args): Update copyright date.
4850 2001-01-12 Philip Blundell <pb@futuretv.com>
4852 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4854 2001-01-10 Kazu Hirata <kazu@hxi.com>
4856 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4857 * scripttempl/h8300h.sc: Fix formatting.
4858 * scripttempl/h8300s.sc: Likewise.
4859 * scripttempl/h8500.sc: Likewise.
4860 * scripttempl/h8500b.sc: Likewise.
4861 * scripttempl/h8500c.sc: Likewise.
4862 * scripttempl/h8500m.sc: Likewise.
4863 * scripttempl/h8500s.sc: Likewise.
4865 2000-01-07 David O'Brien <obrien@BSDi.com>
4867 * emultempl/elf32.em: Only perform Linux ld hints processing when
4870 2001-01-07 Philip Blundell <philb@gnu.org>
4872 * ld.texinfo (Bug Reporting): Update email address for reports.
4874 2000-12-31 Nick Clifton <nickc@redhat.com>
4876 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4877 options by checking for a return value of '?' not -1.
4879 2000-12-28 Nick Clifton <nickc@redhat.com>
4881 * lexsup.c (struct ld_option): Add new enum value:
4883 (ld_options[]): Change -omagic, -output and -oformat options
4884 to be EXACTLY_TWO_DASHES.
4885 (OUTPUT_COUNT): Use ARRAY_SIZE.
4886 (parse_args): Change parameter 'argc' to unsigned.
4887 Place EXACTLY_TWO_DASHES options into new really_longopts
4889 If getopt_long_only fails, try calling getopt_long using the
4890 really_longopts array.
4891 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4894 * ldlex.h: Fix prototype of parse_args.
4896 * ld.texinfo: Document that long options starting with 'o'
4897 must be preceeded by two dashes. Change example of a single
4898 dashed long option from -oformat to -trace-symbol.
4900 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4902 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4903 (longopts[]): New --no-default-excludes option.
4904 (gld_${EMULATION_NAME}_list_options): Document.
4905 (gld_${EMULATION_NAME}_parse_args): Handle.
4907 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4909 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4910 whitespace, it breaks the K&R C preprocessor.
4912 2000-12-11 DJ Delorie <dj@redhat.com>
4914 * ld.texinfo: Add notes about --whole-archive and gcc.
4916 2000-11-18 Fred Fish <fnf@be.com>
4918 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4919 (ld_options): Entry for --allow-shlib-undefined.
4920 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4921 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4923 * ld.texinfo: Document new command line switch.
4925 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4927 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4928 .fixup is actually read/write.
4929 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4930 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4931 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4933 2000-12-11 Jan Hubicka <jh@suse.cz>
4935 * NEWS: Add note about x86_64 architecture.
4937 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4939 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4940 Set DWARF2 sections to a VMA of zero.
4942 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4944 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4946 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4947 (sparc*-*-rtems*): Switched from a.out to ELF.
4949 2000-11-30 Jan Hubicka <jh@suse.cz>
4951 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4952 (eelf_x86_64.c): New.
4953 * Makefile.in: Regenerate.
4954 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4955 * emulparams/elf_x86_64.sh: New.
4957 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4959 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4960 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4962 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4963 merging non-a.out sections into CONSTRUCTING.
4965 2000-11-28 Nick Clifton <nickc@redhat.com>
4967 * ld.1 (COPYING): Mention that the GNU Free Documentation
4968 License is present in the sources, but not the output, and
4969 also available from the GNU website.
4970 (GNU Free Documentation License): Comment out this section.
4972 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4974 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4977 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4979 * ld.1: Remove old date so it does not give the impression the manpage
4982 2000-11-24 Nick Clifton <nickc@redhat.com>
4984 * configure.tgt (xscale-coff): Add target.
4985 (xscale-elf): Add target.
4987 2000-11-24 Fred Fish <fnf@be.com>
4989 * ldmain.c (main): Remove redundant init of config.make_executable
4992 2000-11-15 Richard Henderson <rth@redhat.com>
4994 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4996 2000-11-14 Kazu Hirata <kazu@hxi.com>
4998 * scripttempl/h8300.sc: Fix formatting.
4999 * scripttempl/h8300h.sc: Likewise.
5000 * scripttempl/h8300s.sc: Likewise.
5002 2000-11-14 Denis Chertykov <denisc@overta.ru>
5004 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5006 2000-11-09 Philip Blundell <pb@futuretv.com>
5008 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5009 around orphan sections whose names can be represented in C.
5011 2000-11-07 Jim Wilson <wilson@redhat.com>
5013 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5014 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5016 2000-11-06 Nick Clifton <nickc@redhat.com>
5018 * ld.texinfo: Add GNU Free Documentation License.
5019 * ldint.texinfo: Add GNU Free Documentation License.
5020 * ld.1: Add GNU Free Documentation License.
5022 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5024 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5025 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5027 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5028 Move 2000-11-02 Makefile.in changes to this file.
5029 * Makefile.in: Regenerate.
5031 2000-11-03 Nick Clifton <nickc@redhat.com>
5033 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5034 constructors and destructors.
5035 * scripttempl/h8300h.sc: Ditto.
5036 * scripttempl/h8300s.sc: Ditto.
5037 * scripttempl/h8500.sc: Ditto.
5038 * scripttempl/h8500b.sc: Ditto.
5039 * scripttempl/h8500c.sc: Ditto.
5040 * scripttempl/h8500m.sc: Ditto.
5041 * scripttempl/h8500s.sc: Ditto.
5042 * scripttempl/v850.sc: Ditto.
5043 * scripttempl/w65.sc: Ditto.
5044 * scripttempl/z8000.sc: Ditto.
5046 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5048 * Makefile.in (e_i386_chaos.c): New rule.
5049 (ALL_EMULATIONS): Added e_i386_chaos.o.
5050 * emulparams/elf_i386_chaos.sh: New file.
5051 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5053 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5055 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5056 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5057 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5058 library path suffix.
5059 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5061 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5063 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5064 for consecutive sections.
5066 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5068 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5070 * ld.texinfo: Added notes about this new option.
5072 2000-10-16 Nick Clifton <nickc@redhat.com>
5074 * emultempl/pe.em (_after_open): Add tests of return values from
5075 bfd functions. Emit appropriate error messages if necessary.
5077 2000-10-13 Nick Clifton <nickc@redhat.com>
5079 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5080 local variables - they are not used, but leave in the call to
5081 bfd_canonicalize_symtab.
5082 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5083 pe_dll_search_prefix.
5085 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5087 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5088 (longopts): New --dll-search-prefix option.
5089 (gld_${EMULATION_NAME}_list_options): Document.
5090 (gld_${EMULATION_NAME}_parse_args): Handle.
5091 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5092 dynamically, search for a dll named '<prefix><basename>.dll'
5093 in preference to 'lib<basename>.dll' if --dll-search-prefix
5096 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5098 * ldlang.c (section_already_linked): Set kept_section instead of
5101 2000-10-10 Kazu Hirata <kazu@hxi.com>
5103 * deffile.h: Fix formatting.
5104 * lexsup.c: Likewise.
5107 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5109 * pe-dll.c (make_one): Do not generate code thunk for DATA
5111 (process_def_file): deduce DATA flag for auto-export sumbols.
5113 2000-10-09 Kazu Hirata <kazu@hxi.com>
5115 * ld.h: Fix formatting.
5116 * ldcref.c: Likewise.
5117 * ldctor.h: Likewise.
5118 * ldemul.c: Likewise.
5119 * ldemul.h: Likewise.
5120 * ldexp.c: Likewise.
5121 * ldexp.h: Likewise.
5122 * ldfile.c: Likewise.
5123 * ldfile.h: Likewise.
5124 * ldlang.c: Likewise.
5125 * ldlang.h: Likewise.
5126 * ldmain.c: Likewise.
5127 * pe-dll.c: Likewise.
5129 * pe-dll.c: Revert some formatting fixes.
5131 2000-10-08 Kazu Hirata <kazu@hxi.com>
5133 * pe-dll.c: Fix formatting.
5135 2000-10-05 Kazu Hirata <kazu@hxi.com>
5137 * ldlang.c: Fix formatting.
5139 2000-10-03 DJ Delorie <dj@redhat.com>
5141 * pe-dll.c (fill_edata): initialize entire block
5142 (make_one): fill in correct section.
5144 2000-10-03 Kazu Hirata <kazu@hxi.com>
5146 * ldexp.c: Fix formatting.
5148 2000-10-02 DJ Delorie <dj@redhat.com>
5150 * emultempl/pe.em (gld_*_after_open): detect case where there two
5151 import libraries for same dll; rename one to ensure proper link
5154 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5156 (generate_edata): fix typo
5158 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5160 * scripttempl/crisaout.sc (ENTRY): Now __start.
5161 (.text): Add default setting for __start.
5162 Remove CONSTRUCTORS handling.
5163 (/DISCARD/): Add .gnu.warning.*.
5164 * emulparams/crislinux.sh (ENTRY): Now __start.
5165 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5166 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5167 (ENTRY): Now __start.
5168 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5169 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5171 2000-09-29 Kazu Hirata <kazu@hxi.com>
5173 * deffile.h: Fix formatting.
5175 * ldcref.c: Likewise.
5176 * ldctor.c: Likewise.
5177 * ldctor.h: Likewise.
5178 * ldemul.c: Likewise.
5179 * ldemul.h: Likewise.
5180 * ldexp.c: Likewise.
5181 * ldexp.h: Likewise.
5182 * ldfile.c: Likewise.
5183 * ldfile.h: Likewise.
5184 * ldlang.c: Likewise.
5185 * ldlang.h: Likewise.
5186 * lexsup.c: Likewise.
5188 * pe-dll.c: Likewise.
5190 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5192 * pe-dll.c (process_def_file): Uninitialized data wasn't
5193 exported with --export-all-symbols switch.
5195 2000-09-28 DJ Delorie <dj@redhat.com>
5197 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5198 noname work properly.
5200 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5202 * ld.texinfo (HPPA ELF32): New section.
5204 * emultempl/hppaelf.em (group_size): New.
5205 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5206 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5207 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5208 options to prevent abbreviations matching.
5209 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5210 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5212 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5214 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5215 on the m68*-*-elf target. Make it support COFF input objects.
5217 2000-09-21 Kazu Hirata <kazu@hxi.com>
5219 * ldmain.c: Fix formatting.
5220 * ldmisc.c: Likewise.
5221 * ldver.c: Likewise.
5222 * ldwrite.c: Likewise.
5224 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5226 * ldwrite.c (clone_section): Silence gcc warnings.
5228 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5230 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5231 out of memory failure.
5233 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5234 (clone_section): Handle out of memory failures. Rename var to
5235 avoid c++ reserved word.
5237 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5239 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5240 stub_name param to stub_sec_name.
5241 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5243 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5245 * emultempl/m68kelf.em: New file.
5246 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5247 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5248 * Makefile.in: Regenerate.
5250 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5252 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5255 2000-09-13 Nick Clifton <nickc@redhat.com>
5257 * ldmain.c (multiple_definition): Disable relaxation if
5258 multiple symbol definitions are encountered - otherwise the
5259 linker could abort with an assertion failure.
5261 2000-09-10 Nick Clifton <nickc@redhat.com>
5263 * mri.c: Fix formatting.
5265 2000-09-07 H.J. Lu <hjl@gnu.org>
5267 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5268 * configure: Rebuild.
5270 2000-09-07 H.J. Lu <hjl@gnu.org>
5272 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5273 * Makefile.in: Rebuild.
5275 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5278 broken list handling. Create __start_SECNAME and __stop_SECNAME
5279 when no place-holder. Add some comments. Test both SEC_CODE and
5280 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5281 Handle case where no output section statement created.
5283 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5285 * configure.tgt (sh-*-linux*): Added.
5286 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5287 * Makefile.in: Rebuilt.
5288 * emulparams/shelf_linux.sh: New file.
5289 * emulparams/shlelf_linux.sh: New file.
5291 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5293 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5294 try shuffling sections when the orphan happens to be the place
5295 holder. Keep count of unique section names generated so we speed
5296 the search for a new name.
5298 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5300 * configure: Rebuilt with new libtool.m4.
5302 2000-09-05 Nick Clifton <nickc@redhat.com>
5304 * Makefile.in: Regenerate.
5305 * aclocal.m4: Regenerate.
5306 * configure: Regenerate.
5307 * config.in: Regenerate.
5308 * po/ld.pot: Regenerate.
5310 * ldint.texinfo: Remove CVS revision marker - it foils local
5313 * emultempl/ticoff.em: Remove extraneous comma.
5315 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5317 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5318 to stub section flags.
5319 (hppa_for_each_input_file_wrapper): New.
5320 (hppa_lang_for_each_input_file): New.
5321 (lang_for_each_input_file): Define to call above.
5322 (multi_subspace): New.
5323 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5324 (PARSE_AND_LIST_PROLOGUE): Define.
5325 (PARSE_AND_LIST_LONGOPTS): Define.
5326 (PARSE_AND_LIST_OPTIONS): Define.
5327 (PARSE_AND_LIST_ARGS_CASES): Define.
5328 (hppaelf_finish): Call elf32_hppa_set_gp.
5329 (hppaelf_set_output_arch): Remove.
5330 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5332 * emulparams/hppalinux.sh (ELFSIZE): Define.
5334 (OTHER_READONLY_SECTIONS): Define.
5336 (GENERATE_SHLIB_SCRIPT): Define.
5338 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5339 to const throughout. Change `void *' to `PTR' throughout.
5340 (lang_memory_default): Function is local to file, add `static'.
5342 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5343 (ehppalinux.c): Likewise.
5344 (earmelf.c): Likewise.
5345 (earmelf_linux.c): Likewise.
5346 (earmelf_linux26.c): Likewise.
5347 * Makefile.in: Regenerate.
5349 * ld.h (ld_config_type): Add unique_orphan_sections.
5350 * lexsup.c (OPTION_UNIQUE): Define.
5351 (ld_options): Add "--unique".
5352 (parse_args): Handle it.
5353 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5354 search for an existing output section if unique_orphan_sections is
5355 set. Make use of bfd_get_unique_section_name rather than
5356 duplicating code here.
5357 * ld.texinfo: Describe --unique.
5359 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5360 optional arg to split-by-file.
5361 (parse_args): Handle them.
5362 * ld.texinfo: Update description of these options.
5363 * ldwrite.c (clone_section): Pass in the section name. Replace
5364 local code with bfd_get_unique_section_name.
5365 (split_sections): Tidy code and comments. Use a list traversal
5366 more appropriate to the list construction. Handle cooked section
5367 sizes. Split when split_by_reloc reached rather than exceeded.
5368 Track section size and split when split_by_file reached. Fix
5369 link_order_tail (even though it's not used).
5370 (ldwrite): Modify condition for calling split_sections to suit
5371 changed split_by_reloc and split_by_file.
5372 * ldmain.c (main): Init config.split_by_reloc and
5373 config.split_by_file to -1.
5374 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5375 Change split_by_file to bfd_size_type.
5377 2000-09-02 Nick Clifton <nickc@redhat.com>
5379 * configure.in: Increase version number to 2.10.91.
5380 * NEWS: Mention new ability to support removal of duplicate DWARF2
5382 * configure: Regenerate.
5383 * aclocal.m4: Regenerate.
5384 * config.in: Regenerate.
5386 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5388 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5390 * scripttempl/elf32avr.sc: Ditto.
5391 * scripttempl/elfd10v.sc: Ditto.
5392 * scripttempl/elfd30v.sc: Ditto.
5393 * scripttempl/elfi370.sc: Ditto.
5394 * scripttempl/elfm68hc11.sc: Ditto.
5395 * scripttempl/elfm68hc12.sc: Ditto.
5396 * scripttempl/elfi386beos.sc: Ditto.
5397 * scripttempl/v850.sc: Ditto.
5399 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5401 * acinclude.m4: Include libtool and gettext macros from the
5403 * aclocal.m4, configure: Rebuilt.
5405 2000-08-25 Nick Clifton <nickc@redhat.com>
5407 * ldlang.c (open_output): When choosing the target for a
5408 particular endianness, do nothing if the target is not
5411 2000-08-25 H.J. Lu <hjl@gnu.org>
5413 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5414 check -rpath nor LD_RUN_PATH for cross link.
5415 * ld.texinfo: Document the change.
5417 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5419 * NEWS: Mention support for CRIS.
5421 2000-08-23 H.J. Lu <hjl@gnu.org>
5423 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5424 the current runpath list from bfd_elf_get_runpath_list ()
5427 2000-08-22 H.J. Lu <hjl@gnu.org>
5429 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5430 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5431 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5432 trace_file_tries is non-zero.
5433 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5434 if trace_file_tries is non-zero.
5436 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5439 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5441 * NEWS: Mention i860 support.
5443 2000-08-14 Andreas Schwab <schwab@suse.de>
5445 * scripttempl/elf.sc: Fix last change to use correct comment
5448 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5450 * scripttempl/elf.sc: Add a comment giving the correspondence
5451 between sections, per-datum sections, and linkonce sections. Make
5452 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5455 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5457 * emulparams/elf32_i860.sh: New file.
5458 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5459 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5460 (eelf32_i860.c): New rule.
5461 * Makefile.in: Regenerate.
5463 2000-08-10 Nick Clifton <nickc@cygnus.com>
5465 * emulparams/mipspe.sh (ENTRY): Add definition.
5467 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5469 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5472 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5474 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5475 the final size of .bss section.
5476 * scripttempl/elfm68hc12.sc: Likewise.
5478 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5480 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5481 gld${EMULATION_NAME}_parse_args for consistency. Combine
5482 lastoptind and prevoptind vars, and keep track of last optind.
5483 (gld_${EMULATION_NAME}_list_options): Rename to
5484 gld${EMULATION_NAME}_list_options.
5486 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5488 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5489 (i586-sco-sysv5uw7.1.0).
5491 2000-07-27 H.J. Lu <hjl@gnu.org>
5493 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5494 (PARSE_AND_LIST_PROLOGUE): New.
5495 (PARSE_AND_LIST_LONGOPTS): Likewise.
5496 (PARSE_AND_LIST_OPTIONS): Likewise.
5497 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5498 (PARSE_AND_LIST_EPILOGUE): Likewise.
5500 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5502 * emultempl/armelf.em: Elide functions common to elf32.em,
5503 ie. most of the file.
5504 (arm_elf_after_open): New. Do arm specific things then call
5505 gld${EMULATION_NAME}_after_open.
5506 (arm_elf_before_allocation): New. Call
5507 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5508 (PARSE_AND_LIST_PROLOGUE): Define.
5509 (PARSE_AND_LIST_SHORTOPTS): Define.
5510 (PARSE_AND_LIST_LONGOPTS): Define.
5511 (PARSE_AND_LIST_OPTIONS): Define.
5512 (PARSE_AND_LIST_ARGS_CASES): Define.
5513 (LDEMUL_AFTER_OPEN): Define.
5514 (LDEMUL_BEFORE_ALLOCATION): Define.
5515 (LDEMUL_BEFORE_PARSE): Define.
5516 (LDEMUL_FINISH): Define.
5518 * emultempl/hppaelf.em: Similarly zap most of this file.
5519 (hppaelf_add_stub_section): Prototype.
5520 (hppaelf_layaout_sections_again): Prototype.
5521 (hook_in_stub): Prototype.
5522 (LDEMUL_SET_OUTPUT_ARCH): Define.
5523 (LDEMUL_FINISH): Define.
5524 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5526 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5527 (EXTRA_EM_FILE): New.
5528 * emulparams/armelf_linux.sh: Likewise.
5529 * emulparams/armelf_linux26.sh: Likewise.
5530 * emulparams/hppalinux.sh: Likewise.
5531 * emulparams/hppaelf.sh: Likewise.
5534 * emultempl/elf32.em: Fix formatting.
5535 (EXTRA_EM_FILE): Source it.
5536 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5537 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5538 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5539 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5540 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5541 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5542 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5543 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5544 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5545 allow functions in this file to be overridden.
5546 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5548 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5550 * emultempl/elf32.em: Reorganize file.
5552 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5554 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5555 specific option to fit 64-bit executable in the lower
5556 31-bit address range. This is done by changing start
5557 address of .interp (the very first section of executable)
5558 and then setting EF_ALPHA_32BIT elf header flag.
5560 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5562 * emultempl/m68kcoff.em: New file.
5563 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5564 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5566 * Makefile.in: Regenerate.
5568 2000-07-20 H.J. Lu <hjl@gnu.org>
5570 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5571 and "disable-new-dtags" to stop getopt from treating -d/-e as
5572 abbreviations for these options.
5574 2000-07-20 H.J. Lu <hjl@gnu.org>
5576 * ld.texinfo: Add documentation for --disable-new-dtags and
5579 * ldmain.c (main): Initialize link_info.new_dtags to false.
5581 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5582 --disable-new-dtags and --enable-new-dtags.
5583 (gld_${EMULATION_NAME}_list_options): Likewise.
5585 2000-07-05 Kenneth Block <krblock@computer.org>
5587 * lexsup.c: Add optional style to demangle switch
5588 * ld.texinfo: Document optional style to demangle switch.
5590 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5592 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5594 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5595 Regenerate dependencies.
5596 * Makefile.in: Rebuild.
5597 * configure.tgt (cris-*-*): New target.
5598 * emulparams/crisaout.sh, emulparams/criself.sh,
5599 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5600 * po/POTFILES.in, po/ld.pot: Regenerate.
5602 2000-07-20 H.J. Lu <hjl@gnu.org>
5604 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5605 Print out ignored -z options.
5607 2000-07-19 H.J. Lu <hjl@gnu.org>
5609 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5610 (PARSE_AND_LIST_PROLOGUE): New.
5611 (PARSE_AND_LIST_LONGOPTS): Likewise.
5612 (PARSE_AND_LIST_OPTIONS): Likewise.
5613 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5615 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5617 * lexsup.c (ld_options): Comment out 'z'.
5618 (parse_args): Likewise.
5620 * emultempl/elf32.em: Include "elf/common.h".
5621 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5623 (gld_${EMULATION_NAME}_list_options): Likewise.
5625 * ld.texinfo: Add documentation for the recognized -z options.
5627 2000-07-19 H.J. Lu <hjl@gnu.org>
5629 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5630 bfd_elf_set_dt_needed_soname ().
5632 2000-07-18 DJ Delorie <dj@cygnus.com>
5634 * pe-dll.c (pe_dll_id_target): check object target name also
5636 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5638 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5639 ${INIT_END} if relocating.
5640 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5642 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5644 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5645 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5646 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5647 errors introduced by the old dynamic lib search order.
5649 2000-07-17 DJ Delorie <dj@cygnus.com>
5651 * pe-dll.c (process_def_file): auto-export data items also
5652 (pe_process_import_defs): also see if _imp_ form needed
5654 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5656 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5657 for dll import libraries
5659 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5661 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5662 gcc 2.95.2 and later.
5664 2000-07-11 Kazu Hirata <kazu@hxi.com>
5666 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5669 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5671 * ldemul.h (struct lang_input_statement_struct): Remove forward
5673 (struct search_dirs): Likewise.
5674 * ldfile.h (struct lang_input_statement_struct): Likewise.
5675 Protect file from multiple inclusion.
5676 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5677 declaration from macro to file scope.
5679 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5680 * ldgram.y: Likewise here.
5681 * ldlang.c: And here.
5682 * ldmain.c: And here.
5683 * mpw-elfmips.c: And here.
5684 * mpw-eppcmac.c: And here.
5685 * emultempl/aix.em: And here.
5686 * emultempl/armcoff.em: And here.
5687 * emultempl/armelf.em: And here.
5688 * emultempl/armelf_oabi.em: And here.
5689 * emultempl/beos.em: And here.
5690 * emultempl/elf32.em: And here.
5691 * emultempl/hppaelf.em: And here.
5692 * emultempl/linux.em: And here.
5693 * emultempl/lnk960.em: And here.
5694 * emultempl/pe.em: And here.
5695 * emultempl/sunos.em: And here.
5696 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5697 * mpw-idtmips.c: Ditto.
5698 * emultempl/generic.em: Ditto.
5699 * emultempl/gld960.em: Ditto.
5700 * emultempl/gld960c.em: Ditto.
5701 * emultempl/mipsecoff.em: Ditto.
5702 * emultempl/ticoff.em: Ditto.
5703 * emultempl/vanilla.em: Ditto.
5705 * pe-dll.c: Include ldfile.h
5706 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5708 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5709 arguments to bfd_elf32_size_dynamic_sections call.
5710 (gldelf32ebmip_place_orphan): Add missing arguments to
5711 lang_leave_output_section_statement call.
5713 2000-07-10 H.J. Lu <hjl@gnu.org>
5715 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5717 (strhash): Likewise.
5718 (compute_dll_image_base): Likewise.
5719 (pe_undef_found_sym): Likewise.
5720 (pe_undef_cdecl_match): Likewise.
5721 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5722 argument "arch" with ATTRIBUTE_UNUSED.
5724 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5726 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5728 From Ryan Bradetich <rbradetich@uswest.net>
5729 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5731 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5733 Changes to create multiple linker stubs, positioned immediately
5734 before the section where they are required.
5735 * emultempl/hppaelf.em: Include elf32-hppa.h.
5736 (stub_sec, file_chain): Delete.
5737 (hppaelf_create_output_section_statements): Don't make a stub
5739 (hook_stub_info): New struct.
5740 (hook_in_stub): New function.
5741 (hppaelf_add_stub_section): New function.
5742 (hppaelf_finish): Do nothing for relocateable links. Modify the
5743 call to elf32_hppa_size_stubs. Move code for updating section
5745 (hppaelf_layaout_sections_again): ..to here, a new function.
5747 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5748 broken list handling. Pass in a pointer to the list.
5749 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5751 (hppaelf_before_parse): Prototype.
5752 (hppaelf_set_output_arch): Prototype.
5753 (hppaelf_create_output_section_statements): Prototype.
5754 (hppaelf_delete_padding_statements): Prototype.
5755 (hppaelf_finish): Prototype.
5758 * emultempl/hppaelf.em: Include ctype.h.
5759 (struct orphan_save): New.
5760 (gld${EMULATION_NAME}_place_orphan): New.
5761 (output_rel_find): New.
5762 (hppaelf_get_script): Update from elf32.em.
5763 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5764 Change emulation_name field to "${EMULATION_NAME}". Add
5765 gld${EMULATION_NAME}_place_orphan.
5767 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5768 ehppalinux.o, sort it. Regenerate dependencies.
5769 (ehppalinux.c): Depend on hppaelf.em
5770 * Makefile.in: Regenerate.
5772 * configure.tgt: targ_emul=hppalinux for hppa*linux
5774 * emulparams/hppalinux.sh: New.
5775 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5777 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5779 * lexsup.c (parse_args): Copy section name.
5781 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5783 * emultempl/pe.em: institute the following search order for
5784 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5785 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5786 static lib (libfoo.a) if none of the above are found.
5788 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5790 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5791 (longopts): New --{enable,disable}-auto-image-base options.
5792 (gld_${EMULATION_NAME}_list_options): Document.
5793 (gld_${EMULATION_NAME}_parse): Handle.
5794 (strhash): New static function.
5795 (compute_dll_image_base): New static function.
5796 (gld_${EMULATION_NAME}_set_symbols): Use.
5798 2000-07-05 DJ Delorie <dj@redhat.com>
5802 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5804 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5805 * emulparams/elf32btsmip.sh: New file.
5806 * Makefile.am: Add traditional mips target.
5807 * Makefile.in: Rebuild.
5809 2000-07-01 H.J. Lu <hjl@gnu.org>
5811 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5812 automake to use YLWRAP.
5813 * Makefile.in: Rebuild.
5815 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5817 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5818 (CLEANFILES): Add DEPA.
5819 * Makefile.in: Regenerate.
5821 2000-06-30 Timothy Wall <twall@ppc>
5823 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5824 the page in the upper octet of the address.
5826 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5828 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5830 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5832 * NEWS: arm-elf does --gc-sections too.
5834 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5836 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5838 * Makefile.in: Regenerate.
5840 2000-06-21 H.J. Lu <hjl@gnu.org>
5842 * Makefile.am: Rebuild dependency.
5843 * Makefile.in: Rebuild.
5845 2000-06-20 H.J. Lu <hjl@gnu.org>
5847 * Makefile.am: Rebuild dependency.
5848 * Makefile.in: Rebuild.
5850 2000-06-20 Timothy Wall <twall@cygnus.com>
5852 * scripttempl/tic54xcoff.sc: New.
5853 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5854 * gen-doc.texi: Add flag for TI COFF.
5855 * ld.texinfo: Add documentation for TI COFF handling switches.
5856 * emultempl/ticoff.em: New. TI COFF handling.
5857 * configure.tgt: Add tic54x target.
5858 * Makefile.am: Add tic54x target.
5859 * Makefile.in: Ditto.
5861 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5863 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5864 checking for backslashes.
5866 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5868 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5870 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5872 * NEWS: Update list of targets supporting --gc-sections.
5874 * scripttempl/elf.sc: KEEP .eh_frame contents.
5875 * scripttempl/elfd30v.sc: Same here.
5877 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5879 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5881 * Makefile.in: Rebuild.
5882 * configure.tgt: Recognize m68hc12 and m68hc11.
5883 * scripttempl/elfm68hc12.sc: New file.
5884 * emulparams/m68hc12elfb: New emulation.
5885 * emulparams/m68hc12elf: New emulation.
5886 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5887 (includes a memory.x script to define the ROM and RAM banks).
5888 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5889 New configuration files for support of Motorola 68hc11
5891 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5893 * ldmain.c (main): Only change SEC_READONLY for final link.
5895 2000-06-13 H.J. Lu <hjl@gnu.org>
5897 * configure: Regenerate.
5899 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5901 * configure.in (VERSION): Update to show this is the CVS mainline.
5903 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5905 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5906 input objects to be ECOFF.
5907 (check_sections): einfo takes %B, not %P, to print a BFD name.
5909 2000-06-05 Michael Matz <matz@ifh.de>
5911 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5914 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5916 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5918 * emulparams/avr1200.sh (STACK): Define as 0.
5919 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5920 * emulparams/avr4433.sh (STACK): Likewise.
5921 * emulparams/avr44x4.sh (STACK): Likewise.
5922 * emulparams/avr85xx.sh (STACK): Likewise.
5923 * emulparams/avrmega103.sh (STACK): Likewise.
5924 * emulparams/avrmega161.sh (STACK): Likewise.
5925 * emulparams/avrmega603.sh (STACK): Likewise.
5926 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5927 (__stack): Define from ${STACK} for main().
5929 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5931 * Makefile.am: Update dependencies with "make dep-am"
5932 * Makefile.in: Regenerate.
5934 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5936 * ldmain.c: Include filenames.h.
5937 (set_scripts_dir): Support backslashes in program name.
5939 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5941 * ldmain.c (main): When deciding if ".text" section should be
5942 read-only, don't forget to reset SEC_READONLY because it
5943 could be already set.
5945 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5947 * ld.1: Add documentation for new command line option:
5948 --section-start <sectionname>=<sectionorg>
5949 This is a generic version of -Ttext etc. which accepts
5950 any section name as a parameter instead of just text/data/
5952 * ld.texinfo: More docs.
5954 * lexsup.c: (parse_args): Recognize new command line option.
5955 (ld_options): Add new option.
5957 2000-05-18 H.J. Lu <hjl@gnu.org>
5959 * lexsup.c (parse_args): `i' == `r', not `q'.
5961 2000-05-18 Jeffrey A Law (law@cygnus.com)
5963 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5965 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5966 Rick Gorton <gorton@scrugs.lkg.dec.com>
5968 Add support for '-q' == '--emit-relocs' switch.
5969 * ldmain.c (main): Default to false.
5970 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5971 * NEWS: Describe the emitrelocations switch.
5972 * ld.texinfo: Describe the emitrelocations switch.
5974 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5976 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5977 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5978 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5981 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5983 * lexsup.c (parse_args): Update the year in the copyright notice.
5985 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5987 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5988 Replace defines with those from intl/libgettext.h to quieten gcc
5991 2000-05-10 H.J. Lu <hjl@gnu.org>
5993 * ldlang.c (open_input_bfds): Don't load the same file within
5994 a group again if the whole archive has been loaded already.
5996 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5998 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5999 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6002 2000-05-01 Jim Wilson <wilson@cygnus.com>
6004 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6006 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6007 host "ia64-*-linux-gnu*".
6009 2000-04-29 Andreas Jaeger <aj@suse.de>
6011 * ld.h: Correctly check GCC version.
6013 2000-04-25 Jeffrey A Law (law@cygnus.com)
6015 * Makefile.am: Add PA64 support. Add missing dependencies for
6017 * Makefile.in: Rebuilt.
6018 * configure.tgt: Add PA64 support (currently disabled).
6020 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6022 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6023 (output_rel_find): New function.
6024 (hold_section, hold_use): Delete.
6025 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6026 hold_interp): Make local to place_orphan.
6027 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6028 rather than place_section to find possible previous use of orphan.
6029 Similarly find the place-holder output sections. Use returned
6030 value from lang_enter_output_section_statement rather than calling
6031 lang_output_section_statement_lookup.
6032 * emultempl/armelf.em: Same here.
6033 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6035 * ldlang.c (lang_enter_output_section_statement): Return output
6037 * ldlang.h (lang_enter_output_section_statement): Change
6040 * ldlang.h (lang_output_section_statement): Export it.
6041 * ldlang.c (lang_output_section_statement): Ditto.
6043 2000-04-24 Nick Clifton <nickc@cygnus.com>
6045 * ld.texinfo (Output Section Data): Add note that section data
6046 commands cannot appear outside of section directives.
6048 2000-04-2 Matthew Green <mrg@cygnus.com>
6050 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6052 2000-04-21 Richard Henderson <rth@cygnus.com>
6053 David Mosberger <davidm@hpl.hp.com>
6055 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6056 (eelf64_ia64.c): New rule.
6057 * Makefile.in: Rebuild.
6058 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6059 * emulparams/elf64_ia64.sh: New file.
6061 2000-04-21 Richard Henderson <rth@cygnus.com>
6063 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6065 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6067 * dep-in.sed: Match space at start of file name, not at end.
6069 2000-04-18 H.J. Lu <hjl@gnu.org>
6071 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6072 lang_leave_output_section_statement () after calling
6073 lang_enter_output_section_statement ().
6074 * emultempl/armelf.em: Likewise.
6076 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6078 * emultempl/elf32.em (struct orphan_save): Add section field.
6079 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6080 better order, and place first orphan section as we did before the
6081 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6082 Don't call make_bfd_section here, let wild_doit do the job for us.
6083 Don't build a statement list when we'll only throw it away.
6084 * emultempl/armelf.em: Ditto.
6085 * emultempl/pe.em: Similarly.
6087 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6089 * scripttempl/elfppc.sc: Remove.
6090 * emulparams/elf32ppc.sh: Use elf.sc.
6091 * emulparams/elf32lppc.sh: Use elf.sc.
6092 * emulparams/elf32ppclinux.sh: Use elf.sc.
6093 * emulparams/elf32ppcsim.sh: New file.
6094 * emulparams/elf32lppcsim.sh: New file.
6095 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6096 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6097 * Makefile.in: Regenerate.
6098 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6100 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6102 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6103 ~SEC_ALLOC sections too. Init start address of debug sections.
6104 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6105 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6106 Also set all relocateable section start addresses.
6108 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6110 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6111 Add new BSS_PLT variable for when .plt need not be contained in
6112 the file. Move _etext so that it is also after .fini, and provide
6113 both etext and _etext with a leading underscore. Mark the start
6116 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6118 * emultempl/elf32.em (struct orphan_save): New.
6119 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6120 hold_interp): Make them struct orphan_save.
6121 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6122 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6123 the end of the relevant section list. Also add associated section
6124 statements to the end of any previous orphan statements.
6125 * emultempl/armelf.em: Similarly.
6126 * emultempl/pe.em: Similarly.
6128 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6130 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6132 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6134 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6135 --enable-build-warnings option.
6136 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6137 * Makefile.in, configure: Re-generate.
6139 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6141 * po/ld.pot: Regenerate.
6143 * lexsup.c (help): Restore translated part of bug string.
6145 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6146 (DEP): Quote when passing vars to sub-make. Add warning message
6148 (DEP1): Rewrite for "gcc -MM".
6149 (CLEANFILES): Add DEP2.
6150 Update dependencies.
6151 * Makefile.in: Regenerate.
6153 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6155 * ld.h: #include "bin-bugs.h"
6156 * lexsup.c (help): Use REPORT_BUGS_TO.
6158 2000-03-27 Denis Chertykov <denisc@overta.ru>
6160 * configure.tgt (avr-*-*): New target support.
6161 * Makefile.am: Likewise.
6162 * scripttempl/elf32avr.sc: New script file.
6163 * emulparams/avr1200.sh: New file.
6164 * emulparams/avr23xx.sh: New file.
6165 * emulparams/avr4433.sh New file.
6166 * emulparams/avr44x4.sh New file.
6167 * emulparams/avr85xx.sh New file.
6168 * emulparams/avrmega103.sh New file.
6169 * emulparams/avrmega161.sh New file.
6170 * emulparams/avrmega603.sh New file.
6171 * Makefile.in: Regenerate.
6173 2000-03-09 Andreas Jaeger <aj@suse.de>
6175 * Makefile.am (check-DEJAGNU): Also unset LANG.
6176 * Makefile.in: Rebuild.
6178 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6180 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6183 2000-03-02 H.J. Lu <hjl@gnu.org>
6185 * emulparams/elf32mcore.sh: Include "getopt.h".
6187 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6189 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6191 2000-03-01 H.J. Lu <hjl@gnu.org>
6193 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6194 * emulparams/shpe.sh: Likewise.
6196 2000-03-01 Nick Clifton <nickc@cygnus.com>
6198 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6199 to unused parameters.
6201 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6202 functions only used by DLL code.
6203 (_place_orphan): Initialise 'dollar'.
6205 2000-03-01 H.J. Lu <hjl@gnu.org>
6207 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6208 indicate if the undefined symbol is a fatal error or not.
6209 Don't delete the output file if "fatal" is false.
6211 2000-02-29 H.J. Lu <hjl@gnu.org>
6213 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6214 Set LC_COLLATE and LC_ALL to null and export them. It is for
6215 sort which expects the C locale.
6216 Add $(LIBS) to all $(HOSTING_LIBS).
6217 * Makefile.in: Rebuild.
6219 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6221 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6222 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6223 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6224 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6225 find_potential_libraries.
6227 2000-02-28 Jim Blandy <jimb@redhat.com>
6229 * ldgram.y (exclude_name_list): Don't require a comma to separate
6230 list entries; the lexer considers commas to be valid part of a
6231 filename, so in something like `foo, bar' the comma is considered
6232 part of the first filename, `foo,'.
6233 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6235 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6237 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6238 host "i[3456]86-*-freebsdelf*".
6240 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6242 * scripttempl/i386go32.sc: Move misplaced semicolons.
6244 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6246 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6247 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6248 (eelf64hppa.c, ehppaelf.c): Remove targets.
6249 * Makefile.in: Rebuild.
6251 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6253 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6254 GNU/Linux/sparc, but keep the default as 32.
6256 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6257 it default if sparcv9 or sparc64.
6259 2000-02-24 Nick Clifton <nickc@cygnus.com>
6261 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6262 * Makefile.in: Regenerate.
6263 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6265 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6266 find_potential_libraries.
6267 * ldemul.c (ldemul_find_potential_libraries): New function.
6269 * ldfile.c (ldfile_open_file_search): Allow function to be
6271 (ldfile_open_file): Call ldemul_find_potential_libraries.
6272 * ldfile.h: Add prototype for ldfile_open_file_search.
6274 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6276 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6277 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6279 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6280 (gld_X_find_potential_libraries): New function. Search for
6281 libraries called "*.lib".
6283 * scripttempl/pe.sc: Add .pdata section.
6285 2000-02-23 Richard Henderson <rth@cygnus.com>
6287 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6288 Add and use memory regions.
6290 2000-02-23 Linas Vepstas (linas@linas.org)
6292 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6294 * Makefile.am: Add support for Linux/IBM 370.
6295 * configure.tgt: Likewise.
6297 * Makefile.in: Regenerate.
6299 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6301 * ldlang.c (print_input_section, print_data_statement,
6302 print_reloc_statement, print_padding_statement, insert_pad,
6303 size_input_section, lang_check_section_addresses,
6304 lang_size_sections, lang_do_assignments, lang_set_startof,
6305 lang_one_common): Change `opb' to unsigned.
6306 (lang_do_assignments): Also change `size' to unsigned.
6308 2000-02-16 Richard Henderson <rth@cygnus.com>
6310 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6312 2000-02-16 Timothy Wall <twall@cygnus.com>
6314 * mri.c (mri_draw_tree): Add default LMA region argument to call
6315 to lang_leave_output_section_statement.
6316 * ldlang.h: Update prototypes with LMA region arguments.
6317 * ldlang.c (lang_size_sections): Encapsulate region bounds
6318 checking in os_check_region call.
6319 (os_check_region): New function.
6320 (lang_output_section_statement_lookup): Initialize lma_region.
6321 (lang_leave_output_section_statement): Add LMA region argument.
6322 (lang_leave_overlay): Ditto.
6323 * ldgram.y: Handle LMA region syntax.
6324 * ld.texinfo (Output Section Description): Describe LMA region usage.
6325 * emultempl/armelf.em (gld$place_orphan): Add default value for
6326 lma region in call to lang_leave_output_section_statement.
6327 * emultempl/elf32.em (gld$place_orphan): Add default value for
6328 lma region in call to lang_leave_output_section_statement.
6329 * emultempl/pe.em (gld$place_orphan): Add default value for
6330 lma region in call to lang_leave_output_section_statement.
6333 2000-02-04 Timothy Wall <twall@redhat.com>
6335 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6336 octets when calculating section end addresses.
6338 2000-02-04 Timothy Wall <twall@redhat.com>
6340 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6342 2000-02-03 Timothy Wall <twall@redhat.com>
6344 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6346 * ldlang.c (print_input_section, print_data_statement,
6347 print_reloc_statement, print_padding_statement): Print target
6348 address values and section sizes as bytes, not octets.
6349 (insert_pad) Calculate padding size in octets, and adjust "dot"
6351 (size_input_section) Always adjust "dot" by bytes, not octets.
6352 (lang_check_section_addresses, lang_do_assignments) Adjust
6353 "dot" by bytes, not octets. Use the larger of the directive size
6354 or octets_per_byte for the number of octets actually allocated in
6356 (lang_set_startof) Make sure STARTOF returns a target address.
6357 (lang_one_common) Record size changes in octets.
6358 (lang_abs_symbol_at_end_of) Section end symbol's value is
6359 recorded in target bytes.
6360 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6361 to be clear about behavior when an octet is smaller than one byte.
6363 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6365 * ldcref.c (output_cref): Don't pass message strings to printf
6369 * ldmisc.c (vfinfo): Same here.
6372 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6374 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6375 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6376 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6377 Add missing NULL initialisers, and comments.
6379 2000-01-21 Nick Clifton <nickc@cygnus.com>
6381 * ldlang.c (lang_size_sections): Fix typo in comment.
6383 2000-01-18 H.J. Lu <hjl@gnu.org>
6385 * ldlang.c (lang_size_sections): Also update the current
6386 address of a region if the SEC_NEVER_LOAD bit is not set.
6388 2000-01-10 Philip Blundell <pb@futuretv.com>
6390 * configure.tgt (arm*-*-conix*): New target.
6392 2000-01-07 Nick Clifton <nickc@cygnus.com>
6394 * ld.texinfo (Options): Remind users to preceed linker command
6395 line switches with -Wl, (or whatever is appropriate) if it is
6396 being invoked by a comnpiler driver program.
6397 Fix description of the behaviour of the -n command line switch.
6399 2000-01-05 Catherine Moore <clm@cygnus.com>
6401 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6403 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6404 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6405 (exclude_name_list): New.
6406 ldlang.c (walk_wild_section): Support list of excluded files.
6407 (print_wild_statement): Likewise.
6408 (lang_add_wild): Likewise.
6409 * ldlang.h (lang_wild_statement_type): Likewise.
6410 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6412 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6414 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6415 (process_def_file): Use.
6416 (pe_dll_compat_implib): New variable.
6419 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6420 pe_dll_compat_implib.
6422 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6423 compat-implib options.
6424 (gld_${EMULATION_NAME}_list_options): List new options.
6425 (gld_${EMULATION_NAME}_parse_args): Handle.
6427 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6430 * deffilep.y (opt_name): Allow "." in name.
6432 For older changes see ChangeLog-9899
6438 version-control: never