1 2003-07-28 Alan Modra <amodra@bigpond.net.au>
3 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
5 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
7 2003-07-27 Alan Modra <amodra@bigpond.net.au>
9 * ld.texinfo: Typo fixes. Document SUBALIGN.
10 * ldgram.y (opt_subalign): Add.
11 * ldlex.l (SUBALIGN): Recognize.
12 * ldlang.c (overlay_subalign): New var.
13 (lang_enter_overlay): Add subalign param.
14 (lang_enter_overlay_section): Pass overlay_subalign to
15 lang_enter_output_section_statement.
16 * ldlang.h (lang_enter_overlay): Update.
18 2003-07-24 Nick Clifton <nickc@redhat.com>
20 * po/fr.po: Updated French translation.
22 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
24 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
25 account .tramp sections;
26 * scripttempl/elfm68hc12.sc: Likewise.
28 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
30 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
32 2003-07-17 Nick Clifton <nickc@redhat.com>
34 * po/es.po: New Spanish translation.
36 2003-07-11 Alan Modra <amodra@bigpond.net.au>
38 * po/ld.pot: Regenerate.
40 2003-07-10 Bob Wilson <bob.wilson@acm.org>
42 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
43 with new .got.loc section.
44 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
46 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
47 sections separate for non-relocating links; likewise for .xt.insn.
49 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
51 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
52 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
53 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
54 * configure.host (am33_2.0-*-linux*): Added.
55 * configure.tgt (am33_2.0-*-linux*): Likewise.
56 * emulparams/elf32am33lin.sh: New.
57 * Makefile.am (eelf32am33lin.c): New rule.
58 * Makefile.in: Rebuilt.
60 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
62 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
63 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
64 (GENERATE_SHLIB_SCRIPT): Likewise.
66 2003-07-10 Alan Modra <amodra@bigpond.net.au>
68 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
70 * emultempl/ppc64elf.em (stub_added): New static var.
71 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
72 (ppc_add_stub_section): Set stub_added.
73 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
74 ppc64_elf_size_stubs call and test for stubs.
75 * scripttempl/elf.sc (GOT): Define and use.
77 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
79 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
80 Allow second call from ldemul_finish.
82 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
84 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
85 (OTHER_SECTIONS): Include .stack.
86 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
88 2003-07-02 Jakub Jelinek <jakub@redhat.com>
90 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
92 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
93 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
96 2003-06-28 Alan Modra <amodra@bigpond.net.au>
98 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
99 Replace PTR with void *. Formatting.
100 * ldcref.c: Likewise.
101 * ldctor.c: Likewise.
102 * ldctor.h: Likewise.
103 * ldemul.h: Likewise.
106 * ldfile.c: Likewise.
107 * ldfile.h: Likewise.
108 * ldlang.c: Likewise.
109 * ldlang.h: Likewise.
112 * ldmain.c: Likewise.
113 * ldmain.h: Likewise.
114 * ldmisc.c: Likewise.
115 * ldmisc.h: Likewise.
117 * ldwrite.c: Likewise.
118 * ldwrite.h: Likewise.
119 * lexsup.c: Likewise.
122 * pe-dll.c: Likewise.
123 * pe-dll.h: Likewise.
124 * deffilep.y: Likewise.
125 * deffile.h: Likewise. Don't include ansidecl.h.
126 * emulparams/elf32mcore.sh: Remove unnecessary cast.
127 * emultempl/m68kcoff.em: Likewise.
128 * emultempl/m68kelf.em: Likewise.
129 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
130 * sysdep.h: Don't include ansidecl.h.
131 * Makefile.am: Run "make dep-am".
132 * Makefile.in: Regenerate.
134 2003-06-27 Nick Clifton <nickc@redhat.com>
136 * deffilep.y (def_file_add_directive): Cope with NUL seperated
137 directives. Fix reporting of unparseable directives.
138 (def_error): Check for a NULL def_filename.
140 2003-06-27 Alan Modra <amodra@bigpond.net.au>
142 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
143 and casts. Replace PTR with void *. Formatting.
144 * emultempl/alphaelf.em: Likewise.
145 * emultempl/armcoff.em: Likewise.
146 * emultempl/armelf.em: Likewise.
147 * emultempl/armelf_oabi.em: Likewise.
148 * emultempl/beos.em: Likewise.
149 * emultempl/elf32.em: Likewise.
150 * emultempl/generic.em: Likewise.
151 * emultempl/gld960.em: Likewise.
152 * emultempl/gld960c.em: Likewise.
153 * emultempl/hppaelf.em: Likewise.
154 * emultempl/linux.em: Likewise.
155 * emultempl/lnk960.em: Likewise.
156 * emultempl/m68hc1xelf.em: Likewise.
157 * emultempl/m68kcoff.em: Likewise.
158 * emultempl/m68kelf.em: Likewise.
159 * emultempl/mipsecoff.em: Likewise.
160 * emultempl/mipself.em: Likewise.
161 * emultempl/mmix-elfnmmo.em: Likewise.
162 * emultempl/mmixelf.em: Likewise.
163 * emultempl/mmo.em: Likewise.
164 * emultempl/needrelax.em: Likewise.
165 * emultempl/netbsd.em: Likewise.
166 * emultempl/pe.em: Likewise.
167 * emultempl/sh64elf.em: Likewise.
168 * emultempl/sunos.em: Likewise.
169 * emultempl/ticoff.em: Likewise.
170 * emultempl/vanilla.em: Likewise.
171 * emultempl/xtensaelf.em: Likewise.
172 * Makefile.am: Correct dependencies.
173 * Makefile.in: Regenerate.
175 2003-06-25 Alan Modra <amodra@bigpond.net.au>
177 * ld.texinfo: Correct spelling of "relocatable".
178 * ldctor.c: Likewise.
180 * ldfile.c: Likewise.
181 * ldint.texinfo: Likewise.
182 * ldlang.c: Likewise.
183 * ldmain.c: Likewise.
184 * ldwrite.c: Likewise.
185 * lexsup.c: Likewise.
186 * emultempl/aix.em: Likewise.
187 * emultempl/alphaelf.em: Likewise.
188 * emultempl/armcoff.em: Likewise.
189 * emultempl/armelf_oabi.em: Likewise.
190 * emultempl/beos.em: Likewise.
191 * emultempl/elf32.em: Likewise.
192 * emultempl/generic.em: Likewise.
193 * emultempl/gld960.em: Likewise.
194 * emultempl/gld960c.em: Likewise.
195 * emultempl/hppaelf.em: Likewise.
196 * emultempl/linux.em: Likewise.
197 * emultempl/lnk960.em: Likewise.
198 * emultempl/m68hc1xelf.em: Likewise.
199 * emultempl/m68kcoff.em: Likewise.
200 * emultempl/m68kelf.em: Likewise.
201 * emultempl/mipsecoff.em: Likewise.
202 * emultempl/mipself.em: Likewise.
203 * emultempl/mmix-elfnmmo.em: Likewise.
204 * emultempl/mmo.em: Likewise.
205 * emultempl/needrelax.em: Likewise.
206 * emultempl/pe.em: Likewise.
207 * emultempl/ppc64elf.em: Likewise.
208 * emultempl/sh64elf.em: Likewise.
209 * emultempl/sunos.em: Likewise.
210 * emultempl/ticoff.em: Likewise.
211 * emultempl/xtensaelf.em: Likewise.
213 2003-06-24 Alan Modra <amodra@bigpond.net.au>
215 * emultempl/ppc32elf.em: Convert to C90.
217 2003-06-20 Alan Modra <amodra@bigpond.net.au>
219 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
220 unnecessary prototypes and casts.
222 2003-06-19 Alan Modra <amodra@bigpond.net.au>
224 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
225 statistics from ppc64_elf_build_stubs.
227 2003-06-19 Alan Modra <amodra@bigpond.net.au>
229 * emultempl/ppc64elf.em (build_section_lists): Check return status
230 from ppc64_elf_next_input_section.
232 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
234 * ldlang.c (section_already_linked): Put back assignment of
237 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
239 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
242 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
244 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
245 if not produced by gcc.
247 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
249 * configure.tgt: Add specific case for cris-*-linux-gnu*
250 with crislinux emulation only.
252 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
254 * configure.tgt: Add i386-netbsd-gnu target.
256 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
258 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
259 to $targ_extra_libpath.
261 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
263 * po/Make-in (DESTDIR): New.
264 (install-data-yes): Support $(DESTDIR).
265 (uninstall): Likewise.
267 2003-06-10 Doug Evans <dje@sebabeach.org>
269 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
270 * Makefile.in: Regenerate.
272 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
274 * configure.tgt (h8300*): Add h8300sxn emulations.
275 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
276 (eh8300sxn.c, eh8300sxnelf.c): New rules.
277 * Makefile.in: Regenerate.
278 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
279 * scripttempl/h8300sxn.sc: New file.
281 2003-06-10 Alan Modra <amodra@bigpond.net.au>
283 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
284 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
286 2003-06-08 Alan Modra <amodra@bigpond.net.au>
288 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
289 (build_toc_list): New function.
290 (gld${EMULATION_NAME}_finish): Call build_toc_list and
291 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
292 (OPTION_STUBSYMS): Define.
293 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
294 (PARSE_AND_LIST_OPTIONS): Document.
295 (PARSE_AND_LIST_ARGS_CASES): Handle.
297 2003-06-05 Roland McGrath <roland@redhat.com>
299 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
300 extra \t in -z noexecstack line.
302 2003-05-23 Jakub Jelinek <jakub@redhat.com>
304 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
305 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
306 -z execstack and -z noexecstack.
307 (gld${EMULATION_NAME}_list_options): Likewise.
308 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
310 2003-06-03 Michael Snyder <msnyder@redhat.com>
311 and Bernd Schmidt <bernds@redhat.com>
312 and Alexandre Oliva <aoliva@redhat.com>
314 * Makefile.am: Add new emulations for h8300sx.
315 * Makefile.in: Regenerate.
316 * configure.tgt: Add new emulations.
317 * emulparams/h8300sx.sh: New emulation.
318 * emulparams/h8300sxelf.sh: Ditto.
319 * scripttempl/h8300sx.sc: Ditto.
321 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
323 * ldmisc.c: Include "bfdlink.h".
324 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
325 and -LD_DEFINITION_IN_DISCARDED_SECTION.
327 * Makefile.am: Rebuild dependency.
328 * Makefile.in: Regenerated.
330 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
332 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
333 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
335 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
337 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
338 sorted alphabetically, instead of exported_symbols, which is
341 2003-05-30 Ulrich Drepper <drepper@redhat.com>
342 Jakub Jelinek <jakub@redhat.com>
344 * lexsup.c (OPTION_PIE): Define.
345 (ld_options): Add -pie and --pic-executable options.
346 (parse_args): Handle OPTION_PIE.
347 * ldmain.c (main): Initialize link_info.pie and
348 link_info.executable.
349 * genscripts.sh: Generate PIE scripts.
350 * ld.texinfo: Document -pie and --pic-executable options.
351 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
352 (gld${EMULATION_NAME}_place_orphan): Likewise.
353 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
354 * scripttempl/elf.sc: In PIE scripts set . the same way as in
356 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
357 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
358 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
359 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
360 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
361 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
362 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
363 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
364 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
365 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
366 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
368 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
370 * genscripts.sh: Create tmpdir/libpath.exp.
372 2003-05-30 Nick Clifton <nickc@redhat.com>
374 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
375 with a test for a NULL bfd_for_interworking.
377 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
379 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
380 correctly for more recent versions of NetBSD.
381 (alpha*-*-netbsd*): Remove.
382 (i[3-7]86-*-netbsd*): Remove.
384 2003-05-29 Nick Clifton <nickc@redhat.com>
386 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
388 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
390 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
391 trap on pointer crops.
393 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
395 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
396 as well as shle-...-netbsdelf.
398 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
400 * configure.host: Accept i[3-7]86 variants.
401 * configure.tgt: Likewise.
403 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
405 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
407 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
409 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
410 (earmelfb.c, earmelfb_linux.c): New rules.
411 * Makefile.in: Regenerated.
412 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
413 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
415 2003-05-09 Nick Clifton <nickc@redhat.com>
417 * ldlang.c (lang_size_sections_1): Default to generating a
418 fatal error message if a loadable section is not allocated
419 to a memory region when regions are defined.
421 2003-05-09 Alan Modra <amodra@bigpond.net.au>
423 * Makefile.am (em68hc11elf.c): Correct dependencies.
424 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
425 * Makefile.in: Regenerate.
426 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
427 bfd_elf_record_link_assignment name.
429 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
431 * ldmain.h (overflow_cutoff_limit): Declare.
432 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
433 (reloc_overflow): Limit error messages based on it.
434 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
437 2003-05-05 Alan Modra <amodra@bigpond.net.au>
439 * ldlex.l: Accept C style comments in version scripts.
441 2003-04-28 H.J. Lu <hjl@gnu.org>
443 * ldlang.c (lang_process): Add the relax finalize pass.
445 * ldmain.c (main): Initialize link_info.relax_finalizing to
448 2003-04-24 Roland McGrath <roland@redhat.com>
450 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
451 If a name string is unknown, give an error rather than crashing later.
453 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
455 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
456 eh8300hnelf.o, eh8300snelf.o and respective rules.
457 * Makefile.in: Regenerate.
458 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
459 * emulparams/h8300hn.sh: New
460 * emulparams/h8300sn.sh: New
461 * emulparams/h8300hnelf.sh: New
462 * emulparams/h8300snelf.sh: New
463 * scripttempl/h8300hn.sc: new
464 * scripttempl/h8300sn.sc: new
466 2003-04-23 H.J. Lu <hjl@gnu.org>
468 * ldmain.c (link_callbacks): Initialize error_handler.
470 * ldmisc.c (error_handler): New function.
472 * ldmisc.h (error_handler): New prototype.
474 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
476 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
477 * emulparams/m68hc11elfb.sh: Likewise.
478 * emulparams/m68hc12elf.sh: Likewise.
479 * emulparams/m68hc12elfb.sh: Likewise.
481 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
483 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
485 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
487 (LDEMUL_FINISH): Override to generate the trampolines after gc and
489 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
490 stub file for trampolines.
491 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
492 --no-trampoline and --bank-window to control the memory bank window.
494 2003-04-18 H.J. Lu <hjl@gnu.org>
496 * ldfile.c (ldfile_add_library_path): Remove the unused
499 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
501 * scripttempl/xstormy16.sc (__data, __rdata): New.
503 2003-04-16 Nick Clifton <nickc@redhat.com>
505 * scripttempl/xstormy16.sc: Add .jcr section mapping.
507 2003-04-15 H.J. Lu <hjl@gnu.org>
509 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
511 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
513 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
515 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
516 * ld.texinfo: Likewise.
518 2003-04-14 Alan Modra <amodra@bigpond.net.au>
520 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
521 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
522 other variants of crtbegin.o, crtend.o.
524 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
525 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
526 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
527 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
528 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
529 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
530 * scripttempl/mmo.sc (ctors, dtors): Likewise.
531 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
533 2003-04-09 Dmitry Diky <diwil@mail.ru>
535 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
536 sections to respect C++ constructor/destructor. Add ctors/dtors
537 start/stop definitions.
538 * scripttempl/elf32msp430_3.sc: Likewise.
540 2003-04-06 Nick Clifton <nickc@redhat.com>
542 * ld.texinfo (Options): Add a reminder of the target specific
543 nature to the description of the i386 PE specific options, for
544 readers who have not read all the way through the manual.
546 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
548 * configure.tgt: Fixed bug in list of targ_extra_emuls.
549 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
550 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
551 * emulparams/tic3xcoff_onchip.sh: Ditto
552 * emulparams/tic4xcoff.sh: Ditto
553 * scripttempl/tic4xcoff.sc: Ditto
555 2003-04-03 Nick Clifton <nickc@redhat.com>
557 * NEWS: Mention support for Xtensa architecture.
559 2003-04-02 Nick Clifton <nickc@redhat.com>
561 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
563 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
565 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
566 Don't call pe_dll_build_section() if link_info.relocateable.
567 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
568 if link_info.relocateable.
570 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
572 * pe-dll.c (process_def_file): Don't create an export
573 section if there are no exports and we're building an exe
574 (pe_dll_build_sections): Ditto
575 (pe_dll_fill_sections): Conditionalize setting
576 abfd->dll true on info->shared
577 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
578 If i386pe or armpe, call pe_dll_build_section()
579 for both exe's and dll's, not just dll's.
580 (gld_${EMULATION_NAME}_finish): For all targets except
581 shpe and mipspe, call pe_dll_fill_sections() for both
582 exe's and dll's, not just dll's.
584 2003-04-02 Bob Wilson <bob.wilson@acm.org>
586 * emulparams/xtensa-config.sh: Remove comment indicating that this is
589 2003-04-01 Bob Wilson <bob.wilson@acm.org>
591 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
592 (eelf32xtensa.c): New target.
593 * Makefile.in: Regenerate.
594 * configure.tgt: Handle xtensa-*-*.
595 * gen-doc.texi: Set XTENSA variable.
596 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
597 * emulparams/elf32xtensa.sh: New file.
598 * emulparams/xtensa-config.sh: Likewise.
599 * emultempl/xtensaelf.em: Likewise.
600 * scripttempl/elfxtensa.sc: Likewise.
602 2003-04-01 Jakub Jelinek <jakub@redhat.com>
604 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
605 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
606 if --enable-64-bit-bfd.
608 2003-04-01 Nick Clifton <nickc@redhat.com>
610 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
612 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
613 name of note section.
615 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
617 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
620 2003-03-31 David Heine <dlheine@suif.stanford.edu>
622 * ldfile.c (ldfile_add_library_path): Always allocate space for
624 * ldlang.c (lang_register_vers_node): Free the node if it cannot
626 * ldmain.c (set_scripts_dir): Always free the constructed
628 (add_keepsyms_file): Fix memory leak.
629 * ldmisc.c (vfinfo): Likewise.
630 * lexsup.c (parse_args): Likewise.
632 2003-03-25 Stan Cox <scox@redhat.com>
633 Nick Clifton <nickc@redhat.com>
635 Contribute support for Intel's iWMMXt chip - an ARM variant:
637 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
638 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
639 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
642 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
644 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
645 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
646 (main): Initialize them.
647 * ldfile.c: Include pathnames.h.
648 (is_sysrooted_pathname): New.
649 (ldfile_add_library_path): Use it.
650 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
651 search_dirs if given an absolute pathname.
652 (ldfile_open_file): Issue error message for sysrooted
654 * Makefile.am: Updated dependencies.
655 * Makefile.in: Rebuild.
657 2003-03-24 Daniel Néri <dne@mayonnaise.net>
659 * ld.texinfo: Rename all occurances of C54X to TIC54X.
661 2003-03-19 Andreas Schwab <schwab@suse.de>
663 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
666 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
668 * defilep.y (opt_base): If no number given, set to default
671 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
673 * deffilep.y (def_import): Use default extension of "dll"
674 if no extension provided in parsed IMPORT definition.
676 * deffilep.y (def_lex): Revert 2003-03-12 change.
677 (dot_name): New id type and rule.
678 (expline): Use instead of ID.
679 (opt_equal_name): Likewise.
681 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
683 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
685 2003-03-07 Christopher Faylor <cgf@redhat.com>
687 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
688 apparent accidental removal on 2003-01-06.
690 2003-03-04 Dmitry Diky <diwil@mail.ru>
692 * Makefile.am: Add new devices x1122 x1132 emulation
693 * configure.tgt: Likewise.
694 * Makefile.in: Regenerate.
695 * emulparams/msp430x1122.sh: New file.
696 * emulparams/msp430x1132.sh: New file.
698 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
700 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
703 * ldfile.h (struct search_dirs): Added sysrooted field.
704 * ldlang.h (struct lang_input_statement_struct): Likewise.
705 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
706 (ldfile_open_file_search): Look for sysrooted filename starting
707 with / in ld_sysroot instead of in the current directory. Clear
708 sysrooted flag if it's found in the current directory. Set it
709 from the search directory's sysrooted flag where it is found
711 * ldlang.c (ldlang_sysrooted_script): New static variable.
712 (new_afile): Mark search_file_enums as sysrooted if
713 ldlang_sysrooted_script.
714 (load_symbols): Set ldlang_sysrooted_script according to the
715 script's sysrooted field while processing it.
716 * ld.texinfo: Document INPUT behavior in sysroot.
718 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
720 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
722 2003-03-03 Alan Modra <amodra@bigpond.net.au>
724 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
725 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
726 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
727 PARSE_AND_LIST_EPILOGUE): Don't define.
728 * emultempl/alphaelf.em: New file.
730 2003-03-01 Alan Modra <amodra@bigpond.net.au>
732 * ldemul.c: Include getopt.h.
733 * emultempl/elf32.em: Include getopt.h earlier.
734 * emultempl/ticoff.em: Likewise.
736 2003-02-28 Alan Modra <amodra@bigpond.net.au>
738 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
739 support when scripts read from files.
741 2003-02-28 Alan Modra <amodra@bigpond.net.au>
743 * ldemul.c (ldemul_parse_args): Return FALSE by default.
744 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
747 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
748 (ldemul_parse_args): Return bfd_boolean. Formatting.
749 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
750 (ldemul_parse_args): Adjust.
751 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
752 Return bfd_boolean from parse_args.
753 * lexsup.c (parse_args): Malloc shortopts, longopts and
754 really_longopts. Call ldemul_add_options and ldemul_handle_option.
755 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
756 gld${EMULATION_NAME}_parse_args.
757 (gld${EMULATION_NAME}_handle_option): Likewise.
758 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
759 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
760 * emultempl/beos.em: Likewise.
761 * emultempl/pe.em: Likewise.
762 * emultempl/ticoff.em: Likewise.
763 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
764 (gld${EMULATION_NAME}_add_sysroot): Prototype.
765 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
767 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
768 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
769 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
770 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
772 * emultempl/generic.em: Likewise.
773 * emultempl/gld960.em: Likewise.
774 * emultempl/gld960c.em: Likewise.
775 * emultempl/linux.em: Likewise.
776 * emultempl/lnk960.em: Likewise.
777 * emultempl/m68kcoff.em: Likewise.
778 * emultempl/mipsecoff.em: Likewise.
779 * emultempl/sunos.em: Likewise.
780 * emultempl/vanilla.em: Likewise.
781 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
783 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
785 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
786 memory allocation error.
788 * Makefile.am (ldmain.o): Define TOOLBINDIR.
789 * Makefile.in: Rebuilt.
790 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
792 2003-02-21 Bob Wilson <bob.wilson@acm.org>
794 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
795 call os_region_check when it is set.
796 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
797 lang_size_sections_1.
798 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
799 only for the last call, not on every relaxation iteration.
800 * ldlang.h (lang_size_sections): Update prototype.
801 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
802 to lang_size_sections.
803 (pe_exe_fill_sections): Likewise.
804 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
805 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
806 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
807 (ppc_layout_sections_again): Likewise.
809 2003-02-21 Bob Wilson <bob.wilson@acm.org>
811 * gen-doc.texi: Set ARM and HPPA variables.
812 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
813 title capitalization more consistent. Add missing menu entries for
814 machine-specific sections and conditionalize them consistently.
815 Conditionalize text that is irrelevant when SingleFormat is set.
816 Add @group divisions to improve page breaks in long examples.
817 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
818 is correct. Remove "FIXME" comment about not using
819 @raisesections/@lowersections. Use @raisesections/@lowersections
820 consistently for machine-specific sections. Change to be more polite
821 about poor bug reports. Replace FDL appendix with include of fdl.texi.
822 Move WIN32 node to match its order in the menus.
823 * fdl.texi: New file.
825 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
827 * configure.in (TARGET_SYSTEM_ROOT): Set default to
828 ${exec_prefix}/${target_alias}/sys-root. Match explicit
829 '${exec_prefix}' (in addition to the expansion thereof) as
831 * configure: Rebuilt.
833 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
835 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
837 2003-02-20 Harri Porten <porten@kde.org>
839 * ldgram.y (vers_defns): Allow optional trailing semicolon in
842 2003-02-18 Alan Modra <amodra@bigpond.net.au>
844 * emultempl/ppc32elf.em: New file.
845 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
846 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
847 (eelf32lppcnto.c): Likewise.
848 (eelf32lppcsim.c): Likewise.
849 (eelf32ppcnto.c): Likewise.
850 (eelf32ppc.c): Likewise.
851 (eelf32ppc_fbsd.c): Likewise.
852 (eelf32ppcsim.c): Likewise.
853 (eelf32ppclinux.c): Likewise.
854 * Makefile.in: Regenerate.
856 2003-02-18 Alan Modra <amodra@bigpond.net.au>
858 * ld.texinfo: Remove spaces between @samp and opening brace.
860 2003-02-18 Alan Modra <amodra@bigpond.net.au>
862 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
864 (ppc_before_allocation): Don't do optimizations if wrong hash table.
865 (gld${EMULATION_NAME}_finish): Ditto.
867 2003-02-17 Nick Clifton <nickc@redhat.com>
869 * ldmain.c (main) Default allow_shlib_undefined to true.
870 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
871 (parse_args): Parse the new switch.
872 * ld.texinfo: Document new switch and default behaviour of
873 allowing undefined symbols in shared libraries.
875 2003-02-11 Dmitry Diky <diwil@mail.ru>
877 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
878 * scripttempl/elf32msp430_3.sc: Likewise.
880 2003-02-11 Uwe Stieber <uwe@wwws.de>
882 * configure.tgt: Add support for kaOS as cross build target
885 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
887 * hppaelf.em (group_size): Change default back to 1.
889 2003-02-09 Alan Modra <amodra@bigpond.net.au>
891 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
893 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
895 * hppaelf.em (group_size): Change default to -1.
897 2003-02-07 Nick Clifton <nickc@redhat.com>
899 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
901 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
902 no-pipeline-knowledge. This will prevent the getopt package from
903 thinking that there are any shorter abbreviations for
904 --no-pipeline-knowledge.
906 2003-02-07 Jakub Jelinek <jakub@redhat.com>
908 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
909 which already have it. Avoid duplicates.
911 2003-02-06 Jakub Jelinek <jakub@redhat.com>
913 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
914 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
915 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
917 2003-02-05 Alan Modra <amodra@bigpond.net.au>
919 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
920 call ppc64_elf_tls_optimize.
922 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
924 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
925 outside of GNU/Linux conditional.
927 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
929 * deffilep.y (def_get_module): New function: locate an already
931 * deffile.h (def_get_module): New prototype.
932 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
933 a dll multiple times.
935 2003-01-23 Alan Modra <amodra@bigpond.net.au>
937 * emultempl/sh64elf.em: Include elf32-sh64.h.
938 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
939 sh64_elf_section_data.
940 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
942 2003-01-23 Wu Yongwei <adah@netstd.com>
944 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
945 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
946 cross-80th-column-margin "an" to the next line.
948 2003-01-21 Nick Clifton <nickc@redhat.com>
950 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
951 * emulparams/tic3xcoff_onchip.sh: ...this.
952 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
953 * Makefile.in: Regenerate.
955 2003-01-21 Fabio Alemagna <falemagn@aros.org>
957 * configure.tgt: Handle i[3456]86-*-aros*
959 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
961 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
962 * Makefile.in: Regenerate
963 * configure.tgt: Added extra target emulations
964 * emulparams/tic3xcoff.sh: Remove old settings
965 * emulparams/tic4xcoff.sh: Ditto
966 * emulparams/tic3xcoff-onchip.sh: Added new
967 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
968 * scripttempl/tic3xcoff.sc: Remove
970 2003-01-17 Andreas Jaeger <aj@suse.de>
972 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
975 2003-01-16 Alan Modra <amodra@bigpond.net.au>
977 * Makefile.in: Regenerate.
979 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
981 * ld.texinfo (node WIN32): Some clarifications
982 and formatting fixups.
984 2003-01-09 Chris Demetriou <cgd@broadcom.com>
986 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
987 order, and handle (ignore) -mips32r2.
989 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
991 * ldmain.c (main): Make sure ld_sysroot is initialized.
993 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
995 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
997 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
998 (GENSCRIPTS): Add @use_sysroot@.
999 * Makefile.in: Regenerated.
1000 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1001 * configure.tgt: ... here. Use ${target} instead of ${host}
1002 for NATIVE_LIB_DIRS.
1003 * configure.in: Add --with-sysroot.
1004 * configure: Regenerated.
1005 * genscripts.sh: Accept use_sysroot option. Set new variables
1006 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1007 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1008 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1009 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1010 (ld_sysroot): New variable.
1011 (main): Initialize ld_sysroot.
1012 * ldmain.h (ld_sysroot): New extern.
1013 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1014 searching $EMULATION_LIBPATH.
1015 (gld${EMULATION_NAME}_add_sysroot): New function.
1016 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1017 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1018 environment variables if $NATIVE.
1019 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1020 * NEWS: Mention --with-sysroot.
1022 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1023 instead of setting LIB_PATH.
1024 * emulparams/elf32ppc.sh: Likewise.
1025 * emulparams/elf64_s390.sh: Likewise.
1026 * emulparams/elf64_sparc.sh: Likewise.
1027 * emulparams/elf64ppc.sh: Likewise.
1028 * emulparams/elf_x86_64.sh: Likewise.
1030 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1031 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1033 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1035 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1037 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1039 * Makefile.am (ldmain.o): Pass BINDIR.
1040 * Makefile.in: Regenerated.
1041 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1044 2003-01-02 Ben Elliston <bje@redhat.com>
1046 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1047 (eelf32iq2000.c): New target.
1048 * Makefile.in: Regenerate.
1049 * configure.tgt: Handle iq2000-*-elf.
1050 * emulparams/elf32iq10.sh: New file.
1051 * emulparams/elf32iq2000.sh: New file.
1052 * scripttempl/iq2000.sc: New file.
1054 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1056 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1057 and _pei386_runtime_relocator to the exclude list.
1059 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1061 * ldfile.c: Fix comment typos.
1062 * ldlang.c: Likewise.
1064 * pe-dll.c: Likewise.
1066 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1068 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1069 * Makefile.am (ld.1): Depend on configdoc.texi
1071 * Makefile.in: Regenerated.
1073 2002-12-24 Dmitry Diky <diwil@mail.ru>
1075 * Makefile.am: Add msp430 target.
1076 * configure.tgt: Likewise.
1077 * Makefile.in: Regenerate.
1078 * emulparams/msp430x???.sh: New files. Linker script parameters
1079 for various msp430 configurations.
1080 * gen-doc.texi: Enable msp430 documenation.
1081 * ld.texinfo: Document msp430 sections.
1082 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1083 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1085 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1086 Charles Wilson <cwilson@ece.gatech.edu>
1088 * config.in (HAVE_REALPATH): New entry.
1089 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1091 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1093 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1096 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1098 * ldmain.c (main): Init "strip_discarded".
1099 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1100 (OPTION_NO_STRIP_DISCARDED): Define.
1101 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1102 (parse_args): Handle them.
1104 2002-12-23 Nick Clifton <nickc@redhat.com>
1106 * ld.h (struct args_type): Add new field
1107 'accept_unknown_input_architecture'.
1108 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1110 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1111 bfd_arch_get_compatible.
1112 * ldfile.c (ldfile_try_open_bfd): Likewise.
1113 * lexsup.c (ld_options): Add new command line switch
1114 --accept-unknown-input-architecture and its inverse.
1115 (parse_args): Handle --accept-unknown-input-architecture.
1116 * ld.texinfo: Document new linker option.
1117 * NEWS: Mention new linker option.
1119 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1121 * ldmain.c (main): Re-order link_info initialization. Init all
1124 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1126 * ld.texinfo: Clarify and extend the documentation
1127 in the Machine Dependent, WIN32 section.
1129 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1131 * ld.texinfo: Add win32 machine depending section.
1132 * gen-doc.texi: Enable win32 machine depending section.
1134 * configure.host: Add win32 library search path.
1136 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1138 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1139 import when auto-import is disabled.
1141 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1143 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1144 account for trailing '\0'.
1146 2002-12-17 Nick Clifton <nickc@redhat.com>
1148 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1149 so that it is not confused with -c.
1151 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1152 Charles Wilson <cwilson@ece.gatech.edu>
1154 * configure.in: Add check for realpath function.
1155 * configure: Regenerate.
1156 * config.in: Regenerate.
1157 * aclocal.m4: Regenerate.
1158 * deffile.h: Add .data field to def_file_import
1160 * pe-dll.c (pe_proces_import_defs): Use .data field of
1161 def_file_import structure to initialize flag_data field of
1162 def_file_export structure.
1163 (pe_implied_import_dll): New variables exp_funcbase and
1164 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1165 not filename (which may be a symlink). Scan the sections and
1166 initialize [data|bss]_[start|end]. When scanning the export
1167 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1168 that it is in the .bss or .data sections as data.
1169 * sysdep.h: Include limits.h and sys/param.h, and define
1170 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1171 exists, NULL otherwise.
1172 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1173 pe_process_import_defs before pe_find_data_imports, so that
1174 auto-import will check the virtual implib as well as "real"
1176 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1177 symlinks to their target; check that the target's extension is
1178 .dll before calling pe_implied_import_dll(), not the filename
1179 itself (which may be a symlink).
1181 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1183 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1184 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1187 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1189 * ldlang.h: Formatting.
1191 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1193 * ldlang.c (init_os): Ensure sections mentioned in load_base
1196 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1198 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1199 load_base for orphans that follow a section with load_base set.
1201 2002-12-01 H.J. Lu <hjl@gnu.org>
1203 * ld.texinfo: Remove the extra `;' in sample version script.
1205 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1207 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1209 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1210 * Makefile.in: Regenerate.
1212 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1213 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1214 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1215 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1216 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1217 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1218 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1219 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1220 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1221 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1222 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1223 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1224 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1226 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1228 * configure.host: Fix generic FreeBSD configuration entry.
1230 2002-11-27 H.J. Lu <hjl@gnu.org>
1232 * ld.texinfo: Add the missing `;' to sample version scripts.
1234 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1236 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1238 2002-11-14 Egor Duda <deo@logos-m.ru>
1240 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1241 assignment which has no effect.
1242 * pe-dll.h (pe_create_import_fixup): Change prototype.
1243 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1244 (pe_create_runtime_relocator_reference): Ditto.
1245 (pe_create_import_fixup): Handle relocations with non-zero addends.
1246 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1247 --disable-runtime-pseudo-reloc.
1248 (make_import_fixup): Handle relocations with non-zero addends. Create
1249 an external reference to _pei386_runtime_relocator symbol if at least
1250 one pseudo reloc was created.
1251 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1252 --disable-runtime-pseudo-reloc options.
1254 2002-11-12 Earl Chew <earl_chew@agilent.com>
1256 * ldlang.c (lang_add_section): Discard debugging sections that have
1257 been marked SEC_EXCLUDE.
1259 2002-11-12 Nick Clifton <nickc@redhat.com>
1261 * configure.in (ALL_LINGUAS): Add da.
1262 * configure: Regenerate.
1263 * po/da.po: New Danish translation.
1265 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1267 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1268 (LDEMUL_BEFORE_ALLOCATION): Define.
1269 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1271 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1273 2002-11-11 Christopher Faylor <cgf@redhat.com>
1275 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1278 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1280 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1281 of restricted auto-export libs.
1283 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1285 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1286 creative library naming instances like, e.g., libstdc++-2.a.
1288 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1290 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1291 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1293 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1295 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1296 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1297 (make_one): Don't prefix decorated fastcall symbols with '_'.
1298 (pe_process_import_defs): Likewise.
1299 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1300 symbols to cdecl names or vise-versa.
1302 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1304 * pe-dll.c (process_def_file): Handle fastcall symbols when
1305 generating undecorated aliases. Don't prefix decorated fastcall
1307 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1310 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1312 * emultempl/aix.em: Use include <> for generated headers.
1313 * emultempl/beos.em: Likewise.
1314 * emultempl/elf32.em: Likewise.
1315 * emultempl/pe.em: Likewise.
1316 * ldctor.c: Likewise.
1317 * ldexp.c: Likewise.
1318 * ldfile.c: Likewise.
1319 * ldlang.c: Likewise.
1320 * ldlex.c: Likewise.
1321 * ldlex.l: Likewise.
1322 * ldmain.c: Likewise.
1323 * ldmisc.c: Likewise.
1324 * ldwrite.c: Likewise.
1325 * lexsup.c: Likewise.
1327 * pe-dll.c: Likewise.
1329 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1331 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1332 sections into .rel{,a}.dyn.
1334 2002-10-23 Nick Clifton <nickc@redhat.com>
1336 * lexsup.c (OPTION_NO_OMAGIC): Define.
1337 (ld_options): Add "no-omagic" option.
1338 (parse_args): Parse --no-omagic.
1339 * ld.texinfo: Document --no-omagic.
1340 * NEWS: Mention new option.
1342 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1344 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1345 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1347 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1349 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1350 emulation name. Set LIB_PATH only for native tools, and
1351 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1352 .../lib variants, not instead of them. Mostly copied from...
1353 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1354 * emulparams/elf64bmip-defs.sh: Backed out.
1355 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1356 * emulparams/elf64btsmip.sh: Likewise.
1357 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1358 TEXT_DYNAMIC): Removed.
1360 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1362 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1363 (GENERATE_SHLIB_SCRIPT): Set to yes.
1364 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1365 * emulparams/elf32bmipn32.sh: here.
1366 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1367 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1368 * emulparams/elf64bmip-defs.sh: New file. Extend
1369 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1370 * emulparams/elf64bmip.sh: Bring in definitions from
1372 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1374 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1375 * emulparams/elf64btsmip.sh: Bring in definitions from
1377 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1378 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1380 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1382 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1383 (s390-*-linux*): Add elf64_s390 emulation if want64.
1384 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1385 genscript.sh changes.
1386 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1387 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1389 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1391 * ldlang.c (load_symbols): Revert last change.
1393 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1395 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1397 (lang_reasonable_defaults): Don't compare against false.
1398 (size_input_section): Likewise.
1399 (lang_size_sections_1): Likewise.
1400 (lang_do_assignments): Likewise.
1401 (lang_add_output): Likewise.
1403 * Makefile.am: Run "make dep-am".
1404 * Makefile.in: Regenerate.
1405 * ldver.c: #include "bfdver.h".
1407 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1409 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1411 * scripttempl/elfm68hc12.sc: Likewise.
1413 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1415 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1417 * ldgram.y (memory_spec): Provide empty action.
1418 (section <NAME>): Likewise.
1420 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1422 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1423 they have OUTPUT_FORMAT not matching actual output format.
1424 * ldlang.c (lang_get_output_target): New function.
1425 (open_output): Use it.
1426 * ldlang.h (lang_get_output_target): New prototype.
1428 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1430 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1431 when orphan is .rel, .rela when orphan is .rela.
1432 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1433 first. Remove outsecname var.
1435 2002-10-09 Richard Shann <richard.shann@superh.com>
1436 Stephen Clarke <stephen.clarke@superh.com>
1438 * Makefile.am: Add eshelf32_linux.o and
1439 eshlelf32_linux.o, new emulations for sh64 Linux.
1440 * Makefile.in: Regenerate.
1441 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1442 * emulparams/shelf32_linux.sh: New file.
1443 * emulparams/shlelf32_linux.sh: New file.
1445 2002-10-08 H.J. Lu <hjl@gnu.org>
1447 * ldlang.c (lang_file_exist): Removed.
1448 (new_afile): Revert the last change.
1449 * ldlang.h (lang_file_exist): Removed.
1450 * lexsup.c (parse_args): Revert the last change.
1452 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1454 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1455 auto-import symbols.
1456 (make_one): Create _nm_<symbol> for data only.
1458 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1460 * ldlang.c (lang_file_exist): New function.
1461 (new_afile): Abort if the filename to be added matches the linker
1463 * ldlang.h: Add prototype for lang_file_exist.
1464 * lexsup.c (parse_args): Abort if the output filename matches
1465 one of the input filenames.
1467 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1469 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1471 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1473 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1474 * scripttempl/elfm68hc11.sc: Likewise.
1475 * scripttempl/elfm68hc12.sc: Likewise.
1477 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1478 reloc sections just before .rel.plt/.rela.plt.
1479 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1480 Only put loadable reloc sections in hold_rel.
1482 2002-09-29 H.J. Lu <hjl@gnu.org>
1484 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1486 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1488 From "Anita Kulkarni" <AnitaK@kpit.com>
1489 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1492 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1494 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1496 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1497 SEGMENT_SIZE alignment.
1498 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1499 (SEGMENT_SIZE): Define.
1501 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1502 (fold_binary): Correct abs - non-abs case.
1503 (fold_trinary): New. Split out from exp_fold_tree.
1505 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1507 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1508 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1509 for start of .data, instead align up to 256M boundary.
1510 * scripttempl/aix.sc: Likewise.
1512 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1514 * scripttempl/i386go32.sc: Handle bss unique sections.
1516 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1518 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1520 2002-09-17 Stan Cox <scox@redhat.com>
1522 * emulparams/elf32bmipn32-defs.sh: New file.
1523 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1524 * emulparams/elf32btsmipn32.sh: Likewise.
1525 * emulparams/elf64bmip.sh: Likewise.
1526 * emulparams/elf64btsmip.sh: Likewise.
1528 2002-09-16 Bruno Haible <bruno@clisp.org>
1530 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1532 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1533 elf64-alpha-freebsd.
1535 2002-09-11 Nick Clifton <nickc@redhat.com>
1537 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1539 * po/tr.po: Updated Turkish translation.
1541 2002-09-06 Jeffrey A Law (law@redhat.com)
1543 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1545 2002-09-02 Nick Clifton <nickc@redhat.com>
1547 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1549 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1551 2002-08-30 Nick Clifton <nickc@redhat.com>
1553 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1554 used. Change INSN to start at 0x01000000 and extend for
1555 256K (ignoring holes). Start the STACK on a word aligned
1557 (.rodata): Start it at the READONLY_START_ADDR.
1559 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1561 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1563 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1565 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1566 added makefile targets for this file.
1567 * Makefile.in: Regenerate.
1568 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1569 * NEWS: Mention new port.
1571 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1573 * emulparams/tic3xcoff.sh: New file.
1574 * emulparams/tic4xcoff.sh: New file.
1575 * scripttempl/tic3xcoff.sc: New file.
1576 * scripttempl/tic4xcoff.sc: New file.
1578 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1580 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1581 strtoul and strtoull with bfd_scan_vma.
1582 (gld${EMULATION_NAME}_read_file): Likewise.
1584 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1586 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1588 2002-08-27 Egor Duda <deo@logos-m.ru>
1590 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1591 Add symbols for application to access them.
1593 2002-08-27 Nick Clifton <nickc@redhat.com>
1595 * emultempl/armelf.em: Revert this patch, it is not needed.
1597 2002-08-22 Adam Nemet <anemet@lnxw.com>
1599 2002-08-20 Dan Kegel <dank@kegel.com>
1601 * configure.in: added --with-lib-path argument to ld's configure
1603 * NEWS: Document new switch.
1604 * README: Mention new switch.
1605 * configure: Regenerate.
1606 * Makefile.in: Regenerate.
1608 Based on this patch:
1609 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1611 * Makefile.in (LIB_PATH): Make configurable.
1612 (GENSCRIPTS): Set LIB_PATH in environment.
1613 * configure.in: Substitute LIB_PATH.
1615 2002-08-22 Adam Nemet <anemet@lnxw.com>
1617 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1618 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1619 depending on the type of the function.
1620 (arm_elf_convert_thumb_symbol_to_address): New function.
1622 2002-08-22 Graeme Peterson <gp@qnx.com>
1624 * Makefile.am: Add esh{l}elf_nto.o files.
1625 * Makefile.in: Regenerate.
1626 * configure.tgt: Add support for sh-**-nto* targets.
1627 * emulparams/shelf_nto.sh: New file.
1628 * emulparams/shlelf_nto.sh: New file.
1630 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1632 * ldlang.c (offsetof): Define if not defined.
1634 2002-08-14 H.J. Lu <hjl@gnu.org>
1636 * configure.tgt: Always enable 64bit emulations for 32bit
1639 2002-08-13 Alan Modra <amodra@bigpond.net.au>
1641 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
1642 (MAXPAGESIZE): Set to 1.
1644 * ld.h (ALIGN_N): Delete.
1645 * ldexp.h (align_n): Declare.
1646 * ldexp.c (align_n): New function.
1647 (fold_binary): Use align_n instead of ALIGN_N.
1648 (exp_fold_tree): Likewise.
1649 * ldlang.c (lang_size_sections_1): Likewise.
1650 (lang_one_common): Likewise.
1651 * ld.texinfo (ALIGN): Remove power of 2 restriction.
1653 2002-07-31 Graeme Peterson <gp@qnx.com>
1655 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
1656 * Makefile.am: Add eelf32{l}ppcnto.o files.
1657 * Makefile.in: Regenerate.
1658 * emulparams/elf32lppcnto.sh: New file.
1659 * emulparams/elf32ppcnto.sh: New file.
1661 2002-08-07 H.J. Lu <hjl@gnu.org>
1663 * ld.texinfo: Document --no-undefined-version.
1665 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
1666 `script.' fields to 0.
1668 * ldmain.c (main): Initialize the allow_undefined_version to
1671 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
1672 (ld_options): Add --no-undefined-version.
1673 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
1675 2002-08-07 Nick Clifton <nickc@redhat.com>
1677 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
1678 an interworking bfd if there are input bfds. (107501)
1680 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1682 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
1685 2002-08-01 Nick Clifton <nickc@redhat.com>
1687 * emulparams/armelf.sh: Revert previous delta.
1688 * scripttempl/elf.sc: Revert previous delta.
1690 2002-07-31 H.J. Lu <hjl@gnu.org>
1692 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
1693 --enable-64-bit-bfd.
1695 2002-07-31 H.J. Lu <hjl@gnu.org>
1697 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
1698 64bit BFD is selected.
1700 2002-07-31 H.J. Lu <hjl@gnu.org>
1702 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
1703 if 64bit BFD is selected.
1705 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1707 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
1708 link_info.common_skip_ar_aymbols.
1709 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
1711 * ldmain.c (main): Initialize new field
1712 link_info.common_skip_ar_aymbols.
1714 2002-07-31 Adam Nemet <anemet@lnxw.com>
1716 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
1718 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
1721 2002-07-31 Nick Clifton <nickc@redhat.com>
1723 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1724 of the PDP-11 and 2.11BSD a.out support.
1726 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1728 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
1729 for n32 ABI support.
1730 * Makefile.in: Regenerate.
1731 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
1732 n32 ABI emulations for these 64 bit targets.
1733 * emulparams/elf32bmipn32.sh: Expand comment.
1734 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
1736 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
1738 2002-07-30 Graeme Peterson <gp@qnx.com>
1740 * configure.tgt: Add support for arm-*-nto target.
1741 * Makefile.am: Add earmnto.o file.
1742 * Makefile.in: Regenerate.
1743 * NEWS: Mention port of ARM support to QNX.
1744 * emulparams/armnto.sh: New file.
1746 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1748 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
1749 for relocatable link.
1750 (lang_size_sections_1): Don't make .tbss zero size for relocatable
1753 2002-07-26 Bernd Schmidt <bernds@redhat.com>
1755 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
1758 2002-07-25 Nick Clifton <nickc@redhat.com>
1760 * po/sv.po: Updated Swedish translation.
1761 * po/es.po: Updated Spanish translation.
1762 * po/fr.po: Updated French translation.
1764 2002-07-24 Nick Clifton <nickc@redhat.com>
1766 * po/sv.po: Updated Swedish translation.
1767 * po/es.po: Updated Spanish translation.
1769 2002-07-23 Nick Clifton <nickc@redhat.com>
1771 * po/fr.po: Updated French translation.
1773 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1775 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1776 bomb on /DISCARD/ input section.
1777 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1778 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1780 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
1782 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
1785 2002-07-16 Denis Chertykov <denisc@overta.ru>
1786 Nick Clifton <nickc@redhat.com>
1787 Frank Ch. Eigler <fche@redhat.com>
1788 John Healy <jhealy@redhat.com>
1790 * configure.tgt: Add support for ip2k-elf.
1791 * Makefile.am: Add support for ip2k-elf.
1792 * Makefile.in: Regenerate.
1793 * emulparams/elf32ip2k.sh: New file.
1794 * scripttempl/ip2k.sc: New file
1795 * NEWS: Mention support for new port.
1797 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1799 * NEWS: Add 'Changes in 2.13'.
1801 2002-07-14 H.J. Lu <hjl@gnu.org>
1803 * ld.texinfo: Document a .symver takes precedence over a
1806 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1808 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
1809 (COMMONPAGESIZE): Define.
1811 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1813 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
1815 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1817 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
1818 powerpc-*-openbsd* and sparc64-*-openbsd*.
1819 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
1820 * Makefile.in: Regenerate.
1821 * emulparams/hppaobsd.sh: New file.
1823 2002-07-05 Alan Modra <amodra@bigpond.net.au>
1825 * ldlang.c (print_wild_statement): Fix output formatting.
1827 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1829 * ldlang.c: (strip_excluded_output_sections): New function.
1830 (lang_process): Call it.
1831 (lang_size_sections_1): Revert 2002-06-10 change.
1833 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1835 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1837 * Makefile.in: Regenerate.
1839 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1841 * ldfile.c (ldfile_try_open_bfd): Formatting.
1843 * ldmisc.c (demangle): Move so that it doesn't intrude between
1844 vfinfo comment and body. Add comment.
1846 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1848 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
1850 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1852 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
1853 * ldlang.c (entry_sym): Likewise.
1854 (ldlang_undef_chain_list_type): Likewise.
1855 (lang_finish): Adjust references to entry_symbol.
1856 (lang_add_entry): Likewise.
1857 (lang_gc_sections): Use link_info.gc_sym_list.
1858 (lang_process): Set link_info.gc_sym_list.
1859 * ldlex.l: Include bfdlink.h.
1860 * ldmain.c (main): Init link_info.gc_sym_list.
1861 * emultempl/aix.em: Adjust references to entry_symbol.
1862 * emultempl/armcoff.em: Likewise.
1863 * emultempl/armelf.em: Likewise.
1864 * emultempl/pe.em: Likewise.
1865 * emultempl/ppc64elf.em (ppc_after_open): New function.
1866 (LDEMUL_AFTER_OPEN): Define.
1867 * emulparams/elf64ppc.sh: KEEP .opd sections.
1869 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1871 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
1872 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
1873 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
1874 (EEPROM_START_ADDR): Define.
1875 (EEPROM_MEMORY): Define.
1876 * emulparams/m68hc12elf.sh: Likewise.
1877 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
1878 section to put soft registers in .page0.
1879 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
1881 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1883 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
1884 section. Add ${RELOCATING-0}.
1886 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1888 * emulparams/shelf.sh (STACK_ADDR): Don't define.
1889 (OTHER_SECTIONS): Define.
1890 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
1891 (OTHER_SECTIONS): Undef.
1893 2002-06-26 Alan Modra <amodra@bigpond.net.au>
1895 * ldmisc.c (demangle): Restore dots stripped from sym name.
1897 2002-06-25 H.J. Lu <hjl@gnu.org>
1899 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1900 * Makefile.in: Regenerated.
1902 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
1904 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
1905 the size of attached object files, to allow make the object files
1906 available via FTP or HTTP and to mention that the mail will be
1907 sent to a mailing list.
1909 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
1911 * configure.host (romp): Drop support.
1913 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1915 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
1916 section flags for SEC_DATA, rather than for SEC_CODE being unset.
1918 2002-06-18 Chris Demetriou <cgd@broadcom.com>
1920 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
1921 format specifier used to print BFD name.
1923 2002-06-18 Dave Brolley <brolley@redhat.com>
1925 From Catherine Moore, Michael Meissner, Jim Blandy:
1926 * emulparams/elf32frv.sh: New file.
1927 * configure.tgt: Support frv-*-*.
1928 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
1929 (eelf32frv.c): New target.
1931 2002-06-17 Tom Rix <trix@redhat.com>
1933 * emultempl/elf32.em: gld*_get_script: Check for
1934 GENERATE_COMBRELOC_SCRIPT.
1935 * scripttempl/elfd10v.sc : Fix STACK and INSN.
1936 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
1938 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
1940 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
1942 2002-06-12 H.J. Lu <hjl@gnu.org>
1944 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
1945 false if xvec doesn't match.
1947 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1949 * ldlang.c (lang_size_sections_1): Skip removed output sections.
1951 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1953 * ldexp.c: Replace CONST with const.
1954 * ldfile.c: Likewise.
1955 * ldfile.h: Likewise.
1956 * ldlex.l: Likewise.
1958 * pe-dll.h: Likewise.
1960 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1962 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
1964 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
1966 * ldmain.c (main): initialize link_info.pei386_auto_import
1967 to -1 == implicit enable.
1968 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
1969 initialize link_info.pei386_auto_import to -1 == implicit
1971 (gld_${EMULATION_NAME}_parse_args): When processing
1972 --enable-auto-import and --disable-auto-import options, use
1973 '1' and '0' instead of 'true' and 'false'.
1974 (pe_find_data_imports): Only issue message about auto-import
1975 when the feature is implicitly enabled. Downgrade message to
1976 informational instead of warning.
1978 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1980 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
1982 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1984 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
1985 HOSTING_CRT0 and HOSTING_LIBS.
1987 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1989 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
1991 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
1993 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
1994 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
1996 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1998 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1999 SEC_EXCLUDE sections when doing a relocatable link.
2001 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2003 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2004 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2005 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2006 (eshlelf64_nbsd.c): New rules.
2007 * Makefile.in: Regenerate.
2008 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2009 (sh64-*-netbsd*): New targets.
2010 * emulparams/shelf32_nbsd.sh: New file.
2011 * emulparams/shelf64_nbsd.sh: New file.
2012 * emulparams/shlelf32_nbsd.sh: New file.
2013 * emulparams/shlelf64_nbsd.sh: New file.
2015 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2017 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2019 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2021 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2022 C++ constructors/destructors, loosely based on the m68hc11 port.
2024 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2026 * Makefile.in: Regenerate.
2027 * aclocal.m4: Regenerate.
2028 * config.in: Regenerate.
2029 * configure: Regenerate.
2031 2002-05-31 Graeme Peterson <gp@qnx.com>
2033 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2034 (ei386nto.c): Add rule.
2035 * Makefile.in: Regenerate.
2036 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2037 * emulparams/i386nto.sh: New file.
2039 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2041 * NEWS: Add entry for VAX ELF support.
2043 2002-05-29 Matt Thomas <matt@3am-software.com>
2044 Jason Thorpe <thorpej@wasabisystems.com>
2046 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2048 (evaxnbsd.c): New rules.
2049 * Makefile.in: Regenerate.
2050 * configure.tgt (vax-*-netbsdelf*)
2052 (vax-*-netbsd*): New targets.
2053 * emulparams/elf32vax.sh: New file.
2054 * emulparams/vaxnbsd.sh: New file.
2056 2002-05-29 Adam Nemet <anemet@lnxw.com>
2058 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2059 bfd_for_interwork, instead add glue sections to each input bfd.
2060 (bfd_for_interwork): New global.
2061 (arm_elf_set_bfd_for_interworking): New function.
2062 (arm_elf_before_allocation): Use it.
2064 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2066 * Makefile.am: Add DLX make target.
2067 * configure.tgt: Add DLX configuration.
2068 * Makefile.in: Regenerate.
2069 * emulparams/elf32_dlx.sh: New file
2070 * scripttempl/dlx.sc: New file
2072 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2074 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2075 * Makefile.in: Regenerate.
2076 * emulparams/elf_chaos.sh: Use elf_chaos script.
2077 * scripttempl/elf_chaos.sc: New file.
2079 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2081 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2082 addresses and regions from here...
2083 (lang_get_regions): ...to this new function.
2084 (lang_leave_output_section_statement): Use lang_get_regions.
2085 (lang_leave_overlay): Likewise.
2086 * mri.c (mri_draw_tree): Pass null as last argument to
2087 lang_leave_output_section_statement.
2088 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2089 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2090 * emultempl/pe.em (gld*_place_orphan): Likewise.
2092 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2094 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2096 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2098 * ldemul.c: Fix formatting.
2099 * ldfile.c: Likewise.
2100 * pe-dll.c: Likewise.
2101 * pe-dll.h: Likewise.
2103 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2105 * ldlang.c (lang_process): Formatting, grammar.
2107 * ldlex.l: Use #include "" instead of <> for local header files.
2109 2002-05-24 TAMURA Kent <kent@netbsd.org>
2111 * configure.tgt: Add a target for i386-netbsdpe.
2113 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2115 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2116 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2117 output section if necessary. Handle .tbss.
2118 (lang_size_sections): Clear _raw_size for .tbss section
2119 (it allocates space in PT_TLS segment only).
2120 * ldwrite.c (build_link_order): Build link order for .tbss too.
2122 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2124 * configure.in: Correct spelling of AC_PREREQ.
2126 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2128 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2130 (autofilter_objlist): Add crtbegin.o, crtend.o.
2132 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2134 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2135 (longopts): Add new option --exclude-libs.
2136 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2137 (gld_${EMULATION_NAME}_parse_args): Use it.
2138 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2139 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2140 from whole archives.
2141 (pe_dll_add_excludes): Set excludes->type.
2142 (auto_export): Add new variable libname and set to archive basename if
2143 abfd. Use it when filtering default and user-specified libarary
2144 excludes. Let string "ALL" mean all libs when filtering user-specified
2146 * ld.texinfo: Document --exclude-libs.
2148 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2150 * ldemul.c (ldemul_new_vers_pattern): New function.
2151 * ldemul.h (ldemul_new_vers_pattern): Declare.
2152 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2153 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2154 * emultempl/ppc64elf.em (dotsyms): New static var.
2155 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2156 (LDEMUL_NEW_VERS_PATTERN): Define.
2157 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2158 (PARSE_AND_LIST_LONGOPTS): Likewise.
2159 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2160 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2162 * emultempl/armcoff.em: Likewise.
2163 * emultempl/armelf_oabi.em: Likewise.
2164 * emultempl/beos.em: Likewise.
2165 * emultempl/elf32.em: Likewise.
2166 * emultempl/generic.em: Likewise.
2167 * emultempl/gld960.em: Likewise.
2168 * emultempl/gld960c.em: Likewise.
2169 * emultempl/linux.em: Likewise.
2170 * emultempl/lnk960.em: Likewise.
2171 * emultempl/m68kcoff.em: Likewise.
2172 * emultempl/mipsecoff.em: Likewise.
2173 * emultempl/pe.em: Likewise.
2174 * emultempl/sunos.em: Likewise.
2175 * emultempl/ticoff.em: Likewise.
2176 * emultempl/vanilla.em: Likewise.
2178 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2180 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2181 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2182 (LIB_SEARCH_DIRS): No need to use "tr".
2183 (COMPILE_IN): Only set for native targets.
2184 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2185 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2186 * configure.tgt (powerpc*): Set tdir_*.
2187 (powerpcle*): Correct targ_extra_emuls.
2188 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2189 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2191 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2193 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2194 calling lang_add_entry.
2196 2002-05-21 H.J. Lu (hjl@gnu.org)
2198 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2200 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2202 * ld.texinfo: Updated for --allow-multiple-definition and
2205 * ldmain.c (main): Initialize the allow_multiple_definition
2208 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2209 (ld_options): Add --allow-multiple-definition.
2210 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2212 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2214 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2215 (earmelfb_nbsd.c): New rule.
2216 * Makefile.in: Regenerate.
2217 * configure.tgt (armeb-*-netbsdelf*): New target.
2218 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2219 (arm-*-netbsd*): Likewise.
2220 * emulparams/armelfb_nbsd.sh: New file.
2222 2002-05-18 Tom Rix <trix@redhat.com>
2224 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2227 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2229 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2230 * Makefile.in: Regenerate.
2231 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2233 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2235 * emulparams/avr1.sh: New file.
2236 * emulparams/avr2.sh: New file.
2237 * emulparams/avr3.sh: New file.
2238 * emulparams/avr4.sh: New file.
2239 * emulparams/avr5.sh: New file.
2240 * scripttempl/avr.sc: New file.
2242 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2244 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2245 (lang_place_orphans): Abort if just_syms_flag.
2247 2002-05-10 Tom Rix <trix@redhat.com>
2249 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2250 architecture and machine information in the output bfd.
2251 (gld*_before_parse): Remove old arch and machine code.
2252 (choose_target): Rename to gld*_choose_target.
2253 (rtld): Change type to int.
2254 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2255 objects in XCOFF archives.
2256 * ldfile.h: Update copyright date.
2258 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2260 * ldmain.c (main): Enable -z combreloc by default.
2262 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2264 * Makefile.am: Honour DESTDIR.
2265 * Makefile.in: Regenerate.
2267 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2269 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2270 (lang_enter_overlay): Remove the last two parameters.
2271 (lang_leave_overlay): Take them here instead.
2272 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2273 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2274 than lang_enter_overlay.
2275 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2276 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2277 (lang_size_sections_1): Evaluate it.
2278 (lang_leave_output_section_statement): Rework LMA lookup.
2279 (overlay_lma, overlay_nocrossrefs): Remove.
2280 (lang_enter_overlay): Remove LMA and crossref arguments.
2281 (lang_enter_overlay_section): Don't set the LMA here.
2282 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2283 assignment to the last section's update_dot_tree. Unconditionally
2284 use the load and run-time regions specified in the OVERLAY statement.
2285 Likewise the first section's LMA. Only set the other sections' LMAs
2286 when no load region is given.
2288 2002-05-06 Nick Clifton <nickc@redhat.com>
2290 * po/sv.po: New translation.
2292 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2294 * emultempl/hppaelf.em (build_section_lists): New function.
2295 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2296 and build_section_lists.
2298 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2300 * ld.h: Fix formatting.
2301 * ldexp.c: Likewise.
2302 * ldfile.c: Likewise.
2303 * ldlang.c: Likewise.
2304 * ldmain.c: Likewise.
2305 * lexsup.c: Likewise.
2306 * pe-dll.c: Likewise.
2308 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2310 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2311 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2312 (build_section_lists): Do output_section tests here.
2314 2002-04-30 Tom Rix <trix@redhat.com>
2316 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2318 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2320 Long branch stubs, multiple stub sections.
2321 * emultempl/ppc64elf.em: Include ldctor.h.
2322 (stub_file): New var.
2323 (group_size): New var.
2324 (ppc_create_output_section_statements): New function.
2325 (struct hook_stub_info): New.
2326 (hook_in_stub): New function.
2327 (ppc_add_stub_section): New function.
2328 (ppc_layout_sections_again): New function.
2329 (build_section_lists): New function.
2330 (gld${EMULATION_NAME}_finish): Rewrite.
2331 (real_func): New var.
2332 (ppc_for_each_input_file_wrapper): New function.
2333 (ppc_lang_for_each_input_file): New function.
2334 (lang_for_each_input_file): Define.
2335 (PARSE_AND_LIST_PROLOGUE): Define.
2336 (PARSE_AND_LIST_LONGOPTS): Define.
2337 (PARSE_AND_LIST_OPTIONS): Define.
2338 (PARSE_AND_LIST_ARGS_CASES): Define.
2339 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2341 2002-04-30 Tom Rix <trix@redhat.com>
2343 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2344 -blibpath, -bnolibpath support.
2346 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2348 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2349 (eelf32ppcwindiss.c): New target.
2350 * Makefile.in: Regenerated.
2351 * configure.tgt: Add support for powerpc-*-windiss.
2352 * emulparams/elf32ppcwindiss.sh: New file.
2354 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2356 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2357 * ldexp.c (exp_print_token): Add "infix_p" argument.
2358 (exp_print_tree): Update accordingly.
2360 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2362 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2363 * Makefile.in: Regenerate.
2364 * mpw-elfmips.c: Delete.
2365 * mpw-eppcmac.c: Delete.
2366 * mpw-esh.c: Delete.
2367 * mpw-idtmips.c: Delete.
2369 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2371 * emulparams/shelf32.sh (MACHINE): Now sh5.
2373 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2375 * ldgram.y: Fix syntax warning.
2377 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2379 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2380 to prevent "-n" from being taken as an abbreviation for
2381 "--no-pipeline-knowledge".
2383 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2385 * ldlang.c (lang_size_sections_1): Don't complain about
2386 SEC_NEVER_LOAD sections having no memory region specified.
2388 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2390 2002-04-07 matthew green <mrg@redhat.com>
2392 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2394 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2396 * dep-in.sed: Cope with absolute paths.
2397 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2399 * Makefile.in: Regenerate.
2401 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2403 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2405 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2407 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2408 is smaller than maximum, round dot up to common page boundary.
2410 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2412 * configure.host: Set up for generic hosts first, then tweak as
2413 necessary in more specific targets.
2414 (HOSTING_LIBS): Include libgcc_eh.a if found.
2416 2002-03-23 Andreas Jaeger <aj@suse.de>
2418 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2420 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2422 * Makefile.am: Run "make dep-am".
2423 * Makefile.in: Regenerate.
2425 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2427 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2429 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2431 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2432 add the symbol to the linker hash table immediately.
2433 (lang_place_undefineds): Split symbol creation out..
2434 (insert_undefined): ..to here.
2436 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2438 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2439 the contents of the buffer returned from basename function will are
2440 getting overwritten while still being used.
2442 2002-03-18 Jan Hubicka <jh@suse.cz>
2443 Andreas Jaeger <aj@suse.de>
2444 Andreas Schwab <schwab@suse.de>
2446 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2447 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2448 set libraries to default to lib64 paths.
2450 2002-03-18 Tom Rix <trix@redhat.com>
2452 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2453 * configure.tgt : Same.
2454 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2455 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2456 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2457 emulation parameters for better -b32, -b64 support.
2458 * emulparms/aixrs6.sh : Same.
2459 * emulparms/ppcmacos.sh : Same.
2460 * emultempl/aix.em (choose_target) : Use new emulation parameters
2461 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2462 * Makefile.in : Regenerate.
2464 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2466 * po/fr.po: Updated version.
2468 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2470 * ldmain.c (main): Move .text readonly flag fudges from here..
2471 * ldlang.c (lang_process): ..to here.
2473 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2475 * ldlang.c (lang_check): Remove the word size check added in last
2476 change. Treat emitrelocations case as for relocatable links.
2478 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2480 * po/fr.po: Updated version.
2482 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2484 * ldlang.c (lang_check): Do relocatable link checks first, so that
2485 warn_mismatch can't override. Check compatible and word size too.
2487 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2489 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2491 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2493 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2496 2002-03-04 H.J. Lu <hjl@gnu.org>
2498 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2499 .fini_array in the data segment.
2501 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2503 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2505 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2507 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2508 .init_array, and .fini_array.
2510 2002-02-20 Andreas Schwab <schwab@suse.de>
2512 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2513 .IA64_unwind* in a relocatable link.
2515 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2517 * NEWS: Mark 2.12 branch.
2519 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2521 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2522 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2524 2002-02-18 Tom Rix <trix@redhat.com>
2526 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2527 (gld*_before_allocation): Same.
2528 (gld*_create_output_section_statements): Generate
2529 __rtinit if run time linking. Add librtl.a to the link.
2530 (gld*_read_file): Clean.
2532 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2534 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2536 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2538 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2539 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2540 and eelf64alpha_fbsd.
2541 * Makefile.in: Regenerate.
2542 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2543 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2544 use a FreeBSD-specific emulation rather than the psABI one.
2545 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2546 for all FreeBSD ELF systems.
2547 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2549 * emulparams/elf32ppc_fbsd.sh: Likewise.
2550 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2551 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2552 * emulparams/elf64alpha_fbsd.sh: Likewise.
2553 * emulparams/elf_i386_fbsd.sh: Likewise.
2554 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2556 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2558 * po/tr.po: Updated version.
2560 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2562 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2565 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2567 * emultempl/mmo.em (mmo_after_open): Don't call
2568 _bfd_mmix_check_all_relocs when producing ELF output.
2570 2002-02-15 Richard Henderson <rth@redhat.com>
2572 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2573 definition. Emit a unop+nop pair.
2575 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2577 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2578 for presence of .MMIX.reg_contents.linker_allocated before early
2581 * NEWS: Mention support for MMIX.
2583 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2585 Support arbitrary length fill patterns.
2586 * ld.texinfo (Output Section Fill): Describe fill expressions.
2587 (FILL): Refer to the above.
2588 * ldexp.h (etree_value_type): Add "str" field.
2589 (union etree_union): Add "str" to "value" struct.
2590 (exp_bigintop): Declare.
2591 (exp_get_fill): Declare.
2592 * ldexp.c: Include "safe-ctype.h".
2593 (exp_intop): Set value.str to NULL.
2594 (exp_bigintop): New function.
2595 (new_rel): Pass in "str", and set new.str from it.
2596 (new_rel_from_section): Set new.str to NULL.
2597 (fold_name): Adjust calls to new_rel.
2598 (exp_fold_tree): Likewise.
2599 (exp_get_fill): New function.
2600 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2601 (INT): Returns a "bigint". Adjust all code handling INTs.
2602 (fill_opt): Returns a "fill".
2603 (fill_exp): Split out of fill_opt, use for FILL.
2604 * ldlang.h (struct _fill_type): New.
2605 (fill_type): Move typedef to ldexp.h.
2606 (lang_output_section_statement_type): "fill" is now a pointer.
2607 (lang_fill_statement_type): Likewise.
2608 (lang_padding_statement_type): Likewise.
2609 (lang_add_fill): Now takes a "fill_type *" param.
2610 (lang_leave_output_section_statement): Likewise.
2611 (lang_do_assignments): Likewise.
2612 (lang_size_sections): Likewise.
2613 (lang_leave_overlay_section): Likewise.
2614 (lang_leave_overlay): Likewise.
2615 * ldlang.c: Include ldgram.h after ldexp.h.
2616 (lang_output_section_statement_lookup): Adjust for fill_type change.
2617 (print_fill_statement): Likewise.
2618 (print_padding_statement): Likewise.
2619 (insert_pad): Now takes a "fill_type *" arg.
2620 (size_input_section): Likewise.
2621 (lang_size_sections_1): Likewise.
2622 (lang_size_sections): Likewise.
2623 (lang_do_assignments): Likewise.
2624 (lang_add_fill): Likewise.
2625 (lang_leave_output_section_statement): Likewise.
2626 (lang_leave_overlay_section): Likewise.
2627 (lang_leave_overlay): Likewise.
2628 Adjust all callers of the above function.
2629 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2630 starting with "0X" as well as "0x". Return bigint.str for hex
2631 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2632 Always use base 16 for numbers starting with "$".
2633 * ldmain.c: Include ldgram.h after ldexp.h.
2634 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
2635 of bfd_fill_link_order.
2636 * pe-dll.c: Adjust lang_do_assignments calls.
2637 * emultempl/elf32.em: Likewise.
2638 * emultempl/hppaelf.em: Likewise.
2639 * emultempl/ppc64elf.em: Likewise.
2640 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
2641 lang_add_assignment call.
2642 * emultempl/pe.em: Likewise.
2644 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
2646 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
2647 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
2648 the pattern in question is not a regexp.
2649 * ldlang.c: Likewise.
2650 * ldlang.h: Likewise.
2651 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
2653 2002-02-12 Jakub Jelinek <jakub@redhat.com>
2655 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2656 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
2657 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
2658 * ldexp.c (exp_data_seg): New variable.
2659 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
2660 (fold_binary): Handle DATA_SEGMENT_ALIGN.
2661 (exp_fold_tree): Handle DATA_SEGMENT_END.
2662 Pass allocation_done when recursing instead of hardcoding
2663 lang_allocating_phase_enum.
2664 * ldexp.h (exp_data_seg): New.
2665 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
2666 (lang_size_sections): New.
2667 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
2668 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
2669 if COMMONPAGESIZE is defined.
2670 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
2671 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
2672 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
2673 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
2674 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
2677 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2679 * Makefile.in: Regenerate.
2681 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2683 * lexsup.c: Remove strtoul declaration.
2685 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2687 * ldmain.c: Add prototype for main ().
2688 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
2689 * emultempl/lnk960.em (lnk960_choose_target): Function should
2692 2002-02-10 Alan Modra <amodra@bigpond.net.au>
2694 * ldlang.c (entry_section): New initialised variable.
2695 (lang_finish): Use it.
2696 * ldlang.h (entry_section): Declare.
2697 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
2698 entry_section to ".opd".
2700 2002-02-09 Chris Demetriou <cgd@broadcom.com>
2702 * ld.texinfo (Options): Add back in -nostdlib documentation,
2703 which had been inadvertently removed.
2705 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2707 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
2708 register section vma to a sane value after emitting error. Make
2709 fatal conditions cause program exit when emitting message.
2711 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2713 * configure.tgt: Add or32-*-rtems target.
2715 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2717 Contribute sh64-elf.
2718 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2719 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
2720 in OTHER_RELOCATABLE_SECTIONS.
2721 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2722 * emulparams/shelf32.sh (STACK_ADDR): Define.
2723 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
2724 (OTHER_SECTIONS): this. Removed stack settings.
2725 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
2726 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
2727 2001-03-12 DJ Delorie <dj@redhat.com>
2728 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
2729 relaxing if any shmedia or mixed sections are found.
2730 2001-03-07 DJ Delorie <dj@redhat.com>
2731 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
2732 einfo. Gracefully decline to output to non-elf formats.
2733 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
2734 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
2735 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
2736 * emulparams/shelf32.sh: Ditto.
2737 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2738 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
2740 2001-01-10 Ben Elliston <bje@redhat.com>
2741 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
2742 non-portable shell constructs. From Hans-Peter Nilsson.
2743 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
2744 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
2745 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
2746 dependencies to the shell script include chain.
2747 * Makefile.in: Regenerate.
2748 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2749 * emultempl/sh64elf.em: Update and tweak comments.
2750 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
2751 make a .cranges section SEC_IN_MEMORY.
2752 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2753 * emultempl/sh64elf.em
2754 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
2755 .cranges section found to be necessary; continue and set stored
2756 section contents flags for sections with non-mixed contents.
2757 Use a struct sh64_section_data container and sh64_elf_section_data
2758 to store contents-type flags.
2759 Remove unused update of "isec".
2760 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
2761 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
2762 access contents-type flags. Assert that the associated container
2763 is initialized. Use that container, not elf_gp_size, to hold size
2764 of linker-generated cranges contents.
2765 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2766 * emultempl/sh64elf.em
2767 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
2768 there's already a .cranges section. When section flag difference
2769 is found, don't NULL-check cranges a second time. Tweak comments.
2770 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
2771 merging, not max size, as size of ld-generated .cranges contents.
2772 Don't set ELF section flags in output section. When checking for
2773 needed .cranges descriptors, don't use a variable; compare
2774 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
2776 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2777 * emultempl/sh64elf.em: New file.
2778 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
2779 * Makefile.in: Regenerate.
2780 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
2781 (OTHER_RELOCATING_SECTIONS): Ditto.
2782 (EXTRA_EM_FILE): New, set to sh64elf if not set.
2783 * emulparams/shlelf32.sh: Stub out all settings except
2784 OUTPUT_FORMAT. Source shelf32.sh.
2785 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
2786 OTHER_RELOCATING_SECTIONS.
2787 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
2788 * emulparams/shlelf64.sh: Stub out all settings except
2789 OUTPUT_FORMAT. Source shelf64.sh.
2790 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
2791 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
2793 (DATA_START_SYMBOLS): Define, provide ___data.
2794 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
2795 for consecutive .data section.
2796 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
2797 section after .data section.
2798 * emulparams/shlelf64.sh: Ditto.
2799 * emulparams/shelf32.sh: Ditto.
2800 (ALIGNMENT): Define to 8.
2801 * emulparams/shelf32.sh: Ditto.
2802 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2803 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
2804 built-in linker scripts.
2805 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2806 * emulparams/shlelf64.sh: New.
2807 * emulparams/shelf64.sh: New.
2808 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
2810 * Makefile.am: Add support for shlelf64 and shelf64.
2811 * Makefile.in: Regenerate.
2812 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2813 * configure.tgt (sh64-*-elf*): Add shelf as default.
2814 Add shlelf to targ_extra_emuls.
2815 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2816 * emulparams/shelf32.sh: New file.
2817 * emulparams/shlelf32.sh: New file.
2818 * Makefile.am: Add support for shlelf32 and shelf32.
2819 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
2820 * Makefile.in: Regenerate.
2822 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
2824 * ldlang.c (lang_reset_memory_regions): Rename from
2825 reset_memory_regions. Change all callers. Make public.
2826 * ldlang.h (lang_reset_memory_regions): Prototype.
2827 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
2828 lang_reset_memory_regions before lang_size_sections.
2829 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2830 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
2832 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2834 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
2835 arithmetic when checking for too many global registers.
2837 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2839 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
2840 (ehppanbsd.c): New rule.
2841 * Makefile.in: Regenerate.
2842 * configure.tgt (hppa*-*-netbsd*): New target.
2843 * emulparams/hppalinux.sh: Add comment to check other files
2844 that source this file it is modified, and list which
2846 * emulparams/hppanbsd.sh: New file.
2848 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
2850 * scripttempl/xstormy16.sc: Don't allocate extra space for the
2853 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2855 Support on-demand global register allocation from
2856 R_MMIX_BASE_PLUS_OFFSET relocs.
2857 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
2858 mmix_set_reg_section_vma. Call
2859 _bfd_mmix_finalize_linker_allocated_gregs.
2860 (mmix_before_allocation): New function.
2861 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
2862 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
2863 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
2864 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
2865 before .MMIX.reg_contents.
2866 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
2867 (mmo_after_open): New function.
2868 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
2869 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
2870 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
2872 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2874 * emulparams/or32.sh: New file.
2875 * emulparams/or32elf.sh: New file.
2876 * scripttempl/or32.sc: New file.
2877 * configure.tgt : Add support for or32.
2878 * configure: Regenerate
2879 * Makefile.am: Add support for or32.
2880 * Makefile.in: Regenerate.
2881 * NEWS: Mention support for or32.
2882 * po/ld.pot: Regenerate.
2884 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2885 Mitch Lichtenberg <mpl@broadcom.com>
2887 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
2888 * emultempl/mipself.em: New file to handle MIPS ELF embedded
2889 reloc creation (ld --embedded-relocs).
2891 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2893 * configure: Regenerated.
2895 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2897 * Makefile.am (install): Depend on install-info.
2898 * Makefile.in: Regenerate.
2900 2002-01-26 Christian Rose <menthos@menthos.com>
2902 * ldmain.c (main): Use full sentences to ease translation.
2904 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
2906 * po/fr.po: Updated version.
2908 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
2910 * po/es.po: Updated version.
2912 2002-01-25 Andreas Jaeger <aj@suse.de>
2914 * ldlex.l (yy_input): Correct error check.
2916 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2918 * ldmisc.c (demangle): Put back dots when string not demangled.
2920 2002-01-22 Richard Henderson <rth@redhat.com>
2922 * emulparams/elf64alpha.sh (NOP): Use unop.
2924 2002-01-21 Andreas Jaeger <aj@suse.de>
2926 * ldlex.l: Use fread instead of read.
2928 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2930 * configure.tgt (ia64-*-netbsd*): New target.
2932 2002-01-21 H.J. Lu <hjl@gnu.org>
2934 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
2936 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
2938 2002-01-18 Andreas Jaeger <aj@suse.de>
2940 * ldver.c (ldversion): Update year.
2942 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2944 * po/ld.pot: Regenerate.
2946 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2948 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
2949 * Makefile.in: Regenerate.
2950 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
2951 * emultempl/ppc64elf.em: New file.
2953 2002-01-15 DJ Delorie <dj@redhat.com>
2955 * scripttempl/pe.sc: Add support for constructor priorities.
2957 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
2959 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
2960 * emulparams/avr23xx.sh: Likewise.
2961 * emulparams/avr4433.sh: Likewise.
2962 * emulparams/avr44x4.sh: Likewise.
2963 * emulparams/avr85xx.sh: Likewise.
2964 * emulparams/avrmega103.sh: Likewise.
2965 * emulparams/avrmega161.sh: Likewise.
2966 * emulparams/avrmega603.sh: Likewise.
2967 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
2969 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2971 * ldlang.c (walk_wild_section): Exclude object file if enclosing
2972 archive is excluded.
2974 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2976 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
2977 (eshelf_nbsd.c): New rule.
2978 (eshlelf_nbsd.c): New rule.
2979 * Makefile.in: Regenerate.
2980 * configure.tgt (sh*le-*-netbsdelf*): New target.
2981 (sh*-*-netbsdelf*): New target.
2982 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
2983 * emulparams/shelf_nbsd.sh: New emulation.
2984 * emulparams/shlelf_nbsd.sh: New emulation.
2986 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2988 * po/es.po: New file: Spanish translation.
2989 * configure.in (ALL_LINGUAS): Add es.
2990 * configure: Regenerate.
2992 2002-01-06 John Marshall <jmarshall@acm.org>
2994 * ld.texinfo: Note that --emit-relocs is currently only
2995 implemented for ELF.
2997 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2999 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3000 of bfd_section_list_remove and bfd_section_list_insert macros.
3001 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3002 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3004 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3006 * configure.tgt (x86_64-*-netbsd*): New target.
3008 2001-12-21 Tom Rix <trix@redhat.com>
3010 (gld*_create_output_section_statements): New function.
3011 For -binitfini support.
3012 * emultempl/aix.em (gld*_before_parse): Fix comment.
3013 * emultempl/aix.em (gld*_parse_args): Fix comment.
3015 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3017 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3019 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3021 * configure.tgt (arm-*-netbsdelf*): Add target.
3022 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3023 * emulparams/armelf_nbsd.sh: Added.
3024 * Makefile.am: Add rules for earmelf_nbsd.
3025 * Makefile.in: Regenerate.
3027 2001-12-19 Andreas Jaeger <aj@suse.de>,
3028 Susanne Oberhauser <froh@suse.de>
3030 * configure.host: Add rules for x86_64-*linux-gnu. Change
3031 s390x-linux entry to use gcc to report configuration, replace gcc
3032 with $CC in s390-linux
3034 2001-12-19 Andreas Jaeger <aj@suse.de>
3036 * ld.texinfo (VERSION): Fix markup.
3038 2001-12-18 matthew green <mrg@eterna.com.au>
3040 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3041 (m68kelfnbsd.c): New rule.
3042 * Makefile.in: Regenerate.
3043 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3044 (m68*-*-netbsd*4k*): .. this.
3045 (m68*-*-netbsdelf*): New target.
3046 (m68*-*-netbsd*): Also include ELF support.
3047 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3048 * emulparams/m68kelfnbsd.sh: New emulation.
3050 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3052 * ldgram.y (vers_node): Support anonymous version tags.
3053 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3054 tag is not defined together with non-anonymous versions.
3055 * ld.texinfo: Document it.
3057 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3059 * po/tr.po: New file: Turkish translation.
3060 * configure.in (ALL_LINGUAS): Add tr.
3061 * configure: Regenerate.
3063 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3065 * Makefile.am: Add rules for eelf64alpha_nbsd.
3066 * Makefile.in: Regenerate.
3067 * configure.tgt (alpha*-*-netbsd*): Set
3068 targ_emul to elf64alpha_nbsd.
3069 * emulparams/elf64alpha_nbsd.sh: Added.
3071 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3073 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3074 section_tail when fiddling with section list.
3075 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3076 broken into separate strings to make translation easier.
3077 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3078 fiddling with section list.
3079 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3081 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3083 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3085 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3087 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3089 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3091 * emultempl/elf32.em (finish): Supply output_bfd
3092 to bfd_elf*_discard_info.
3093 (OPTION_EH_FRAME_HDR): Define.
3094 (longopts): Add --eh-frame-hdr.
3095 (parse_args): Handle it.
3096 (list_options): Add --eh-frame-hdr to help.
3097 * emultempl/hppaelf.em (finish): Supply output_bfd
3098 to bfd_elf*_discard_info.
3099 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3101 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3103 * lexsup.c (parse_args): Don't pass shortopts to second call to
3104 getopt functions. Restore optind rather than decrementing before
3105 second call. Remove errind as it now duplicates last_optind.
3107 2001-12-11 Christopher Faylor <cgf@redhat.com>
3109 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3111 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3112 Richard Henderson <rth@redhat.com>
3114 * Makefile.am: Add support for xstormy16.
3115 * configure.tgt: Add support for xstormy16.
3116 * Makefile.in: Regenerate.
3117 * emulparams/elf32xstormy16.sh: New file.
3118 * scripttempl/xstormy16.sc: New file.
3120 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3122 * Makefile.in (LIB_PATH): Make configurable.
3123 (GENSCRIPTS): Set LIB_PATH in environment.
3124 * configure.in: Substitute LIB_PATH.
3125 * configure: Regenerate.
3126 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3127 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3129 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3131 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3132 describing the -N option so that it is easier to translate into
3135 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3137 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3138 statements describing a single option with a single, newline
3139 escaped fprintf. This allows better translation into other
3142 * ldmain.c (add_archive_element): Combine multiple strings
3143 into a single string to permit better translation into other
3146 2001-12-05 Tom Rix <trix@redhat.com>
3148 * Makefile.am: Remove eaixppc64.
3149 * Makefile.in: Regenerate.
3151 2001-12-04 Tom Rix <trix@redhat.com>
3153 * emultempl/aix.em (choose_target): Change default target to
3154 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3156 (gld*_read_file): Fix typo.
3157 (change_symbol_mode): Add prototype.
3160 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3161 * emulparams/aixrs6.sh : Same.
3162 * emulparams/ppcmacos.sh : Same.
3163 * emulparams/aixppc64.sh : Delete file.
3164 * emultempl/aix.em : Formatting changes.
3166 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3168 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3169 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3171 (OTHER_END_SYMBOLS): Fix formatting.
3172 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3173 (OTHER_END_SYMBOLS): Fix formatting.
3175 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3177 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3179 2001-12-02 Tom Rix <trix@redhat.com>
3181 * configure.tgt : Remove eaixppc64 emulations.
3182 * Makefile.in : Remove eaixppc64.c
3183 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3184 (ldemul_default_target): Same.
3185 * emultempl/gld960.em (gld960_choose_target): Same.
3186 * emultempl/gld960c.em (gld960_choose_target): Same.
3187 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3188 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3189 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3190 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3191 * emultempl/aix.em (choose_target): New function. Handle emulation of
3194 2001-11-27 H.J. Lu <hjl@gnu.org>
3196 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3197 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3198 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3199 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3200 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3201 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3202 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3203 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3205 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3208 (REL_SDATA): Likewise.
3209 (REL_SBSS): Likewise.
3210 (REL_SDATA2): Likewise.
3211 (REL_SBSS2): Likewise.
3212 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3215 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3217 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3219 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3221 2001-11-22 H.J. Lu <hjl@gnu.org>
3223 * Makefile.in: Regenerated with automake based on automake
3224 1.4-8 in RedHat 7.1.
3226 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3228 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3229 (config.status): Delete rule.
3230 Add extra dependencies to cover sourced emulparams files.
3231 * Makefile.in: Regenerate.
3233 * scripttempl/elf.sc: Order <section>, <section>.* and
3234 corresponding linkonce sections as seen in input files.
3235 Formatting fixes. Zero vma of all sections if not relocating.
3236 (STACK): Define and insert if STACK_ADDR defined.
3237 (OTHER_RELOCATING_SECTIONS): Delete.
3238 (OTHER_END_SYMBOLS): Define.
3239 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3240 (OTHER_READWRITE_SECTIONS): Likewise.
3241 (OTHER_GOT_SECTIONS): Likewise.
3242 (OTHER_SDATA_SECTIONS): Likewise.
3243 (OTHER_BSS_SECTIONS): Likewise.
3244 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3245 (OTHER_READWRITE_SECTIONS): Likewise.
3246 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3247 (OTHER_READWRITE_SECTIONS): Likewise.
3249 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3250 (STACK_ADDR): Define.
3251 * emulparams/armelf_oabi.sh: As for armelf.sh.
3252 * emulparams/elf32mcore.sh: As for armelf.sh.
3253 * emulparams/h8300elf.sh: As for armelf.sh.
3254 * emulparams/mn10200.sh: As for armelf.sh.
3255 * emulparams/shelf.sh: As for armelf.sh.
3257 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3258 (OTHER_END_SYMBOLS): Define.
3259 * emulparams/m32relf.sh: As for elf32fr30.sh.
3260 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3261 * emulparams/h8300self.sh: As for elf32fr30.sh.
3263 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3264 defines with RELOCATING test.
3265 (OTHER_SDATA_SECTIONS): Likewise.
3266 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3267 (OTHER_END_SYMBOLS): ..this.
3268 * emulparams/crislinux.sh: As for criself.sh.
3270 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3272 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3273 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3274 normal and linkonce sections as seen in input files.
3275 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3276 (TEXT_DYNAMIC): Likewise.
3277 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3278 (OTHER_SDATA_SECTIONS): Likewise.
3279 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3280 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3281 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3282 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3283 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3284 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3285 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3286 sections as seen in input files.
3287 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3288 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3290 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3291 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3292 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3293 (OTHER_SECTIONS): Instead, use this..
3294 (OTHER_END_SYMBOLS): ..and this.
3296 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3297 * emulparams/elf32bsmip.sh: Likewise.
3298 * emulparams/elf32btsmip.sh: Likewise.
3299 * emulparams/elf32ebmip.sh: Likewise.
3300 * emulparams/elf32lmip.sh: Likewise.
3301 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3302 * emulparams/elf32lsmip.sh: Likewise.
3303 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3304 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3305 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3306 * emulparams/elf64btsmip.sh: Likewise.
3307 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3308 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3309 * emulparams/elf32ppclinux.sh: Likewise.
3310 * emulparams/elf32ppcsim.sh: Likewise.
3311 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3312 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3313 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3314 * emulparams/h8300self.sh: Likewise.
3315 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3316 * emulparams/sh.sh: Comment.
3317 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3318 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3319 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3321 2001-11-21 David Heine <dlheine@tensilica.com>
3322 Alan Modra <amodra@bigpond.net.au>
3324 * ldlang.c (map_input_to_output_sections): Replace "break"
3325 accidentally removed with 2001-08-03 change.
3326 (lang_gc_sections_1): Likewise.
3328 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3330 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3332 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3334 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3335 of false when calling lang_size_sections.
3336 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3338 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3340 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3341 function when LDEMUL_FINISH isn't set to the same name. Don't
3342 call ${LDEMUL_FINISH}.
3343 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3344 * emultempl/armelf.em (arm_elf_finish): Call
3345 gld${EMULATION_NAME}_finish.
3346 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3347 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3348 hppaelf_layout_sections_again if necessary.
3349 (need_laying_out): New var.
3350 (hppaelf_layaout_sections_again): Rename to
3351 hppaelf_layout_sections_again. Clear need_laying_out.
3352 (PARSE_AND_LIST_OPTIONS): Format text.
3354 2001-11-14 H.J. Lu <hjl@gnu.org>
3356 * emultempl/armelf.em (arm_elf_finish): Renamed from
3357 gld${EMULATION_NAME}_finish.
3358 (LDEMUL_FINISH): Set to arm_elf_finish.
3360 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3362 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3363 (struct ld_emulation_xfer_struct): Use it.
3365 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3367 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3368 additional symbols referenced by newer crt0.o files from HP.
3370 2001-11-12 Anthony Green <green@redhat.com>
3372 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3374 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3376 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3377 * Makefile.in: Regenerate.
3379 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3381 * ld.texinfo: Use @command for commands, @option for options.
3382 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3384 * Makefile.in: Rebuild.
3386 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3388 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3389 Add support for targets.
3391 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3393 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3394 * configure: Regernate.
3395 * po/fr.po: New file.
3396 * po/sv.po: New file.
3398 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3400 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3401 as little endian default and to support big endian.
3403 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3405 * ld.texinfo (Options): Document new option, -nostdlib.
3406 * lexsup.c (OPTION_NOSTDLIB): New definition.
3407 (ld_options): Add entry for "nostdlib".
3408 (parse_args): Handle OPTIONS_NOSTDLIB.
3409 * ldfile.c (ldfile_add_library_path): Don't add directories
3410 to the search path if they weren't specified on the command line
3411 and -nostdlib was specified.
3412 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3414 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3416 * lexsup.c (parse_args): Prevent infinite parsing loop when
3417 "-rpath.a" is specified on the command line.
3418 Replace calls to fprintf with calls to einfo.
3420 2001-10-31 John Marshall <jmarshall@acm.org>
3422 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3423 appear only once across all the linker scripts involved in a link
3424 invocation no longer applies. Make the documentation reflect
3427 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3429 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3431 (sh-*-linux*): Added targ_extra_libpath.
3433 2001-10-31 David Heine <dlheine@tensilica.com>
3435 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3436 for padding statements.
3438 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3440 * configure.tgt (mmix-*-*): New target.
3441 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3442 Add dependencies to match.
3443 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3444 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3445 scripttempl/mmo.sc: New files.
3446 * gen-doc.texi: @set MMIX.
3447 * ld.texinfo: Ditto.
3448 [MMIX] Add MMIX node.
3449 * Makefile.in: Regenerate.
3451 2001-10-29 Kazu Hirata <kazu@hxi.com>
3453 * ldlang.c: Fix a comment typo.
3455 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3457 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3458 entries, and match *-*-linux*.
3460 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3462 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3463 with ldlex_script, ldlex_popstate.
3464 (ifile_p1): Likewise.
3465 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3467 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3468 to 1. Don't BEGIN(SCRIPT).
3469 (lex_redirect): Similarly.
3470 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3472 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3474 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3475 __EH_FRAME_END__ and accept eh frames into data section.
3476 Add ctor and dtor sections.
3478 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3480 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3481 (auto-export): Fix indentation.
3483 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3485 * pe-dll.c (autofilter_objectlist): Add startup objects
3487 (auto-export): Constify char * p.
3488 Extract file basename and use strcmp rather than ststr
3491 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3493 * ldmain.c (get_emulation): Improve comment about the handling
3496 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3498 * po/POTFILES.in: Regenerate.
3500 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3502 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3503 -z nocopyreloc and -z nocombreloc usage strings.
3505 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3507 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3510 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3512 * scripttempl/armaout.sc: Place .bss section after end of aligned
3513 data section to match behaviour of aout code in constructrion of
3516 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3518 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3519 startup files for mingw32 dlls to list.
3521 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3523 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3525 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3527 * configure.tgt (targ): Add arm9e-*-elf.
3529 2001-10-05 H.J. Lu <hjl@gnu.org>
3531 * genscripts.sh: Fix a typo in the last change.
3533 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3535 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3536 -z nocombreloc in usage.
3538 2001-10-03 Jim Blandy <jimb@redhat.com>
3540 * genscripts.sh: Include a comment at the top of each generated
3541 script, explaining its purpose.
3543 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3545 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3546 * NEWS: Mention -z nocopyreloc.
3547 * ld.texinfo (Options): Describe nocopyreloc.
3549 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3551 * configure: Regenerate.
3553 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3555 * ldver.h (ld_program_version): Remove declaration.
3556 * lexsup.c (parse_args): Move printing of copyright message..
3557 * ldver.c (ldversion): .. to here.
3558 Use BFD_VERSION_STRING in place of BFD_VERSION.
3559 (ld_program_version): Remove.
3560 * Makefile.am (Makefile): Depend on bfd/configure.in.
3562 * Makefile.in: Regenerate.
3564 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3566 * Makefile.am: Update dependencies with "make dep-am".
3567 * Makefile.in: Regenerate.
3569 2001-09-29 John Reiser <jreiser@BitWagon.com>
3571 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3572 * lexsup.c: Add --no-define-common commandline option.
3573 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3574 * ldlex.l: Likewise.
3575 * ld.h: Add command_line.inhibit_common_definition.
3576 * ldmain.c (main): Initialize.
3577 * ld.texinfo: Document.
3579 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3581 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3583 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3585 * ldmisc.c (USE_STDARG): Remove.
3586 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3591 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3592 declarations. Update copyright.
3594 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3596 * pe-dll.c: Remove obsoleted declaration of
3597 pe_get_data_import_dll_name.
3598 (pe_create_import_fixup): Fix thinko.
3600 * ld.texinfo(enable-auto-import): Clarify the explanation.
3602 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3604 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3605 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3606 DLL_SUPPORT controlled code.
3608 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3610 * emultempl/pe.em(pe_data_import_dll): Make static.
3611 (pe_get_data_import_dll_name): New accessor function.
3612 * pe-dll.c(pe_create_import_fixup): call
3613 pe_get_data_import_dll_name() from pe.em, instead of
3614 directly accessing pe_data_import_dll variable from pe.em.
3616 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3618 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3619 (def_file_add_directive): Use ISSPACE instead of isspace.
3620 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3621 isdigit/isxdigit/isalpha/isalnum.
3622 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3623 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3624 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3625 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3627 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3628 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3630 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3631 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3632 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3633 (ctor_prio): Use ISDIGIT instead of isdigit.
3634 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
3635 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
3636 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
3638 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
3639 (stricpy): Use TOLOWER instead of isupper/tolower.
3640 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
3641 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
3642 (lex_warn_invalid): Use ISPRINT instead of isprint.
3643 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
3644 (main): For gettext, also set the LC_CTYPE locate facet.
3645 (add_keepsyms_file): Use ISSPACE instead of isspace.
3646 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
3647 (is_num, parse_args): Use ISDIGIT instead of isdigit.
3648 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
3649 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
3650 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
3651 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
3652 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
3653 (quoteput): Use ISSPACE instead of isspace.
3654 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
3657 2001-09-18 Alan Modra <amodra@bigpond.net.au>
3659 * deffilep.y (def_stash_module): Constify "name" param.
3661 * pe-dll.c: Replace CONST with const throughout.
3662 (quick_symbol): Constify "n1", "n2", "n3" params.
3663 (make_singleton_name_thunk): Constify "import" param. Make
3664 "buffer_len" a size_t.
3665 (make_import_fixup_entry): Constify "name", "fixup_name",
3666 "dll_symname" params.
3667 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
3668 (pe_get32): Likewise.
3669 (pe_implied_import_dll): Likewise.
3671 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
3672 (sort_by_section_name): Likewise.
3674 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
3675 (make_import_fixup): Cast printf arg, rel->address to long rather
3677 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
3679 2001-09-15 Alan Modra <amodra@bigpond.net.au>
3681 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
3682 defines BufferSize. Increase buffer size by one.
3684 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
3686 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
3688 2001-09-14 Kevin Lo <kevlo@openbsd.org>
3690 * configure.tgt: Add arm-openbsd target.
3692 2001-09-12 H.J. Lu <hjl@gnu.org>
3694 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
3696 (ALL_64_EMULATIONS): Here.
3697 * Makefile.in: Regenerated.
3699 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3701 * emultempl/pe.em(make_import_fixup): change signature to
3702 take asection as well as arelec; we need this for proper
3703 error reporting. Only call pe_create_import_fixup() if
3704 there is no attempt to add a constant addend to the reloc;
3705 otherwise, report error condition.
3706 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
3707 since final argument is a pointer to make_import_fixup().
3708 Change call to cb() to match make_import_fixup() signature.
3709 (make_import_fixup_mark): make buffer_len unsigned.
3710 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
3712 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
3714 * ld.texinfo: add verbose documentation for auto-import
3715 direct-addressing workaround, to compliment the terse
3718 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
3720 * scripttempl/v850.sc: Add gcc_except_table sections.
3722 2001-09-11 Jeffrey A Law (law@cygnus.com)
3724 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
3725 * emulparams/h8300self.sh: Similarly.
3727 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
3729 * ld.texinfo (Options, --stack): Correct default value for stack
3732 2001-09-05 Tom Rix <trix@redhat.com>
3734 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
3736 2001-09-03 Andreas Jaeger <aj@suse.de>
3738 * emultempl/beos.em: Declare prototypes for comparions functions,
3741 2001-09-02 Andreas Jaeger <aj@suse.de>
3743 * emultempl/aix.em: Add missing prototype.
3744 * emultempl/lnk960.em: Likewise.
3745 * emultempl/vanilla.em: Likewise.
3746 * emultempl/armcoff.em: Likewise.
3747 * emultempl/armelf_oabi.em: Likewise.
3748 * emultempl/beos.em: Likewise.
3749 * emultempl/gld960c.em: Likewise.
3750 * emultempl/gld960.em: Likewise.
3752 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
3753 for prototype declaration.
3755 2001-08-31 Eric Christopher <echristo@redhat.com>
3756 Jason Eckhardt <jle@redhat.com>
3758 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
3760 2001-08-31 Andreas Jaeger <aj@suse.de>
3762 * emultempl/pe.em: Add missing prototypes.
3763 (gld_${EMULATION_NAME}_after_open): Remove extra args to
3764 pe_find_data_imports.
3765 (pr_sym): Add unused attribute.
3767 2001-08-29 Joel Sherrill <joel@OARcorp.com>
3769 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
3770 default from coff to elf.
3772 2001-08-29 Jeff Law <law@redhat.com>
3774 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
3776 * emulparams/h8300self.sh: Similarly.
3778 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
3780 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
3782 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
3783 * configure.tgt (h8300-*-elf*): New case.
3784 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
3785 * emulparams/h8300self.sh: New file.
3786 * Makefile.in: Regenerated.
3788 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
3790 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
3793 2001-08-27 Linus Nordberg <linus@swox.com>
3794 Alan Modra <amodra@bigpond.net.au>
3796 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
3797 (eelf64ppc.c, eelf64lppc.c): Add make targets.
3799 * Makefile.in: Regenerate.
3800 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
3801 entries to correct alphabetical position.
3802 * emulparams/elf64ppc.sh: New.
3803 * emulparams/elf64lppc.sh: New.
3805 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
3807 * ldmain.c (main): Declare BSIZE as static.
3809 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3811 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
3812 into .rel.dyn resp. .rela.dyn if combreloc.
3813 (get_script): If .x linker script is equal to .xn, only put it
3814 once into the binary.
3815 Add .xc and .xsc scripts.
3816 (parse_args): Handle -z combreloc and -z nocombreloc.
3817 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
3818 For .xc and .xsc scripts put all .rel* or .rela* input sections
3819 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
3820 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
3822 Strip trailing whitespace from script.
3823 Generate .xc and .xsc scripts if requested.
3824 * ldmain.c (main): Initialize link_info.combreloc and
3825 link_info.spare_dynamic_tags.
3826 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
3827 (ld_options): Add --spare-dynamic-tags option.
3828 (parse_args): Likewise.
3829 * ld.texinfo: Document -z combreloc and -z nocombreloc.
3830 * ldint.texinfo: Document .xc and .xsc linker scripts.
3831 * NEWS: Add notes about -z combreloc and SHF_MERGE.
3833 2001-08-22 H.J. Lu <hjl@gnu.org>
3835 * emulparams/elf32fr30.sh: Add a newline.
3837 2001-08-21 Andreas Jaeger <aj@suse.de>
3839 * deffilep.y: Add missing prototypes.
3840 * pe-dll.c: Likewise.
3842 2001-08-20 Alan Modra <amodra@bigpond.net.au>
3844 * ldlang.c (insert_pad): Fix typos in last patch.
3846 * ldlang.c: When traversing lang_statement_union_type lists,
3847 consistently use "header.next" rather than "next".
3848 * mpw-eppcmac.c: Likewise.
3849 * emultempl/beos.em: Likewise.
3850 * emultempl/hppaelf.em: Likewise.
3851 * emultempl/pe.em: Likewise.
3852 * ldlang.h (union lang_statement_union): Remove "next" field.
3854 * ldlang.c (insert_pad): Use offsetof macro.
3855 (lang_size_sections): Always neuter padding statements.
3856 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
3858 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
3859 passed to lang_size_sections.
3860 (pe_exe_fill_sections): Likewise.
3861 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
3862 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
3864 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3866 * emultempl/aix.em: Formatting fixes.
3868 2001-08-18 Alan Modra <amodra@bigpond.net.au>
3870 * ldlang.c (insert_pad): Make use of an existing pad statement if
3871 available. Move code calculating alignment, adjusting section
3872 alignment power, and adjusting dot to ..
3873 (size_input_section): .. here. Remove unused relax param.
3874 (lang_size_sections): Change boolean `relax' param to boolean *.
3875 Adjust call to size_input_section. Make use of insert_pad to
3876 place pad after the assignment statement. If relaxing, zap
3878 (reset_memory_regions): Reset output_bfd section sizes too.
3879 (relax_again): Move to..
3880 (lang_process): ..here. Adjust call to lang_size_sections, and
3881 remove duplicated code.
3882 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
3884 2001-08-17 Alan Modra <amodra@bigpond.net.au>
3886 * ld.texinfo: Document that fill values now use the four least
3888 * emulparams/elf32fr30.sh (NOP): Update.
3889 * emulparams/elf32mcore.sh: Likewise.
3890 * emulparams/elf64_s390.sh: Likewise.
3891 * emulparams/elf_i386.sh: Likewise.
3892 * emulparams/elf_i386_be.sh: Likewise.
3893 * emulparams/elf_i386_chaos.sh: Likewise.
3894 * emulparams/elf_i386_ldso.sh: Likewise.
3895 * emulparams/elf_s390.sh: Likewise.
3896 * emulparams/elf_x86_64.sh: Likewise.
3897 * emulparams/i386moss.sh: Likewise.
3898 * emulparams/i386nw.sh: Likewise.
3899 * emulparams/m68kelf.sh: Likewise.
3900 * scripttempl/elf.sc: Update NOP comment.
3901 * scripttempl/elfi370.sc: Likewise.
3902 * scripttempl/elfm68hc11.sc: Likewise.
3903 * scripttempl/elfm68hc12.sc: Likewise.
3904 * scripttempl/nw.sc: Likewise.
3906 2001-08-15 Tom Rix <trix@redhat.com>
3908 * ldgram.y (saved_script_handle): Initialize to NULL.
3909 * ldmain.c (main): Change check on saved_script_handle.
3911 2001-08-14 Alan Modra <amodra@bigpond.net.au>
3913 * emultempl/elf32.em: Formatting fixes.
3914 (output_prev_sec_find): Test for bfd_ind_section too; do so by
3915 looking at sec->owner.
3916 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
3917 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
3918 unused code, and reorganize orphan section placement code.
3920 * ldlang.c (wild_doit): Rename to lang_add_section.
3921 * ldlang.h: Here too.
3922 * mpw-elfmips.c: And here.
3923 * emultempl/beos.em: And here.
3924 * emultempl/elf32.em: And here.
3925 * emultempl/hppaelf.em: And here.
3926 * emultempl/pe.em: And here.
3928 2001-08-13 Richard Henderson <rth@redhat.com>
3930 * emultempl/needrelax.em: New file.
3931 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
3932 * Makefile.am (eelf64_ia64.c): Depend on it.
3933 * Makefile.in: Rebuild.
3935 2001-08-13 Alan Modra <amodra@bigpond.net.au>
3937 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
3938 output_section is set non-NULL.
3940 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
3941 `true' for SEC_EXCLUDE sections so that the generic code doesn't
3942 needlessly create an output_section_statement. Treat a correctly
3943 named output_section_statement with NULL bfd_section as compatible.
3945 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
3947 * emultempl/generic.em: Support EXTRA_EM_FILE.
3948 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
3949 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3950 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3951 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3952 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3953 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3954 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3955 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3956 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3957 LDEMUL_FIND_POTENTIAL_LIBRARIES.
3959 2001-08-12 Richard Henderson <rth@redhat.com>
3961 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
3962 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
3963 scripttempl/v850.sc: Keep .jcr data.
3965 2001-08-12 H.J. Lu <hjl@gnu.org>
3966 Andrew Haley <aph@cambridge.redhat.com>
3967 Nick Clifton <nickc@redhat.com>
3969 * ldgram.y (had_script): Change name to saved_script_handle.
3970 Change type to file handle.
3971 * ld.h (had_script): Rename and retype.
3972 * ldfile.c (ldfile_open_command_file): Save the file handle
3973 used in saved_script_handle.
3974 * lexsup.c (parse_args): Do not allow -c option to alter
3975 saved_script_handle.
3976 * ldmain.c (main): Print out the linker script used if
3977 --verbose is given. Check saved_script_handle to obtain the
3978 external linker script used, or if NULL, dump the builtin
3980 * ld.texinfo: Document that --verbose now dumps the linker
3981 script used, regardless of whether it was an internal or an
3984 2001-08-10 Andreas Jaeger <aj@suse.de>
3986 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
3988 * configure: Regenerate.
3990 2001-08-09 Alan Modra <amodra@bigpond.net.au>
3992 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
3994 * scripttempl/elf.sc: Move non-text .dynamic section before
3995 .plt/.got/.sdata* group.
3996 (OTHER_GOT_SECTIONS): Move to immediately after .got.
3997 (OTHER_SDATA_SECTIONS): Add.
3998 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4000 * emulparams/crislinux.sh: Likewise.
4001 * emulparams/elf32b4300.sh: Likewise.
4002 * emulparams/elf32bmip.sh: Likewise.
4003 * emulparams/elf32bmipn32.sh: Likewise.
4004 * emulparams/elf32bsmip.sh: Likewise.
4005 * emulparams/elf32btsmip.sh: Likewise.
4006 * emulparams/elf32ebmip.sh: Likewise.
4007 * emulparams/elf32elmip.sh: Likewise.
4008 * emulparams/elf32l4300.sh: Likewise.
4009 * emulparams/elf32lmip.sh: Likewise.
4010 * emulparams/elf32lsmip.sh: Likewise.
4011 * emulparams/elf32ltsmip.sh: Likewise.
4012 * emulparams/elf64bmip.sh: Likewise.
4013 * emulparams/elf64btsmip.sh: Likewise.
4014 * emulparams/elf64ltsmip.sh: Likewise.
4016 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4018 * genscripts.sh: Source the emulparams script before each output
4019 script is generated so that variables like `RELOCATING' may affect
4020 variables defined in the emulparams script.
4022 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4024 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4027 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4028 ie. iterate over wild_statement.section_list.
4029 (gld${EMULATION_NAME}_place_orphan): Likewise.
4031 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4033 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4034 .fini[0-4] sections used by _exit
4035 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4036 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4037 * scripttempl/elfm68hc11.sc: Likewise.
4039 2001-08-03 H.J. Lu <hjl@gnu.org>
4041 * emultempl/beos.em (init): Add the missing initialization.
4043 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4045 * ld.texinfo (Input Section Basics): Clarify ordering of output
4047 * ldlang.c (callback_t): Add wildcard_list param.
4048 (walk_wild_section): Remove "section" param. Rewrite for
4049 lang_wild_statement_type change. Remove unique_section_p test.
4050 (walk_wild_file): Remove "section" param.
4051 (walk_wild): Remove "section" and "file" params.
4052 (lang_gc_wild): Likewise.
4053 (wild): Likewise. Modify for lang_wild_statement_type change.
4054 (wild_sort): Likewise. Add "sec" param.
4055 (gc_section_callback): Likewise.
4056 (output_section_callback): Likewise. Do unique_section_p test.
4057 (map_input_to_output_sections): Modify call to wild.
4058 (lang_gc_sections_1): Likewise.
4059 (print_wild_statement): Modify for lang_wild_statement_type
4061 (lang_add_wild): Replace filename, filenames_sorted param with
4062 filespec. Replace section_name, sections_sorted,
4063 exclude_filename_list with section_list.
4064 * ldlang.h (lang_add_wild): Here too.
4065 (lang_wild_statement_type): Replace section_name, sections_sorted,
4066 and exclude_filename_list with section_list.
4067 * ldgram.y (current_file): Delete.
4068 (%union): Add wildcard_list.
4069 (file_NAME_list): Set type to wildcard_list. Build a linked list
4070 rather than calling lang_add_wild for each entry.
4071 (input_section_spec_no_keep): Call lang_add_wild here instead.
4072 * ld.h (struct wildcard_list): Declare.
4073 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4075 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4077 * ldmain.c (main): initialize link_info.pei386_auto_import
4078 * pe-dll.c: new tables for auto-export filtering
4079 (auto_export): change API, pass abfd for contextual filtering.
4080 Loop thru tables of excluded symbols instead of comparing
4083 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4085 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4086 static variable current_sec (static struct sec *). Add
4087 forward declaration for add_bfd_to_link.
4088 (process_def_file): Don't export undefined symbols. Do not
4089 export symbols starting with "_imp__". Call auto_export()
4091 (pe_walk_relocs_of_symbol): New function.
4092 (generate_reloc): add optional extra debugging
4093 (pe_dll_generate_def_file): eliminate extraneous initial blank
4095 (make_one): enlarge symtab to make room for __nm__ symbols
4096 (DATA auto-import support).
4097 (make_singleton_name_thunk): New function.
4098 (make_import_fixup_mark): New function.
4099 (make_import_fixup_entry): New function.
4100 (pe_create_import_fixup): New function.
4101 (add_bfd_to_link): Specify that 'name' argument is a CONST
4103 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4104 declare new functions pe_walk_relocs_of_symbol and
4105 pe_create_import_fixup.
4106 * emultempl/pe.em: add new options --enable-auto-import,
4107 --disable-auto-import, and --enable-extra-pe-debug.
4108 (make_import_fixup): New function.
4109 (pe_find_data_imports): New function.
4110 (pr_sym): New function.
4111 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4112 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4115 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4117 * ld.texinfo: add additional documentation for
4118 --export-all-symbols. Document --out-implib,
4119 --enable-auto-image-base, --disable-auto-image-base,
4120 --dll-search-prefix, --enable-auto-import, and
4121 --disable-auto-import.
4122 * ldint.texinfo: Add detailed documentation on auto-import
4125 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4127 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4130 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4132 * Makefile.am: Update dependencies with "make dep-am".
4133 * Makefile.in: Regenerate
4135 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4137 * ldcref.c (check_section_sym_xref): New function.
4138 (check_nocrossrefs): Call it.
4139 (check_nocrossref): Interate over h->refs here instead of..
4140 (check_refs): ..here. Pass in the symbol name, section, and bfd
4141 rather than hash_entry pointers.
4142 (struct check_refs_info): Keep symbol name rather than hash entry.
4144 (check_reloc_refs): Tweak for above changes in check_refs_info.
4145 Only report references to section syms when symname is NULL to
4146 prevent duplicate messages for the same reloc.
4148 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4150 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4151 available. Do not print NULL trees.
4152 (exp_print_token): Print unknown tokens with values > 126 as
4153 decimal values not ASCII characters.
4155 * ldlang.c (lang_leave_overlay): If a region is specified assign
4156 it to all sections inside the overlay unless they have been
4157 assigned to the own, non-default, memory region.
4159 * README: Add header for consistency with other README files.
4161 2001-07-14 H.J. Lu <hjl@gnu.org>
4163 * emultempl/elf32.em (output_prev_sec_find): Never return
4164 bfd_abs_section_ptr, bfd_com_section_ptr nor
4165 bfd_und_section_ptr.
4167 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4169 * Makefile.am (em32relf.c): Change dependency from generic.em to
4171 * Makefile.in: Regenerate.
4173 2001-07-14 matthew green <mrg@eterna.com.au>
4175 * configure.tgt (i386-*-netbsdelf*): New target.
4176 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4178 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4180 * emultempl/elf32.em (output_prev_sec_find): New.
4181 (place_orphan): Use it.
4183 2001-07-11 H.J. Lu <hjl@gnu.org>
4185 * ldmain.c (main): Fix typos in the last change.
4187 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4189 * ldmain.c (main): Disallow -F and -f without -shared.
4191 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4193 * emultempl/pe.em (after_open): Check for the output_bfd not
4194 having any coff_data structure allocated to it.
4196 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4198 * emultempl/elf32.em: Do not assuming that contents of the buffer
4199 returned from basename function will remain unchanged accross other
4202 2001-07-03 H.J. Lu <hjl@gnu.org>
4204 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4205 2001-07-03. It creates dynamic entries even for static binaries.
4207 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4209 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4210 (DYNAMIC): Use it to reserve few dynamic entries for
4213 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4215 * emulparams/hppa64linux.sh: New file.
4216 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4217 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4218 (ehppa64linux.c): Add rule to make it.
4220 * Makefile.in: Regenerate.
4222 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4224 * ld.texinfo (Options, -r): Mention restrictions when using
4225 different object formats.
4227 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4229 * ldlang.c (lang_check): Emit fatal error if relocatable link
4230 between different object flavours with relocations in input.
4232 2001-06-19 H.J. Lu <hjl@gnu.org>
4234 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4235 (--version-script): Mention the language support.
4237 2001-06-19 H.J. Lu <hjl@gnu.org>
4239 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4241 2001-06-18 H.J. Lu <hjl@gnu.org>
4243 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4244 (diststuff): Add $(MANS).
4245 * Makefile.in: Regenerated.
4249 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4251 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4252 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4253 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4254 * ld.h (args_type): Remove member export_dynamic. All users
4255 changed to use struct bfd_link_info member.
4257 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4258 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4259 * Makefile.in: Regenerate.
4261 2001-06-18 H.J. Lu <hjl@gnu.org>
4263 * ldlang.c (init_os): Add the newline to the einfo call.
4264 (lang_check): Likewise.
4265 (lang_do_version_exports_section): Likewise.
4267 2001-06-15 H.J. Lu <hjl@gnu.org>
4269 * lexsup.c (parse_args); Save optind to report unrecognized
4272 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4274 * ldlang.c (lang_check): Emit fatal error if relocatable link
4275 between different object flavours.
4277 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4278 Set new link_info member export_dynamic.
4279 * ldmain.c (main): Initialize new link_info member export_dynamic.
4281 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4283 * ldlang.c (walk_wild): Only call walk_wild_file if
4284 lookup_name returns something.
4285 (lookup_name): If load_symbols fails, return NULL.
4286 (load_symbols): Change to a boolean function.
4287 (open_input_bfds): If load_symbols fails then do not make the
4290 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4292 * ldlang.c (record_bfd_errors): Remove.
4294 * emultempl/aix.em: Fix copyright dates.
4296 2001-06-07 Andreas Jaeger <aj@suse.de>
4298 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4299 (TEXT_START_ADDR): Likewise.
4301 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4303 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4305 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4307 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4309 2001-05-31 H.J. Lu <hjl@gnu.org>
4311 * ldlang.c (open_input_bfds): Don't change the bfd error
4312 handler whilst loading symbols.
4314 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4316 * configure.tgt: Remove i370-mvs architecture, it is not currently
4319 2001-05-25 H.J. Lu <hjl@gnu.org>
4321 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4322 like emulparams/aixppc.sh.
4324 2001-05-25 H.J. Lu <hjl@gnu.org>
4326 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4327 setting of output_filename after bfd_scan_arch.
4328 * emultempl/pe.em: Likewise.
4330 2001-05-25 H.J. Lu <hjl@gnu.org>
4332 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4333 like emulparams/aixppc.sh.
4335 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4336 instead of ${srcdir}/emultempl/stringify.sed.
4338 2001-05-25 Timothy Wall <twall@oculustech.com>
4340 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4343 2001-05-25 Alan Modra <amodra@one.net.au>
4345 * configure.host: Replace linuxoldld with linux*oldld.
4346 * configure.tgt: Likewise.
4348 2001-05-24 H.J. Lu <hjl@gnu.org>
4350 * emultempl/stringify.sed: Removed again.
4352 2001-05-24 H.J. Lu <hjl@gnu.org>
4354 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4355 (gld${EMULATION_NAME}_before_parse): Initialize
4356 ldfile_output_architecture, ldfile_output_machine and
4357 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4358 * emultempl/beos.em: Likewise.
4359 * emultempl/elf32.em: Likewise.
4360 * emultempl/linux.em: Likewise.
4361 * emultempl/mipsecoff.em: Likewise.
4362 * emultempl/pe.em: Likewise.
4363 * emultempl/sunos.em: Likewise.
4365 2001-05-24 Tom Rix <trix@redhat.com>
4367 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4368 udate import file format.
4369 (change_symbol_mode) New, same
4370 (is_syscall) New, same
4371 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4372 * emulparams/aixppc64.sh : same
4373 * emulparams/aixrs6.sh : same
4374 * emulparams/ppcmacos.sh : same
4375 * emultempl/aix.em : use strtoull to parse options
4376 * Makefile.am : add eaixppc64 emulation for xcoff64
4377 * Makefile.in : same
4378 * configure.tgt : same
4380 * scripttempl/aix.sc : default text section offset to 0x10000000
4381 default data section offset to 0x20000000
4382 add .sv3264 and .sv64 pseudo sections
4383 loader and debug sections use the currect section offset.
4385 * emultempl/aix.em : Add xcoff64 support
4386 Add -binitfini support
4387 (gld${EMULATION_NAME}_before_parse) -binitfini
4388 (gld${EMULATION_NAME}_parse_args) same
4389 (gld${EMULATION_NAME}_before_allocation) format change for special
4392 * emulparams/aixppc64.sh : New file for xcoff64 support
4394 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4396 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4397 variable to avoid non-portable shell construct.
4399 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4401 * ldmain.c (get_emulation): Add -mips5 command line argument.
4403 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4405 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4406 (ELF_INTERPRETER_NAME): Define it.
4407 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4409 * configure.tgt (targ_emul, targ_extra_emuls)
4410 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4411 as primary, elf_i386 as extra.
4412 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4413 (eelf_i386_ldso.c): New rule.
4414 * Makefile.in: Rebuilt.
4416 2001-05-22 Nick Clifton <nickc@redhat.com>
4418 * lexsup.c (ld_options): Allow -I to be an alias for
4419 --dynamic-linker. This is for Solaris compatability.
4420 * ld.texinfo: Document that -I can be used.
4423 2001-05-16 Alan Modra <amodra@one.net.au>
4425 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4426 whether an input section is the first one assigned to an output
4428 Assorted formatting fixes.
4430 2001-05-14 DJ Delorie <dj@delorie.com>
4432 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4433 * Makefile.in: Ditto.
4435 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4437 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4438 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4440 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4442 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4444 * ldlang.c (lang_process): Call bfd_merge_sections.
4446 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4448 * ldgram.y: Fix typo.
4450 2001-05-03 H.J. Lu <hjl@gnu.org>
4452 * emultempl/elf32.em: Include "libiberty.h".
4453 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4454 basename of the bfd filename.
4455 (gld${EMULATION_NAME}_stat_needed): Likewise.
4456 (gld${EMULATION_NAME}_try_needed): Likewise.
4457 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4459 2001-05-02 H.J. Lu <hjl@gnu.org>
4461 * emultempl/pe.em: Include <ctype.h>.
4463 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4465 * emulparams/elf32openrisc.sh: New file.
4467 * Makefile.am: Add OpenRISC target.
4468 * Makefile.in: Regenerated.
4470 * configure.tgt: Add openrisc-*-* mapping.
4472 2001-05-02 Nick Clifton <nickc@redhat.com>
4474 * emultempl/aix.em: Replace buystring with xstrdup.
4475 * emultempl/beos.em: Replace buystring with xstrdup.
4477 2001-05-02 H.J. Lu <hjl@gnu.org>
4479 * ldfile.c: Include "libiberty.h".
4480 * ldlex.l: Likewise.
4482 * ldmisc.c (buystring): Removed.
4483 * ldmisc.h: Likewise.
4485 * ldfile.c: Replace buystring with xstrdup.
4486 * ldlang.c: Likewise.
4487 * ldlex.l: Likewise.
4488 * ldmain.c: Likewise.
4489 * ldmisc.c: Likewise.
4490 * lexsup.c: Likewise.
4491 * mpw-eppcmac.c: Likewise.
4493 2001-04-30 Andreas Jaeger <aj@suse.de>
4495 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4497 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4499 * ldlang.c (load_symbols): Give emulation a chance
4500 to process unrecognized file before fatal error is
4501 reported, not after.
4503 2001-04-27 Sean McNeil <sean@mcneil.com>
4505 * configure.tgt: Add arm-vxworks target.
4506 * scripttempl/armcoff.sc: Support .text or .data as a section name
4510 2001-04-13 J.T. Conklin <jtc@redback.com>
4512 * ld.texinfo: Document --fatal-warnings.
4515 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4516 warnings have been turned into errors.
4517 * lexsup.c (OPTION_WARN_FATAL): Define.
4518 (ld_options): Entry for --fatal-warnings.
4519 (parse_args): Handle OPTION_WARN_FATAL.
4520 * ld.h (ld_config_type): Add fatal_warnings field.
4522 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4524 * ldmain.c (main): Default to discard_sec_merge.
4525 * lexsup.c (OPTION_DISCARD_NONE): Define.
4526 (ld_options): Add --discard-none.
4527 (parse_args): Handle OPTION_DISCARD_NONE.
4528 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4529 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4530 all its input sections match.
4532 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4534 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4535 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4536 (eelf32ltsmip.c): New target.
4537 (eelf64btsmip.c): Likewise.
4538 (eelf64ltsmip.c): Likewise.
4539 * Makefile.in: Regenerated.
4541 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4543 (mips*-*-linux-gnu*): Likewise.
4545 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4547 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4549 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4552 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4554 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4555 correct value of __Stext here.
4556 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4559 * emulparams/crislinux.sh: Remove FIXME.
4561 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4563 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4564 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4566 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4568 * configure.tgt (cris-*-*): Change default emulation to criself.
4569 (cris-*-*aout*): New rule.
4571 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4573 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4574 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4576 2001-03-26 Andreas Jaeger <aj@suse.de>
4578 * ld.texinfo (Overview): Fix syntax in texi code.
4580 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4582 * ld.texinfo: Put @c man indications to generate the ld man page.
4583 When generating man, define all the variables. Define SEEALSO
4584 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4585 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4586 (ld.1): Generate from ld.texinfo.
4587 * Makefile.in: Regenerate.
4589 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4591 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4592 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4594 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4596 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4597 is an absolute path look only for this file and not along the path.
4599 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4601 * emultempl/elf32.em (OPTION_GROUP): New macro.
4602 Add new option Bgroup to longopts.
4603 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4604 (gld*_list_options): Add -Bgroup and -z defs.
4605 * ld.1: Document -Bgroup and -z defs.
4606 * ld.texinfo: Likewise.
4608 2001-03-07 Michael Meissner <meissner@redhat.com>
4610 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4611 with sections created by -fdata-sections.
4612 (.dynbss,.bss): Ditto.
4614 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4616 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4617 after_allocation_default, not gld..._before_allocation.
4619 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4621 * configure.in (BFD_VERSION): New.
4622 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4623 * configure: Regenerate.
4624 * Makefile.am: Run "make dep-am"
4625 * Makefile.in: Regenerate.
4627 2001-02-26 Timothy Wall <twall@cygnus.com>
4629 * emulparams/elf64_aix.sh: Add additional read-only sections;
4630 uncomment lines which are now required.
4632 2001-02-26 H.J. Lu <hjl@gnu.org>
4634 * ldlang.c (open_input_bfds): Set the bfd error handler so
4635 that problems can be caught whilst loading symbols.
4636 (record_bfd_errors): New function: Report BFD errors and mark
4637 the executable output as being invalid.
4639 2001-02-22 Timothy Wall <twall@cygnus.com>
4641 * configure.host: Add configuration for ia64-*-aix*.
4642 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
4643 Add dependencies for eelf64_aix.c.
4644 * Makefile.in: Regenerate.
4645 * configure.tgt: Add ia64-*-aix* mapping.
4646 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
4648 2001-02-20 H.J. Lu <hjl@gnu.org>
4650 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
4651 false if we found the file.
4653 2001-02-18 David O'Brien <obrien@FreeBSD.org>
4655 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
4656 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
4658 2001-02-18 lars brinkhoff <lars@nocrew.org>
4660 * Makefile.am: Add PDP-11 target.
4661 * configure.tgt: Likewise.
4662 * emulparams/pdp11.sh: New file.
4664 2001-02-17 David O'Brien <obrien@FreeBSD.org>
4666 * configure.host: Add a generic FreeBSD configuration entry such that
4667 all [modern] FreeBSD systems on all platforms will look the same.
4669 2001-02-14 H.J. Lu <hjl@gnu.org>
4671 * configure.tgt: Remove mention of earmelf_linux26.
4673 2001-02-13 Richard Henderson <rth@redhat.com>
4675 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
4677 2001-02-13 H.J. Lu <hjl@gnu.org>
4679 * ldexp.h (node_type): Add etree_provided.
4680 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
4681 type to etree_provided if defined by PROVIDE. Allow updating
4683 (exp_print_tree): Handle etree_provided.
4684 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
4687 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4689 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
4690 .IA_64.unwind.* pattern to unwind table section and
4691 .IA_64.unwind_info* pattern to unwind info section.
4693 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4695 * Makefile.am: Add linux target for S/390.
4696 * Makefile.in: Likewise.
4697 * configure.host: Likewise.
4698 * configure.tgt: Likewise.
4699 * emulparams/elf64_s390.sh: New file.
4700 * emulparams/elf_s390.sh: New file.
4702 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4704 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
4706 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
4708 2001-02-06 Philip Blundell <philb@gnu.org>
4710 * Makefile.am: Remove mention of earmelf_linux26.
4711 * Makefile.in: Regenerate.
4713 2001-02-04 Philip Blundell <philb@gnu.org>
4715 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
4716 * emulparams/armelf_linux26.sh: Delete.
4717 * configure.tgt: Remove mention of armelf_linux26 emulation.
4719 2001-02-01 Nick Clifton <nickc@redhat.com>
4721 * ld.1: Replace occurances of -oformat with --oformat.
4723 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
4725 * ldlang.c (lang_leave_overlay): Don't set lma_region when
4726 load_base is specified.
4728 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
4730 * emultempl/elf32.em: Correct spelling in comments and listed
4733 2001-01-23 Alan Modra <alan@linuxcare.com.au>
4735 * ldlang.c (lang_leave_overlay): Only set lma_region from the
4736 default for the first section of a group of overlay sections.
4738 2001-01-22 Alan Modra <alan@linuxcare.com.au>
4740 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
4741 * Makefile.in: Regenerate.
4742 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
4743 Check for null tool_dir.
4745 2001-01-16 Jim Wilson <wilson@redhat.com>
4747 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
4748 and IA_64.unwind.info.
4750 2001-01-16 H.J. Lu <hjl@gnu.org>
4752 * ldlang.c (lang_check): Merge the private data only if the
4753 input file has contents.
4755 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4757 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
4759 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4760 enabling search for libmilli. On a relocatable link, make .text
4762 (LDEMUL_AFTER_PARSE): Define.
4763 (hppaelf_finish): Correct spelling of relocatable in comments.
4765 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4766 rummage through the script for sections on the unique list.
4767 Correct length of strncmp for ".note".
4768 (gld${EMULATION_NAME}_check_needed): Rearrange function.
4770 * ldlang.c (unique_section_list): New var.
4771 (unique_section_p): New function.
4772 (walk_wild_section): Don't match sections on unique_section_list.
4773 (lang_add_unique): New function.
4774 Correct spelling of relocatable in comments.
4776 * ldlang.h (struct unique_sections): Declare.
4777 (unique_section_list): Declare.
4778 (unique_section_p): Declare.
4779 (lang_add_unique): Declare.
4781 * lexsup.c (ld_options): Allow --unique to take an optional arg.
4782 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
4784 * ld.texinfo (--unique): Update.
4786 2001-01-13 Nick Clifton <nickc@redhat.com>
4788 * lexsup.c (parse_args): Remove spurious white space.
4790 2001-01-12 Nick Clifton <nickc@redhat.com>
4792 * lexsup.c (parse_args): Update copyright date.
4794 2001-01-12 Philip Blundell <pb@futuretv.com>
4796 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
4798 2001-01-10 Kazu Hirata <kazu@hxi.com>
4800 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
4801 * scripttempl/h8300h.sc: Fix formatting.
4802 * scripttempl/h8300s.sc: Likewise.
4803 * scripttempl/h8500.sc: Likewise.
4804 * scripttempl/h8500b.sc: Likewise.
4805 * scripttempl/h8500c.sc: Likewise.
4806 * scripttempl/h8500m.sc: Likewise.
4807 * scripttempl/h8500s.sc: Likewise.
4809 2000-01-07 David O'Brien <obrien@BSDi.com>
4811 * emultempl/elf32.em: Only perform Linux ld hints processing when
4814 2001-01-07 Philip Blundell <philb@gnu.org>
4816 * ld.texinfo (Bug Reporting): Update email address for reports.
4818 2000-12-31 Nick Clifton <nickc@redhat.com>
4820 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
4821 options by checking for a return value of '?' not -1.
4823 2000-12-28 Nick Clifton <nickc@redhat.com>
4825 * lexsup.c (struct ld_option): Add new enum value:
4827 (ld_options[]): Change -omagic, -output and -oformat options
4828 to be EXACTLY_TWO_DASHES.
4829 (OUTPUT_COUNT): Use ARRAY_SIZE.
4830 (parse_args): Change parameter 'argc' to unsigned.
4831 Place EXACTLY_TWO_DASHES options into new really_longopts
4833 If getopt_long_only fails, try calling getopt_long using the
4834 really_longopts array.
4835 (help): Print a double dash for both EXACTLY_TWO_DASHES and
4838 * ldlex.h: Fix prototype of parse_args.
4840 * ld.texinfo: Document that long options starting with 'o'
4841 must be preceeded by two dashes. Change example of a single
4842 dashed long option from -oformat to -trace-symbol.
4844 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4846 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
4847 (longopts[]): New --no-default-excludes option.
4848 (gld_${EMULATION_NAME}_list_options): Document.
4849 (gld_${EMULATION_NAME}_parse_args): Handle.
4851 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4853 * ldlang.c (new_stat): Revert the last beautification with "innocent"
4854 whitespace, it breaks the K&R C preprocessor.
4856 2000-12-11 DJ Delorie <dj@redhat.com>
4858 * ld.texinfo: Add notes about --whole-archive and gcc.
4860 2000-11-18 Fred Fish <fnf@be.com>
4862 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
4863 (ld_options): Entry for --allow-shlib-undefined.
4864 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
4865 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
4867 * ld.texinfo: Document new command line switch.
4869 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
4871 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
4872 .fixup is actually read/write.
4873 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
4874 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4875 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
4877 2000-12-11 Jan Hubicka <jh@suse.cz>
4879 * NEWS: Add note about x86_64 architecture.
4881 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
4883 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
4884 Set DWARF2 sections to a VMA of zero.
4886 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4888 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4890 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4891 (sparc*-*-rtems*): Switched from a.out to ELF.
4893 2000-11-30 Jan Hubicka <jh@suse.cz>
4895 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
4896 (eelf_x86_64.c): New.
4897 * Makefile.in: Regenerate.
4898 * configure.tgt: Add support for x86_64-*-linux-gnu*.
4899 * emulparams/elf_x86_64.sh: New.
4901 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
4903 * emulparams/crislinux.sh (ENTRY): Change back to _start.
4904 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
4906 * scripttempl/crisaout.sc: Change all RELOCATING not related to
4907 merging non-a.out sections into CONSTRUCTING.
4909 2000-11-28 Nick Clifton <nickc@redhat.com>
4911 * ld.1 (COPYING): Mention that the GNU Free Documentation
4912 License is present in the sources, but not the output, and
4913 also available from the GNU website.
4914 (GNU Free Documentation License): Comment out this section.
4916 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
4918 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
4921 2000-11-25 David O'Brien <obrien@FreeBSD.org>
4923 * ld.1: Remove old date so it does not give the impression the manpage
4926 2000-11-24 Nick Clifton <nickc@redhat.com>
4928 * configure.tgt (xscale-coff): Add target.
4929 (xscale-elf): Add target.
4931 2000-11-24 Fred Fish <fnf@be.com>
4933 * ldmain.c (main): Remove redundant init of config.make_executable
4936 2000-11-15 Richard Henderson <rth@redhat.com>
4938 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
4940 2000-11-14 Kazu Hirata <kazu@hxi.com>
4942 * scripttempl/h8300.sc: Fix formatting.
4943 * scripttempl/h8300h.sc: Likewise.
4944 * scripttempl/h8300s.sc: Likewise.
4946 2000-11-14 Denis Chertykov <denisc@overta.ru>
4948 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
4950 2000-11-09 Philip Blundell <pb@futuretv.com>
4952 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
4953 around orphan sections whose names can be represented in C.
4955 2000-11-07 Jim Wilson <wilson@redhat.com>
4957 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
4958 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
4960 2000-11-06 Nick Clifton <nickc@redhat.com>
4962 * ld.texinfo: Add GNU Free Documentation License.
4963 * ldint.texinfo: Add GNU Free Documentation License.
4964 * ld.1: Add GNU Free Documentation License.
4966 2000-11-05 Alan Modra <alan@linuxcare.com.au>
4968 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
4969 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
4971 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
4972 Move 2000-11-02 Makefile.in changes to this file.
4973 * Makefile.in: Regenerate.
4975 2000-11-03 Nick Clifton <nickc@redhat.com>
4977 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
4978 constructors and destructors.
4979 * scripttempl/h8300h.sc: Ditto.
4980 * scripttempl/h8300s.sc: Ditto.
4981 * scripttempl/h8500.sc: Ditto.
4982 * scripttempl/h8500b.sc: Ditto.
4983 * scripttempl/h8500c.sc: Ditto.
4984 * scripttempl/h8500m.sc: Ditto.
4985 * scripttempl/h8500s.sc: Ditto.
4986 * scripttempl/v850.sc: Ditto.
4987 * scripttempl/w65.sc: Ditto.
4988 * scripttempl/z8000.sc: Ditto.
4990 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4992 * Makefile.in (e_i386_chaos.c): New rule.
4993 (ALL_EMULATIONS): Added e_i386_chaos.o.
4994 * emulparams/elf_i386_chaos.sh: New file.
4995 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
4997 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4999 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5000 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5001 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5002 library path suffix.
5003 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5005 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5007 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5008 for consecutive sections.
5010 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5012 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5014 * ld.texinfo: Added notes about this new option.
5016 2000-10-16 Nick Clifton <nickc@redhat.com>
5018 * emultempl/pe.em (_after_open): Add tests of return values from
5019 bfd functions. Emit appropriate error messages if necessary.
5021 2000-10-13 Nick Clifton <nickc@redhat.com>
5023 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5024 local variables - they are not used, but leave in the call to
5025 bfd_canonicalize_symtab.
5026 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5027 pe_dll_search_prefix.
5029 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5031 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5032 (longopts): New --dll-search-prefix option.
5033 (gld_${EMULATION_NAME}_list_options): Document.
5034 (gld_${EMULATION_NAME}_parse_args): Handle.
5035 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5036 dynamically, search for a dll named '<prefix><basename>.dll'
5037 in preference to 'lib<basename>.dll' if --dll-search-prefix
5040 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5042 * ldlang.c (section_already_linked): Set kept_section instead of
5045 2000-10-10 Kazu Hirata <kazu@hxi.com>
5047 * deffile.h: Fix formatting.
5048 * lexsup.c: Likewise.
5051 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5053 * pe-dll.c (make_one): Do not generate code thunk for DATA
5055 (process_def_file): deduce DATA flag for auto-export sumbols.
5057 2000-10-09 Kazu Hirata <kazu@hxi.com>
5059 * ld.h: Fix formatting.
5060 * ldcref.c: Likewise.
5061 * ldctor.h: Likewise.
5062 * ldemul.c: Likewise.
5063 * ldemul.h: Likewise.
5064 * ldexp.c: Likewise.
5065 * ldexp.h: Likewise.
5066 * ldfile.c: Likewise.
5067 * ldfile.h: Likewise.
5068 * ldlang.c: Likewise.
5069 * ldlang.h: Likewise.
5070 * ldmain.c: Likewise.
5071 * pe-dll.c: Likewise.
5073 * pe-dll.c: Revert some formatting fixes.
5075 2000-10-08 Kazu Hirata <kazu@hxi.com>
5077 * pe-dll.c: Fix formatting.
5079 2000-10-05 Kazu Hirata <kazu@hxi.com>
5081 * ldlang.c: Fix formatting.
5083 2000-10-03 DJ Delorie <dj@redhat.com>
5085 * pe-dll.c (fill_edata): initialize entire block
5086 (make_one): fill in correct section.
5088 2000-10-03 Kazu Hirata <kazu@hxi.com>
5090 * ldexp.c: Fix formatting.
5092 2000-10-02 DJ Delorie <dj@redhat.com>
5094 * emultempl/pe.em (gld_*_after_open): detect case where there two
5095 import libraries for same dll; rename one to ensure proper link
5098 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5100 (generate_edata): fix typo
5102 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5104 * scripttempl/crisaout.sc (ENTRY): Now __start.
5105 (.text): Add default setting for __start.
5106 Remove CONSTRUCTORS handling.
5107 (/DISCARD/): Add .gnu.warning.*.
5108 * emulparams/crislinux.sh (ENTRY): Now __start.
5109 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5110 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5111 (ENTRY): Now __start.
5112 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5113 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5115 2000-09-29 Kazu Hirata <kazu@hxi.com>
5117 * deffile.h: Fix formatting.
5119 * ldcref.c: Likewise.
5120 * ldctor.c: Likewise.
5121 * ldctor.h: Likewise.
5122 * ldemul.c: Likewise.
5123 * ldemul.h: Likewise.
5124 * ldexp.c: Likewise.
5125 * ldexp.h: Likewise.
5126 * ldfile.c: Likewise.
5127 * ldfile.h: Likewise.
5128 * ldlang.c: Likewise.
5129 * ldlang.h: Likewise.
5130 * lexsup.c: Likewise.
5132 * pe-dll.c: Likewise.
5134 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5136 * pe-dll.c (process_def_file): Uninitialized data wasn't
5137 exported with --export-all-symbols switch.
5139 2000-09-28 DJ Delorie <dj@redhat.com>
5141 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5142 noname work properly.
5144 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5146 * ld.texinfo (HPPA ELF32): New section.
5148 * emultempl/hppaelf.em (group_size): New.
5149 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5150 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5151 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5152 options to prevent abbreviations matching.
5153 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5154 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5156 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5158 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5159 on the m68*-*-elf target. Make it support COFF input objects.
5161 2000-09-21 Kazu Hirata <kazu@hxi.com>
5163 * ldmain.c: Fix formatting.
5164 * ldmisc.c: Likewise.
5165 * ldver.c: Likewise.
5166 * ldwrite.c: Likewise.
5168 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5170 * ldwrite.c (clone_section): Silence gcc warnings.
5172 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5174 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5175 out of memory failure.
5177 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5178 (clone_section): Handle out of memory failures. Rename var to
5179 avoid c++ reserved word.
5181 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5183 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5184 stub_name param to stub_sec_name.
5185 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5187 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5189 * emultempl/m68kelf.em: New file.
5190 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5191 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5192 * Makefile.in: Regenerate.
5194 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5196 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5199 2000-09-13 Nick Clifton <nickc@redhat.com>
5201 * ldmain.c (multiple_definition): Disable relaxation if
5202 multiple symbol definitions are encountered - otherwise the
5203 linker could abort with an assertion failure.
5205 2000-09-10 Nick Clifton <nickc@redhat.com>
5207 * mri.c: Fix formatting.
5209 2000-09-07 H.J. Lu <hjl@gnu.org>
5211 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5212 * configure: Rebuild.
5214 2000-09-07 H.J. Lu <hjl@gnu.org>
5216 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5217 * Makefile.in: Rebuild.
5219 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5221 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5222 broken list handling. Create __start_SECNAME and __stop_SECNAME
5223 when no place-holder. Add some comments. Test both SEC_CODE and
5224 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5225 Handle case where no output section statement created.
5227 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5229 * configure.tgt (sh-*-linux*): Added.
5230 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5231 * Makefile.in: Rebuilt.
5232 * emulparams/shelf_linux.sh: New file.
5233 * emulparams/shlelf_linux.sh: New file.
5235 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5237 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5238 try shuffling sections when the orphan happens to be the place
5239 holder. Keep count of unique section names generated so we speed
5240 the search for a new name.
5242 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5244 * configure: Rebuilt with new libtool.m4.
5246 2000-09-05 Nick Clifton <nickc@redhat.com>
5248 * Makefile.in: Regenerate.
5249 * aclocal.m4: Regenerate.
5250 * configure: Regenerate.
5251 * config.in: Regenerate.
5252 * po/ld.pot: Regenerate.
5254 * ldint.texinfo: Remove CVS revision marker - it foils local
5257 * emultempl/ticoff.em: Remove extraneous comma.
5259 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5261 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5262 to stub section flags.
5263 (hppa_for_each_input_file_wrapper): New.
5264 (hppa_lang_for_each_input_file): New.
5265 (lang_for_each_input_file): Define to call above.
5266 (multi_subspace): New.
5267 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5268 (PARSE_AND_LIST_PROLOGUE): Define.
5269 (PARSE_AND_LIST_LONGOPTS): Define.
5270 (PARSE_AND_LIST_OPTIONS): Define.
5271 (PARSE_AND_LIST_ARGS_CASES): Define.
5272 (hppaelf_finish): Call elf32_hppa_set_gp.
5273 (hppaelf_set_output_arch): Remove.
5274 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5276 * emulparams/hppalinux.sh (ELFSIZE): Define.
5278 (OTHER_READONLY_SECTIONS): Define.
5280 (GENERATE_SHLIB_SCRIPT): Define.
5282 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5283 to const throughout. Change `void *' to `PTR' throughout.
5284 (lang_memory_default): Function is local to file, add `static'.
5286 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5287 (ehppalinux.c): Likewise.
5288 (earmelf.c): Likewise.
5289 (earmelf_linux.c): Likewise.
5290 (earmelf_linux26.c): Likewise.
5291 * Makefile.in: Regenerate.
5293 * ld.h (ld_config_type): Add unique_orphan_sections.
5294 * lexsup.c (OPTION_UNIQUE): Define.
5295 (ld_options): Add "--unique".
5296 (parse_args): Handle it.
5297 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5298 search for an existing output section if unique_orphan_sections is
5299 set. Make use of bfd_get_unique_section_name rather than
5300 duplicating code here.
5301 * ld.texinfo: Describe --unique.
5303 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5304 optional arg to split-by-file.
5305 (parse_args): Handle them.
5306 * ld.texinfo: Update description of these options.
5307 * ldwrite.c (clone_section): Pass in the section name. Replace
5308 local code with bfd_get_unique_section_name.
5309 (split_sections): Tidy code and comments. Use a list traversal
5310 more appropriate to the list construction. Handle cooked section
5311 sizes. Split when split_by_reloc reached rather than exceeded.
5312 Track section size and split when split_by_file reached. Fix
5313 link_order_tail (even though it's not used).
5314 (ldwrite): Modify condition for calling split_sections to suit
5315 changed split_by_reloc and split_by_file.
5316 * ldmain.c (main): Init config.split_by_reloc and
5317 config.split_by_file to -1.
5318 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5319 Change split_by_file to bfd_size_type.
5321 2000-09-02 Nick Clifton <nickc@redhat.com>
5323 * configure.in: Increase version number to 2.10.91.
5324 * NEWS: Mention new ability to support removal of duplicate DWARF2
5326 * configure: Regenerate.
5327 * aclocal.m4: Regenerate.
5328 * config.in: Regenerate.
5330 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5332 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5334 * scripttempl/elf32avr.sc: Ditto.
5335 * scripttempl/elfd10v.sc: Ditto.
5336 * scripttempl/elfd30v.sc: Ditto.
5337 * scripttempl/elfi370.sc: Ditto.
5338 * scripttempl/elfm68hc11.sc: Ditto.
5339 * scripttempl/elfm68hc12.sc: Ditto.
5340 * scripttempl/elfi386beos.sc: Ditto.
5341 * scripttempl/v850.sc: Ditto.
5343 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5345 * acinclude.m4: Include libtool and gettext macros from the
5347 * aclocal.m4, configure: Rebuilt.
5349 2000-08-25 Nick Clifton <nickc@redhat.com>
5351 * ldlang.c (open_output): When choosing the target for a
5352 particular endianness, do nothing if the target is not
5355 2000-08-25 H.J. Lu <hjl@gnu.org>
5357 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5358 check -rpath nor LD_RUN_PATH for cross link.
5359 * ld.texinfo: Document the change.
5361 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5363 * NEWS: Mention support for CRIS.
5365 2000-08-23 H.J. Lu <hjl@gnu.org>
5367 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5368 the current runpath list from bfd_elf_get_runpath_list ()
5371 2000-08-22 H.J. Lu <hjl@gnu.org>
5373 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5374 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5375 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5376 trace_file_tries is non-zero.
5377 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5378 if trace_file_tries is non-zero.
5380 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5383 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5385 * NEWS: Mention i860 support.
5387 2000-08-14 Andreas Schwab <schwab@suse.de>
5389 * scripttempl/elf.sc: Fix last change to use correct comment
5392 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5394 * scripttempl/elf.sc: Add a comment giving the correspondence
5395 between sections, per-datum sections, and linkonce sections. Make
5396 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5399 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5401 * emulparams/elf32_i860.sh: New file.
5402 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5403 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5404 (eelf32_i860.c): New rule.
5405 * Makefile.in: Regenerate.
5407 2000-08-10 Nick Clifton <nickc@cygnus.com>
5409 * emulparams/mipspe.sh (ENTRY): Add definition.
5411 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5413 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5416 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5418 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5419 the final size of .bss section.
5420 * scripttempl/elfm68hc12.sc: Likewise.
5422 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5424 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5425 gld${EMULATION_NAME}_parse_args for consistency. Combine
5426 lastoptind and prevoptind vars, and keep track of last optind.
5427 (gld_${EMULATION_NAME}_list_options): Rename to
5428 gld${EMULATION_NAME}_list_options.
5430 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5432 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5433 (i586-sco-sysv5uw7.1.0).
5435 2000-07-27 H.J. Lu <hjl@gnu.org>
5437 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5438 (PARSE_AND_LIST_PROLOGUE): New.
5439 (PARSE_AND_LIST_LONGOPTS): Likewise.
5440 (PARSE_AND_LIST_OPTIONS): Likewise.
5441 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5442 (PARSE_AND_LIST_EPILOGUE): Likewise.
5444 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5446 * emultempl/armelf.em: Elide functions common to elf32.em,
5447 ie. most of the file.
5448 (arm_elf_after_open): New. Do arm specific things then call
5449 gld${EMULATION_NAME}_after_open.
5450 (arm_elf_before_allocation): New. Call
5451 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5452 (PARSE_AND_LIST_PROLOGUE): Define.
5453 (PARSE_AND_LIST_SHORTOPTS): Define.
5454 (PARSE_AND_LIST_LONGOPTS): Define.
5455 (PARSE_AND_LIST_OPTIONS): Define.
5456 (PARSE_AND_LIST_ARGS_CASES): Define.
5457 (LDEMUL_AFTER_OPEN): Define.
5458 (LDEMUL_BEFORE_ALLOCATION): Define.
5459 (LDEMUL_BEFORE_PARSE): Define.
5460 (LDEMUL_FINISH): Define.
5462 * emultempl/hppaelf.em: Similarly zap most of this file.
5463 (hppaelf_add_stub_section): Prototype.
5464 (hppaelf_layaout_sections_again): Prototype.
5465 (hook_in_stub): Prototype.
5466 (LDEMUL_SET_OUTPUT_ARCH): Define.
5467 (LDEMUL_FINISH): Define.
5468 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5470 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5471 (EXTRA_EM_FILE): New.
5472 * emulparams/armelf_linux.sh: Likewise.
5473 * emulparams/armelf_linux26.sh: Likewise.
5474 * emulparams/hppalinux.sh: Likewise.
5475 * emulparams/hppaelf.sh: Likewise.
5478 * emultempl/elf32.em: Fix formatting.
5479 (EXTRA_EM_FILE): Source it.
5480 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5481 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5482 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5483 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5484 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5485 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5486 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5487 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5488 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5489 allow functions in this file to be overridden.
5490 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5492 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5494 * emultempl/elf32.em: Reorganize file.
5496 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5498 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5499 specific option to fit 64-bit executable in the lower
5500 31-bit address range. This is done by changing start
5501 address of .interp (the very first section of executable)
5502 and then setting EF_ALPHA_32BIT elf header flag.
5504 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5506 * emultempl/m68kcoff.em: New file.
5507 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5508 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5510 * Makefile.in: Regenerate.
5512 2000-07-20 H.J. Lu <hjl@gnu.org>
5514 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5515 and "disable-new-dtags" to stop getopt from treating -d/-e as
5516 abbreviations for these options.
5518 2000-07-20 H.J. Lu <hjl@gnu.org>
5520 * ld.texinfo: Add documentation for --disable-new-dtags and
5523 * ldmain.c (main): Initialize link_info.new_dtags to false.
5525 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5526 --disable-new-dtags and --enable-new-dtags.
5527 (gld_${EMULATION_NAME}_list_options): Likewise.
5529 2000-07-05 Kenneth Block <krblock@computer.org>
5531 * lexsup.c: Add optional style to demangle switch
5532 * ld.texinfo: Document optional style to demangle switch.
5534 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5536 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5538 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5539 Regenerate dependencies.
5540 * Makefile.in: Rebuild.
5541 * configure.tgt (cris-*-*): New target.
5542 * emulparams/crisaout.sh, emulparams/criself.sh,
5543 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5544 * po/POTFILES.in, po/ld.pot: Regenerate.
5546 2000-07-20 H.J. Lu <hjl@gnu.org>
5548 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5549 Print out ignored -z options.
5551 2000-07-19 H.J. Lu <hjl@gnu.org>
5553 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5554 (PARSE_AND_LIST_PROLOGUE): New.
5555 (PARSE_AND_LIST_LONGOPTS): Likewise.
5556 (PARSE_AND_LIST_OPTIONS): Likewise.
5557 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5559 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5561 * lexsup.c (ld_options): Comment out 'z'.
5562 (parse_args): Likewise.
5564 * emultempl/elf32.em: Include "elf/common.h".
5565 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5567 (gld_${EMULATION_NAME}_list_options): Likewise.
5569 * ld.texinfo: Add documentation for the recognized -z options.
5571 2000-07-19 H.J. Lu <hjl@gnu.org>
5573 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5574 bfd_elf_set_dt_needed_soname ().
5576 2000-07-18 DJ Delorie <dj@cygnus.com>
5578 * pe-dll.c (pe_dll_id_target): check object target name also
5580 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5582 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5583 ${INIT_END} if relocating.
5584 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5586 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5588 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5589 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5590 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5591 errors introduced by the old dynamic lib search order.
5593 2000-07-17 DJ Delorie <dj@cygnus.com>
5595 * pe-dll.c (process_def_file): auto-export data items also
5596 (pe_process_import_defs): also see if _imp_ form needed
5598 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5600 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5601 for dll import libraries
5603 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5605 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5606 gcc 2.95.2 and later.
5608 2000-07-11 Kazu Hirata <kazu@hxi.com>
5610 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5613 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5615 * ldemul.h (struct lang_input_statement_struct): Remove forward
5617 (struct search_dirs): Likewise.
5618 * ldfile.h (struct lang_input_statement_struct): Likewise.
5619 Protect file from multiple inclusion.
5620 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5621 declaration from macro to file scope.
5623 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5624 * ldgram.y: Likewise here.
5625 * ldlang.c: And here.
5626 * ldmain.c: And here.
5627 * mpw-elfmips.c: And here.
5628 * mpw-eppcmac.c: And here.
5629 * emultempl/aix.em: And here.
5630 * emultempl/armcoff.em: And here.
5631 * emultempl/armelf.em: And here.
5632 * emultempl/armelf_oabi.em: And here.
5633 * emultempl/beos.em: And here.
5634 * emultempl/elf32.em: And here.
5635 * emultempl/hppaelf.em: And here.
5636 * emultempl/linux.em: And here.
5637 * emultempl/lnk960.em: And here.
5638 * emultempl/pe.em: And here.
5639 * emultempl/sunos.em: And here.
5640 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
5641 * mpw-idtmips.c: Ditto.
5642 * emultempl/generic.em: Ditto.
5643 * emultempl/gld960.em: Ditto.
5644 * emultempl/gld960c.em: Ditto.
5645 * emultempl/mipsecoff.em: Ditto.
5646 * emultempl/ticoff.em: Ditto.
5647 * emultempl/vanilla.em: Ditto.
5649 * pe-dll.c: Include ldfile.h
5650 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
5652 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
5653 arguments to bfd_elf32_size_dynamic_sections call.
5654 (gldelf32ebmip_place_orphan): Add missing arguments to
5655 lang_leave_output_section_statement call.
5657 2000-07-10 H.J. Lu <hjl@gnu.org>
5659 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
5661 (strhash): Likewise.
5662 (compute_dll_image_base): Likewise.
5663 (pe_undef_found_sym): Likewise.
5664 (pe_undef_cdecl_match): Likewise.
5665 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
5666 argument "arch" with ATTRIBUTE_UNUSED.
5668 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5670 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
5672 From Ryan Bradetich <rbradetich@uswest.net>
5673 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
5675 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5677 Changes to create multiple linker stubs, positioned immediately
5678 before the section where they are required.
5679 * emultempl/hppaelf.em: Include elf32-hppa.h.
5680 (stub_sec, file_chain): Delete.
5681 (hppaelf_create_output_section_statements): Don't make a stub
5683 (hook_stub_info): New struct.
5684 (hook_in_stub): New function.
5685 (hppaelf_add_stub_section): New function.
5686 (hppaelf_finish): Do nothing for relocateable links. Modify the
5687 call to elf32_hppa_size_stubs. Move code for updating section
5689 (hppaelf_layaout_sections_again): ..to here, a new function.
5691 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
5692 broken list handling. Pass in a pointer to the list.
5693 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
5695 (hppaelf_before_parse): Prototype.
5696 (hppaelf_set_output_arch): Prototype.
5697 (hppaelf_create_output_section_statements): Prototype.
5698 (hppaelf_delete_padding_statements): Prototype.
5699 (hppaelf_finish): Prototype.
5702 * emultempl/hppaelf.em: Include ctype.h.
5703 (struct orphan_save): New.
5704 (gld${EMULATION_NAME}_place_orphan): New.
5705 (output_rel_find): New.
5706 (hppaelf_get_script): Update from elf32.em.
5707 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
5708 Change emulation_name field to "${EMULATION_NAME}". Add
5709 gld${EMULATION_NAME}_place_orphan.
5711 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
5712 ehppalinux.o, sort it. Regenerate dependencies.
5713 (ehppalinux.c): Depend on hppaelf.em
5714 * Makefile.in: Regenerate.
5716 * configure.tgt: targ_emul=hppalinux for hppa*linux
5718 * emulparams/hppalinux.sh: New.
5719 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
5721 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5723 * lexsup.c (parse_args): Copy section name.
5725 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
5727 * emultempl/pe.em: institute the following search order for
5728 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
5729 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
5730 static lib (libfoo.a) if none of the above are found.
5732 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
5734 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
5735 (longopts): New --{enable,disable}-auto-image-base options.
5736 (gld_${EMULATION_NAME}_list_options): Document.
5737 (gld_${EMULATION_NAME}_parse): Handle.
5738 (strhash): New static function.
5739 (compute_dll_image_base): New static function.
5740 (gld_${EMULATION_NAME}_set_symbols): Use.
5742 2000-07-05 DJ Delorie <dj@redhat.com>
5746 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5748 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
5749 * emulparams/elf32btsmip.sh: New file.
5750 * Makefile.am: Add traditional mips target.
5751 * Makefile.in: Rebuild.
5753 2000-07-01 H.J. Lu <hjl@gnu.org>
5755 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
5756 automake to use YLWRAP.
5757 * Makefile.in: Rebuild.
5759 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5761 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5762 (CLEANFILES): Add DEPA.
5763 * Makefile.in: Regenerate.
5765 2000-06-30 Timothy Wall <twall@ppc>
5767 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
5768 the page in the upper octet of the address.
5770 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5772 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
5774 2000-06-24 Alan Modra <alan@linuxcare.com.au>
5776 * NEWS: arm-elf does --gc-sections too.
5778 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5780 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5782 * Makefile.in: Regenerate.
5784 2000-06-21 H.J. Lu <hjl@gnu.org>
5786 * Makefile.am: Rebuild dependency.
5787 * Makefile.in: Rebuild.
5789 2000-06-20 H.J. Lu <hjl@gnu.org>
5791 * Makefile.am: Rebuild dependency.
5792 * Makefile.in: Rebuild.
5794 2000-06-20 Timothy Wall <twall@cygnus.com>
5796 * scripttempl/tic54xcoff.sc: New.
5797 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
5798 * gen-doc.texi: Add flag for TI COFF.
5799 * ld.texinfo: Add documentation for TI COFF handling switches.
5800 * emultempl/ticoff.em: New. TI COFF handling.
5801 * configure.tgt: Add tic54x target.
5802 * Makefile.am: Add tic54x target.
5803 * Makefile.in: Ditto.
5805 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5807 * ldmain.c (set_scripts_dir): Correct pointer comparison when
5808 checking for backslashes.
5810 2000-06-19 Alan Modra <alan@linuxcare.com.au>
5812 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
5814 2000-06-18 Alan Modra <alan@linuxcare.com.au>
5816 * NEWS: Update list of targets supporting --gc-sections.
5818 * scripttempl/elf.sc: KEEP .eh_frame contents.
5819 * scripttempl/elfd30v.sc: Same here.
5821 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5823 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
5825 * Makefile.in: Rebuild.
5826 * configure.tgt: Recognize m68hc12 and m68hc11.
5827 * scripttempl/elfm68hc12.sc: New file.
5828 * emulparams/m68hc12elfb: New emulation.
5829 * emulparams/m68hc12elf: New emulation.
5830 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
5831 (includes a memory.x script to define the ROM and RAM banks).
5832 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
5833 New configuration files for support of Motorola 68hc11
5835 2000-06-15 Alan Modra <alan@linuxcare.com.au>
5837 * ldmain.c (main): Only change SEC_READONLY for final link.
5839 2000-06-13 H.J. Lu <hjl@gnu.org>
5841 * configure: Regenerate.
5843 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5845 * configure.in (VERSION): Update to show this is the CVS mainline.
5847 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5849 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
5850 input objects to be ECOFF.
5851 (check_sections): einfo takes %B, not %P, to print a BFD name.
5853 2000-06-05 Michael Matz <matz@ifh.de>
5855 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
5858 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
5860 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
5862 * emulparams/avr1200.sh (STACK): Define as 0.
5863 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
5864 * emulparams/avr4433.sh (STACK): Likewise.
5865 * emulparams/avr44x4.sh (STACK): Likewise.
5866 * emulparams/avr85xx.sh (STACK): Likewise.
5867 * emulparams/avrmega103.sh (STACK): Likewise.
5868 * emulparams/avrmega161.sh (STACK): Likewise.
5869 * emulparams/avrmega603.sh (STACK): Likewise.
5870 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
5871 (__stack): Define from ${STACK} for main().
5873 2000-05-26 Alan Modra <alan@linuxcare.com.au>
5875 * Makefile.am: Update dependencies with "make dep-am"
5876 * Makefile.in: Regenerate.
5878 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
5880 * ldmain.c: Include filenames.h.
5881 (set_scripts_dir): Support backslashes in program name.
5883 2000-05-22 Igor Shevlyakov <igor@windriver.com>
5885 * ldmain.c (main): When deciding if ".text" section should be
5886 read-only, don't forget to reset SEC_READONLY because it
5887 could be already set.
5889 2000-05-22 Thomas de Lellis <tdel@windriver.com>
5891 * ld.1: Add documentation for new command line option:
5892 --section-start <sectionname>=<sectionorg>
5893 This is a generic version of -Ttext etc. which accepts
5894 any section name as a parameter instead of just text/data/
5896 * ld.texinfo: More docs.
5898 * lexsup.c: (parse_args): Recognize new command line option.
5899 (ld_options): Add new option.
5901 2000-05-18 H.J. Lu <hjl@gnu.org>
5903 * lexsup.c (parse_args): `i' == `r', not `q'.
5905 2000-05-18 Jeffrey A Law (law@cygnus.com)
5907 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
5909 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
5910 Rick Gorton <gorton@scrugs.lkg.dec.com>
5912 Add support for '-q' == '--emit-relocs' switch.
5913 * ldmain.c (main): Default to false.
5914 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
5915 * NEWS: Describe the emitrelocations switch.
5916 * ld.texinfo: Describe the emitrelocations switch.
5918 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
5920 * emultempl/pe.em (_open_dynamic_archive): New function: Search
5921 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
5922 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
5925 2000-05-15 David O'Brien <obrien@FreeBSD.org>
5927 * lexsup.c (parse_args): Update the year in the copyright notice.
5929 2000-05-13 Alan Modra <alan@linuxcare.com.au>
5931 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
5932 Replace defines with those from intl/libgettext.h to quieten gcc
5935 2000-05-10 H.J. Lu <hjl@gnu.org>
5937 * ldlang.c (open_input_bfds): Don't load the same file within
5938 a group again if the whole archive has been loaded already.
5940 2000-05-03 Alan Modra <alan@linuxcare.com.au>
5942 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
5943 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
5946 2000-05-01 Jim Wilson <wilson@cygnus.com>
5948 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
5950 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5951 host "ia64-*-linux-gnu*".
5953 2000-04-29 Andreas Jaeger <aj@suse.de>
5955 * ld.h: Correctly check GCC version.
5957 2000-04-25 Jeffrey A Law (law@cygnus.com)
5959 * Makefile.am: Add PA64 support. Add missing dependencies for
5961 * Makefile.in: Rebuilt.
5962 * configure.tgt: Add PA64 support (currently disabled).
5964 2000-04-25 Alan Modra <alan@linuxcare.com.au>
5966 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
5967 (output_rel_find): New function.
5968 (hold_section, hold_use): Delete.
5969 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
5970 hold_interp): Make local to place_orphan.
5971 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
5972 rather than place_section to find possible previous use of orphan.
5973 Similarly find the place-holder output sections. Use returned
5974 value from lang_enter_output_section_statement rather than calling
5975 lang_output_section_statement_lookup.
5976 * emultempl/armelf.em: Same here.
5977 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
5979 * ldlang.c (lang_enter_output_section_statement): Return output
5981 * ldlang.h (lang_enter_output_section_statement): Change
5984 * ldlang.h (lang_output_section_statement): Export it.
5985 * ldlang.c (lang_output_section_statement): Ditto.
5987 2000-04-24 Nick Clifton <nickc@cygnus.com>
5989 * ld.texinfo (Output Section Data): Add note that section data
5990 commands cannot appear outside of section directives.
5992 2000-04-2 Matthew Green <mrg@cygnus.com>
5994 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
5996 2000-04-21 Richard Henderson <rth@cygnus.com>
5997 David Mosberger <davidm@hpl.hp.com>
5999 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6000 (eelf64_ia64.c): New rule.
6001 * Makefile.in: Rebuild.
6002 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6003 * emulparams/elf64_ia64.sh: New file.
6005 2000-04-21 Richard Henderson <rth@cygnus.com>
6007 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6009 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6011 * dep-in.sed: Match space at start of file name, not at end.
6013 2000-04-18 H.J. Lu <hjl@gnu.org>
6015 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6016 lang_leave_output_section_statement () after calling
6017 lang_enter_output_section_statement ().
6018 * emultempl/armelf.em: Likewise.
6020 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6022 * emultempl/elf32.em (struct orphan_save): Add section field.
6023 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6024 better order, and place first orphan section as we did before the
6025 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6026 Don't call make_bfd_section here, let wild_doit do the job for us.
6027 Don't build a statement list when we'll only throw it away.
6028 * emultempl/armelf.em: Ditto.
6029 * emultempl/pe.em: Similarly.
6031 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6033 * scripttempl/elfppc.sc: Remove.
6034 * emulparams/elf32ppc.sh: Use elf.sc.
6035 * emulparams/elf32lppc.sh: Use elf.sc.
6036 * emulparams/elf32ppclinux.sh: Use elf.sc.
6037 * emulparams/elf32ppcsim.sh: New file.
6038 * emulparams/elf32lppcsim.sh: New file.
6039 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6040 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6041 * Makefile.in: Regenerate.
6042 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6044 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6046 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6047 ~SEC_ALLOC sections too. Init start address of debug sections.
6048 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6049 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6050 Also set all relocateable section start addresses.
6052 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6054 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6055 Add new BSS_PLT variable for when .plt need not be contained in
6056 the file. Move _etext so that it is also after .fini, and provide
6057 both etext and _etext with a leading underscore. Mark the start
6060 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6062 * emultempl/elf32.em (struct orphan_save): New.
6063 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6064 hold_interp): Make them struct orphan_save.
6065 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6066 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6067 the end of the relevant section list. Also add associated section
6068 statements to the end of any previous orphan statements.
6069 * emultempl/armelf.em: Similarly.
6070 * emultempl/pe.em: Similarly.
6072 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6074 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6076 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6078 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6079 --enable-build-warnings option.
6080 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6081 * Makefile.in, configure: Re-generate.
6083 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6085 * po/ld.pot: Regenerate.
6087 * lexsup.c (help): Restore translated part of bug string.
6089 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6090 (DEP): Quote when passing vars to sub-make. Add warning message
6092 (DEP1): Rewrite for "gcc -MM".
6093 (CLEANFILES): Add DEP2.
6094 Update dependencies.
6095 * Makefile.in: Regenerate.
6097 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6099 * ld.h: #include "bin-bugs.h"
6100 * lexsup.c (help): Use REPORT_BUGS_TO.
6102 2000-03-27 Denis Chertykov <denisc@overta.ru>
6104 * configure.tgt (avr-*-*): New target support.
6105 * Makefile.am: Likewise.
6106 * scripttempl/elf32avr.sc: New script file.
6107 * emulparams/avr1200.sh: New file.
6108 * emulparams/avr23xx.sh: New file.
6109 * emulparams/avr4433.sh New file.
6110 * emulparams/avr44x4.sh New file.
6111 * emulparams/avr85xx.sh New file.
6112 * emulparams/avrmega103.sh New file.
6113 * emulparams/avrmega161.sh New file.
6114 * emulparams/avrmega603.sh New file.
6115 * Makefile.in: Regenerate.
6117 2000-03-09 Andreas Jaeger <aj@suse.de>
6119 * Makefile.am (check-DEJAGNU): Also unset LANG.
6120 * Makefile.in: Rebuild.
6122 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6124 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6127 2000-03-02 H.J. Lu <hjl@gnu.org>
6129 * emulparams/elf32mcore.sh: Include "getopt.h".
6131 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6133 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6135 2000-03-01 H.J. Lu <hjl@gnu.org>
6137 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6138 * emulparams/shpe.sh: Likewise.
6140 2000-03-01 Nick Clifton <nickc@cygnus.com>
6142 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6143 to unused parameters.
6145 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6146 functions only used by DLL code.
6147 (_place_orphan): Initialise 'dollar'.
6149 2000-03-01 H.J. Lu <hjl@gnu.org>
6151 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6152 indicate if the undefined symbol is a fatal error or not.
6153 Don't delete the output file if "fatal" is false.
6155 2000-02-29 H.J. Lu <hjl@gnu.org>
6157 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6158 Set LC_COLLATE and LC_ALL to null and export them. It is for
6159 sort which expects the C locale.
6160 Add $(LIBS) to all $(HOSTING_LIBS).
6161 * Makefile.in: Rebuild.
6163 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6165 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6166 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6167 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6168 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6169 find_potential_libraries.
6171 2000-02-28 Jim Blandy <jimb@redhat.com>
6173 * ldgram.y (exclude_name_list): Don't require a comma to separate
6174 list entries; the lexer considers commas to be valid part of a
6175 filename, so in something like `foo, bar' the comma is considered
6176 part of the first filename, `foo,'.
6177 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6179 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6181 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6182 host "i[3456]86-*-freebsdelf*".
6184 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6186 * scripttempl/i386go32.sc: Move misplaced semicolons.
6188 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6190 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6191 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6192 (eelf64hppa.c, ehppaelf.c): Remove targets.
6193 * Makefile.in: Rebuild.
6195 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6197 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6198 GNU/Linux/sparc, but keep the default as 32.
6200 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6201 it default if sparcv9 or sparc64.
6203 2000-02-24 Nick Clifton <nickc@cygnus.com>
6205 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6206 * Makefile.in: Regenerate.
6207 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6209 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6210 find_potential_libraries.
6211 * ldemul.c (ldemul_find_potential_libraries): New function.
6213 * ldfile.c (ldfile_open_file_search): Allow function to be
6215 (ldfile_open_file): Call ldemul_find_potential_libraries.
6216 * ldfile.h: Add prototype for ldfile_open_file_search.
6218 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6220 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6221 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6223 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6224 (gld_X_find_potential_libraries): New function. Search for
6225 libraries called "*.lib".
6227 * scripttempl/pe.sc: Add .pdata section.
6229 2000-02-23 Richard Henderson <rth@cygnus.com>
6231 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6232 Add and use memory regions.
6234 2000-02-23 Linas Vepstas (linas@linas.org)
6236 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6238 * Makefile.am: Add support for Linux/IBM 370.
6239 * configure.tgt: Likewise.
6241 * Makefile.in: Regenerate.
6243 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6245 * ldlang.c (print_input_section, print_data_statement,
6246 print_reloc_statement, print_padding_statement, insert_pad,
6247 size_input_section, lang_check_section_addresses,
6248 lang_size_sections, lang_do_assignments, lang_set_startof,
6249 lang_one_common): Change `opb' to unsigned.
6250 (lang_do_assignments): Also change `size' to unsigned.
6252 2000-02-16 Richard Henderson <rth@cygnus.com>
6254 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6256 2000-02-16 Timothy Wall <twall@cygnus.com>
6258 * mri.c (mri_draw_tree): Add default LMA region argument to call
6259 to lang_leave_output_section_statement.
6260 * ldlang.h: Update prototypes with LMA region arguments.
6261 * ldlang.c (lang_size_sections): Encapsulate region bounds
6262 checking in os_check_region call.
6263 (os_check_region): New function.
6264 (lang_output_section_statement_lookup): Initialize lma_region.
6265 (lang_leave_output_section_statement): Add LMA region argument.
6266 (lang_leave_overlay): Ditto.
6267 * ldgram.y: Handle LMA region syntax.
6268 * ld.texinfo (Output Section Description): Describe LMA region usage.
6269 * emultempl/armelf.em (gld$place_orphan): Add default value for
6270 lma region in call to lang_leave_output_section_statement.
6271 * emultempl/elf32.em (gld$place_orphan): Add default value for
6272 lma region in call to lang_leave_output_section_statement.
6273 * emultempl/pe.em (gld$place_orphan): Add default value for
6274 lma region in call to lang_leave_output_section_statement.
6277 2000-02-04 Timothy Wall <twall@redhat.com>
6279 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6280 octets when calculating section end addresses.
6282 2000-02-04 Timothy Wall <twall@redhat.com>
6284 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6286 2000-02-03 Timothy Wall <twall@redhat.com>
6288 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6290 * ldlang.c (print_input_section, print_data_statement,
6291 print_reloc_statement, print_padding_statement): Print target
6292 address values and section sizes as bytes, not octets.
6293 (insert_pad) Calculate padding size in octets, and adjust "dot"
6295 (size_input_section) Always adjust "dot" by bytes, not octets.
6296 (lang_check_section_addresses, lang_do_assignments) Adjust
6297 "dot" by bytes, not octets. Use the larger of the directive size
6298 or octets_per_byte for the number of octets actually allocated in
6300 (lang_set_startof) Make sure STARTOF returns a target address.
6301 (lang_one_common) Record size changes in octets.
6302 (lang_abs_symbol_at_end_of) Section end symbol's value is
6303 recorded in target bytes.
6304 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6305 to be clear about behavior when an octet is smaller than one byte.
6307 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6309 * ldcref.c (output_cref): Don't pass message strings to printf
6313 * ldmisc.c (vfinfo): Same here.
6316 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6318 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6319 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6320 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6321 Add missing NULL initialisers, and comments.
6323 2000-01-21 Nick Clifton <nickc@cygnus.com>
6325 * ldlang.c (lang_size_sections): Fix typo in comment.
6327 2000-01-18 H.J. Lu <hjl@gnu.org>
6329 * ldlang.c (lang_size_sections): Also update the current
6330 address of a region if the SEC_NEVER_LOAD bit is not set.
6332 2000-01-10 Philip Blundell <pb@futuretv.com>
6334 * configure.tgt (arm*-*-conix*): New target.
6336 2000-01-07 Nick Clifton <nickc@cygnus.com>
6338 * ld.texinfo (Options): Remind users to preceed linker command
6339 line switches with -Wl, (or whatever is appropriate) if it is
6340 being invoked by a comnpiler driver program.
6341 Fix description of the behaviour of the -n command line switch.
6343 2000-01-05 Catherine Moore <clm@cygnus.com>
6345 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6347 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6348 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6349 (exclude_name_list): New.
6350 ldlang.c (walk_wild_section): Support list of excluded files.
6351 (print_wild_statement): Likewise.
6352 (lang_add_wild): Likewise.
6353 * ldlang.h (lang_wild_statement_type): Likewise.
6354 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6356 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6358 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6359 (process_def_file): Use.
6360 (pe_dll_compat_implib): New variable.
6363 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6364 pe_dll_compat_implib.
6366 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6367 compat-implib options.
6368 (gld_${EMULATION_NAME}_list_options): List new options.
6369 (gld_${EMULATION_NAME}_parse_args): Handle.
6371 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6374 * deffilep.y (opt_name): Allow "." in name.
6376 For older changes see ChangeLog-9899
6382 version-control: never